@nnc-digital/nnc-design-system 1.0.0-alpha9 → 1.0.0-beta10
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.
- package/build/ThemeVars.types.d.ts +60 -0
- package/build/index.d.ts +43 -42
- package/build/index.js +1068 -399
- package/build/index.js.map +1 -1
- package/build/index.mjs.js +1068 -400
- package/build/index.mjs.js.map +1 -1
- package/build/library/components/AlphabeticalDirectory/AlphabeticalDirectory.d.ts +4 -4
- package/build/library/components/AlphabeticalDirectory/AlphabeticalDirectory.types.d.ts +26 -26
- package/build/library/components/Autocomplete/Autocomplete.d.ts +9 -9
- package/build/library/components/Autocomplete/Autocomplete.storydata.d.ts +47 -47
- package/build/library/components/Autocomplete/Autocomplete.test.d.ts +1 -0
- package/build/library/components/Autocomplete/Autocomplete.types.d.ts +78 -78
- package/build/library/components/BackToTop/BackToTop.d.ts +4 -4
- package/build/library/components/BackToTop/BackToTop.test.d.ts +1 -0
- package/build/library/components/BackToTop/BackToTop.types.d.ts +6 -6
- package/build/library/components/BinCollection/BinCollection.d.ts +7 -7
- package/build/library/components/BinCollection/BinCollection.styles.d.ts +2937 -15
- package/build/library/components/BinCollection/BinCollection.test.d.ts +1 -0
- package/build/library/components/BinCollection/BinCollection.testdata.d.ts +34 -34
- package/build/library/components/BinCollection/BinCollection.types.d.ts +68 -69
- package/build/library/components/Button/Button.d.ts +7 -7
- package/build/library/components/Button/Button.types.d.ts +43 -43
- package/build/library/components/Card/Card.d.ts +7 -7
- package/build/library/components/Card/Card.test.d.ts +1 -0
- package/build/library/components/Card/Card.types.d.ts +36 -36
- package/build/library/components/CheckboxListFilter/CheckboxListFilter.d.ts +4 -4
- package/build/library/components/CheckboxListFilter/CheckboxListFilter.test.d.ts +1 -0
- package/build/library/components/CheckboxListFilter/CheckboxListFilter.types.d.ts +36 -36
- package/build/library/components/Column/Column.d.ts +4 -4
- package/build/library/components/Column/Column.test.d.ts +1 -0
- package/build/library/components/Column/Column.types.d.ts +35 -36
- package/build/library/components/CustomSearch/CustomSearch.d.ts +4 -4
- package/build/library/components/CustomSearch/CustomSearch.storydata.d.ts +2 -2
- package/build/library/components/CustomSearch/CustomSearch.test.d.ts +1 -0
- package/build/library/components/CustomSearch/CustomSearch.types.d.ts +34 -34
- package/build/library/components/DropDownFilter/DropDownFilter.d.ts +4 -4
- package/build/library/components/DropDownFilter/DropDownFilter.types.d.ts +32 -32
- package/build/library/components/DropDownSelect/DropDownSelect.d.ts +4 -4
- package/build/library/components/DropDownSelect/DropDownSelect.types.d.ts +36 -36
- package/build/library/components/DynamicIcon/DynamicIcon.d.ts +7 -7
- package/build/library/components/DynamicIcon/DynamicIcon.test.d.ts +1 -0
- package/build/library/components/DynamicIcon/DynamicIcon.types.d.ts +10 -10
- package/build/library/components/FileDownload/FileDownload.d.ts +7 -7
- package/build/library/components/FileDownload/FileDownload.test.d.ts +1 -0
- package/build/library/components/FileDownload/FileDownload.types.d.ts +22 -22
- package/build/library/components/FormButton/FormButton.d.ts +7 -7
- package/build/library/components/FormButton/FormButton.types.d.ts +26 -27
- package/build/library/components/FormWithLine/FormWithLine.d.ts +7 -7
- package/build/library/components/FormWithLine/FormWithLine.types.d.ts +39 -39
- package/build/library/components/Heading/Heading.d.ts +7 -7
- package/build/library/components/Heading/Heading.types.d.ts +10 -10
- package/build/library/components/HeadingWithIcon/HeadingWithIcon.d.ts +7 -7
- package/build/library/components/HeadingWithIcon/HeadingWithIcon.test.d.ts +1 -0
- package/build/library/components/HeadingWithIcon/HeadingWithIcon.types.d.ts +18 -18
- package/build/library/components/HeadingWithIconLink/HeadingWithIconLink.d.ts +4 -4
- package/build/library/components/HeadingWithIconLink/HeadingWithIconLink.test.d.ts +1 -0
- package/build/library/components/HeadingWithIconLink/HeadingWithIconLink.types.d.ts +14 -14
- package/build/library/components/HintText/HintText.d.ts +7 -7
- package/build/library/components/HintText/HintText.types.d.ts +6 -6
- package/build/library/components/Input/Input.d.ts +8 -8
- package/build/library/components/Input/Input.types.d.ts +52 -45
- package/build/library/components/LoadingSpinner/LoadingSpinner.d.ts +4 -4
- package/build/library/components/LoadingSpinner/LoadingSpinner.types.d.ts +2 -2
- package/build/library/components/Map/Map.d.ts +7 -7
- package/build/library/components/Map/Map.types.d.ts +15 -16
- package/build/library/components/MapMarker/MapMarker.d.ts +6 -7
- package/build/library/components/Pagination/Pagination.d.ts +4 -4
- package/build/library/components/Pagination/Pagination.test.d.ts +1 -0
- package/build/library/components/Pagination/Pagination.types.d.ts +23 -23
- package/build/library/components/PostCodeAddressDropdown/PostCodeAddressDropdown.d.ts +7 -7
- package/build/library/components/PostCodeAddressDropdown/PostCodeAddressDropdown.types.d.ts +2 -2
- package/build/library/components/PostCodeAddressSearch/PostCodeAddressSearch.d.ts +7 -7
- package/build/library/components/PostCodeAddressSearch/PostCodeAddressSearch.types.d.ts +23 -23
- package/build/library/components/PostCodeAddressTable/PostCodeAddressTable.d.ts +4 -4
- package/build/library/components/PostCodeAddressTable/PostCodeAddressTable.types.d.ts +2 -2
- package/build/library/components/PostCodeSearch/PostCodeSearch.d.ts +7 -7
- package/build/library/components/PostCodeSearch/PostCodeSearch.test.d.ts +1 -0
- package/build/library/components/PostCodeSearch/PostCodeSearch.types.d.ts +52 -52
- package/build/library/components/PromotedLinks/PromotedLinks.d.ts +4 -4
- package/build/library/components/PromotedLinks/PromotedLinks.test.d.ts +1 -0
- package/build/library/components/PromotedLinks/PromotedLinks.types.d.ts +20 -20
- package/build/library/components/RadioCheckboxInput/RadioCheckboxInput.d.ts +4 -4
- package/build/library/components/RadioCheckboxInput/RadioCheckboxInput.test.d.ts +1 -0
- package/build/library/components/RadioCheckboxInput/RadioCheckboxInput.types.d.ts +26 -27
- package/build/library/components/RemovableTag/RemovableTag.d.ts +4 -4
- package/build/library/components/RemovableTag/RemovableTag.types.d.ts +8 -8
- package/build/library/components/RemoveAllFilters/RemoveAllFilters.d.ts +4 -4
- package/build/library/components/RemoveAllFilters/RemoveAllFilters.types.d.ts +3 -3
- package/build/library/components/Row/Row.d.ts +4 -4
- package/build/library/components/Row/Row.test.d.ts +1 -0
- package/build/library/components/Row/Row.types.d.ts +20 -20
- package/build/library/components/SignpostLinksList/SignpostLinksList.d.ts +4 -4
- package/build/library/components/SignpostLinksList/SignpostLinksList.types.d.ts +24 -24
- package/build/library/components/SortBy/SortBy.d.ts +4 -4
- package/build/library/components/SortBy/SortBy.types.d.ts +20 -20
- package/build/library/components/StaticMap/StaticMap.d.ts +7 -7
- package/build/library/components/StaticMap/StaticMap.test.d.ts +1 -0
- package/build/library/components/StaticMap/StaticMap.types.d.ts +52 -52
- package/build/library/components/SummaryList/SummaryList.d.ts +4 -4
- package/build/library/components/SummaryList/SummaryList.test.d.ts +1 -0
- package/build/library/components/SummaryList/SummaryList.types.d.ts +29 -21
- package/build/library/components/TextInput/TextInput.d.ts +7 -7
- package/build/library/components/TextInput/TextInput.types.d.ts +38 -38
- package/build/library/components/icons/ChevronIcon/ChevronIcon.d.ts +4 -4
- package/build/library/components/icons/ChevronIcon/ChevronIcon.types.d.ts +10 -10
- package/build/library/components/icons/CloseIcon/CloseIcon.d.ts +4 -4
- package/build/library/components/icons/CloseIcon/CloseIcon.types.d.ts +6 -6
- package/build/library/components/icons/DownloadFileIcon/DownloadFileIcon.d.ts +4 -4
- package/build/library/components/icons/DownloadFileIcon/DownloadFileIcon.types.d.ts +6 -6
- package/build/library/components/icons/EmailIcon/EmailIcon.d.ts +4 -4
- package/build/library/components/icons/EmailIcon/EmailIcon.types.d.ts +6 -6
- package/build/library/components/icons/FacebookIcon/Icon.d.ts +4 -4
- package/build/library/components/icons/HeartIcon/HeartIcon.d.ts +7 -7
- package/build/library/components/icons/HeartIcon/HeartIcon.types.d.ts +6 -6
- package/build/library/components/icons/InstagramIcon/Icon.d.ts +4 -4
- package/build/library/components/icons/LinkIcon/LinkIcon.d.ts +4 -4
- package/build/library/components/icons/LinkIcon/LinkIcon.types.d.ts +6 -6
- package/build/library/components/icons/LinkedInIcon/Icon.d.ts +4 -4
- package/build/library/components/icons/PhoneIcon/PhoneIcon.d.ts +4 -4
- package/build/library/components/icons/PhoneIcon/PhoneIcon.types.d.ts +6 -6
- package/build/library/components/icons/PinIcon/PinIcon.d.ts +7 -7
- package/build/library/components/icons/PinIcon/PinIcon.types.d.ts +6 -6
- package/build/library/components/icons/SearchIcon/SearchIcon.d.ts +4 -4
- package/build/library/components/icons/SearchIcon/SearchIcon.types.d.ts +6 -6
- package/build/library/components/icons/TwitterIcon/Icon.d.ts +4 -4
- package/build/library/components/icons/WebsiteIcon/WebsiteIcon.d.ts +4 -4
- package/build/library/components/icons/WebsiteIcon/WebsiteIcon.types.d.ts +6 -6
- package/build/library/components/icons/YouTubeIcon/Icon.d.ts +4 -4
- package/build/library/components/icons/services/AccessibleParking/Icon.d.ts +4 -4
- package/build/library/components/icons/services/AccessibleParking/IconHover.d.ts +4 -4
- package/build/library/components/icons/services/Address/Icon.d.ts +4 -4
- package/build/library/components/icons/services/Address/IconHover.d.ts +4 -4
- package/build/library/components/icons/services/AddressChange/Icon.d.ts +4 -4
- package/build/library/components/icons/services/AddressChange/IconHover.d.ts +4 -4
- package/build/library/components/icons/services/Adults/Icon.d.ts +4 -4
- package/build/library/components/icons/services/Adults/IconHover.d.ts +4 -4
- package/build/library/components/icons/services/AssistiveTechnology/Icon.d.ts +4 -4
- package/build/library/components/icons/services/AssistiveTechnology/IconHover.d.ts +4 -4
- package/build/library/components/icons/services/Benefits/Icon.d.ts +4 -4
- package/build/library/components/icons/services/Benefits/IconHover.d.ts +4 -4
- package/build/library/components/icons/services/BinDay/Icon.d.ts +4 -4
- package/build/library/components/icons/services/BinDay/IconHover.d.ts +4 -4
- package/build/library/components/icons/services/Bins/Icon.d.ts +4 -4
- package/build/library/components/icons/services/Bins/IconHover.d.ts +4 -4
- package/build/library/components/icons/services/BirthCertificate/Icon.d.ts +4 -4
- package/build/library/components/icons/services/BirthCertificate/IconHover.d.ts +4 -4
- package/build/library/components/icons/services/Births/Icon.d.ts +4 -4
- package/build/library/components/icons/services/Births/IconHover.d.ts +4 -4
- package/build/library/components/icons/services/Bollard/Icon.d.ts +4 -4
- package/build/library/components/icons/services/Bollard/IconHover.d.ts +4 -4
- package/build/library/components/icons/services/BulkWaste/Icon.d.ts +4 -4
- package/build/library/components/icons/services/BulkWaste/IconHover.d.ts +4 -4
- package/build/library/components/icons/services/Bus/Icon.d.ts +4 -4
- package/build/library/components/icons/services/Bus/IconHover.d.ts +4 -4
- package/build/library/components/icons/services/BusPass/Icon.d.ts +4 -4
- package/build/library/components/icons/services/BusPass/IconHover.d.ts +4 -4
- package/build/library/components/icons/services/Business/Icon.d.ts +4 -4
- package/build/library/components/icons/services/Business/IconHover.d.ts +4 -4
- package/build/library/components/icons/services/Careers/Icon.d.ts +4 -4
- package/build/library/components/icons/services/Careers/IconHover.d.ts +4 -4
- package/build/library/components/icons/services/Cash/Icon.d.ts +4 -4
- package/build/library/components/icons/services/Cash/IconHover.d.ts +4 -4
- package/build/library/components/icons/services/Catalogue/Icon.d.ts +4 -4
- package/build/library/components/icons/services/Catalogue/IconHover.d.ts +4 -4
- package/build/library/components/icons/services/Ceremony/Icon.d.ts +4 -4
- package/build/library/components/icons/services/Ceremony/IconHover.d.ts +4 -4
- package/build/library/components/icons/services/Charity/Icon.d.ts +4 -4
- package/build/library/components/icons/services/Charity/IconHover.d.ts +4 -4
- package/build/library/components/icons/services/Children/Icon.d.ts +4 -4
- package/build/library/components/icons/services/Children/IconHover.d.ts +4 -4
- package/build/library/components/icons/services/Computer/Icon.d.ts +4 -4
- package/build/library/components/icons/services/Computer/IconHover.d.ts +4 -4
- package/build/library/components/icons/services/CondolenceBook/Icon.d.ts +4 -4
- package/build/library/components/icons/services/CondolenceBook/IconHover.d.ts +4 -4
- package/build/library/components/icons/services/Cooking/Icon.d.ts +4 -4
- package/build/library/components/icons/services/Cooking/IconHover.d.ts +4 -4
- package/build/library/components/icons/services/Council/Icon.d.ts +4 -4
- package/build/library/components/icons/services/Council/IconHover.d.ts +4 -4
- package/build/library/components/icons/services/CouncilTax/Icon.d.ts +4 -4
- package/build/library/components/icons/services/CouncilTax/IconHover.d.ts +4 -4
- package/build/library/components/icons/services/Covid/Icon.d.ts +4 -4
- package/build/library/components/icons/services/Covid/IconHover.d.ts +4 -4
- package/build/library/components/icons/services/Culture/Icon.d.ts +4 -4
- package/build/library/components/icons/services/Culture/IconHover.d.ts +4 -4
- package/build/library/components/icons/services/CultureNorth/Icon.d.ts +4 -4
- package/build/library/components/icons/services/CultureNorth/IconHover.d.ts +4 -4
- package/build/library/components/icons/services/CultureWest/Icon.d.ts +4 -4
- package/build/library/components/icons/services/CultureWest/IconHover.d.ts +4 -4
- package/build/library/components/icons/services/DOLS/Icon.d.ts +4 -4
- package/build/library/components/icons/services/DOLS/IconHover.d.ts +4 -4
- package/build/library/components/icons/services/DeathCertificate/Icon.d.ts +4 -4
- package/build/library/components/icons/services/DeathCertificate/IconHover.d.ts +4 -4
- package/build/library/components/icons/services/Democracy/Icon.d.ts +4 -4
- package/build/library/components/icons/services/Democracy/IconHover.d.ts +4 -4
- package/build/library/components/icons/services/DogFouling/Icon.d.ts +4 -4
- package/build/library/components/icons/services/DogFouling/IconHover.d.ts +4 -4
- package/build/library/components/icons/services/Ebook/Icon.d.ts +4 -4
- package/build/library/components/icons/services/Ebook/IconHover.d.ts +4 -4
- package/build/library/components/icons/services/Edit/Icon.d.ts +4 -4
- package/build/library/components/icons/services/Edit/IconHover.d.ts +4 -4
- package/build/library/components/icons/services/Environment/Icon.d.ts +4 -4
- package/build/library/components/icons/services/Environment/IconHover.d.ts +4 -4
- package/build/library/components/icons/services/Events/Icon.d.ts +4 -4
- package/build/library/components/icons/services/Events/IconHover.d.ts +4 -4
- package/build/library/components/icons/services/Finance/Icon.d.ts +4 -4
- package/build/library/components/icons/services/Finance/IconHover.d.ts +4 -4
- package/build/library/components/icons/services/Flower/Icon.d.ts +4 -4
- package/build/library/components/icons/services/Flower/IconHover.d.ts +4 -4
- package/build/library/components/icons/services/FlyTip/Icon.d.ts +4 -4
- package/build/library/components/icons/services/FlyTip/IconHover.d.ts +4 -4
- package/build/library/components/icons/services/FoodWaste/Icon.d.ts +4 -4
- package/build/library/components/icons/services/FoodWaste/IconHover.d.ts +4 -4
- package/build/library/components/icons/services/GiveNotice/Icon.d.ts +4 -4
- package/build/library/components/icons/services/GiveNotice/IconHover.d.ts +4 -4
- package/build/library/components/icons/services/GovUK/Icon.d.ts +4 -4
- package/build/library/components/icons/services/GovUK/IconHover.d.ts +4 -4
- package/build/library/components/icons/services/Graffiti/Icon.d.ts +4 -4
- package/build/library/components/icons/services/Graffiti/IconHover.d.ts +4 -4
- package/build/library/components/icons/services/Highway/Icon.d.ts +4 -4
- package/build/library/components/icons/services/Highway/IconHover.d.ts +4 -4
- package/build/library/components/icons/services/HouseMoney/Icon.d.ts +4 -4
- package/build/library/components/icons/services/HouseMoney/IconHover.d.ts +4 -4
- package/build/library/components/icons/services/Housing/Icon.d.ts +4 -4
- package/build/library/components/icons/services/Housing/IconHover.d.ts +4 -4
- package/build/library/components/icons/services/Icon.types.d.ts +6 -6
- package/build/library/components/icons/services/Independence/Icon.d.ts +4 -4
- package/build/library/components/icons/services/Independence/IconHover.d.ts +4 -4
- package/build/library/components/icons/services/KeepingHealthy/Icon.d.ts +4 -4
- package/build/library/components/icons/services/KeepingHealthy/IconHover.d.ts +4 -4
- package/build/library/components/icons/services/Libraries/Icon.d.ts +4 -4
- package/build/library/components/icons/services/Libraries/IconHover.d.ts +4 -4
- package/build/library/components/icons/services/Litter/Icon.d.ts +4 -4
- package/build/library/components/icons/services/Litter/IconHover.d.ts +4 -4
- package/build/library/components/icons/services/LookingAfterYourself/Icon.d.ts +4 -4
- package/build/library/components/icons/services/LookingAfterYourself/IconHover.d.ts +4 -4
- package/build/library/components/icons/services/MapPin/Icon.d.ts +4 -4
- package/build/library/components/icons/services/MapPin/IconHover.d.ts +4 -4
- package/build/library/components/icons/services/Member/Icon.d.ts +4 -4
- package/build/library/components/icons/services/Member/IconHover.d.ts +4 -4
- package/build/library/components/icons/services/MentalHealth/Icon.d.ts +4 -4
- package/build/library/components/icons/services/MentalHealth/IconHover.d.ts +4 -4
- package/build/library/components/icons/services/MissedBin/Icon.d.ts +4 -4
- package/build/library/components/icons/services/MissedBin/IconHover.d.ts +4 -4
- package/build/library/components/icons/services/New/Icon.d.ts +4 -4
- package/build/library/components/icons/services/New/IconHover.d.ts +4 -4
- package/build/library/components/icons/services/OccupationalTherapy/Icon.d.ts +4 -4
- package/build/library/components/icons/services/OccupationalTherapy/IconHover.d.ts +4 -4
- package/build/library/components/icons/services/ParkEvent/Icon.d.ts +4 -4
- package/build/library/components/icons/services/ParkEvent/IconHover.d.ts +4 -4
- package/build/library/components/icons/services/Parking/Icon.d.ts +4 -4
- package/build/library/components/icons/services/Parking/IconHover.d.ts +4 -4
- package/build/library/components/icons/services/ParkingTicket/Icon.d.ts +4 -4
- package/build/library/components/icons/services/ParkingTicket/IconHover.d.ts +4 -4
- package/build/library/components/icons/services/Pay/Icon.d.ts +4 -4
- package/build/library/components/icons/services/Pay/IconHover.d.ts +4 -4
- package/build/library/components/icons/services/PhonePay/Icon.d.ts +4 -4
- package/build/library/components/icons/services/PhonePay/IconHover.d.ts +4 -4
- package/build/library/components/icons/services/Planning/Icon.d.ts +4 -4
- package/build/library/components/icons/services/Planning/IconHover.d.ts +4 -4
- package/build/library/components/icons/services/Pothole/Icon.d.ts +4 -4
- package/build/library/components/icons/services/Pothole/IconHover.d.ts +4 -4
- package/build/library/components/icons/services/PreventingFalls/Icon.d.ts +4 -4
- package/build/library/components/icons/services/PreventingFalls/IconHover.d.ts +4 -4
- package/build/library/components/icons/services/Protect/Icon.d.ts +4 -4
- package/build/library/components/icons/services/Protect/IconHover.d.ts +4 -4
- package/build/library/components/icons/services/RatePay/Icon.d.ts +4 -4
- package/build/library/components/icons/services/RatePay/IconHover.d.ts +4 -4
- package/build/library/components/icons/services/RegisterBirth/Icon.d.ts +4 -4
- package/build/library/components/icons/services/RegisterBirth/IconHover.d.ts +4 -4
- package/build/library/components/icons/services/RegisterDeath/Icon.d.ts +4 -4
- package/build/library/components/icons/services/RegisterDeath/IconHover.d.ts +4 -4
- package/build/library/components/icons/services/Report/Icon.d.ts +4 -4
- package/build/library/components/icons/services/Report/IconHover.d.ts +4 -4
- package/build/library/components/icons/services/Restrict/Icon.d.ts +4 -4
- package/build/library/components/icons/services/Restrict/IconHover.d.ts +4 -4
- package/build/library/components/icons/services/RoadWorks/Icon.d.ts +4 -4
- package/build/library/components/icons/services/RoadWorks/IconHover.d.ts +4 -4
- package/build/library/components/icons/services/Roads/Icon.d.ts +4 -4
- package/build/library/components/icons/services/Roads/IconHover.d.ts +4 -4
- package/build/library/components/icons/services/RoyalWebsite/Icon.d.ts +4 -4
- package/build/library/components/icons/services/RoyalWebsite/IconHover.d.ts +4 -4
- package/build/library/components/icons/services/SEND/Icon.d.ts +4 -4
- package/build/library/components/icons/services/SEND/IconHover.d.ts +4 -4
- package/build/library/components/icons/services/Safety/Icon.d.ts +4 -4
- package/build/library/components/icons/services/Safety/IconHover.d.ts +4 -4
- package/build/library/components/icons/services/SchoolAdmissions/Icon.d.ts +4 -4
- package/build/library/components/icons/services/SchoolAdmissions/IconHover.d.ts +4 -4
- package/build/library/components/icons/services/Schools/Icon.d.ts +4 -4
- package/build/library/components/icons/services/Schools/IconHover.d.ts +4 -4
- package/build/library/components/icons/services/ServicesIcons.d.ts +173 -174
- package/build/library/components/icons/services/SinglePerson/Icon.d.ts +4 -4
- package/build/library/components/icons/services/SinglePerson/IconHover.d.ts +4 -4
- package/build/library/components/icons/services/Sports/Icon.d.ts +4 -4
- package/build/library/components/icons/services/Sports/IconHover.d.ts +4 -4
- package/build/library/components/icons/services/Valuation/Icon.d.ts +4 -4
- package/build/library/components/icons/services/Valuation/IconHover.d.ts +4 -4
- package/build/library/components/icons/services/Venue/Icon.d.ts +4 -4
- package/build/library/components/icons/services/Venue/IconHover.d.ts +4 -4
- package/build/library/components/icons/services/WasteChecklist/Icon.d.ts +4 -4
- package/build/library/components/icons/services/WasteChecklist/IconHover.d.ts +4 -4
- package/build/library/components/icons/services/WasteSorting/Icon.d.ts +4 -4
- package/build/library/components/icons/services/WasteSorting/IconHover.d.ts +4 -4
- package/build/library/components/logos/GDSLogo/logo.d.ts +4 -4
- package/build/library/components/logos/GDSLogo/logo.types.d.ts +2 -2
- package/build/library/components/logos/NorthColouredLogo/logo.d.ts +4 -4
- package/build/library/components/logos/NorthColouredLogo/logo.types.d.ts +2 -2
- package/build/library/components/logos/NorthWhiteLogo/logo.d.ts +4 -4
- package/build/library/components/logos/NorthWhiteLogo/logo.types.d.ts +2 -2
- package/build/library/components/logos/WestColouredLogo/logo.d.ts +4 -4
- package/build/library/components/logos/WestColouredLogo/logo.types.d.ts +2 -2
- package/build/library/components/logos/WestWhiteLogo/logo.d.ts +4 -4
- package/build/library/components/logos/WestWhiteLogo/logo.types.d.ts +2 -2
- package/build/library/contexts/DirectoryShortListProvider/DirectoryShortListProvider.d.ts +4 -4
- package/build/library/contexts/DirectoryShortListProvider/DirectoryShortListProvider.types.d.ts +55 -41
- package/build/library/contexts/PostCodeAddressProvider/PostCodeAddressProvider.d.ts +6 -6
- package/build/library/contexts/PostCodeAddressProvider/PostCodeAddressProvider.types.d.ts +18 -18
- package/build/library/directory/DirectoryAddToShortList/DirectoryAddToShortList.d.ts +4 -4
- package/build/library/directory/DirectoryAddToShortList/DirectoryAddToShortList.test.d.ts +1 -0
- package/build/library/directory/DirectoryAddToShortList/DirectoryAddToShortList.types.d.ts +35 -26
- package/build/library/directory/DirectoryDocumentList/DirectoryDocumentList.d.ts +4 -4
- package/build/library/directory/DirectoryDocumentList/DirectoryDocumentList.storydata.d.ts +4 -4
- package/build/library/directory/DirectoryDocumentList/DirectoryDocumentList.test.d.ts +1 -0
- package/build/library/directory/DirectoryDocumentList/DirectoryDocumentList.types.d.ts +67 -63
- package/build/library/directory/DirectoryMap/DirectoryMap.d.ts +4 -4
- package/build/library/directory/DirectoryMap/DirectoryMap.types.d.ts +11 -11
- package/build/library/directory/DirectoryService/DirectoryService.d.ts +4 -4
- package/build/library/directory/DirectoryService/DirectoryService.storydata.d.ts +5 -4
- package/build/library/directory/DirectoryService/DirectoryService.test.d.ts +1 -0
- package/build/library/directory/DirectoryService/DirectoryService.types.d.ts +282 -278
- package/build/library/directory/DirectoryService/DirectoryServiceTransform.d.ts +8 -8
- package/build/library/directory/DirectoryService/DirectoryServiceTransform.test.d.ts +1 -0
- package/build/library/directory/DirectoryServiceList/DirectoryServiceList.d.ts +4 -4
- package/build/library/directory/DirectoryServiceList/DirectoryServiceList.storydata.d.ts +6 -6
- package/build/library/directory/DirectoryServiceList/DirectoryServiceList.test.d.ts +1 -0
- package/build/library/directory/DirectoryServiceList/DirectoryServiceList.types.d.ts +148 -136
- package/build/library/directory/DirectoryShortList/DirectoryShortList.d.ts +4 -4
- package/build/library/directory/DirectoryShortList/DirectoryShortList.test.d.ts +1 -0
- package/build/library/directory/DirectoryShortList/DirectoryShortList.types.d.ts +6 -6
- package/build/library/directory/ServiceContact/ServiceContact.d.ts +4 -4
- package/build/library/directory/ServiceContact/ServiceContact.test.d.ts +1 -0
- package/build/library/directory/ServiceContact/ServiceContact.types.d.ts +46 -42
- package/build/library/directory/ServiceSocialLinks/ServiceSocialLinks.d.ts +4 -4
- package/build/library/directory/ServiceSocialLinks/ServiceSocialLinks.storydata.d.ts +2 -2
- package/build/library/directory/ServiceSocialLinks/ServiceSocialLinks.test.d.ts +1 -0
- package/build/library/directory/ServiceSocialLinks/ServiceSocialLinks.types.d.ts +24 -24
- package/build/library/events/Event/Event.d.ts +4 -0
- package/build/library/events/Event/Event.storydata.d.ts +4 -0
- package/build/library/events/Event/Event.types.d.ts +206 -0
- package/build/library/events/Event/index.d.ts +3 -0
- package/build/library/events/EventList/EventList.d.ts +4 -0
- package/build/library/events/EventList/EventList.storydata.d.ts +3 -0
- package/build/library/events/EventList/EventList.types.d.ts +152 -0
- package/build/library/events/EventList/index.d.ts +3 -0
- package/build/library/events/index.d.ts +5 -0
- package/build/library/events/utils/EventFilters.d.ts +57 -0
- package/build/library/events/utils/index.d.ts +1 -0
- package/build/library/helpers/UseLocalStorage.d.ts +2 -2
- package/build/library/helpers/api-helpers.d.ts +120 -120
- package/build/library/pages/ContentPage/ContentPage.d.ts +4 -4
- package/build/library/pages/ContentPage/ContentPage.storydata.d.ts +10 -10
- package/build/library/pages/CouncilTaxPageExample/CouncilTaxPageExample.d.ts +5 -5
- package/build/library/pages/CouncilTaxParishPageExample/CouncilTaxParishPageExample.d.ts +5 -5
- package/build/library/pages/DirectoryServicePage/DirectoryServicePage.d.ts +2 -2
- package/build/library/pages/ErrorPage/ErrorPage.d.ts +6 -6
- package/build/library/pages/EventPage/EventPage.d.ts +13 -0
- package/build/library/pages/EventPage/index.d.ts +1 -0
- package/build/library/pages/Home/HomePage.d.ts +8 -8
- package/build/library/pages/Home/HomePage.types.d.ts +60 -60
- package/build/library/pages/MemorialPage/MemorialPage.d.ts +8 -8
- package/build/library/pages/MemorialPage/MemorialPage.types.d.ts +59 -59
- package/build/library/pages/News/News.d.ts +5 -5
- package/build/library/pages/NewsArticle/NewsArticle.d.ts +7 -7
- package/build/library/pages/SearchResultsPageExample/SearchResultsPageExample.d.ts +29 -29
- package/build/library/pages/ServiceLandingPageExample/ServiceLandingPageExample.d.ts +3 -3
- package/build/library/pages/ServiceLandingPageExample/ServiceLandingPageExample.storydata.d.ts +30 -30
- package/build/library/pages/ServiceLandingPageExample/ServiceLandingPageExample.types.d.ts +52 -52
- package/build/library/pages/ServicePageExample/ServicePageExample.d.ts +7 -7
- package/build/library/pages/SignpostPageExample/SignpostPageExample.d.ts +7 -7
- package/build/library/pages/Templates/Templates.d.ts +8 -8
- package/build/library/slices/Accordion/Accordion.d.ts +4 -4
- package/build/library/slices/Accordion/Accordion.test.d.ts +1 -0
- package/build/library/slices/Accordion/Accordion.types.d.ts +52 -53
- package/build/library/slices/Accordion/AccordionSection.d.ts +4 -4
- package/build/library/slices/BlockQuote/BlockQuote.d.ts +4 -4
- package/build/library/slices/BlockQuote/BlockQuote.types.d.ts +10 -11
- package/build/library/slices/CallToAction/CallToAction.d.ts +7 -7
- package/build/library/slices/Cards/Cards.d.ts +7 -7
- package/build/library/slices/Cards/Cards.test.d.ts +1 -0
- package/build/library/slices/Cards/Cards.types.d.ts +7 -7
- package/build/library/slices/CouncilTaxAlphabeticalDirectory/CouncilTaxAlphabeticalDirectory.d.ts +7 -7
- package/build/library/slices/CouncilTaxAlphabeticalDirectory/CouncilTaxAlphabeticalDirectory.storydata.d.ts +4 -4
- package/build/library/slices/CouncilTaxAlphabeticalDirectory/CouncilTaxAlphabeticalDirectory.test.d.ts +1 -0
- package/build/library/slices/CouncilTaxAlphabeticalDirectory/CouncilTaxAlphabeticalDirectory.types.d.ts +81 -81
- package/build/library/slices/Divider/Divider.d.ts +4 -4
- package/build/library/slices/Divider/Divider.types.d.ts +2 -2
- package/build/library/slices/DownloadableFiles/DownloadableFiles.d.ts +4 -4
- package/build/library/slices/DownloadableFiles/DownloadableFiles.types.d.ts +7 -7
- package/build/library/slices/GoogleMap/GoogleMap.d.ts +7 -7
- package/build/library/slices/GoogleMap/GoogleMap.storydata.d.ts +44 -44
- package/build/library/slices/GoogleMap/GoogleMap.test.d.ts +1 -0
- package/build/library/slices/GoogleMap/GoogleMap.types.d.ts +28 -28
- package/build/library/slices/Image/Image.d.ts +8 -8
- package/build/library/slices/Image/Image.storydata.d.ts +2 -2
- package/build/library/slices/Image/Image.test.d.ts +1 -0
- package/build/library/slices/Image/Image.types.d.ts +26 -26
- package/build/library/slices/ImageAndText/ImageAndText.d.ts +7 -7
- package/build/library/slices/ImageAndText/ImageAndText.storydata.d.ts +2 -2
- package/build/library/slices/ImageAndText/ImageAndText.test.d.ts +1 -0
- package/build/library/slices/ImageAndText/ImageAndText.types.d.ts +15 -15
- package/build/library/slices/InquestSchedule/InquestSchedule.d.ts +7 -7
- package/build/library/slices/InquestSchedule/InquestSchedule.storydata.d.ts +3 -2
- package/build/library/slices/InquestSchedule/InquestSchedule.test.d.ts +1 -0
- package/build/library/slices/InquestSchedule/InquestSchedule.types.d.ts +32 -24
- package/build/library/slices/Promotions/Promotions.d.ts +7 -7
- package/build/library/slices/RoadworksList/RoadworksList.d.ts +7 -0
- package/build/library/slices/RoadworksList/RoadworksList.storydata.d.ts +4 -0
- package/build/library/slices/RoadworksList/RoadworksList.test.d.ts +1 -0
- package/build/library/slices/RoadworksList/RoadworksList.types.d.ts +52 -0
- package/build/library/slices/SearchBox/SearchBox.d.ts +4 -4
- package/build/library/slices/SearchBox/SearchBox.storydata.d.ts +2 -2
- package/build/library/slices/SearchBox/SearchBox.test.d.ts +1 -0
- package/build/library/slices/SearchBox/SearchBox.types.d.ts +41 -41
- package/build/library/slices/Video/Video.d.ts +7 -7
- package/build/library/slices/Video/Video.test.d.ts +1 -0
- package/build/library/slices/Video/Video.types.d.ts +22 -22
- package/build/library/slices/WarningText/WarningText.d.ts +7 -7
- package/build/library/slices/WarningText/WarningText.test.d.ts +1 -0
- package/build/library/slices/WarningText/WarningText.types.d.ts +14 -15
- package/build/library/slices/WarningTextDisclaimer/WarningTextDisclaimer.d.ts +4 -4
- package/build/library/slices/WarningTextDisclaimer/WarningTextDisclaimer.types.d.ts +2 -2
- package/build/library/structure/AccessibleLinks/AccessibleLinks.d.ts +4 -4
- package/build/library/structure/AccessibleLinks/AccessibleLinks.types.d.ts +22 -22
- package/build/library/structure/AlertBanner/AlertBanner.d.ts +7 -7
- package/build/library/structure/AlertBanner/AlertBanner.test.d.ts +1 -0
- package/build/library/structure/AlertBanner/AlertBanner.types.d.ts +18 -19
- package/build/library/structure/AlertBannerService/AlertBannerService.d.ts +8 -8
- package/build/library/structure/AlertBannerService/AlertBannerService.test.d.ts +1 -0
- package/build/library/structure/AlertBannerService/AlertBannerService.types.d.ts +18 -19
- package/build/library/structure/BackLink/BackLink.d.ts +7 -7
- package/build/library/structure/BackLink/BackLink.test.d.ts +1 -0
- package/build/library/structure/BackLink/BackLink.types.d.ts +10 -10
- package/build/library/structure/Breadcrumbs/Breadcrumbs.d.ts +4 -4
- package/build/library/structure/Breadcrumbs/Breadcrumbs.test.d.ts +1 -0
- package/build/library/structure/Breadcrumbs/Breadcrumbs.types.d.ts +20 -20
- package/build/library/structure/Contents/Contents.d.ts +4 -4
- package/build/library/structure/Contents/Contents.storydata.d.ts +2 -2
- package/build/library/structure/Contents/Contents.test.d.ts +1 -0
- package/build/library/structure/Contents/Contents.types.d.ts +24 -24
- package/build/library/structure/ContentsNavigation/ContentsNavigation.d.ts +4 -4
- package/build/library/structure/ContentsNavigation/ContentsNavigation.test.d.ts +1 -0
- package/build/library/structure/CookieBanner/CookieBanner.d.ts +6 -6
- package/build/library/structure/CookieBanner/CookieBanner.types.d.ts +30 -31
- package/build/library/structure/CookieBanner/CookieClear.d.ts +5 -5
- package/build/library/structure/DisplayDate/DisplayDate.d.ts +7 -7
- package/build/library/structure/DisplayDate/DisplayDate.types.d.ts +18 -18
- package/build/library/structure/Footer/Footer.d.ts +4 -4
- package/build/library/structure/Footer/Footer.test.d.ts +1 -0
- package/build/library/structure/Footer/Footer.types.d.ts +24 -24
- package/build/library/structure/FullWidthContainer/FullWidthContainer.d.ts +7 -7
- package/build/library/structure/FullWidthContainer/FullWidthContainer.test.d.ts +1 -0
- package/build/library/structure/FullWidthContainer/FullWidthContainer.types.d.ts +15 -15
- package/build/library/structure/Header/Header.d.ts +7 -7
- package/build/library/structure/Header/Header.test.d.ts +1 -0
- package/build/library/structure/Header/Header.types.d.ts +30 -31
- package/build/library/structure/HeroImage/HeroImage.d.ts +8 -8
- package/build/library/structure/HeroImage/HeroImage.storydata.d.ts +6 -6
- package/build/library/structure/HeroImage/HeroImage.test.d.ts +1 -0
- package/build/library/structure/HeroImage/HeroImage.types.d.ts +52 -48
- package/build/library/structure/HomeHero/HomeHero.d.ts +7 -7
- package/build/library/structure/HomeHero/HomeHero.storydata.d.ts +14 -14
- package/build/library/structure/HomeHero/HomeHero.test.d.ts +1 -0
- package/build/library/structure/HomeHero/HomeHero.types.d.ts +54 -54
- package/build/library/structure/MaxWidthContainer/MaxWidthContainer.d.ts +7 -7
- package/build/library/structure/MaxWidthContainer/MaxWidthContainer.types.d.ts +22 -23
- package/build/library/structure/MemorialHero/MemorialHero.d.ts +4 -4
- package/build/library/structure/MemorialHero/MemorialHero.types.d.ts +27 -27
- package/build/library/structure/NewsArticleDate/NewsArticleDate.d.ts +7 -7
- package/build/library/structure/NewsArticleDate/NewsArticleDate.types.d.ts +10 -10
- package/build/library/structure/NewsArticleFeaturedBlock/NewsArticleFeaturedBlock.d.ts +7 -7
- package/build/library/structure/NewsArticleFeaturedBlock/NewsArticleFeaturedBlock.test.d.ts +1 -0
- package/build/library/structure/NewsArticleFeaturedBlock/NewsArticleFeaturedBlock.types.d.ts +23 -23
- package/build/library/structure/NewsArticleFilterAccordion/NewsArticleFilterAccordion.d.ts +4 -4
- package/build/library/structure/NewsArticleFilterAccordion/NewsArticleFilterAccordion.types.d.ts +7 -7
- package/build/library/structure/NewsArticleImage/NewsArticleImage.d.ts +7 -7
- package/build/library/structure/NewsArticleImage/NewsArticleImage.types.d.ts +18 -18
- package/build/library/structure/NewsArticleList/NewsArticleData.d.ts +7 -7
- package/build/library/structure/NewsArticleList/NewsArticleList.d.ts +4 -4
- package/build/library/structure/NewsArticleList/NewsArticleList.test.d.ts +1 -0
- package/build/library/structure/NewsArticleList/NewsArticleList.types.d.ts +28 -28
- package/build/library/structure/NewsArticleListHeader/NewsArticleListHeader.d.ts +4 -4
- package/build/library/structure/NewsArticleListHeader/NewsArticleListHeader.types.d.ts +6 -6
- package/build/library/structure/NewsArticleOldBanner/NewsArticleOldBanner.d.ts +7 -7
- package/build/library/structure/NewsArticleOldBanner/NewsArticleOldBanner.types.d.ts +2 -2
- package/build/library/structure/PageMain/PageMain.d.ts +7 -7
- package/build/library/structure/PageMain/PageMain.test.d.ts +1 -0
- package/build/library/structure/PageMain/PageMain.types.d.ts +14 -15
- package/build/library/structure/PageSidebar/PageSidebar.d.ts +7 -7
- package/build/library/structure/PageSidebar/PageSidebar.types.d.ts +6 -7
- package/build/library/structure/PageStructures.d.ts +42 -42
- package/build/library/structure/PageTitle/PageTitle.d.ts +7 -7
- package/build/library/structure/PageTitle/PageTitle.types.d.ts +11 -11
- package/build/library/structure/PageWithSidebarContainer/PageWithSidebarContainer.d.ts +7 -7
- package/build/library/structure/PageWithSidebarContainer/PageWithSidebarContainer.types.d.ts +10 -11
- package/build/library/structure/PageWrapper/PageWrapper.d.ts +4 -4
- package/build/library/structure/PageWrapper/PageWrapper.types.d.ts +11 -11
- package/build/library/structure/PhaseBanner/PhaseBanner.d.ts +4 -4
- package/build/library/structure/PhaseBanner/PhaseBanner.types.d.ts +3 -3
- package/build/library/structure/PromoBanner/PromoBanner.d.ts +8 -8
- package/build/library/structure/PromoBanner/PromoBanner.storydata.d.ts +9 -10
- package/build/library/structure/PromoBanner/PromoBanner.test.d.ts +1 -0
- package/build/library/structure/PromoBanner/PromoBanner.types.d.ts +26 -27
- package/build/library/structure/PromoBlock/PromoBlock.d.ts +8 -8
- package/build/library/structure/PromoBlock/PromoBlock.storydata.d.ts +5 -5
- package/build/library/structure/PromoBlock/PromoBlock.test.d.ts +1 -0
- package/build/library/structure/PromoBlock/PromoBlock.types.d.ts +36 -36
- package/build/library/structure/SearchHeader/SearchHeader.d.ts +4 -4
- package/build/library/structure/SearchHeader/SearchHeader.types.d.ts +2 -2
- package/build/library/structure/SearchResultsList/NoResultsMessage.d.ts +3 -3
- package/build/library/structure/SearchResultsList/SearchResultsList.d.ts +4 -4
- package/build/library/structure/SearchResultsList/SearchResultsList.test.d.ts +1 -0
- package/build/library/structure/SearchResultsList/SearchResultsList.types.d.ts +46 -46
- package/build/library/structure/Searchbar/Searchbar.d.ts +4 -4
- package/build/library/structure/Searchbar/Searchbar.test.d.ts +1 -0
- package/build/library/structure/Searchbar/Searchbar.types.d.ts +48 -48
- package/build/library/structure/SectionLinks/SectionLinks.d.ts +7 -7
- package/build/library/structure/SectionLinks/SectionLinks.storydata.d.ts +2 -2
- package/build/library/structure/SectionLinks/SectionLinks.test.d.ts +1 -0
- package/build/library/structure/SectionLinks/SectionLinks.types.d.ts +52 -52
- package/build/library/structure/SectionLinksMobileContents/SectionLinksMobileContents.d.ts +4 -4
- package/build/library/structure/SectionLinksMobileContents/SectionLinksMobileContents.types.d.ts +16 -16
- package/build/library/structure/SectionLinksSidebar/SectionLinksSidebar.d.ts +4 -4
- package/build/library/structure/SectionLinksSidebar/SectionLinksSidebar.test.d.ts +1 -0
- package/build/library/structure/SectionLinksSidebar/SectionLinksSidebar.types.d.ts +34 -34
- package/build/library/structure/ServicesLinksBoxed/ServicesLinksBoxed.d.ts +4 -4
- package/build/library/structure/ServicesLinksBoxed/ServicesLinksBoxed.storydata.d.ts +9 -9
- package/build/library/structure/ServicesLinksBoxed/ServicesLinksBoxed.test.d.ts +1 -0
- package/build/library/structure/ServicesLinksBoxed/ServicesLinksBoxed.types.d.ts +53 -53
- package/build/library/structure/ServicesLinksList/ServicesLinksList.d.ts +4 -4
- package/build/library/structure/ServicesLinksList/ServicesLinksList.test.d.ts +1 -0
- package/build/library/structure/ServicesLinksList/ServicesLinksList.types.d.ts +68 -68
- package/build/library/structure/SignpostLinks/SignpostLinks.d.ts +4 -4
- package/build/library/structure/SignpostLinks/SignpostLinks.types.d.ts +32 -32
- package/build/library/structure/SkipToMainContent/SkipToMainContent.d.ts +4 -4
- package/build/library/structure/SkipToMainContent/SkipToMainContent.test.d.ts +1 -0
- package/build/library/structure/SkipToMainContent/SkipToMainContent.types.d.ts +2 -2
- package/build/library/structure/Summary/Summary.d.ts +4 -4
- package/build/library/structure/Summary/Summary.test.d.ts +1 -0
- package/build/library/structure/Summary/Summary.types.d.ts +15 -15
- package/build/src/index.d.ts +2 -1
- package/build/src/library/components/SummaryList/SummaryList.types.d.ts +8 -0
- package/build/src/library/directory/DirectoryAddToShortList/DirectoryAddToShortList.types.d.ts +9 -0
- package/build/src/library/directory/DirectoryDocumentList/DirectoryDocumentList.types.d.ts +4 -0
- package/build/src/library/directory/DirectoryService/DirectoryService.storydata.d.ts +1 -0
- package/build/src/library/directory/DirectoryService/DirectoryService.types.d.ts +4 -0
- package/build/src/library/directory/DirectoryService/DirectoryServiceTransform.d.ts +1 -1
- package/build/src/library/directory/DirectoryService/DirectoryServiceTransform.test.d.ts +1 -0
- package/build/src/library/directory/DirectoryServiceList/DirectoryServiceList.types.d.ts +12 -0
- package/build/src/library/directory/ServiceContact/ServiceContact.types.d.ts +4 -0
- package/build/src/library/events/Event/Event.d.ts +4 -0
- package/build/src/library/events/Event/Event.storydata.d.ts +4 -0
- package/build/src/library/events/Event/Event.types.d.ts +206 -0
- package/build/src/library/events/Event/index.d.ts +3 -0
- package/build/src/library/events/EventList/EventList.d.ts +4 -0
- package/build/src/library/events/EventList/EventList.storydata.d.ts +3 -0
- package/build/src/library/events/EventList/EventList.types.d.ts +152 -0
- package/build/src/library/events/EventList/index.d.ts +3 -0
- package/build/src/library/events/index.d.ts +5 -0
- package/build/src/library/events/utils/EventFilters.d.ts +57 -0
- package/build/src/library/events/utils/index.d.ts +1 -0
- package/build/src/library/pages/EventPage/EventPage.d.ts +13 -0
- package/build/src/library/pages/EventPage/index.d.ts +1 -0
- package/build/src/library/slices/InquestSchedule/InquestSchedule.storydata.d.ts +1 -0
- package/build/src/library/slices/InquestSchedule/InquestSchedule.types.d.ts +8 -0
- package/build/src/library/slices/RoadworksList/RoadworksList.d.ts +7 -0
- package/build/src/library/slices/RoadworksList/RoadworksList.storydata.d.ts +4 -0
- package/build/src/library/slices/RoadworksList/RoadworksList.test.d.ts +1 -0
- package/build/src/library/slices/RoadworksList/RoadworksList.types.d.ts +52 -0
- package/build/src/library/structure/HeroImage/HeroImage.types.d.ts +6 -2
- package/build/themes/ThemeVars.types.d.ts +60 -0
- package/package.json +1 -1
package/build/index.js
CHANGED
|
@@ -3887,7 +3887,7 @@ var Autocomplete = function (_a) {
|
|
|
3887
3887
|
})));
|
|
3888
3888
|
};
|
|
3889
3889
|
|
|
3890
|
-
const Container$
|
|
3890
|
+
const Container$19 = styled__default.default.div`
|
|
3891
3891
|
display: block;
|
|
3892
3892
|
`;
|
|
3893
3893
|
|
|
@@ -3972,7 +3972,7 @@ var BackToTop = function (_a) {
|
|
|
3972
3972
|
React.useEffect(function () {
|
|
3973
3973
|
window.addEventListener('scroll', toggleVisible);
|
|
3974
3974
|
});
|
|
3975
|
-
return (React__default.default.createElement(Container$
|
|
3975
|
+
return (React__default.default.createElement(Container$19, { "data-testid": "BackToTop" }, isActive && (React__default.default.createElement(BackToTopButton, { onClick: scrollToTop, "$visible": visible, "data-testid": "BackToTopButton", type: "button", "aria-label": "Go to the top of the page" },
|
|
3976
3976
|
React__default.default.createElement(ChevronIcon, { colourFill: themeContext.theme_vars.colours.white, direction: "up" })))));
|
|
3977
3977
|
};
|
|
3978
3978
|
|
|
@@ -4076,9 +4076,9 @@ var Button$4 = function (_a) {
|
|
|
4076
4076
|
return (React__default.default.createElement(StyledButton$1, __assign$2({ className: ["button--".concat(size), mode].join(' ') }, href, { title: title ? title : text, "$colourOverride": colourOverride && colourOverride }, props), text ? text : children));
|
|
4077
4077
|
};
|
|
4078
4078
|
|
|
4079
|
-
var Container$
|
|
4080
|
-
var Label$
|
|
4081
|
-
var VisuallyHiddenLabel = styled__default.default(Label$
|
|
4079
|
+
var Container$18 = styled__default.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n"], ["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n"])));
|
|
4080
|
+
var Label$6 = styled__default.default.label(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n display: block;\n margin-bottom: 15px;\n"], ["\n display: block;\n margin-bottom: 15px;\n"])));
|
|
4081
|
+
var VisuallyHiddenLabel = styled__default.default(Label$6)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n position: absolute;\n width: 1px;\n height: 1px;\n margin: -1px;\n padding: 0;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n clip-path: inset(50%);\n border: 0;\n white-space: nowrap;\n"], ["\n position: absolute;\n width: 1px;\n height: 1px;\n margin: -1px;\n padding: 0;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n clip-path: inset(50%);\n border: 0;\n white-space: nowrap;\n"])));
|
|
4082
4082
|
var BinCollectionButtonStyles = styled__default.default.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n button {\n margin: 10px 10px 12px 10px;\n }\n"], ["\n button {\n margin: 10px 10px 12px 10px;\n }\n"])));
|
|
4083
4083
|
var FormContainer$1 = styled__default.default.div(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n width: 100%;\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n ", "\n"], ["\n width: 100%;\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n ", "\n"])), function (props) {
|
|
4084
4084
|
return props.$isLoading && "\n opacity: 0.5; \n pointer-events: none;\n ";
|
|
@@ -4091,7 +4091,7 @@ styled__default.default.div(templateObject_10 || (templateObject_10 = __makeTemp
|
|
|
4091
4091
|
styled__default.default.input(templateObject_11 || (templateObject_11 = __makeTemplateObject([""], [""])));
|
|
4092
4092
|
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10, templateObject_11;
|
|
4093
4093
|
|
|
4094
|
-
const Container$
|
|
4094
|
+
const Container$17 = styled__default.default.div`
|
|
4095
4095
|
display: flex;
|
|
4096
4096
|
-webkit-flex-direction: row;
|
|
4097
4097
|
-moz-flex-direction: row;
|
|
@@ -4128,7 +4128,7 @@ const ErrorSummary = styled__default.default.div`
|
|
|
4128
4128
|
*/
|
|
4129
4129
|
var FormWithLine = function (_a) {
|
|
4130
4130
|
var _b = _a.lineColour, lineColour = _b === void 0 ? '#C6C6C6' : _b, _c = _a.hideLine, hideLine = _c === void 0 ? false : _c, formRole = _a.formRole, formMethod = _a.formMethod, formURL = _a.formURL, _d = _a.isError, isError = _d === void 0 ? false : _d, errorSummary = _a.errorSummary, onSubmit = _a.onSubmit, children = _a.children;
|
|
4131
|
-
return (React__default.default.createElement(Container$
|
|
4131
|
+
return (React__default.default.createElement(Container$17, null,
|
|
4132
4132
|
React__default.default.createElement(Line$1, { "$lineColour": lineColour, "$hideLine": hideLine, "$isError": isError }),
|
|
4133
4133
|
React__default.default.createElement(Form, { onSubmit: onSubmit, "$hideLine": hideLine, role: formRole, method: formMethod, url: formURL, "data-testid": "FormWithLine" },
|
|
4134
4134
|
errorSummary && React__default.default.createElement(ErrorSummary, null, errorSummary),
|
|
@@ -4206,7 +4206,7 @@ var FormButton = function (_a) {
|
|
|
4206
4206
|
return (React__default.default.createElement(StyledButton, __assign$2({ type: type, className: ["button--".concat(size), mode].join(' ') }, props), text));
|
|
4207
4207
|
};
|
|
4208
4208
|
|
|
4209
|
-
const Container$
|
|
4209
|
+
const Container$16 = styled__default.default.div`
|
|
4210
4210
|
${(props) => props.theme.fontStyles};
|
|
4211
4211
|
`;
|
|
4212
4212
|
|
|
@@ -4216,7 +4216,7 @@ const hideLabel$1 = (props) => {
|
|
|
4216
4216
|
}
|
|
4217
4217
|
};
|
|
4218
4218
|
|
|
4219
|
-
const Label$
|
|
4219
|
+
const Label$5 = styled__default.default.label`
|
|
4220
4220
|
display: block;
|
|
4221
4221
|
margin-bottom: 5px;
|
|
4222
4222
|
${hideLabel$1}
|
|
@@ -4251,8 +4251,8 @@ const Option = styled__default.default.option`
|
|
|
4251
4251
|
|
|
4252
4252
|
var DropDownSelect = function (_a) {
|
|
4253
4253
|
var id = _a.id, label = _a.label, options = _a.options, onChange = _a.onChange, selected = _a.selected, _b = _a.hideLabel, hideLabel = _b === void 0 ? false : _b;
|
|
4254
|
-
return (React__default.default.createElement(Container$
|
|
4255
|
-
React__default.default.createElement(Label$
|
|
4254
|
+
return (React__default.default.createElement(Container$16, null,
|
|
4255
|
+
React__default.default.createElement(Label$5, { htmlFor: id, "$hideLabel": hideLabel }, label),
|
|
4256
4256
|
React__default.default.createElement(Select, { id: id, name: id, onChange: onChange && onChange, defaultValue: selected && selected }, options.map(function (option, i) { return (React__default.default.createElement(Option, { key: i, value: option.value }, option.title)); }))));
|
|
4257
4257
|
};
|
|
4258
4258
|
|
|
@@ -4535,7 +4535,7 @@ var BinCollection = function (_a) {
|
|
|
4535
4535
|
React.useEffect(function () {
|
|
4536
4536
|
seenTitles.current.clear();
|
|
4537
4537
|
}, [calendarEvents]);
|
|
4538
|
-
return (React__default.default.createElement(Container$
|
|
4538
|
+
return (React__default.default.createElement(Container$18, { "data-testid": "BinCollection" },
|
|
4539
4539
|
React__default.default.createElement(FormWithLine, { onSubmit: handleSubmit, isError: isError, lineColour: themeContext.theme_vars.colours.$grey_dark, hideLine: true },
|
|
4540
4540
|
React__default.default.createElement(FormContainer$1, { "$isLoading": isLoading },
|
|
4541
4541
|
React__default.default.createElement(Heading, { level: 2, text: "Bin collection checker" }),
|
|
@@ -6642,7 +6642,7 @@ var HeadingWithIcon = function (_a) {
|
|
|
6642
6642
|
React__default.default.createElement(Heading, { text: text, level: level })));
|
|
6643
6643
|
};
|
|
6644
6644
|
|
|
6645
|
-
const Container$
|
|
6645
|
+
const Container$15 = styled__default.default.div`
|
|
6646
6646
|
display: flex;
|
|
6647
6647
|
width: 100%;
|
|
6648
6648
|
min-height: 400px;
|
|
@@ -6666,7 +6666,7 @@ var Map$1 = function (_a) {
|
|
|
6666
6666
|
setMap(new window.google.maps.Map(ref.current, { center: center, zoom: zoom }));
|
|
6667
6667
|
}
|
|
6668
6668
|
}, [ref, map]);
|
|
6669
|
-
return (React__default.default.createElement(Container$
|
|
6669
|
+
return (React__default.default.createElement(Container$15, { "data-testid": "Map" },
|
|
6670
6670
|
React__default.default.createElement("div", { ref: ref }),
|
|
6671
6671
|
React__default.default.Children.map(children, function (child) {
|
|
6672
6672
|
if (React__default.default.isValidElement(child)) {
|
|
@@ -6690,10 +6690,14 @@ var MapMarker = function (options) {
|
|
|
6690
6690
|
anchor: new google.maps.Point(40, 60),
|
|
6691
6691
|
labelOrigin: new google.maps.Point(21, 25),
|
|
6692
6692
|
};
|
|
6693
|
-
var mergedOptions = __assign$2(__assign$2({}, options), { anchorPoint: new google.maps.Point(-5, -40), icon: icon, label:
|
|
6694
|
-
|
|
6695
|
-
|
|
6696
|
-
|
|
6693
|
+
var mergedOptions = __assign$2(__assign$2({}, options), { anchorPoint: new google.maps.Point(-5, -40), icon: icon, position: options.position, title: options.title, label: options.label ?
|
|
6694
|
+
(typeof options.label === 'string' ?
|
|
6695
|
+
{ text: options.label, color: '#FFFFFF' } : __assign$2(__assign$2({}, options.label), { color: '#FFFFFF' })) : undefined });
|
|
6696
|
+
for (var key in options) {
|
|
6697
|
+
if (key !== 'label' && Object.prototype.hasOwnProperty.call(options, key)) {
|
|
6698
|
+
mergedOptions[key] = options[key];
|
|
6699
|
+
}
|
|
6700
|
+
}
|
|
6697
6701
|
React__default.default.useEffect(function () {
|
|
6698
6702
|
if (!marker) {
|
|
6699
6703
|
setMarker(new google.maps.Marker());
|
|
@@ -6723,7 +6727,7 @@ var MapMarker = function (options) {
|
|
|
6723
6727
|
return null;
|
|
6724
6728
|
};
|
|
6725
6729
|
|
|
6726
|
-
const Container$
|
|
6730
|
+
const Container$14 = styled__default.default.div`
|
|
6727
6731
|
${(props) => props.theme.fontStyles};
|
|
6728
6732
|
display: block;
|
|
6729
6733
|
border-top: 1px solid ${(props) => props.theme.theme_vars.colours.grey};
|
|
@@ -7504,7 +7508,7 @@ var Pagination = function (_a) {
|
|
|
7504
7508
|
}
|
|
7505
7509
|
};
|
|
7506
7510
|
if (numbers.length > 1) {
|
|
7507
|
-
return (React__default.default.createElement(Container$
|
|
7511
|
+
return (React__default.default.createElement(Container$14, { "data-testid": "Pagination", role: "navigation", "aria-label": "Pagination" },
|
|
7508
7512
|
currentPage > 1 && (React__default.default.createElement(Previous, { onClick: function () { return buttonClick(currentPage - 1); }, title: "Go back a page" }, "Previous")),
|
|
7509
7513
|
React__default.default.createElement(NumbersContainer, null, numbers.map(function (v, i) { return (React__default.default.createElement(NumberContainer, { key: i },
|
|
7510
7514
|
v === '...' && React__default.default.createElement(Ellipsis, null, "..."),
|
|
@@ -7516,7 +7520,7 @@ var Pagination = function (_a) {
|
|
|
7516
7520
|
return null;
|
|
7517
7521
|
};
|
|
7518
7522
|
|
|
7519
|
-
const Container$
|
|
7523
|
+
const Container$13 = styled__default.default.div`
|
|
7520
7524
|
${(props) => props.theme.fontStyles};
|
|
7521
7525
|
margin-bottom: 30px;
|
|
7522
7526
|
`;
|
|
@@ -7687,7 +7691,7 @@ var CheckboxListFilter = function (_a) {
|
|
|
7687
7691
|
handleParams('news', [{ key: NewsArticleFilterFields.articleType.queryParamKey, value: articleTypes }], ['page']);
|
|
7688
7692
|
};
|
|
7689
7693
|
var backupLabel = Math.random().toString(36).substring(7);
|
|
7690
|
-
return (React__default.default.createElement(Container$
|
|
7694
|
+
return (React__default.default.createElement(Container$13, { "data-testid": "CheckboxListFilter" },
|
|
7691
7695
|
React__default.default.createElement(Fieldset$2, { "aria-describedby": hintId },
|
|
7692
7696
|
React__default.default.createElement(Legend$2, { "$labelHidden": labelHidden, "data-testid": "CheckboxListFilterLegend" }, label),
|
|
7693
7697
|
React__default.default.createElement(Hint, { id: hintId, "$hintHidden": hintHidden, "data-testid": "CheckboxListFilterHint" }, hint),
|
|
@@ -7819,7 +7823,7 @@ const PromotedLink$1 = styled__default.default.a`
|
|
|
7819
7823
|
${oneColStyles}
|
|
7820
7824
|
`;
|
|
7821
7825
|
|
|
7822
|
-
const Container$
|
|
7826
|
+
const Container$12 = styled__default.default.div`
|
|
7823
7827
|
box-sizing: border-box;
|
|
7824
7828
|
display: flex;
|
|
7825
7829
|
flex-wrap: wrap;
|
|
@@ -7842,7 +7846,7 @@ const Container$11 = styled__default.default.div`
|
|
|
7842
7846
|
|
|
7843
7847
|
var Row$1 = function (_a) {
|
|
7844
7848
|
var _b = _a.hasBorder, hasBorder = _b === void 0 ? false : _b, _c = _a.isList, isList = _c === void 0 ? false : _c, _d = _a.hasWrap, hasWrap = _d === void 0 ? true : _d, children = _a.children;
|
|
7845
|
-
return (React__default.default.createElement(Container$
|
|
7849
|
+
return (React__default.default.createElement(Container$12, { "data-testid": "Row", "$hasBorder": hasBorder, "$hasWrap": hasWrap, as: isList ? 'ul' : 'div' }, children));
|
|
7846
7850
|
};
|
|
7847
7851
|
|
|
7848
7852
|
const calculateWidth = (size) => {
|
|
@@ -7892,7 +7896,7 @@ const widths = (props) => {
|
|
|
7892
7896
|
`;
|
|
7893
7897
|
};
|
|
7894
7898
|
|
|
7895
|
-
const Container$
|
|
7899
|
+
const Container$11 = styled__default.default.div`
|
|
7896
7900
|
box-sizing: border-box;
|
|
7897
7901
|
display: block;
|
|
7898
7902
|
padding: ${(props) => (props.$hasPadding ? props.theme.theme_vars.spacingSizes.small : `0`)};
|
|
@@ -7903,14 +7907,14 @@ const Container$10 = styled__default.default.div`
|
|
|
7903
7907
|
|
|
7904
7908
|
var Column = function (_a) {
|
|
7905
7909
|
var _b = _a.small, small = _b === void 0 ? 'full' : _b, _c = _a.medium, medium = _c === void 0 ? 'one-half' : _c, _d = _a.large, large = _d === void 0 ? 'one-third' : _d, _e = _a.hasPadding, hasPadding = _e === void 0 ? true : _e, _f = _a.hasBorder, hasBorder = _f === void 0 ? false : _f, _g = _a.isList, isList = _g === void 0 ? false : _g, classes = _a.classes, children = _a.children;
|
|
7906
|
-
return (React__default.default.createElement(Container$
|
|
7910
|
+
return (React__default.default.createElement(Container$11, { "data-testid": "Column", "$small": small, "$medium": medium, "$large": large, "$hasPadding": hasPadding, "$hasBorder": hasBorder, as: isList ? 'li' : 'div', className: classes }, children));
|
|
7907
7911
|
};
|
|
7908
7912
|
|
|
7909
7913
|
var PromotedLinks = function (_a) {
|
|
7910
7914
|
var promotedLinksArray = _a.promotedLinksArray, oneCol = _a.oneCol;
|
|
7911
7915
|
if (promotedLinksArray.length > 0) {
|
|
7912
7916
|
return (React__default.default.createElement(PromotedLinks$1, { "data-testid": "PromotedLinks", "$oneCol": oneCol },
|
|
7913
|
-
React__default.default.createElement(Row$1, { isList: true, hasWrap:
|
|
7917
|
+
React__default.default.createElement(Row$1, { isList: true, hasWrap: true }, promotedLinksArray.map(function (link, i) { return (React__default.default.createElement(Column, { isList: true, small: "full", medium: "one-half", large: "one-third", key: i },
|
|
7914
7918
|
React__default.default.createElement(PromotedLink$1, { "$oneCol": oneCol, href: link.url, title: link.title },
|
|
7915
7919
|
React__default.default.createElement("span", null, link.title)))); }))));
|
|
7916
7920
|
}
|
|
@@ -7919,7 +7923,7 @@ var PromotedLinks = function (_a) {
|
|
|
7919
7923
|
}
|
|
7920
7924
|
};
|
|
7921
7925
|
|
|
7922
|
-
const Container
|
|
7926
|
+
const Container$10 = styled__default.default.div`
|
|
7923
7927
|
display: block;
|
|
7924
7928
|
`;
|
|
7925
7929
|
|
|
@@ -7955,7 +7959,7 @@ const Cookies = styled__default.default.button`
|
|
|
7955
7959
|
}
|
|
7956
7960
|
`;
|
|
7957
7961
|
|
|
7958
|
-
const Container
|
|
7962
|
+
const Container$$ = styled__default.default.div`
|
|
7959
7963
|
${(props) => props.theme.fontStyles}
|
|
7960
7964
|
background-color: ${(props) => props.theme.theme_vars.colours.grey_light};
|
|
7961
7965
|
padding: ${(props) => props.theme.theme_vars.spacingSizes.medium} 0;
|
|
@@ -7963,6 +7967,8 @@ const Container$_ = styled__default.default.div`
|
|
|
7963
7967
|
width: 100%;
|
|
7964
7968
|
display: block;
|
|
7965
7969
|
box-sizing: border-box;
|
|
7970
|
+
position: sticky;
|
|
7971
|
+
z-index: 1;
|
|
7966
7972
|
`;
|
|
7967
7973
|
|
|
7968
7974
|
const CookieHide = styled__default.default.button`
|
|
@@ -8156,7 +8162,7 @@ var CookieBanner = function (_a) {
|
|
|
8156
8162
|
// on page load - look for a cookie
|
|
8157
8163
|
React.useEffect(function () {
|
|
8158
8164
|
checkCookie();
|
|
8159
|
-
});
|
|
8165
|
+
}, []);
|
|
8160
8166
|
var _d = React.useState(false), showCookieBanner = _d[0], setShowCookieBanner = _d[1];
|
|
8161
8167
|
var _e = React.useState(false), showCookiesRejectedBanner = _e[0], setShowCookiesRejectedBanner = _e[1];
|
|
8162
8168
|
var _f = React.useState(false), showCookiesAcceptedBanner = _f[0], setShowCookiesAcceptedBanner = _f[1];
|
|
@@ -8227,18 +8233,18 @@ var CookieBanner = function (_a) {
|
|
|
8227
8233
|
hideCookiesAcceptedConfirmationBanner();
|
|
8228
8234
|
};
|
|
8229
8235
|
return (React__default.default.createElement(React__default.default.Fragment, null,
|
|
8230
|
-
showCookieBanner && (React__default.default.createElement(Container
|
|
8236
|
+
showCookieBanner && (React__default.default.createElement(Container$$, { "data-testid": "CookieBanner" },
|
|
8231
8237
|
React__default.default.createElement(CookieMessage, null,
|
|
8232
8238
|
React__default.default.createElement(CookieHeading, null, title),
|
|
8233
8239
|
React__default.default.createElement(CookieParagraph, null, paragraph),
|
|
8234
8240
|
React__default.default.createElement(ButtonsContainer, null,
|
|
8235
8241
|
React__default.default.createElement(FormButton, { primary: true, text: acceptButtonText, isDisabled: true, onClick: acceptCookies, size: "large" }),
|
|
8236
8242
|
React__default.default.createElement(FormButton, { primary: true, text: rejectButtonText, isDisabled: true, onClick: rejectCookies, size: "large" }))))),
|
|
8237
|
-
showCookiesRejectedBanner && (React__default.default.createElement(Container
|
|
8243
|
+
showCookiesRejectedBanner && (React__default.default.createElement(Container$$, { "data-testid": "CookieBannerRejected", id: "CookieBannerRejected" },
|
|
8238
8244
|
React__default.default.createElement(CookieMessage, { isInline: true },
|
|
8239
8245
|
React__default.default.createElement(CookieParagraph, null, rejectConfirmationText),
|
|
8240
8246
|
React__default.default.createElement(CookieHide, { onClick: hideCookiesConfirmationBanner, "aria-controls": "CookieBannerRejected", "aria-hidden": "false" }, "Hide")))),
|
|
8241
|
-
showCookiesAcceptedBanner && (React__default.default.createElement(Container
|
|
8247
|
+
showCookiesAcceptedBanner && (React__default.default.createElement(Container$$, { "data-testid": "CookieBannerAccepted", id: "CookieBannerAccepted" },
|
|
8242
8248
|
React__default.default.createElement(CookieMessage, { isInline: true },
|
|
8243
8249
|
React__default.default.createElement(CookieParagraph, null, acceptConfirmationText),
|
|
8244
8250
|
React__default.default.createElement(CookieHide, { onClick: hideCookiesConfirmationBanner, "aria-controls": "CookieBannerAccepted", "aria-hidden": "false" }, "Hide"))))));
|
|
@@ -8260,7 +8266,7 @@ var StaticMap = function (_a) {
|
|
|
8260
8266
|
return "&markers=size:".concat(size, "%7Ccolor:").concat(colour).concat(label, "%7C").concat(mapMarker.lat, ",").concat(mapMarker.lng);
|
|
8261
8267
|
})
|
|
8262
8268
|
.join('');
|
|
8263
|
-
return (React__default.default.createElement(Container
|
|
8269
|
+
return (React__default.default.createElement(Container$10, { "data-testid": "StaticMap" },
|
|
8264
8270
|
React__default.default.createElement(Message, null,
|
|
8265
8271
|
React__default.default.createElement("span", null,
|
|
8266
8272
|
"To interact with the map, you need to ",
|
|
@@ -8281,7 +8287,7 @@ var TextInput = function (_a) {
|
|
|
8281
8287
|
|
|
8282
8288
|
// Accordion
|
|
8283
8289
|
|
|
8284
|
-
const Container$
|
|
8290
|
+
const Container$_ = styled__default.default.div`
|
|
8285
8291
|
${(props) => props.theme.fontStyles}
|
|
8286
8292
|
margin-bottom: 20px;
|
|
8287
8293
|
border-bottom: 1px solid ${(props) => props.theme.theme_vars.colours.grey};
|
|
@@ -8558,7 +8564,7 @@ var Accordion$1 = function (_a) {
|
|
|
8558
8564
|
setAccordionStates(newStatus);
|
|
8559
8565
|
};
|
|
8560
8566
|
var accordionId = "accordion".concat(React.useId());
|
|
8561
|
-
return (React__default.default.createElement(Container$
|
|
8567
|
+
return (React__default.default.createElement(Container$_, { "data-testid": "Accordion", id: accordionId },
|
|
8562
8568
|
showControls && sections.length > 1 && (React__default.default.createElement(AccordionControls$1, null,
|
|
8563
8569
|
React__default.default.createElement(OpenAllButton, { onClick: toggleAll, type: "button", "aria-expanded": !openAll },
|
|
8564
8570
|
openAll ? 'Open all' : 'Close all',
|
|
@@ -8609,7 +8615,7 @@ var BlockQuote = function (_a) {
|
|
|
8609
8615
|
citation && React__default.default.createElement(Citation, null, citation)));
|
|
8610
8616
|
};
|
|
8611
8617
|
|
|
8612
|
-
const Container$
|
|
8618
|
+
const Container$Z = styled__default.default.div`
|
|
8613
8619
|
margin-bottom: 30px;
|
|
8614
8620
|
display: block;
|
|
8615
8621
|
|
|
@@ -8624,11 +8630,11 @@ const Container$Y = styled__default.default.div`
|
|
|
8624
8630
|
*/
|
|
8625
8631
|
var CallToAction = function (_a) {
|
|
8626
8632
|
var primary = _a.primary; _a.size; var text = _a.text, url = _a.url, isExternal = _a.isExternal, isDisabled = _a.isDisabled; __rest(_a, ["primary", "size", "text", "url", "isExternal", "isDisabled"]);
|
|
8627
|
-
return (React__default.default.createElement(Container$
|
|
8633
|
+
return (React__default.default.createElement(Container$Z, null,
|
|
8628
8634
|
React__default.default.createElement(Button$4, { primary: primary, size: "large", text: text, url: url, isExternal: isExternal, isDisabled: isDisabled })));
|
|
8629
8635
|
};
|
|
8630
8636
|
|
|
8631
|
-
const Container$
|
|
8637
|
+
const Container$Y = styled__default.default.div`
|
|
8632
8638
|
display: block;
|
|
8633
8639
|
${(props) => props.theme.fontStyles}
|
|
8634
8640
|
`;
|
|
@@ -8804,7 +8810,7 @@ var CouncilTaxAlphabeticalDirectory = function (_a) {
|
|
|
8804
8810
|
});
|
|
8805
8811
|
return letterData;
|
|
8806
8812
|
});
|
|
8807
|
-
return (React__default.default.createElement(Container$
|
|
8813
|
+
return (React__default.default.createElement(Container$Y, { "data-testid": "AlphabeticalDirectory", ref: directoryRef },
|
|
8808
8814
|
React__default.default.createElement(React__default.default.Fragment, null,
|
|
8809
8815
|
parishes.length === 0 && (React__default.default.createElement(ErrorText, null, "There was an issue fetching the parish data. Please try again later.")),
|
|
8810
8816
|
parish === null ? (React__default.default.createElement(React__default.default.Fragment, null, sortedData.map(function (letter, i) { return (React__default.default.createElement(Row, { key: i },
|
|
@@ -8830,9 +8836,9 @@ var CouncilTaxAlphabeticalDirectory = function (_a) {
|
|
|
8830
8836
|
React__default.default.createElement("td", null, Number(parish.values[band]).toLocaleString('en-GB', { style: 'currency', currency: 'GBP' })))); })))))))));
|
|
8831
8837
|
};
|
|
8832
8838
|
|
|
8833
|
-
const Container$
|
|
8839
|
+
const Container$X = styled__default.default.div``;
|
|
8834
8840
|
|
|
8835
|
-
const Container$
|
|
8841
|
+
const Container$W = styled__default.default.div`
|
|
8836
8842
|
display: flex;
|
|
8837
8843
|
flex-direction: column;
|
|
8838
8844
|
justify-content: flex-start;
|
|
@@ -19487,7 +19493,7 @@ function markDirtyUp(node) {
|
|
|
19487
19493
|
}
|
|
19488
19494
|
}
|
|
19489
19495
|
|
|
19490
|
-
let Container$
|
|
19496
|
+
let Container$V = class Container extends Node$1 {
|
|
19491
19497
|
append(...children) {
|
|
19492
19498
|
for (let child of children) {
|
|
19493
19499
|
let nodes = this.normalize(child, this.last);
|
|
@@ -19860,27 +19866,27 @@ let Container$U = class Container extends Node$1 {
|
|
|
19860
19866
|
}
|
|
19861
19867
|
};
|
|
19862
19868
|
|
|
19863
|
-
Container$
|
|
19869
|
+
Container$V.registerParse = dependant => {
|
|
19864
19870
|
parse$4 = dependant;
|
|
19865
19871
|
};
|
|
19866
19872
|
|
|
19867
|
-
Container$
|
|
19873
|
+
Container$V.registerRule = dependant => {
|
|
19868
19874
|
Rule$4 = dependant;
|
|
19869
19875
|
};
|
|
19870
19876
|
|
|
19871
|
-
Container$
|
|
19877
|
+
Container$V.registerAtRule = dependant => {
|
|
19872
19878
|
AtRule$4 = dependant;
|
|
19873
19879
|
};
|
|
19874
19880
|
|
|
19875
|
-
Container$
|
|
19881
|
+
Container$V.registerRoot = dependant => {
|
|
19876
19882
|
Root$6 = dependant;
|
|
19877
19883
|
};
|
|
19878
19884
|
|
|
19879
|
-
var container = Container$
|
|
19880
|
-
Container$
|
|
19885
|
+
var container = Container$V;
|
|
19886
|
+
Container$V.default = Container$V;
|
|
19881
19887
|
|
|
19882
19888
|
/* c8 ignore start */
|
|
19883
|
-
Container$
|
|
19889
|
+
Container$V.rebuild = node => {
|
|
19884
19890
|
if (node.type === 'atrule') {
|
|
19885
19891
|
Object.setPrototypeOf(node, AtRule$4.prototype);
|
|
19886
19892
|
} else if (node.type === 'rule') {
|
|
@@ -19897,16 +19903,16 @@ Container$U.rebuild = node => {
|
|
|
19897
19903
|
|
|
19898
19904
|
if (node.nodes) {
|
|
19899
19905
|
node.nodes.forEach(child => {
|
|
19900
|
-
Container$
|
|
19906
|
+
Container$V.rebuild(child);
|
|
19901
19907
|
});
|
|
19902
19908
|
}
|
|
19903
19909
|
};
|
|
19904
19910
|
|
|
19905
|
-
let Container$
|
|
19911
|
+
let Container$U = container;
|
|
19906
19912
|
|
|
19907
19913
|
let LazyResult$4, Processor$3;
|
|
19908
19914
|
|
|
19909
|
-
let Document$3 = class Document extends Container$
|
|
19915
|
+
let Document$3 = class Document extends Container$U {
|
|
19910
19916
|
constructor(defaults) {
|
|
19911
19917
|
// type needs to be passed to super, otherwise child roots won't be normalized correctly
|
|
19912
19918
|
super({ type: 'document', ...defaults });
|
|
@@ -20024,9 +20030,9 @@ let Result$4 = class Result {
|
|
|
20024
20030
|
var result = Result$4;
|
|
20025
20031
|
Result$4.default = Result$4;
|
|
20026
20032
|
|
|
20027
|
-
let Container$
|
|
20033
|
+
let Container$T = container;
|
|
20028
20034
|
|
|
20029
|
-
let AtRule$3 = class AtRule extends Container$
|
|
20035
|
+
let AtRule$3 = class AtRule extends Container$T {
|
|
20030
20036
|
constructor(defaults) {
|
|
20031
20037
|
super(defaults);
|
|
20032
20038
|
this.type = 'atrule';
|
|
@@ -20046,13 +20052,13 @@ let AtRule$3 = class AtRule extends Container$S {
|
|
|
20046
20052
|
var atRule = AtRule$3;
|
|
20047
20053
|
AtRule$3.default = AtRule$3;
|
|
20048
20054
|
|
|
20049
|
-
Container$
|
|
20055
|
+
Container$T.registerAtRule(AtRule$3);
|
|
20050
20056
|
|
|
20051
|
-
let Container$
|
|
20057
|
+
let Container$S = container;
|
|
20052
20058
|
|
|
20053
20059
|
let LazyResult$3, Processor$2;
|
|
20054
20060
|
|
|
20055
|
-
let Root$5 = class Root extends Container$
|
|
20061
|
+
let Root$5 = class Root extends Container$S {
|
|
20056
20062
|
constructor(defaults) {
|
|
20057
20063
|
super(defaults);
|
|
20058
20064
|
this.type = 'root';
|
|
@@ -20106,7 +20112,7 @@ Root$5.registerProcessor = dependant => {
|
|
|
20106
20112
|
var root = Root$5;
|
|
20107
20113
|
Root$5.default = Root$5;
|
|
20108
20114
|
|
|
20109
|
-
Container$
|
|
20115
|
+
Container$S.registerRoot(Root$5);
|
|
20110
20116
|
|
|
20111
20117
|
let list$2 = {
|
|
20112
20118
|
comma(string) {
|
|
@@ -20165,10 +20171,10 @@ let list$2 = {
|
|
|
20165
20171
|
var list_1 = list$2;
|
|
20166
20172
|
list$2.default = list$2;
|
|
20167
20173
|
|
|
20168
|
-
let Container$
|
|
20174
|
+
let Container$R = container;
|
|
20169
20175
|
let list$1 = list_1;
|
|
20170
20176
|
|
|
20171
|
-
let Rule$3 = class Rule extends Container$
|
|
20177
|
+
let Rule$3 = class Rule extends Container$R {
|
|
20172
20178
|
constructor(defaults) {
|
|
20173
20179
|
super(defaults);
|
|
20174
20180
|
this.type = 'rule';
|
|
@@ -20189,7 +20195,7 @@ let Rule$3 = class Rule extends Container$Q {
|
|
|
20189
20195
|
var rule = Rule$3;
|
|
20190
20196
|
Rule$3.default = Rule$3;
|
|
20191
20197
|
|
|
20192
|
-
Container$
|
|
20198
|
+
Container$R.registerRule(Rule$3);
|
|
20193
20199
|
|
|
20194
20200
|
let Declaration$2 = declaration;
|
|
20195
20201
|
let tokenizer = tokenize;
|
|
@@ -20799,7 +20805,7 @@ let Parser$1 = class Parser {
|
|
|
20799
20805
|
|
|
20800
20806
|
var parser = Parser$1;
|
|
20801
20807
|
|
|
20802
|
-
let Container$
|
|
20808
|
+
let Container$Q = container;
|
|
20803
20809
|
let Parser = parser;
|
|
20804
20810
|
let Input$3 = input;
|
|
20805
20811
|
|
|
@@ -20838,12 +20844,12 @@ function parse$3(css, opts) {
|
|
|
20838
20844
|
var parse_1 = parse$3;
|
|
20839
20845
|
parse$3.default = parse$3;
|
|
20840
20846
|
|
|
20841
|
-
Container$
|
|
20847
|
+
Container$Q.registerParse(parse$3);
|
|
20842
20848
|
|
|
20843
20849
|
let { isClean, my } = symbols;
|
|
20844
20850
|
let MapGenerator$1 = mapGenerator;
|
|
20845
20851
|
let stringify$2 = stringify_1;
|
|
20846
|
-
let Container$
|
|
20852
|
+
let Container$P = container;
|
|
20847
20853
|
let Document$2 = document$1;
|
|
20848
20854
|
let warnOnce$1 = warnOnce$2;
|
|
20849
20855
|
let Result$3 = result;
|
|
@@ -20978,7 +20984,7 @@ let LazyResult$2 = class LazyResult {
|
|
|
20978
20984
|
|
|
20979
20985
|
if (root && !root[my]) {
|
|
20980
20986
|
/* c8 ignore next 2 */
|
|
20981
|
-
Container$
|
|
20987
|
+
Container$P.rebuild(root);
|
|
20982
20988
|
}
|
|
20983
20989
|
}
|
|
20984
20990
|
|
|
@@ -21648,7 +21654,7 @@ fromJSON$1.default = fromJSON$1;
|
|
|
21648
21654
|
let CssSyntaxError = cssSyntaxError;
|
|
21649
21655
|
let Declaration = declaration;
|
|
21650
21656
|
let LazyResult = lazyResult;
|
|
21651
|
-
let Container$
|
|
21657
|
+
let Container$O = container;
|
|
21652
21658
|
let Processor = processor;
|
|
21653
21659
|
let stringify = stringify_1;
|
|
21654
21660
|
let fromJSON = fromJSON_1;
|
|
@@ -21728,7 +21734,7 @@ postcss.document = defaults => new Document(defaults);
|
|
|
21728
21734
|
|
|
21729
21735
|
postcss.CssSyntaxError = CssSyntaxError;
|
|
21730
21736
|
postcss.Declaration = Declaration;
|
|
21731
|
-
postcss.Container = Container$
|
|
21737
|
+
postcss.Container = Container$O;
|
|
21732
21738
|
postcss.Processor = Processor;
|
|
21733
21739
|
postcss.Document = Document;
|
|
21734
21740
|
postcss.Comment = Comment;
|
|
@@ -22597,7 +22603,7 @@ var sanitizeHtml$1 = sanitizeHtml_1;
|
|
|
22597
22603
|
var Card = function (_a) {
|
|
22598
22604
|
var header = _a.header, content = _a.content, footerLink = _a.footerLink, imageLarge = _a.imageLarge, imageSmall = _a.imageSmall, imageAltText = _a.imageAltText;
|
|
22599
22605
|
var showContent = content || header;
|
|
22600
|
-
return (React__default.default.createElement(Container$
|
|
22606
|
+
return (React__default.default.createElement(Container$W, { "data-testid": "Card" },
|
|
22601
22607
|
imageLarge && imageSmall && (React__default.default.createElement(React__default.default.Fragment, null, footerLink ? (React__default.default.createElement(ImageLink$1, { href: footerLink.url },
|
|
22602
22608
|
React__default.default.createElement(Image$4, { src: imageLarge, alt: imageAltText, srcSet: "".concat(imageSmall, " 400w, ").concat(imageLarge, " 800w"), sizes: "(max-width: 550px) 400px, 800px", loading: "lazy" }))) : (React__default.default.createElement(Image$4, { src: imageLarge, alt: imageAltText, srcSet: "".concat(imageSmall, " 400w, ").concat(imageLarge, " 800w"), sizes: "(max-width: 550px) 400px, 800px", loading: "lazy" })))),
|
|
22603
22609
|
showContent && (React__default.default.createElement(Content$6, null,
|
|
@@ -22613,12 +22619,12 @@ var Card = function (_a) {
|
|
|
22613
22619
|
*/
|
|
22614
22620
|
var Cards = function (_a) {
|
|
22615
22621
|
var cards = _a.cards;
|
|
22616
|
-
return (React__default.default.createElement(Container$
|
|
22622
|
+
return (React__default.default.createElement(Container$X, { "data-testid": "Cards" },
|
|
22617
22623
|
React__default.default.createElement(Row$1, null, cards.map(function (card, index) { return (React__default.default.createElement(Column, { small: "full", medium: "one-half", large: "one-third", key: index },
|
|
22618
22624
|
React__default.default.createElement(Card, __assign$2({}, card)))); }))));
|
|
22619
22625
|
};
|
|
22620
22626
|
|
|
22621
|
-
const Container$
|
|
22627
|
+
const Container$N = styled__default.default.div`
|
|
22622
22628
|
margin: 25px 0;
|
|
22623
22629
|
`;
|
|
22624
22630
|
|
|
@@ -22736,7 +22742,7 @@ var FileDownload = function (_a) {
|
|
|
22736
22742
|
|
|
22737
22743
|
var DownloadableFiles = function (_a) {
|
|
22738
22744
|
var files = _a.files;
|
|
22739
|
-
return (React__default.default.createElement(Container$
|
|
22745
|
+
return (React__default.default.createElement(Container$N, { "data-testid": "DownloadableFiles" }, files.length > 0 ?
|
|
22740
22746
|
files.map(function (file) { return React__default.default.createElement(FileDownload, __assign$2({ key: file.title }, file)); })
|
|
22741
22747
|
:
|
|
22742
22748
|
React__default.default.createElement("i", null, "No file to show")));
|
|
@@ -22837,7 +22843,7 @@ const AccessibleMapLink = styled__default.default(MapLink$1)`
|
|
|
22837
22843
|
${(props) => props.theme.visuallyHidden};
|
|
22838
22844
|
`;
|
|
22839
22845
|
|
|
22840
|
-
const Container$
|
|
22846
|
+
const Container$M = styled__default.default.div`
|
|
22841
22847
|
border: solid 4px;
|
|
22842
22848
|
border-radius: ${(props) => props.theme.theme_vars.border_radius};
|
|
22843
22849
|
border-color: ${(props) =>
|
|
@@ -22891,7 +22897,7 @@ const InnerContainer$2 = styled__default.default.div`
|
|
|
22891
22897
|
*/
|
|
22892
22898
|
var AlertBannerService = function (_a) {
|
|
22893
22899
|
var title = _a.title, _b = _a.hasTopSpacing, hasTopSpacing = _b === void 0 ? false : _b, _c = _a.alertType, alertType = _c === void 0 ? 'alert' : _c, children = _a.children;
|
|
22894
|
-
return (React__default.default.createElement(Container$
|
|
22900
|
+
return (React__default.default.createElement(Container$M, { "$alertType": alertType, "data-testid": "AlertBannerService", "$hasTopSpacing": hasTopSpacing },
|
|
22895
22901
|
React__default.default.createElement(InnerContainer$2, { "data-testid": "AlertBannerServiceInner" },
|
|
22896
22902
|
(title === null || title === void 0 ? void 0 : title.trim()) && React__default.default.createElement(Heading, { text: title }),
|
|
22897
22903
|
children)));
|
|
@@ -22944,7 +22950,7 @@ var GoogleMap = function (_a) {
|
|
|
22944
22950
|
React__default.default.createElement(MapLink$1, { href: link_url }, link_title ? link_title : 'Google Maps link')))));
|
|
22945
22951
|
};
|
|
22946
22952
|
|
|
22947
|
-
const Container$
|
|
22953
|
+
const Container$L = styled__default.default.figure`
|
|
22948
22954
|
display: block;
|
|
22949
22955
|
background: ${(props) =>
|
|
22950
22956
|
props.theme.cardinal_name === 'north'
|
|
@@ -23611,7 +23617,7 @@ var LazyImage = /*@__PURE__*/getDefaultExportFromCjs(lib$1);
|
|
|
23611
23617
|
*/
|
|
23612
23618
|
var Image$2 = function (_a) {
|
|
23613
23619
|
var imageSmall = _a.imageSmall, imageLarge = _a.imageLarge, imageAltText = _a.imageAltText, _b = _a.ratio, ratio = _b === void 0 ? '4by3' : _b, caption = _a.caption, wrapText = _a.wrapText;
|
|
23614
|
-
return (React__default.default.createElement(Container$
|
|
23620
|
+
return (React__default.default.createElement(Container$L, { "data-testid": "Image", "$wrapText": wrapText },
|
|
23615
23621
|
React__default.default.createElement(ImageContainer$4, { "data-testid": "ImageContainer", "$ratio": ratio },
|
|
23616
23622
|
React__default.default.createElement(LazyImage, { placeholder: imageSmall, src: imageLarge, visibilitySensorProps: {
|
|
23617
23623
|
partialVisibility: true,
|
|
@@ -23619,7 +23625,7 @@ var Image$2 = function (_a) {
|
|
|
23619
23625
|
(caption === null || caption === void 0 ? void 0 : caption.trim()) && React__default.default.createElement(Caption, null, caption)));
|
|
23620
23626
|
};
|
|
23621
23627
|
|
|
23622
|
-
const Container$
|
|
23628
|
+
const Container$K = styled__default.default.div`
|
|
23623
23629
|
display: block;
|
|
23624
23630
|
`;
|
|
23625
23631
|
|
|
@@ -23640,7 +23646,7 @@ const Content$5 = styled__default.default.div`
|
|
|
23640
23646
|
*/
|
|
23641
23647
|
var ImageAndText = function (_a) {
|
|
23642
23648
|
var heading = _a.heading, textContent = _a.textContent, image = _a.image;
|
|
23643
|
-
return (React__default.default.createElement(Container$
|
|
23649
|
+
return (React__default.default.createElement(Container$K, { "data-testid": "ImageAndText" },
|
|
23644
23650
|
React__default.default.createElement(Row$1, null,
|
|
23645
23651
|
heading && (React__default.default.createElement(Column, { small: "full", medium: "full", large: "full" },
|
|
23646
23652
|
React__default.default.createElement(HeadingContainer, null,
|
|
@@ -23653,44 +23659,296 @@ var ImageAndText = function (_a) {
|
|
|
23653
23659
|
React__default.default.createElement(Content$5, { dangerouslySetInnerHTML: { __html: sanitizeHtml$1(textContent) } }))))));
|
|
23654
23660
|
};
|
|
23655
23661
|
|
|
23656
|
-
|
|
23662
|
+
var CaseAppointmentType;
|
|
23663
|
+
(function (CaseAppointmentType) {
|
|
23664
|
+
CaseAppointmentType["Formal"] = "formal";
|
|
23665
|
+
CaseAppointmentType["Hearing"] = "inquest hearing";
|
|
23666
|
+
CaseAppointmentType["Opening"] = "opening";
|
|
23667
|
+
CaseAppointmentType["PreInquest"] = "pre-inquest review";
|
|
23668
|
+
CaseAppointmentType["Writing"] = "writing";
|
|
23669
|
+
})(CaseAppointmentType || (CaseAppointmentType = {}));
|
|
23670
|
+
|
|
23671
|
+
const Container$J = styled__default.default.div`
|
|
23657
23672
|
display: block;
|
|
23673
|
+
box-sizing: border-box;
|
|
23674
|
+
`;
|
|
23675
|
+
|
|
23676
|
+
const GroupContainer = styled__default.default.div`
|
|
23677
|
+
display: flex;
|
|
23678
|
+
flex-direction: column;
|
|
23679
|
+
margin-bottom: ${(props) => props.theme.theme_vars.spacingSizes.large};
|
|
23680
|
+
`;
|
|
23681
|
+
|
|
23682
|
+
const InquestContainer = styled__default.default.div`
|
|
23683
|
+
display: flex;
|
|
23684
|
+
flex-direction: column;
|
|
23685
|
+
align-items: flex-start;
|
|
23686
|
+
justify-content: flex-start;
|
|
23687
|
+
flex-wrap: wrap;
|
|
23688
|
+
`;
|
|
23689
|
+
|
|
23690
|
+
styled__default.default.div`
|
|
23691
|
+
flex-grow: 1;
|
|
23692
|
+
flex-shrink: 0;
|
|
23693
|
+
|
|
23694
|
+
strong {
|
|
23695
|
+
display: block;
|
|
23696
|
+
&::first-letter {
|
|
23697
|
+
text-transform: capitalize;
|
|
23698
|
+
}
|
|
23699
|
+
}
|
|
23700
|
+
`;
|
|
23701
|
+
|
|
23702
|
+
const InquestDetails = styled__default.default.div`
|
|
23703
|
+
flex-grow: 1;
|
|
23704
|
+
h3 {
|
|
23705
|
+
display: block;
|
|
23706
|
+
&::first-letter {
|
|
23707
|
+
text-transform: capitalize;
|
|
23708
|
+
}
|
|
23709
|
+
}
|
|
23710
|
+
`;
|
|
23711
|
+
|
|
23712
|
+
const SummaryContainer = styled__default.default.div`
|
|
23713
|
+
border: ${(props) => (props.$hasHeading ? `1px solid ${props.theme.theme_vars.colours.grey}` : `none`)};
|
|
23714
|
+
margin: ${(props) => (props.$hasMargin ? props.theme.theme_vars.spacingSizes.medium : 0)} 0;
|
|
23715
|
+
`;
|
|
23716
|
+
|
|
23717
|
+
const SummaryHeading = styled__default.default.div`
|
|
23718
|
+
background-color: ${(props) => props.theme.theme_vars.colours.grey_light};
|
|
23719
|
+
width: 100%;
|
|
23720
|
+
padding: ${(props) => props.theme.theme_vars.spacingSizes.small};
|
|
23721
|
+
margin-bottom: ${(props) => props.theme.theme_vars.spacingSizes.medium};
|
|
23722
|
+
|
|
23723
|
+
h3 {
|
|
23724
|
+
margin: 0;
|
|
23725
|
+
}
|
|
23726
|
+
`;
|
|
23727
|
+
|
|
23728
|
+
const SummaryList$1 = styled__default.default.dl`
|
|
23729
|
+
display: table;
|
|
23730
|
+
width: 100%;
|
|
23731
|
+
table-layout: fixed;
|
|
23732
|
+
border-collapse: collapse;
|
|
23733
|
+
`;
|
|
23734
|
+
|
|
23735
|
+
const SummaryRow = styled__default.default.div`
|
|
23736
|
+
border-bottom: ${(props) => props.$hasBorders ? `1px solid ${props.theme.theme_vars.colours.grey}` : 'none'};
|
|
23737
|
+
margin-bottom: ${(props) => props.theme.theme_vars.spacingSizes.small};
|
|
23738
|
+
|
|
23739
|
+
@media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.m}) {
|
|
23740
|
+
display: table-row;
|
|
23741
|
+
}
|
|
23742
|
+
|
|
23743
|
+
@media print {
|
|
23744
|
+
display: table-row;
|
|
23745
|
+
border-bottom: none;
|
|
23746
|
+
}
|
|
23747
|
+
`;
|
|
23748
|
+
|
|
23749
|
+
const SummaryTerm = styled__default.default.dt`
|
|
23750
|
+
margin-bottom: ${(props) => props.theme.theme_vars.spacingSizes.small};
|
|
23751
|
+
font-weight: bold;
|
|
23752
|
+
|
|
23753
|
+
@media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.m}) {
|
|
23754
|
+
display: table-cell;
|
|
23755
|
+
padding: ${(props) => props.theme.theme_vars.spacingSizes.small};
|
|
23756
|
+
width: 30%;
|
|
23757
|
+
vertical-align: middle;
|
|
23758
|
+
}
|
|
23759
|
+
|
|
23760
|
+
@media print {
|
|
23761
|
+
display: table-cell;
|
|
23762
|
+
width: 30%;
|
|
23763
|
+
}
|
|
23658
23764
|
`;
|
|
23659
23765
|
|
|
23766
|
+
const SummaryDetail = styled__default.default.dd`
|
|
23767
|
+
overflow-wrap: break-word;
|
|
23768
|
+
width: 100%;
|
|
23769
|
+
margin-bottom: ${(props) => props.theme.theme_vars.spacingSizes.small};
|
|
23770
|
+
|
|
23771
|
+
@media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.m}) {
|
|
23772
|
+
display: table-cell;
|
|
23773
|
+
width: 70%;
|
|
23774
|
+
padding: ${(props) => props.theme.theme_vars.spacingSizes.small};
|
|
23775
|
+
}
|
|
23776
|
+
|
|
23777
|
+
@media print {
|
|
23778
|
+
display: table-cell;
|
|
23779
|
+
width: 70%;
|
|
23780
|
+
}
|
|
23781
|
+
`;
|
|
23782
|
+
|
|
23783
|
+
var SummaryList = function (_a) {
|
|
23784
|
+
var terms = _a.terms, _b = _a.hasMargin, hasMargin = _b === void 0 ? true : _b, _c = _a.hasBorders, hasBorders = _c === void 0 ? true : _c, heading = _a.heading;
|
|
23785
|
+
return (React__default.default.createElement(SummaryContainer, { "$hasHeading": heading, "$hasMargin": hasMargin },
|
|
23786
|
+
heading && (React__default.default.createElement(SummaryHeading, null,
|
|
23787
|
+
React__default.default.createElement(Heading, { level: 3, text: heading }))),
|
|
23788
|
+
React__default.default.createElement(SummaryList$1, { "data-testid": "SummaryList" }, terms.map(function (summaryRow, summaryIndex) { return (React__default.default.createElement(SummaryRow, { key: summaryIndex, "$hasBorders": hasBorders },
|
|
23789
|
+
React__default.default.createElement(SummaryTerm, null, summaryRow.term),
|
|
23790
|
+
React__default.default.createElement(SummaryDetail, { dangerouslySetInnerHTML: { __html: sanitizeHtml$1(summaryRow.detail) } }))); }))));
|
|
23791
|
+
};
|
|
23792
|
+
|
|
23793
|
+
/**
|
|
23794
|
+
* Format a date string to a readable date format
|
|
23795
|
+
* @param {string} dateString - The date string to format
|
|
23796
|
+
* @returns {string} Formatted date
|
|
23797
|
+
*/
|
|
23798
|
+
const formatDate = (dateString) => {
|
|
23799
|
+
const date = new Date(dateString);
|
|
23800
|
+
return date
|
|
23801
|
+
.toLocaleDateString('en-GB', {
|
|
23802
|
+
weekday: 'long',
|
|
23803
|
+
day: 'numeric',
|
|
23804
|
+
month: 'long',
|
|
23805
|
+
year: 'numeric',
|
|
23806
|
+
})
|
|
23807
|
+
.replace(',', '');
|
|
23808
|
+
};
|
|
23809
|
+
|
|
23810
|
+
/**
|
|
23811
|
+
* Format a date string to a time format
|
|
23812
|
+
* @param {string} dateString - The date string to format
|
|
23813
|
+
* @returns {string} Formatted time
|
|
23814
|
+
*/
|
|
23815
|
+
const formatTime = (dateString) => {
|
|
23816
|
+
const date = new Date(dateString);
|
|
23817
|
+
const hours = date.getHours();
|
|
23818
|
+
const minutes = date.getMinutes();
|
|
23819
|
+
|
|
23820
|
+
// Convert to 12-hour format
|
|
23821
|
+
const hour12 = hours === 0 ? 12 : hours > 12 ? hours - 12 : hours;
|
|
23822
|
+
const ampm = hours < 12 ? 'am' : 'pm';
|
|
23823
|
+
|
|
23824
|
+
// Only show minutes if not zero
|
|
23825
|
+
if (minutes === 0) {
|
|
23826
|
+
return `${hour12}${ampm}`;
|
|
23827
|
+
} else {
|
|
23828
|
+
return `${hour12}:${minutes.toString().padStart(2, '0')}${ampm}`;
|
|
23829
|
+
}
|
|
23830
|
+
};
|
|
23831
|
+
|
|
23832
|
+
/**
|
|
23833
|
+
* Format a date string to a date and time format
|
|
23834
|
+
* @param {string} dateString - The date string to format
|
|
23835
|
+
* @returns {string} Formatted date and time
|
|
23836
|
+
*/
|
|
23837
|
+
const formatDateTime = (dateString) => {
|
|
23838
|
+
const date = new Date(dateString);
|
|
23839
|
+
return date.toLocaleDateString('en-GB', {
|
|
23840
|
+
day: 'numeric',
|
|
23841
|
+
month: 'long',
|
|
23842
|
+
year: 'numeric',
|
|
23843
|
+
hour: '2-digit',
|
|
23844
|
+
minute: '2-digit',
|
|
23845
|
+
});
|
|
23846
|
+
};
|
|
23847
|
+
|
|
23660
23848
|
/**
|
|
23661
23849
|
* A table displaying a schedule of inquests
|
|
23662
23850
|
*/
|
|
23663
23851
|
var InquestSchedule = function (_a) {
|
|
23664
23852
|
var caseAppointments = _a.caseAppointments, title = _a.title, _b = _a.error, error = _b === void 0 ? false : _b;
|
|
23665
|
-
|
|
23666
|
-
|
|
23667
|
-
|
|
23668
|
-
|
|
23669
|
-
|
|
23670
|
-
|
|
23671
|
-
|
|
23672
|
-
|
|
23673
|
-
|
|
23674
|
-
|
|
23675
|
-
|
|
23676
|
-
|
|
23677
|
-
|
|
23678
|
-
|
|
23679
|
-
|
|
23680
|
-
|
|
23681
|
-
|
|
23682
|
-
|
|
23683
|
-
|
|
23684
|
-
|
|
23685
|
-
|
|
23686
|
-
|
|
23687
|
-
|
|
23688
|
-
|
|
23689
|
-
|
|
23690
|
-
|
|
23853
|
+
var hearings = caseAppointments.filter(function (appointment) {
|
|
23854
|
+
return appointment.appointmentType.toLowerCase().includes(CaseAppointmentType.Hearing);
|
|
23855
|
+
});
|
|
23856
|
+
var preInquest = caseAppointments.filter(function (appointment) {
|
|
23857
|
+
return appointment.appointmentType.toLowerCase().includes(CaseAppointmentType.PreInquest);
|
|
23858
|
+
});
|
|
23859
|
+
var openings = caseAppointments.filter(function (appointment) {
|
|
23860
|
+
return appointment.appointmentType.toLowerCase().includes(CaseAppointmentType.Opening);
|
|
23861
|
+
});
|
|
23862
|
+
var writings = caseAppointments.filter(function (appointment) {
|
|
23863
|
+
return appointment.appointmentType.toLowerCase().includes(CaseAppointmentType.Writing);
|
|
23864
|
+
});
|
|
23865
|
+
var formal = caseAppointments.filter(function (appointment) {
|
|
23866
|
+
return appointment.appointmentType.toLowerCase().includes(CaseAppointmentType.Formal);
|
|
23867
|
+
});
|
|
23868
|
+
var groupHearingsByDay = function (appointments) {
|
|
23869
|
+
return appointments.reduce(function (acc, inquest) {
|
|
23870
|
+
var inquestDate = new Date(inquest.startDateTime);
|
|
23871
|
+
var inquestISODay = inquestDate.toISOString().substring(0, 10);
|
|
23872
|
+
if (!acc[inquestISODay]) {
|
|
23873
|
+
acc[inquestISODay] = [];
|
|
23874
|
+
}
|
|
23875
|
+
acc[inquestISODay].push(inquest);
|
|
23876
|
+
return acc;
|
|
23877
|
+
}, {});
|
|
23878
|
+
};
|
|
23879
|
+
var hearingDayGrouped = groupHearingsByDay(hearings);
|
|
23880
|
+
var preInquestDayGrouped = groupHearingsByDay(preInquest);
|
|
23881
|
+
var openingDayGrouped = groupHearingsByDay(openings);
|
|
23882
|
+
var writingDayGrouped = groupHearingsByDay(writings);
|
|
23883
|
+
var formalDayGrouped = groupHearingsByDay(formal);
|
|
23884
|
+
var transformToSections = function (groupedData) {
|
|
23885
|
+
return Object.keys(groupedData).map(function (day) {
|
|
23886
|
+
return {
|
|
23887
|
+
title: formatDate(day),
|
|
23888
|
+
content: (React__default.default.createElement(Row$1, null, groupedData[day]
|
|
23889
|
+
.sort(function (a, b) {
|
|
23890
|
+
return new Date(a.startDateTime).getTime() - new Date(b.startDateTime).getTime();
|
|
23891
|
+
})
|
|
23892
|
+
.map(function (inquest, key) {
|
|
23893
|
+
var terms = [
|
|
23894
|
+
{
|
|
23895
|
+
term: 'Name',
|
|
23896
|
+
detail: inquest.fullName,
|
|
23897
|
+
},
|
|
23898
|
+
{
|
|
23899
|
+
term: 'Died',
|
|
23900
|
+
detail: formatDate(inquest.dateTimeOfDeath) +
|
|
23901
|
+
' at ' +
|
|
23902
|
+
inquest.placeOfDeath +
|
|
23903
|
+
'. Aged ' +
|
|
23904
|
+
inquest.age +
|
|
23905
|
+
' years.',
|
|
23906
|
+
},
|
|
23907
|
+
{
|
|
23908
|
+
term: 'Court location',
|
|
23909
|
+
detail: inquest.courtroomFullAddress + '.',
|
|
23910
|
+
},
|
|
23911
|
+
{
|
|
23912
|
+
term: 'Coroner',
|
|
23913
|
+
detail: inquest.coroner + '.',
|
|
23914
|
+
},
|
|
23915
|
+
];
|
|
23916
|
+
if (inquest.endDateTime) {
|
|
23917
|
+
terms.push({
|
|
23918
|
+
term: 'End date',
|
|
23919
|
+
detail: formatDateTime(inquest.endDateTime) + '.',
|
|
23920
|
+
});
|
|
23921
|
+
}
|
|
23922
|
+
return (React__default.default.createElement(Column, { small: "full", medium: "full", large: "full", key: key },
|
|
23923
|
+
React__default.default.createElement(InquestContainer, null,
|
|
23924
|
+
React__default.default.createElement(InquestDetails, null,
|
|
23925
|
+
React__default.default.createElement(SummaryList, { terms: terms, hasBorders: false, heading: formatTime(inquest.startDateTime) })))));
|
|
23926
|
+
}))),
|
|
23927
|
+
};
|
|
23928
|
+
});
|
|
23929
|
+
};
|
|
23930
|
+
return (React__default.default.createElement(Container$J, { "data-testid": "InquestSchedule" },
|
|
23931
|
+
Object.keys(hearingDayGrouped).length > 0 && (React__default.default.createElement(GroupContainer, null,
|
|
23932
|
+
React__default.default.createElement(Heading, { level: 2, text: title }),
|
|
23933
|
+
React__default.default.createElement(Accordion$1, { sections: transformToSections(hearingDayGrouped) }))),
|
|
23934
|
+
Object.keys(openingDayGrouped).length > 0 && (React__default.default.createElement(GroupContainer, null,
|
|
23935
|
+
React__default.default.createElement(Heading, { level: 2, text: "Inquest Openings" }),
|
|
23936
|
+
React__default.default.createElement(Accordion$1, { sections: transformToSections(openingDayGrouped) }))),
|
|
23937
|
+
Object.keys(preInquestDayGrouped).length > 0 && (React__default.default.createElement(GroupContainer, null,
|
|
23938
|
+
React__default.default.createElement(Heading, { level: 2, text: "Pre-inquest Review Hearings" }),
|
|
23939
|
+
React__default.default.createElement(Accordion$1, { sections: transformToSections(preInquestDayGrouped) }))),
|
|
23940
|
+
Object.keys(writingDayGrouped).length > 0 && (React__default.default.createElement(GroupContainer, null,
|
|
23941
|
+
React__default.default.createElement(Heading, { level: 2, text: "Inquests in Writing" }),
|
|
23942
|
+
React__default.default.createElement(Accordion$1, { sections: transformToSections(writingDayGrouped) }))),
|
|
23943
|
+
Object.keys(formalDayGrouped).length > 0 && (React__default.default.createElement(GroupContainer, null,
|
|
23944
|
+
React__default.default.createElement(Heading, { level: 2, text: "Formal Suspension Hearings" }),
|
|
23945
|
+
React__default.default.createElement(Accordion$1, { sections: transformToSections(formalDayGrouped) }))),
|
|
23946
|
+
caseAppointments.length === 0 && (React__default.default.createElement("div", null,
|
|
23947
|
+
React__default.default.createElement("p", null, "We can't find any results at the moment."),
|
|
23948
|
+
error ? (React__default.default.createElement("p", null, " The information is currently unavailable.")) : (React__default.default.createElement("p", null, "There are no inquests scheduled for next month."))))));
|
|
23691
23949
|
};
|
|
23692
23950
|
|
|
23693
|
-
const Container$
|
|
23951
|
+
const Container$I = styled__default.default.div`
|
|
23694
23952
|
${(props) => props.theme.fontStyles};
|
|
23695
23953
|
overflow: hidden;
|
|
23696
23954
|
margin: 40px auto 5px auto;
|
|
@@ -23770,7 +24028,7 @@ const CTA = styled__default.default.a`
|
|
|
23770
24028
|
*/
|
|
23771
24029
|
var PromoBanner = function (_a) {
|
|
23772
24030
|
var title = _a.title, image1440x810 = _a.image1440x810, image144x81 = _a.image144x81, ctaText = _a.ctaText, ctaUrl = _a.ctaUrl, children = _a.children;
|
|
23773
|
-
return (React__default.default.createElement(Container$
|
|
24031
|
+
return (React__default.default.createElement(Container$I, null,
|
|
23774
24032
|
React__default.default.createElement(LazyImage, { src: image1440x810, placeholder: image144x81, visibilitySensorProps: {
|
|
23775
24033
|
partialVisibility: true,
|
|
23776
24034
|
} }, function (src) { return React__default.default.createElement(ImageLink, { "$img": src, href: ctaUrl, title: ctaText }); }),
|
|
@@ -23982,63 +24240,248 @@ var Promotions = function (_a) {
|
|
|
23982
24240
|
numberOfPromos > 1 && React__default.default.createElement(PromoBlock, { promos: promos.slice(1, numberOfPromos) })));
|
|
23983
24241
|
};
|
|
23984
24242
|
|
|
23985
|
-
const Container$
|
|
23986
|
-
|
|
23987
|
-
margin: ${(props) => props.theme.theme_vars.spacingSizes.medium} 0;
|
|
23988
|
-
${(props) => props.theme.fontStyles}
|
|
23989
|
-
|
|
23990
|
-
@media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.m}) {
|
|
23991
|
-
background: url('${(props) => props.$image}') no-repeat center center;
|
|
23992
|
-
background-size: cover;
|
|
23993
|
-
padding-top: ${(props) => (props.$image ? '8rem' : 0)};
|
|
23994
|
-
padding-bottom: ${(props) => (props.$image ? '8rem' : 0)};
|
|
23995
|
-
padding-left: ${(props) => (props.$image ? props.theme.theme_vars.spacingSizes.x_large : 0)};
|
|
23996
|
-
padding-right: ${(props) => (props.$image ? props.theme.theme_vars.spacingSizes.x_large : 0)};
|
|
23997
|
-
}
|
|
23998
|
-
|
|
23999
|
-
h2 {
|
|
24000
|
-
text-align: center;
|
|
24001
|
-
}
|
|
24243
|
+
const Container$H = styled__default.default.div`
|
|
24244
|
+
display: block;
|
|
24002
24245
|
`;
|
|
24003
24246
|
|
|
24004
|
-
const
|
|
24005
|
-
|
|
24006
|
-
|
|
24007
|
-
|
|
24247
|
+
const Label$4 = styled__default.default.label`
|
|
24248
|
+
margin-bottom: 5px;
|
|
24249
|
+
font-weight: bold;
|
|
24250
|
+
`;
|
|
24008
24251
|
|
|
24009
|
-
|
|
24010
|
-
|
|
24011
|
-
|
|
24012
|
-
|
|
24013
|
-
|
|
24014
|
-
height: 2.6rem;
|
|
24015
|
-
}
|
|
24016
|
-
}
|
|
24252
|
+
const RoadworkList = styled__default.default.ul`
|
|
24253
|
+
list-style: none;
|
|
24254
|
+
margin: 0;
|
|
24255
|
+
padding: 0;
|
|
24256
|
+
max-width: 100% !important;
|
|
24017
24257
|
`;
|
|
24018
24258
|
|
|
24019
|
-
const
|
|
24259
|
+
const Roadwork = styled__default.default.li`
|
|
24260
|
+
display: block;
|
|
24261
|
+
width: 100%;
|
|
24262
|
+
margin-left: 0;
|
|
24263
|
+
margin-bottom: ${(props) => props.theme.theme_vars.spacingSizes.medium} !important;
|
|
24264
|
+
padding: ${(props) => `${props.theme.theme_vars.spacingSizes.small} ${props.theme.theme_vars.spacingSizes.medium}`};
|
|
24265
|
+
left: 0;
|
|
24266
|
+
box-shadow: 1px 1px 5px 1px rgba(0, 0, 0, 0.2);
|
|
24267
|
+
border-radius: ${(props) => props.theme.theme_vars.border_radius};
|
|
24020
24268
|
background-color: ${(props) =>
|
|
24021
24269
|
props.theme.cardinal_name === 'west'
|
|
24022
|
-
? props.theme.theme_vars.colours.grey_light
|
|
24270
|
+
? props.theme.theme_vars.colours.grey_light + '7a'
|
|
24023
24271
|
: props.theme.theme_vars.colours.white};
|
|
24024
|
-
padding: ${(props) => props.theme.theme_vars.spacingSizes.small};
|
|
24025
|
-
box-shadow: 1px 1px 5px 1px rgba(0, 0, 0, 0.2);
|
|
24026
|
-
border-radius: ${(props) => props.theme.theme_vars.border_radius};
|
|
24027
24272
|
|
|
24028
|
-
|
|
24029
|
-
|
|
24030
|
-
max-width: ${(props) => props.theme.theme_vars.breakpoints.m};
|
|
24031
|
-
margin: 0 auto;
|
|
24273
|
+
h3 {
|
|
24274
|
+
margin-top: ${(props) => props.theme.theme_vars.spacingSizes.medium} !important;
|
|
24032
24275
|
}
|
|
24033
24276
|
`;
|
|
24034
24277
|
|
|
24035
|
-
const
|
|
24036
|
-
display:
|
|
24278
|
+
const IconContainer$2 = styled__default.default.div`
|
|
24279
|
+
display: flex;
|
|
24280
|
+
flex-wrap: nowrap;
|
|
24281
|
+
flex-direction: row;
|
|
24282
|
+
justify-content: flex-start;
|
|
24283
|
+
align-items: center;
|
|
24284
|
+
margin-bottom: ${(props) => props.theme.theme_vars.spacingSizes.small};
|
|
24037
24285
|
|
|
24038
|
-
|
|
24039
|
-
|
|
24040
|
-
|
|
24041
|
-
|
|
24286
|
+
&:last-of-type {
|
|
24287
|
+
margin-bottom: 0;
|
|
24288
|
+
}
|
|
24289
|
+
|
|
24290
|
+
& span svg {
|
|
24291
|
+
vertical-align: middle;
|
|
24292
|
+
}
|
|
24293
|
+
`;
|
|
24294
|
+
|
|
24295
|
+
const IconText = styled__default.default.div`
|
|
24296
|
+
padding-left: ${(props) => props.theme.theme_vars.spacingSizes.small};
|
|
24297
|
+
`;
|
|
24298
|
+
|
|
24299
|
+
const NoMatches = styled__default.default.p`
|
|
24300
|
+
padding: ${(props) => props.theme.theme_vars.spacingSizes.small} 0;
|
|
24301
|
+
`;
|
|
24302
|
+
|
|
24303
|
+
const RoadworkLink = styled__default.default.a`
|
|
24304
|
+
color: ${(props) => props.theme.theme_vars.colours.action};
|
|
24305
|
+
text-decoration: underline;
|
|
24306
|
+
|
|
24307
|
+
&:hover {
|
|
24308
|
+
text-decoration: none;
|
|
24309
|
+
}
|
|
24310
|
+
|
|
24311
|
+
&:focus {
|
|
24312
|
+
outline: 3px solid ${(props) => props.theme.theme_vars.colours.focus};
|
|
24313
|
+
outline-offset: 0;
|
|
24314
|
+
background-color: ${(props) => props.theme.theme_vars.colours.focus};
|
|
24315
|
+
color: ${(props) => props.theme.theme_vars.colours.black};
|
|
24316
|
+
text-decoration: none;
|
|
24317
|
+
}
|
|
24318
|
+
|
|
24319
|
+
&:visited {
|
|
24320
|
+
color: ${(props) => props.theme.theme_vars.colours.action_dark};
|
|
24321
|
+
}
|
|
24322
|
+
|
|
24323
|
+
h3 {
|
|
24324
|
+
color: inherit;
|
|
24325
|
+
}
|
|
24326
|
+
`;
|
|
24327
|
+
|
|
24328
|
+
/**
|
|
24329
|
+
* Primary UI component for user interaction
|
|
24330
|
+
* If value is set then treat as controlled component
|
|
24331
|
+
*/
|
|
24332
|
+
var Input = function (_a) {
|
|
24333
|
+
var _b = _a.type, type = _b === void 0 ? 'text' : _b, _c = _a.placeholder, placeholder = _c === void 0 ? '' : _c, _d = _a.isErrored, isErrored = _d === void 0 ? false : _d, errorText = _a.errorText, name = _a.name, maxLength = _a.maxLength, defaultValue = _a.defaultValue, onChange = _a.onChange, id = _a.id, value = _a.value, autocomplete = _a.autocomplete, _e = _a.isFullWidth, isFullWidth = _e === void 0 ? false : _e;
|
|
24334
|
+
return (React__default.default.createElement(React__default.default.Fragment, null,
|
|
24335
|
+
errorText && React__default.default.createElement(ErrorText$1, null, errorText),
|
|
24336
|
+
typeof value !== 'undefined' ? (React__default.default.createElement(StyledInput, { onChange: onChange, type: type, placeholder: placeholder, name: name, "$isErrored": isErrored, maxLength: maxLength, value: value, id: id, autoComplete: autocomplete, "$isFullWidth": isFullWidth })) : (React__default.default.createElement(StyledInput, { onChange: onChange, type: type, placeholder: placeholder, name: name, "$isErrored": isErrored, maxLength: maxLength, defaultValue: defaultValue, id: id, autoComplete: autocomplete, "$isFullWidth": isFullWidth }))));
|
|
24337
|
+
};
|
|
24338
|
+
|
|
24339
|
+
/**
|
|
24340
|
+
* A filterable list of roadworks
|
|
24341
|
+
*/
|
|
24342
|
+
var RoadworksList = function (_a) {
|
|
24343
|
+
var roadworks = _a.roadworks, title = _a.title;
|
|
24344
|
+
var _b = React.useState(roadworks), filteredRoadworks = _b[0], setFilteredRoadworks = _b[1];
|
|
24345
|
+
// Helper function to remove trailing dot if it's the last character
|
|
24346
|
+
var removeTrailingDot = function (text) {
|
|
24347
|
+
return (text === null || text === void 0 ? void 0 : text.endsWith('.')) ? text.slice(0, -1) : text;
|
|
24348
|
+
};
|
|
24349
|
+
var handleSearch = function (e) {
|
|
24350
|
+
var searchTerm = e.target.value.toLowerCase();
|
|
24351
|
+
if (searchTerm != '') {
|
|
24352
|
+
var updatedRoadworks = roadworks.filter(function (roadwork) {
|
|
24353
|
+
return (roadwork.description.toLowerCase().includes(searchTerm) ||
|
|
24354
|
+
roadwork.detailedLocation.toLocaleLowerCase().includes(searchTerm) ||
|
|
24355
|
+
roadwork.trafficManagement.toLowerCase().includes(searchTerm));
|
|
24356
|
+
});
|
|
24357
|
+
setFilteredRoadworks(updatedRoadworks);
|
|
24358
|
+
}
|
|
24359
|
+
else {
|
|
24360
|
+
setFilteredRoadworks(roadworks);
|
|
24361
|
+
}
|
|
24362
|
+
};
|
|
24363
|
+
// Format the time to match Gov UK style guide
|
|
24364
|
+
// https://www.gov.uk/guidance/style-guide/a-to-z#times
|
|
24365
|
+
var formatTime = function (dayJsInstance) {
|
|
24366
|
+
if (dayJsInstance.format('HH:mm') === '00:00') {
|
|
24367
|
+
return 'midnight';
|
|
24368
|
+
}
|
|
24369
|
+
if (dayJsInstance.format('HH:mm') === '12:00') {
|
|
24370
|
+
return 'midday';
|
|
24371
|
+
}
|
|
24372
|
+
if (dayJsInstance.format('mm') === '00') {
|
|
24373
|
+
return dayJsInstance.format('ha');
|
|
24374
|
+
}
|
|
24375
|
+
else {
|
|
24376
|
+
return dayJsInstance.format('h:mma');
|
|
24377
|
+
}
|
|
24378
|
+
};
|
|
24379
|
+
// Format the time to match the Gov UK style guide
|
|
24380
|
+
// https://www.gov.uk/guidance/style-guide/a-to-z#dates
|
|
24381
|
+
var formatDate = function (startTime, endTime) {
|
|
24382
|
+
if (!endTime) {
|
|
24383
|
+
return dayjs(startTime).format('dddd D MMMM YYYY') + ' at ' + formatTime(dayjs(startTime));
|
|
24384
|
+
}
|
|
24385
|
+
else {
|
|
24386
|
+
var endDate = dayjs(endTime);
|
|
24387
|
+
var startDate = dayjs(startTime);
|
|
24388
|
+
if (startDate.format('YYYY-MM-DD') === endDate.format('YYYY-MM-DD')) {
|
|
24389
|
+
if (startDate.format('HH:mm') === '00:00' && endDate.format('HH:mm') === '23:59') {
|
|
24390
|
+
return "".concat(startDate.format('dddd D MMMM YYYY'), " - all day");
|
|
24391
|
+
}
|
|
24392
|
+
return "".concat(startDate.format('dddd D MMMM YYYY'), " at ").concat(formatTime(startDate), " to ").concat(formatTime(endDate));
|
|
24393
|
+
}
|
|
24394
|
+
else {
|
|
24395
|
+
return "".concat(startDate.format('dddd D MMMM YYYY'), " at ").concat(formatTime(startDate), " to ").concat(endDate.format('dddd D MMMM YYYY'), " at ").concat(formatTime(endDate));
|
|
24396
|
+
}
|
|
24397
|
+
}
|
|
24398
|
+
};
|
|
24399
|
+
return (React__default.default.createElement(Container$H, { "data-testid": "RoadworksList" },
|
|
24400
|
+
React__default.default.createElement(Heading, { level: 2, text: title }),
|
|
24401
|
+
React__default.default.createElement(Label$4, { htmlFor: "roadworksSearch" }, "Search roadworks"),
|
|
24402
|
+
React__default.default.createElement(Input, { id: "roadworksSearch", name: "roadworksSearch", type: "text", placeholder: "Enter a search term", maxLength: 255, onChange: handleSearch, isFullWidth: true }),
|
|
24403
|
+
React__default.default.createElement(RoadworkList, null, filteredRoadworks.map(function (roadwork, index) {
|
|
24404
|
+
var startDate = new Date(roadwork.startTime);
|
|
24405
|
+
var endDate = new Date(roadwork.endTime);
|
|
24406
|
+
return (React__default.default.createElement(Roadwork, { key: index },
|
|
24407
|
+
React__default.default.createElement(IconContainer$2, null,
|
|
24408
|
+
React__default.default.createElement(DynamicIcon, { icon: "mappin" }),
|
|
24409
|
+
React__default.default.createElement(IconText, null, roadwork.urlLinkAddress ? (React__default.default.createElement(RoadworkLink, { href: roadwork.urlLinkAddress, target: "_blank", rel: "noopener noreferrer" },
|
|
24410
|
+
React__default.default.createElement(Heading, { text: removeTrailingDot(roadwork.detailedLocation), level: 3 }))) : (React__default.default.createElement(Heading, { text: removeTrailingDot(roadwork.detailedLocation), level: 3 })))),
|
|
24411
|
+
React__default.default.createElement(IconContainer$2, null,
|
|
24412
|
+
React__default.default.createElement(DynamicIcon, { icon: "events" }),
|
|
24413
|
+
React__default.default.createElement(IconText, null,
|
|
24414
|
+
React__default.default.createElement("span", null, formatDate(startDate, endDate)))),
|
|
24415
|
+
React__default.default.createElement(IconContainer$2, null,
|
|
24416
|
+
React__default.default.createElement(DynamicIcon, { icon: "roadworks" }),
|
|
24417
|
+
React__default.default.createElement(IconText, null,
|
|
24418
|
+
React__default.default.createElement("span", null, removeTrailingDot(roadwork.description)))),
|
|
24419
|
+
React__default.default.createElement(IconContainer$2, null,
|
|
24420
|
+
React__default.default.createElement(DynamicIcon, { icon: "bollard" }),
|
|
24421
|
+
React__default.default.createElement(IconText, null,
|
|
24422
|
+
React__default.default.createElement("span", null, removeTrailingDot(roadwork.trafficManagement))))));
|
|
24423
|
+
})),
|
|
24424
|
+
roadworks.length > 0 && filteredRoadworks.length === 0 && (React__default.default.createElement(NoMatches, null, "We couldn't find any results for your search term. Please try a different search.")),
|
|
24425
|
+
roadworks.length == 0 && (React__default.default.createElement(NoMatches, null, "Sorry, we're not able to find any results at the moment. Please try again later."))));
|
|
24426
|
+
};
|
|
24427
|
+
|
|
24428
|
+
const Container$G = styled__default.default.div`
|
|
24429
|
+
padding: 0;
|
|
24430
|
+
margin: ${(props) => props.theme.theme_vars.spacingSizes.medium} 0;
|
|
24431
|
+
${(props) => props.theme.fontStyles}
|
|
24432
|
+
|
|
24433
|
+
@media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.m}) {
|
|
24434
|
+
background: url('${(props) => props.$image}') no-repeat center center;
|
|
24435
|
+
background-size: cover;
|
|
24436
|
+
padding-top: ${(props) => (props.$image ? '8rem' : 0)};
|
|
24437
|
+
padding-bottom: ${(props) => (props.$image ? '8rem' : 0)};
|
|
24438
|
+
padding-left: ${(props) => (props.$image ? props.theme.theme_vars.spacingSizes.x_large : 0)};
|
|
24439
|
+
padding-right: ${(props) => (props.$image ? props.theme.theme_vars.spacingSizes.x_large : 0)};
|
|
24440
|
+
}
|
|
24441
|
+
|
|
24442
|
+
h2 {
|
|
24443
|
+
text-align: center;
|
|
24444
|
+
}
|
|
24445
|
+
`;
|
|
24446
|
+
|
|
24447
|
+
const LinkContainer = styled__default.default.div`
|
|
24448
|
+
height: 100%;
|
|
24449
|
+
display: flex;
|
|
24450
|
+
align-items: flex-end;
|
|
24451
|
+
|
|
24452
|
+
a {
|
|
24453
|
+
width: 100%;
|
|
24454
|
+
height: 2.28rem;
|
|
24455
|
+
padding: 12px !important;
|
|
24456
|
+
@media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.m}) {
|
|
24457
|
+
height: 2.6rem;
|
|
24458
|
+
}
|
|
24459
|
+
}
|
|
24460
|
+
`;
|
|
24461
|
+
|
|
24462
|
+
const Inner = styled__default.default.div`
|
|
24463
|
+
background-color: ${(props) =>
|
|
24464
|
+
props.theme.cardinal_name === 'west'
|
|
24465
|
+
? props.theme.theme_vars.colours.grey_light
|
|
24466
|
+
: props.theme.theme_vars.colours.white};
|
|
24467
|
+
padding: ${(props) => props.theme.theme_vars.spacingSizes.small};
|
|
24468
|
+
box-shadow: 1px 1px 5px 1px rgba(0, 0, 0, 0.2);
|
|
24469
|
+
border-radius: ${(props) => props.theme.theme_vars.border_radius};
|
|
24470
|
+
|
|
24471
|
+
@media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.m}) {
|
|
24472
|
+
padding: ${(props) => props.theme.theme_vars.spacingSizes.large};
|
|
24473
|
+
max-width: ${(props) => props.theme.theme_vars.breakpoints.m};
|
|
24474
|
+
margin: 0 auto;
|
|
24475
|
+
}
|
|
24476
|
+
`;
|
|
24477
|
+
|
|
24478
|
+
const Container$F = styled__default.default.div`
|
|
24479
|
+
display: block;
|
|
24480
|
+
|
|
24481
|
+
input[type='text'] {
|
|
24482
|
+
border-top-right-radius: 0;
|
|
24483
|
+
border-bottom-right-radius: 0;
|
|
24484
|
+
flex-grow: 1;
|
|
24042
24485
|
margin-bottom: 0;
|
|
24043
24486
|
}
|
|
24044
24487
|
`;
|
|
@@ -24100,17 +24543,6 @@ const SubmitButton = styled__default.default.input`
|
|
|
24100
24543
|
}
|
|
24101
24544
|
`;
|
|
24102
24545
|
|
|
24103
|
-
/**
|
|
24104
|
-
* Primary UI component for user interaction
|
|
24105
|
-
* If value is set then treat as controlled component
|
|
24106
|
-
*/
|
|
24107
|
-
var Input = function (_a) {
|
|
24108
|
-
var _b = _a.type, type = _b === void 0 ? 'text' : _b, _c = _a.placeholder, placeholder = _c === void 0 ? '' : _c, _d = _a.isErrored, isErrored = _d === void 0 ? false : _d, errorText = _a.errorText, name = _a.name, maxLength = _a.maxLength, defaultValue = _a.defaultValue, onChange = _a.onChange, id = _a.id, value = _a.value, autocomplete = _a.autocomplete, _e = _a.isFullWidth, isFullWidth = _e === void 0 ? false : _e;
|
|
24109
|
-
return (React__default.default.createElement(React__default.default.Fragment, null,
|
|
24110
|
-
errorText && React__default.default.createElement(ErrorText$1, null, errorText),
|
|
24111
|
-
typeof value !== 'undefined' ? (React__default.default.createElement(StyledInput, { onChange: onChange, type: type, placeholder: placeholder, name: name, "$isErrored": isErrored, maxLength: maxLength, value: value, id: id, autoComplete: autocomplete, "$isFullWidth": isFullWidth })) : (React__default.default.createElement(StyledInput, { onChange: onChange, type: type, placeholder: placeholder, name: name, "$isErrored": isErrored, maxLength: maxLength, defaultValue: defaultValue, id: id, autoComplete: autocomplete, "$isFullWidth": isFullWidth }))));
|
|
24112
|
-
};
|
|
24113
|
-
|
|
24114
24546
|
var CustomSearch = function (_a) {
|
|
24115
24547
|
var method = _a.method, path = _a.path, label = _a.label, _b = _a.hasHiddenLabel, hasHiddenLabel = _b === void 0 ? true : _b, fieldName = _a.fieldName, placeholder = _a.placeholder, searchText = _a.searchText, id = _a.id;
|
|
24116
24548
|
if (!id) {
|
|
@@ -24149,7 +24581,7 @@ var VideoProvider;
|
|
|
24149
24581
|
VideoProvider["Vimeo"] = "Vimeo";
|
|
24150
24582
|
})(VideoProvider || (VideoProvider = {}));
|
|
24151
24583
|
|
|
24152
|
-
const VideoContainer = styled__default.default.figure`
|
|
24584
|
+
const VideoContainer$1 = styled__default.default.figure`
|
|
24153
24585
|
display: block;
|
|
24154
24586
|
padding-top: 56.25%;
|
|
24155
24587
|
position: relative;
|
|
@@ -24209,7 +24641,7 @@ var Video = function (_a) {
|
|
|
24209
24641
|
React.useEffect(function () {
|
|
24210
24642
|
setNotServer(true);
|
|
24211
24643
|
}, []);
|
|
24212
|
-
return (React__default.default.createElement(React__default.default.Fragment, null, cookiesAccepted && notServer ? (React__default.default.createElement(VideoContainer, { "data-testid": "Video" },
|
|
24644
|
+
return (React__default.default.createElement(React__default.default.Fragment, null, cookiesAccepted && notServer ? (React__default.default.createElement(VideoContainer$1, { "data-testid": "Video" },
|
|
24213
24645
|
React__default.default.createElement("iframe", { src: embedLink, title: description, allow: "accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; fullscreen;", "data-testid": "VideoIframe" }))) : (React__default.default.createElement(VideoLink, { href: watchLink, title: description, "data-testid": "VideoLink" }, description))));
|
|
24214
24646
|
};
|
|
24215
24647
|
|
|
@@ -25078,6 +25510,17 @@ const FooterLink = styled__default.default.a`
|
|
|
25078
25510
|
-webkit-box-shadow: 0px -2px 0px 0px ${(props) => props.theme.theme_vars.colours.white} inset;
|
|
25079
25511
|
-moz-box-shadow: 0px -2px 0px 0px ${(props) => props.theme.theme_vars.colours.white} inset;
|
|
25080
25512
|
}
|
|
25513
|
+
&:focus:not(:focus-visible) {
|
|
25514
|
+
box-shadow: none;
|
|
25515
|
+
-webkit-box-shadow: none;
|
|
25516
|
+
-moz-box-shadow: none;
|
|
25517
|
+
}
|
|
25518
|
+
&:focus-visible {
|
|
25519
|
+
${(props) => props.theme.linkStylesFocus}
|
|
25520
|
+
box-shadow: 0px -2px 0px 0px ${(props) => props.theme.theme_vars.colours.white} inset;
|
|
25521
|
+
-webkit-box-shadow: 0px -2px 0px 0px ${(props) => props.theme.theme_vars.colours.white} inset;
|
|
25522
|
+
-moz-box-shadow: 0px -2px 0px 0px ${(props) => props.theme.theme_vars.colours.white} inset;
|
|
25523
|
+
}
|
|
25081
25524
|
&:active {
|
|
25082
25525
|
${(props) => props.theme.linkStylesActive}
|
|
25083
25526
|
box-shadow: 0px -1px 0px 0px ${(props) => props.theme.theme_vars.colours.white} inset;
|
|
@@ -25240,6 +25683,8 @@ const headerThemeStyles = (props) => {
|
|
|
25240
25683
|
const Container$w = styled__default.default.header`
|
|
25241
25684
|
font-family: ${(props) => props.theme.theme_vars.fontstack};
|
|
25242
25685
|
padding: 3px 0;
|
|
25686
|
+
position: sticky;
|
|
25687
|
+
z-index: 1;
|
|
25243
25688
|
${headerThemeStyles}
|
|
25244
25689
|
`;
|
|
25245
25690
|
|
|
@@ -25302,13 +25747,11 @@ const HomeLink = styled__default.default.a`
|
|
|
25302
25747
|
}
|
|
25303
25748
|
}
|
|
25304
25749
|
&:focus {
|
|
25305
|
-
outline:
|
|
25306
|
-
|
|
25307
|
-
|
|
25308
|
-
|
|
25309
|
-
|
|
25310
|
-
: props.theme.theme_vars.colours.focus}
|
|
25311
|
-
0 0 0 4px;
|
|
25750
|
+
outline: none;
|
|
25751
|
+
background: ${(props) => props.theme.theme_vars.colours.focus};
|
|
25752
|
+
box-shadow: 0 0 0 2px ${(props) => props.theme.theme_vars.colours.focus}, 0 0 0 4px ${(props) => props.theme.theme_vars.colours.black};
|
|
25753
|
+
-webkit-box-shadow: 0 0 0 2px ${(props) => props.theme.theme_vars.colours.focus}, 0 0 0 4px ${(props) => props.theme.theme_vars.colours.black};
|
|
25754
|
+
-moz-box-shadow: 0 0 0 2px ${(props) => props.theme.theme_vars.colours.focus}, 0 0 0 4px ${(props) => props.theme.theme_vars.colours.black};
|
|
25312
25755
|
transition: box-shadow 0.3s ease 0s;
|
|
25313
25756
|
}
|
|
25314
25757
|
`;
|
|
@@ -25461,6 +25904,9 @@ const Button$3 = styled__default.default.button`
|
|
|
25461
25904
|
&:focus {
|
|
25462
25905
|
outline: none;
|
|
25463
25906
|
background: ${(props) => props.theme.theme_vars.colours.focus};
|
|
25907
|
+
box-shadow: 0 0 0 2px ${(props) => props.theme.theme_vars.colours.focus}, 0 0 0 4px ${(props) => props.theme.theme_vars.colours.black};
|
|
25908
|
+
-webkit-box-shadow: 0 0 0 2px ${(props) => props.theme.theme_vars.colours.focus}, 0 0 0 4px ${(props) => props.theme.theme_vars.colours.black};
|
|
25909
|
+
-moz-box-shadow: 0 0 0 2px ${(props) => props.theme.theme_vars.colours.focus}, 0 0 0 4px ${(props) => props.theme.theme_vars.colours.black};
|
|
25464
25910
|
svg {
|
|
25465
25911
|
path {
|
|
25466
25912
|
fill: ${(props) => props.theme.theme_vars.colours.black};
|
|
@@ -25632,9 +26078,19 @@ var Header = function (_a) {
|
|
|
25632
26078
|
* Optimised for an image in 16:5 ratio on all but small width screens
|
|
25633
26079
|
*/
|
|
25634
26080
|
const Container$u = styled__default.default.div`
|
|
25635
|
-
background-image: ${(props) =>
|
|
25636
|
-
|
|
25637
|
-
url('${
|
|
26081
|
+
background-image: ${(props) => {
|
|
26082
|
+
const gradient = !props.$backgroundBox ? `linear-gradient(to bottom left, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.75))` : '';
|
|
26083
|
+
const imageUrl = props.$image && props.$image.trim() ? `url('${props.$image}')` : '';
|
|
26084
|
+
if (gradient && imageUrl) {
|
|
26085
|
+
return `${gradient}, ${imageUrl}`;
|
|
26086
|
+
} else if (gradient) {
|
|
26087
|
+
return gradient;
|
|
26088
|
+
} else if (imageUrl) {
|
|
26089
|
+
return imageUrl;
|
|
26090
|
+
} else {
|
|
26091
|
+
return 'none';
|
|
26092
|
+
}
|
|
26093
|
+
}};
|
|
25638
26094
|
|
|
25639
26095
|
padding-bottom: 10px;
|
|
25640
26096
|
background-position: center;
|
|
@@ -25665,6 +26121,7 @@ const InnerContainer = styled__default.default.div`
|
|
|
25665
26121
|
margin-right: auto;
|
|
25666
26122
|
margin-left: auto;
|
|
25667
26123
|
flex-grow: 1;
|
|
26124
|
+
z-index: 1;
|
|
25668
26125
|
|
|
25669
26126
|
@media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.l}) {
|
|
25670
26127
|
max-width: ${(props) => props.theme.theme_vars.breakpoints.l};
|
|
@@ -25752,12 +26209,14 @@ const CallToActionLink = styled__default.default.a`
|
|
|
25752
26209
|
display: inline-block;
|
|
25753
26210
|
outline: none;
|
|
25754
26211
|
|
|
25755
|
-
&:hover
|
|
25756
|
-
&:focus {
|
|
26212
|
+
&:hover {
|
|
25757
26213
|
text-decoration-style: dotted;
|
|
25758
26214
|
text-shadow: 2px 2px 4px rgba(150, 150, 150, 0.5), -2px 2px 4px rgba(150, 150, 150, 0.5),
|
|
25759
26215
|
2px -2px 4px rgba(150, 150, 150, 0.5), -2px -2px 4px rgba(150, 150, 150, 0.5);
|
|
25760
26216
|
}
|
|
26217
|
+
&:focus {
|
|
26218
|
+
${(props) => props.theme.linkStylesFocus};
|
|
26219
|
+
}
|
|
25761
26220
|
&:active {
|
|
25762
26221
|
transform: translate(3px);
|
|
25763
26222
|
}
|
|
@@ -25786,16 +26245,103 @@ const Search = styled__default.default.div`
|
|
|
25786
26245
|
margin: ${(props) => props.theme.theme_vars.spacingSizes.medium} 0;
|
|
25787
26246
|
`;
|
|
25788
26247
|
|
|
26248
|
+
const VideoContainer = styled__default.default.div`
|
|
26249
|
+
position: absolute;
|
|
26250
|
+
width: 100%;
|
|
26251
|
+
@media screen and (max-width: ${(props) => props.theme.theme_vars.breakpoints.m}) {
|
|
26252
|
+
height: 580px;
|
|
26253
|
+
}
|
|
26254
|
+
@media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.m}) and (max-width: ${(props) => props.theme.theme_vars.breakpoints.l}) {
|
|
26255
|
+
height: 410px;
|
|
26256
|
+
}
|
|
26257
|
+
@media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.l}) {
|
|
26258
|
+
height: 560px;
|
|
26259
|
+
}
|
|
26260
|
+
@media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.xl}) {
|
|
26261
|
+
height: 636px;
|
|
26262
|
+
}
|
|
26263
|
+
`;
|
|
26264
|
+
|
|
26265
|
+
const VideoBackground = styled__default.default.video`
|
|
26266
|
+
position: absolute;
|
|
26267
|
+
width: 100%;
|
|
26268
|
+
height: 575px;
|
|
26269
|
+
object-fit: cover;
|
|
26270
|
+
@media screen and (max-width: ${(props) => props.theme.theme_vars.breakpoints.m}) {
|
|
26271
|
+
height: 590px;
|
|
26272
|
+
}
|
|
26273
|
+
@media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.m}) and (max-width: ${(props) => props.theme.theme_vars.breakpoints.l}) {
|
|
26274
|
+
height: 420px;
|
|
26275
|
+
}
|
|
26276
|
+
@media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.l}) {
|
|
26277
|
+
height: 568px;
|
|
26278
|
+
}
|
|
26279
|
+
@media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.xl}) {
|
|
26280
|
+
height: 645px;
|
|
26281
|
+
}
|
|
26282
|
+
`;
|
|
26283
|
+
|
|
26284
|
+
const PlayPauseButton = styled__default.default.button`
|
|
26285
|
+
position: absolute;
|
|
26286
|
+
display: none;
|
|
26287
|
+
@media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.l}) {
|
|
26288
|
+
bottom: 20px;
|
|
26289
|
+
right: 20px;
|
|
26290
|
+
display: flex;
|
|
26291
|
+
align-items: center;
|
|
26292
|
+
justify-content: center;
|
|
26293
|
+
z-index: 1;
|
|
26294
|
+
background: rgba(0, 0, 0, 0.5);
|
|
26295
|
+
border: 1px solid white;
|
|
26296
|
+
color: white;
|
|
26297
|
+
font-size: 32px;
|
|
26298
|
+
border-radius: 50%;
|
|
26299
|
+
width: 50px;
|
|
26300
|
+
height: 50px;
|
|
26301
|
+
cursor: pointer;
|
|
26302
|
+
&:hover {
|
|
26303
|
+
background: rgba(0, 0, 0, 0.7);
|
|
26304
|
+
}
|
|
26305
|
+
&:focus {
|
|
26306
|
+
outline: none;
|
|
26307
|
+
background: ${(props) => props.theme.theme_vars.colours.focus};
|
|
26308
|
+
color: ${(props) => props.theme.theme_vars.colours.black};
|
|
26309
|
+
box-shadow: 0 0 0 2px ${(props) => props.theme.theme_vars.colours.focus}, 0 0 0 4px ${(props) => props.theme.theme_vars.colours.black};
|
|
26310
|
+
-webkit-box-shadow: 0 0 0 2px ${(props) => props.theme.theme_vars.colours.focus}, 0 0 0 4px ${(props) => props.theme.theme_vars.colours.black};
|
|
26311
|
+
-moz-box-shadow: 0 0 0 2px ${(props) => props.theme.theme_vars.colours.focus}, 0 0 0 4px ${(props) => props.theme.theme_vars.colours.black};
|
|
26312
|
+
}
|
|
26313
|
+
}
|
|
26314
|
+
`;
|
|
26315
|
+
|
|
25789
26316
|
/**
|
|
25790
26317
|
* Hero image banner with optional text and call to action with varying presentation of text area.
|
|
25791
26318
|
* For optional use at the top of a service landing page, if set in the CMS.
|
|
25792
26319
|
*/
|
|
25793
26320
|
var HeroImage = function (_a) {
|
|
25794
|
-
var headline = _a.headline, content = _a.content, callToActionText = _a.callToActionText, callToActionURL = _a.callToActionURL, _b = _a.callToActionIsPrimary, callToActionIsPrimary = _b === void 0 ? true : _b, _c = _a.backgroundBox, backgroundBox = _c === void 0 ? true : _c, imageLarge = _a.imageLarge, imageSmall = _a.imageSmall, imageAltText = _a.imageAltText, breadcrumb = _a.breadcrumb, customSearch = _a.customSearch;
|
|
26321
|
+
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;
|
|
26322
|
+
var _d = React.useState(true), isPlaying = _d[0], setIsPlaying = _d[1];
|
|
26323
|
+
var videoRef = React.useRef(null);
|
|
26324
|
+
var togglePlay = function () {
|
|
26325
|
+
if (videoRef.current) {
|
|
26326
|
+
if (isPlaying) {
|
|
26327
|
+
videoRef.current.pause();
|
|
26328
|
+
}
|
|
26329
|
+
else {
|
|
26330
|
+
videoRef.current.play();
|
|
26331
|
+
}
|
|
26332
|
+
setIsPlaying(!isPlaying);
|
|
26333
|
+
}
|
|
26334
|
+
};
|
|
25795
26335
|
return (React__default.default.createElement(React__default.default.Fragment, null,
|
|
25796
26336
|
React__default.default.createElement(LazyImage, { src: imageLarge, placeholder: imageSmall, visibilitySensorProps: {
|
|
25797
26337
|
partialVisibility: true,
|
|
25798
26338
|
} }, function (src) { return (React__default.default.createElement(Container$u, { "$image": src, "$backgroundBox": backgroundBox, "data-testid": "HeroImage" },
|
|
26339
|
+
heroVideoUrl && (React__default.default.createElement(React__default.default.Fragment, null,
|
|
26340
|
+
React__default.default.createElement(VideoContainer, null,
|
|
26341
|
+
React__default.default.createElement(VideoBackground, { ref: videoRef, autoPlay: true, loop: true, muted: true },
|
|
26342
|
+
React__default.default.createElement("source", { src: heroVideoUrl, type: "video/mp4" }),
|
|
26343
|
+
"Your browser doesn't support this video."),
|
|
26344
|
+
React__default.default.createElement(PlayPauseButton, { onClick: togglePlay }, isPlaying ? '⏸' : '▶')))),
|
|
25799
26345
|
React__default.default.createElement(InnerContainer, null,
|
|
25800
26346
|
React__default.default.createElement(Overlay, { "$backgroundBox": backgroundBox, "data-testid": "HeroImageOverlay" },
|
|
25801
26347
|
breadcrumb && (React__default.default.createElement(BreadcrumbLink, { href: breadcrumb.url, "$backgroundBox": backgroundBox }, breadcrumb.title)),
|
|
@@ -27003,7 +27549,10 @@ const Container$l = styled__default.default.main`
|
|
|
27003
27549
|
}
|
|
27004
27550
|
|
|
27005
27551
|
td > a:only-child {
|
|
27006
|
-
padding:
|
|
27552
|
+
padding: 12px 20px;
|
|
27553
|
+
display: inline-block;
|
|
27554
|
+
min-height: 44px;
|
|
27555
|
+
min-width: 44px;
|
|
27007
27556
|
}
|
|
27008
27557
|
|
|
27009
27558
|
td > a:not(:only-child) {
|
|
@@ -27865,9 +28414,9 @@ const focusListItem = styled.css`
|
|
|
27865
28414
|
color: ${(props) => props.theme.theme_vars.colours.black};
|
|
27866
28415
|
background-color: ${(props) => props.theme.theme_vars.colours.focus};
|
|
27867
28416
|
outline: none;
|
|
27868
|
-
box-shadow:
|
|
27869
|
-
-webkit-box-shadow:
|
|
27870
|
-
-moz-box-shadow:
|
|
28417
|
+
box-shadow: 0 0 0 2px ${(props) => props.theme.theme_vars.colours.focus}, 0 0 0 4px ${(props) => props.theme.theme_vars.colours.black};
|
|
28418
|
+
-webkit-box-shadow: 0 0 0 2px ${(props) => props.theme.theme_vars.colours.focus}, 0 0 0 4px ${(props) => props.theme.theme_vars.colours.black};
|
|
28419
|
+
-moz-box-shadow: 0 0 0 2px ${(props) => props.theme.theme_vars.colours.focus}, 0 0 0 4px ${(props) => props.theme.theme_vars.colours.black};
|
|
27871
28420
|
`;
|
|
27872
28421
|
|
|
27873
28422
|
const ListItem = styled__default.default.li`
|
|
@@ -27889,10 +28438,12 @@ const ListItem = styled__default.default.li`
|
|
|
27889
28438
|
background-color: ${(props) => props.theme.theme_vars.colours.action_light};
|
|
27890
28439
|
color: ${(props) => props.theme.theme_vars.colours.black};
|
|
27891
28440
|
border-bottom-color: transparent;
|
|
27892
|
-
|
|
27893
28441
|
&:focus {
|
|
27894
28442
|
${focusListItem}
|
|
27895
28443
|
}
|
|
28444
|
+
&:focus-visible {
|
|
28445
|
+
${focusListItem}
|
|
28446
|
+
}
|
|
27896
28447
|
}
|
|
27897
28448
|
}
|
|
27898
28449
|
`;
|
|
@@ -27908,10 +28459,12 @@ const ListItemLink = styled__default.default.a`
|
|
|
27908
28459
|
transition: background-color 0.3s ease 0s;
|
|
27909
28460
|
background-color: ${(props) => props.theme.theme_vars.colours.action_light}80;
|
|
27910
28461
|
}
|
|
27911
|
-
|
|
27912
28462
|
&:focus {
|
|
27913
28463
|
${focusListItem}
|
|
27914
28464
|
}
|
|
28465
|
+
&:focus-visible {
|
|
28466
|
+
${focusListItem}
|
|
28467
|
+
}
|
|
27915
28468
|
&:active {
|
|
27916
28469
|
transform: translateY(1px);
|
|
27917
28470
|
box-shadow: 0px -1px 0px 0px ${(props) => props.theme.theme_vars.colours.black} inset;
|
|
@@ -29661,9 +30214,9 @@ const generate_theme = (theme_vars) => {
|
|
|
29661
30214
|
background: ${theme_vars.colours.focus};
|
|
29662
30215
|
outline: none;
|
|
29663
30216
|
text-decoration: none !important;
|
|
29664
|
-
box-shadow: 0 0 0
|
|
29665
|
-
-webkit-box-shadow: 0 0 0
|
|
29666
|
-
-moz-box-shadow: 0 0 0
|
|
30217
|
+
box-shadow: 0 0 0 2px ${theme_vars.colours.focus}, 0 0 0 4px ${theme_vars.colours.black};
|
|
30218
|
+
-webkit-box-shadow: 0 0 0 2px ${theme_vars.colours.focus}, 0 0 0 4px ${theme_vars.colours.black};
|
|
30219
|
+
-moz-box-shadow: 0 0 0 2px ${theme_vars.colours.focus}, 0 0 0 4px ${theme_vars.colours.black};
|
|
29667
30220
|
`,
|
|
29668
30221
|
linkStylesActive: styled.css`
|
|
29669
30222
|
color: ${theme_vars.colours.black};
|
|
@@ -30081,7 +30634,7 @@ var PhoneIcon = function (_a) {
|
|
|
30081
30634
|
};
|
|
30082
30635
|
|
|
30083
30636
|
var ServiceContact = function (_a) {
|
|
30084
|
-
var website = _a.website, email = _a.email, contacts = _a.contacts;
|
|
30637
|
+
var website = _a.website, email = _a.email, contacts = _a.contacts, websiteTitle = _a.websiteTitle;
|
|
30085
30638
|
var themeContext = React.useContext(styled.ThemeContext);
|
|
30086
30639
|
return (React__default.default.createElement(Container$6, { "data-testid": "ServiceContact" },
|
|
30087
30640
|
React__default.default.createElement(Row$1, { hasWrap: false },
|
|
@@ -30089,7 +30642,7 @@ var ServiceContact = function (_a) {
|
|
|
30089
30642
|
React__default.default.createElement(IconContainer$1, null,
|
|
30090
30643
|
React__default.default.createElement(WebsiteIcon, { colourFill: themeContext.theme_vars.colours.black })),
|
|
30091
30644
|
React__default.default.createElement(Content$1, null,
|
|
30092
|
-
React__default.default.createElement(WebLink$1, { href: website }, website)))),
|
|
30645
|
+
React__default.default.createElement(WebLink$1, { href: website }, websiteTitle ? "".concat(websiteTitle) : website)))),
|
|
30093
30646
|
email && (React__default.default.createElement(Column, { small: "full", medium: "full", large: "auto", classes: "striped-contacts" },
|
|
30094
30647
|
React__default.default.createElement(IconContainer$1, null,
|
|
30095
30648
|
React__default.default.createElement(EmailIcon, { colourFill: themeContext.theme_vars.colours.black })),
|
|
@@ -30103,69 +30656,6 @@ var ServiceContact = function (_a) {
|
|
|
30103
30656
|
contact.phones.map(function (phone, phoneIndex) { return (React__default.default.createElement(ContactLink, { href: "tel:".concat(phone.number), key: phoneIndex }, phone.number)); }))); })))))));
|
|
30104
30657
|
};
|
|
30105
30658
|
|
|
30106
|
-
const SummaryList$1 = styled__default.default.dl`
|
|
30107
|
-
display: table;
|
|
30108
|
-
width: 100%;
|
|
30109
|
-
table-layout: fixed;
|
|
30110
|
-
border-collapse: collapse;
|
|
30111
|
-
margin: ${(props) => (props.$hasMargin ? props.theme.theme_vars.spacingSizes.medium : 0)} 0;
|
|
30112
|
-
`;
|
|
30113
|
-
|
|
30114
|
-
const SummaryRow = styled__default.default.div`
|
|
30115
|
-
border-bottom: 1px solid ${(props) => props.theme.theme_vars.colours.grey};
|
|
30116
|
-
margin-bottom: ${(props) => props.theme.theme_vars.spacingSizes.small};
|
|
30117
|
-
|
|
30118
|
-
@media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.m}) {
|
|
30119
|
-
display: table-row;
|
|
30120
|
-
}
|
|
30121
|
-
|
|
30122
|
-
@media print {
|
|
30123
|
-
display: table-row;
|
|
30124
|
-
border-bottom: none;
|
|
30125
|
-
}
|
|
30126
|
-
`;
|
|
30127
|
-
|
|
30128
|
-
const SummaryTerm = styled__default.default.dt`
|
|
30129
|
-
margin-bottom: ${(props) => props.theme.theme_vars.spacingSizes.small};
|
|
30130
|
-
font-weight: bold;
|
|
30131
|
-
|
|
30132
|
-
@media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.m}) {
|
|
30133
|
-
display: table-cell;
|
|
30134
|
-
padding: ${(props) => props.theme.theme_vars.spacingSizes.small};
|
|
30135
|
-
width: 30%;
|
|
30136
|
-
vertical-align: middle;
|
|
30137
|
-
}
|
|
30138
|
-
|
|
30139
|
-
@media print {
|
|
30140
|
-
display: table-cell;
|
|
30141
|
-
width: 30%;
|
|
30142
|
-
}
|
|
30143
|
-
`;
|
|
30144
|
-
|
|
30145
|
-
const SummaryDetail = styled__default.default.dd`
|
|
30146
|
-
overflow-wrap: break-word;
|
|
30147
|
-
width: 100%;
|
|
30148
|
-
margin-bottom: ${(props) => props.theme.theme_vars.spacingSizes.small};
|
|
30149
|
-
|
|
30150
|
-
@media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.m}) {
|
|
30151
|
-
display: table-cell;
|
|
30152
|
-
width: 70%;
|
|
30153
|
-
padding: ${(props) => props.theme.theme_vars.spacingSizes.small};
|
|
30154
|
-
}
|
|
30155
|
-
|
|
30156
|
-
@media print {
|
|
30157
|
-
display: table-cell;
|
|
30158
|
-
width: 70%;
|
|
30159
|
-
}
|
|
30160
|
-
`;
|
|
30161
|
-
|
|
30162
|
-
var SummaryList = function (_a) {
|
|
30163
|
-
var terms = _a.terms, _b = _a.hasMargin, hasMargin = _b === void 0 ? true : _b;
|
|
30164
|
-
return (React__default.default.createElement(SummaryList$1, { "data-testid": "SummaryList", "$hasMargin": hasMargin }, terms.map(function (summaryRow, summaryIndex) { return (React__default.default.createElement(SummaryRow, { key: summaryIndex },
|
|
30165
|
-
React__default.default.createElement(SummaryTerm, null, summaryRow.term),
|
|
30166
|
-
React__default.default.createElement(SummaryDetail, { dangerouslySetInnerHTML: { __html: sanitizeHtml$1(summaryRow.detail) } }))); })));
|
|
30167
|
-
};
|
|
30168
|
-
|
|
30169
30659
|
/**
|
|
30170
30660
|
* Group an array of items by the key
|
|
30171
30661
|
*/
|
|
@@ -30279,10 +30769,15 @@ var transformDescriptionDetails = function (accreditations, fees, service_areas,
|
|
|
30279
30769
|
};
|
|
30280
30770
|
var transformSnippet = function (description, extractLength) {
|
|
30281
30771
|
if (extractLength === void 0) { extractLength = 190; }
|
|
30282
|
-
|
|
30772
|
+
var sanitized = sanitizeHtml$1(description, {
|
|
30283
30773
|
allowedTags: [],
|
|
30284
30774
|
allowedAttributes: {},
|
|
30285
|
-
}).
|
|
30775
|
+
}).trim();
|
|
30776
|
+
if (!sanitized) {
|
|
30777
|
+
return '';
|
|
30778
|
+
}
|
|
30779
|
+
var snippet = sanitized.substr(0, extractLength);
|
|
30780
|
+
return sanitized.length > extractLength ? snippet + String.fromCharCode(8230) : snippet;
|
|
30286
30781
|
};
|
|
30287
30782
|
var transformTaxonomies = function (service_taxonomys, taxonomiesToShow) {
|
|
30288
30783
|
if (taxonomiesToShow === void 0) { taxonomiesToShow = []; }
|
|
@@ -30315,11 +30810,14 @@ var transformTaxonomies = function (service_taxonomys, taxonomiesToShow) {
|
|
|
30315
30810
|
var transformAge = function (age, ageInMonths) {
|
|
30316
30811
|
if (ageInMonths === void 0) { ageInMonths = false; }
|
|
30317
30812
|
if (age === 0) {
|
|
30318
|
-
return age;
|
|
30813
|
+
return age.toString();
|
|
30319
30814
|
}
|
|
30320
30815
|
if (ageInMonths) {
|
|
30321
30816
|
if (age > 36) {
|
|
30322
|
-
|
|
30817
|
+
if (age % 12 === 0) {
|
|
30818
|
+
return Math.ceil(age / 12) + ' years';
|
|
30819
|
+
}
|
|
30820
|
+
return Math.floor(age / 12) + ' years and ' + (age % 12) + (age % 12 === 1 ? ' month' : ' months');
|
|
30323
30821
|
}
|
|
30324
30822
|
return "".concat(age, " months");
|
|
30325
30823
|
}
|
|
@@ -30332,7 +30830,7 @@ const Container$5 = styled__default.default.div`
|
|
|
30332
30830
|
|
|
30333
30831
|
var DirectoryMap = function (_a) {
|
|
30334
30832
|
var _b, _c;
|
|
30335
|
-
var
|
|
30833
|
+
var _d = _a.allowCookies, allowCookies = _d === void 0 ? true : _d, mapProps = _a.mapProps;
|
|
30336
30834
|
var cookiesAccepted = wereCookiesAccepted(allowCookies);
|
|
30337
30835
|
var apiKey = (_b = process.env.NEXT_PUBLIC_GOOGLE_MAPS_API_KEY) !== null && _b !== void 0 ? _b : '';
|
|
30338
30836
|
var latLong = mapProps.centre.split(',');
|
|
@@ -30436,11 +30934,11 @@ var HeartIcon = function (_a) {
|
|
|
30436
30934
|
};
|
|
30437
30935
|
|
|
30438
30936
|
var DirectoryAddToShortList = function (_a) {
|
|
30439
|
-
var id = _a.id, name = _a.name, snippet = _a.snippet, email = _a.email, website = _a.website, phone = _a.phone;
|
|
30937
|
+
var id = _a.id, name = _a.name, snippet = _a.snippet, email = _a.email, website = _a.website, phone = _a.phone, addresses = _a.addresses, fees = _a.fees;
|
|
30440
30938
|
var _b = useDirectoryShortListContext(), toggleFavourites = _b.toggleFavourites, isFavourite = _b.isFavourite;
|
|
30441
30939
|
var themeContext = React.useContext(styled.ThemeContext);
|
|
30442
30940
|
var favourite = isFavourite(id);
|
|
30443
|
-
return (React__default.default.createElement(AddToShortlist, { onClick: function (e) { return toggleFavourites(id, name, snippet, email, website, phone); }, "data-testid": "DirectoryAddToShortList", "$favourite": favourite },
|
|
30941
|
+
return (React__default.default.createElement(AddToShortlist, { onClick: function (e) { return toggleFavourites(id, name, snippet, email, website, phone, addresses, fees); }, "data-testid": "DirectoryAddToShortList", "$favourite": favourite },
|
|
30444
30942
|
favourite ? (React__default.default.createElement(IconDownload$1, { colourFill: themeContext.theme_vars.colours.negative })) : (React__default.default.createElement(HeartIcon, { colourFill: themeContext.theme_vars.colours.action })),
|
|
30445
30943
|
favourite ? React__default.default.createElement(React__default.default.Fragment, null, "Remove from shortlist") : React__default.default.createElement(React__default.default.Fragment, null, "Add to shortlist")));
|
|
30446
30944
|
};
|
|
@@ -30509,7 +31007,7 @@ var getIcon = function (profile) {
|
|
|
30509
31007
|
|
|
30510
31008
|
var DirectoryService = function (_a) {
|
|
30511
31009
|
var _b, _c, _d, _e;
|
|
30512
|
-
var id = _a.id, name = _a.name, accreditations = _a.accreditations, _f = _a.ageInMonths, ageInMonths = _f === void 0 ? false : _f, description = _a.description, descriptionElement = _a.descriptionElement, eligibilitys = _a.eligibilitys, email = _a.email, fees = _a.fees, languages = _a.languages, organization = _a.organization, regular_schedules = _a.regular_schedules, contacts = _a.contacts, service_areas = _a.service_areas, service_at_locations = _a.service_at_locations, service_social_profiles = _a.service_social_profiles, service_taxonomys = _a.service_taxonomys, taxonomiesToShow = _a.taxonomiesToShow, url = _a.url, uploads = _a.uploads, shortListPath = _a.shortListPath;
|
|
31010
|
+
var id = _a.id, name = _a.name, accreditations = _a.accreditations, _f = _a.ageInMonths, ageInMonths = _f === void 0 ? false : _f, description = _a.description, descriptionElement = _a.descriptionElement, eligibilitys = _a.eligibilitys, email = _a.email, fees = _a.fees, languages = _a.languages, organization = _a.organization, regular_schedules = _a.regular_schedules, contacts = _a.contacts, service_areas = _a.service_areas, service_at_locations = _a.service_at_locations, service_social_profiles = _a.service_social_profiles, service_taxonomys = _a.service_taxonomys, taxonomiesToShow = _a.taxonomiesToShow, url = _a.url, websiteUrlTitle = _a.websiteUrlTitle, uploads = _a.uploads, shortListPath = _a.shortListPath;
|
|
30513
31011
|
var labelLetters = ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L'];
|
|
30514
31012
|
var _g = React.useState(false), notServer = _g[0], setNotServer = _g[1];
|
|
30515
31013
|
var themeContext = React.useContext(styled.ThemeContext);
|
|
@@ -30533,7 +31031,9 @@ var DirectoryService = function (_a) {
|
|
|
30533
31031
|
" Shortlist (",
|
|
30534
31032
|
favourites.length,
|
|
30535
31033
|
")")),
|
|
30536
|
-
React__default.default.createElement(DirectoryAddToShortList, { id: id, name: name, snippet: transformSnippet(description, 350), email: email, website: url, phone: (_c = (_b = contacts === null || contacts === void 0 ? void 0 : contacts[0]) === null || _b === void 0 ? void 0 : _b.phones) === null || _c === void 0 ? void 0 : _c.flatMap(function (phone) { return phone.number; }).join(', ')
|
|
31034
|
+
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) {
|
|
31035
|
+
return location.physical_addresses;
|
|
31036
|
+
}), fees: fees })))))),
|
|
30537
31037
|
service_at_locations.filter(function (location) {
|
|
30538
31038
|
return location.is_visitable != false;
|
|
30539
31039
|
}).length > 0 && (React__default.default.createElement(Column, { small: "full", medium: "full", large: "full", classes: "striped-column" },
|
|
@@ -30548,7 +31048,7 @@ var DirectoryService = function (_a) {
|
|
|
30548
31048
|
.filter(function (item) { return item !== '' && item !== address.id; })
|
|
30549
31049
|
.join(' <br />'),
|
|
30550
31050
|
} }),
|
|
30551
|
-
React__default.default.createElement(Button$4, { url: "https://google.com/maps/dir//".concat(location.latitude, ",").concat(location.longitude), text: "Get directions" }))); }),
|
|
31051
|
+
location.latitude && location.longitude && (React__default.default.createElement(Button$4, { url: "https://google.com/maps/dir//".concat(location.latitude, ",").concat(location.longitude), text: "Get directions" })))); }),
|
|
30552
31052
|
(location === null || location === void 0 ? void 0 : location.accessibility_for_disabilities.length) > 0 && (React__default.default.createElement(React__default.default.Fragment, null,
|
|
30553
31053
|
React__default.default.createElement(Heading, { level: 3, text: "Other facilities on site" }),
|
|
30554
31054
|
React__default.default.createElement("ul", null, location.accessibility_for_disabilities.map(function (accessibility) { return (React__default.default.createElement("li", { key: accessibility.id }, accessibility.accessibility)); })))))); })),
|
|
@@ -30580,7 +31080,7 @@ var DirectoryService = function (_a) {
|
|
|
30580
31080
|
React__default.default.createElement(MapLink, { href: "https://www.google.com/maps/search/?api=1&query=".concat(service_at_locations[0].latitude, "%2C").concat(service_at_locations[0].longitude) }, "View in Google Maps"))))))),
|
|
30581
31081
|
(email || url || (contacts === null || contacts === void 0 ? void 0 : contacts.length) > 0) && (React__default.default.createElement(Column, { small: "full", medium: "full", large: "full", classes: "striped-column" },
|
|
30582
31082
|
React__default.default.createElement(Heading, { level: 2, text: "How to contact this service" }),
|
|
30583
|
-
React__default.default.createElement(ServiceContact, { email: email, website: url, contacts: contacts }))),
|
|
31083
|
+
React__default.default.createElement(ServiceContact, { email: email, website: url, websiteTitle: websiteUrlTitle, contacts: contacts }))),
|
|
30584
31084
|
React__default.default.createElement(Column, { small: "full", medium: "full", large: "full", classes: "striped-column" },
|
|
30585
31085
|
React__default.default.createElement(Heading, { level: 2, text: "Description" }),
|
|
30586
31086
|
React__default.default.createElement("div", null,
|
|
@@ -30593,7 +31093,7 @@ var DirectoryService = function (_a) {
|
|
|
30593
31093
|
React__default.default.createElement("table", null,
|
|
30594
31094
|
React__default.default.createElement("thead", null,
|
|
30595
31095
|
React__default.default.createElement("tr", null,
|
|
30596
|
-
React__default.default.createElement("th", { scope: "col" }, "
|
|
31096
|
+
React__default.default.createElement("th", { scope: "col" }, "Opening days"),
|
|
30597
31097
|
React__default.default.createElement("th", { scope: "col" }, "Opens"),
|
|
30598
31098
|
React__default.default.createElement("th", { scope: "col" }, "Closes"))),
|
|
30599
31099
|
React__default.default.createElement("tbody", null, regular_schedules === null || regular_schedules === void 0 ? void 0 : regular_schedules.map(function (schedule, scheduleIndex) { return (React__default.default.createElement("tr", { key: scheduleIndex },
|
|
@@ -30659,7 +31159,7 @@ styled__default.default.div`
|
|
|
30659
31159
|
color: ${(props) => props.theme.theme_vars.colours.grey_dark};
|
|
30660
31160
|
`;
|
|
30661
31161
|
|
|
30662
|
-
const ButtonContainer$
|
|
31162
|
+
const ButtonContainer$2 = styled__default.default.div`
|
|
30663
31163
|
display: flex;
|
|
30664
31164
|
align-items: end;
|
|
30665
31165
|
padding-bottom: 0;
|
|
@@ -30667,23 +31167,49 @@ const ButtonContainer$1 = styled__default.default.div`
|
|
|
30667
31167
|
`;
|
|
30668
31168
|
|
|
30669
31169
|
const Button$1 = styled__default.default.button`
|
|
30670
|
-
|
|
30671
|
-
|
|
30672
|
-
|
|
30673
|
-
|
|
30674
|
-
|
|
30675
|
-
|
|
30676
|
-
|
|
30677
|
-
|
|
31170
|
+
border: ${(props) => (props.$isWarning ? `3px` : `1px`)} solid
|
|
31171
|
+
${(props) => (props.$isWarning ? props.theme.theme_vars.colours.negative : props.theme.theme_vars.colours.white)};
|
|
31172
|
+
background: ${(props) =>
|
|
31173
|
+
props.$isWarning ? props.theme.theme_vars.colours.white : props.theme.theme_vars.colours.action};
|
|
31174
|
+
color: ${(props) =>
|
|
31175
|
+
props.$isWarning ? props.theme.theme_vars.colours.negative : props.theme.theme_vars.colours.white};
|
|
31176
|
+
padding: ${(props) => props.theme.theme_vars.spacingSizes.small};
|
|
31177
|
+
cursor: pointer;
|
|
31178
|
+
border-radius: ${(props) => props.theme.theme_vars.border_radius};
|
|
31179
|
+
min-height: 42px;
|
|
31180
|
+
margin-right: ${(props) => props.theme.theme_vars.spacingSizes.medium};
|
|
31181
|
+
font-weight: bold;
|
|
30678
31182
|
|
|
30679
|
-
|
|
30680
|
-
|
|
30681
|
-
|
|
31183
|
+
&:hover {
|
|
31184
|
+
background: ${(props) =>
|
|
31185
|
+
props.$isWarning ? props.theme.theme_vars.colours.action_light : props.theme.theme_vars.colours.action_dark};
|
|
31186
|
+
color: ${(props) =>
|
|
31187
|
+
props.$isWarning ? props.theme.theme_vars.colours.action_dark : props.theme.theme_vars.colours.white};
|
|
31188
|
+
text-decoration: underline;
|
|
31189
|
+
text-decoration-style: dotted;
|
|
31190
|
+
}
|
|
30682
31191
|
|
|
30683
|
-
|
|
30684
|
-
|
|
30685
|
-
|
|
30686
|
-
|
|
31192
|
+
&:focus {
|
|
31193
|
+
${(props) => props.theme.linkStylesFocus}
|
|
31194
|
+
}
|
|
31195
|
+
|
|
31196
|
+
&:active {
|
|
31197
|
+
${(props) => props.theme.linkStylesActive}
|
|
31198
|
+
}
|
|
31199
|
+
|
|
31200
|
+
${(props) => {
|
|
31201
|
+
if (props.size === 'large') {
|
|
31202
|
+
return `
|
|
31203
|
+
font-size: 16px;
|
|
31204
|
+
padding: 14px 24px;
|
|
31205
|
+
`;
|
|
31206
|
+
}
|
|
31207
|
+
}}
|
|
31208
|
+
|
|
31209
|
+
${(props) =>
|
|
31210
|
+
props.$isWarning && props.size === 'large' && `
|
|
31211
|
+
padding: 12px 24px;
|
|
31212
|
+
`}
|
|
30687
31213
|
`;
|
|
30688
31214
|
|
|
30689
31215
|
const ButtonText$1 = styled__default.default.span`
|
|
@@ -30763,28 +31289,29 @@ const Legend$1 = styled__default.default.legend`
|
|
|
30763
31289
|
`;
|
|
30764
31290
|
|
|
30765
31291
|
const LegendButton = styled__default.default.button`
|
|
30766
|
-
|
|
30767
|
-
|
|
30768
|
-
|
|
30769
|
-
|
|
30770
|
-
|
|
30771
|
-
|
|
30772
|
-
|
|
30773
|
-
|
|
30774
|
-
|
|
30775
|
-
|
|
30776
|
-
|
|
30777
|
-
|
|
30778
|
-
|
|
30779
|
-
|
|
30780
|
-
|
|
30781
|
-
|
|
30782
|
-
|
|
30783
|
-
|
|
30784
|
-
|
|
30785
|
-
|
|
30786
|
-
|
|
30787
|
-
|
|
31292
|
+
position: relative;
|
|
31293
|
+
background: none;
|
|
31294
|
+
border: none;
|
|
31295
|
+
color: ${(props) => props.theme.theme_vars.colours.action};
|
|
31296
|
+
width: 100%;
|
|
31297
|
+
white-space: normal;
|
|
31298
|
+
cursor: pointer;
|
|
31299
|
+
text-align: left;
|
|
31300
|
+
padding-right: 30px;
|
|
31301
|
+
padding-top: ${(props) => props.theme.theme_vars.spacingSizes.small};
|
|
31302
|
+
padding-bottom: ${(props) => props.theme.theme_vars.spacingSizes.small};
|
|
31303
|
+
${(props) => props.theme.theme_vars.h4}
|
|
31304
|
+
${(props) => props.theme.linkStyles}
|
|
31305
|
+
&:hover {
|
|
31306
|
+
${(props) => props.theme.linkStylesHover}
|
|
31307
|
+
}
|
|
31308
|
+
&:focus {
|
|
31309
|
+
${(props) => props.theme.linkStylesFocus}
|
|
31310
|
+
}
|
|
31311
|
+
&:active {
|
|
31312
|
+
${(props) => props.theme.linkStylesActive}
|
|
31313
|
+
}
|
|
31314
|
+
margin: 0;
|
|
30788
31315
|
`;
|
|
30789
31316
|
|
|
30790
31317
|
const AccordionIcon = styled__default.default.span`
|
|
@@ -30893,6 +31420,14 @@ const MapToggle = styled__default.default.button`
|
|
|
30893
31420
|
&:active {
|
|
30894
31421
|
${(props) => props.theme.linkStylesActive}
|
|
30895
31422
|
}
|
|
31423
|
+
${(props) => {
|
|
31424
|
+
if (props.size === 'large') {
|
|
31425
|
+
return `
|
|
31426
|
+
font-size: 16px;
|
|
31427
|
+
padding: 14px 24px;
|
|
31428
|
+
`;
|
|
31429
|
+
}
|
|
31430
|
+
}}
|
|
30896
31431
|
`;
|
|
30897
31432
|
|
|
30898
31433
|
const Favourites = styled__default.default.a`
|
|
@@ -31098,24 +31633,24 @@ var RadioCheckboxInput = function (_a) {
|
|
|
31098
31633
|
};
|
|
31099
31634
|
|
|
31100
31635
|
var DirectoryServiceList = function (_a) {
|
|
31101
|
-
var directoryPath = _a.directoryPath, shortListPath = _a.shortListPath, services = _a.services, _b = _a.search, search = _b === void 0 ? '' : _b, setSearch = _a.setSearch, _c = _a.postcode, postcode =
|
|
31102
|
-
var
|
|
31103
|
-
var
|
|
31104
|
-
var
|
|
31105
|
-
var
|
|
31106
|
-
var
|
|
31107
|
-
var
|
|
31108
|
-
var
|
|
31109
|
-
var
|
|
31636
|
+
var directoryPath = _a.directoryPath, shortListPath = _a.shortListPath, services = _a.services, _b = _a.search, search = _b === void 0 ? '' : _b, setSearch = _a.setSearch, _c = _a.proximity, proximity = _c === void 0 ? 2 : _c, _d = _a.showPostcodeSearch, showPostcodeSearch = _d === void 0 ? true : _d, _e = _a.postcode, postcode = _e === void 0 ? '' : _e, setPostcode = _a.setPostcode, _f = _a.totalResults, totalResults = _f === void 0 ? 0 : _f, _g = _a.pageNumber, pageNumber = _g === void 0 ? 1 : _g, setPageNumber = _a.setPageNumber, _h = _a.perPage, perPage = _h === void 0 ? 5 : _h, _j = _a.extractLength, extractLength = _j === void 0 ? 300 : _j, _k = _a.categories, categories = _k === void 0 ? [] : _k, setCategories = _a.setCategories, _l = _a.minimumAge, minimumAge = _l === void 0 ? undefined : _l, setMinimumAge = _a.setMinimumAge, _m = _a.maximumAge, maximumAge = _m === void 0 ? undefined : _m, setMaximumAge = _a.setMaximumAge, _o = _a.mapCenter, mapCenter = _o === void 0 ? '52.40410666556486,-0.7237065995821512' : _o, _p = _a.mapZoom, mapZoom = _p === void 0 ? 9 : _p, _q = _a.isLoading, isLoading = _q === void 0 ? false : _q, _r = _a.ageInMonths, ageInMonths = _r === void 0 ? false : _r, _s = _a.hasDocuments, hasDocuments = _s === void 0 ? false : _s, _t = _a.isError, isError = _t === void 0 ? false : _t;
|
|
31637
|
+
var _u = useLocalStorage("".concat(directoryPath.replace(/\//g, ''), "-accordion"), []), accordions = _u[0], setAccordions = _u[1];
|
|
31638
|
+
var _v = useLocalStorage("".concat(directoryPath.replace(/\//g, ''), "-accordion-all"), true), openAll = _v[0], setOpenAll = _v[1];
|
|
31639
|
+
var _w = useLocalStorage("".concat(directoryPath.replace(/\//g, ''), "-show-map"), false), showMap = _w[0], setShowMap = _w[1];
|
|
31640
|
+
var _x = React.useState(false), showFilters = _x[0], setShowFilters = _x[1];
|
|
31641
|
+
var _y = useDirectoryShortListContext(), _z = _y.favourites, favourites = _z.favourites; _z.setFavourites; _y.toggleFavourites; _y.isFavourite;
|
|
31642
|
+
var _0 = React.useState(false), notServer = _0[0], setNotServer = _0[1];
|
|
31643
|
+
var _1 = React.useState(search), searchTerm = _1[0], setSearchTerm = _1[1];
|
|
31644
|
+
var _2 = React.useState(postcode), postcodeSearch = _2[0], setPostcodeSearch = _2[1];
|
|
31110
31645
|
var themeContext = React.useContext(styled.ThemeContext);
|
|
31111
|
-
var
|
|
31646
|
+
var _3 = React.useState(false), filtersActive = _3[0], setFiltersActive = _3[1];
|
|
31112
31647
|
React.useEffect(function () {
|
|
31113
31648
|
setNotServer(true);
|
|
31114
31649
|
setFiltersActive(hasActiveFilters());
|
|
31115
31650
|
}, []);
|
|
31116
31651
|
React.useEffect(function () {
|
|
31117
31652
|
setFiltersActive(hasActiveFilters());
|
|
31118
|
-
}, [minimumAge, maximumAge, categories]);
|
|
31653
|
+
}, [minimumAge, maximumAge, categories, search, postcode]);
|
|
31119
31654
|
if (accordions.length === 0) {
|
|
31120
31655
|
var tempAccordions_1 = [];
|
|
31121
31656
|
categories === null || categories === void 0 ? void 0 : categories.forEach(function () {
|
|
@@ -31193,7 +31728,7 @@ var DirectoryServiceList = function (_a) {
|
|
|
31193
31728
|
lat: parseFloat((_a = service.service_at_locations[0]) === null || _a === void 0 ? void 0 : _a.latitude),
|
|
31194
31729
|
lng: parseFloat((_b = service.service_at_locations[0]) === null || _b === void 0 ? void 0 : _b.longitude),
|
|
31195
31730
|
label: labelLetters[index],
|
|
31196
|
-
title: "<a href
|
|
31731
|
+
title: "<a href=".concat(service.id, ">").concat(service.name, "</a>"),
|
|
31197
31732
|
};
|
|
31198
31733
|
}),
|
|
31199
31734
|
};
|
|
@@ -31210,7 +31745,9 @@ var DirectoryServiceList = function (_a) {
|
|
|
31210
31745
|
}
|
|
31211
31746
|
};
|
|
31212
31747
|
var hasActiveFilters = function () {
|
|
31213
|
-
return (
|
|
31748
|
+
return (search !== '' ||
|
|
31749
|
+
postcode !== '' ||
|
|
31750
|
+
maximumAge !== '' ||
|
|
31214
31751
|
minimumAge !== '' ||
|
|
31215
31752
|
categories.some(function (category) {
|
|
31216
31753
|
return category.options.some(function (option) {
|
|
@@ -31226,21 +31763,23 @@ var DirectoryServiceList = function (_a) {
|
|
|
31226
31763
|
React__default.default.createElement(Row$1, null,
|
|
31227
31764
|
React__default.default.createElement(Column, { small: "full", medium: "one-half", large: "one-third" },
|
|
31228
31765
|
React__default.default.createElement(Label$1, { htmlFor: "directorySearch" }, "What are you looking for?"),
|
|
31229
|
-
React__default.default.createElement(HintText, { text: "Enter
|
|
31766
|
+
React__default.default.createElement(HintText, { text: "Enter the name of a specific organisation" }),
|
|
31230
31767
|
React__default.default.createElement(Input, { name: "directorySearch", type: "text", defaultValue: searchTerm, id: "directorySearch", onChange: function (e) {
|
|
31231
31768
|
setSearchTerm(e.target.value);
|
|
31232
31769
|
} })),
|
|
31233
|
-
React__default.default.createElement(Column, { small: "full", medium: "one-half", large: "one-third" },
|
|
31770
|
+
showPostcodeSearch && (React__default.default.createElement(Column, { small: "full", medium: "one-half", large: "one-third" },
|
|
31234
31771
|
React__default.default.createElement(Label$1, { htmlFor: "postcode" }, "Postcode (optional)"),
|
|
31235
|
-
React__default.default.createElement(HintText, { text: "Enter a postcode" }),
|
|
31236
|
-
React__default.default.createElement(Input, { name: "postcode", type: "text", defaultValue: postcodeSearch, id: "postcode", onChange: function (e) { return setPostcodeSearch(e.target.value); }, autocomplete: "postal-code" })),
|
|
31772
|
+
React__default.default.createElement(HintText, { text: "Enter a postcode to see results within ".concat(proximity, " miles") }),
|
|
31773
|
+
React__default.default.createElement(Input, { name: "postcode", type: "text", defaultValue: postcodeSearch, id: "postcode", onChange: function (e) { return setPostcodeSearch(e.target.value); }, autocomplete: "postal-code" }))),
|
|
31237
31774
|
React__default.default.createElement(Column, { small: "full", medium: "one-half", large: "one-third" },
|
|
31238
|
-
React__default.default.createElement(ButtonContainer$
|
|
31239
|
-
React__default.default.createElement(Button$1, { onClick: submitSearch, type: "submit" },
|
|
31775
|
+
React__default.default.createElement(ButtonContainer$2, null,
|
|
31776
|
+
React__default.default.createElement(Button$1, { size: "large", onClick: submitSearch, type: "submit" },
|
|
31240
31777
|
React__default.default.createElement(ButtonText$1, null, "Search"),
|
|
31241
|
-
React__default.default.createElement(IconDownload, { colourFill: "#fff" }))
|
|
31778
|
+
React__default.default.createElement(IconDownload, { colourFill: "#fff" })),
|
|
31779
|
+
filtersActive && (React__default.default.createElement(Button$1, { size: "large", onClick: clearSearch, type: "button", "$isWarning": true },
|
|
31780
|
+
React__default.default.createElement(ButtonText$1, null, "Clear search"))))),
|
|
31242
31781
|
hasDocuments && (React__default.default.createElement(Column, { small: "full", medium: "full", large: "full" },
|
|
31243
|
-
React__default.default.createElement(Button$4, { url: "".concat(directoryPath, "/documents?search=").concat(searchTerm), text: "View documents and resources", primary: false }))))))),
|
|
31782
|
+
React__default.default.createElement(Button$4, { url: "".concat(directoryPath, "/documents?search=").concat(searchTerm), text: "View documents and resources", primary: false, size: "large" }))))))),
|
|
31244
31783
|
React__default.default.createElement(Column, { small: "full", medium: "one-third", large: "one-third" },
|
|
31245
31784
|
React__default.default.createElement(FilterToggle, { type: "button", onClick: function (e) { return setShowFilters(!showFilters); } }, showFilters ? "Hide Filters" : "Show Filters"),
|
|
31246
31785
|
React__default.default.createElement(FilterContainer, { "$showFilters": showFilters },
|
|
@@ -31276,14 +31815,16 @@ var DirectoryServiceList = function (_a) {
|
|
|
31276
31815
|
React__default.default.createElement(Legend$1, null,
|
|
31277
31816
|
React__default.default.createElement(LegendButton, { onClick: function (e) { return toggleAccordion(categoryIndex + 1); }, type: "button" },
|
|
31278
31817
|
category.label,
|
|
31279
|
-
React__default.default.createElement(AccordionIcon, { isOpen: accordions[categoryIndex + 1] }))),
|
|
31818
|
+
React__default.default.createElement(AccordionIcon, { "$isOpen": accordions[categoryIndex + 1] }))),
|
|
31280
31819
|
React__default.default.createElement(Accordion, { "$isOpen": accordions[categoryIndex + 1] },
|
|
31281
31820
|
React__default.default.createElement(ClearFilter$1, null,
|
|
31282
31821
|
React__default.default.createElement(TextLink$1, { onClick: function (e) { return clearCategory(categoryIndex); } }, "Clear filter")),
|
|
31283
31822
|
category.options.map(function (taxonomy) { return (React__default.default.createElement(Category$2, { key: taxonomy.id },
|
|
31284
31823
|
React__default.default.createElement(RadioCheckboxInput, { name: taxonomy.vocabulary, value: taxonomy.id, label: taxonomy.name, singleSelection: category.singleSelection, checked: taxonomy.checked, onChange: function (e) { return optionChecked(e, categoryIndex, category.singleSelection); } }))); }))))); })))))),
|
|
31285
31824
|
React__default.default.createElement(Column, { small: "full", medium: "two-thirds", large: "two-thirds" },
|
|
31286
|
-
React__default.default.createElement(Row$1, null,
|
|
31825
|
+
React__default.default.createElement(Row$1, null, isError ? (React__default.default.createElement(Column, { small: "full", medium: "full", large: "full" },
|
|
31826
|
+
React__default.default.createElement(AlertBannerService, null,
|
|
31827
|
+
React__default.default.createElement("p", null, "Sorry, there was a problem fetching results. Please try again later.")))) : isLoading ? (React__default.default.createElement(LoadingContainer$1, null,
|
|
31287
31828
|
React__default.default.createElement(LoadingSpinner, null),
|
|
31288
31829
|
React__default.default.createElement("p", null, "Loading"))) : (React__default.default.createElement(React__default.default.Fragment, null,
|
|
31289
31830
|
React__default.default.createElement(Column, { small: "full", medium: "full", large: "full" },
|
|
@@ -31295,7 +31836,7 @@ var DirectoryServiceList = function (_a) {
|
|
|
31295
31836
|
" out of ",
|
|
31296
31837
|
totalResults.toLocaleString())) : (React__default.default.createElement(ResultInfo$1, null, "No results found")),
|
|
31297
31838
|
React__default.default.createElement(FavouritesContainer, null,
|
|
31298
|
-
(services === null || services === void 0 ? void 0 : services.length) > 0 && (React__default.default.createElement(MapToggle, { type: "button", onClick: function (e) { return setShowMap(!showMap); } }, showMap ? "Hide Map" : "Show Map")),
|
|
31839
|
+
(services === null || services === void 0 ? void 0 : services.length) > 0 && (React__default.default.createElement(MapToggle, { type: "button", size: "large", onClick: function (e) { return setShowMap(!showMap); } }, showMap ? "Hide Map" : "Show Map")),
|
|
31299
31840
|
React__default.default.createElement(Favourites, { href: shortListPath },
|
|
31300
31841
|
React__default.default.createElement(HeartIcon, { colourFill: themeContext.theme_vars.colours.action }),
|
|
31301
31842
|
" Shortlist (",
|
|
@@ -31305,14 +31846,14 @@ var DirectoryServiceList = function (_a) {
|
|
|
31305
31846
|
React__default.default.createElement(Pagination, { currentPage: pageNumber, totalResults: totalResults, resultsPerPage: perPage, postTo: directoryPath, buttonClickOverride: setPageNumber })),
|
|
31306
31847
|
React__default.default.createElement(Column, { small: "full", medium: "full", large: "full" }, notServer && React__default.default.createElement(React__default.default.Fragment, null, (services === null || services === void 0 ? void 0 : services.length) > 0 && showMap && React__default.default.createElement(DirectoryMap, { mapProps: mapProps }))),
|
|
31307
31848
|
services.map(function (service, index) {
|
|
31308
|
-
var _a, _b, _c, _d, _e, _f;
|
|
31849
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
31309
31850
|
var snippet = transformSnippet(service.description, extractLength);
|
|
31310
31851
|
return (React__default.default.createElement(Column, { small: "full", medium: "full", large: "full", key: service.id },
|
|
31311
31852
|
React__default.default.createElement(ServiceContainer, { "$resultNumber": index },
|
|
31312
31853
|
React__default.default.createElement(Row$1, null,
|
|
31313
31854
|
React__default.default.createElement(Column, { small: "full", medium: "full", large: "full" },
|
|
31314
31855
|
React__default.default.createElement(ServiceHeader, null,
|
|
31315
|
-
React__default.default.createElement(ServiceLink$1, { href: "".concat(
|
|
31856
|
+
React__default.default.createElement(ServiceLink$1, { href: "".concat(service.id) }, service.name),
|
|
31316
31857
|
showMap && (React__default.default.createElement(MarkerContainer, null,
|
|
31317
31858
|
React__default.default.createElement("span", null, labelLetters[index]),
|
|
31318
31859
|
React__default.default.createElement(PinIcon, { colourFill: themeContext.theme_vars.colours.action_dark }))))),
|
|
@@ -31328,7 +31869,9 @@ var DirectoryServiceList = function (_a) {
|
|
|
31328
31869
|
' ',
|
|
31329
31870
|
transformAge(eligibility.maximum_age, ageInMonths))); })))),
|
|
31330
31871
|
React__default.default.createElement(Column, { small: "full", medium: "full", large: "full" },
|
|
31331
|
-
React__default.default.createElement(DirectoryAddToShortList, { id: service.id, name: service.name, snippet: snippet, email: service.email, website: service.url, phone: (_f = (_e = (_d = service.contacts) === null || _d === void 0 ? void 0 : _d[0]) === null || _e === void 0 ? void 0 : _e.phones) === null || _f === void 0 ? void 0 : _f.flatMap(function (phone) { return phone.number; }).join(', ')
|
|
31872
|
+
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) {
|
|
31873
|
+
return location.physical_addresses;
|
|
31874
|
+
}), fees: service.fees }))))));
|
|
31332
31875
|
}),
|
|
31333
31876
|
React__default.default.createElement(Column, { small: "full", medium: "full", large: "full" },
|
|
31334
31877
|
React__default.default.createElement(Pagination, { currentPage: pageNumber, totalResults: totalResults, resultsPerPage: perPage, postTo: directoryPath, buttonClickOverride: setPageNumber })))))))));
|
|
@@ -31336,71 +31879,96 @@ var DirectoryServiceList = function (_a) {
|
|
|
31336
31879
|
|
|
31337
31880
|
const Container$1 = styled__default.default.div`
|
|
31338
31881
|
display: block;
|
|
31882
|
+
|
|
31883
|
+
@media print {
|
|
31884
|
+
font-size: ${(props) => props.theme.theme_vars.fontSizes.extra_small} !important;
|
|
31885
|
+
[data-testid='Column'] {
|
|
31886
|
+
padding: ${(props) => props.theme.theme_vars.spacingSizes.extra_small} !important;
|
|
31887
|
+
}
|
|
31888
|
+
|
|
31889
|
+
.favourite-outer:nth-of-type(2n + 1) {
|
|
31890
|
+
page-break-after: always;
|
|
31891
|
+
}
|
|
31892
|
+
|
|
31893
|
+
.favourite-outer:last-of-type {
|
|
31894
|
+
page-break-after: avoid !important;
|
|
31895
|
+
}
|
|
31896
|
+
}
|
|
31339
31897
|
`;
|
|
31340
31898
|
|
|
31341
31899
|
const ServiceLink = styled__default.default.a`
|
|
31342
|
-
|
|
31343
|
-
|
|
31344
|
-
|
|
31345
|
-
|
|
31346
|
-
|
|
31347
|
-
|
|
31348
|
-
|
|
31349
|
-
|
|
31350
|
-
|
|
31351
|
-
|
|
31352
|
-
|
|
31353
|
-
|
|
31354
|
-
|
|
31900
|
+
display: block;
|
|
31901
|
+
margin-bottom: ${(props) => props.theme.theme_vars.spacingSizes.small};
|
|
31902
|
+
${(props) => props.theme.theme_vars.h4}
|
|
31903
|
+
${(props) => props.theme.linkStyles}
|
|
31904
|
+
&:hover {
|
|
31905
|
+
${(props) => props.theme.linkStylesHover}
|
|
31906
|
+
}
|
|
31907
|
+
&:focus {
|
|
31908
|
+
${(props) => props.theme.linkStylesFocus}
|
|
31909
|
+
}
|
|
31910
|
+
&:active {
|
|
31911
|
+
${(props) => props.theme.linkStylesActive}
|
|
31912
|
+
}
|
|
31355
31913
|
|
|
31356
|
-
|
|
31357
|
-
|
|
31358
|
-
|
|
31359
|
-
|
|
31914
|
+
@media print {
|
|
31915
|
+
color: ${(props) => props.theme.theme_vars.colours.black} !important;
|
|
31916
|
+
text-decoration: none !important;
|
|
31917
|
+
font-size: ${(props) => props.theme.theme_vars.fontSizes.small};
|
|
31918
|
+
margin-bottom: 0;
|
|
31919
|
+
}
|
|
31360
31920
|
`;
|
|
31361
31921
|
|
|
31362
31922
|
const PrintLink = styled__default.default.div`
|
|
31363
|
-
p {
|
|
31364
|
-
display: none;
|
|
31365
|
-
}
|
|
31366
|
-
|
|
31367
|
-
@media print {
|
|
31368
31923
|
p {
|
|
31369
|
-
|
|
31924
|
+
display: none;
|
|
31370
31925
|
}
|
|
31926
|
+
|
|
31927
|
+
@media print {
|
|
31928
|
+
p {
|
|
31929
|
+
display: none;
|
|
31930
|
+
margin-bottom: 0 !important;
|
|
31931
|
+
}
|
|
31932
|
+
}
|
|
31933
|
+
`;
|
|
31934
|
+
|
|
31935
|
+
const SnippetContainer = styled__default.default.div`
|
|
31936
|
+
@media print {
|
|
31937
|
+
display: flex;
|
|
31938
|
+
flex-wrap: nowrap;
|
|
31371
31939
|
}
|
|
31372
31940
|
`;
|
|
31373
31941
|
|
|
31374
31942
|
const QRCodeContainer = styled__default.default.div`
|
|
31375
|
-
|
|
31376
|
-
|
|
31377
|
-
display: none;
|
|
31378
|
-
float: right;
|
|
31943
|
+
max-width: 80px;
|
|
31944
|
+
display: none;
|
|
31379
31945
|
|
|
31380
|
-
|
|
31381
|
-
|
|
31382
|
-
|
|
31946
|
+
@media print {
|
|
31947
|
+
display: block;
|
|
31948
|
+
margin-left: ${(props) => props.theme.theme_vars.spacingSizes.small};
|
|
31949
|
+
}
|
|
31383
31950
|
`;
|
|
31384
31951
|
|
|
31385
31952
|
const FavouriteContainer = styled__default.default.div`
|
|
31386
|
-
|
|
31387
|
-
|
|
31388
|
-
|
|
31389
|
-
|
|
31390
|
-
|
|
31391
|
-
|
|
31392
|
-
|
|
31393
|
-
|
|
31394
|
-
|
|
31953
|
+
background: ${(props) =>
|
|
31954
|
+
props.theme.cardinal_name === 'north'
|
|
31955
|
+
? props.theme.theme_vars.colours.white
|
|
31956
|
+
: props.theme.theme_vars.colours.grey_light};
|
|
31957
|
+
box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.08);
|
|
31958
|
+
transition: box-shadow 0.3s ease;
|
|
31959
|
+
border-bottom: 5px solid ${(props) => props.theme.theme_vars.colours.action};
|
|
31960
|
+
border-radius: ${(props) => props.theme.theme_vars.border_radius};
|
|
31961
|
+
padding: ${(props) => props.theme.theme_vars.spacingSizes.medium};
|
|
31395
31962
|
|
|
31396
|
-
|
|
31397
|
-
|
|
31398
|
-
|
|
31399
|
-
|
|
31400
|
-
|
|
31963
|
+
@media print {
|
|
31964
|
+
box-shadow: none;
|
|
31965
|
+
border: 1px solid ${(props) => props.theme.theme_vars.colours.grey};
|
|
31966
|
+
background: none;
|
|
31967
|
+
padding: 0 ${(props) => props.theme.theme_vars.spacingSizes.small};
|
|
31968
|
+
}
|
|
31401
31969
|
`;
|
|
31402
31970
|
|
|
31403
|
-
const
|
|
31971
|
+
const ButtonContainer$1 = styled__default.default.div`
|
|
31404
31972
|
display: flex;
|
|
31405
31973
|
justify-content: flex-end;
|
|
31406
31974
|
|
|
@@ -31409,7 +31977,7 @@ const PrintContainer = styled__default.default.div`
|
|
|
31409
31977
|
}
|
|
31410
31978
|
`;
|
|
31411
31979
|
|
|
31412
|
-
const
|
|
31980
|
+
const ActionButton = styled__default.default.button`
|
|
31413
31981
|
border: 2px solid ${(props) => props.theme.theme_vars.colours.action};
|
|
31414
31982
|
border-radius: ${(props) => props.theme.theme_vars.border_radius};
|
|
31415
31983
|
background: ${(props) => props.theme.theme_vars.colours.action};
|
|
@@ -31421,6 +31989,7 @@ const PrintButton = styled__default.default.button`
|
|
|
31421
31989
|
flex-direction: row;
|
|
31422
31990
|
justify-content: flex-start;
|
|
31423
31991
|
align-items: center;
|
|
31992
|
+
margin-left: ${(props) => props.theme.theme_vars.spacingSizes.medium};
|
|
31424
31993
|
&:hover {
|
|
31425
31994
|
${(props) => props.theme.linkStylesHover}
|
|
31426
31995
|
color: ${(props) => props.theme.theme_vars.colours.white};
|
|
@@ -31443,6 +32012,53 @@ const AddContainer = styled__default.default.div`
|
|
|
31443
32012
|
}
|
|
31444
32013
|
`;
|
|
31445
32014
|
|
|
32015
|
+
const SubTitle = styled__default.default.p`
|
|
32016
|
+
font-weight: bold;
|
|
32017
|
+
margin-top: ${(props) => props.theme.theme_vars.spacingSizes.medium};
|
|
32018
|
+
`;
|
|
32019
|
+
|
|
32020
|
+
const ClearShortlistButton = styled__default.default.button`
|
|
32021
|
+
border: 1px solid ${(props) => props.theme.theme_vars.colours.negative};
|
|
32022
|
+
background: ${(props) => props.theme.theme_vars.colours.white};
|
|
32023
|
+
color: ${(props) => props.theme.theme_vars.colours.negative};
|
|
32024
|
+
padding: ${(props) => props.theme.theme_vars.spacingSizes.small};
|
|
32025
|
+
cursor: pointer;
|
|
32026
|
+
border-radius: ${(props) => props.theme.theme_vars.border_radius};
|
|
32027
|
+
min-height: 42px;
|
|
32028
|
+
font-weight: bold;
|
|
32029
|
+
|
|
32030
|
+
&:hover {
|
|
32031
|
+
background: ${(props) => props.theme.theme_vars.colours.action_light};
|
|
32032
|
+
color: ${(props) => props.theme.theme_vars.colours.action_dark};
|
|
32033
|
+
text-decoration: underline;
|
|
32034
|
+
text-decoration-style: dotted;
|
|
32035
|
+
}
|
|
32036
|
+
|
|
32037
|
+
&:focus {
|
|
32038
|
+
${(props) => props.theme.linkStylesFocus}
|
|
32039
|
+
}
|
|
32040
|
+
|
|
32041
|
+
&:active {
|
|
32042
|
+
${(props) => props.theme.linkStylesActive}
|
|
32043
|
+
}
|
|
32044
|
+
`;
|
|
32045
|
+
|
|
32046
|
+
const AddressContainer = styled__default.default.div`
|
|
32047
|
+
display: block;
|
|
32048
|
+
|
|
32049
|
+
@media print {
|
|
32050
|
+
display: none;
|
|
32051
|
+
}
|
|
32052
|
+
`;
|
|
32053
|
+
|
|
32054
|
+
const PrintAddress = styled__default.default.div`
|
|
32055
|
+
display: none;
|
|
32056
|
+
|
|
32057
|
+
@media print {
|
|
32058
|
+
display: block;
|
|
32059
|
+
}
|
|
32060
|
+
`;
|
|
32061
|
+
|
|
31446
32062
|
var lib = {};
|
|
31447
32063
|
|
|
31448
32064
|
var mode$1 = {
|
|
@@ -32802,32 +33418,82 @@ QRCode.defaultProps = defaultProps;
|
|
|
32802
33418
|
var _default = lib.default = QRCode;
|
|
32803
33419
|
|
|
32804
33420
|
var DirectoryShortList = function (_a) {
|
|
32805
|
-
|
|
32806
|
-
var
|
|
32807
|
-
var
|
|
33421
|
+
_a.directoryPath;
|
|
33422
|
+
var _b = useDirectoryShortListContext(), favourites = _b.favourites.favourites, clearShortlist = _b.clearShortlist;
|
|
33423
|
+
var _c = React.useState(false), notServer = _c[0], setNotServer = _c[1];
|
|
32808
33424
|
React.useEffect(function () {
|
|
32809
33425
|
setNotServer(true);
|
|
32810
33426
|
}, []);
|
|
33427
|
+
var confirmClear = function () {
|
|
33428
|
+
if (window.confirm('Are you sure you want to clear your shortlist?')) {
|
|
33429
|
+
clearShortlist();
|
|
33430
|
+
}
|
|
33431
|
+
};
|
|
33432
|
+
var formatAddress = function (address) {
|
|
33433
|
+
return Object.values(address)
|
|
33434
|
+
.filter(function (item) { return item !== '' && item !== address.id && item !== address.country; })
|
|
33435
|
+
.join(', ');
|
|
33436
|
+
};
|
|
33437
|
+
var copyToClipboard = function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
33438
|
+
var data;
|
|
33439
|
+
return __generator(this, function (_b) {
|
|
33440
|
+
switch (_b.label) {
|
|
33441
|
+
case 0:
|
|
33442
|
+
data = favourites.map(function (favourite) {
|
|
33443
|
+
var _a, _b, _c, _d;
|
|
33444
|
+
var address = favourite.addresses.length > 0 ? formatAddress(favourite.addresses[0]) : '';
|
|
33445
|
+
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 ");
|
|
33446
|
+
});
|
|
33447
|
+
_b.label = 1;
|
|
33448
|
+
case 1:
|
|
33449
|
+
_b.trys.push([1, 3, , 4]);
|
|
33450
|
+
return [4 /*yield*/, navigator.clipboard.writeText(data.join('')).then(function () {
|
|
33451
|
+
window.alert('Copied to clipboard');
|
|
33452
|
+
})];
|
|
33453
|
+
case 2:
|
|
33454
|
+
_b.sent();
|
|
33455
|
+
return [3 /*break*/, 4];
|
|
33456
|
+
case 3:
|
|
33457
|
+
_b.sent();
|
|
33458
|
+
window.alert('Unable to copy');
|
|
33459
|
+
return [3 /*break*/, 4];
|
|
33460
|
+
case 4: return [2 /*return*/];
|
|
33461
|
+
}
|
|
33462
|
+
});
|
|
33463
|
+
}); };
|
|
32811
33464
|
return (React__default.default.createElement(Container$1, { "data-testid": "DirectoryShortList" }, notServer && (React__default.default.createElement(Row$1, null, favourites.length > 0 ? (React__default.default.createElement(React__default.default.Fragment, null,
|
|
32812
33465
|
React__default.default.createElement(Column, { small: "full", medium: "full", large: "full" },
|
|
32813
|
-
React__default.default.createElement(
|
|
32814
|
-
React__default.default.createElement(
|
|
32815
|
-
|
|
32816
|
-
|
|
32817
|
-
|
|
32818
|
-
|
|
32819
|
-
|
|
32820
|
-
|
|
32821
|
-
|
|
32822
|
-
React__default.default.createElement(
|
|
32823
|
-
React__default.default.createElement(
|
|
32824
|
-
|
|
32825
|
-
|
|
32826
|
-
|
|
32827
|
-
|
|
32828
|
-
|
|
32829
|
-
|
|
32830
|
-
|
|
33466
|
+
React__default.default.createElement(ButtonContainer$1, null,
|
|
33467
|
+
React__default.default.createElement(ClearShortlistButton, { onClick: confirmClear }, "Clear Shortlist"),
|
|
33468
|
+
React__default.default.createElement(ActionButton, { onClick: copyToClipboard }, "Copy To Clipboard"),
|
|
33469
|
+
React__default.default.createElement(ActionButton, { onClick: function () { return window.print(); } }, "Print Shortlist"))),
|
|
33470
|
+
favourites.map(function (favourite) {
|
|
33471
|
+
var _a, _b;
|
|
33472
|
+
return (React__default.default.createElement(Column, { key: favourite.id, small: "full", medium: "full", large: "full", classes: "favourite-outer" },
|
|
33473
|
+
React__default.default.createElement(FavouriteContainer, null,
|
|
33474
|
+
React__default.default.createElement(Row$1, null,
|
|
33475
|
+
React__default.default.createElement(Column, { small: "full", medium: "full", large: "full" },
|
|
33476
|
+
React__default.default.createElement(ServiceLink, { href: "".concat(favourite.id) }, favourite.name),
|
|
33477
|
+
React__default.default.createElement(PrintLink, null,
|
|
33478
|
+
React__default.default.createElement("p", null, "".concat(favourite.id)))),
|
|
33479
|
+
React__default.default.createElement(Column, { small: "full", medium: "full", large: "one-half" },
|
|
33480
|
+
React__default.default.createElement(SnippetContainer, null,
|
|
33481
|
+
React__default.default.createElement("div", null, favourite.snippet),
|
|
33482
|
+
React__default.default.createElement(QRCodeContainer, null,
|
|
33483
|
+
React__default.default.createElement(_default, { value: "".concat(favourite.id), size: 256, style: { height: 'auto', maxWidth: '100%', width: '100%' }, viewBox: "0 0 256 256" }))),
|
|
33484
|
+
((_a = favourite.addresses) === null || _a === void 0 ? void 0 : _a.length) > 0 && (React__default.default.createElement(React__default.default.Fragment, null,
|
|
33485
|
+
React__default.default.createElement(AddressContainer, null,
|
|
33486
|
+
React__default.default.createElement(SubTitle, null, "Address"),
|
|
33487
|
+
((_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))); })))),
|
|
33488
|
+
React__default.default.createElement(PrintAddress, null,
|
|
33489
|
+
React__default.default.createElement(SummaryList, { terms: [{ term: 'Address', detail: formatAddress(favourite.addresses[0]) }], hasMargin: false }))))),
|
|
33490
|
+
React__default.default.createElement(Column, { small: "full", medium: "full", large: "one-half" },
|
|
33491
|
+
React__default.default.createElement(SummaryList, { terms: transformService(favourite.email, favourite.website, favourite.phone), hasMargin: false }),
|
|
33492
|
+
favourite.fees && (React__default.default.createElement(SummaryList, { terms: [{ term: 'Cost', detail: favourite.fees }], hasMargin: false }))),
|
|
33493
|
+
React__default.default.createElement(Column, { small: "full", medium: "full", large: "full" },
|
|
33494
|
+
React__default.default.createElement(AddContainer, null,
|
|
33495
|
+
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 })))))));
|
|
33496
|
+
}))) : (React__default.default.createElement(Column, { small: "full", medium: "full", large: "full" },
|
|
32831
33497
|
React__default.default.createElement(FavouriteContainer, null,
|
|
32832
33498
|
React__default.default.createElement("p", null, "No items in the shortlist"))))))));
|
|
32833
33499
|
};
|
|
@@ -32962,8 +33628,8 @@ const LoadingContainer = styled__default.default.div`
|
|
|
32962
33628
|
`;
|
|
32963
33629
|
|
|
32964
33630
|
var DirectoryDocumentList = function (_a) {
|
|
32965
|
-
var directoryPath = _a.directoryPath, documents = _a.documents, _b = _a.search, search = _b === void 0 ? '' : _b, setSearch = _a.setSearch, _c = _a.totalResults, totalResults = _c === void 0 ? 0 : _c, _d = _a.pageNumber, pageNumber = _d === void 0 ? 1 : _d, setPageNumber = _a.setPageNumber, _e = _a.perPage, perPage = _e === void 0 ? 10 : _e, categories = _a.categories, setCategories = _a.setCategories, _f = _a.isLoading, isLoading = _f === void 0 ? false : _f;
|
|
32966
|
-
var
|
|
33631
|
+
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;
|
|
33632
|
+
var _h = React.useState(search), searchTerm = _h[0], setSearchTerm = _h[1];
|
|
32967
33633
|
var submitSearch = function (e) {
|
|
32968
33634
|
e.preventDefault();
|
|
32969
33635
|
setSearch(searchTerm);
|
|
@@ -33002,7 +33668,7 @@ var DirectoryDocumentList = function (_a) {
|
|
|
33002
33668
|
React__default.default.createElement(Row$1, null,
|
|
33003
33669
|
React__default.default.createElement(Column, { small: "full", medium: "one-half", large: "one-third" },
|
|
33004
33670
|
React__default.default.createElement(Label, { htmlFor: "directorySearch" }, "What are you looking for?"),
|
|
33005
|
-
React__default.default.createElement(HintText, { text: "Enter
|
|
33671
|
+
React__default.default.createElement(HintText, { text: "Enter the name of a specific organisation" }),
|
|
33006
33672
|
React__default.default.createElement(Input, { name: "directorySearch", type: "text", defaultValue: searchTerm, id: "directorySearch", onChange: function (e) {
|
|
33007
33673
|
setSearchTerm(e.target.value);
|
|
33008
33674
|
} })),
|
|
@@ -33026,7 +33692,9 @@ var DirectoryDocumentList = function (_a) {
|
|
|
33026
33692
|
React__default.default.createElement(RadioCheckboxInput, { name: taxonomy.vocabulary, value: taxonomy.id, label: taxonomy.name, singleSelection: category.singleSelection, checked: taxonomy.checked, onChange: function (e) { return optionChecked(e, categoryIndex, category.singleSelection); } }))); })))); }))),
|
|
33027
33693
|
React__default.default.createElement(Column, { small: "full", medium: "two-thirds", large: "two-thirds" },
|
|
33028
33694
|
React__default.default.createElement(Row$1, null,
|
|
33029
|
-
|
|
33695
|
+
isError ? (React__default.default.createElement(Column, { small: "full", medium: "full", large: "full" },
|
|
33696
|
+
React__default.default.createElement(AlertBannerService, null,
|
|
33697
|
+
React__default.default.createElement("p", null, "Sorry, there was a problem fetching results. Please try again later.")))) : isLoading ? (React__default.default.createElement(LoadingContainer, null,
|
|
33030
33698
|
React__default.default.createElement(LoadingSpinner, null),
|
|
33031
33699
|
React__default.default.createElement("p", null, "Loading"))) : (React__default.default.createElement(React__default.default.Fragment, null,
|
|
33032
33700
|
React__default.default.createElement(Column, { small: "full", medium: "full", large: "full" }, (documents === null || documents === void 0 ? void 0 : documents.length) > 0 ? (React__default.default.createElement(ResultInfo, null,
|
|
@@ -33106,6 +33774,7 @@ exports.PromoBanner = PromoBanner;
|
|
|
33106
33774
|
exports.PromoBlock = PromoBlock;
|
|
33107
33775
|
exports.PromotedLinks = PromotedLinks;
|
|
33108
33776
|
exports.Promotions = Promotions;
|
|
33777
|
+
exports.RoadworksList = RoadworksList;
|
|
33109
33778
|
exports.SearchBox = SearchBox;
|
|
33110
33779
|
exports.SearchResultsList = SearchResultsList;
|
|
33111
33780
|
exports.Searchbar = Searchbar;
|