@nnc-digital/nnc-design-system 1.0.0-alpha9 → 1.0.0-beta2
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 +42 -42
- package/build/index.js +822 -276
- package/build/index.js.map +1 -1
- package/build/index.mjs.js +822 -277
- 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 +21 -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/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/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 +29 -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 +48 -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/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/slices/InquestSchedule/InquestSchedule.storydata.d.ts +1 -0
- package/build/src/library/slices/InquestSchedule/InquestSchedule.types.d.ts +5 -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 +48 -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.mjs.js
CHANGED
|
@@ -3874,7 +3874,7 @@ var Autocomplete = function (_a) {
|
|
|
3874
3874
|
})));
|
|
3875
3875
|
};
|
|
3876
3876
|
|
|
3877
|
-
const Container$
|
|
3877
|
+
const Container$19 = styled.div`
|
|
3878
3878
|
display: block;
|
|
3879
3879
|
`;
|
|
3880
3880
|
|
|
@@ -3959,7 +3959,7 @@ var BackToTop = function (_a) {
|
|
|
3959
3959
|
useEffect(function () {
|
|
3960
3960
|
window.addEventListener('scroll', toggleVisible);
|
|
3961
3961
|
});
|
|
3962
|
-
return (React.createElement(Container$
|
|
3962
|
+
return (React.createElement(Container$19, { "data-testid": "BackToTop" }, isActive && (React.createElement(BackToTopButton, { onClick: scrollToTop, "$visible": visible, "data-testid": "BackToTopButton", type: "button", "aria-label": "Go to the top of the page" },
|
|
3963
3963
|
React.createElement(ChevronIcon, { colourFill: themeContext.theme_vars.colours.white, direction: "up" })))));
|
|
3964
3964
|
};
|
|
3965
3965
|
|
|
@@ -4063,9 +4063,9 @@ var Button$4 = function (_a) {
|
|
|
4063
4063
|
return (React.createElement(StyledButton$1, __assign$2({ className: ["button--".concat(size), mode].join(' ') }, href, { title: title ? title : text, "$colourOverride": colourOverride && colourOverride }, props), text ? text : children));
|
|
4064
4064
|
};
|
|
4065
4065
|
|
|
4066
|
-
var Container$
|
|
4067
|
-
var Label$
|
|
4068
|
-
var VisuallyHiddenLabel = styled(Label$
|
|
4066
|
+
var Container$18 = styled.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"])));
|
|
4067
|
+
var Label$6 = styled.label(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n display: block;\n margin-bottom: 15px;\n"], ["\n display: block;\n margin-bottom: 15px;\n"])));
|
|
4068
|
+
var VisuallyHiddenLabel = styled(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"])));
|
|
4069
4069
|
var BinCollectionButtonStyles = styled.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"])));
|
|
4070
4070
|
var FormContainer$1 = styled.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) {
|
|
4071
4071
|
return props.$isLoading && "\n opacity: 0.5; \n pointer-events: none;\n ";
|
|
@@ -4078,7 +4078,7 @@ styled.div(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n
|
|
|
4078
4078
|
styled.input(templateObject_11 || (templateObject_11 = __makeTemplateObject([""], [""])));
|
|
4079
4079
|
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10, templateObject_11;
|
|
4080
4080
|
|
|
4081
|
-
const Container$
|
|
4081
|
+
const Container$17 = styled.div`
|
|
4082
4082
|
display: flex;
|
|
4083
4083
|
-webkit-flex-direction: row;
|
|
4084
4084
|
-moz-flex-direction: row;
|
|
@@ -4115,7 +4115,7 @@ const ErrorSummary = styled.div`
|
|
|
4115
4115
|
*/
|
|
4116
4116
|
var FormWithLine = function (_a) {
|
|
4117
4117
|
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;
|
|
4118
|
-
return (React.createElement(Container$
|
|
4118
|
+
return (React.createElement(Container$17, null,
|
|
4119
4119
|
React.createElement(Line$1, { "$lineColour": lineColour, "$hideLine": hideLine, "$isError": isError }),
|
|
4120
4120
|
React.createElement(Form, { onSubmit: onSubmit, "$hideLine": hideLine, role: formRole, method: formMethod, url: formURL, "data-testid": "FormWithLine" },
|
|
4121
4121
|
errorSummary && React.createElement(ErrorSummary, null, errorSummary),
|
|
@@ -4193,7 +4193,7 @@ var FormButton = function (_a) {
|
|
|
4193
4193
|
return (React.createElement(StyledButton, __assign$2({ type: type, className: ["button--".concat(size), mode].join(' ') }, props), text));
|
|
4194
4194
|
};
|
|
4195
4195
|
|
|
4196
|
-
const Container$
|
|
4196
|
+
const Container$16 = styled.div`
|
|
4197
4197
|
${(props) => props.theme.fontStyles};
|
|
4198
4198
|
`;
|
|
4199
4199
|
|
|
@@ -4203,7 +4203,7 @@ const hideLabel$1 = (props) => {
|
|
|
4203
4203
|
}
|
|
4204
4204
|
};
|
|
4205
4205
|
|
|
4206
|
-
const Label$
|
|
4206
|
+
const Label$5 = styled.label`
|
|
4207
4207
|
display: block;
|
|
4208
4208
|
margin-bottom: 5px;
|
|
4209
4209
|
${hideLabel$1}
|
|
@@ -4238,8 +4238,8 @@ const Option = styled.option`
|
|
|
4238
4238
|
|
|
4239
4239
|
var DropDownSelect = function (_a) {
|
|
4240
4240
|
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;
|
|
4241
|
-
return (React.createElement(Container$
|
|
4242
|
-
React.createElement(Label$
|
|
4241
|
+
return (React.createElement(Container$16, null,
|
|
4242
|
+
React.createElement(Label$5, { htmlFor: id, "$hideLabel": hideLabel }, label),
|
|
4243
4243
|
React.createElement(Select, { id: id, name: id, onChange: onChange && onChange, defaultValue: selected && selected }, options.map(function (option, i) { return (React.createElement(Option, { key: i, value: option.value }, option.title)); }))));
|
|
4244
4244
|
};
|
|
4245
4245
|
|
|
@@ -4522,7 +4522,7 @@ var BinCollection = function (_a) {
|
|
|
4522
4522
|
useEffect(function () {
|
|
4523
4523
|
seenTitles.current.clear();
|
|
4524
4524
|
}, [calendarEvents]);
|
|
4525
|
-
return (React.createElement(Container$
|
|
4525
|
+
return (React.createElement(Container$18, { "data-testid": "BinCollection" },
|
|
4526
4526
|
React.createElement(FormWithLine, { onSubmit: handleSubmit, isError: isError, lineColour: themeContext.theme_vars.colours.$grey_dark, hideLine: true },
|
|
4527
4527
|
React.createElement(FormContainer$1, { "$isLoading": isLoading },
|
|
4528
4528
|
React.createElement(Heading, { level: 2, text: "Bin collection checker" }),
|
|
@@ -6629,7 +6629,7 @@ var HeadingWithIcon = function (_a) {
|
|
|
6629
6629
|
React.createElement(Heading, { text: text, level: level })));
|
|
6630
6630
|
};
|
|
6631
6631
|
|
|
6632
|
-
const Container$
|
|
6632
|
+
const Container$15 = styled.div`
|
|
6633
6633
|
display: flex;
|
|
6634
6634
|
width: 100%;
|
|
6635
6635
|
min-height: 400px;
|
|
@@ -6653,7 +6653,7 @@ var Map$1 = function (_a) {
|
|
|
6653
6653
|
setMap(new window.google.maps.Map(ref.current, { center: center, zoom: zoom }));
|
|
6654
6654
|
}
|
|
6655
6655
|
}, [ref, map]);
|
|
6656
|
-
return (React.createElement(Container$
|
|
6656
|
+
return (React.createElement(Container$15, { "data-testid": "Map" },
|
|
6657
6657
|
React.createElement("div", { ref: ref }),
|
|
6658
6658
|
React.Children.map(children, function (child) {
|
|
6659
6659
|
if (React.isValidElement(child)) {
|
|
@@ -6677,10 +6677,14 @@ var MapMarker = function (options) {
|
|
|
6677
6677
|
anchor: new google.maps.Point(40, 60),
|
|
6678
6678
|
labelOrigin: new google.maps.Point(21, 25),
|
|
6679
6679
|
};
|
|
6680
|
-
var mergedOptions = __assign$2(__assign$2({}, options), { anchorPoint: new google.maps.Point(-5, -40), icon: icon, label:
|
|
6681
|
-
|
|
6682
|
-
|
|
6683
|
-
|
|
6680
|
+
var mergedOptions = __assign$2(__assign$2({}, options), { anchorPoint: new google.maps.Point(-5, -40), icon: icon, position: options.position, title: options.title, label: options.label ?
|
|
6681
|
+
(typeof options.label === 'string' ?
|
|
6682
|
+
{ text: options.label, color: '#FFFFFF' } : __assign$2(__assign$2({}, options.label), { color: '#FFFFFF' })) : undefined });
|
|
6683
|
+
for (var key in options) {
|
|
6684
|
+
if (key !== 'label' && Object.prototype.hasOwnProperty.call(options, key)) {
|
|
6685
|
+
mergedOptions[key] = options[key];
|
|
6686
|
+
}
|
|
6687
|
+
}
|
|
6684
6688
|
React.useEffect(function () {
|
|
6685
6689
|
if (!marker) {
|
|
6686
6690
|
setMarker(new google.maps.Marker());
|
|
@@ -6710,7 +6714,7 @@ var MapMarker = function (options) {
|
|
|
6710
6714
|
return null;
|
|
6711
6715
|
};
|
|
6712
6716
|
|
|
6713
|
-
const Container$
|
|
6717
|
+
const Container$14 = styled.div`
|
|
6714
6718
|
${(props) => props.theme.fontStyles};
|
|
6715
6719
|
display: block;
|
|
6716
6720
|
border-top: 1px solid ${(props) => props.theme.theme_vars.colours.grey};
|
|
@@ -7491,7 +7495,7 @@ var Pagination = function (_a) {
|
|
|
7491
7495
|
}
|
|
7492
7496
|
};
|
|
7493
7497
|
if (numbers.length > 1) {
|
|
7494
|
-
return (React.createElement(Container$
|
|
7498
|
+
return (React.createElement(Container$14, { "data-testid": "Pagination", role: "navigation", "aria-label": "Pagination" },
|
|
7495
7499
|
currentPage > 1 && (React.createElement(Previous, { onClick: function () { return buttonClick(currentPage - 1); }, title: "Go back a page" }, "Previous")),
|
|
7496
7500
|
React.createElement(NumbersContainer, null, numbers.map(function (v, i) { return (React.createElement(NumberContainer, { key: i },
|
|
7497
7501
|
v === '...' && React.createElement(Ellipsis, null, "..."),
|
|
@@ -7503,7 +7507,7 @@ var Pagination = function (_a) {
|
|
|
7503
7507
|
return null;
|
|
7504
7508
|
};
|
|
7505
7509
|
|
|
7506
|
-
const Container$
|
|
7510
|
+
const Container$13 = styled.div`
|
|
7507
7511
|
${(props) => props.theme.fontStyles};
|
|
7508
7512
|
margin-bottom: 30px;
|
|
7509
7513
|
`;
|
|
@@ -7674,7 +7678,7 @@ var CheckboxListFilter = function (_a) {
|
|
|
7674
7678
|
handleParams('news', [{ key: NewsArticleFilterFields.articleType.queryParamKey, value: articleTypes }], ['page']);
|
|
7675
7679
|
};
|
|
7676
7680
|
var backupLabel = Math.random().toString(36).substring(7);
|
|
7677
|
-
return (React.createElement(Container$
|
|
7681
|
+
return (React.createElement(Container$13, { "data-testid": "CheckboxListFilter" },
|
|
7678
7682
|
React.createElement(Fieldset$2, { "aria-describedby": hintId },
|
|
7679
7683
|
React.createElement(Legend$2, { "$labelHidden": labelHidden, "data-testid": "CheckboxListFilterLegend" }, label),
|
|
7680
7684
|
React.createElement(Hint, { id: hintId, "$hintHidden": hintHidden, "data-testid": "CheckboxListFilterHint" }, hint),
|
|
@@ -7806,7 +7810,7 @@ const PromotedLink$1 = styled.a`
|
|
|
7806
7810
|
${oneColStyles}
|
|
7807
7811
|
`;
|
|
7808
7812
|
|
|
7809
|
-
const Container$
|
|
7813
|
+
const Container$12 = styled.div`
|
|
7810
7814
|
box-sizing: border-box;
|
|
7811
7815
|
display: flex;
|
|
7812
7816
|
flex-wrap: wrap;
|
|
@@ -7829,7 +7833,7 @@ const Container$11 = styled.div`
|
|
|
7829
7833
|
|
|
7830
7834
|
var Row$1 = function (_a) {
|
|
7831
7835
|
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;
|
|
7832
|
-
return (React.createElement(Container$
|
|
7836
|
+
return (React.createElement(Container$12, { "data-testid": "Row", "$hasBorder": hasBorder, "$hasWrap": hasWrap, as: isList ? 'ul' : 'div' }, children));
|
|
7833
7837
|
};
|
|
7834
7838
|
|
|
7835
7839
|
const calculateWidth = (size) => {
|
|
@@ -7879,7 +7883,7 @@ const widths = (props) => {
|
|
|
7879
7883
|
`;
|
|
7880
7884
|
};
|
|
7881
7885
|
|
|
7882
|
-
const Container$
|
|
7886
|
+
const Container$11 = styled.div`
|
|
7883
7887
|
box-sizing: border-box;
|
|
7884
7888
|
display: block;
|
|
7885
7889
|
padding: ${(props) => (props.$hasPadding ? props.theme.theme_vars.spacingSizes.small : `0`)};
|
|
@@ -7890,7 +7894,7 @@ const Container$10 = styled.div`
|
|
|
7890
7894
|
|
|
7891
7895
|
var Column = function (_a) {
|
|
7892
7896
|
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;
|
|
7893
|
-
return (React.createElement(Container$
|
|
7897
|
+
return (React.createElement(Container$11, { "data-testid": "Column", "$small": small, "$medium": medium, "$large": large, "$hasPadding": hasPadding, "$hasBorder": hasBorder, as: isList ? 'li' : 'div', className: classes }, children));
|
|
7894
7898
|
};
|
|
7895
7899
|
|
|
7896
7900
|
var PromotedLinks = function (_a) {
|
|
@@ -7906,7 +7910,7 @@ var PromotedLinks = function (_a) {
|
|
|
7906
7910
|
}
|
|
7907
7911
|
};
|
|
7908
7912
|
|
|
7909
|
-
const Container
|
|
7913
|
+
const Container$10 = styled.div`
|
|
7910
7914
|
display: block;
|
|
7911
7915
|
`;
|
|
7912
7916
|
|
|
@@ -7942,7 +7946,7 @@ const Cookies = styled.button`
|
|
|
7942
7946
|
}
|
|
7943
7947
|
`;
|
|
7944
7948
|
|
|
7945
|
-
const Container
|
|
7949
|
+
const Container$$ = styled.div`
|
|
7946
7950
|
${(props) => props.theme.fontStyles}
|
|
7947
7951
|
background-color: ${(props) => props.theme.theme_vars.colours.grey_light};
|
|
7948
7952
|
padding: ${(props) => props.theme.theme_vars.spacingSizes.medium} 0;
|
|
@@ -7950,6 +7954,8 @@ const Container$_ = styled.div`
|
|
|
7950
7954
|
width: 100%;
|
|
7951
7955
|
display: block;
|
|
7952
7956
|
box-sizing: border-box;
|
|
7957
|
+
position: sticky;
|
|
7958
|
+
z-index: 1;
|
|
7953
7959
|
`;
|
|
7954
7960
|
|
|
7955
7961
|
const CookieHide = styled.button`
|
|
@@ -8143,7 +8149,7 @@ var CookieBanner = function (_a) {
|
|
|
8143
8149
|
// on page load - look for a cookie
|
|
8144
8150
|
useEffect(function () {
|
|
8145
8151
|
checkCookie();
|
|
8146
|
-
});
|
|
8152
|
+
}, []);
|
|
8147
8153
|
var _d = useState(false), showCookieBanner = _d[0], setShowCookieBanner = _d[1];
|
|
8148
8154
|
var _e = useState(false), showCookiesRejectedBanner = _e[0], setShowCookiesRejectedBanner = _e[1];
|
|
8149
8155
|
var _f = useState(false), showCookiesAcceptedBanner = _f[0], setShowCookiesAcceptedBanner = _f[1];
|
|
@@ -8214,18 +8220,18 @@ var CookieBanner = function (_a) {
|
|
|
8214
8220
|
hideCookiesAcceptedConfirmationBanner();
|
|
8215
8221
|
};
|
|
8216
8222
|
return (React.createElement(React.Fragment, null,
|
|
8217
|
-
showCookieBanner && (React.createElement(Container
|
|
8223
|
+
showCookieBanner && (React.createElement(Container$$, { "data-testid": "CookieBanner" },
|
|
8218
8224
|
React.createElement(CookieMessage, null,
|
|
8219
8225
|
React.createElement(CookieHeading, null, title),
|
|
8220
8226
|
React.createElement(CookieParagraph, null, paragraph),
|
|
8221
8227
|
React.createElement(ButtonsContainer, null,
|
|
8222
8228
|
React.createElement(FormButton, { primary: true, text: acceptButtonText, isDisabled: true, onClick: acceptCookies, size: "large" }),
|
|
8223
8229
|
React.createElement(FormButton, { primary: true, text: rejectButtonText, isDisabled: true, onClick: rejectCookies, size: "large" }))))),
|
|
8224
|
-
showCookiesRejectedBanner && (React.createElement(Container
|
|
8230
|
+
showCookiesRejectedBanner && (React.createElement(Container$$, { "data-testid": "CookieBannerRejected", id: "CookieBannerRejected" },
|
|
8225
8231
|
React.createElement(CookieMessage, { isInline: true },
|
|
8226
8232
|
React.createElement(CookieParagraph, null, rejectConfirmationText),
|
|
8227
8233
|
React.createElement(CookieHide, { onClick: hideCookiesConfirmationBanner, "aria-controls": "CookieBannerRejected", "aria-hidden": "false" }, "Hide")))),
|
|
8228
|
-
showCookiesAcceptedBanner && (React.createElement(Container
|
|
8234
|
+
showCookiesAcceptedBanner && (React.createElement(Container$$, { "data-testid": "CookieBannerAccepted", id: "CookieBannerAccepted" },
|
|
8229
8235
|
React.createElement(CookieMessage, { isInline: true },
|
|
8230
8236
|
React.createElement(CookieParagraph, null, acceptConfirmationText),
|
|
8231
8237
|
React.createElement(CookieHide, { onClick: hideCookiesConfirmationBanner, "aria-controls": "CookieBannerAccepted", "aria-hidden": "false" }, "Hide"))))));
|
|
@@ -8247,7 +8253,7 @@ var StaticMap = function (_a) {
|
|
|
8247
8253
|
return "&markers=size:".concat(size, "%7Ccolor:").concat(colour).concat(label, "%7C").concat(mapMarker.lat, ",").concat(mapMarker.lng);
|
|
8248
8254
|
})
|
|
8249
8255
|
.join('');
|
|
8250
|
-
return (React.createElement(Container
|
|
8256
|
+
return (React.createElement(Container$10, { "data-testid": "StaticMap" },
|
|
8251
8257
|
React.createElement(Message, null,
|
|
8252
8258
|
React.createElement("span", null,
|
|
8253
8259
|
"To interact with the map, you need to ",
|
|
@@ -8268,7 +8274,7 @@ var TextInput = function (_a) {
|
|
|
8268
8274
|
|
|
8269
8275
|
// Accordion
|
|
8270
8276
|
|
|
8271
|
-
const Container$
|
|
8277
|
+
const Container$_ = styled.div`
|
|
8272
8278
|
${(props) => props.theme.fontStyles}
|
|
8273
8279
|
margin-bottom: 20px;
|
|
8274
8280
|
border-bottom: 1px solid ${(props) => props.theme.theme_vars.colours.grey};
|
|
@@ -8545,7 +8551,7 @@ var Accordion$1 = function (_a) {
|
|
|
8545
8551
|
setAccordionStates(newStatus);
|
|
8546
8552
|
};
|
|
8547
8553
|
var accordionId = "accordion".concat(useId());
|
|
8548
|
-
return (React.createElement(Container$
|
|
8554
|
+
return (React.createElement(Container$_, { "data-testid": "Accordion", id: accordionId },
|
|
8549
8555
|
showControls && sections.length > 1 && (React.createElement(AccordionControls$1, null,
|
|
8550
8556
|
React.createElement(OpenAllButton, { onClick: toggleAll, type: "button", "aria-expanded": !openAll },
|
|
8551
8557
|
openAll ? 'Open all' : 'Close all',
|
|
@@ -8596,7 +8602,7 @@ var BlockQuote = function (_a) {
|
|
|
8596
8602
|
citation && React.createElement(Citation, null, citation)));
|
|
8597
8603
|
};
|
|
8598
8604
|
|
|
8599
|
-
const Container$
|
|
8605
|
+
const Container$Z = styled.div`
|
|
8600
8606
|
margin-bottom: 30px;
|
|
8601
8607
|
display: block;
|
|
8602
8608
|
|
|
@@ -8611,11 +8617,11 @@ const Container$Y = styled.div`
|
|
|
8611
8617
|
*/
|
|
8612
8618
|
var CallToAction = function (_a) {
|
|
8613
8619
|
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"]);
|
|
8614
|
-
return (React.createElement(Container$
|
|
8620
|
+
return (React.createElement(Container$Z, null,
|
|
8615
8621
|
React.createElement(Button$4, { primary: primary, size: "large", text: text, url: url, isExternal: isExternal, isDisabled: isDisabled })));
|
|
8616
8622
|
};
|
|
8617
8623
|
|
|
8618
|
-
const Container$
|
|
8624
|
+
const Container$Y = styled.div`
|
|
8619
8625
|
display: block;
|
|
8620
8626
|
${(props) => props.theme.fontStyles}
|
|
8621
8627
|
`;
|
|
@@ -8791,7 +8797,7 @@ var CouncilTaxAlphabeticalDirectory = function (_a) {
|
|
|
8791
8797
|
});
|
|
8792
8798
|
return letterData;
|
|
8793
8799
|
});
|
|
8794
|
-
return (React.createElement(Container$
|
|
8800
|
+
return (React.createElement(Container$Y, { "data-testid": "AlphabeticalDirectory", ref: directoryRef },
|
|
8795
8801
|
React.createElement(React.Fragment, null,
|
|
8796
8802
|
parishes.length === 0 && (React.createElement(ErrorText, null, "There was an issue fetching the parish data. Please try again later.")),
|
|
8797
8803
|
parish === null ? (React.createElement(React.Fragment, null, sortedData.map(function (letter, i) { return (React.createElement(Row, { key: i },
|
|
@@ -8817,9 +8823,9 @@ var CouncilTaxAlphabeticalDirectory = function (_a) {
|
|
|
8817
8823
|
React.createElement("td", null, Number(parish.values[band]).toLocaleString('en-GB', { style: 'currency', currency: 'GBP' })))); })))))))));
|
|
8818
8824
|
};
|
|
8819
8825
|
|
|
8820
|
-
const Container$
|
|
8826
|
+
const Container$X = styled.div``;
|
|
8821
8827
|
|
|
8822
|
-
const Container$
|
|
8828
|
+
const Container$W = styled.div`
|
|
8823
8829
|
display: flex;
|
|
8824
8830
|
flex-direction: column;
|
|
8825
8831
|
justify-content: flex-start;
|
|
@@ -19474,7 +19480,7 @@ function markDirtyUp(node) {
|
|
|
19474
19480
|
}
|
|
19475
19481
|
}
|
|
19476
19482
|
|
|
19477
|
-
let Container$
|
|
19483
|
+
let Container$V = class Container extends Node$1 {
|
|
19478
19484
|
append(...children) {
|
|
19479
19485
|
for (let child of children) {
|
|
19480
19486
|
let nodes = this.normalize(child, this.last);
|
|
@@ -19847,27 +19853,27 @@ let Container$U = class Container extends Node$1 {
|
|
|
19847
19853
|
}
|
|
19848
19854
|
};
|
|
19849
19855
|
|
|
19850
|
-
Container$
|
|
19856
|
+
Container$V.registerParse = dependant => {
|
|
19851
19857
|
parse$4 = dependant;
|
|
19852
19858
|
};
|
|
19853
19859
|
|
|
19854
|
-
Container$
|
|
19860
|
+
Container$V.registerRule = dependant => {
|
|
19855
19861
|
Rule$4 = dependant;
|
|
19856
19862
|
};
|
|
19857
19863
|
|
|
19858
|
-
Container$
|
|
19864
|
+
Container$V.registerAtRule = dependant => {
|
|
19859
19865
|
AtRule$4 = dependant;
|
|
19860
19866
|
};
|
|
19861
19867
|
|
|
19862
|
-
Container$
|
|
19868
|
+
Container$V.registerRoot = dependant => {
|
|
19863
19869
|
Root$6 = dependant;
|
|
19864
19870
|
};
|
|
19865
19871
|
|
|
19866
|
-
var container = Container$
|
|
19867
|
-
Container$
|
|
19872
|
+
var container = Container$V;
|
|
19873
|
+
Container$V.default = Container$V;
|
|
19868
19874
|
|
|
19869
19875
|
/* c8 ignore start */
|
|
19870
|
-
Container$
|
|
19876
|
+
Container$V.rebuild = node => {
|
|
19871
19877
|
if (node.type === 'atrule') {
|
|
19872
19878
|
Object.setPrototypeOf(node, AtRule$4.prototype);
|
|
19873
19879
|
} else if (node.type === 'rule') {
|
|
@@ -19884,16 +19890,16 @@ Container$U.rebuild = node => {
|
|
|
19884
19890
|
|
|
19885
19891
|
if (node.nodes) {
|
|
19886
19892
|
node.nodes.forEach(child => {
|
|
19887
|
-
Container$
|
|
19893
|
+
Container$V.rebuild(child);
|
|
19888
19894
|
});
|
|
19889
19895
|
}
|
|
19890
19896
|
};
|
|
19891
19897
|
|
|
19892
|
-
let Container$
|
|
19898
|
+
let Container$U = container;
|
|
19893
19899
|
|
|
19894
19900
|
let LazyResult$4, Processor$3;
|
|
19895
19901
|
|
|
19896
|
-
let Document$3 = class Document extends Container$
|
|
19902
|
+
let Document$3 = class Document extends Container$U {
|
|
19897
19903
|
constructor(defaults) {
|
|
19898
19904
|
// type needs to be passed to super, otherwise child roots won't be normalized correctly
|
|
19899
19905
|
super({ type: 'document', ...defaults });
|
|
@@ -20011,9 +20017,9 @@ let Result$4 = class Result {
|
|
|
20011
20017
|
var result = Result$4;
|
|
20012
20018
|
Result$4.default = Result$4;
|
|
20013
20019
|
|
|
20014
|
-
let Container$
|
|
20020
|
+
let Container$T = container;
|
|
20015
20021
|
|
|
20016
|
-
let AtRule$3 = class AtRule extends Container$
|
|
20022
|
+
let AtRule$3 = class AtRule extends Container$T {
|
|
20017
20023
|
constructor(defaults) {
|
|
20018
20024
|
super(defaults);
|
|
20019
20025
|
this.type = 'atrule';
|
|
@@ -20033,13 +20039,13 @@ let AtRule$3 = class AtRule extends Container$S {
|
|
|
20033
20039
|
var atRule = AtRule$3;
|
|
20034
20040
|
AtRule$3.default = AtRule$3;
|
|
20035
20041
|
|
|
20036
|
-
Container$
|
|
20042
|
+
Container$T.registerAtRule(AtRule$3);
|
|
20037
20043
|
|
|
20038
|
-
let Container$
|
|
20044
|
+
let Container$S = container;
|
|
20039
20045
|
|
|
20040
20046
|
let LazyResult$3, Processor$2;
|
|
20041
20047
|
|
|
20042
|
-
let Root$5 = class Root extends Container$
|
|
20048
|
+
let Root$5 = class Root extends Container$S {
|
|
20043
20049
|
constructor(defaults) {
|
|
20044
20050
|
super(defaults);
|
|
20045
20051
|
this.type = 'root';
|
|
@@ -20093,7 +20099,7 @@ Root$5.registerProcessor = dependant => {
|
|
|
20093
20099
|
var root = Root$5;
|
|
20094
20100
|
Root$5.default = Root$5;
|
|
20095
20101
|
|
|
20096
|
-
Container$
|
|
20102
|
+
Container$S.registerRoot(Root$5);
|
|
20097
20103
|
|
|
20098
20104
|
let list$2 = {
|
|
20099
20105
|
comma(string) {
|
|
@@ -20152,10 +20158,10 @@ let list$2 = {
|
|
|
20152
20158
|
var list_1 = list$2;
|
|
20153
20159
|
list$2.default = list$2;
|
|
20154
20160
|
|
|
20155
|
-
let Container$
|
|
20161
|
+
let Container$R = container;
|
|
20156
20162
|
let list$1 = list_1;
|
|
20157
20163
|
|
|
20158
|
-
let Rule$3 = class Rule extends Container$
|
|
20164
|
+
let Rule$3 = class Rule extends Container$R {
|
|
20159
20165
|
constructor(defaults) {
|
|
20160
20166
|
super(defaults);
|
|
20161
20167
|
this.type = 'rule';
|
|
@@ -20176,7 +20182,7 @@ let Rule$3 = class Rule extends Container$Q {
|
|
|
20176
20182
|
var rule = Rule$3;
|
|
20177
20183
|
Rule$3.default = Rule$3;
|
|
20178
20184
|
|
|
20179
|
-
Container$
|
|
20185
|
+
Container$R.registerRule(Rule$3);
|
|
20180
20186
|
|
|
20181
20187
|
let Declaration$2 = declaration;
|
|
20182
20188
|
let tokenizer = tokenize;
|
|
@@ -20786,7 +20792,7 @@ let Parser$1 = class Parser {
|
|
|
20786
20792
|
|
|
20787
20793
|
var parser = Parser$1;
|
|
20788
20794
|
|
|
20789
|
-
let Container$
|
|
20795
|
+
let Container$Q = container;
|
|
20790
20796
|
let Parser = parser;
|
|
20791
20797
|
let Input$3 = input;
|
|
20792
20798
|
|
|
@@ -20825,12 +20831,12 @@ function parse$3(css, opts) {
|
|
|
20825
20831
|
var parse_1 = parse$3;
|
|
20826
20832
|
parse$3.default = parse$3;
|
|
20827
20833
|
|
|
20828
|
-
Container$
|
|
20834
|
+
Container$Q.registerParse(parse$3);
|
|
20829
20835
|
|
|
20830
20836
|
let { isClean, my } = symbols;
|
|
20831
20837
|
let MapGenerator$1 = mapGenerator;
|
|
20832
20838
|
let stringify$2 = stringify_1;
|
|
20833
|
-
let Container$
|
|
20839
|
+
let Container$P = container;
|
|
20834
20840
|
let Document$2 = document$1;
|
|
20835
20841
|
let warnOnce$1 = warnOnce$2;
|
|
20836
20842
|
let Result$3 = result;
|
|
@@ -20965,7 +20971,7 @@ let LazyResult$2 = class LazyResult {
|
|
|
20965
20971
|
|
|
20966
20972
|
if (root && !root[my]) {
|
|
20967
20973
|
/* c8 ignore next 2 */
|
|
20968
|
-
Container$
|
|
20974
|
+
Container$P.rebuild(root);
|
|
20969
20975
|
}
|
|
20970
20976
|
}
|
|
20971
20977
|
|
|
@@ -21635,7 +21641,7 @@ fromJSON$1.default = fromJSON$1;
|
|
|
21635
21641
|
let CssSyntaxError = cssSyntaxError;
|
|
21636
21642
|
let Declaration = declaration;
|
|
21637
21643
|
let LazyResult = lazyResult;
|
|
21638
|
-
let Container$
|
|
21644
|
+
let Container$O = container;
|
|
21639
21645
|
let Processor = processor;
|
|
21640
21646
|
let stringify = stringify_1;
|
|
21641
21647
|
let fromJSON = fromJSON_1;
|
|
@@ -21715,7 +21721,7 @@ postcss.document = defaults => new Document(defaults);
|
|
|
21715
21721
|
|
|
21716
21722
|
postcss.CssSyntaxError = CssSyntaxError;
|
|
21717
21723
|
postcss.Declaration = Declaration;
|
|
21718
|
-
postcss.Container = Container$
|
|
21724
|
+
postcss.Container = Container$O;
|
|
21719
21725
|
postcss.Processor = Processor;
|
|
21720
21726
|
postcss.Document = Document;
|
|
21721
21727
|
postcss.Comment = Comment;
|
|
@@ -22584,7 +22590,7 @@ var sanitizeHtml$1 = sanitizeHtml_1;
|
|
|
22584
22590
|
var Card = function (_a) {
|
|
22585
22591
|
var header = _a.header, content = _a.content, footerLink = _a.footerLink, imageLarge = _a.imageLarge, imageSmall = _a.imageSmall, imageAltText = _a.imageAltText;
|
|
22586
22592
|
var showContent = content || header;
|
|
22587
|
-
return (React.createElement(Container$
|
|
22593
|
+
return (React.createElement(Container$W, { "data-testid": "Card" },
|
|
22588
22594
|
imageLarge && imageSmall && (React.createElement(React.Fragment, null, footerLink ? (React.createElement(ImageLink$1, { href: footerLink.url },
|
|
22589
22595
|
React.createElement(Image$4, { src: imageLarge, alt: imageAltText, srcSet: "".concat(imageSmall, " 400w, ").concat(imageLarge, " 800w"), sizes: "(max-width: 550px) 400px, 800px", loading: "lazy" }))) : (React.createElement(Image$4, { src: imageLarge, alt: imageAltText, srcSet: "".concat(imageSmall, " 400w, ").concat(imageLarge, " 800w"), sizes: "(max-width: 550px) 400px, 800px", loading: "lazy" })))),
|
|
22590
22596
|
showContent && (React.createElement(Content$6, null,
|
|
@@ -22600,12 +22606,12 @@ var Card = function (_a) {
|
|
|
22600
22606
|
*/
|
|
22601
22607
|
var Cards = function (_a) {
|
|
22602
22608
|
var cards = _a.cards;
|
|
22603
|
-
return (React.createElement(Container$
|
|
22609
|
+
return (React.createElement(Container$X, { "data-testid": "Cards" },
|
|
22604
22610
|
React.createElement(Row$1, null, cards.map(function (card, index) { return (React.createElement(Column, { small: "full", medium: "one-half", large: "one-third", key: index },
|
|
22605
22611
|
React.createElement(Card, __assign$2({}, card)))); }))));
|
|
22606
22612
|
};
|
|
22607
22613
|
|
|
22608
|
-
const Container$
|
|
22614
|
+
const Container$N = styled.div`
|
|
22609
22615
|
margin: 25px 0;
|
|
22610
22616
|
`;
|
|
22611
22617
|
|
|
@@ -22723,7 +22729,7 @@ var FileDownload = function (_a) {
|
|
|
22723
22729
|
|
|
22724
22730
|
var DownloadableFiles = function (_a) {
|
|
22725
22731
|
var files = _a.files;
|
|
22726
|
-
return (React.createElement(Container$
|
|
22732
|
+
return (React.createElement(Container$N, { "data-testid": "DownloadableFiles" }, files.length > 0 ?
|
|
22727
22733
|
files.map(function (file) { return React.createElement(FileDownload, __assign$2({ key: file.title }, file)); })
|
|
22728
22734
|
:
|
|
22729
22735
|
React.createElement("i", null, "No file to show")));
|
|
@@ -22824,7 +22830,7 @@ const AccessibleMapLink = styled(MapLink$1)`
|
|
|
22824
22830
|
${(props) => props.theme.visuallyHidden};
|
|
22825
22831
|
`;
|
|
22826
22832
|
|
|
22827
|
-
const Container$
|
|
22833
|
+
const Container$M = styled.div`
|
|
22828
22834
|
border: solid 4px;
|
|
22829
22835
|
border-radius: ${(props) => props.theme.theme_vars.border_radius};
|
|
22830
22836
|
border-color: ${(props) =>
|
|
@@ -22878,7 +22884,7 @@ const InnerContainer$2 = styled.div`
|
|
|
22878
22884
|
*/
|
|
22879
22885
|
var AlertBannerService = function (_a) {
|
|
22880
22886
|
var title = _a.title, _b = _a.hasTopSpacing, hasTopSpacing = _b === void 0 ? false : _b, _c = _a.alertType, alertType = _c === void 0 ? 'alert' : _c, children = _a.children;
|
|
22881
|
-
return (React.createElement(Container$
|
|
22887
|
+
return (React.createElement(Container$M, { "$alertType": alertType, "data-testid": "AlertBannerService", "$hasTopSpacing": hasTopSpacing },
|
|
22882
22888
|
React.createElement(InnerContainer$2, { "data-testid": "AlertBannerServiceInner" },
|
|
22883
22889
|
(title === null || title === void 0 ? void 0 : title.trim()) && React.createElement(Heading, { text: title }),
|
|
22884
22890
|
children)));
|
|
@@ -22931,7 +22937,7 @@ var GoogleMap = function (_a) {
|
|
|
22931
22937
|
React.createElement(MapLink$1, { href: link_url }, link_title ? link_title : 'Google Maps link')))));
|
|
22932
22938
|
};
|
|
22933
22939
|
|
|
22934
|
-
const Container$
|
|
22940
|
+
const Container$L = styled.figure`
|
|
22935
22941
|
display: block;
|
|
22936
22942
|
background: ${(props) =>
|
|
22937
22943
|
props.theme.cardinal_name === 'north'
|
|
@@ -23598,7 +23604,7 @@ var LazyImage = /*@__PURE__*/getDefaultExportFromCjs(lib$1);
|
|
|
23598
23604
|
*/
|
|
23599
23605
|
var Image$2 = function (_a) {
|
|
23600
23606
|
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;
|
|
23601
|
-
return (React.createElement(Container$
|
|
23607
|
+
return (React.createElement(Container$L, { "data-testid": "Image", "$wrapText": wrapText },
|
|
23602
23608
|
React.createElement(ImageContainer$4, { "data-testid": "ImageContainer", "$ratio": ratio },
|
|
23603
23609
|
React.createElement(LazyImage, { placeholder: imageSmall, src: imageLarge, visibilitySensorProps: {
|
|
23604
23610
|
partialVisibility: true,
|
|
@@ -23606,7 +23612,7 @@ var Image$2 = function (_a) {
|
|
|
23606
23612
|
(caption === null || caption === void 0 ? void 0 : caption.trim()) && React.createElement(Caption, null, caption)));
|
|
23607
23613
|
};
|
|
23608
23614
|
|
|
23609
|
-
const Container$
|
|
23615
|
+
const Container$K = styled.div`
|
|
23610
23616
|
display: block;
|
|
23611
23617
|
`;
|
|
23612
23618
|
|
|
@@ -23627,7 +23633,7 @@ const Content$5 = styled.div`
|
|
|
23627
23633
|
*/
|
|
23628
23634
|
var ImageAndText = function (_a) {
|
|
23629
23635
|
var heading = _a.heading, textContent = _a.textContent, image = _a.image;
|
|
23630
|
-
return (React.createElement(Container$
|
|
23636
|
+
return (React.createElement(Container$K, { "data-testid": "ImageAndText" },
|
|
23631
23637
|
React.createElement(Row$1, null,
|
|
23632
23638
|
heading && (React.createElement(Column, { small: "full", medium: "full", large: "full" },
|
|
23633
23639
|
React.createElement(HeadingContainer, null,
|
|
@@ -23640,8 +23646,46 @@ var ImageAndText = function (_a) {
|
|
|
23640
23646
|
React.createElement(Content$5, { dangerouslySetInnerHTML: { __html: sanitizeHtml$1(textContent) } }))))));
|
|
23641
23647
|
};
|
|
23642
23648
|
|
|
23643
|
-
|
|
23649
|
+
var CaseAppointmentType;
|
|
23650
|
+
(function (CaseAppointmentType) {
|
|
23651
|
+
CaseAppointmentType["Hearing"] = "hearing";
|
|
23652
|
+
CaseAppointmentType["Opening"] = "opening";
|
|
23653
|
+
CaseAppointmentType["Writing"] = "writing";
|
|
23654
|
+
})(CaseAppointmentType || (CaseAppointmentType = {}));
|
|
23655
|
+
|
|
23656
|
+
const Container$J = styled.div`
|
|
23644
23657
|
display: block;
|
|
23658
|
+
box-sizing: border-box;
|
|
23659
|
+
`;
|
|
23660
|
+
|
|
23661
|
+
const GroupContainer = styled.div`
|
|
23662
|
+
display: flex;
|
|
23663
|
+
flex-direction: column;
|
|
23664
|
+
margin-bottom: ${(props) => props.theme.theme_vars.spacingSizes.large};
|
|
23665
|
+
`;
|
|
23666
|
+
|
|
23667
|
+
const InquestContainer = styled.div`
|
|
23668
|
+
display: flex;
|
|
23669
|
+
flex-direction: row;
|
|
23670
|
+
align-items: flex-start;
|
|
23671
|
+
justify-content: flex-start;
|
|
23672
|
+
flex-wrap: wrap;
|
|
23673
|
+
|
|
23674
|
+
@media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.m}) {
|
|
23675
|
+
flex-wrap: nowrap;
|
|
23676
|
+
}
|
|
23677
|
+
`;
|
|
23678
|
+
|
|
23679
|
+
const InquestTime = styled.div`
|
|
23680
|
+
flex-grow: 0;
|
|
23681
|
+
flex-shrink: 0;
|
|
23682
|
+
`;
|
|
23683
|
+
|
|
23684
|
+
const InquestDetails = styled.div`
|
|
23685
|
+
flex-grow: 1;
|
|
23686
|
+
@media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.m}) {
|
|
23687
|
+
padding-left: ${(props) => props.theme.theme_vars.spacingSizes.small};
|
|
23688
|
+
}
|
|
23645
23689
|
`;
|
|
23646
23690
|
|
|
23647
23691
|
/**
|
|
@@ -23649,35 +23693,103 @@ const Container$I = styled.div`
|
|
|
23649
23693
|
*/
|
|
23650
23694
|
var InquestSchedule = function (_a) {
|
|
23651
23695
|
var caseAppointments = _a.caseAppointments, title = _a.title, _b = _a.error, error = _b === void 0 ? false : _b;
|
|
23652
|
-
|
|
23653
|
-
|
|
23654
|
-
|
|
23655
|
-
|
|
23656
|
-
|
|
23657
|
-
|
|
23658
|
-
|
|
23659
|
-
|
|
23660
|
-
|
|
23661
|
-
|
|
23662
|
-
|
|
23663
|
-
|
|
23664
|
-
|
|
23665
|
-
|
|
23666
|
-
|
|
23667
|
-
|
|
23668
|
-
|
|
23669
|
-
|
|
23670
|
-
|
|
23671
|
-
|
|
23672
|
-
|
|
23673
|
-
|
|
23674
|
-
|
|
23675
|
-
|
|
23676
|
-
|
|
23677
|
-
|
|
23696
|
+
var hearings = caseAppointments.filter(function (appointment) {
|
|
23697
|
+
return appointment.appointmentType.toLowerCase().includes(CaseAppointmentType.Hearing);
|
|
23698
|
+
});
|
|
23699
|
+
var openings = caseAppointments.filter(function (appointment) {
|
|
23700
|
+
return appointment.appointmentType.toLowerCase().includes(CaseAppointmentType.Opening);
|
|
23701
|
+
});
|
|
23702
|
+
var writings = caseAppointments.filter(function (appointment) {
|
|
23703
|
+
return appointment.appointmentType.toLowerCase().includes(CaseAppointmentType.Writing);
|
|
23704
|
+
});
|
|
23705
|
+
var groupHearingsByDay = function (appointments) {
|
|
23706
|
+
return appointments.reduce(function (acc, inquest) {
|
|
23707
|
+
var inquestDate = new Date(inquest.startDateTime);
|
|
23708
|
+
var inquestISODay = inquestDate.toISOString().substring(0, 10);
|
|
23709
|
+
if (!acc[inquestISODay]) {
|
|
23710
|
+
acc[inquestISODay] = [];
|
|
23711
|
+
}
|
|
23712
|
+
acc[inquestISODay].push(inquest);
|
|
23713
|
+
return acc;
|
|
23714
|
+
}, {});
|
|
23715
|
+
};
|
|
23716
|
+
var hearingDayGrouped = groupHearingsByDay(hearings);
|
|
23717
|
+
var openingDayGrouped = groupHearingsByDay(openings);
|
|
23718
|
+
var writingDayGrouped = groupHearingsByDay(writings);
|
|
23719
|
+
var formatDate = function (inquestDay) {
|
|
23720
|
+
return inquestDay
|
|
23721
|
+
.toLocaleDateString('en-GB', {
|
|
23722
|
+
weekday: 'long',
|
|
23723
|
+
day: 'numeric',
|
|
23724
|
+
month: 'long',
|
|
23725
|
+
year: 'numeric',
|
|
23726
|
+
})
|
|
23727
|
+
.replace(',', '');
|
|
23728
|
+
};
|
|
23729
|
+
var formatTime = function (inquestDate) {
|
|
23730
|
+
return inquestDate.toLocaleTimeString([], { hour: '2-digit', minute: '2-digit' });
|
|
23731
|
+
};
|
|
23732
|
+
var transformToSections = function (groupedData) {
|
|
23733
|
+
return Object.keys(groupedData).map(function (day) {
|
|
23734
|
+
var inquestDayDate = new Date(day);
|
|
23735
|
+
return {
|
|
23736
|
+
title: formatDate(inquestDayDate),
|
|
23737
|
+
content: (React.createElement(Row$1, null, groupedData[day]
|
|
23738
|
+
.sort(function (a, b) {
|
|
23739
|
+
return new Date(a.startDateTime).getTime() - new Date(b.startDateTime).getTime();
|
|
23740
|
+
})
|
|
23741
|
+
.map(function (inquest, key) {
|
|
23742
|
+
var startDateTime = new Date(inquest.startDateTime);
|
|
23743
|
+
var timeOfDeath = new Date(inquest.dateTimeOfDeath);
|
|
23744
|
+
return (React.createElement(Column, { small: "full", medium: "full", large: "full", key: key },
|
|
23745
|
+
React.createElement(InquestContainer, null,
|
|
23746
|
+
React.createElement(InquestTime, null,
|
|
23747
|
+
React.createElement("strong", null, formatTime(startDateTime))),
|
|
23748
|
+
React.createElement(InquestDetails, null,
|
|
23749
|
+
React.createElement("strong", null, "Name:"),
|
|
23750
|
+
" ",
|
|
23751
|
+
inquest.fullName,
|
|
23752
|
+
".",
|
|
23753
|
+
React.createElement("br", null),
|
|
23754
|
+
React.createElement("strong", null, "Died:"),
|
|
23755
|
+
" ",
|
|
23756
|
+
formatDate(timeOfDeath),
|
|
23757
|
+
" at ",
|
|
23758
|
+
inquest.placeOfDeath,
|
|
23759
|
+
". Aged ",
|
|
23760
|
+
inquest.age,
|
|
23761
|
+
' ',
|
|
23762
|
+
"years.",
|
|
23763
|
+
React.createElement("br", null),
|
|
23764
|
+
React.createElement("strong", null, "Court location:"),
|
|
23765
|
+
" ",
|
|
23766
|
+
inquest.courtroomFullAddress,
|
|
23767
|
+
".",
|
|
23768
|
+
React.createElement("br", null),
|
|
23769
|
+
React.createElement("strong", null, "Coroner:"),
|
|
23770
|
+
" ",
|
|
23771
|
+
inquest.coroner,
|
|
23772
|
+
"."))));
|
|
23773
|
+
}))),
|
|
23774
|
+
};
|
|
23775
|
+
});
|
|
23776
|
+
};
|
|
23777
|
+
return (React.createElement(Container$J, { "data-testid": "InquestSchedule" },
|
|
23778
|
+
Object.keys(hearingDayGrouped).length > 0 && (React.createElement(GroupContainer, null,
|
|
23779
|
+
React.createElement(Heading, { level: 2, text: title }),
|
|
23780
|
+
React.createElement(Accordion$1, { sections: transformToSections(hearingDayGrouped) }))),
|
|
23781
|
+
Object.keys(openingDayGrouped).length > 0 && (React.createElement(GroupContainer, null,
|
|
23782
|
+
React.createElement(Heading, { level: 2, text: "Inquest Openings" }),
|
|
23783
|
+
React.createElement(Accordion$1, { sections: transformToSections(openingDayGrouped) }))),
|
|
23784
|
+
Object.keys(writingDayGrouped).length > 0 && (React.createElement(GroupContainer, null,
|
|
23785
|
+
React.createElement(Heading, { level: 2, text: "Inquests in Writing" }),
|
|
23786
|
+
React.createElement(Accordion$1, { sections: transformToSections(writingDayGrouped) }))),
|
|
23787
|
+
caseAppointments.length === 0 && (React.createElement("div", null,
|
|
23788
|
+
React.createElement("p", null, "We can't find any results at the moment."),
|
|
23789
|
+
error ? (React.createElement("p", null, " The information is currently unavailable.")) : (React.createElement("p", null, "There are no inquests scheduled for next month."))))));
|
|
23678
23790
|
};
|
|
23679
23791
|
|
|
23680
|
-
const Container$
|
|
23792
|
+
const Container$I = styled.div`
|
|
23681
23793
|
${(props) => props.theme.fontStyles};
|
|
23682
23794
|
overflow: hidden;
|
|
23683
23795
|
margin: 40px auto 5px auto;
|
|
@@ -23757,7 +23869,7 @@ const CTA = styled.a`
|
|
|
23757
23869
|
*/
|
|
23758
23870
|
var PromoBanner = function (_a) {
|
|
23759
23871
|
var title = _a.title, image1440x810 = _a.image1440x810, image144x81 = _a.image144x81, ctaText = _a.ctaText, ctaUrl = _a.ctaUrl, children = _a.children;
|
|
23760
|
-
return (React.createElement(Container$
|
|
23872
|
+
return (React.createElement(Container$I, null,
|
|
23761
23873
|
React.createElement(LazyImage, { src: image1440x810, placeholder: image144x81, visibilitySensorProps: {
|
|
23762
23874
|
partialVisibility: true,
|
|
23763
23875
|
} }, function (src) { return React.createElement(ImageLink, { "$img": src, href: ctaUrl, title: ctaText }); }),
|
|
@@ -23969,6 +24081,162 @@ var Promotions = function (_a) {
|
|
|
23969
24081
|
numberOfPromos > 1 && React.createElement(PromoBlock, { promos: promos.slice(1, numberOfPromos) })));
|
|
23970
24082
|
};
|
|
23971
24083
|
|
|
24084
|
+
const Container$H = styled.div`
|
|
24085
|
+
display: block;
|
|
24086
|
+
`;
|
|
24087
|
+
|
|
24088
|
+
const Label$4 = styled.label`
|
|
24089
|
+
margin-bottom: 5px;
|
|
24090
|
+
font-weight: bold;
|
|
24091
|
+
`;
|
|
24092
|
+
|
|
24093
|
+
const RoadworkList = styled.ul`
|
|
24094
|
+
list-style: none;
|
|
24095
|
+
margin: 0;
|
|
24096
|
+
padding: 0;
|
|
24097
|
+
max-width: 100% !important;
|
|
24098
|
+
`;
|
|
24099
|
+
|
|
24100
|
+
const Roadwork = styled.li`
|
|
24101
|
+
display: block;
|
|
24102
|
+
width: 100%;
|
|
24103
|
+
margin-left: 0;
|
|
24104
|
+
margin-bottom: ${(props) => props.theme.theme_vars.spacingSizes.medium} !important;
|
|
24105
|
+
padding: ${(props) => `${props.theme.theme_vars.spacingSizes.small} ${props.theme.theme_vars.spacingSizes.medium}`};
|
|
24106
|
+
left: 0;
|
|
24107
|
+
box-shadow: 1px 1px 5px 1px rgba(0, 0, 0, 0.2);
|
|
24108
|
+
border-radius: ${(props) => props.theme.theme_vars.border_radius};
|
|
24109
|
+
background-color: ${(props) =>
|
|
24110
|
+
props.theme.cardinal_name === 'west'
|
|
24111
|
+
? props.theme.theme_vars.colours.grey_light + '7a'
|
|
24112
|
+
: props.theme.theme_vars.colours.white};
|
|
24113
|
+
|
|
24114
|
+
h3 {
|
|
24115
|
+
margin-top: ${(props) => props.theme.theme_vars.spacingSizes.medium} !important;
|
|
24116
|
+
}
|
|
24117
|
+
`;
|
|
24118
|
+
|
|
24119
|
+
const IconContainer$2 = styled.div`
|
|
24120
|
+
display: flex;
|
|
24121
|
+
flex-wrap: nowrap;
|
|
24122
|
+
flex-direction: row;
|
|
24123
|
+
justify-content: flex-start;
|
|
24124
|
+
align-items: center;
|
|
24125
|
+
margin-bottom: ${(props) => props.theme.theme_vars.spacingSizes.small};
|
|
24126
|
+
|
|
24127
|
+
&:last-of-type {
|
|
24128
|
+
margin-bottom: 0;
|
|
24129
|
+
}
|
|
24130
|
+
|
|
24131
|
+
& span svg {
|
|
24132
|
+
vertical-align: middle;
|
|
24133
|
+
}
|
|
24134
|
+
`;
|
|
24135
|
+
|
|
24136
|
+
const IconText = styled.div`
|
|
24137
|
+
padding-left: ${(props) => props.theme.theme_vars.spacingSizes.small};
|
|
24138
|
+
`;
|
|
24139
|
+
|
|
24140
|
+
const NoMatches = styled.p`
|
|
24141
|
+
padding: ${(props) => props.theme.theme_vars.spacingSizes.small} 0;
|
|
24142
|
+
`;
|
|
24143
|
+
|
|
24144
|
+
/**
|
|
24145
|
+
* Primary UI component for user interaction
|
|
24146
|
+
* If value is set then treat as controlled component
|
|
24147
|
+
*/
|
|
24148
|
+
var Input = function (_a) {
|
|
24149
|
+
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;
|
|
24150
|
+
return (React.createElement(React.Fragment, null,
|
|
24151
|
+
errorText && React.createElement(ErrorText$1, null, errorText),
|
|
24152
|
+
typeof value !== 'undefined' ? (React.createElement(StyledInput, { onChange: onChange, type: type, placeholder: placeholder, name: name, "$isErrored": isErrored, maxLength: maxLength, value: value, id: id, autoComplete: autocomplete, "$isFullWidth": isFullWidth })) : (React.createElement(StyledInput, { onChange: onChange, type: type, placeholder: placeholder, name: name, "$isErrored": isErrored, maxLength: maxLength, defaultValue: defaultValue, id: id, autoComplete: autocomplete, "$isFullWidth": isFullWidth }))));
|
|
24153
|
+
};
|
|
24154
|
+
|
|
24155
|
+
/**
|
|
24156
|
+
* A filterable list of roadworks
|
|
24157
|
+
*/
|
|
24158
|
+
var RoadworksList = function (_a) {
|
|
24159
|
+
var roadworks = _a.roadworks, title = _a.title;
|
|
24160
|
+
var _b = useState(roadworks), filteredRoadworks = _b[0], setFilteredRoadworks = _b[1];
|
|
24161
|
+
var handleSearch = function (e) {
|
|
24162
|
+
var searchTerm = e.target.value.toLowerCase();
|
|
24163
|
+
if (searchTerm != '') {
|
|
24164
|
+
var updatedRoadworks = roadworks.filter(function (roadwork) {
|
|
24165
|
+
return (roadwork.description.toLowerCase().includes(searchTerm) ||
|
|
24166
|
+
roadwork.detailedLocation.toLocaleLowerCase().includes(searchTerm) ||
|
|
24167
|
+
roadwork.trafficManagement.toLowerCase().includes(searchTerm));
|
|
24168
|
+
});
|
|
24169
|
+
setFilteredRoadworks(updatedRoadworks);
|
|
24170
|
+
}
|
|
24171
|
+
else {
|
|
24172
|
+
setFilteredRoadworks(roadworks);
|
|
24173
|
+
}
|
|
24174
|
+
};
|
|
24175
|
+
// Format the time to match Gov UK style guide
|
|
24176
|
+
// https://www.gov.uk/guidance/style-guide/a-to-z#times
|
|
24177
|
+
var formatTime = function (dayJsInstance) {
|
|
24178
|
+
if (dayJsInstance.format('HH:mm') === '00:00') {
|
|
24179
|
+
return 'midnight';
|
|
24180
|
+
}
|
|
24181
|
+
if (dayJsInstance.format('HH:mm') === '12:00') {
|
|
24182
|
+
return 'midday';
|
|
24183
|
+
}
|
|
24184
|
+
if (dayJsInstance.format('mm') === '00') {
|
|
24185
|
+
return dayJsInstance.format('ha');
|
|
24186
|
+
}
|
|
24187
|
+
else {
|
|
24188
|
+
return dayJsInstance.format('h:mma');
|
|
24189
|
+
}
|
|
24190
|
+
};
|
|
24191
|
+
// Format the time to match the Gov UK style guide
|
|
24192
|
+
// https://www.gov.uk/guidance/style-guide/a-to-z#dates
|
|
24193
|
+
var formatDate = function (startTime, endTime) {
|
|
24194
|
+
if (!endTime) {
|
|
24195
|
+
return dayjs(startTime).format('dddd D MMMM YYYY') + ' at ' + formatTime(dayjs(startTime));
|
|
24196
|
+
}
|
|
24197
|
+
else {
|
|
24198
|
+
var endDate = dayjs(endTime);
|
|
24199
|
+
var startDate = dayjs(startTime);
|
|
24200
|
+
if (startDate.format('YYYY-MM-DD') === endDate.format('YYYY-MM-DD')) {
|
|
24201
|
+
if (startDate.format('HH:mm') === '00:00' && endDate.format('HH:mm') === '23:59') {
|
|
24202
|
+
return "".concat(startDate.format('dddd D MMMM YYYY'), " - all day");
|
|
24203
|
+
}
|
|
24204
|
+
return "".concat(startDate.format('dddd D MMMM YYYY'), " at ").concat(formatTime(startDate), " to ").concat(formatTime(endDate));
|
|
24205
|
+
}
|
|
24206
|
+
else {
|
|
24207
|
+
return "".concat(startDate.format('dddd D MMMM YYYY'), " at ").concat(formatTime(startDate), " to ").concat(endDate.format('dddd D MMMM YYYY'), " at ").concat(formatTime(endDate));
|
|
24208
|
+
}
|
|
24209
|
+
}
|
|
24210
|
+
};
|
|
24211
|
+
return (React.createElement(Container$H, { "data-testid": "RoadworksList" },
|
|
24212
|
+
React.createElement(Heading, { level: 2, text: title }),
|
|
24213
|
+
React.createElement(Label$4, { htmlFor: "roadworksSearch" }, "Search roadworks"),
|
|
24214
|
+
React.createElement(Input, { id: "roadworksSearch", name: "roadworksSearch", type: "text", placeholder: "Enter a search term", maxLength: 255, onChange: handleSearch, isFullWidth: true }),
|
|
24215
|
+
React.createElement(RoadworkList, null, filteredRoadworks.map(function (roadwork, index) {
|
|
24216
|
+
var startDate = new Date(roadwork.startTime);
|
|
24217
|
+
var endDate = new Date(roadwork.endTime);
|
|
24218
|
+
return (React.createElement(Roadwork, { key: index },
|
|
24219
|
+
React.createElement(IconContainer$2, null,
|
|
24220
|
+
React.createElement(DynamicIcon, { icon: "mappin" }),
|
|
24221
|
+
React.createElement(IconText, null,
|
|
24222
|
+
React.createElement(Heading, { text: roadwork.detailedLocation, level: 3 }))),
|
|
24223
|
+
React.createElement(IconContainer$2, null,
|
|
24224
|
+
React.createElement(DynamicIcon, { icon: "events" }),
|
|
24225
|
+
React.createElement(IconText, null,
|
|
24226
|
+
React.createElement("span", null, formatDate(startDate, endDate)))),
|
|
24227
|
+
React.createElement(IconContainer$2, null,
|
|
24228
|
+
React.createElement(DynamicIcon, { icon: "roadworks" }),
|
|
24229
|
+
React.createElement(IconText, null,
|
|
24230
|
+
React.createElement("span", null, roadwork.description))),
|
|
24231
|
+
React.createElement(IconContainer$2, null,
|
|
24232
|
+
React.createElement(DynamicIcon, { icon: "bollard" }),
|
|
24233
|
+
React.createElement(IconText, null,
|
|
24234
|
+
React.createElement("span", null, roadwork.trafficManagement)))));
|
|
24235
|
+
})),
|
|
24236
|
+
roadworks.length > 0 && filteredRoadworks.length === 0 && (React.createElement(NoMatches, null, "We couldn't find any results for your search term. Please try a different search.")),
|
|
24237
|
+
roadworks.length == 0 && (React.createElement(NoMatches, null, "Sorry, we're not able to find any results at the moment. Please try again later."))));
|
|
24238
|
+
};
|
|
24239
|
+
|
|
23972
24240
|
const Container$G = styled.div`
|
|
23973
24241
|
padding: 0;
|
|
23974
24242
|
margin: ${(props) => props.theme.theme_vars.spacingSizes.medium} 0;
|
|
@@ -24087,17 +24355,6 @@ const SubmitButton = styled.input`
|
|
|
24087
24355
|
}
|
|
24088
24356
|
`;
|
|
24089
24357
|
|
|
24090
|
-
/**
|
|
24091
|
-
* Primary UI component for user interaction
|
|
24092
|
-
* If value is set then treat as controlled component
|
|
24093
|
-
*/
|
|
24094
|
-
var Input = function (_a) {
|
|
24095
|
-
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;
|
|
24096
|
-
return (React.createElement(React.Fragment, null,
|
|
24097
|
-
errorText && React.createElement(ErrorText$1, null, errorText),
|
|
24098
|
-
typeof value !== 'undefined' ? (React.createElement(StyledInput, { onChange: onChange, type: type, placeholder: placeholder, name: name, "$isErrored": isErrored, maxLength: maxLength, value: value, id: id, autoComplete: autocomplete, "$isFullWidth": isFullWidth })) : (React.createElement(StyledInput, { onChange: onChange, type: type, placeholder: placeholder, name: name, "$isErrored": isErrored, maxLength: maxLength, defaultValue: defaultValue, id: id, autoComplete: autocomplete, "$isFullWidth": isFullWidth }))));
|
|
24099
|
-
};
|
|
24100
|
-
|
|
24101
24358
|
var CustomSearch = function (_a) {
|
|
24102
24359
|
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;
|
|
24103
24360
|
if (!id) {
|
|
@@ -24136,7 +24393,7 @@ var VideoProvider;
|
|
|
24136
24393
|
VideoProvider["Vimeo"] = "Vimeo";
|
|
24137
24394
|
})(VideoProvider || (VideoProvider = {}));
|
|
24138
24395
|
|
|
24139
|
-
const VideoContainer = styled.figure`
|
|
24396
|
+
const VideoContainer$1 = styled.figure`
|
|
24140
24397
|
display: block;
|
|
24141
24398
|
padding-top: 56.25%;
|
|
24142
24399
|
position: relative;
|
|
@@ -24196,7 +24453,7 @@ var Video = function (_a) {
|
|
|
24196
24453
|
useEffect(function () {
|
|
24197
24454
|
setNotServer(true);
|
|
24198
24455
|
}, []);
|
|
24199
|
-
return (React.createElement(React.Fragment, null, cookiesAccepted && notServer ? (React.createElement(VideoContainer, { "data-testid": "Video" },
|
|
24456
|
+
return (React.createElement(React.Fragment, null, cookiesAccepted && notServer ? (React.createElement(VideoContainer$1, { "data-testid": "Video" },
|
|
24200
24457
|
React.createElement("iframe", { src: embedLink, title: description, allow: "accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; fullscreen;", "data-testid": "VideoIframe" }))) : (React.createElement(VideoLink, { href: watchLink, title: description, "data-testid": "VideoLink" }, description))));
|
|
24201
24458
|
};
|
|
24202
24459
|
|
|
@@ -25065,6 +25322,17 @@ const FooterLink = styled.a`
|
|
|
25065
25322
|
-webkit-box-shadow: 0px -2px 0px 0px ${(props) => props.theme.theme_vars.colours.white} inset;
|
|
25066
25323
|
-moz-box-shadow: 0px -2px 0px 0px ${(props) => props.theme.theme_vars.colours.white} inset;
|
|
25067
25324
|
}
|
|
25325
|
+
&:focus:not(:focus-visible) {
|
|
25326
|
+
box-shadow: none;
|
|
25327
|
+
-webkit-box-shadow: none;
|
|
25328
|
+
-moz-box-shadow: none;
|
|
25329
|
+
}
|
|
25330
|
+
&:focus-visible {
|
|
25331
|
+
${(props) => props.theme.linkStylesFocus}
|
|
25332
|
+
box-shadow: 0px -2px 0px 0px ${(props) => props.theme.theme_vars.colours.white} inset;
|
|
25333
|
+
-webkit-box-shadow: 0px -2px 0px 0px ${(props) => props.theme.theme_vars.colours.white} inset;
|
|
25334
|
+
-moz-box-shadow: 0px -2px 0px 0px ${(props) => props.theme.theme_vars.colours.white} inset;
|
|
25335
|
+
}
|
|
25068
25336
|
&:active {
|
|
25069
25337
|
${(props) => props.theme.linkStylesActive}
|
|
25070
25338
|
box-shadow: 0px -1px 0px 0px ${(props) => props.theme.theme_vars.colours.white} inset;
|
|
@@ -25227,6 +25495,8 @@ const headerThemeStyles = (props) => {
|
|
|
25227
25495
|
const Container$w = styled.header`
|
|
25228
25496
|
font-family: ${(props) => props.theme.theme_vars.fontstack};
|
|
25229
25497
|
padding: 3px 0;
|
|
25498
|
+
position: sticky;
|
|
25499
|
+
z-index: 1;
|
|
25230
25500
|
${headerThemeStyles}
|
|
25231
25501
|
`;
|
|
25232
25502
|
|
|
@@ -25619,9 +25889,19 @@ var Header = function (_a) {
|
|
|
25619
25889
|
* Optimised for an image in 16:5 ratio on all but small width screens
|
|
25620
25890
|
*/
|
|
25621
25891
|
const Container$u = styled.div`
|
|
25622
|
-
background-image: ${(props) =>
|
|
25623
|
-
|
|
25624
|
-
url('${
|
|
25892
|
+
background-image: ${(props) => {
|
|
25893
|
+
const gradient = !props.$backgroundBox ? `linear-gradient(to bottom left, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.75))` : '';
|
|
25894
|
+
const imageUrl = props.$image && props.$image.trim() ? `url('${props.$image}')` : '';
|
|
25895
|
+
if (gradient && imageUrl) {
|
|
25896
|
+
return `${gradient}, ${imageUrl}`;
|
|
25897
|
+
} else if (gradient) {
|
|
25898
|
+
return gradient;
|
|
25899
|
+
} else if (imageUrl) {
|
|
25900
|
+
return imageUrl;
|
|
25901
|
+
} else {
|
|
25902
|
+
return 'none';
|
|
25903
|
+
}
|
|
25904
|
+
}};
|
|
25625
25905
|
|
|
25626
25906
|
padding-bottom: 10px;
|
|
25627
25907
|
background-position: center;
|
|
@@ -25652,6 +25932,7 @@ const InnerContainer = styled.div`
|
|
|
25652
25932
|
margin-right: auto;
|
|
25653
25933
|
margin-left: auto;
|
|
25654
25934
|
flex-grow: 1;
|
|
25935
|
+
z-index: 1;
|
|
25655
25936
|
|
|
25656
25937
|
@media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.l}) {
|
|
25657
25938
|
max-width: ${(props) => props.theme.theme_vars.breakpoints.l};
|
|
@@ -25773,16 +26054,95 @@ const Search = styled.div`
|
|
|
25773
26054
|
margin: ${(props) => props.theme.theme_vars.spacingSizes.medium} 0;
|
|
25774
26055
|
`;
|
|
25775
26056
|
|
|
26057
|
+
const VideoContainer = styled.div`
|
|
26058
|
+
position: absolute;
|
|
26059
|
+
width: 100%;
|
|
26060
|
+
@media screen and (max-width: ${(props) => props.theme.theme_vars.breakpoints.m}) {
|
|
26061
|
+
height: 580px;
|
|
26062
|
+
}
|
|
26063
|
+
@media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.m}) and (max-width: ${(props) => props.theme.theme_vars.breakpoints.l}) {
|
|
26064
|
+
height: 410px;
|
|
26065
|
+
}
|
|
26066
|
+
@media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.l}) {
|
|
26067
|
+
height: 560px;
|
|
26068
|
+
}
|
|
26069
|
+
@media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.xl}) {
|
|
26070
|
+
height: 636px;
|
|
26071
|
+
}
|
|
26072
|
+
`;
|
|
26073
|
+
|
|
26074
|
+
const VideoBackground = styled.video`
|
|
26075
|
+
position: absolute;
|
|
26076
|
+
width: 100%;
|
|
26077
|
+
height: 575px;
|
|
26078
|
+
object-fit: cover;
|
|
26079
|
+
@media screen and (max-width: ${(props) => props.theme.theme_vars.breakpoints.m}) {
|
|
26080
|
+
height: 590px;
|
|
26081
|
+
}
|
|
26082
|
+
@media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.m}) and (max-width: ${(props) => props.theme.theme_vars.breakpoints.l}) {
|
|
26083
|
+
height: 420px;
|
|
26084
|
+
}
|
|
26085
|
+
@media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.l}) {
|
|
26086
|
+
height: 568px;
|
|
26087
|
+
}
|
|
26088
|
+
@media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.xl}) {
|
|
26089
|
+
height: 645px;
|
|
26090
|
+
}
|
|
26091
|
+
`;
|
|
26092
|
+
|
|
26093
|
+
const PlayPauseButton = styled.button`
|
|
26094
|
+
position: absolute;
|
|
26095
|
+
display: none;
|
|
26096
|
+
@media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.l}) {
|
|
26097
|
+
bottom: 20px;
|
|
26098
|
+
right: 20px;
|
|
26099
|
+
display: flex;
|
|
26100
|
+
align-items: center;
|
|
26101
|
+
justify-content: center;
|
|
26102
|
+
z-index: 1;
|
|
26103
|
+
background: rgba(0, 0, 0, 0.5);
|
|
26104
|
+
border: 1px solid white;
|
|
26105
|
+
color: white;
|
|
26106
|
+
font-size: 32px;
|
|
26107
|
+
border-radius: 50%;
|
|
26108
|
+
width: 50px;
|
|
26109
|
+
height: 50px;
|
|
26110
|
+
cursor: pointer;
|
|
26111
|
+
&:hover {
|
|
26112
|
+
background: rgba(0, 0, 0, 0.7);
|
|
26113
|
+
}
|
|
26114
|
+
}
|
|
26115
|
+
`;
|
|
26116
|
+
|
|
25776
26117
|
/**
|
|
25777
26118
|
* Hero image banner with optional text and call to action with varying presentation of text area.
|
|
25778
26119
|
* For optional use at the top of a service landing page, if set in the CMS.
|
|
25779
26120
|
*/
|
|
25780
26121
|
var HeroImage = function (_a) {
|
|
25781
|
-
var headline = _a.headline, content = _a.content, callToActionText = _a.callToActionText, callToActionURL = _a.callToActionURL, _b = _a.callToActionIsPrimary, callToActionIsPrimary = _b === void 0 ? true : _b, _c = _a.backgroundBox, backgroundBox = _c === void 0 ? true : _c, imageLarge = _a.imageLarge, imageSmall = _a.imageSmall, imageAltText = _a.imageAltText, breadcrumb = _a.breadcrumb, customSearch = _a.customSearch;
|
|
26122
|
+
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;
|
|
26123
|
+
var _d = useState(true), isPlaying = _d[0], setIsPlaying = _d[1];
|
|
26124
|
+
var videoRef = useRef(null);
|
|
26125
|
+
var togglePlay = function () {
|
|
26126
|
+
if (videoRef.current) {
|
|
26127
|
+
if (isPlaying) {
|
|
26128
|
+
videoRef.current.pause();
|
|
26129
|
+
}
|
|
26130
|
+
else {
|
|
26131
|
+
videoRef.current.play();
|
|
26132
|
+
}
|
|
26133
|
+
setIsPlaying(!isPlaying);
|
|
26134
|
+
}
|
|
26135
|
+
};
|
|
25782
26136
|
return (React.createElement(React.Fragment, null,
|
|
25783
26137
|
React.createElement(LazyImage, { src: imageLarge, placeholder: imageSmall, visibilitySensorProps: {
|
|
25784
26138
|
partialVisibility: true,
|
|
25785
26139
|
} }, function (src) { return (React.createElement(Container$u, { "$image": src, "$backgroundBox": backgroundBox, "data-testid": "HeroImage" },
|
|
26140
|
+
heroVideoUrl && (React.createElement(React.Fragment, null,
|
|
26141
|
+
React.createElement(VideoContainer, null,
|
|
26142
|
+
React.createElement(VideoBackground, { ref: videoRef, autoPlay: true, loop: true, muted: true },
|
|
26143
|
+
React.createElement("source", { src: heroVideoUrl, type: "video/mp4" }),
|
|
26144
|
+
"Your browser doesn't support this video."),
|
|
26145
|
+
React.createElement(PlayPauseButton, { onClick: togglePlay }, isPlaying ? '⏸' : '▶')))),
|
|
25786
26146
|
React.createElement(InnerContainer, null,
|
|
25787
26147
|
React.createElement(Overlay, { "$backgroundBox": backgroundBox, "data-testid": "HeroImageOverlay" },
|
|
25788
26148
|
breadcrumb && (React.createElement(BreadcrumbLink, { href: breadcrumb.url, "$backgroundBox": backgroundBox }, breadcrumb.title)),
|
|
@@ -26990,7 +27350,10 @@ const Container$l = styled.main`
|
|
|
26990
27350
|
}
|
|
26991
27351
|
|
|
26992
27352
|
td > a:only-child {
|
|
26993
|
-
padding:
|
|
27353
|
+
padding: 12px 20px;
|
|
27354
|
+
display: inline-block;
|
|
27355
|
+
min-height: 44px;
|
|
27356
|
+
min-width: 44px;
|
|
26994
27357
|
}
|
|
26995
27358
|
|
|
26996
27359
|
td > a:not(:only-child) {
|
|
@@ -27876,10 +28239,12 @@ const ListItem = styled.li`
|
|
|
27876
28239
|
background-color: ${(props) => props.theme.theme_vars.colours.action_light};
|
|
27877
28240
|
color: ${(props) => props.theme.theme_vars.colours.black};
|
|
27878
28241
|
border-bottom-color: transparent;
|
|
27879
|
-
|
|
27880
28242
|
&:focus {
|
|
27881
28243
|
${focusListItem}
|
|
27882
28244
|
}
|
|
28245
|
+
&:focus-visible {
|
|
28246
|
+
${focusListItem}
|
|
28247
|
+
}
|
|
27883
28248
|
}
|
|
27884
28249
|
}
|
|
27885
28250
|
`;
|
|
@@ -27895,10 +28260,12 @@ const ListItemLink = styled.a`
|
|
|
27895
28260
|
transition: background-color 0.3s ease 0s;
|
|
27896
28261
|
background-color: ${(props) => props.theme.theme_vars.colours.action_light}80;
|
|
27897
28262
|
}
|
|
27898
|
-
|
|
27899
28263
|
&:focus {
|
|
27900
28264
|
${focusListItem}
|
|
27901
28265
|
}
|
|
28266
|
+
&:focus-visible {
|
|
28267
|
+
${focusListItem}
|
|
28268
|
+
}
|
|
27902
28269
|
&:active {
|
|
27903
28270
|
transform: translateY(1px);
|
|
27904
28271
|
box-shadow: 0px -1px 0px 0px ${(props) => props.theme.theme_vars.colours.black} inset;
|
|
@@ -30068,7 +30435,7 @@ var PhoneIcon = function (_a) {
|
|
|
30068
30435
|
};
|
|
30069
30436
|
|
|
30070
30437
|
var ServiceContact = function (_a) {
|
|
30071
|
-
var website = _a.website, email = _a.email, contacts = _a.contacts;
|
|
30438
|
+
var website = _a.website, email = _a.email, contacts = _a.contacts, websiteTitle = _a.websiteTitle;
|
|
30072
30439
|
var themeContext = useContext(ThemeContext);
|
|
30073
30440
|
return (React.createElement(Container$6, { "data-testid": "ServiceContact" },
|
|
30074
30441
|
React.createElement(Row$1, { hasWrap: false },
|
|
@@ -30076,7 +30443,7 @@ var ServiceContact = function (_a) {
|
|
|
30076
30443
|
React.createElement(IconContainer$1, null,
|
|
30077
30444
|
React.createElement(WebsiteIcon, { colourFill: themeContext.theme_vars.colours.black })),
|
|
30078
30445
|
React.createElement(Content$1, null,
|
|
30079
|
-
React.createElement(WebLink$1, { href: website }, website)))),
|
|
30446
|
+
React.createElement(WebLink$1, { href: website }, websiteTitle ? "".concat(websiteTitle) : website)))),
|
|
30080
30447
|
email && (React.createElement(Column, { small: "full", medium: "full", large: "auto", classes: "striped-contacts" },
|
|
30081
30448
|
React.createElement(IconContainer$1, null,
|
|
30082
30449
|
React.createElement(EmailIcon, { colourFill: themeContext.theme_vars.colours.black })),
|
|
@@ -30266,10 +30633,15 @@ var transformDescriptionDetails = function (accreditations, fees, service_areas,
|
|
|
30266
30633
|
};
|
|
30267
30634
|
var transformSnippet = function (description, extractLength) {
|
|
30268
30635
|
if (extractLength === void 0) { extractLength = 190; }
|
|
30269
|
-
|
|
30636
|
+
var sanitized = sanitizeHtml$1(description, {
|
|
30270
30637
|
allowedTags: [],
|
|
30271
30638
|
allowedAttributes: {},
|
|
30272
|
-
}).
|
|
30639
|
+
}).trim();
|
|
30640
|
+
if (!sanitized) {
|
|
30641
|
+
return '';
|
|
30642
|
+
}
|
|
30643
|
+
var snippet = sanitized.substr(0, extractLength);
|
|
30644
|
+
return sanitized.length > extractLength ? snippet + String.fromCharCode(8230) : snippet;
|
|
30273
30645
|
};
|
|
30274
30646
|
var transformTaxonomies = function (service_taxonomys, taxonomiesToShow) {
|
|
30275
30647
|
if (taxonomiesToShow === void 0) { taxonomiesToShow = []; }
|
|
@@ -30302,11 +30674,14 @@ var transformTaxonomies = function (service_taxonomys, taxonomiesToShow) {
|
|
|
30302
30674
|
var transformAge = function (age, ageInMonths) {
|
|
30303
30675
|
if (ageInMonths === void 0) { ageInMonths = false; }
|
|
30304
30676
|
if (age === 0) {
|
|
30305
|
-
return age;
|
|
30677
|
+
return age.toString();
|
|
30306
30678
|
}
|
|
30307
30679
|
if (ageInMonths) {
|
|
30308
30680
|
if (age > 36) {
|
|
30309
|
-
|
|
30681
|
+
if (age % 12 === 0) {
|
|
30682
|
+
return Math.ceil(age / 12) + ' years';
|
|
30683
|
+
}
|
|
30684
|
+
return Math.floor(age / 12) + ' years and ' + (age % 12) + (age % 12 === 1 ? ' month' : ' months');
|
|
30310
30685
|
}
|
|
30311
30686
|
return "".concat(age, " months");
|
|
30312
30687
|
}
|
|
@@ -30319,7 +30694,7 @@ const Container$5 = styled.div`
|
|
|
30319
30694
|
|
|
30320
30695
|
var DirectoryMap = function (_a) {
|
|
30321
30696
|
var _b, _c;
|
|
30322
|
-
var
|
|
30697
|
+
var _d = _a.allowCookies, allowCookies = _d === void 0 ? true : _d, mapProps = _a.mapProps;
|
|
30323
30698
|
var cookiesAccepted = wereCookiesAccepted(allowCookies);
|
|
30324
30699
|
var apiKey = (_b = process.env.NEXT_PUBLIC_GOOGLE_MAPS_API_KEY) !== null && _b !== void 0 ? _b : '';
|
|
30325
30700
|
var latLong = mapProps.centre.split(',');
|
|
@@ -30423,11 +30798,11 @@ var HeartIcon = function (_a) {
|
|
|
30423
30798
|
};
|
|
30424
30799
|
|
|
30425
30800
|
var DirectoryAddToShortList = function (_a) {
|
|
30426
|
-
var id = _a.id, name = _a.name, snippet = _a.snippet, email = _a.email, website = _a.website, phone = _a.phone;
|
|
30801
|
+
var id = _a.id, name = _a.name, snippet = _a.snippet, email = _a.email, website = _a.website, phone = _a.phone, addresses = _a.addresses, fees = _a.fees;
|
|
30427
30802
|
var _b = useDirectoryShortListContext(), toggleFavourites = _b.toggleFavourites, isFavourite = _b.isFavourite;
|
|
30428
30803
|
var themeContext = useContext(ThemeContext);
|
|
30429
30804
|
var favourite = isFavourite(id);
|
|
30430
|
-
return (React.createElement(AddToShortlist, { onClick: function (e) { return toggleFavourites(id, name, snippet, email, website, phone); }, "data-testid": "DirectoryAddToShortList", "$favourite": favourite },
|
|
30805
|
+
return (React.createElement(AddToShortlist, { onClick: function (e) { return toggleFavourites(id, name, snippet, email, website, phone, addresses, fees); }, "data-testid": "DirectoryAddToShortList", "$favourite": favourite },
|
|
30431
30806
|
favourite ? (React.createElement(IconDownload$1, { colourFill: themeContext.theme_vars.colours.negative })) : (React.createElement(HeartIcon, { colourFill: themeContext.theme_vars.colours.action })),
|
|
30432
30807
|
favourite ? React.createElement(React.Fragment, null, "Remove from shortlist") : React.createElement(React.Fragment, null, "Add to shortlist")));
|
|
30433
30808
|
};
|
|
@@ -30496,7 +30871,7 @@ var getIcon = function (profile) {
|
|
|
30496
30871
|
|
|
30497
30872
|
var DirectoryService = function (_a) {
|
|
30498
30873
|
var _b, _c, _d, _e;
|
|
30499
|
-
var id = _a.id, name = _a.name, accreditations = _a.accreditations, _f = _a.ageInMonths, ageInMonths = _f === void 0 ? false : _f, description = _a.description, descriptionElement = _a.descriptionElement, eligibilitys = _a.eligibilitys, email = _a.email, fees = _a.fees, languages = _a.languages, organization = _a.organization, regular_schedules = _a.regular_schedules, contacts = _a.contacts, service_areas = _a.service_areas, service_at_locations = _a.service_at_locations, service_social_profiles = _a.service_social_profiles, service_taxonomys = _a.service_taxonomys, taxonomiesToShow = _a.taxonomiesToShow, url = _a.url, uploads = _a.uploads, shortListPath = _a.shortListPath;
|
|
30874
|
+
var id = _a.id, name = _a.name, accreditations = _a.accreditations, _f = _a.ageInMonths, ageInMonths = _f === void 0 ? false : _f, description = _a.description, descriptionElement = _a.descriptionElement, eligibilitys = _a.eligibilitys, email = _a.email, fees = _a.fees, languages = _a.languages, organization = _a.organization, regular_schedules = _a.regular_schedules, contacts = _a.contacts, service_areas = _a.service_areas, service_at_locations = _a.service_at_locations, service_social_profiles = _a.service_social_profiles, service_taxonomys = _a.service_taxonomys, taxonomiesToShow = _a.taxonomiesToShow, url = _a.url, websiteUrlTitle = _a.websiteUrlTitle, uploads = _a.uploads, shortListPath = _a.shortListPath;
|
|
30500
30875
|
var labelLetters = ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L'];
|
|
30501
30876
|
var _g = useState(false), notServer = _g[0], setNotServer = _g[1];
|
|
30502
30877
|
var themeContext = useContext(ThemeContext);
|
|
@@ -30520,7 +30895,9 @@ var DirectoryService = function (_a) {
|
|
|
30520
30895
|
" Shortlist (",
|
|
30521
30896
|
favourites.length,
|
|
30522
30897
|
")")),
|
|
30523
|
-
React.createElement(DirectoryAddToShortList, { id: id, name: name, snippet: transformSnippet(description, 350), email: email, website: url, phone: (_c = (_b = contacts === null || contacts === void 0 ? void 0 : contacts[0]) === null || _b === void 0 ? void 0 : _b.phones) === null || _c === void 0 ? void 0 : _c.flatMap(function (phone) { return phone.number; }).join(', ')
|
|
30898
|
+
React.createElement(DirectoryAddToShortList, { id: id, name: name, snippet: transformSnippet(description, 350), email: email, website: url, phone: (_c = (_b = contacts === null || contacts === void 0 ? void 0 : contacts[0]) === null || _b === void 0 ? void 0 : _b.phones) === null || _c === void 0 ? void 0 : _c.flatMap(function (phone) { return phone.number; }).join(', '), addresses: service_at_locations.flatMap(function (location) {
|
|
30899
|
+
return location.physical_addresses;
|
|
30900
|
+
}), fees: fees })))))),
|
|
30524
30901
|
service_at_locations.filter(function (location) {
|
|
30525
30902
|
return location.is_visitable != false;
|
|
30526
30903
|
}).length > 0 && (React.createElement(Column, { small: "full", medium: "full", large: "full", classes: "striped-column" },
|
|
@@ -30535,7 +30912,7 @@ var DirectoryService = function (_a) {
|
|
|
30535
30912
|
.filter(function (item) { return item !== '' && item !== address.id; })
|
|
30536
30913
|
.join(' <br />'),
|
|
30537
30914
|
} }),
|
|
30538
|
-
React.createElement(Button$4, { url: "https://google.com/maps/dir//".concat(location.latitude, ",").concat(location.longitude), text: "Get directions" }))); }),
|
|
30915
|
+
location.latitude && location.longitude && (React.createElement(Button$4, { url: "https://google.com/maps/dir//".concat(location.latitude, ",").concat(location.longitude), text: "Get directions" })))); }),
|
|
30539
30916
|
(location === null || location === void 0 ? void 0 : location.accessibility_for_disabilities.length) > 0 && (React.createElement(React.Fragment, null,
|
|
30540
30917
|
React.createElement(Heading, { level: 3, text: "Other facilities on site" }),
|
|
30541
30918
|
React.createElement("ul", null, location.accessibility_for_disabilities.map(function (accessibility) { return (React.createElement("li", { key: accessibility.id }, accessibility.accessibility)); })))))); })),
|
|
@@ -30567,7 +30944,7 @@ var DirectoryService = function (_a) {
|
|
|
30567
30944
|
React.createElement(MapLink, { href: "https://www.google.com/maps/search/?api=1&query=".concat(service_at_locations[0].latitude, "%2C").concat(service_at_locations[0].longitude) }, "View in Google Maps"))))))),
|
|
30568
30945
|
(email || url || (contacts === null || contacts === void 0 ? void 0 : contacts.length) > 0) && (React.createElement(Column, { small: "full", medium: "full", large: "full", classes: "striped-column" },
|
|
30569
30946
|
React.createElement(Heading, { level: 2, text: "How to contact this service" }),
|
|
30570
|
-
React.createElement(ServiceContact, { email: email, website: url, contacts: contacts }))),
|
|
30947
|
+
React.createElement(ServiceContact, { email: email, website: url, websiteTitle: websiteUrlTitle, contacts: contacts }))),
|
|
30571
30948
|
React.createElement(Column, { small: "full", medium: "full", large: "full", classes: "striped-column" },
|
|
30572
30949
|
React.createElement(Heading, { level: 2, text: "Description" }),
|
|
30573
30950
|
React.createElement("div", null,
|
|
@@ -30580,7 +30957,7 @@ var DirectoryService = function (_a) {
|
|
|
30580
30957
|
React.createElement("table", null,
|
|
30581
30958
|
React.createElement("thead", null,
|
|
30582
30959
|
React.createElement("tr", null,
|
|
30583
|
-
React.createElement("th", { scope: "col" }, "
|
|
30960
|
+
React.createElement("th", { scope: "col" }, "Opening days"),
|
|
30584
30961
|
React.createElement("th", { scope: "col" }, "Opens"),
|
|
30585
30962
|
React.createElement("th", { scope: "col" }, "Closes"))),
|
|
30586
30963
|
React.createElement("tbody", null, regular_schedules === null || regular_schedules === void 0 ? void 0 : regular_schedules.map(function (schedule, scheduleIndex) { return (React.createElement("tr", { key: scheduleIndex },
|
|
@@ -30646,7 +31023,7 @@ styled.div`
|
|
|
30646
31023
|
color: ${(props) => props.theme.theme_vars.colours.grey_dark};
|
|
30647
31024
|
`;
|
|
30648
31025
|
|
|
30649
|
-
const ButtonContainer$
|
|
31026
|
+
const ButtonContainer$2 = styled.div`
|
|
30650
31027
|
display: flex;
|
|
30651
31028
|
align-items: end;
|
|
30652
31029
|
padding-bottom: 0;
|
|
@@ -30654,23 +31031,49 @@ const ButtonContainer$1 = styled.div`
|
|
|
30654
31031
|
`;
|
|
30655
31032
|
|
|
30656
31033
|
const Button$1 = styled.button`
|
|
30657
|
-
|
|
30658
|
-
|
|
30659
|
-
|
|
30660
|
-
|
|
30661
|
-
|
|
30662
|
-
|
|
30663
|
-
|
|
30664
|
-
|
|
31034
|
+
border: ${(props) => (props.$isWarning ? `3px` : `1px`)} solid
|
|
31035
|
+
${(props) => (props.$isWarning ? props.theme.theme_vars.colours.negative : props.theme.theme_vars.colours.white)};
|
|
31036
|
+
background: ${(props) =>
|
|
31037
|
+
props.$isWarning ? props.theme.theme_vars.colours.white : props.theme.theme_vars.colours.action};
|
|
31038
|
+
color: ${(props) =>
|
|
31039
|
+
props.$isWarning ? props.theme.theme_vars.colours.negative : props.theme.theme_vars.colours.white};
|
|
31040
|
+
padding: ${(props) => props.theme.theme_vars.spacingSizes.small};
|
|
31041
|
+
cursor: pointer;
|
|
31042
|
+
border-radius: ${(props) => props.theme.theme_vars.border_radius};
|
|
31043
|
+
min-height: 42px;
|
|
31044
|
+
margin-right: ${(props) => props.theme.theme_vars.spacingSizes.medium};
|
|
31045
|
+
font-weight: bold;
|
|
30665
31046
|
|
|
30666
|
-
|
|
30667
|
-
|
|
30668
|
-
|
|
31047
|
+
&:hover {
|
|
31048
|
+
background: ${(props) =>
|
|
31049
|
+
props.$isWarning ? props.theme.theme_vars.colours.action_light : props.theme.theme_vars.colours.action_dark};
|
|
31050
|
+
color: ${(props) =>
|
|
31051
|
+
props.$isWarning ? props.theme.theme_vars.colours.action_dark : props.theme.theme_vars.colours.white};
|
|
31052
|
+
text-decoration: underline;
|
|
31053
|
+
text-decoration-style: dotted;
|
|
31054
|
+
}
|
|
30669
31055
|
|
|
30670
|
-
|
|
30671
|
-
|
|
30672
|
-
|
|
30673
|
-
|
|
31056
|
+
&:focus {
|
|
31057
|
+
${(props) => props.theme.linkStylesFocus}
|
|
31058
|
+
}
|
|
31059
|
+
|
|
31060
|
+
&:active {
|
|
31061
|
+
${(props) => props.theme.linkStylesActive}
|
|
31062
|
+
}
|
|
31063
|
+
|
|
31064
|
+
${(props) => {
|
|
31065
|
+
if (props.size === 'large') {
|
|
31066
|
+
return `
|
|
31067
|
+
font-size: 16px;
|
|
31068
|
+
padding: 14px 24px;
|
|
31069
|
+
`;
|
|
31070
|
+
}
|
|
31071
|
+
}}
|
|
31072
|
+
|
|
31073
|
+
${(props) =>
|
|
31074
|
+
props.$isWarning && props.size === 'large' && `
|
|
31075
|
+
padding: 12px 24px;
|
|
31076
|
+
`}
|
|
30674
31077
|
`;
|
|
30675
31078
|
|
|
30676
31079
|
const ButtonText$1 = styled.span`
|
|
@@ -30750,28 +31153,29 @@ const Legend$1 = styled.legend`
|
|
|
30750
31153
|
`;
|
|
30751
31154
|
|
|
30752
31155
|
const LegendButton = styled.button`
|
|
30753
|
-
|
|
30754
|
-
|
|
30755
|
-
|
|
30756
|
-
|
|
30757
|
-
|
|
30758
|
-
|
|
30759
|
-
|
|
30760
|
-
|
|
30761
|
-
|
|
30762
|
-
|
|
30763
|
-
|
|
30764
|
-
|
|
30765
|
-
|
|
30766
|
-
|
|
30767
|
-
|
|
30768
|
-
|
|
30769
|
-
|
|
30770
|
-
|
|
30771
|
-
|
|
30772
|
-
|
|
30773
|
-
|
|
30774
|
-
|
|
31156
|
+
position: relative;
|
|
31157
|
+
background: none;
|
|
31158
|
+
border: none;
|
|
31159
|
+
color: ${(props) => props.theme.theme_vars.colours.action};
|
|
31160
|
+
width: 100%;
|
|
31161
|
+
white-space: normal;
|
|
31162
|
+
cursor: pointer;
|
|
31163
|
+
text-align: left;
|
|
31164
|
+
padding-right: 30px;
|
|
31165
|
+
padding-top: ${(props) => props.theme.theme_vars.spacingSizes.small};
|
|
31166
|
+
padding-bottom: ${(props) => props.theme.theme_vars.spacingSizes.small};
|
|
31167
|
+
${(props) => props.theme.theme_vars.h4}
|
|
31168
|
+
${(props) => props.theme.linkStyles}
|
|
31169
|
+
&:hover {
|
|
31170
|
+
${(props) => props.theme.linkStylesHover}
|
|
31171
|
+
}
|
|
31172
|
+
&:focus {
|
|
31173
|
+
${(props) => props.theme.linkStylesFocus}
|
|
31174
|
+
}
|
|
31175
|
+
&:active {
|
|
31176
|
+
${(props) => props.theme.linkStylesActive}
|
|
31177
|
+
}
|
|
31178
|
+
margin: 0;
|
|
30775
31179
|
`;
|
|
30776
31180
|
|
|
30777
31181
|
const AccordionIcon = styled.span`
|
|
@@ -30880,6 +31284,14 @@ const MapToggle = styled.button`
|
|
|
30880
31284
|
&:active {
|
|
30881
31285
|
${(props) => props.theme.linkStylesActive}
|
|
30882
31286
|
}
|
|
31287
|
+
${(props) => {
|
|
31288
|
+
if (props.size === 'large') {
|
|
31289
|
+
return `
|
|
31290
|
+
font-size: 16px;
|
|
31291
|
+
padding: 14px 24px;
|
|
31292
|
+
`;
|
|
31293
|
+
}
|
|
31294
|
+
}}
|
|
30883
31295
|
`;
|
|
30884
31296
|
|
|
30885
31297
|
const Favourites = styled.a`
|
|
@@ -31085,24 +31497,24 @@ var RadioCheckboxInput = function (_a) {
|
|
|
31085
31497
|
};
|
|
31086
31498
|
|
|
31087
31499
|
var DirectoryServiceList = function (_a) {
|
|
31088
|
-
var directoryPath = _a.directoryPath, shortListPath = _a.shortListPath, services = _a.services, _b = _a.search, search = _b === void 0 ? '' : _b, setSearch = _a.setSearch, _c = _a.postcode, postcode =
|
|
31089
|
-
var
|
|
31090
|
-
var
|
|
31091
|
-
var
|
|
31092
|
-
var
|
|
31093
|
-
var
|
|
31094
|
-
var
|
|
31095
|
-
var
|
|
31096
|
-
var
|
|
31500
|
+
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;
|
|
31501
|
+
var _u = useLocalStorage("".concat(directoryPath.replace(/\//g, ''), "-accordion"), []), accordions = _u[0], setAccordions = _u[1];
|
|
31502
|
+
var _v = useLocalStorage("".concat(directoryPath.replace(/\//g, ''), "-accordion-all"), true), openAll = _v[0], setOpenAll = _v[1];
|
|
31503
|
+
var _w = useLocalStorage("".concat(directoryPath.replace(/\//g, ''), "-show-map"), false), showMap = _w[0], setShowMap = _w[1];
|
|
31504
|
+
var _x = useState(false), showFilters = _x[0], setShowFilters = _x[1];
|
|
31505
|
+
var _y = useDirectoryShortListContext(), _z = _y.favourites, favourites = _z.favourites; _z.setFavourites; _y.toggleFavourites; _y.isFavourite;
|
|
31506
|
+
var _0 = useState(false), notServer = _0[0], setNotServer = _0[1];
|
|
31507
|
+
var _1 = useState(search), searchTerm = _1[0], setSearchTerm = _1[1];
|
|
31508
|
+
var _2 = useState(postcode), postcodeSearch = _2[0], setPostcodeSearch = _2[1];
|
|
31097
31509
|
var themeContext = useContext(ThemeContext);
|
|
31098
|
-
var
|
|
31510
|
+
var _3 = useState(false), filtersActive = _3[0], setFiltersActive = _3[1];
|
|
31099
31511
|
useEffect(function () {
|
|
31100
31512
|
setNotServer(true);
|
|
31101
31513
|
setFiltersActive(hasActiveFilters());
|
|
31102
31514
|
}, []);
|
|
31103
31515
|
useEffect(function () {
|
|
31104
31516
|
setFiltersActive(hasActiveFilters());
|
|
31105
|
-
}, [minimumAge, maximumAge, categories]);
|
|
31517
|
+
}, [minimumAge, maximumAge, categories, search, postcode]);
|
|
31106
31518
|
if (accordions.length === 0) {
|
|
31107
31519
|
var tempAccordions_1 = [];
|
|
31108
31520
|
categories === null || categories === void 0 ? void 0 : categories.forEach(function () {
|
|
@@ -31180,7 +31592,7 @@ var DirectoryServiceList = function (_a) {
|
|
|
31180
31592
|
lat: parseFloat((_a = service.service_at_locations[0]) === null || _a === void 0 ? void 0 : _a.latitude),
|
|
31181
31593
|
lng: parseFloat((_b = service.service_at_locations[0]) === null || _b === void 0 ? void 0 : _b.longitude),
|
|
31182
31594
|
label: labelLetters[index],
|
|
31183
|
-
title: "<a href
|
|
31595
|
+
title: "<a href=".concat(service.id, ">").concat(service.name, "</a>"),
|
|
31184
31596
|
};
|
|
31185
31597
|
}),
|
|
31186
31598
|
};
|
|
@@ -31197,7 +31609,9 @@ var DirectoryServiceList = function (_a) {
|
|
|
31197
31609
|
}
|
|
31198
31610
|
};
|
|
31199
31611
|
var hasActiveFilters = function () {
|
|
31200
|
-
return (
|
|
31612
|
+
return (search !== '' ||
|
|
31613
|
+
postcode !== '' ||
|
|
31614
|
+
maximumAge !== '' ||
|
|
31201
31615
|
minimumAge !== '' ||
|
|
31202
31616
|
categories.some(function (category) {
|
|
31203
31617
|
return category.options.some(function (option) {
|
|
@@ -31213,21 +31627,23 @@ var DirectoryServiceList = function (_a) {
|
|
|
31213
31627
|
React.createElement(Row$1, null,
|
|
31214
31628
|
React.createElement(Column, { small: "full", medium: "one-half", large: "one-third" },
|
|
31215
31629
|
React.createElement(Label$1, { htmlFor: "directorySearch" }, "What are you looking for?"),
|
|
31216
|
-
React.createElement(HintText, { text: "Enter
|
|
31630
|
+
React.createElement(HintText, { text: "Enter the name of a specific organisation" }),
|
|
31217
31631
|
React.createElement(Input, { name: "directorySearch", type: "text", defaultValue: searchTerm, id: "directorySearch", onChange: function (e) {
|
|
31218
31632
|
setSearchTerm(e.target.value);
|
|
31219
31633
|
} })),
|
|
31220
|
-
React.createElement(Column, { small: "full", medium: "one-half", large: "one-third" },
|
|
31634
|
+
showPostcodeSearch && (React.createElement(Column, { small: "full", medium: "one-half", large: "one-third" },
|
|
31221
31635
|
React.createElement(Label$1, { htmlFor: "postcode" }, "Postcode (optional)"),
|
|
31222
|
-
React.createElement(HintText, { text: "Enter a postcode" }),
|
|
31223
|
-
React.createElement(Input, { name: "postcode", type: "text", defaultValue: postcodeSearch, id: "postcode", onChange: function (e) { return setPostcodeSearch(e.target.value); }, autocomplete: "postal-code" })),
|
|
31636
|
+
React.createElement(HintText, { text: "Enter a postcode to see results within ".concat(proximity, " miles") }),
|
|
31637
|
+
React.createElement(Input, { name: "postcode", type: "text", defaultValue: postcodeSearch, id: "postcode", onChange: function (e) { return setPostcodeSearch(e.target.value); }, autocomplete: "postal-code" }))),
|
|
31224
31638
|
React.createElement(Column, { small: "full", medium: "one-half", large: "one-third" },
|
|
31225
|
-
React.createElement(ButtonContainer$
|
|
31226
|
-
React.createElement(Button$1, { onClick: submitSearch, type: "submit" },
|
|
31639
|
+
React.createElement(ButtonContainer$2, null,
|
|
31640
|
+
React.createElement(Button$1, { size: "large", onClick: submitSearch, type: "submit" },
|
|
31227
31641
|
React.createElement(ButtonText$1, null, "Search"),
|
|
31228
|
-
React.createElement(IconDownload, { colourFill: "#fff" }))
|
|
31642
|
+
React.createElement(IconDownload, { colourFill: "#fff" })),
|
|
31643
|
+
filtersActive && (React.createElement(Button$1, { size: "large", onClick: clearSearch, type: "button", "$isWarning": true },
|
|
31644
|
+
React.createElement(ButtonText$1, null, "Clear search"))))),
|
|
31229
31645
|
hasDocuments && (React.createElement(Column, { small: "full", medium: "full", large: "full" },
|
|
31230
|
-
React.createElement(Button$4, { url: "".concat(directoryPath, "/documents?search=").concat(searchTerm), text: "View documents and resources", primary: false }))))))),
|
|
31646
|
+
React.createElement(Button$4, { url: "".concat(directoryPath, "/documents?search=").concat(searchTerm), text: "View documents and resources", primary: false, size: "large" }))))))),
|
|
31231
31647
|
React.createElement(Column, { small: "full", medium: "one-third", large: "one-third" },
|
|
31232
31648
|
React.createElement(FilterToggle, { type: "button", onClick: function (e) { return setShowFilters(!showFilters); } }, showFilters ? "Hide Filters" : "Show Filters"),
|
|
31233
31649
|
React.createElement(FilterContainer, { "$showFilters": showFilters },
|
|
@@ -31263,14 +31679,16 @@ var DirectoryServiceList = function (_a) {
|
|
|
31263
31679
|
React.createElement(Legend$1, null,
|
|
31264
31680
|
React.createElement(LegendButton, { onClick: function (e) { return toggleAccordion(categoryIndex + 1); }, type: "button" },
|
|
31265
31681
|
category.label,
|
|
31266
|
-
React.createElement(AccordionIcon, { isOpen: accordions[categoryIndex + 1] }))),
|
|
31682
|
+
React.createElement(AccordionIcon, { "$isOpen": accordions[categoryIndex + 1] }))),
|
|
31267
31683
|
React.createElement(Accordion, { "$isOpen": accordions[categoryIndex + 1] },
|
|
31268
31684
|
React.createElement(ClearFilter$1, null,
|
|
31269
31685
|
React.createElement(TextLink$1, { onClick: function (e) { return clearCategory(categoryIndex); } }, "Clear filter")),
|
|
31270
31686
|
category.options.map(function (taxonomy) { return (React.createElement(Category$2, { key: taxonomy.id },
|
|
31271
31687
|
React.createElement(RadioCheckboxInput, { name: taxonomy.vocabulary, value: taxonomy.id, label: taxonomy.name, singleSelection: category.singleSelection, checked: taxonomy.checked, onChange: function (e) { return optionChecked(e, categoryIndex, category.singleSelection); } }))); }))))); })))))),
|
|
31272
31688
|
React.createElement(Column, { small: "full", medium: "two-thirds", large: "two-thirds" },
|
|
31273
|
-
React.createElement(Row$1, null,
|
|
31689
|
+
React.createElement(Row$1, null, isError ? (React.createElement(Column, { small: "full", medium: "full", large: "full" },
|
|
31690
|
+
React.createElement(AlertBannerService, null,
|
|
31691
|
+
React.createElement("p", null, "Sorry, there was a problem fetching results. Please try again later.")))) : isLoading ? (React.createElement(LoadingContainer$1, null,
|
|
31274
31692
|
React.createElement(LoadingSpinner, null),
|
|
31275
31693
|
React.createElement("p", null, "Loading"))) : (React.createElement(React.Fragment, null,
|
|
31276
31694
|
React.createElement(Column, { small: "full", medium: "full", large: "full" },
|
|
@@ -31282,7 +31700,7 @@ var DirectoryServiceList = function (_a) {
|
|
|
31282
31700
|
" out of ",
|
|
31283
31701
|
totalResults.toLocaleString())) : (React.createElement(ResultInfo$1, null, "No results found")),
|
|
31284
31702
|
React.createElement(FavouritesContainer, null,
|
|
31285
|
-
(services === null || services === void 0 ? void 0 : services.length) > 0 && (React.createElement(MapToggle, { type: "button", onClick: function (e) { return setShowMap(!showMap); } }, showMap ? "Hide Map" : "Show Map")),
|
|
31703
|
+
(services === null || services === void 0 ? void 0 : services.length) > 0 && (React.createElement(MapToggle, { type: "button", size: "large", onClick: function (e) { return setShowMap(!showMap); } }, showMap ? "Hide Map" : "Show Map")),
|
|
31286
31704
|
React.createElement(Favourites, { href: shortListPath },
|
|
31287
31705
|
React.createElement(HeartIcon, { colourFill: themeContext.theme_vars.colours.action }),
|
|
31288
31706
|
" Shortlist (",
|
|
@@ -31292,14 +31710,14 @@ var DirectoryServiceList = function (_a) {
|
|
|
31292
31710
|
React.createElement(Pagination, { currentPage: pageNumber, totalResults: totalResults, resultsPerPage: perPage, postTo: directoryPath, buttonClickOverride: setPageNumber })),
|
|
31293
31711
|
React.createElement(Column, { small: "full", medium: "full", large: "full" }, notServer && React.createElement(React.Fragment, null, (services === null || services === void 0 ? void 0 : services.length) > 0 && showMap && React.createElement(DirectoryMap, { mapProps: mapProps }))),
|
|
31294
31712
|
services.map(function (service, index) {
|
|
31295
|
-
var _a, _b, _c, _d, _e, _f;
|
|
31713
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
31296
31714
|
var snippet = transformSnippet(service.description, extractLength);
|
|
31297
31715
|
return (React.createElement(Column, { small: "full", medium: "full", large: "full", key: service.id },
|
|
31298
31716
|
React.createElement(ServiceContainer, { "$resultNumber": index },
|
|
31299
31717
|
React.createElement(Row$1, null,
|
|
31300
31718
|
React.createElement(Column, { small: "full", medium: "full", large: "full" },
|
|
31301
31719
|
React.createElement(ServiceHeader, null,
|
|
31302
|
-
React.createElement(ServiceLink$1, { href: "".concat(
|
|
31720
|
+
React.createElement(ServiceLink$1, { href: "".concat(service.id) }, service.name),
|
|
31303
31721
|
showMap && (React.createElement(MarkerContainer, null,
|
|
31304
31722
|
React.createElement("span", null, labelLetters[index]),
|
|
31305
31723
|
React.createElement(PinIcon, { colourFill: themeContext.theme_vars.colours.action_dark }))))),
|
|
@@ -31315,7 +31733,9 @@ var DirectoryServiceList = function (_a) {
|
|
|
31315
31733
|
' ',
|
|
31316
31734
|
transformAge(eligibility.maximum_age, ageInMonths))); })))),
|
|
31317
31735
|
React.createElement(Column, { small: "full", medium: "full", large: "full" },
|
|
31318
|
-
React.createElement(DirectoryAddToShortList, { id: service.id, name: service.name, snippet: snippet, email: service.email, website: service.url, phone: (_f = (_e = (_d = service.contacts) === null || _d === void 0 ? void 0 : _d[0]) === null || _e === void 0 ? void 0 : _e.phones) === null || _f === void 0 ? void 0 : _f.flatMap(function (phone) { return phone.number; }).join(', ')
|
|
31736
|
+
React.createElement(DirectoryAddToShortList, { id: service.id, name: service.name, snippet: snippet, email: service.email, website: service.url, phone: (_f = (_e = (_d = service.contacts) === null || _d === void 0 ? void 0 : _d[0]) === null || _e === void 0 ? void 0 : _e.phones) === null || _f === void 0 ? void 0 : _f.flatMap(function (phone) { return phone.number; }).join(', '), addresses: (_g = service.service_at_locations) === null || _g === void 0 ? void 0 : _g.flatMap(function (location) {
|
|
31737
|
+
return location.physical_addresses;
|
|
31738
|
+
}), fees: service.fees }))))));
|
|
31319
31739
|
}),
|
|
31320
31740
|
React.createElement(Column, { small: "full", medium: "full", large: "full" },
|
|
31321
31741
|
React.createElement(Pagination, { currentPage: pageNumber, totalResults: totalResults, resultsPerPage: perPage, postTo: directoryPath, buttonClickOverride: setPageNumber })))))))));
|
|
@@ -31323,71 +31743,96 @@ var DirectoryServiceList = function (_a) {
|
|
|
31323
31743
|
|
|
31324
31744
|
const Container$1 = styled.div`
|
|
31325
31745
|
display: block;
|
|
31746
|
+
|
|
31747
|
+
@media print {
|
|
31748
|
+
font-size: ${(props) => props.theme.theme_vars.fontSizes.extra_small} !important;
|
|
31749
|
+
[data-testid='Column'] {
|
|
31750
|
+
padding: ${(props) => props.theme.theme_vars.spacingSizes.extra_small} !important;
|
|
31751
|
+
}
|
|
31752
|
+
|
|
31753
|
+
.favourite-outer:nth-of-type(2n + 1) {
|
|
31754
|
+
page-break-after: always;
|
|
31755
|
+
}
|
|
31756
|
+
|
|
31757
|
+
.favourite-outer:last-of-type {
|
|
31758
|
+
page-break-after: avoid !important;
|
|
31759
|
+
}
|
|
31760
|
+
}
|
|
31326
31761
|
`;
|
|
31327
31762
|
|
|
31328
31763
|
const ServiceLink = styled.a`
|
|
31329
|
-
|
|
31330
|
-
|
|
31331
|
-
|
|
31332
|
-
|
|
31333
|
-
|
|
31334
|
-
|
|
31335
|
-
|
|
31336
|
-
|
|
31337
|
-
|
|
31338
|
-
|
|
31339
|
-
|
|
31340
|
-
|
|
31341
|
-
|
|
31764
|
+
display: block;
|
|
31765
|
+
margin-bottom: ${(props) => props.theme.theme_vars.spacingSizes.small};
|
|
31766
|
+
${(props) => props.theme.theme_vars.h4}
|
|
31767
|
+
${(props) => props.theme.linkStyles}
|
|
31768
|
+
&:hover {
|
|
31769
|
+
${(props) => props.theme.linkStylesHover}
|
|
31770
|
+
}
|
|
31771
|
+
&:focus {
|
|
31772
|
+
${(props) => props.theme.linkStylesFocus}
|
|
31773
|
+
}
|
|
31774
|
+
&:active {
|
|
31775
|
+
${(props) => props.theme.linkStylesActive}
|
|
31776
|
+
}
|
|
31342
31777
|
|
|
31343
|
-
|
|
31344
|
-
|
|
31345
|
-
|
|
31346
|
-
|
|
31778
|
+
@media print {
|
|
31779
|
+
color: ${(props) => props.theme.theme_vars.colours.black} !important;
|
|
31780
|
+
text-decoration: none !important;
|
|
31781
|
+
font-size: ${(props) => props.theme.theme_vars.fontSizes.small};
|
|
31782
|
+
margin-bottom: 0;
|
|
31783
|
+
}
|
|
31347
31784
|
`;
|
|
31348
31785
|
|
|
31349
31786
|
const PrintLink = styled.div`
|
|
31350
|
-
p {
|
|
31351
|
-
display: none;
|
|
31352
|
-
}
|
|
31353
|
-
|
|
31354
|
-
@media print {
|
|
31355
31787
|
p {
|
|
31356
|
-
|
|
31788
|
+
display: none;
|
|
31789
|
+
}
|
|
31790
|
+
|
|
31791
|
+
@media print {
|
|
31792
|
+
p {
|
|
31793
|
+
display: none;
|
|
31794
|
+
margin-bottom: 0 !important;
|
|
31795
|
+
}
|
|
31357
31796
|
}
|
|
31797
|
+
`;
|
|
31798
|
+
|
|
31799
|
+
const SnippetContainer = styled.div`
|
|
31800
|
+
@media print {
|
|
31801
|
+
display: flex;
|
|
31802
|
+
flex-wrap: nowrap;
|
|
31358
31803
|
}
|
|
31359
31804
|
`;
|
|
31360
31805
|
|
|
31361
31806
|
const QRCodeContainer = styled.div`
|
|
31362
|
-
|
|
31363
|
-
|
|
31364
|
-
display: none;
|
|
31365
|
-
float: right;
|
|
31807
|
+
max-width: 80px;
|
|
31808
|
+
display: none;
|
|
31366
31809
|
|
|
31367
|
-
|
|
31368
|
-
|
|
31369
|
-
|
|
31810
|
+
@media print {
|
|
31811
|
+
display: block;
|
|
31812
|
+
margin-left: ${(props) => props.theme.theme_vars.spacingSizes.small};
|
|
31813
|
+
}
|
|
31370
31814
|
`;
|
|
31371
31815
|
|
|
31372
31816
|
const FavouriteContainer = styled.div`
|
|
31373
|
-
|
|
31374
|
-
|
|
31375
|
-
|
|
31376
|
-
|
|
31377
|
-
|
|
31378
|
-
|
|
31379
|
-
|
|
31380
|
-
|
|
31381
|
-
|
|
31817
|
+
background: ${(props) =>
|
|
31818
|
+
props.theme.cardinal_name === 'north'
|
|
31819
|
+
? props.theme.theme_vars.colours.white
|
|
31820
|
+
: props.theme.theme_vars.colours.grey_light};
|
|
31821
|
+
box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.08);
|
|
31822
|
+
transition: box-shadow 0.3s ease;
|
|
31823
|
+
border-bottom: 5px solid ${(props) => props.theme.theme_vars.colours.action};
|
|
31824
|
+
border-radius: ${(props) => props.theme.theme_vars.border_radius};
|
|
31825
|
+
padding: ${(props) => props.theme.theme_vars.spacingSizes.medium};
|
|
31382
31826
|
|
|
31383
|
-
|
|
31384
|
-
|
|
31385
|
-
|
|
31386
|
-
|
|
31387
|
-
|
|
31827
|
+
@media print {
|
|
31828
|
+
box-shadow: none;
|
|
31829
|
+
border: 1px solid ${(props) => props.theme.theme_vars.colours.grey};
|
|
31830
|
+
background: none;
|
|
31831
|
+
padding: 0 ${(props) => props.theme.theme_vars.spacingSizes.small};
|
|
31832
|
+
}
|
|
31388
31833
|
`;
|
|
31389
31834
|
|
|
31390
|
-
const
|
|
31835
|
+
const ButtonContainer$1 = styled.div`
|
|
31391
31836
|
display: flex;
|
|
31392
31837
|
justify-content: flex-end;
|
|
31393
31838
|
|
|
@@ -31396,7 +31841,7 @@ const PrintContainer = styled.div`
|
|
|
31396
31841
|
}
|
|
31397
31842
|
`;
|
|
31398
31843
|
|
|
31399
|
-
const
|
|
31844
|
+
const ActionButton = styled.button`
|
|
31400
31845
|
border: 2px solid ${(props) => props.theme.theme_vars.colours.action};
|
|
31401
31846
|
border-radius: ${(props) => props.theme.theme_vars.border_radius};
|
|
31402
31847
|
background: ${(props) => props.theme.theme_vars.colours.action};
|
|
@@ -31408,6 +31853,7 @@ const PrintButton = styled.button`
|
|
|
31408
31853
|
flex-direction: row;
|
|
31409
31854
|
justify-content: flex-start;
|
|
31410
31855
|
align-items: center;
|
|
31856
|
+
margin-left: ${(props) => props.theme.theme_vars.spacingSizes.medium};
|
|
31411
31857
|
&:hover {
|
|
31412
31858
|
${(props) => props.theme.linkStylesHover}
|
|
31413
31859
|
color: ${(props) => props.theme.theme_vars.colours.white};
|
|
@@ -31430,6 +31876,53 @@ const AddContainer = styled.div`
|
|
|
31430
31876
|
}
|
|
31431
31877
|
`;
|
|
31432
31878
|
|
|
31879
|
+
const SubTitle = styled.p`
|
|
31880
|
+
font-weight: bold;
|
|
31881
|
+
margin-top: ${(props) => props.theme.theme_vars.spacingSizes.medium};
|
|
31882
|
+
`;
|
|
31883
|
+
|
|
31884
|
+
const ClearShortlistButton = styled.button`
|
|
31885
|
+
border: 1px solid ${(props) => props.theme.theme_vars.colours.negative};
|
|
31886
|
+
background: ${(props) => props.theme.theme_vars.colours.white};
|
|
31887
|
+
color: ${(props) => props.theme.theme_vars.colours.negative};
|
|
31888
|
+
padding: ${(props) => props.theme.theme_vars.spacingSizes.small};
|
|
31889
|
+
cursor: pointer;
|
|
31890
|
+
border-radius: ${(props) => props.theme.theme_vars.border_radius};
|
|
31891
|
+
min-height: 42px;
|
|
31892
|
+
font-weight: bold;
|
|
31893
|
+
|
|
31894
|
+
&:hover {
|
|
31895
|
+
background: ${(props) => props.theme.theme_vars.colours.action_light};
|
|
31896
|
+
color: ${(props) => props.theme.theme_vars.colours.action_dark};
|
|
31897
|
+
text-decoration: underline;
|
|
31898
|
+
text-decoration-style: dotted;
|
|
31899
|
+
}
|
|
31900
|
+
|
|
31901
|
+
&:focus {
|
|
31902
|
+
${(props) => props.theme.linkStylesFocus}
|
|
31903
|
+
}
|
|
31904
|
+
|
|
31905
|
+
&:active {
|
|
31906
|
+
${(props) => props.theme.linkStylesActive}
|
|
31907
|
+
}
|
|
31908
|
+
`;
|
|
31909
|
+
|
|
31910
|
+
const AddressContainer = styled.div`
|
|
31911
|
+
display: block;
|
|
31912
|
+
|
|
31913
|
+
@media print {
|
|
31914
|
+
display: none;
|
|
31915
|
+
}
|
|
31916
|
+
`;
|
|
31917
|
+
|
|
31918
|
+
const PrintAddress = styled.div`
|
|
31919
|
+
display: none;
|
|
31920
|
+
|
|
31921
|
+
@media print {
|
|
31922
|
+
display: block;
|
|
31923
|
+
}
|
|
31924
|
+
`;
|
|
31925
|
+
|
|
31433
31926
|
var lib = {};
|
|
31434
31927
|
|
|
31435
31928
|
var mode$1 = {
|
|
@@ -32789,32 +33282,82 @@ QRCode.defaultProps = defaultProps;
|
|
|
32789
33282
|
var _default = lib.default = QRCode;
|
|
32790
33283
|
|
|
32791
33284
|
var DirectoryShortList = function (_a) {
|
|
32792
|
-
|
|
32793
|
-
var
|
|
32794
|
-
var
|
|
33285
|
+
_a.directoryPath;
|
|
33286
|
+
var _b = useDirectoryShortListContext(), favourites = _b.favourites.favourites, clearShortlist = _b.clearShortlist;
|
|
33287
|
+
var _c = useState(false), notServer = _c[0], setNotServer = _c[1];
|
|
32795
33288
|
useEffect(function () {
|
|
32796
33289
|
setNotServer(true);
|
|
32797
33290
|
}, []);
|
|
33291
|
+
var confirmClear = function () {
|
|
33292
|
+
if (window.confirm('Are you sure you want to clear your shortlist?')) {
|
|
33293
|
+
clearShortlist();
|
|
33294
|
+
}
|
|
33295
|
+
};
|
|
33296
|
+
var formatAddress = function (address) {
|
|
33297
|
+
return Object.values(address)
|
|
33298
|
+
.filter(function (item) { return item !== '' && item !== address.id && item !== address.country; })
|
|
33299
|
+
.join(', ');
|
|
33300
|
+
};
|
|
33301
|
+
var copyToClipboard = function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
33302
|
+
var data;
|
|
33303
|
+
return __generator(this, function (_b) {
|
|
33304
|
+
switch (_b.label) {
|
|
33305
|
+
case 0:
|
|
33306
|
+
data = favourites.map(function (favourite) {
|
|
33307
|
+
var _a, _b, _c, _d;
|
|
33308
|
+
var address = favourite.addresses.length > 0 ? formatAddress(favourite.addresses[0]) : '';
|
|
33309
|
+
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 ");
|
|
33310
|
+
});
|
|
33311
|
+
_b.label = 1;
|
|
33312
|
+
case 1:
|
|
33313
|
+
_b.trys.push([1, 3, , 4]);
|
|
33314
|
+
return [4 /*yield*/, navigator.clipboard.writeText(data.join('')).then(function () {
|
|
33315
|
+
window.alert('Copied to clipboard');
|
|
33316
|
+
})];
|
|
33317
|
+
case 2:
|
|
33318
|
+
_b.sent();
|
|
33319
|
+
return [3 /*break*/, 4];
|
|
33320
|
+
case 3:
|
|
33321
|
+
_b.sent();
|
|
33322
|
+
window.alert('Unable to copy');
|
|
33323
|
+
return [3 /*break*/, 4];
|
|
33324
|
+
case 4: return [2 /*return*/];
|
|
33325
|
+
}
|
|
33326
|
+
});
|
|
33327
|
+
}); };
|
|
32798
33328
|
return (React.createElement(Container$1, { "data-testid": "DirectoryShortList" }, notServer && (React.createElement(Row$1, null, favourites.length > 0 ? (React.createElement(React.Fragment, null,
|
|
32799
33329
|
React.createElement(Column, { small: "full", medium: "full", large: "full" },
|
|
32800
|
-
React.createElement(
|
|
32801
|
-
React.createElement(
|
|
32802
|
-
|
|
32803
|
-
|
|
32804
|
-
|
|
32805
|
-
|
|
32806
|
-
|
|
32807
|
-
|
|
32808
|
-
|
|
32809
|
-
React.createElement(
|
|
32810
|
-
React.createElement(
|
|
32811
|
-
|
|
32812
|
-
|
|
32813
|
-
|
|
32814
|
-
|
|
32815
|
-
|
|
32816
|
-
|
|
32817
|
-
|
|
33330
|
+
React.createElement(ButtonContainer$1, null,
|
|
33331
|
+
React.createElement(ClearShortlistButton, { onClick: confirmClear }, "Clear Shortlist"),
|
|
33332
|
+
React.createElement(ActionButton, { onClick: copyToClipboard }, "Copy To Clipboard"),
|
|
33333
|
+
React.createElement(ActionButton, { onClick: function () { return window.print(); } }, "Print Shortlist"))),
|
|
33334
|
+
favourites.map(function (favourite) {
|
|
33335
|
+
var _a, _b;
|
|
33336
|
+
return (React.createElement(Column, { key: favourite.id, small: "full", medium: "full", large: "full", classes: "favourite-outer" },
|
|
33337
|
+
React.createElement(FavouriteContainer, null,
|
|
33338
|
+
React.createElement(Row$1, null,
|
|
33339
|
+
React.createElement(Column, { small: "full", medium: "full", large: "full" },
|
|
33340
|
+
React.createElement(ServiceLink, { href: "".concat(favourite.id) }, favourite.name),
|
|
33341
|
+
React.createElement(PrintLink, null,
|
|
33342
|
+
React.createElement("p", null, "".concat(favourite.id)))),
|
|
33343
|
+
React.createElement(Column, { small: "full", medium: "full", large: "one-half" },
|
|
33344
|
+
React.createElement(SnippetContainer, null,
|
|
33345
|
+
React.createElement("div", null, favourite.snippet),
|
|
33346
|
+
React.createElement(QRCodeContainer, null,
|
|
33347
|
+
React.createElement(_default, { value: "".concat(favourite.id), size: 256, style: { height: 'auto', maxWidth: '100%', width: '100%' }, viewBox: "0 0 256 256" }))),
|
|
33348
|
+
((_a = favourite.addresses) === null || _a === void 0 ? void 0 : _a.length) > 0 && (React.createElement(React.Fragment, null,
|
|
33349
|
+
React.createElement(AddressContainer, null,
|
|
33350
|
+
React.createElement(SubTitle, null, "Address"),
|
|
33351
|
+
((_b = favourite.addresses) === null || _b === void 0 ? void 0 : _b.length) === 1 ? (React.createElement("p", null, formatAddress(favourite.addresses[0]))) : (React.createElement("ul", null, favourite.addresses.map(function (address) { return (React.createElement("li", { key: address.id }, formatAddress(address))); })))),
|
|
33352
|
+
React.createElement(PrintAddress, null,
|
|
33353
|
+
React.createElement(SummaryList, { terms: [{ term: 'Address', detail: formatAddress(favourite.addresses[0]) }], hasMargin: false }))))),
|
|
33354
|
+
React.createElement(Column, { small: "full", medium: "full", large: "one-half" },
|
|
33355
|
+
React.createElement(SummaryList, { terms: transformService(favourite.email, favourite.website, favourite.phone), hasMargin: false }),
|
|
33356
|
+
favourite.fees && (React.createElement(SummaryList, { terms: [{ term: 'Cost', detail: favourite.fees }], hasMargin: false }))),
|
|
33357
|
+
React.createElement(Column, { small: "full", medium: "full", large: "full" },
|
|
33358
|
+
React.createElement(AddContainer, null,
|
|
33359
|
+
React.createElement(DirectoryAddToShortList, { id: favourite.id, name: favourite.name, snippet: favourite.snippet, email: favourite.email, website: favourite.website, phone: favourite.phone, addresses: favourite.addresses })))))));
|
|
33360
|
+
}))) : (React.createElement(Column, { small: "full", medium: "full", large: "full" },
|
|
32818
33361
|
React.createElement(FavouriteContainer, null,
|
|
32819
33362
|
React.createElement("p", null, "No items in the shortlist"))))))));
|
|
32820
33363
|
};
|
|
@@ -32949,8 +33492,8 @@ const LoadingContainer = styled.div`
|
|
|
32949
33492
|
`;
|
|
32950
33493
|
|
|
32951
33494
|
var DirectoryDocumentList = function (_a) {
|
|
32952
|
-
var directoryPath = _a.directoryPath, documents = _a.documents, _b = _a.search, search = _b === void 0 ? '' : _b, setSearch = _a.setSearch, _c = _a.totalResults, totalResults = _c === void 0 ? 0 : _c, _d = _a.pageNumber, pageNumber = _d === void 0 ? 1 : _d, setPageNumber = _a.setPageNumber, _e = _a.perPage, perPage = _e === void 0 ? 10 : _e, categories = _a.categories, setCategories = _a.setCategories, _f = _a.isLoading, isLoading = _f === void 0 ? false : _f;
|
|
32953
|
-
var
|
|
33495
|
+
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;
|
|
33496
|
+
var _h = useState(search), searchTerm = _h[0], setSearchTerm = _h[1];
|
|
32954
33497
|
var submitSearch = function (e) {
|
|
32955
33498
|
e.preventDefault();
|
|
32956
33499
|
setSearch(searchTerm);
|
|
@@ -32989,7 +33532,7 @@ var DirectoryDocumentList = function (_a) {
|
|
|
32989
33532
|
React.createElement(Row$1, null,
|
|
32990
33533
|
React.createElement(Column, { small: "full", medium: "one-half", large: "one-third" },
|
|
32991
33534
|
React.createElement(Label, { htmlFor: "directorySearch" }, "What are you looking for?"),
|
|
32992
|
-
React.createElement(HintText, { text: "Enter
|
|
33535
|
+
React.createElement(HintText, { text: "Enter the name of a specific organisation" }),
|
|
32993
33536
|
React.createElement(Input, { name: "directorySearch", type: "text", defaultValue: searchTerm, id: "directorySearch", onChange: function (e) {
|
|
32994
33537
|
setSearchTerm(e.target.value);
|
|
32995
33538
|
} })),
|
|
@@ -33013,7 +33556,9 @@ var DirectoryDocumentList = function (_a) {
|
|
|
33013
33556
|
React.createElement(RadioCheckboxInput, { name: taxonomy.vocabulary, value: taxonomy.id, label: taxonomy.name, singleSelection: category.singleSelection, checked: taxonomy.checked, onChange: function (e) { return optionChecked(e, categoryIndex, category.singleSelection); } }))); })))); }))),
|
|
33014
33557
|
React.createElement(Column, { small: "full", medium: "two-thirds", large: "two-thirds" },
|
|
33015
33558
|
React.createElement(Row$1, null,
|
|
33016
|
-
|
|
33559
|
+
isError ? (React.createElement(Column, { small: "full", medium: "full", large: "full" },
|
|
33560
|
+
React.createElement(AlertBannerService, null,
|
|
33561
|
+
React.createElement("p", null, "Sorry, there was a problem fetching results. Please try again later.")))) : isLoading ? (React.createElement(LoadingContainer, null,
|
|
33017
33562
|
React.createElement(LoadingSpinner, null),
|
|
33018
33563
|
React.createElement("p", null, "Loading"))) : (React.createElement(React.Fragment, null,
|
|
33019
33564
|
React.createElement(Column, { small: "full", medium: "full", large: "full" }, (documents === null || documents === void 0 ? void 0 : documents.length) > 0 ? (React.createElement(ResultInfo, null,
|
|
@@ -33030,5 +33575,5 @@ var DirectoryDocumentList = function (_a) {
|
|
|
33030
33575
|
React.createElement(Column, { small: "full", medium: "full", large: "full" }, !isLoading && (React.createElement(Pagination, { currentPage: pageNumber, totalResults: totalResults, resultsPerPage: perPage, postTo: directoryPath, buttonClickOverride: setPageNumber }))))))));
|
|
33031
33576
|
};
|
|
33032
33577
|
|
|
33033
|
-
export { AccessibleLink as AccessibleLinks, Accordion$1 as Accordion, AlertBanner, AlertBannerService, Autocomplete, BackLink, BackToTop, BinCollection, BlockQuote, Breadcrumbs, Button$4 as Button, CallToAction, Cards, CheckboxListFilter, Contents$1 as Contents, ContentsNavigation, CookieBanner, CouncilTaxAlphabeticalDirectory, DirectoryDocumentList, DirectoryService, DirectoryServiceList, DirectoryShortList, DirectoryShortListProvider, DisplayDate, Divider, DownloadableFiles, DropDownFilter, DynamicIcon, Footer, FullWidthContainer, GDS_theme, GlobalStyleReset, GoogleMap, Header, Heading, HeadingWithIcon, HeroImage, HomeHero, Image$2 as Image, ImageAndText, InquestSchedule, Map$1 as Map, MapMarker, MaxWidthContainer, MemorialHero, NewsArticleDate, NewsArticleFeaturedBlock, NewsArticleFilterAccordion, NewsArticleImage, NewsArticleList, NewsArticleListHeader, NewsArticleOldBanner, PageMain, PageSidebar, PageTitle, PageWithSidebarContainer, PageWrapper, Pagination, PhaseBanner, PromoBanner, PromoBlock, PromotedLinks, Promotions, SearchBox, SearchResultsList, Searchbar, SectionLinks, SectionLinksMobileContents, SectionLinksSidebar, ServiceLinksBoxed, ServicesLinksList, SignpostLinks, SkipToMainContent, StaticMap, Summary, TextInput, Video, WarningText, WarningTextDisclaimer, lb_theme_north, lb_theme_west, north_theme, useDirectoryShortListContext, west_theme };
|
|
33578
|
+
export { AccessibleLink as AccessibleLinks, Accordion$1 as Accordion, AlertBanner, AlertBannerService, Autocomplete, BackLink, BackToTop, BinCollection, BlockQuote, Breadcrumbs, Button$4 as Button, CallToAction, Cards, CheckboxListFilter, Contents$1 as Contents, ContentsNavigation, CookieBanner, CouncilTaxAlphabeticalDirectory, DirectoryDocumentList, DirectoryService, DirectoryServiceList, DirectoryShortList, DirectoryShortListProvider, DisplayDate, Divider, DownloadableFiles, DropDownFilter, DynamicIcon, Footer, FullWidthContainer, GDS_theme, GlobalStyleReset, GoogleMap, Header, Heading, HeadingWithIcon, HeroImage, HomeHero, Image$2 as Image, ImageAndText, InquestSchedule, Map$1 as Map, MapMarker, MaxWidthContainer, MemorialHero, NewsArticleDate, NewsArticleFeaturedBlock, NewsArticleFilterAccordion, NewsArticleImage, NewsArticleList, NewsArticleListHeader, NewsArticleOldBanner, PageMain, PageSidebar, PageTitle, PageWithSidebarContainer, PageWrapper, Pagination, PhaseBanner, PromoBanner, PromoBlock, PromotedLinks, Promotions, RoadworksList, SearchBox, SearchResultsList, Searchbar, SectionLinks, SectionLinksMobileContents, SectionLinksSidebar, ServiceLinksBoxed, ServicesLinksList, SignpostLinks, SkipToMainContent, StaticMap, Summary, TextInput, Video, WarningText, WarningTextDisclaimer, lb_theme_north, lb_theme_west, north_theme, useDirectoryShortListContext, west_theme };
|
|
33034
33579
|
//# sourceMappingURL=index.mjs.js.map
|