@nnc-digital/nnc-design-system 1.0.0-alpha38 → 1.0.0-alpha39

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 (539) hide show
  1. package/build/index.js +285 -134
  2. package/build/index.js.map +1 -1
  3. package/build/index.mjs.js +285 -134
  4. package/build/index.mjs.js.map +1 -1
  5. package/build/src/library/directory/DirectoryAddToShortList/DirectoryAddToShortList.types.d.ts +9 -0
  6. package/build/src/library/directory/DirectoryDocumentList/DirectoryDocumentList.types.d.ts +4 -0
  7. package/build/src/library/directory/DirectoryService/DirectoryService.storydata.d.ts +1 -0
  8. package/build/src/library/directory/DirectoryService/DirectoryServiceTransform.d.ts +1 -1
  9. package/build/src/library/directory/DirectoryServiceList/DirectoryServiceList.types.d.ts +12 -0
  10. package/package.json +1 -1
  11. package/build/ThemeVars.types.d.ts +0 -60
  12. package/build/index.d.ts +0 -42
  13. package/build/index.esm.js +0 -32377
  14. package/build/index.esm.js.map +0 -1
  15. package/build/library/components/AlphabeticalDirectory/AlphabeticalDirectory.d.ts +0 -4
  16. package/build/library/components/AlphabeticalDirectory/AlphabeticalDirectory.types.d.ts +0 -26
  17. package/build/library/components/Autocomplete/Autocomplete.d.ts +0 -9
  18. package/build/library/components/Autocomplete/Autocomplete.storydata.d.ts +0 -47
  19. package/build/library/components/Autocomplete/Autocomplete.types.d.ts +0 -78
  20. package/build/library/components/BackToTop/BackToTop.d.ts +0 -4
  21. package/build/library/components/BackToTop/BackToTop.test.d.ts +0 -1
  22. package/build/library/components/BackToTop/BackToTop.types.d.ts +0 -6
  23. package/build/library/components/BinCollection/BinCollection.d.ts +0 -7
  24. package/build/library/components/BinCollection/BinCollection.styles.d.ts +0 -2937
  25. package/build/library/components/BinCollection/BinCollection.test.d.ts +0 -1
  26. package/build/library/components/BinCollection/BinCollection.testdata.d.ts +0 -34
  27. package/build/library/components/BinCollection/BinCollection.types.d.ts +0 -68
  28. package/build/library/components/Button/Button.d.ts +0 -7
  29. package/build/library/components/Button/Button.types.d.ts +0 -43
  30. package/build/library/components/Card/Card.d.ts +0 -7
  31. package/build/library/components/Card/Card.test.d.ts +0 -1
  32. package/build/library/components/Card/Card.types.d.ts +0 -36
  33. package/build/library/components/CheckboxListFilter/CheckboxListFilter.d.ts +0 -4
  34. package/build/library/components/CheckboxListFilter/CheckboxListFilter.test.d.ts +0 -1
  35. package/build/library/components/CheckboxListFilter/CheckboxListFilter.types.d.ts +0 -36
  36. package/build/library/components/Column/Column.d.ts +0 -4
  37. package/build/library/components/Column/Column.test.d.ts +0 -1
  38. package/build/library/components/Column/Column.types.d.ts +0 -35
  39. package/build/library/components/CustomSearch/CustomSearch.d.ts +0 -4
  40. package/build/library/components/CustomSearch/CustomSearch.storydata.d.ts +0 -2
  41. package/build/library/components/CustomSearch/CustomSearch.test.d.ts +0 -1
  42. package/build/library/components/CustomSearch/CustomSearch.types.d.ts +0 -34
  43. package/build/library/components/DropDownFilter/DropDownFilter.d.ts +0 -4
  44. package/build/library/components/DropDownFilter/DropDownFilter.types.d.ts +0 -32
  45. package/build/library/components/DropDownSelect/DropDownSelect.d.ts +0 -4
  46. package/build/library/components/DropDownSelect/DropDownSelect.types.d.ts +0 -36
  47. package/build/library/components/DynamicIcon/DynamicIcon.d.ts +0 -7
  48. package/build/library/components/DynamicIcon/DynamicIcon.test.d.ts +0 -1
  49. package/build/library/components/DynamicIcon/DynamicIcon.types.d.ts +0 -10
  50. package/build/library/components/FileDownload/FileDownload.d.ts +0 -7
  51. package/build/library/components/FileDownload/FileDownload.test.d.ts +0 -1
  52. package/build/library/components/FileDownload/FileDownload.types.d.ts +0 -22
  53. package/build/library/components/FormButton/FormButton.d.ts +0 -7
  54. package/build/library/components/FormButton/FormButton.types.d.ts +0 -26
  55. package/build/library/components/FormWithLine/FormWithLine.d.ts +0 -7
  56. package/build/library/components/FormWithLine/FormWithLine.types.d.ts +0 -39
  57. package/build/library/components/Heading/Heading.d.ts +0 -7
  58. package/build/library/components/Heading/Heading.types.d.ts +0 -10
  59. package/build/library/components/HeadingWithIcon/HeadingWithIcon.d.ts +0 -7
  60. package/build/library/components/HeadingWithIcon/HeadingWithIcon.test.d.ts +0 -1
  61. package/build/library/components/HeadingWithIcon/HeadingWithIcon.types.d.ts +0 -18
  62. package/build/library/components/HeadingWithIconLink/HeadingWithIconLink.d.ts +0 -4
  63. package/build/library/components/HeadingWithIconLink/HeadingWithIconLink.test.d.ts +0 -1
  64. package/build/library/components/HeadingWithIconLink/HeadingWithIconLink.types.d.ts +0 -14
  65. package/build/library/components/HintText/HintText.d.ts +0 -7
  66. package/build/library/components/HintText/HintText.types.d.ts +0 -6
  67. package/build/library/components/Input/Input.d.ts +0 -8
  68. package/build/library/components/Input/Input.types.d.ts +0 -52
  69. package/build/library/components/LoadingSpinner/LoadingSpinner.d.ts +0 -4
  70. package/build/library/components/LoadingSpinner/LoadingSpinner.types.d.ts +0 -2
  71. package/build/library/components/Map/Map.d.ts +0 -7
  72. package/build/library/components/Map/Map.types.d.ts +0 -15
  73. package/build/library/components/MapMarker/MapMarker.d.ts +0 -6
  74. package/build/library/components/Pagination/Pagination.d.ts +0 -4
  75. package/build/library/components/Pagination/Pagination.test.d.ts +0 -1
  76. package/build/library/components/Pagination/Pagination.types.d.ts +0 -23
  77. package/build/library/components/PostCodeAddressDropdown/PostCodeAddressDropdown.d.ts +0 -7
  78. package/build/library/components/PostCodeAddressDropdown/PostCodeAddressDropdown.types.d.ts +0 -2
  79. package/build/library/components/PostCodeAddressSearch/PostCodeAddressSearch.d.ts +0 -7
  80. package/build/library/components/PostCodeAddressSearch/PostCodeAddressSearch.types.d.ts +0 -23
  81. package/build/library/components/PostCodeAddressTable/PostCodeAddressTable.d.ts +0 -4
  82. package/build/library/components/PostCodeAddressTable/PostCodeAddressTable.types.d.ts +0 -2
  83. package/build/library/components/PostCodeSearch/PostCodeSearch.d.ts +0 -7
  84. package/build/library/components/PostCodeSearch/PostCodeSearch.test.d.ts +0 -1
  85. package/build/library/components/PostCodeSearch/PostCodeSearch.types.d.ts +0 -52
  86. package/build/library/components/PromotedLinks/PromotedLinks.d.ts +0 -4
  87. package/build/library/components/PromotedLinks/PromotedLinks.test.d.ts +0 -1
  88. package/build/library/components/PromotedLinks/PromotedLinks.types.d.ts +0 -20
  89. package/build/library/components/RadioCheckboxInput/RadioCheckboxInput.d.ts +0 -4
  90. package/build/library/components/RadioCheckboxInput/RadioCheckboxInput.test.d.ts +0 -1
  91. package/build/library/components/RadioCheckboxInput/RadioCheckboxInput.types.d.ts +0 -26
  92. package/build/library/components/RemovableTag/RemovableTag.d.ts +0 -4
  93. package/build/library/components/RemovableTag/RemovableTag.types.d.ts +0 -8
  94. package/build/library/components/RemoveAllFilters/RemoveAllFilters.d.ts +0 -4
  95. package/build/library/components/RemoveAllFilters/RemoveAllFilters.types.d.ts +0 -3
  96. package/build/library/components/Row/Row.d.ts +0 -4
  97. package/build/library/components/Row/Row.test.d.ts +0 -1
  98. package/build/library/components/Row/Row.types.d.ts +0 -20
  99. package/build/library/components/SignpostLinksList/SignpostLinksList.d.ts +0 -4
  100. package/build/library/components/SignpostLinksList/SignpostLinksList.types.d.ts +0 -24
  101. package/build/library/components/SortBy/SortBy.d.ts +0 -4
  102. package/build/library/components/SortBy/SortBy.types.d.ts +0 -20
  103. package/build/library/components/StaticMap/StaticMap.d.ts +0 -7
  104. package/build/library/components/StaticMap/StaticMap.test.d.ts +0 -1
  105. package/build/library/components/StaticMap/StaticMap.types.d.ts +0 -52
  106. package/build/library/components/SummaryList/SummaryList.d.ts +0 -4
  107. package/build/library/components/SummaryList/SummaryList.test.d.ts +0 -1
  108. package/build/library/components/SummaryList/SummaryList.types.d.ts +0 -21
  109. package/build/library/components/TextInput/TextInput.d.ts +0 -7
  110. package/build/library/components/TextInput/TextInput.types.d.ts +0 -38
  111. package/build/library/components/icons/ChevronIcon/ChevronIcon.d.ts +0 -4
  112. package/build/library/components/icons/ChevronIcon/ChevronIcon.types.d.ts +0 -10
  113. package/build/library/components/icons/CloseIcon/CloseIcon.d.ts +0 -4
  114. package/build/library/components/icons/CloseIcon/CloseIcon.types.d.ts +0 -6
  115. package/build/library/components/icons/DownloadFileIcon/DownloadFileIcon.d.ts +0 -4
  116. package/build/library/components/icons/DownloadFileIcon/DownloadFileIcon.types.d.ts +0 -6
  117. package/build/library/components/icons/EmailIcon/EmailIcon.d.ts +0 -4
  118. package/build/library/components/icons/EmailIcon/EmailIcon.types.d.ts +0 -6
  119. package/build/library/components/icons/FacebookIcon/Icon.d.ts +0 -4
  120. package/build/library/components/icons/HeartIcon/HeartIcon.d.ts +0 -7
  121. package/build/library/components/icons/HeartIcon/HeartIcon.types.d.ts +0 -6
  122. package/build/library/components/icons/InstagramIcon/Icon.d.ts +0 -4
  123. package/build/library/components/icons/LinkIcon/LinkIcon.d.ts +0 -4
  124. package/build/library/components/icons/LinkIcon/LinkIcon.types.d.ts +0 -6
  125. package/build/library/components/icons/LinkedInIcon/Icon.d.ts +0 -4
  126. package/build/library/components/icons/PhoneIcon/PhoneIcon.d.ts +0 -4
  127. package/build/library/components/icons/PhoneIcon/PhoneIcon.types.d.ts +0 -6
  128. package/build/library/components/icons/PinIcon/PinIcon.d.ts +0 -7
  129. package/build/library/components/icons/PinIcon/PinIcon.types.d.ts +0 -6
  130. package/build/library/components/icons/SearchIcon/SearchIcon.d.ts +0 -4
  131. package/build/library/components/icons/SearchIcon/SearchIcon.types.d.ts +0 -6
  132. package/build/library/components/icons/TwitterIcon/Icon.d.ts +0 -4
  133. package/build/library/components/icons/WebsiteIcon/WebsiteIcon.d.ts +0 -4
  134. package/build/library/components/icons/WebsiteIcon/WebsiteIcon.types.d.ts +0 -6
  135. package/build/library/components/icons/YouTubeIcon/Icon.d.ts +0 -4
  136. package/build/library/components/icons/services/AccessibleParking/Icon.d.ts +0 -4
  137. package/build/library/components/icons/services/AccessibleParking/IconHover.d.ts +0 -4
  138. package/build/library/components/icons/services/Address/Icon.d.ts +0 -4
  139. package/build/library/components/icons/services/Address/IconHover.d.ts +0 -4
  140. package/build/library/components/icons/services/AddressChange/Icon.d.ts +0 -4
  141. package/build/library/components/icons/services/AddressChange/IconHover.d.ts +0 -4
  142. package/build/library/components/icons/services/Adults/Icon.d.ts +0 -4
  143. package/build/library/components/icons/services/Adults/IconHover.d.ts +0 -4
  144. package/build/library/components/icons/services/AssistiveTechnology/Icon.d.ts +0 -4
  145. package/build/library/components/icons/services/AssistiveTechnology/IconHover.d.ts +0 -4
  146. package/build/library/components/icons/services/Benefits/Icon.d.ts +0 -4
  147. package/build/library/components/icons/services/Benefits/IconHover.d.ts +0 -4
  148. package/build/library/components/icons/services/BinDay/Icon.d.ts +0 -4
  149. package/build/library/components/icons/services/BinDay/IconHover.d.ts +0 -4
  150. package/build/library/components/icons/services/Bins/Icon.d.ts +0 -4
  151. package/build/library/components/icons/services/Bins/IconHover.d.ts +0 -4
  152. package/build/library/components/icons/services/BirthCertificate/Icon.d.ts +0 -4
  153. package/build/library/components/icons/services/BirthCertificate/IconHover.d.ts +0 -4
  154. package/build/library/components/icons/services/Births/Icon.d.ts +0 -4
  155. package/build/library/components/icons/services/Births/IconHover.d.ts +0 -4
  156. package/build/library/components/icons/services/Bollard/Icon.d.ts +0 -4
  157. package/build/library/components/icons/services/Bollard/IconHover.d.ts +0 -4
  158. package/build/library/components/icons/services/BulkWaste/Icon.d.ts +0 -4
  159. package/build/library/components/icons/services/BulkWaste/IconHover.d.ts +0 -4
  160. package/build/library/components/icons/services/Bus/Icon.d.ts +0 -4
  161. package/build/library/components/icons/services/Bus/IconHover.d.ts +0 -4
  162. package/build/library/components/icons/services/BusPass/Icon.d.ts +0 -4
  163. package/build/library/components/icons/services/BusPass/IconHover.d.ts +0 -4
  164. package/build/library/components/icons/services/Business/Icon.d.ts +0 -4
  165. package/build/library/components/icons/services/Business/IconHover.d.ts +0 -4
  166. package/build/library/components/icons/services/Careers/Icon.d.ts +0 -4
  167. package/build/library/components/icons/services/Careers/IconHover.d.ts +0 -4
  168. package/build/library/components/icons/services/Cash/Icon.d.ts +0 -4
  169. package/build/library/components/icons/services/Cash/IconHover.d.ts +0 -4
  170. package/build/library/components/icons/services/Catalogue/Icon.d.ts +0 -4
  171. package/build/library/components/icons/services/Catalogue/IconHover.d.ts +0 -4
  172. package/build/library/components/icons/services/Ceremony/Icon.d.ts +0 -4
  173. package/build/library/components/icons/services/Ceremony/IconHover.d.ts +0 -4
  174. package/build/library/components/icons/services/Charity/Icon.d.ts +0 -4
  175. package/build/library/components/icons/services/Charity/IconHover.d.ts +0 -4
  176. package/build/library/components/icons/services/Children/Icon.d.ts +0 -4
  177. package/build/library/components/icons/services/Children/IconHover.d.ts +0 -4
  178. package/build/library/components/icons/services/Computer/Icon.d.ts +0 -4
  179. package/build/library/components/icons/services/Computer/IconHover.d.ts +0 -4
  180. package/build/library/components/icons/services/CondolenceBook/Icon.d.ts +0 -4
  181. package/build/library/components/icons/services/CondolenceBook/IconHover.d.ts +0 -4
  182. package/build/library/components/icons/services/Cooking/Icon.d.ts +0 -4
  183. package/build/library/components/icons/services/Cooking/IconHover.d.ts +0 -4
  184. package/build/library/components/icons/services/Council/Icon.d.ts +0 -4
  185. package/build/library/components/icons/services/Council/IconHover.d.ts +0 -4
  186. package/build/library/components/icons/services/CouncilTax/Icon.d.ts +0 -4
  187. package/build/library/components/icons/services/CouncilTax/IconHover.d.ts +0 -4
  188. package/build/library/components/icons/services/Covid/Icon.d.ts +0 -4
  189. package/build/library/components/icons/services/Covid/IconHover.d.ts +0 -4
  190. package/build/library/components/icons/services/Culture/Icon.d.ts +0 -4
  191. package/build/library/components/icons/services/Culture/IconHover.d.ts +0 -4
  192. package/build/library/components/icons/services/CultureNorth/Icon.d.ts +0 -4
  193. package/build/library/components/icons/services/CultureNorth/IconHover.d.ts +0 -4
  194. package/build/library/components/icons/services/CultureWest/Icon.d.ts +0 -4
  195. package/build/library/components/icons/services/CultureWest/IconHover.d.ts +0 -4
  196. package/build/library/components/icons/services/DOLS/Icon.d.ts +0 -4
  197. package/build/library/components/icons/services/DOLS/IconHover.d.ts +0 -4
  198. package/build/library/components/icons/services/DeathCertificate/Icon.d.ts +0 -4
  199. package/build/library/components/icons/services/DeathCertificate/IconHover.d.ts +0 -4
  200. package/build/library/components/icons/services/Democracy/Icon.d.ts +0 -4
  201. package/build/library/components/icons/services/Democracy/IconHover.d.ts +0 -4
  202. package/build/library/components/icons/services/DogFouling/Icon.d.ts +0 -4
  203. package/build/library/components/icons/services/DogFouling/IconHover.d.ts +0 -4
  204. package/build/library/components/icons/services/Ebook/Icon.d.ts +0 -4
  205. package/build/library/components/icons/services/Ebook/IconHover.d.ts +0 -4
  206. package/build/library/components/icons/services/Edit/Icon.d.ts +0 -4
  207. package/build/library/components/icons/services/Edit/IconHover.d.ts +0 -4
  208. package/build/library/components/icons/services/Environment/Icon.d.ts +0 -4
  209. package/build/library/components/icons/services/Environment/IconHover.d.ts +0 -4
  210. package/build/library/components/icons/services/Events/Icon.d.ts +0 -4
  211. package/build/library/components/icons/services/Events/IconHover.d.ts +0 -4
  212. package/build/library/components/icons/services/Finance/Icon.d.ts +0 -4
  213. package/build/library/components/icons/services/Finance/IconHover.d.ts +0 -4
  214. package/build/library/components/icons/services/Flower/Icon.d.ts +0 -4
  215. package/build/library/components/icons/services/Flower/IconHover.d.ts +0 -4
  216. package/build/library/components/icons/services/FlyTip/Icon.d.ts +0 -4
  217. package/build/library/components/icons/services/FlyTip/IconHover.d.ts +0 -4
  218. package/build/library/components/icons/services/FoodWaste/Icon.d.ts +0 -4
  219. package/build/library/components/icons/services/FoodWaste/IconHover.d.ts +0 -4
  220. package/build/library/components/icons/services/GiveNotice/Icon.d.ts +0 -4
  221. package/build/library/components/icons/services/GiveNotice/IconHover.d.ts +0 -4
  222. package/build/library/components/icons/services/GovUK/Icon.d.ts +0 -4
  223. package/build/library/components/icons/services/GovUK/IconHover.d.ts +0 -4
  224. package/build/library/components/icons/services/Graffiti/Icon.d.ts +0 -4
  225. package/build/library/components/icons/services/Graffiti/IconHover.d.ts +0 -4
  226. package/build/library/components/icons/services/Highway/Icon.d.ts +0 -4
  227. package/build/library/components/icons/services/Highway/IconHover.d.ts +0 -4
  228. package/build/library/components/icons/services/HouseMoney/Icon.d.ts +0 -4
  229. package/build/library/components/icons/services/HouseMoney/IconHover.d.ts +0 -4
  230. package/build/library/components/icons/services/Housing/Icon.d.ts +0 -4
  231. package/build/library/components/icons/services/Housing/IconHover.d.ts +0 -4
  232. package/build/library/components/icons/services/Icon.types.d.ts +0 -6
  233. package/build/library/components/icons/services/Independence/Icon.d.ts +0 -4
  234. package/build/library/components/icons/services/Independence/IconHover.d.ts +0 -4
  235. package/build/library/components/icons/services/KeepingHealthy/Icon.d.ts +0 -4
  236. package/build/library/components/icons/services/KeepingHealthy/IconHover.d.ts +0 -4
  237. package/build/library/components/icons/services/Libraries/Icon.d.ts +0 -4
  238. package/build/library/components/icons/services/Libraries/IconHover.d.ts +0 -4
  239. package/build/library/components/icons/services/Litter/Icon.d.ts +0 -4
  240. package/build/library/components/icons/services/Litter/IconHover.d.ts +0 -4
  241. package/build/library/components/icons/services/LookingAfterYourself/Icon.d.ts +0 -4
  242. package/build/library/components/icons/services/LookingAfterYourself/IconHover.d.ts +0 -4
  243. package/build/library/components/icons/services/MapPin/Icon.d.ts +0 -4
  244. package/build/library/components/icons/services/MapPin/IconHover.d.ts +0 -4
  245. package/build/library/components/icons/services/Member/Icon.d.ts +0 -4
  246. package/build/library/components/icons/services/Member/IconHover.d.ts +0 -4
  247. package/build/library/components/icons/services/MentalHealth/Icon.d.ts +0 -4
  248. package/build/library/components/icons/services/MentalHealth/IconHover.d.ts +0 -4
  249. package/build/library/components/icons/services/MissedBin/Icon.d.ts +0 -4
  250. package/build/library/components/icons/services/MissedBin/IconHover.d.ts +0 -4
  251. package/build/library/components/icons/services/New/Icon.d.ts +0 -4
  252. package/build/library/components/icons/services/New/IconHover.d.ts +0 -4
  253. package/build/library/components/icons/services/OccupationalTherapy/Icon.d.ts +0 -4
  254. package/build/library/components/icons/services/OccupationalTherapy/IconHover.d.ts +0 -4
  255. package/build/library/components/icons/services/ParkEvent/Icon.d.ts +0 -4
  256. package/build/library/components/icons/services/ParkEvent/IconHover.d.ts +0 -4
  257. package/build/library/components/icons/services/Parking/Icon.d.ts +0 -4
  258. package/build/library/components/icons/services/Parking/IconHover.d.ts +0 -4
  259. package/build/library/components/icons/services/ParkingTicket/Icon.d.ts +0 -4
  260. package/build/library/components/icons/services/ParkingTicket/IconHover.d.ts +0 -4
  261. package/build/library/components/icons/services/Pay/Icon.d.ts +0 -4
  262. package/build/library/components/icons/services/Pay/IconHover.d.ts +0 -4
  263. package/build/library/components/icons/services/PhonePay/Icon.d.ts +0 -4
  264. package/build/library/components/icons/services/PhonePay/IconHover.d.ts +0 -4
  265. package/build/library/components/icons/services/Planning/Icon.d.ts +0 -4
  266. package/build/library/components/icons/services/Planning/IconHover.d.ts +0 -4
  267. package/build/library/components/icons/services/Pothole/Icon.d.ts +0 -4
  268. package/build/library/components/icons/services/Pothole/IconHover.d.ts +0 -4
  269. package/build/library/components/icons/services/PreventingFalls/Icon.d.ts +0 -4
  270. package/build/library/components/icons/services/PreventingFalls/IconHover.d.ts +0 -4
  271. package/build/library/components/icons/services/Protect/Icon.d.ts +0 -4
  272. package/build/library/components/icons/services/Protect/IconHover.d.ts +0 -4
  273. package/build/library/components/icons/services/RatePay/Icon.d.ts +0 -4
  274. package/build/library/components/icons/services/RatePay/IconHover.d.ts +0 -4
  275. package/build/library/components/icons/services/RegisterBirth/Icon.d.ts +0 -4
  276. package/build/library/components/icons/services/RegisterBirth/IconHover.d.ts +0 -4
  277. package/build/library/components/icons/services/RegisterDeath/Icon.d.ts +0 -4
  278. package/build/library/components/icons/services/RegisterDeath/IconHover.d.ts +0 -4
  279. package/build/library/components/icons/services/Report/Icon.d.ts +0 -4
  280. package/build/library/components/icons/services/Report/IconHover.d.ts +0 -4
  281. package/build/library/components/icons/services/Restrict/Icon.d.ts +0 -4
  282. package/build/library/components/icons/services/Restrict/IconHover.d.ts +0 -4
  283. package/build/library/components/icons/services/RoadWorks/Icon.d.ts +0 -4
  284. package/build/library/components/icons/services/RoadWorks/IconHover.d.ts +0 -4
  285. package/build/library/components/icons/services/Roads/Icon.d.ts +0 -4
  286. package/build/library/components/icons/services/Roads/IconHover.d.ts +0 -4
  287. package/build/library/components/icons/services/RoyalWebsite/Icon.d.ts +0 -4
  288. package/build/library/components/icons/services/RoyalWebsite/IconHover.d.ts +0 -4
  289. package/build/library/components/icons/services/SEND/Icon.d.ts +0 -4
  290. package/build/library/components/icons/services/SEND/IconHover.d.ts +0 -4
  291. package/build/library/components/icons/services/Safety/Icon.d.ts +0 -4
  292. package/build/library/components/icons/services/Safety/IconHover.d.ts +0 -4
  293. package/build/library/components/icons/services/SchoolAdmissions/Icon.d.ts +0 -4
  294. package/build/library/components/icons/services/SchoolAdmissions/IconHover.d.ts +0 -4
  295. package/build/library/components/icons/services/Schools/Icon.d.ts +0 -4
  296. package/build/library/components/icons/services/Schools/IconHover.d.ts +0 -4
  297. package/build/library/components/icons/services/ServicesIcons.d.ts +0 -173
  298. package/build/library/components/icons/services/SinglePerson/Icon.d.ts +0 -4
  299. package/build/library/components/icons/services/SinglePerson/IconHover.d.ts +0 -4
  300. package/build/library/components/icons/services/Sports/Icon.d.ts +0 -4
  301. package/build/library/components/icons/services/Sports/IconHover.d.ts +0 -4
  302. package/build/library/components/icons/services/Valuation/Icon.d.ts +0 -4
  303. package/build/library/components/icons/services/Valuation/IconHover.d.ts +0 -4
  304. package/build/library/components/icons/services/Venue/Icon.d.ts +0 -4
  305. package/build/library/components/icons/services/Venue/IconHover.d.ts +0 -4
  306. package/build/library/components/icons/services/WasteChecklist/Icon.d.ts +0 -4
  307. package/build/library/components/icons/services/WasteChecklist/IconHover.d.ts +0 -4
  308. package/build/library/components/icons/services/WasteSorting/Icon.d.ts +0 -4
  309. package/build/library/components/icons/services/WasteSorting/IconHover.d.ts +0 -4
  310. package/build/library/components/logos/GDSLogo/logo.d.ts +0 -4
  311. package/build/library/components/logos/GDSLogo/logo.types.d.ts +0 -2
  312. package/build/library/components/logos/NorthColouredLogo/logo.d.ts +0 -4
  313. package/build/library/components/logos/NorthColouredLogo/logo.types.d.ts +0 -2
  314. package/build/library/components/logos/NorthWhiteLogo/logo.d.ts +0 -4
  315. package/build/library/components/logos/NorthWhiteLogo/logo.types.d.ts +0 -2
  316. package/build/library/components/logos/WestColouredLogo/logo.d.ts +0 -4
  317. package/build/library/components/logos/WestColouredLogo/logo.types.d.ts +0 -2
  318. package/build/library/components/logos/WestWhiteLogo/logo.d.ts +0 -4
  319. package/build/library/components/logos/WestWhiteLogo/logo.types.d.ts +0 -2
  320. package/build/library/contexts/DirectoryShortListProvider/DirectoryShortListProvider.d.ts +0 -4
  321. package/build/library/contexts/DirectoryShortListProvider/DirectoryShortListProvider.types.d.ts +0 -55
  322. package/build/library/contexts/PostCodeAddressProvider/PostCodeAddressProvider.d.ts +0 -6
  323. package/build/library/contexts/PostCodeAddressProvider/PostCodeAddressProvider.types.d.ts +0 -18
  324. package/build/library/directory/DirectoryAddToShortList/DirectoryAddToShortList.d.ts +0 -4
  325. package/build/library/directory/DirectoryAddToShortList/DirectoryAddToShortList.test.d.ts +0 -1
  326. package/build/library/directory/DirectoryAddToShortList/DirectoryAddToShortList.types.d.ts +0 -26
  327. package/build/library/directory/DirectoryDocumentList/DirectoryDocumentList.d.ts +0 -4
  328. package/build/library/directory/DirectoryDocumentList/DirectoryDocumentList.storydata.d.ts +0 -4
  329. package/build/library/directory/DirectoryDocumentList/DirectoryDocumentList.test.d.ts +0 -1
  330. package/build/library/directory/DirectoryDocumentList/DirectoryDocumentList.types.d.ts +0 -63
  331. package/build/library/directory/DirectoryMap/DirectoryMap.d.ts +0 -4
  332. package/build/library/directory/DirectoryMap/DirectoryMap.types.d.ts +0 -11
  333. package/build/library/directory/DirectoryService/DirectoryService.d.ts +0 -4
  334. package/build/library/directory/DirectoryService/DirectoryService.storydata.d.ts +0 -4
  335. package/build/library/directory/DirectoryService/DirectoryService.test.d.ts +0 -1
  336. package/build/library/directory/DirectoryService/DirectoryService.types.d.ts +0 -278
  337. package/build/library/directory/DirectoryService/DirectoryServiceTransform.d.ts +0 -8
  338. package/build/library/directory/DirectoryServiceList/DirectoryServiceList.d.ts +0 -4
  339. package/build/library/directory/DirectoryServiceList/DirectoryServiceList.storydata.d.ts +0 -6
  340. package/build/library/directory/DirectoryServiceList/DirectoryServiceList.test.d.ts +0 -1
  341. package/build/library/directory/DirectoryServiceList/DirectoryServiceList.types.d.ts +0 -136
  342. package/build/library/directory/DirectoryShortList/DirectoryShortList.d.ts +0 -4
  343. package/build/library/directory/DirectoryShortList/DirectoryShortList.test.d.ts +0 -1
  344. package/build/library/directory/DirectoryShortList/DirectoryShortList.types.d.ts +0 -6
  345. package/build/library/directory/ServiceContact/ServiceContact.d.ts +0 -4
  346. package/build/library/directory/ServiceContact/ServiceContact.test.d.ts +0 -1
  347. package/build/library/directory/ServiceContact/ServiceContact.types.d.ts +0 -42
  348. package/build/library/directory/ServiceSocialLinks/ServiceSocialLinks.d.ts +0 -4
  349. package/build/library/directory/ServiceSocialLinks/ServiceSocialLinks.storydata.d.ts +0 -2
  350. package/build/library/directory/ServiceSocialLinks/ServiceSocialLinks.test.d.ts +0 -1
  351. package/build/library/directory/ServiceSocialLinks/ServiceSocialLinks.types.d.ts +0 -24
  352. package/build/library/helpers/UseLocalStorage.d.ts +0 -2
  353. package/build/library/helpers/api-helpers.d.ts +0 -120
  354. package/build/library/pages/ContentPage/ContentPage.d.ts +0 -4
  355. package/build/library/pages/ContentPage/ContentPage.storydata.d.ts +0 -10
  356. package/build/library/pages/CouncilTaxPageExample/CouncilTaxPageExample.d.ts +0 -5
  357. package/build/library/pages/CouncilTaxParishPageExample/CouncilTaxParishPageExample.d.ts +0 -5
  358. package/build/library/pages/DirectoryServicePage/DirectoryServicePage.d.ts +0 -2
  359. package/build/library/pages/ErrorPage/ErrorPage.d.ts +0 -6
  360. package/build/library/pages/Home/HomePage.d.ts +0 -8
  361. package/build/library/pages/Home/HomePage.types.d.ts +0 -60
  362. package/build/library/pages/MemorialPage/MemorialPage.d.ts +0 -8
  363. package/build/library/pages/MemorialPage/MemorialPage.types.d.ts +0 -59
  364. package/build/library/pages/News/News.d.ts +0 -5
  365. package/build/library/pages/NewsArticle/NewsArticle.d.ts +0 -7
  366. package/build/library/pages/SearchResultsPageExample/SearchResultsPageExample.d.ts +0 -29
  367. package/build/library/pages/ServiceLandingPageExample/ServiceLandingPageExample.d.ts +0 -3
  368. package/build/library/pages/ServiceLandingPageExample/ServiceLandingPageExample.storydata.d.ts +0 -30
  369. package/build/library/pages/ServiceLandingPageExample/ServiceLandingPageExample.types.d.ts +0 -52
  370. package/build/library/pages/ServicePageExample/ServicePageExample.d.ts +0 -7
  371. package/build/library/pages/SignpostPageExample/SignpostPageExample.d.ts +0 -7
  372. package/build/library/pages/Templates/Templates.d.ts +0 -8
  373. package/build/library/slices/Accordion/Accordion.d.ts +0 -4
  374. package/build/library/slices/Accordion/Accordion.test.d.ts +0 -1
  375. package/build/library/slices/Accordion/Accordion.types.d.ts +0 -52
  376. package/build/library/slices/Accordion/AccordionSection.d.ts +0 -4
  377. package/build/library/slices/BlockQuote/BlockQuote.d.ts +0 -4
  378. package/build/library/slices/BlockQuote/BlockQuote.types.d.ts +0 -10
  379. package/build/library/slices/CallToAction/CallToAction.d.ts +0 -7
  380. package/build/library/slices/Cards/Cards.d.ts +0 -7
  381. package/build/library/slices/Cards/Cards.test.d.ts +0 -1
  382. package/build/library/slices/Cards/Cards.types.d.ts +0 -7
  383. package/build/library/slices/CouncilTaxAlphabeticalDirectory/CouncilTaxAlphabeticalDirectory.d.ts +0 -7
  384. package/build/library/slices/CouncilTaxAlphabeticalDirectory/CouncilTaxAlphabeticalDirectory.storydata.d.ts +0 -4
  385. package/build/library/slices/CouncilTaxAlphabeticalDirectory/CouncilTaxAlphabeticalDirectory.test.d.ts +0 -1
  386. package/build/library/slices/CouncilTaxAlphabeticalDirectory/CouncilTaxAlphabeticalDirectory.types.d.ts +0 -81
  387. package/build/library/slices/Divider/Divider.d.ts +0 -4
  388. package/build/library/slices/Divider/Divider.types.d.ts +0 -2
  389. package/build/library/slices/DownloadableFiles/DownloadableFiles.d.ts +0 -4
  390. package/build/library/slices/DownloadableFiles/DownloadableFiles.types.d.ts +0 -7
  391. package/build/library/slices/GoogleMap/GoogleMap.d.ts +0 -7
  392. package/build/library/slices/GoogleMap/GoogleMap.storydata.d.ts +0 -44
  393. package/build/library/slices/GoogleMap/GoogleMap.test.d.ts +0 -1
  394. package/build/library/slices/GoogleMap/GoogleMap.types.d.ts +0 -28
  395. package/build/library/slices/Image/Image.d.ts +0 -8
  396. package/build/library/slices/Image/Image.storydata.d.ts +0 -2
  397. package/build/library/slices/Image/Image.test.d.ts +0 -1
  398. package/build/library/slices/Image/Image.types.d.ts +0 -26
  399. package/build/library/slices/ImageAndText/ImageAndText.d.ts +0 -7
  400. package/build/library/slices/ImageAndText/ImageAndText.storydata.d.ts +0 -2
  401. package/build/library/slices/ImageAndText/ImageAndText.test.d.ts +0 -1
  402. package/build/library/slices/ImageAndText/ImageAndText.types.d.ts +0 -15
  403. package/build/library/slices/InquestSchedule/InquestSchedule.d.ts +0 -7
  404. package/build/library/slices/InquestSchedule/InquestSchedule.storydata.d.ts +0 -2
  405. package/build/library/slices/InquestSchedule/InquestSchedule.test.d.ts +0 -1
  406. package/build/library/slices/InquestSchedule/InquestSchedule.types.d.ts +0 -24
  407. package/build/library/slices/Promotions/Promotions.d.ts +0 -7
  408. package/build/library/slices/SearchBox/SearchBox.d.ts +0 -4
  409. package/build/library/slices/SearchBox/SearchBox.storydata.d.ts +0 -2
  410. package/build/library/slices/SearchBox/SearchBox.test.d.ts +0 -1
  411. package/build/library/slices/SearchBox/SearchBox.types.d.ts +0 -41
  412. package/build/library/slices/Video/Video.d.ts +0 -7
  413. package/build/library/slices/Video/Video.test.d.ts +0 -1
  414. package/build/library/slices/Video/Video.types.d.ts +0 -22
  415. package/build/library/slices/WarningText/WarningText.d.ts +0 -7
  416. package/build/library/slices/WarningText/WarningText.test.d.ts +0 -1
  417. package/build/library/slices/WarningText/WarningText.types.d.ts +0 -14
  418. package/build/library/slices/WarningTextDisclaimer/WarningTextDisclaimer.d.ts +0 -4
  419. package/build/library/slices/WarningTextDisclaimer/WarningTextDisclaimer.types.d.ts +0 -2
  420. package/build/library/structure/AccessibleLinks/AccessibleLinks.d.ts +0 -4
  421. package/build/library/structure/AccessibleLinks/AccessibleLinks.types.d.ts +0 -22
  422. package/build/library/structure/AlertBanner/AlertBanner.d.ts +0 -7
  423. package/build/library/structure/AlertBanner/AlertBanner.test.d.ts +0 -1
  424. package/build/library/structure/AlertBanner/AlertBanner.types.d.ts +0 -18
  425. package/build/library/structure/AlertBannerService/AlertBannerService.d.ts +0 -8
  426. package/build/library/structure/AlertBannerService/AlertBannerService.test.d.ts +0 -1
  427. package/build/library/structure/AlertBannerService/AlertBannerService.types.d.ts +0 -18
  428. package/build/library/structure/BackLink/BackLink.d.ts +0 -7
  429. package/build/library/structure/BackLink/BackLink.test.d.ts +0 -1
  430. package/build/library/structure/BackLink/BackLink.types.d.ts +0 -10
  431. package/build/library/structure/Breadcrumbs/Breadcrumbs.d.ts +0 -4
  432. package/build/library/structure/Breadcrumbs/Breadcrumbs.test.d.ts +0 -1
  433. package/build/library/structure/Breadcrumbs/Breadcrumbs.types.d.ts +0 -20
  434. package/build/library/structure/Contents/Contents.d.ts +0 -4
  435. package/build/library/structure/Contents/Contents.storydata.d.ts +0 -2
  436. package/build/library/structure/Contents/Contents.test.d.ts +0 -1
  437. package/build/library/structure/Contents/Contents.types.d.ts +0 -24
  438. package/build/library/structure/ContentsNavigation/ContentsNavigation.d.ts +0 -4
  439. package/build/library/structure/ContentsNavigation/ContentsNavigation.test.d.ts +0 -1
  440. package/build/library/structure/CookieBanner/CookieBanner.d.ts +0 -6
  441. package/build/library/structure/CookieBanner/CookieBanner.types.d.ts +0 -30
  442. package/build/library/structure/CookieBanner/CookieClear.d.ts +0 -5
  443. package/build/library/structure/DisplayDate/DisplayDate.d.ts +0 -7
  444. package/build/library/structure/DisplayDate/DisplayDate.types.d.ts +0 -18
  445. package/build/library/structure/Footer/Footer.d.ts +0 -4
  446. package/build/library/structure/Footer/Footer.test.d.ts +0 -1
  447. package/build/library/structure/Footer/Footer.types.d.ts +0 -24
  448. package/build/library/structure/FullWidthContainer/FullWidthContainer.d.ts +0 -7
  449. package/build/library/structure/FullWidthContainer/FullWidthContainer.test.d.ts +0 -1
  450. package/build/library/structure/FullWidthContainer/FullWidthContainer.types.d.ts +0 -15
  451. package/build/library/structure/Header/Header.d.ts +0 -7
  452. package/build/library/structure/Header/Header.test.d.ts +0 -1
  453. package/build/library/structure/Header/Header.types.d.ts +0 -30
  454. package/build/library/structure/HeroImage/HeroImage.d.ts +0 -8
  455. package/build/library/structure/HeroImage/HeroImage.storydata.d.ts +0 -6
  456. package/build/library/structure/HeroImage/HeroImage.test.d.ts +0 -1
  457. package/build/library/structure/HeroImage/HeroImage.types.d.ts +0 -52
  458. package/build/library/structure/HomeHero/HomeHero.d.ts +0 -7
  459. package/build/library/structure/HomeHero/HomeHero.storydata.d.ts +0 -14
  460. package/build/library/structure/HomeHero/HomeHero.test.d.ts +0 -1
  461. package/build/library/structure/HomeHero/HomeHero.types.d.ts +0 -54
  462. package/build/library/structure/MaxWidthContainer/MaxWidthContainer.d.ts +0 -7
  463. package/build/library/structure/MaxWidthContainer/MaxWidthContainer.types.d.ts +0 -22
  464. package/build/library/structure/MemorialHero/MemorialHero.d.ts +0 -4
  465. package/build/library/structure/MemorialHero/MemorialHero.types.d.ts +0 -27
  466. package/build/library/structure/NewsArticleDate/NewsArticleDate.d.ts +0 -7
  467. package/build/library/structure/NewsArticleDate/NewsArticleDate.types.d.ts +0 -10
  468. package/build/library/structure/NewsArticleFeaturedBlock/NewsArticleFeaturedBlock.d.ts +0 -7
  469. package/build/library/structure/NewsArticleFeaturedBlock/NewsArticleFeaturedBlock.test.d.ts +0 -1
  470. package/build/library/structure/NewsArticleFeaturedBlock/NewsArticleFeaturedBlock.types.d.ts +0 -23
  471. package/build/library/structure/NewsArticleFilterAccordion/NewsArticleFilterAccordion.d.ts +0 -4
  472. package/build/library/structure/NewsArticleFilterAccordion/NewsArticleFilterAccordion.types.d.ts +0 -7
  473. package/build/library/structure/NewsArticleImage/NewsArticleImage.d.ts +0 -7
  474. package/build/library/structure/NewsArticleImage/NewsArticleImage.types.d.ts +0 -18
  475. package/build/library/structure/NewsArticleList/NewsArticleData.d.ts +0 -7
  476. package/build/library/structure/NewsArticleList/NewsArticleList.d.ts +0 -4
  477. package/build/library/structure/NewsArticleList/NewsArticleList.test.d.ts +0 -1
  478. package/build/library/structure/NewsArticleList/NewsArticleList.types.d.ts +0 -28
  479. package/build/library/structure/NewsArticleListHeader/NewsArticleListHeader.d.ts +0 -4
  480. package/build/library/structure/NewsArticleListHeader/NewsArticleListHeader.types.d.ts +0 -6
  481. package/build/library/structure/NewsArticleOldBanner/NewsArticleOldBanner.d.ts +0 -7
  482. package/build/library/structure/NewsArticleOldBanner/NewsArticleOldBanner.types.d.ts +0 -2
  483. package/build/library/structure/PageMain/PageMain.d.ts +0 -7
  484. package/build/library/structure/PageMain/PageMain.test.d.ts +0 -1
  485. package/build/library/structure/PageMain/PageMain.types.d.ts +0 -14
  486. package/build/library/structure/PageSidebar/PageSidebar.d.ts +0 -7
  487. package/build/library/structure/PageSidebar/PageSidebar.types.d.ts +0 -6
  488. package/build/library/structure/PageStructures.d.ts +0 -42
  489. package/build/library/structure/PageTitle/PageTitle.d.ts +0 -7
  490. package/build/library/structure/PageTitle/PageTitle.types.d.ts +0 -11
  491. package/build/library/structure/PageWithSidebarContainer/PageWithSidebarContainer.d.ts +0 -7
  492. package/build/library/structure/PageWithSidebarContainer/PageWithSidebarContainer.types.d.ts +0 -10
  493. package/build/library/structure/PageWrapper/PageWrapper.d.ts +0 -4
  494. package/build/library/structure/PageWrapper/PageWrapper.types.d.ts +0 -11
  495. package/build/library/structure/PhaseBanner/PhaseBanner.d.ts +0 -4
  496. package/build/library/structure/PhaseBanner/PhaseBanner.types.d.ts +0 -3
  497. package/build/library/structure/PromoBanner/PromoBanner.d.ts +0 -8
  498. package/build/library/structure/PromoBanner/PromoBanner.storydata.d.ts +0 -9
  499. package/build/library/structure/PromoBanner/PromoBanner.test.d.ts +0 -1
  500. package/build/library/structure/PromoBanner/PromoBanner.types.d.ts +0 -26
  501. package/build/library/structure/PromoBlock/PromoBlock.d.ts +0 -8
  502. package/build/library/structure/PromoBlock/PromoBlock.storydata.d.ts +0 -5
  503. package/build/library/structure/PromoBlock/PromoBlock.test.d.ts +0 -1
  504. package/build/library/structure/PromoBlock/PromoBlock.types.d.ts +0 -36
  505. package/build/library/structure/SearchHeader/SearchHeader.d.ts +0 -4
  506. package/build/library/structure/SearchHeader/SearchHeader.types.d.ts +0 -2
  507. package/build/library/structure/SearchResultsList/NoResultsMessage.d.ts +0 -3
  508. package/build/library/structure/SearchResultsList/SearchResultsList.d.ts +0 -4
  509. package/build/library/structure/SearchResultsList/SearchResultsList.test.d.ts +0 -1
  510. package/build/library/structure/SearchResultsList/SearchResultsList.types.d.ts +0 -46
  511. package/build/library/structure/Searchbar/Searchbar.d.ts +0 -4
  512. package/build/library/structure/Searchbar/Searchbar.test.d.ts +0 -1
  513. package/build/library/structure/Searchbar/Searchbar.types.d.ts +0 -48
  514. package/build/library/structure/SectionLinks/SectionLinks.d.ts +0 -7
  515. package/build/library/structure/SectionLinks/SectionLinks.storydata.d.ts +0 -2
  516. package/build/library/structure/SectionLinks/SectionLinks.test.d.ts +0 -1
  517. package/build/library/structure/SectionLinks/SectionLinks.types.d.ts +0 -52
  518. package/build/library/structure/SectionLinksMobileContents/SectionLinksMobileContents.d.ts +0 -4
  519. package/build/library/structure/SectionLinksMobileContents/SectionLinksMobileContents.types.d.ts +0 -16
  520. package/build/library/structure/SectionLinksSidebar/SectionLinksSidebar.d.ts +0 -4
  521. package/build/library/structure/SectionLinksSidebar/SectionLinksSidebar.test.d.ts +0 -1
  522. package/build/library/structure/SectionLinksSidebar/SectionLinksSidebar.types.d.ts +0 -34
  523. package/build/library/structure/ServicesLinksBoxed/ServicesLinksBoxed.d.ts +0 -4
  524. package/build/library/structure/ServicesLinksBoxed/ServicesLinksBoxed.storydata.d.ts +0 -9
  525. package/build/library/structure/ServicesLinksBoxed/ServicesLinksBoxed.test.d.ts +0 -1
  526. package/build/library/structure/ServicesLinksBoxed/ServicesLinksBoxed.types.d.ts +0 -53
  527. package/build/library/structure/ServicesLinksList/ServicesLinksList.d.ts +0 -4
  528. package/build/library/structure/ServicesLinksList/ServicesLinksList.test.d.ts +0 -1
  529. package/build/library/structure/ServicesLinksList/ServicesLinksList.types.d.ts +0 -68
  530. package/build/library/structure/SignpostLinks/SignpostLinks.d.ts +0 -4
  531. package/build/library/structure/SignpostLinks/SignpostLinks.types.d.ts +0 -32
  532. package/build/library/structure/SkipToMainContent/SkipToMainContent.d.ts +0 -4
  533. package/build/library/structure/SkipToMainContent/SkipToMainContent.test.d.ts +0 -1
  534. package/build/library/structure/SkipToMainContent/SkipToMainContent.types.d.ts +0 -2
  535. package/build/library/structure/Summary/Summary.d.ts +0 -4
  536. package/build/library/structure/Summary/Summary.test.d.ts +0 -1
  537. package/build/library/structure/Summary/Summary.types.d.ts +0 -15
  538. package/build/themes/ThemeVars.types.d.ts +0 -60
  539. /package/build/{library/components/Autocomplete/Autocomplete.test.d.ts → src/library/directory/DirectoryService/DirectoryServiceTransform.test.d.ts} +0 -0
package/build/index.js CHANGED
@@ -30402,11 +30402,14 @@ var transformTaxonomies = function (service_taxonomys, taxonomiesToShow) {
30402
30402
  var transformAge = function (age, ageInMonths) {
30403
30403
  if (ageInMonths === void 0) { ageInMonths = false; }
30404
30404
  if (age === 0) {
30405
- return age;
30405
+ return age.toString();
30406
30406
  }
30407
30407
  if (ageInMonths) {
30408
30408
  if (age > 36) {
30409
- return Math.ceil(age / 12) + ' years';
30409
+ if (age % 12 === 0) {
30410
+ return Math.ceil(age / 12) + ' years';
30411
+ }
30412
+ return Math.floor(age / 12) + ' years and ' + (age % 12) + (age % 12 === 1 ? ' month' : ' months');
30410
30413
  }
30411
30414
  return "".concat(age, " months");
30412
30415
  }
@@ -30523,11 +30526,11 @@ var HeartIcon = function (_a) {
30523
30526
  };
30524
30527
 
30525
30528
  var DirectoryAddToShortList = function (_a) {
30526
- var id = _a.id, name = _a.name, snippet = _a.snippet, email = _a.email, website = _a.website, phone = _a.phone;
30529
+ 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;
30527
30530
  var _b = useDirectoryShortListContext(), toggleFavourites = _b.toggleFavourites, isFavourite = _b.isFavourite;
30528
30531
  var themeContext = React.useContext(styled.ThemeContext);
30529
30532
  var favourite = isFavourite(id);
30530
- return (React__default.default.createElement(AddToShortlist, { onClick: function (e) { return toggleFavourites(id, name, snippet, email, website, phone); }, "data-testid": "DirectoryAddToShortList", "$favourite": favourite },
30533
+ return (React__default.default.createElement(AddToShortlist, { onClick: function (e) { return toggleFavourites(id, name, snippet, email, website, phone, addresses, fees); }, "data-testid": "DirectoryAddToShortList", "$favourite": favourite },
30531
30534
  favourite ? (React__default.default.createElement(IconDownload$1, { colourFill: themeContext.theme_vars.colours.negative })) : (React__default.default.createElement(HeartIcon, { colourFill: themeContext.theme_vars.colours.action })),
30532
30535
  favourite ? React__default.default.createElement(React__default.default.Fragment, null, "Remove from shortlist") : React__default.default.createElement(React__default.default.Fragment, null, "Add to shortlist")));
30533
30536
  };
@@ -30620,7 +30623,9 @@ var DirectoryService = function (_a) {
30620
30623
  " Shortlist (",
30621
30624
  favourites.length,
30622
30625
  ")")),
30623
- React__default.default.createElement(DirectoryAddToShortList, { id: id, name: name, snippet: transformSnippet(description, 350), email: email, website: url, phone: (_c = (_b = contacts === null || contacts === void 0 ? void 0 : contacts[0]) === null || _b === void 0 ? void 0 : _b.phones) === null || _c === void 0 ? void 0 : _c.flatMap(function (phone) { return phone.number; }).join(', ') })))))),
30626
+ React__default.default.createElement(DirectoryAddToShortList, { id: id, name: name, snippet: transformSnippet(description, 350), email: email, website: url, phone: (_c = (_b = contacts === null || contacts === void 0 ? void 0 : contacts[0]) === null || _b === void 0 ? void 0 : _b.phones) === null || _c === void 0 ? void 0 : _c.flatMap(function (phone) { return phone.number; }).join(', '), addresses: service_at_locations.flatMap(function (location) {
30627
+ return location.physical_addresses;
30628
+ }), fees: fees })))))),
30624
30629
  service_at_locations.filter(function (location) {
30625
30630
  return location.is_visitable != false;
30626
30631
  }).length > 0 && (React__default.default.createElement(Column, { small: "full", medium: "full", large: "full", classes: "striped-column" },
@@ -30635,7 +30640,7 @@ var DirectoryService = function (_a) {
30635
30640
  .filter(function (item) { return item !== '' && item !== address.id; })
30636
30641
  .join(' <br />'),
30637
30642
  } }),
30638
- React__default.default.createElement(Button$4, { url: "https://google.com/maps/dir//".concat(location.latitude, ",").concat(location.longitude), text: "Get directions" }))); }),
30643
+ location.latitude && location.longitude && (React__default.default.createElement(Button$4, { url: "https://google.com/maps/dir//".concat(location.latitude, ",").concat(location.longitude), text: "Get directions" })))); }),
30639
30644
  (location === null || location === void 0 ? void 0 : location.accessibility_for_disabilities.length) > 0 && (React__default.default.createElement(React__default.default.Fragment, null,
30640
30645
  React__default.default.createElement(Heading, { level: 3, text: "Other facilities on site" }),
30641
30646
  React__default.default.createElement("ul", null, location.accessibility_for_disabilities.map(function (accessibility) { return (React__default.default.createElement("li", { key: accessibility.id }, accessibility.accessibility)); })))))); })),
@@ -30746,7 +30751,7 @@ styled__default.default.div`
30746
30751
  color: ${(props) => props.theme.theme_vars.colours.grey_dark};
30747
30752
  `;
30748
30753
 
30749
- const ButtonContainer$1 = styled__default.default.div`
30754
+ const ButtonContainer$2 = styled__default.default.div`
30750
30755
  display: flex;
30751
30756
  align-items: end;
30752
30757
  padding-bottom: 0;
@@ -30754,23 +30759,35 @@ const ButtonContainer$1 = styled__default.default.div`
30754
30759
  `;
30755
30760
 
30756
30761
  const Button$1 = styled__default.default.button`
30757
- border: 1px solid ${(props) => props.theme.theme_vars.colours.white};
30758
- background: ${(props) => props.theme.theme_vars.colours.action};
30759
- color: ${(props) => props.theme.theme_vars.colours.white};
30760
- padding: ${(props) => props.theme.theme_vars.spacingSizes.small};
30761
- cursor: pointer;
30762
- border-radius: ${(props) => props.theme.theme_vars.border_radius};
30763
- min-height: 42px;
30764
- margin-right: ${(props) => props.theme.theme_vars.spacingSizes.medium};
30762
+ border: ${(props) => (props.$isWarning ? `3px` : `1px`)} solid
30763
+ ${(props) => (props.$isWarning ? props.theme.theme_vars.colours.negative : props.theme.theme_vars.colours.white)};
30764
+ background: ${(props) =>
30765
+ props.$isWarning ? props.theme.theme_vars.colours.white : props.theme.theme_vars.colours.action};
30766
+ color: ${(props) =>
30767
+ props.$isWarning ? props.theme.theme_vars.colours.negative : props.theme.theme_vars.colours.white};
30768
+ padding: ${(props) => props.theme.theme_vars.spacingSizes.small};
30769
+ cursor: pointer;
30770
+ border-radius: ${(props) => props.theme.theme_vars.border_radius};
30771
+ min-height: 42px;
30772
+ margin-right: ${(props) => props.theme.theme_vars.spacingSizes.medium};
30773
+ font-weight: bold;
30765
30774
 
30766
- &:hover {
30767
- background: ${(props) => props.theme.theme_vars.colours.action_dark};
30768
- }
30775
+ &:hover {
30776
+ background: ${(props) =>
30777
+ props.$isWarning ? props.theme.theme_vars.colours.action_light : props.theme.theme_vars.colours.action_dark};
30778
+ color: ${(props) =>
30779
+ props.$isWarning ? props.theme.theme_vars.colours.action_dark : props.theme.theme_vars.colours.white};
30780
+ text-decoration: underline;
30781
+ text-decoration-style: dotted;
30782
+ }
30769
30783
 
30770
- &:focus {
30771
- outline: none;
30772
- background: ${(props) => props.theme.theme_vars.colours.focus};
30773
- }
30784
+ &:focus {
30785
+ ${(props) => props.theme.linkStylesFocus}
30786
+ }
30787
+
30788
+ &:active {
30789
+ ${(props) => props.theme.linkStylesActive}
30790
+ }
30774
30791
  `;
30775
30792
 
30776
30793
  const ButtonText$1 = styled__default.default.span`
@@ -30850,28 +30867,29 @@ const Legend$1 = styled__default.default.legend`
30850
30867
  `;
30851
30868
 
30852
30869
  const LegendButton = styled__default.default.button`
30853
- position: relative;
30854
- background: none;
30855
- border: none;
30856
- color: ${(props) => props.theme.theme_vars.colours.action};
30857
- width: 100%;
30858
- white-space: normal;
30859
- cursor: pointer;
30860
- text-align: left;
30861
- padding-right: 30px;
30862
- padding-top: ${(props) => props.theme.theme_vars.spacingSizes.small};
30863
- padding-bottom: ${(props) => props.theme.theme_vars.spacingSizes.small};
30864
- ${(props) => props.theme.theme_vars.h4}
30865
- ${(props) => props.theme.linkStyles}
30866
- &:hover {
30867
- ${(props) => props.theme.linkStylesHover}
30868
- }
30869
- &:focus {
30870
- ${(props) => props.theme.linkStylesFocus}
30871
- }
30872
- &:active {
30873
- ${(props) => props.theme.linkStylesActive}
30874
- }
30870
+ position: relative;
30871
+ background: none;
30872
+ border: none;
30873
+ color: ${(props) => props.theme.theme_vars.colours.action};
30874
+ width: 100%;
30875
+ white-space: normal;
30876
+ cursor: pointer;
30877
+ text-align: left;
30878
+ padding-right: 30px;
30879
+ padding-top: ${(props) => props.theme.theme_vars.spacingSizes.small};
30880
+ padding-bottom: ${(props) => props.theme.theme_vars.spacingSizes.small};
30881
+ ${(props) => props.theme.theme_vars.h4}
30882
+ ${(props) => props.theme.linkStyles}
30883
+ &:hover {
30884
+ ${(props) => props.theme.linkStylesHover}
30885
+ }
30886
+ &:focus {
30887
+ ${(props) => props.theme.linkStylesFocus}
30888
+ }
30889
+ &:active {
30890
+ ${(props) => props.theme.linkStylesActive}
30891
+ }
30892
+ margin: 0;
30875
30893
  `;
30876
30894
 
30877
30895
  const AccordionIcon = styled__default.default.span`
@@ -31185,24 +31203,24 @@ var RadioCheckboxInput = function (_a) {
31185
31203
  };
31186
31204
 
31187
31205
  var DirectoryServiceList = function (_a) {
31188
- 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;
31189
- var _r = useLocalStorage("".concat(directoryPath.replace(/\//g, ''), "-accordion"), []), accordions = _r[0], setAccordions = _r[1];
31190
- var _s = useLocalStorage("".concat(directoryPath.replace(/\//g, ''), "-accordion-all"), true), openAll = _s[0], setOpenAll = _s[1];
31191
- var _t = useLocalStorage("".concat(directoryPath.replace(/\//g, ''), "-show-map"), false), showMap = _t[0], setShowMap = _t[1];
31192
- var _u = React.useState(false), showFilters = _u[0], setShowFilters = _u[1];
31193
- var _v = useDirectoryShortListContext(), _w = _v.favourites, favourites = _w.favourites; _w.setFavourites; _v.toggleFavourites; _v.isFavourite;
31194
- var _x = React.useState(false), notServer = _x[0], setNotServer = _x[1];
31195
- var _y = React.useState(search), searchTerm = _y[0], setSearchTerm = _y[1];
31196
- var _z = React.useState(postcode), postcodeSearch = _z[0], setPostcodeSearch = _z[1];
31206
+ 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;
31207
+ var _u = useLocalStorage("".concat(directoryPath.replace(/\//g, ''), "-accordion"), []), accordions = _u[0], setAccordions = _u[1];
31208
+ var _v = useLocalStorage("".concat(directoryPath.replace(/\//g, ''), "-accordion-all"), true), openAll = _v[0], setOpenAll = _v[1];
31209
+ var _w = useLocalStorage("".concat(directoryPath.replace(/\//g, ''), "-show-map"), false), showMap = _w[0], setShowMap = _w[1];
31210
+ var _x = React.useState(false), showFilters = _x[0], setShowFilters = _x[1];
31211
+ var _y = useDirectoryShortListContext(), _z = _y.favourites, favourites = _z.favourites; _z.setFavourites; _y.toggleFavourites; _y.isFavourite;
31212
+ var _0 = React.useState(false), notServer = _0[0], setNotServer = _0[1];
31213
+ var _1 = React.useState(search), searchTerm = _1[0], setSearchTerm = _1[1];
31214
+ var _2 = React.useState(postcode), postcodeSearch = _2[0], setPostcodeSearch = _2[1];
31197
31215
  var themeContext = React.useContext(styled.ThemeContext);
31198
- var _0 = React.useState(false), filtersActive = _0[0], setFiltersActive = _0[1];
31216
+ var _3 = React.useState(false), filtersActive = _3[0], setFiltersActive = _3[1];
31199
31217
  React.useEffect(function () {
31200
31218
  setNotServer(true);
31201
31219
  setFiltersActive(hasActiveFilters());
31202
31220
  }, []);
31203
31221
  React.useEffect(function () {
31204
31222
  setFiltersActive(hasActiveFilters());
31205
- }, [minimumAge, maximumAge, categories]);
31223
+ }, [minimumAge, maximumAge, categories, search, postcode]);
31206
31224
  if (accordions.length === 0) {
31207
31225
  var tempAccordions_1 = [];
31208
31226
  categories === null || categories === void 0 ? void 0 : categories.forEach(function () {
@@ -31297,7 +31315,9 @@ var DirectoryServiceList = function (_a) {
31297
31315
  }
31298
31316
  };
31299
31317
  var hasActiveFilters = function () {
31300
- return (maximumAge !== '' ||
31318
+ return (search !== '' ||
31319
+ postcode !== '' ||
31320
+ maximumAge !== '' ||
31301
31321
  minimumAge !== '' ||
31302
31322
  categories.some(function (category) {
31303
31323
  return category.options.some(function (option) {
@@ -31317,15 +31337,17 @@ var DirectoryServiceList = function (_a) {
31317
31337
  React__default.default.createElement(Input, { name: "directorySearch", type: "text", defaultValue: searchTerm, id: "directorySearch", onChange: function (e) {
31318
31338
  setSearchTerm(e.target.value);
31319
31339
  } })),
31320
- React__default.default.createElement(Column, { small: "full", medium: "one-half", large: "one-third" },
31340
+ showPostcodeSearch && (React__default.default.createElement(Column, { small: "full", medium: "one-half", large: "one-third" },
31321
31341
  React__default.default.createElement(Label$1, { htmlFor: "postcode" }, "Postcode (optional)"),
31322
- React__default.default.createElement(HintText, { text: "Enter a postcode" }),
31323
- React__default.default.createElement(Input, { name: "postcode", type: "text", defaultValue: postcodeSearch, id: "postcode", onChange: function (e) { return setPostcodeSearch(e.target.value); }, autocomplete: "postal-code" })),
31342
+ React__default.default.createElement(HintText, { text: "Enter a postcode to see results within ".concat(proximity, " miles") }),
31343
+ React__default.default.createElement(Input, { name: "postcode", type: "text", defaultValue: postcodeSearch, id: "postcode", onChange: function (e) { return setPostcodeSearch(e.target.value); }, autocomplete: "postal-code" }))),
31324
31344
  React__default.default.createElement(Column, { small: "full", medium: "one-half", large: "one-third" },
31325
- React__default.default.createElement(ButtonContainer$1, null,
31345
+ React__default.default.createElement(ButtonContainer$2, null,
31326
31346
  React__default.default.createElement(Button$1, { onClick: submitSearch, type: "submit" },
31327
31347
  React__default.default.createElement(ButtonText$1, null, "Search"),
31328
- React__default.default.createElement(IconDownload, { colourFill: "#fff" })))),
31348
+ React__default.default.createElement(IconDownload, { colourFill: "#fff" })),
31349
+ filtersActive && (React__default.default.createElement(Button$1, { onClick: clearSearch, type: "button", "$isWarning": true },
31350
+ React__default.default.createElement(ButtonText$1, null, "Clear search"))))),
31329
31351
  hasDocuments && (React__default.default.createElement(Column, { small: "full", medium: "full", large: "full" },
31330
31352
  React__default.default.createElement(Button$4, { url: "".concat(directoryPath, "/documents?search=").concat(searchTerm), text: "View documents and resources", primary: false }))))))),
31331
31353
  React__default.default.createElement(Column, { small: "full", medium: "one-third", large: "one-third" },
@@ -31363,14 +31385,16 @@ var DirectoryServiceList = function (_a) {
31363
31385
  React__default.default.createElement(Legend$1, null,
31364
31386
  React__default.default.createElement(LegendButton, { onClick: function (e) { return toggleAccordion(categoryIndex + 1); }, type: "button" },
31365
31387
  category.label,
31366
- React__default.default.createElement(AccordionIcon, { isOpen: accordions[categoryIndex + 1] }))),
31388
+ React__default.default.createElement(AccordionIcon, { "$isOpen": accordions[categoryIndex + 1] }))),
31367
31389
  React__default.default.createElement(Accordion, { "$isOpen": accordions[categoryIndex + 1] },
31368
31390
  React__default.default.createElement(ClearFilter$1, null,
31369
31391
  React__default.default.createElement(TextLink$1, { onClick: function (e) { return clearCategory(categoryIndex); } }, "Clear filter")),
31370
31392
  category.options.map(function (taxonomy) { return (React__default.default.createElement(Category$2, { key: taxonomy.id },
31371
31393
  React__default.default.createElement(RadioCheckboxInput, { name: taxonomy.vocabulary, value: taxonomy.id, label: taxonomy.name, singleSelection: category.singleSelection, checked: taxonomy.checked, onChange: function (e) { return optionChecked(e, categoryIndex, category.singleSelection); } }))); }))))); })))))),
31372
31394
  React__default.default.createElement(Column, { small: "full", medium: "two-thirds", large: "two-thirds" },
31373
- React__default.default.createElement(Row$1, null, isLoading ? (React__default.default.createElement(LoadingContainer$1, null,
31395
+ React__default.default.createElement(Row$1, null, isError ? (React__default.default.createElement(Column, { small: "full", medium: "full", large: "full" },
31396
+ React__default.default.createElement(AlertBannerService, null,
31397
+ React__default.default.createElement("p", null, "Sorry, there was a problem fetching results. Please try again later.")))) : isLoading ? (React__default.default.createElement(LoadingContainer$1, null,
31374
31398
  React__default.default.createElement(LoadingSpinner, null),
31375
31399
  React__default.default.createElement("p", null, "Loading"))) : (React__default.default.createElement(React__default.default.Fragment, null,
31376
31400
  React__default.default.createElement(Column, { small: "full", medium: "full", large: "full" },
@@ -31392,7 +31416,7 @@ var DirectoryServiceList = function (_a) {
31392
31416
  React__default.default.createElement(Pagination, { currentPage: pageNumber, totalResults: totalResults, resultsPerPage: perPage, postTo: directoryPath, buttonClickOverride: setPageNumber })),
31393
31417
  React__default.default.createElement(Column, { small: "full", medium: "full", large: "full" }, notServer && React__default.default.createElement(React__default.default.Fragment, null, (services === null || services === void 0 ? void 0 : services.length) > 0 && showMap && React__default.default.createElement(DirectoryMap, { mapProps: mapProps }))),
31394
31418
  services.map(function (service, index) {
31395
- var _a, _b, _c, _d, _e, _f;
31419
+ var _a, _b, _c, _d, _e, _f, _g;
31396
31420
  var snippet = transformSnippet(service.description, extractLength);
31397
31421
  return (React__default.default.createElement(Column, { small: "full", medium: "full", large: "full", key: service.id },
31398
31422
  React__default.default.createElement(ServiceContainer, { "$resultNumber": index },
@@ -31415,7 +31439,9 @@ var DirectoryServiceList = function (_a) {
31415
31439
  ' ',
31416
31440
  transformAge(eligibility.maximum_age, ageInMonths))); })))),
31417
31441
  React__default.default.createElement(Column, { small: "full", medium: "full", large: "full" },
31418
- React__default.default.createElement(DirectoryAddToShortList, { id: service.id, name: service.name, snippet: snippet, email: service.email, website: service.url, phone: (_f = (_e = (_d = service.contacts) === null || _d === void 0 ? void 0 : _d[0]) === null || _e === void 0 ? void 0 : _e.phones) === null || _f === void 0 ? void 0 : _f.flatMap(function (phone) { return phone.number; }).join(', ') }))))));
31442
+ React__default.default.createElement(DirectoryAddToShortList, { id: service.id, name: service.name, snippet: snippet, email: service.email, website: service.url, phone: (_f = (_e = (_d = service.contacts) === null || _d === void 0 ? void 0 : _d[0]) === null || _e === void 0 ? void 0 : _e.phones) === null || _f === void 0 ? void 0 : _f.flatMap(function (phone) { return phone.number; }).join(', '), addresses: (_g = service.service_at_locations) === null || _g === void 0 ? void 0 : _g.flatMap(function (location) {
31443
+ return location.physical_addresses;
31444
+ }), fees: service.fees }))))));
31419
31445
  }),
31420
31446
  React__default.default.createElement(Column, { small: "full", medium: "full", large: "full" },
31421
31447
  React__default.default.createElement(Pagination, { currentPage: pageNumber, totalResults: totalResults, resultsPerPage: perPage, postTo: directoryPath, buttonClickOverride: setPageNumber })))))))));
@@ -31423,71 +31449,96 @@ var DirectoryServiceList = function (_a) {
31423
31449
 
31424
31450
  const Container$1 = styled__default.default.div`
31425
31451
  display: block;
31452
+
31453
+ @media print {
31454
+ font-size: ${(props) => props.theme.theme_vars.fontSizes.extra_small} !important;
31455
+ [data-testid='Column'] {
31456
+ padding: ${(props) => props.theme.theme_vars.spacingSizes.extra_small} !important;
31457
+ }
31458
+
31459
+ .favourite-outer:nth-of-type(2n + 1) {
31460
+ page-break-after: always;
31461
+ }
31462
+
31463
+ .favourite-outer:last-of-type {
31464
+ page-break-after: avoid !important;
31465
+ }
31466
+ }
31426
31467
  `;
31427
31468
 
31428
31469
  const ServiceLink = styled__default.default.a`
31429
- display: block;
31430
- margin-bottom: ${(props) => props.theme.theme_vars.spacingSizes.small};
31431
- ${(props) => props.theme.theme_vars.h4}
31432
- ${(props) => props.theme.linkStyles}
31433
- &:hover {
31434
- ${(props) => props.theme.linkStylesHover}
31435
- }
31436
- &:focus {
31437
- ${(props) => props.theme.linkStylesFocus}
31438
- }
31439
- &:active {
31440
- ${(props) => props.theme.linkStylesActive}
31441
- }
31470
+ display: block;
31471
+ margin-bottom: ${(props) => props.theme.theme_vars.spacingSizes.small};
31472
+ ${(props) => props.theme.theme_vars.h4}
31473
+ ${(props) => props.theme.linkStyles}
31474
+ &:hover {
31475
+ ${(props) => props.theme.linkStylesHover}
31476
+ }
31477
+ &:focus {
31478
+ ${(props) => props.theme.linkStylesFocus}
31479
+ }
31480
+ &:active {
31481
+ ${(props) => props.theme.linkStylesActive}
31482
+ }
31442
31483
 
31443
- @media print {
31444
- color: ${(props) => props.theme.theme_vars.colours.black} !important;
31445
- text-decoration: none !important;
31446
- }
31484
+ @media print {
31485
+ color: ${(props) => props.theme.theme_vars.colours.black} !important;
31486
+ text-decoration: none !important;
31487
+ font-size: ${(props) => props.theme.theme_vars.fontSizes.small};
31488
+ margin-bottom: 0;
31489
+ }
31447
31490
  `;
31448
31491
 
31449
31492
  const PrintLink = styled__default.default.div`
31450
- p {
31451
- display: none;
31452
- }
31453
-
31454
- @media print {
31455
31493
  p {
31456
- display: block;
31494
+ display: none;
31457
31495
  }
31496
+
31497
+ @media print {
31498
+ p {
31499
+ display: none;
31500
+ margin-bottom: 0 !important;
31501
+ }
31502
+ }
31503
+ `;
31504
+
31505
+ const SnippetContainer = styled__default.default.div`
31506
+ @media print {
31507
+ display: flex;
31508
+ flex-wrap: nowrap;
31458
31509
  }
31459
31510
  `;
31460
31511
 
31461
31512
  const QRCodeContainer = styled__default.default.div`
31462
- max-width: 80px;
31463
- margin: ${(props) => props.theme.theme_vars.spacingSizes.medium} 0;
31464
- display: none;
31465
- float: right;
31513
+ max-width: 80px;
31514
+ display: none;
31466
31515
 
31467
- @media print {
31468
- display: block;
31469
- }
31516
+ @media print {
31517
+ display: block;
31518
+ margin-left: ${(props) => props.theme.theme_vars.spacingSizes.small};
31519
+ }
31470
31520
  `;
31471
31521
 
31472
31522
  const FavouriteContainer = styled__default.default.div`
31473
- background: ${(props) =>
31474
- props.theme.cardinal_name === 'north'
31475
- ? props.theme.theme_vars.colours.white
31476
- : props.theme.theme_vars.colours.grey_light};
31477
- box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.08);
31478
- transition: box-shadow 0.3s ease;
31479
- border-bottom: 5px solid ${(props) => props.theme.theme_vars.colours.action};
31480
- border-radius: ${(props) => props.theme.theme_vars.border_radius};
31481
- padding: ${(props) => props.theme.theme_vars.spacingSizes.medium};
31523
+ background: ${(props) =>
31524
+ props.theme.cardinal_name === 'north'
31525
+ ? props.theme.theme_vars.colours.white
31526
+ : props.theme.theme_vars.colours.grey_light};
31527
+ box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.08);
31528
+ transition: box-shadow 0.3s ease;
31529
+ border-bottom: 5px solid ${(props) => props.theme.theme_vars.colours.action};
31530
+ border-radius: ${(props) => props.theme.theme_vars.border_radius};
31531
+ padding: ${(props) => props.theme.theme_vars.spacingSizes.medium};
31482
31532
 
31483
- @media print {
31484
- box-shadow: none;
31485
- border: 1px solid ${(props) => props.theme.theme_vars.colours.grey};
31486
- background: none;
31487
- }
31533
+ @media print {
31534
+ box-shadow: none;
31535
+ border: 1px solid ${(props) => props.theme.theme_vars.colours.grey};
31536
+ background: none;
31537
+ padding: 0 ${(props) => props.theme.theme_vars.spacingSizes.small};
31538
+ }
31488
31539
  `;
31489
31540
 
31490
- const PrintContainer = styled__default.default.div`
31541
+ const ButtonContainer$1 = styled__default.default.div`
31491
31542
  display: flex;
31492
31543
  justify-content: flex-end;
31493
31544
 
@@ -31496,7 +31547,7 @@ const PrintContainer = styled__default.default.div`
31496
31547
  }
31497
31548
  `;
31498
31549
 
31499
- const PrintButton = styled__default.default.button`
31550
+ const ActionButton = styled__default.default.button`
31500
31551
  border: 2px solid ${(props) => props.theme.theme_vars.colours.action};
31501
31552
  border-radius: ${(props) => props.theme.theme_vars.border_radius};
31502
31553
  background: ${(props) => props.theme.theme_vars.colours.action};
@@ -31508,6 +31559,7 @@ const PrintButton = styled__default.default.button`
31508
31559
  flex-direction: row;
31509
31560
  justify-content: flex-start;
31510
31561
  align-items: center;
31562
+ margin-left: ${(props) => props.theme.theme_vars.spacingSizes.medium};
31511
31563
  &:hover {
31512
31564
  ${(props) => props.theme.linkStylesHover}
31513
31565
  color: ${(props) => props.theme.theme_vars.colours.white};
@@ -31530,6 +31582,53 @@ const AddContainer = styled__default.default.div`
31530
31582
  }
31531
31583
  `;
31532
31584
 
31585
+ const SubTitle = styled__default.default.p`
31586
+ font-weight: bold;
31587
+ margin-top: ${(props) => props.theme.theme_vars.spacingSizes.medium};
31588
+ `;
31589
+
31590
+ const ClearShortlistButton = styled__default.default.button`
31591
+ border: 1px solid ${(props) => props.theme.theme_vars.colours.negative};
31592
+ background: ${(props) => props.theme.theme_vars.colours.white};
31593
+ color: ${(props) => props.theme.theme_vars.colours.negative};
31594
+ padding: ${(props) => props.theme.theme_vars.spacingSizes.small};
31595
+ cursor: pointer;
31596
+ border-radius: ${(props) => props.theme.theme_vars.border_radius};
31597
+ min-height: 42px;
31598
+ font-weight: bold;
31599
+
31600
+ &:hover {
31601
+ background: ${(props) => props.theme.theme_vars.colours.action_light};
31602
+ color: ${(props) => props.theme.theme_vars.colours.action_dark};
31603
+ text-decoration: underline;
31604
+ text-decoration-style: dotted;
31605
+ }
31606
+
31607
+ &:focus {
31608
+ ${(props) => props.theme.linkStylesFocus}
31609
+ }
31610
+
31611
+ &:active {
31612
+ ${(props) => props.theme.linkStylesActive}
31613
+ }
31614
+ `;
31615
+
31616
+ const AddressContainer = styled__default.default.div`
31617
+ display: block;
31618
+
31619
+ @media print {
31620
+ display: none;
31621
+ }
31622
+ `;
31623
+
31624
+ const PrintAddress = styled__default.default.div`
31625
+ display: none;
31626
+
31627
+ @media print {
31628
+ display: block;
31629
+ }
31630
+ `;
31631
+
31533
31632
  var lib = {};
31534
31633
 
31535
31634
  var mode$1 = {
@@ -32890,31 +32989,81 @@ var _default = lib.default = QRCode;
32890
32989
 
32891
32990
  var DirectoryShortList = function (_a) {
32892
32991
  var directoryPath = _a.directoryPath;
32893
- var favourites = useDirectoryShortListContext().favourites.favourites;
32894
- var _b = React.useState(false), notServer = _b[0], setNotServer = _b[1];
32992
+ var _b = useDirectoryShortListContext(), favourites = _b.favourites.favourites, clearShortlist = _b.clearShortlist;
32993
+ var _c = React.useState(false), notServer = _c[0], setNotServer = _c[1];
32895
32994
  React.useEffect(function () {
32896
32995
  setNotServer(true);
32897
32996
  }, []);
32997
+ var confirmClear = function () {
32998
+ if (window.confirm('Are you sure you want to clear your shortlist?')) {
32999
+ clearShortlist();
33000
+ }
33001
+ };
33002
+ var formatAddress = function (address) {
33003
+ return Object.values(address)
33004
+ .filter(function (item) { return item !== '' && item !== address.id && item !== address.country; })
33005
+ .join(', ');
33006
+ };
33007
+ var copyToClipboard = function () { return __awaiter(void 0, void 0, void 0, function () {
33008
+ var data;
33009
+ return __generator(this, function (_b) {
33010
+ switch (_b.label) {
33011
+ case 0:
33012
+ data = favourites.map(function (favourite) {
33013
+ var _a, _b, _c, _d;
33014
+ var address = favourite.addresses.length > 0 ? formatAddress(favourite.addresses[0]) : '';
33015
+ return "\nName: ".concat(favourite.name, "\nLink: ").concat(directoryPath, "/").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 ");
33016
+ });
33017
+ _b.label = 1;
33018
+ case 1:
33019
+ _b.trys.push([1, 3, , 4]);
33020
+ return [4 /*yield*/, navigator.clipboard.writeText(data.join('')).then(function () {
33021
+ window.alert('Copied to clipboard');
33022
+ })];
33023
+ case 2:
33024
+ _b.sent();
33025
+ return [3 /*break*/, 4];
33026
+ case 3:
33027
+ _b.sent();
33028
+ window.alert('Unable to copy');
33029
+ return [3 /*break*/, 4];
33030
+ case 4: return [2 /*return*/];
33031
+ }
33032
+ });
33033
+ }); };
32898
33034
  return (React__default.default.createElement(Container$1, { "data-testid": "DirectoryShortList" }, notServer && (React__default.default.createElement(Row$1, null, favourites.length > 0 ? (React__default.default.createElement(React__default.default.Fragment, null,
32899
33035
  React__default.default.createElement(Column, { small: "full", medium: "full", large: "full" },
32900
- React__default.default.createElement(PrintContainer, null,
32901
- React__default.default.createElement(PrintButton, { onClick: function () { return window.print(); } }, "Print Shortlist"))),
32902
- favourites.map(function (favourite) { return (React__default.default.createElement(Column, { key: favourite.id, small: "full", medium: "full", large: "full" },
32903
- React__default.default.createElement(FavouriteContainer, null,
32904
- React__default.default.createElement(Row$1, null,
32905
- React__default.default.createElement(Column, { small: "full", medium: "full", large: "full" },
32906
- React__default.default.createElement(QRCodeContainer, null,
32907
- React__default.default.createElement(_default, { value: "".concat(directoryPath, "/").concat(favourite.id), size: 256, style: { height: 'auto', maxWidth: '100%', width: '100%' }, viewBox: "0 0 256 256" })),
32908
- React__default.default.createElement(ServiceLink, { href: "".concat(directoryPath, "/").concat(favourite.id) }, favourite.name),
32909
- React__default.default.createElement(PrintLink, null,
32910
- React__default.default.createElement("p", null, "".concat(directoryPath, "/").concat(favourite.id)))),
32911
- React__default.default.createElement(Column, { small: "full", medium: "full", large: "one-half" },
32912
- React__default.default.createElement("div", null, favourite.snippet)),
32913
- React__default.default.createElement(Column, { small: "full", medium: "full", large: "one-half" },
32914
- React__default.default.createElement(SummaryList, { terms: transformService(favourite.email, favourite.website, favourite.phone), hasMargin: false })),
32915
- React__default.default.createElement(Column, { small: "full", medium: "full", large: "full" },
32916
- React__default.default.createElement(AddContainer, null,
32917
- React__default.default.createElement(DirectoryAddToShortList, { id: favourite.id, name: favourite.name, snippet: favourite.snippet, email: favourite.email, website: favourite.website, phone: favourite.phone }))))))); }))) : (React__default.default.createElement(Column, { small: "full", medium: "full", large: "full" },
33036
+ React__default.default.createElement(ButtonContainer$1, null,
33037
+ React__default.default.createElement(ClearShortlistButton, { onClick: confirmClear }, "Clear Shortlist"),
33038
+ React__default.default.createElement(ActionButton, { onClick: copyToClipboard }, "Copy To Clipboard"),
33039
+ React__default.default.createElement(ActionButton, { onClick: function () { return window.print(); } }, "Print Shortlist"))),
33040
+ favourites.map(function (favourite) {
33041
+ var _a, _b;
33042
+ return (React__default.default.createElement(Column, { key: favourite.id, small: "full", medium: "full", large: "full", classes: "favourite-outer" },
33043
+ React__default.default.createElement(FavouriteContainer, null,
33044
+ React__default.default.createElement(Row$1, null,
33045
+ React__default.default.createElement(Column, { small: "full", medium: "full", large: "full" },
33046
+ React__default.default.createElement(ServiceLink, { href: "".concat(directoryPath, "/").concat(favourite.id) }, favourite.name),
33047
+ React__default.default.createElement(PrintLink, null,
33048
+ React__default.default.createElement("p", null, "".concat(directoryPath, "/").concat(favourite.id)))),
33049
+ React__default.default.createElement(Column, { small: "full", medium: "full", large: "one-half" },
33050
+ React__default.default.createElement(SnippetContainer, null,
33051
+ React__default.default.createElement("div", null, favourite.snippet),
33052
+ React__default.default.createElement(QRCodeContainer, null,
33053
+ React__default.default.createElement(_default, { value: "".concat(directoryPath, "/").concat(favourite.id), size: 256, style: { height: 'auto', maxWidth: '100%', width: '100%' }, viewBox: "0 0 256 256" }))),
33054
+ ((_a = favourite.addresses) === null || _a === void 0 ? void 0 : _a.length) > 0 && (React__default.default.createElement(React__default.default.Fragment, null,
33055
+ React__default.default.createElement(AddressContainer, null,
33056
+ React__default.default.createElement(SubTitle, null, "Address"),
33057
+ ((_b = favourite.addresses) === null || _b === void 0 ? void 0 : _b.length) === 1 ? (React__default.default.createElement("p", null, formatAddress(favourite.addresses[0]))) : (React__default.default.createElement("ul", null, favourite.addresses.map(function (address) { return (React__default.default.createElement("li", { key: address.id }, formatAddress(address))); })))),
33058
+ React__default.default.createElement(PrintAddress, null,
33059
+ React__default.default.createElement(SummaryList, { terms: [{ term: 'Address', detail: formatAddress(favourite.addresses[0]) }], hasMargin: false }))))),
33060
+ React__default.default.createElement(Column, { small: "full", medium: "full", large: "one-half" },
33061
+ React__default.default.createElement(SummaryList, { terms: transformService(favourite.email, favourite.website, favourite.phone), hasMargin: false }),
33062
+ favourite.fees && (React__default.default.createElement(SummaryList, { terms: [{ term: 'Cost', detail: favourite.fees }], hasMargin: false }))),
33063
+ React__default.default.createElement(Column, { small: "full", medium: "full", large: "full" },
33064
+ React__default.default.createElement(AddContainer, null,
33065
+ React__default.default.createElement(DirectoryAddToShortList, { id: favourite.id, name: favourite.name, snippet: favourite.snippet, email: favourite.email, website: favourite.website, phone: favourite.phone, addresses: favourite.addresses })))))));
33066
+ }))) : (React__default.default.createElement(Column, { small: "full", medium: "full", large: "full" },
32918
33067
  React__default.default.createElement(FavouriteContainer, null,
32919
33068
  React__default.default.createElement("p", null, "No items in the shortlist"))))))));
32920
33069
  };
@@ -33049,8 +33198,8 @@ const LoadingContainer = styled__default.default.div`
33049
33198
  `;
33050
33199
 
33051
33200
  var DirectoryDocumentList = function (_a) {
33052
- 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;
33053
- var _g = React.useState(search), searchTerm = _g[0], setSearchTerm = _g[1];
33201
+ 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;
33202
+ var _h = React.useState(search), searchTerm = _h[0], setSearchTerm = _h[1];
33054
33203
  var submitSearch = function (e) {
33055
33204
  e.preventDefault();
33056
33205
  setSearch(searchTerm);
@@ -33113,7 +33262,9 @@ var DirectoryDocumentList = function (_a) {
33113
33262
  React__default.default.createElement(RadioCheckboxInput, { name: taxonomy.vocabulary, value: taxonomy.id, label: taxonomy.name, singleSelection: category.singleSelection, checked: taxonomy.checked, onChange: function (e) { return optionChecked(e, categoryIndex, category.singleSelection); } }))); })))); }))),
33114
33263
  React__default.default.createElement(Column, { small: "full", medium: "two-thirds", large: "two-thirds" },
33115
33264
  React__default.default.createElement(Row$1, null,
33116
- isLoading ? (React__default.default.createElement(LoadingContainer, null,
33265
+ isError ? (React__default.default.createElement(Column, { small: "full", medium: "full", large: "full" },
33266
+ React__default.default.createElement(AlertBannerService, null,
33267
+ React__default.default.createElement("p", null, "Sorry, there was a problem fetching results. Please try again later.")))) : isLoading ? (React__default.default.createElement(LoadingContainer, null,
33117
33268
  React__default.default.createElement(LoadingSpinner, null),
33118
33269
  React__default.default.createElement("p", null, "Loading"))) : (React__default.default.createElement(React__default.default.Fragment, null,
33119
33270
  React__default.default.createElement(Column, { small: "full", medium: "full", large: "full" }, (documents === null || documents === void 0 ? void 0 : documents.length) > 0 ? (React__default.default.createElement(ResultInfo, null,