@nnc-digital/nnc-design-system 1.0.0-beta15 → 1.0.0-beta18
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/index.d.ts +2 -0
- package/build/index.esm.js +10456 -8313
- package/build/index.esm.js.map +1 -1
- package/build/index.js +846 -12
- package/build/index.js.map +1 -1
- package/build/index.mjs.js +837 -13
- package/build/index.mjs.js.map +1 -1
- package/build/library/library/components/AlphabeticalDirectory/AlphabeticalDirectory.d.ts +4 -0
- package/build/library/library/components/AlphabeticalDirectory/AlphabeticalDirectory.types.d.ts +26 -0
- package/build/library/library/components/Autocomplete/Autocomplete.d.ts +9 -0
- package/build/library/library/components/Autocomplete/Autocomplete.storydata.d.ts +47 -0
- package/build/library/library/components/Autocomplete/Autocomplete.test.d.ts +1 -0
- package/build/library/library/components/Autocomplete/Autocomplete.types.d.ts +78 -0
- package/build/library/library/components/BackToTop/BackToTop.d.ts +4 -0
- package/build/library/library/components/BackToTop/BackToTop.test.d.ts +1 -0
- package/build/library/library/components/BackToTop/BackToTop.types.d.ts +6 -0
- package/build/library/library/components/BinCollection/BinCollection.d.ts +7 -0
- package/build/library/library/components/BinCollection/BinCollection.styles.d.ts +2937 -0
- package/build/library/library/components/BinCollection/BinCollection.test.d.ts +1 -0
- package/build/library/library/components/BinCollection/BinCollection.testdata.d.ts +34 -0
- package/build/library/library/components/BinCollection/BinCollection.types.d.ts +68 -0
- package/build/library/library/components/Button/Button.d.ts +7 -0
- package/build/library/library/components/Button/Button.types.d.ts +43 -0
- package/build/library/library/components/Card/Card.d.ts +7 -0
- package/build/library/library/components/Card/Card.test.d.ts +1 -0
- package/build/library/library/components/Card/Card.types.d.ts +36 -0
- package/build/library/library/components/CheckboxListFilter/CheckboxListFilter.d.ts +4 -0
- package/build/library/library/components/CheckboxListFilter/CheckboxListFilter.test.d.ts +1 -0
- package/build/library/library/components/CheckboxListFilter/CheckboxListFilter.types.d.ts +36 -0
- package/build/library/library/components/Column/Column.d.ts +4 -0
- package/build/library/library/components/Column/Column.test.d.ts +1 -0
- package/build/library/library/components/Column/Column.types.d.ts +35 -0
- package/build/library/library/components/CustomSearch/CustomSearch.d.ts +4 -0
- package/build/library/library/components/CustomSearch/CustomSearch.storydata.d.ts +2 -0
- package/build/library/library/components/CustomSearch/CustomSearch.test.d.ts +1 -0
- package/build/library/library/components/CustomSearch/CustomSearch.types.d.ts +34 -0
- package/build/library/library/components/DropDownFilter/DropDownFilter.d.ts +4 -0
- package/build/library/library/components/DropDownFilter/DropDownFilter.types.d.ts +32 -0
- package/build/library/library/components/DropDownSelect/DropDownSelect.d.ts +4 -0
- package/build/library/library/components/DropDownSelect/DropDownSelect.types.d.ts +36 -0
- package/build/library/library/components/DynamicIcon/DynamicIcon.d.ts +7 -0
- package/build/library/library/components/DynamicIcon/DynamicIcon.test.d.ts +1 -0
- package/build/library/library/components/DynamicIcon/DynamicIcon.types.d.ts +10 -0
- package/build/library/library/components/FileDownload/FileDownload.d.ts +7 -0
- package/build/library/library/components/FileDownload/FileDownload.test.d.ts +1 -0
- package/build/library/library/components/FileDownload/FileDownload.types.d.ts +22 -0
- package/build/library/library/components/FormButton/FormButton.d.ts +7 -0
- package/build/library/library/components/FormButton/FormButton.types.d.ts +26 -0
- package/build/library/library/components/FormWithLine/FormWithLine.d.ts +7 -0
- package/build/library/library/components/FormWithLine/FormWithLine.types.d.ts +39 -0
- package/build/library/library/components/Heading/Heading.d.ts +7 -0
- package/build/library/library/components/Heading/Heading.types.d.ts +10 -0
- package/build/library/library/components/HeadingWithIcon/HeadingWithIcon.d.ts +7 -0
- package/build/library/library/components/HeadingWithIcon/HeadingWithIcon.test.d.ts +1 -0
- package/build/library/library/components/HeadingWithIcon/HeadingWithIcon.types.d.ts +18 -0
- package/build/library/library/components/HeadingWithIconLink/HeadingWithIconLink.d.ts +4 -0
- package/build/library/library/components/HeadingWithIconLink/HeadingWithIconLink.test.d.ts +1 -0
- package/build/library/library/components/HeadingWithIconLink/HeadingWithIconLink.types.d.ts +14 -0
- package/build/library/library/components/HintText/HintText.d.ts +7 -0
- package/build/library/library/components/HintText/HintText.types.d.ts +6 -0
- package/build/library/library/components/Input/Input.d.ts +8 -0
- package/build/library/library/components/Input/Input.types.d.ts +52 -0
- package/build/library/library/components/LoadingSpinner/LoadingSpinner.d.ts +4 -0
- package/build/library/library/components/LoadingSpinner/LoadingSpinner.types.d.ts +2 -0
- package/build/library/library/components/Map/Map.d.ts +7 -0
- package/build/library/library/components/Map/Map.types.d.ts +15 -0
- package/build/library/library/components/MapMarker/MapMarker.d.ts +6 -0
- package/build/library/library/components/Pagination/Pagination.d.ts +4 -0
- package/build/library/library/components/Pagination/Pagination.test.d.ts +1 -0
- package/build/library/library/components/Pagination/Pagination.types.d.ts +23 -0
- package/build/library/library/components/PostCodeAddressDropdown/PostCodeAddressDropdown.d.ts +7 -0
- package/build/library/library/components/PostCodeAddressDropdown/PostCodeAddressDropdown.types.d.ts +2 -0
- package/build/library/library/components/PostCodeAddressSearch/PostCodeAddressSearch.d.ts +7 -0
- package/build/library/library/components/PostCodeAddressSearch/PostCodeAddressSearch.types.d.ts +23 -0
- package/build/library/library/components/PostCodeAddressTable/PostCodeAddressTable.d.ts +4 -0
- package/build/library/library/components/PostCodeAddressTable/PostCodeAddressTable.types.d.ts +2 -0
- package/build/library/library/components/PostCodeSearch/PostCodeSearch.d.ts +7 -0
- package/build/library/library/components/PostCodeSearch/PostCodeSearch.test.d.ts +1 -0
- package/build/library/library/components/PostCodeSearch/PostCodeSearch.types.d.ts +52 -0
- package/build/library/library/components/PromotedLinks/PromotedLinks.d.ts +4 -0
- package/build/library/library/components/PromotedLinks/PromotedLinks.test.d.ts +1 -0
- package/build/library/library/components/PromotedLinks/PromotedLinks.types.d.ts +24 -0
- package/build/library/library/components/RadioCheckboxInput/RadioCheckboxInput.d.ts +4 -0
- package/build/library/library/components/RadioCheckboxInput/RadioCheckboxInput.test.d.ts +1 -0
- package/build/library/library/components/RadioCheckboxInput/RadioCheckboxInput.types.d.ts +26 -0
- package/build/library/library/components/RemovableTag/RemovableTag.d.ts +4 -0
- package/build/library/library/components/RemovableTag/RemovableTag.types.d.ts +8 -0
- package/build/library/library/components/RemoveAllFilters/RemoveAllFilters.d.ts +4 -0
- package/build/library/library/components/RemoveAllFilters/RemoveAllFilters.types.d.ts +3 -0
- package/build/library/library/components/Row/Row.d.ts +4 -0
- package/build/library/library/components/Row/Row.test.d.ts +1 -0
- package/build/library/library/components/Row/Row.types.d.ts +20 -0
- package/build/library/library/components/SignpostLinksList/SignpostLinksList.d.ts +4 -0
- package/build/library/library/components/SignpostLinksList/SignpostLinksList.types.d.ts +24 -0
- package/build/library/library/components/SortBy/SortBy.d.ts +4 -0
- package/build/library/library/components/SortBy/SortBy.types.d.ts +20 -0
- package/build/library/library/components/StaticMap/StaticMap.d.ts +7 -0
- package/build/library/library/components/StaticMap/StaticMap.test.d.ts +1 -0
- package/build/library/library/components/StaticMap/StaticMap.types.d.ts +52 -0
- package/build/library/library/components/SummaryList/SummaryList.d.ts +4 -0
- package/build/library/library/components/SummaryList/SummaryList.test.d.ts +1 -0
- package/build/library/library/components/SummaryList/SummaryList.types.d.ts +29 -0
- package/build/library/library/components/TextInput/TextInput.d.ts +7 -0
- package/build/library/library/components/TextInput/TextInput.types.d.ts +38 -0
- package/build/library/library/components/icons/ChevronIcon/ChevronIcon.d.ts +4 -0
- package/build/library/library/components/icons/ChevronIcon/ChevronIcon.types.d.ts +10 -0
- package/build/library/library/components/icons/CloseIcon/CloseIcon.d.ts +4 -0
- package/build/library/library/components/icons/CloseIcon/CloseIcon.types.d.ts +6 -0
- package/build/library/library/components/icons/DownloadFileIcon/DownloadFileIcon.d.ts +4 -0
- package/build/library/library/components/icons/DownloadFileIcon/DownloadFileIcon.types.d.ts +6 -0
- package/build/library/library/components/icons/EmailIcon/EmailIcon.d.ts +4 -0
- package/build/library/library/components/icons/EmailIcon/EmailIcon.types.d.ts +6 -0
- package/build/library/library/components/icons/FacebookIcon/Icon.d.ts +4 -0
- package/build/library/library/components/icons/HeartIcon/HeartIcon.d.ts +7 -0
- package/build/library/library/components/icons/HeartIcon/HeartIcon.types.d.ts +6 -0
- package/build/library/library/components/icons/InstagramIcon/Icon.d.ts +4 -0
- package/build/library/library/components/icons/LinkIcon/LinkIcon.d.ts +4 -0
- package/build/library/library/components/icons/LinkIcon/LinkIcon.types.d.ts +6 -0
- package/build/library/library/components/icons/LinkedInIcon/Icon.d.ts +4 -0
- package/build/library/library/components/icons/PhoneIcon/PhoneIcon.d.ts +4 -0
- package/build/library/library/components/icons/PhoneIcon/PhoneIcon.types.d.ts +6 -0
- package/build/library/library/components/icons/PinIcon/PinIcon.d.ts +7 -0
- package/build/library/library/components/icons/PinIcon/PinIcon.types.d.ts +6 -0
- package/build/library/library/components/icons/SearchIcon/SearchIcon.d.ts +4 -0
- package/build/library/library/components/icons/SearchIcon/SearchIcon.types.d.ts +6 -0
- package/build/library/library/components/icons/TwitterIcon/Icon.d.ts +4 -0
- package/build/library/library/components/icons/WebsiteIcon/WebsiteIcon.d.ts +4 -0
- package/build/library/library/components/icons/WebsiteIcon/WebsiteIcon.types.d.ts +6 -0
- package/build/library/library/components/icons/YouTubeIcon/Icon.d.ts +4 -0
- package/build/library/library/components/icons/services/AccessibleParking/Icon.d.ts +4 -0
- package/build/library/library/components/icons/services/AccessibleParking/IconHover.d.ts +4 -0
- package/build/library/library/components/icons/services/Address/Icon.d.ts +4 -0
- package/build/library/library/components/icons/services/Address/IconHover.d.ts +4 -0
- package/build/library/library/components/icons/services/AddressChange/Icon.d.ts +4 -0
- package/build/library/library/components/icons/services/AddressChange/IconHover.d.ts +4 -0
- package/build/library/library/components/icons/services/Adults/Icon.d.ts +4 -0
- package/build/library/library/components/icons/services/Adults/IconHover.d.ts +4 -0
- package/build/library/library/components/icons/services/AssistiveTechnology/Icon.d.ts +4 -0
- package/build/library/library/components/icons/services/AssistiveTechnology/IconHover.d.ts +4 -0
- package/build/library/library/components/icons/services/Benefits/Icon.d.ts +4 -0
- package/build/library/library/components/icons/services/Benefits/IconHover.d.ts +4 -0
- package/build/library/library/components/icons/services/BinDay/Icon.d.ts +4 -0
- package/build/library/library/components/icons/services/BinDay/IconHover.d.ts +4 -0
- package/build/library/library/components/icons/services/Bins/Icon.d.ts +4 -0
- package/build/library/library/components/icons/services/Bins/IconHover.d.ts +4 -0
- package/build/library/library/components/icons/services/BirthCertificate/Icon.d.ts +4 -0
- package/build/library/library/components/icons/services/BirthCertificate/IconHover.d.ts +4 -0
- package/build/library/library/components/icons/services/Births/Icon.d.ts +4 -0
- package/build/library/library/components/icons/services/Births/IconHover.d.ts +4 -0
- package/build/library/library/components/icons/services/Bollard/Icon.d.ts +4 -0
- package/build/library/library/components/icons/services/Bollard/IconHover.d.ts +4 -0
- package/build/library/library/components/icons/services/BulkWaste/Icon.d.ts +4 -0
- package/build/library/library/components/icons/services/BulkWaste/IconHover.d.ts +4 -0
- package/build/library/library/components/icons/services/Bus/Icon.d.ts +4 -0
- package/build/library/library/components/icons/services/Bus/IconHover.d.ts +4 -0
- package/build/library/library/components/icons/services/BusPass/Icon.d.ts +4 -0
- package/build/library/library/components/icons/services/BusPass/IconHover.d.ts +4 -0
- package/build/library/library/components/icons/services/Business/Icon.d.ts +4 -0
- package/build/library/library/components/icons/services/Business/IconHover.d.ts +4 -0
- package/build/library/library/components/icons/services/Careers/Icon.d.ts +4 -0
- package/build/library/library/components/icons/services/Careers/IconHover.d.ts +4 -0
- package/build/library/library/components/icons/services/Cash/Icon.d.ts +4 -0
- package/build/library/library/components/icons/services/Cash/IconHover.d.ts +4 -0
- package/build/library/library/components/icons/services/Catalogue/Icon.d.ts +4 -0
- package/build/library/library/components/icons/services/Catalogue/IconHover.d.ts +4 -0
- package/build/library/library/components/icons/services/Ceremony/Icon.d.ts +4 -0
- package/build/library/library/components/icons/services/Ceremony/IconHover.d.ts +4 -0
- package/build/library/library/components/icons/services/Charity/Icon.d.ts +4 -0
- package/build/library/library/components/icons/services/Charity/IconHover.d.ts +4 -0
- package/build/library/library/components/icons/services/Children/Icon.d.ts +4 -0
- package/build/library/library/components/icons/services/Children/IconHover.d.ts +4 -0
- package/build/library/library/components/icons/services/Computer/Icon.d.ts +4 -0
- package/build/library/library/components/icons/services/Computer/IconHover.d.ts +4 -0
- package/build/library/library/components/icons/services/CondolenceBook/Icon.d.ts +4 -0
- package/build/library/library/components/icons/services/CondolenceBook/IconHover.d.ts +4 -0
- package/build/library/library/components/icons/services/Cooking/Icon.d.ts +4 -0
- package/build/library/library/components/icons/services/Cooking/IconHover.d.ts +4 -0
- package/build/library/library/components/icons/services/Council/Icon.d.ts +4 -0
- package/build/library/library/components/icons/services/Council/IconHover.d.ts +4 -0
- package/build/library/library/components/icons/services/CouncilTax/Icon.d.ts +4 -0
- package/build/library/library/components/icons/services/CouncilTax/IconHover.d.ts +4 -0
- package/build/library/library/components/icons/services/Covid/Icon.d.ts +4 -0
- package/build/library/library/components/icons/services/Covid/IconHover.d.ts +4 -0
- package/build/library/library/components/icons/services/Culture/Icon.d.ts +4 -0
- package/build/library/library/components/icons/services/Culture/IconHover.d.ts +4 -0
- package/build/library/library/components/icons/services/CultureNorth/Icon.d.ts +4 -0
- package/build/library/library/components/icons/services/CultureNorth/IconHover.d.ts +4 -0
- package/build/library/library/components/icons/services/CultureWest/Icon.d.ts +4 -0
- package/build/library/library/components/icons/services/CultureWest/IconHover.d.ts +4 -0
- package/build/library/library/components/icons/services/DOLS/Icon.d.ts +4 -0
- package/build/library/library/components/icons/services/DOLS/IconHover.d.ts +4 -0
- package/build/library/library/components/icons/services/DeathCertificate/Icon.d.ts +4 -0
- package/build/library/library/components/icons/services/DeathCertificate/IconHover.d.ts +4 -0
- package/build/library/library/components/icons/services/Democracy/Icon.d.ts +4 -0
- package/build/library/library/components/icons/services/Democracy/IconHover.d.ts +4 -0
- package/build/library/library/components/icons/services/DogFouling/Icon.d.ts +4 -0
- package/build/library/library/components/icons/services/DogFouling/IconHover.d.ts +4 -0
- package/build/library/library/components/icons/services/Ebook/Icon.d.ts +4 -0
- package/build/library/library/components/icons/services/Ebook/IconHover.d.ts +4 -0
- package/build/library/library/components/icons/services/Edit/Icon.d.ts +4 -0
- package/build/library/library/components/icons/services/Edit/IconHover.d.ts +4 -0
- package/build/library/library/components/icons/services/Environment/Icon.d.ts +4 -0
- package/build/library/library/components/icons/services/Environment/IconHover.d.ts +4 -0
- package/build/library/library/components/icons/services/Events/Icon.d.ts +4 -0
- package/build/library/library/components/icons/services/Events/IconHover.d.ts +4 -0
- package/build/library/library/components/icons/services/Finance/Icon.d.ts +4 -0
- package/build/library/library/components/icons/services/Finance/IconHover.d.ts +4 -0
- package/build/library/library/components/icons/services/Flower/Icon.d.ts +4 -0
- package/build/library/library/components/icons/services/Flower/IconHover.d.ts +4 -0
- package/build/library/library/components/icons/services/FlyTip/Icon.d.ts +4 -0
- package/build/library/library/components/icons/services/FlyTip/IconHover.d.ts +4 -0
- package/build/library/library/components/icons/services/FoodWaste/Icon.d.ts +4 -0
- package/build/library/library/components/icons/services/FoodWaste/IconHover.d.ts +4 -0
- package/build/library/library/components/icons/services/GiveNotice/Icon.d.ts +4 -0
- package/build/library/library/components/icons/services/GiveNotice/IconHover.d.ts +4 -0
- package/build/library/library/components/icons/services/GovUK/Icon.d.ts +4 -0
- package/build/library/library/components/icons/services/GovUK/IconHover.d.ts +4 -0
- package/build/library/library/components/icons/services/Graffiti/Icon.d.ts +4 -0
- package/build/library/library/components/icons/services/Graffiti/IconHover.d.ts +4 -0
- package/build/library/library/components/icons/services/Highway/Icon.d.ts +4 -0
- package/build/library/library/components/icons/services/Highway/IconHover.d.ts +4 -0
- package/build/library/library/components/icons/services/HouseMoney/Icon.d.ts +4 -0
- package/build/library/library/components/icons/services/HouseMoney/IconHover.d.ts +4 -0
- package/build/library/library/components/icons/services/Housing/Icon.d.ts +4 -0
- package/build/library/library/components/icons/services/Housing/IconHover.d.ts +4 -0
- package/build/library/library/components/icons/services/Icon.types.d.ts +6 -0
- package/build/library/library/components/icons/services/Independence/Icon.d.ts +4 -0
- package/build/library/library/components/icons/services/Independence/IconHover.d.ts +4 -0
- package/build/library/library/components/icons/services/KeepingHealthy/Icon.d.ts +4 -0
- package/build/library/library/components/icons/services/KeepingHealthy/IconHover.d.ts +4 -0
- package/build/library/library/components/icons/services/Libraries/Icon.d.ts +4 -0
- package/build/library/library/components/icons/services/Libraries/IconHover.d.ts +4 -0
- package/build/library/library/components/icons/services/Litter/Icon.d.ts +4 -0
- package/build/library/library/components/icons/services/Litter/IconHover.d.ts +4 -0
- package/build/library/library/components/icons/services/LookingAfterYourself/Icon.d.ts +4 -0
- package/build/library/library/components/icons/services/LookingAfterYourself/IconHover.d.ts +4 -0
- package/build/library/library/components/icons/services/MapPin/Icon.d.ts +4 -0
- package/build/library/library/components/icons/services/MapPin/IconHover.d.ts +4 -0
- package/build/library/library/components/icons/services/Member/Icon.d.ts +4 -0
- package/build/library/library/components/icons/services/Member/IconHover.d.ts +4 -0
- package/build/library/library/components/icons/services/MentalHealth/Icon.d.ts +4 -0
- package/build/library/library/components/icons/services/MentalHealth/IconHover.d.ts +4 -0
- package/build/library/library/components/icons/services/MissedBin/Icon.d.ts +4 -0
- package/build/library/library/components/icons/services/MissedBin/IconHover.d.ts +4 -0
- package/build/library/library/components/icons/services/New/Icon.d.ts +4 -0
- package/build/library/library/components/icons/services/New/IconHover.d.ts +4 -0
- package/build/library/library/components/icons/services/OccupationalTherapy/Icon.d.ts +4 -0
- package/build/library/library/components/icons/services/OccupationalTherapy/IconHover.d.ts +4 -0
- package/build/library/library/components/icons/services/ParkEvent/Icon.d.ts +4 -0
- package/build/library/library/components/icons/services/ParkEvent/IconHover.d.ts +4 -0
- package/build/library/library/components/icons/services/Parking/Icon.d.ts +4 -0
- package/build/library/library/components/icons/services/Parking/IconHover.d.ts +4 -0
- package/build/library/library/components/icons/services/ParkingTicket/Icon.d.ts +4 -0
- package/build/library/library/components/icons/services/ParkingTicket/IconHover.d.ts +4 -0
- package/build/library/library/components/icons/services/Pay/Icon.d.ts +4 -0
- package/build/library/library/components/icons/services/Pay/IconHover.d.ts +4 -0
- package/build/library/library/components/icons/services/PhonePay/Icon.d.ts +4 -0
- package/build/library/library/components/icons/services/PhonePay/IconHover.d.ts +4 -0
- package/build/library/library/components/icons/services/Planning/Icon.d.ts +4 -0
- package/build/library/library/components/icons/services/Planning/IconHover.d.ts +4 -0
- package/build/library/library/components/icons/services/Pothole/Icon.d.ts +4 -0
- package/build/library/library/components/icons/services/Pothole/IconHover.d.ts +4 -0
- package/build/library/library/components/icons/services/PreventingFalls/Icon.d.ts +4 -0
- package/build/library/library/components/icons/services/PreventingFalls/IconHover.d.ts +4 -0
- package/build/library/library/components/icons/services/Protect/Icon.d.ts +4 -0
- package/build/library/library/components/icons/services/Protect/IconHover.d.ts +4 -0
- package/build/library/library/components/icons/services/RatePay/Icon.d.ts +4 -0
- package/build/library/library/components/icons/services/RatePay/IconHover.d.ts +4 -0
- package/build/library/library/components/icons/services/RegisterBirth/Icon.d.ts +4 -0
- package/build/library/library/components/icons/services/RegisterBirth/IconHover.d.ts +4 -0
- package/build/library/library/components/icons/services/RegisterDeath/Icon.d.ts +4 -0
- package/build/library/library/components/icons/services/RegisterDeath/IconHover.d.ts +4 -0
- package/build/library/library/components/icons/services/Report/Icon.d.ts +4 -0
- package/build/library/library/components/icons/services/Report/IconHover.d.ts +4 -0
- package/build/library/library/components/icons/services/Restrict/Icon.d.ts +4 -0
- package/build/library/library/components/icons/services/Restrict/IconHover.d.ts +4 -0
- package/build/library/library/components/icons/services/RoadWorks/Icon.d.ts +4 -0
- package/build/library/library/components/icons/services/RoadWorks/IconHover.d.ts +4 -0
- package/build/library/library/components/icons/services/Roads/Icon.d.ts +4 -0
- package/build/library/library/components/icons/services/Roads/IconHover.d.ts +4 -0
- package/build/library/library/components/icons/services/RoyalWebsite/Icon.d.ts +4 -0
- package/build/library/library/components/icons/services/RoyalWebsite/IconHover.d.ts +4 -0
- package/build/library/library/components/icons/services/SEND/Icon.d.ts +4 -0
- package/build/library/library/components/icons/services/SEND/IconHover.d.ts +4 -0
- package/build/library/library/components/icons/services/Safety/Icon.d.ts +4 -0
- package/build/library/library/components/icons/services/Safety/IconHover.d.ts +4 -0
- package/build/library/library/components/icons/services/SchoolAdmissions/Icon.d.ts +4 -0
- package/build/library/library/components/icons/services/SchoolAdmissions/IconHover.d.ts +4 -0
- package/build/library/library/components/icons/services/Schools/Icon.d.ts +4 -0
- package/build/library/library/components/icons/services/Schools/IconHover.d.ts +4 -0
- package/build/library/library/components/icons/services/ServicesIcons.d.ts +173 -0
- package/build/library/library/components/icons/services/SinglePerson/Icon.d.ts +4 -0
- package/build/library/library/components/icons/services/SinglePerson/IconHover.d.ts +4 -0
- package/build/library/library/components/icons/services/Sports/Icon.d.ts +4 -0
- package/build/library/library/components/icons/services/Sports/IconHover.d.ts +4 -0
- package/build/library/library/components/icons/services/Valuation/Icon.d.ts +4 -0
- package/build/library/library/components/icons/services/Valuation/IconHover.d.ts +4 -0
- package/build/library/library/components/icons/services/Venue/Icon.d.ts +4 -0
- package/build/library/library/components/icons/services/Venue/IconHover.d.ts +4 -0
- package/build/library/library/components/icons/services/WasteChecklist/Icon.d.ts +4 -0
- package/build/library/library/components/icons/services/WasteChecklist/IconHover.d.ts +4 -0
- package/build/library/library/components/icons/services/WasteSorting/Icon.d.ts +4 -0
- package/build/library/library/components/icons/services/WasteSorting/IconHover.d.ts +4 -0
- package/build/library/library/components/logos/GDSLogo/logo.d.ts +4 -0
- package/build/library/library/components/logos/GDSLogo/logo.types.d.ts +2 -0
- package/build/library/library/components/logos/NorthColouredLogo/logo.d.ts +4 -0
- package/build/library/library/components/logos/NorthColouredLogo/logo.types.d.ts +2 -0
- package/build/library/library/components/logos/NorthWhiteLogo/logo.d.ts +4 -0
- package/build/library/library/components/logos/NorthWhiteLogo/logo.types.d.ts +2 -0
- package/build/library/library/components/logos/WestColouredLogo/logo.d.ts +4 -0
- package/build/library/library/components/logos/WestColouredLogo/logo.types.d.ts +2 -0
- package/build/library/library/components/logos/WestWhiteLogo/logo.d.ts +4 -0
- package/build/library/library/components/logos/WestWhiteLogo/logo.types.d.ts +2 -0
- package/build/library/library/contexts/DirectoryShortListProvider/DirectoryShortListProvider.d.ts +4 -0
- package/build/library/library/contexts/DirectoryShortListProvider/DirectoryShortListProvider.types.d.ts +55 -0
- package/build/library/library/contexts/PostCodeAddressProvider/PostCodeAddressProvider.d.ts +6 -0
- package/build/library/library/contexts/PostCodeAddressProvider/PostCodeAddressProvider.types.d.ts +18 -0
- package/build/library/library/directory/DirectoryAddToShortList/DirectoryAddToShortList.d.ts +4 -0
- package/build/library/library/directory/DirectoryAddToShortList/DirectoryAddToShortList.test.d.ts +1 -0
- package/build/library/library/directory/DirectoryAddToShortList/DirectoryAddToShortList.types.d.ts +35 -0
- package/build/library/library/directory/DirectoryDocumentList/DirectoryDocumentList.d.ts +4 -0
- package/build/library/library/directory/DirectoryDocumentList/DirectoryDocumentList.storydata.d.ts +4 -0
- package/build/library/library/directory/DirectoryDocumentList/DirectoryDocumentList.test.d.ts +1 -0
- package/build/library/library/directory/DirectoryDocumentList/DirectoryDocumentList.types.d.ts +67 -0
- package/build/library/library/directory/DirectoryMap/DirectoryMap.d.ts +4 -0
- package/build/library/library/directory/DirectoryMap/DirectoryMap.types.d.ts +11 -0
- package/build/library/library/directory/DirectoryService/DirectoryService.d.ts +4 -0
- package/build/library/library/directory/DirectoryService/DirectoryService.storydata.d.ts +5 -0
- package/build/library/library/directory/DirectoryService/DirectoryService.test.d.ts +1 -0
- package/build/library/library/directory/DirectoryService/DirectoryService.types.d.ts +282 -0
- package/build/library/library/directory/DirectoryService/DirectoryServiceTransform.d.ts +8 -0
- package/build/library/library/directory/DirectoryService/DirectoryServiceTransform.test.d.ts +1 -0
- package/build/library/library/directory/DirectoryServiceList/DirectoryServiceList.d.ts +4 -0
- package/build/library/library/directory/DirectoryServiceList/DirectoryServiceList.storydata.d.ts +6 -0
- package/build/library/library/directory/DirectoryServiceList/DirectoryServiceList.test.d.ts +1 -0
- package/build/library/library/directory/DirectoryServiceList/DirectoryServiceList.types.d.ts +148 -0
- package/build/library/library/directory/DirectoryShortList/DirectoryShortList.d.ts +4 -0
- package/build/library/library/directory/DirectoryShortList/DirectoryShortList.test.d.ts +1 -0
- package/build/library/library/directory/DirectoryShortList/DirectoryShortList.types.d.ts +6 -0
- package/build/library/library/directory/ServiceContact/ServiceContact.d.ts +4 -0
- package/build/library/library/directory/ServiceContact/ServiceContact.test.d.ts +1 -0
- package/build/library/library/directory/ServiceContact/ServiceContact.types.d.ts +46 -0
- package/build/library/library/directory/ServiceSocialLinks/ServiceSocialLinks.d.ts +4 -0
- package/build/library/library/directory/ServiceSocialLinks/ServiceSocialLinks.storydata.d.ts +2 -0
- package/build/library/library/directory/ServiceSocialLinks/ServiceSocialLinks.test.d.ts +1 -0
- package/build/library/library/directory/ServiceSocialLinks/ServiceSocialLinks.types.d.ts +24 -0
- package/build/library/library/events/Event/Event.d.ts +4 -0
- package/build/library/library/events/Event/Event.storydata.d.ts +4 -0
- package/build/library/library/events/Event/Event.types.d.ts +206 -0
- package/build/library/library/events/Event/index.d.ts +3 -0
- package/build/library/library/events/EventList/EventList.d.ts +4 -0
- package/build/library/library/events/EventList/EventList.storydata.d.ts +3 -0
- package/build/library/library/events/EventList/EventList.types.d.ts +152 -0
- package/build/library/library/events/EventList/index.d.ts +3 -0
- package/build/library/library/events/index.d.ts +5 -0
- package/build/library/library/events/utils/EventFilters.d.ts +57 -0
- package/build/library/library/events/utils/index.d.ts +1 -0
- package/build/library/library/helpers/UseLocalStorage.d.ts +2 -0
- package/build/library/library/helpers/api-helpers.d.ts +120 -0
- package/build/library/library/pages/ContentPage/ContentPage.d.ts +4 -0
- package/build/library/library/pages/ContentPage/ContentPage.storydata.d.ts +10 -0
- package/build/library/library/pages/CouncilTaxPageExample/CouncilTaxPageExample.d.ts +5 -0
- package/build/library/library/pages/CouncilTaxParishPageExample/CouncilTaxParishPageExample.d.ts +5 -0
- package/build/library/library/pages/DirectoryServicePage/DirectoryServicePage.d.ts +2 -0
- package/build/library/library/pages/ErrorPage/ErrorPage.d.ts +6 -0
- package/build/library/library/pages/EventPage/EventPage.d.ts +13 -0
- package/build/library/library/pages/EventPage/index.d.ts +1 -0
- package/build/library/library/pages/Home/HomePage.d.ts +8 -0
- package/build/library/library/pages/Home/HomePage.types.d.ts +60 -0
- package/build/library/library/pages/MemorialPage/MemorialPage.d.ts +8 -0
- package/build/library/library/pages/MemorialPage/MemorialPage.types.d.ts +59 -0
- package/build/library/library/pages/News/News.d.ts +5 -0
- package/build/library/library/pages/NewsArticle/NewsArticle.d.ts +7 -0
- package/build/library/library/pages/SearchResultsPageExample/SearchResultsPageExample.d.ts +29 -0
- package/build/library/library/pages/ServiceLandingPageExample/ServiceLandingPageExample.d.ts +3 -0
- package/build/library/library/pages/ServiceLandingPageExample/ServiceLandingPageExample.storydata.d.ts +30 -0
- package/build/library/library/pages/ServiceLandingPageExample/ServiceLandingPageExample.types.d.ts +57 -0
- package/build/library/library/pages/ServicePageExample/ServicePageExample.d.ts +7 -0
- package/build/library/library/pages/SignpostPageExample/SignpostPageExample.d.ts +7 -0
- package/build/library/library/pages/Templates/Templates.d.ts +8 -0
- package/build/library/library/slices/Accordion/Accordion.d.ts +4 -0
- package/build/library/library/slices/Accordion/Accordion.test.d.ts +1 -0
- package/build/library/library/slices/Accordion/Accordion.types.d.ts +52 -0
- package/build/library/library/slices/Accordion/AccordionSection.d.ts +4 -0
- package/build/library/library/slices/BlockQuote/BlockQuote.d.ts +4 -0
- package/build/library/library/slices/BlockQuote/BlockQuote.types.d.ts +10 -0
- package/build/library/library/slices/CallToAction/CallToAction.d.ts +7 -0
- package/build/library/library/slices/Cards/Cards.d.ts +7 -0
- package/build/library/library/slices/Cards/Cards.test.d.ts +1 -0
- package/build/library/library/slices/Cards/Cards.types.d.ts +7 -0
- package/build/library/library/slices/CouncilTaxAlphabeticalDirectory/CouncilTaxAlphabeticalDirectory.d.ts +7 -0
- package/build/library/library/slices/CouncilTaxAlphabeticalDirectory/CouncilTaxAlphabeticalDirectory.storydata.d.ts +4 -0
- package/build/library/library/slices/CouncilTaxAlphabeticalDirectory/CouncilTaxAlphabeticalDirectory.test.d.ts +1 -0
- package/build/library/library/slices/CouncilTaxAlphabeticalDirectory/CouncilTaxAlphabeticalDirectory.types.d.ts +81 -0
- package/build/library/library/slices/Divider/Divider.d.ts +4 -0
- package/build/library/library/slices/Divider/Divider.types.d.ts +2 -0
- package/build/library/library/slices/DownloadableFiles/DownloadableFiles.d.ts +4 -0
- package/build/library/library/slices/DownloadableFiles/DownloadableFiles.types.d.ts +7 -0
- package/build/library/library/slices/GoogleMap/GoogleMap.d.ts +7 -0
- package/build/library/library/slices/GoogleMap/GoogleMap.storydata.d.ts +44 -0
- package/build/library/library/slices/GoogleMap/GoogleMap.test.d.ts +1 -0
- package/build/library/library/slices/GoogleMap/GoogleMap.types.d.ts +28 -0
- package/build/library/library/slices/Image/Image.d.ts +8 -0
- package/build/library/library/slices/Image/Image.storydata.d.ts +2 -0
- package/build/library/library/slices/Image/Image.test.d.ts +1 -0
- package/build/library/library/slices/Image/Image.types.d.ts +26 -0
- package/build/library/library/slices/ImageAndText/ImageAndText.d.ts +7 -0
- package/build/library/library/slices/ImageAndText/ImageAndText.storydata.d.ts +2 -0
- package/build/library/library/slices/ImageAndText/ImageAndText.test.d.ts +1 -0
- package/build/library/library/slices/ImageAndText/ImageAndText.types.d.ts +15 -0
- package/build/library/library/slices/InquestSchedule/InquestSchedule.d.ts +7 -0
- package/build/library/library/slices/InquestSchedule/InquestSchedule.storydata.d.ts +3 -0
- package/build/library/library/slices/InquestSchedule/InquestSchedule.test.d.ts +1 -0
- package/build/library/library/slices/InquestSchedule/InquestSchedule.types.d.ts +32 -0
- package/build/library/library/slices/Promotions/Promotions.d.ts +7 -0
- package/build/library/library/slices/RoadworksList/RoadworksList.d.ts +7 -0
- package/build/library/library/slices/RoadworksList/RoadworksList.storydata.d.ts +4 -0
- package/build/library/library/slices/RoadworksList/RoadworksList.test.d.ts +1 -0
- package/build/library/library/slices/RoadworksList/RoadworksList.types.d.ts +52 -0
- package/build/library/library/slices/SearchBox/SearchBox.d.ts +4 -0
- package/build/library/library/slices/SearchBox/SearchBox.storydata.d.ts +2 -0
- package/build/library/library/slices/SearchBox/SearchBox.test.d.ts +1 -0
- package/build/library/library/slices/SearchBox/SearchBox.types.d.ts +41 -0
- package/build/library/library/slices/Video/Video.d.ts +7 -0
- package/build/library/library/slices/Video/Video.test.d.ts +1 -0
- package/build/library/library/slices/Video/Video.types.d.ts +22 -0
- package/build/library/library/slices/WarningText/WarningText.d.ts +7 -0
- package/build/library/library/slices/WarningText/WarningText.test.d.ts +1 -0
- package/build/library/library/slices/WarningText/WarningText.types.d.ts +14 -0
- package/build/library/library/slices/WarningTextDisclaimer/WarningTextDisclaimer.d.ts +4 -0
- package/build/library/library/slices/WarningTextDisclaimer/WarningTextDisclaimer.types.d.ts +2 -0
- package/build/library/library/structure/AccessibleLinks/AccessibleLinks.d.ts +4 -0
- package/build/library/library/structure/AccessibleLinks/AccessibleLinks.types.d.ts +22 -0
- package/build/library/library/structure/AlertBanner/AlertBanner.d.ts +7 -0
- package/build/library/library/structure/AlertBanner/AlertBanner.test.d.ts +1 -0
- package/build/library/library/structure/AlertBanner/AlertBanner.types.d.ts +18 -0
- package/build/library/library/structure/AlertBannerService/AlertBannerService.d.ts +8 -0
- package/build/library/library/structure/AlertBannerService/AlertBannerService.test.d.ts +1 -0
- package/build/library/library/structure/AlertBannerService/AlertBannerService.types.d.ts +18 -0
- package/build/library/library/structure/BackLink/BackLink.d.ts +7 -0
- package/build/library/library/structure/BackLink/BackLink.test.d.ts +1 -0
- package/build/library/library/structure/BackLink/BackLink.types.d.ts +10 -0
- package/build/library/library/structure/Breadcrumbs/Breadcrumbs.d.ts +4 -0
- package/build/library/library/structure/Breadcrumbs/Breadcrumbs.test.d.ts +1 -0
- package/build/library/library/structure/Breadcrumbs/Breadcrumbs.types.d.ts +20 -0
- package/build/library/library/structure/Contents/Contents.d.ts +4 -0
- package/build/library/library/structure/Contents/Contents.storydata.d.ts +2 -0
- package/build/library/library/structure/Contents/Contents.test.d.ts +1 -0
- package/build/library/library/structure/Contents/Contents.types.d.ts +24 -0
- package/build/library/library/structure/ContentsNavigation/ContentsNavigation.d.ts +4 -0
- package/build/library/library/structure/ContentsNavigation/ContentsNavigation.test.d.ts +1 -0
- package/build/library/library/structure/CookieBanner/CookieBanner.d.ts +6 -0
- package/build/library/library/structure/CookieBanner/CookieBanner.types.d.ts +30 -0
- package/build/library/library/structure/CookieBanner/CookieClear.d.ts +5 -0
- package/build/library/library/structure/DisplayDate/DisplayDate.d.ts +7 -0
- package/build/library/library/structure/DisplayDate/DisplayDate.types.d.ts +18 -0
- package/build/library/library/structure/Footer/Footer.d.ts +4 -0
- package/build/library/library/structure/Footer/Footer.test.d.ts +1 -0
- package/build/library/library/structure/Footer/Footer.types.d.ts +24 -0
- package/build/library/library/structure/FullWidthContainer/FullWidthContainer.d.ts +7 -0
- package/build/library/library/structure/FullWidthContainer/FullWidthContainer.test.d.ts +1 -0
- package/build/library/library/structure/FullWidthContainer/FullWidthContainer.types.d.ts +15 -0
- package/build/library/library/structure/Header/Header.d.ts +7 -0
- package/build/library/library/structure/Header/Header.test.d.ts +1 -0
- package/build/library/library/structure/Header/Header.types.d.ts +30 -0
- package/build/library/library/structure/HeroImage/HeroImage.d.ts +8 -0
- package/build/library/library/structure/HeroImage/HeroImage.storydata.d.ts +6 -0
- package/build/library/library/structure/HeroImage/HeroImage.test.d.ts +1 -0
- package/build/library/library/structure/HeroImage/HeroImage.types.d.ts +52 -0
- package/build/library/library/structure/HomeHero/HomeHero.d.ts +7 -0
- package/build/library/library/structure/HomeHero/HomeHero.storydata.d.ts +19 -0
- package/build/library/library/structure/HomeHero/HomeHero.test.d.ts +1 -0
- package/build/library/library/structure/HomeHero/HomeHero.types.d.ts +54 -0
- package/build/library/library/structure/MaxWidthContainer/MaxWidthContainer.d.ts +7 -0
- package/build/library/library/structure/MaxWidthContainer/MaxWidthContainer.types.d.ts +22 -0
- package/build/library/library/structure/MemorialHero/MemorialHero.d.ts +4 -0
- package/build/library/library/structure/MemorialHero/MemorialHero.types.d.ts +27 -0
- package/build/library/library/structure/NewsArticleDate/NewsArticleDate.d.ts +7 -0
- package/build/library/library/structure/NewsArticleDate/NewsArticleDate.types.d.ts +10 -0
- package/build/library/library/structure/NewsArticleFeaturedBlock/NewsArticleFeaturedBlock.d.ts +7 -0
- package/build/library/library/structure/NewsArticleFeaturedBlock/NewsArticleFeaturedBlock.test.d.ts +1 -0
- package/build/library/library/structure/NewsArticleFeaturedBlock/NewsArticleFeaturedBlock.types.d.ts +23 -0
- package/build/library/library/structure/NewsArticleFilterAccordion/NewsArticleFilterAccordion.d.ts +4 -0
- package/build/library/library/structure/NewsArticleFilterAccordion/NewsArticleFilterAccordion.types.d.ts +7 -0
- package/build/library/library/structure/NewsArticleImage/NewsArticleImage.d.ts +7 -0
- package/build/library/library/structure/NewsArticleImage/NewsArticleImage.types.d.ts +18 -0
- package/build/library/library/structure/NewsArticleList/NewsArticleData.d.ts +7 -0
- package/build/library/library/structure/NewsArticleList/NewsArticleList.d.ts +4 -0
- package/build/library/library/structure/NewsArticleList/NewsArticleList.test.d.ts +1 -0
- package/build/library/library/structure/NewsArticleList/NewsArticleList.types.d.ts +28 -0
- package/build/library/library/structure/NewsArticleListHeader/NewsArticleListHeader.d.ts +4 -0
- package/build/library/library/structure/NewsArticleListHeader/NewsArticleListHeader.types.d.ts +6 -0
- package/build/library/library/structure/NewsArticleOldBanner/NewsArticleOldBanner.d.ts +7 -0
- package/build/library/library/structure/NewsArticleOldBanner/NewsArticleOldBanner.types.d.ts +2 -0
- package/build/library/library/structure/PageMain/PageMain.d.ts +7 -0
- package/build/library/library/structure/PageMain/PageMain.test.d.ts +1 -0
- package/build/library/library/structure/PageMain/PageMain.types.d.ts +14 -0
- package/build/library/library/structure/PageSidebar/PageSidebar.d.ts +7 -0
- package/build/library/library/structure/PageSidebar/PageSidebar.types.d.ts +6 -0
- package/build/library/library/structure/PageStructures.d.ts +42 -0
- package/build/library/library/structure/PageTitle/PageTitle.d.ts +7 -0
- package/build/library/library/structure/PageTitle/PageTitle.types.d.ts +11 -0
- package/build/library/library/structure/PageWithSidebarContainer/PageWithSidebarContainer.d.ts +7 -0
- package/build/library/library/structure/PageWithSidebarContainer/PageWithSidebarContainer.types.d.ts +10 -0
- package/build/library/library/structure/PageWrapper/PageWrapper.d.ts +4 -0
- package/build/library/library/structure/PageWrapper/PageWrapper.test.d.ts +1 -0
- package/build/library/library/structure/PageWrapper/PageWrapper.types.d.ts +11 -0
- package/build/library/library/structure/PhaseBanner/PhaseBanner.d.ts +4 -0
- package/build/library/library/structure/PhaseBanner/PhaseBanner.types.d.ts +3 -0
- package/build/library/library/structure/PromoBanner/PromoBanner.d.ts +8 -0
- package/build/library/library/structure/PromoBanner/PromoBanner.storydata.d.ts +9 -0
- package/build/library/library/structure/PromoBanner/PromoBanner.test.d.ts +1 -0
- package/build/library/library/structure/PromoBanner/PromoBanner.types.d.ts +26 -0
- package/build/library/library/structure/PromoBlock/PromoBlock.d.ts +8 -0
- package/build/library/library/structure/PromoBlock/PromoBlock.storydata.d.ts +5 -0
- package/build/library/library/structure/PromoBlock/PromoBlock.test.d.ts +1 -0
- package/build/library/library/structure/PromoBlock/PromoBlock.types.d.ts +36 -0
- package/build/library/library/structure/SearchHeader/SearchHeader.d.ts +4 -0
- package/build/library/library/structure/SearchHeader/SearchHeader.types.d.ts +2 -0
- package/build/library/library/structure/SearchResultsList/NoResultsMessage.d.ts +3 -0
- package/build/library/library/structure/SearchResultsList/SearchResultsList.d.ts +4 -0
- package/build/library/library/structure/SearchResultsList/SearchResultsList.test.d.ts +1 -0
- package/build/library/library/structure/SearchResultsList/SearchResultsList.types.d.ts +46 -0
- package/build/library/library/structure/Searchbar/Searchbar.d.ts +4 -0
- package/build/library/library/structure/Searchbar/Searchbar.test.d.ts +1 -0
- package/build/library/library/structure/Searchbar/Searchbar.types.d.ts +48 -0
- package/build/library/library/structure/SectionLinks/SectionLinks.d.ts +7 -0
- package/build/library/library/structure/SectionLinks/SectionLinks.storydata.d.ts +2 -0
- package/build/library/library/structure/SectionLinks/SectionLinks.test.d.ts +1 -0
- package/build/library/library/structure/SectionLinks/SectionLinks.types.d.ts +52 -0
- package/build/library/library/structure/SectionLinksMobileContents/SectionLinksMobileContents.d.ts +4 -0
- package/build/library/library/structure/SectionLinksMobileContents/SectionLinksMobileContents.types.d.ts +16 -0
- package/build/library/library/structure/SectionLinksSidebar/SectionLinksSidebar.d.ts +4 -0
- package/build/library/library/structure/SectionLinksSidebar/SectionLinksSidebar.test.d.ts +1 -0
- package/build/library/library/structure/SectionLinksSidebar/SectionLinksSidebar.types.d.ts +34 -0
- package/build/library/library/structure/ServicesLinksBoxed/ServicesLinksBoxed.d.ts +4 -0
- package/build/library/library/structure/ServicesLinksBoxed/ServicesLinksBoxed.storydata.d.ts +9 -0
- package/build/library/library/structure/ServicesLinksBoxed/ServicesLinksBoxed.test.d.ts +1 -0
- package/build/library/library/structure/ServicesLinksBoxed/ServicesLinksBoxed.types.d.ts +53 -0
- package/build/library/library/structure/ServicesLinksList/ServicesLinksList.d.ts +4 -0
- package/build/library/library/structure/ServicesLinksList/ServicesLinksList.test.d.ts +1 -0
- package/build/library/library/structure/ServicesLinksList/ServicesLinksList.types.d.ts +68 -0
- package/build/library/library/structure/SignpostLinks/SignpostLinks.d.ts +4 -0
- package/build/library/library/structure/SignpostLinks/SignpostLinks.types.d.ts +32 -0
- package/build/library/library/structure/SkipToMainContent/SkipToMainContent.d.ts +4 -0
- package/build/library/library/structure/SkipToMainContent/SkipToMainContent.test.d.ts +1 -0
- package/build/library/library/structure/SkipToMainContent/SkipToMainContent.types.d.ts +2 -0
- package/build/library/library/structure/Summary/Summary.d.ts +4 -0
- package/build/library/library/structure/Summary/Summary.test.d.ts +1 -0
- package/build/library/library/structure/Summary/Summary.types.d.ts +15 -0
- package/build/library/pages/ServiceLandingPageExample/ServiceLandingPageExample.types.d.ts +5 -0
- package/build/library/structure/PageWrapper/PageWrapper.test.d.ts +1 -0
- package/build/src/index.d.ts +2 -0
- package/build/src/library/structure/PageWrapper/PageWrapper.test.d.ts +1 -0
- package/build/src/themes/ThemeUtils.d.ts +95 -0
- package/build/themes/ThemeUtils.d.ts +95 -0
- package/build/themes/themes/ThemeUtils.d.ts +95 -0
- package/build/themes/themes/ThemeVars.types.d.ts +60 -0
- package/package.json +2 -1
package/build/index.js
CHANGED
|
@@ -27653,8 +27653,8 @@ var PageWithSidebarContainer = function (_a) {
|
|
|
27653
27653
|
|
|
27654
27654
|
const backgroundDecider = props => {
|
|
27655
27655
|
|
|
27656
|
-
const colourString = props.theme.theme_vars.colours[props
|
|
27657
|
-
if (props
|
|
27656
|
+
const colourString = props.theme.theme_vars.colours[props.$colour];
|
|
27657
|
+
if (props.$colour){
|
|
27658
27658
|
return styled.css`
|
|
27659
27659
|
background-color: ${colourString};
|
|
27660
27660
|
`
|
|
@@ -27674,7 +27674,7 @@ const Container$h = styled__default.default.div`
|
|
|
27674
27674
|
|
|
27675
27675
|
var PageWrapper = function (_a) {
|
|
27676
27676
|
var colour = _a.colour, children = _a.children;
|
|
27677
|
-
return (React__default.default.createElement(Container$h, { "data-testid": "PageWrapper", colour: colour }, children));
|
|
27677
|
+
return (React__default.default.createElement(Container$h, { "data-testid": "PageWrapper", "$colour": colour }, children));
|
|
27678
27678
|
};
|
|
27679
27679
|
|
|
27680
27680
|
const Wrapper = styled__default.default.div`
|
|
@@ -29865,6 +29865,9 @@ const west_vars = {
|
|
|
29865
29865
|
placeholder: '#585656',
|
|
29866
29866
|
|
|
29867
29867
|
secondary: '#6CC7E1',
|
|
29868
|
+
alert_background: '#B20613',
|
|
29869
|
+
warning_background: '#F69F14',
|
|
29870
|
+
positive_background: '#A0D9EF',
|
|
29868
29871
|
},
|
|
29869
29872
|
fontstack: 'Roboto, Helvetica, Arial, sans-serif',
|
|
29870
29873
|
fontSizes: {
|
|
@@ -29899,7 +29902,7 @@ const west_vars = {
|
|
|
29899
29902
|
font-size: 24px;
|
|
29900
29903
|
font-size: 1.5rem;
|
|
29901
29904
|
font-weight: 700;
|
|
29902
|
-
|
|
29905
|
+
|
|
29903
29906
|
@media (min-width: 40.0625em) {
|
|
29904
29907
|
font-size: 36px;
|
|
29905
29908
|
font-size: 2.25rem;
|
|
@@ -29909,7 +29912,7 @@ const west_vars = {
|
|
|
29909
29912
|
font-size: 18px;
|
|
29910
29913
|
font-size: 1.125rem;
|
|
29911
29914
|
font-weight: 700;
|
|
29912
|
-
|
|
29915
|
+
|
|
29913
29916
|
@media (min-width: 40.0625em) {
|
|
29914
29917
|
font-size: 24px;
|
|
29915
29918
|
font-size: 1.5rem;
|
|
@@ -29919,7 +29922,7 @@ const west_vars = {
|
|
|
29919
29922
|
font-size: 16px;
|
|
29920
29923
|
font-size: 1rem;
|
|
29921
29924
|
font-weight: 700;
|
|
29922
|
-
|
|
29925
|
+
|
|
29923
29926
|
@media (min-width: 40.0625em) {
|
|
29924
29927
|
font-size: 19px;
|
|
29925
29928
|
font-size: 1.1875rem;
|
|
@@ -29975,6 +29978,10 @@ const lb_vars_north = {
|
|
|
29975
29978
|
positive: '#147DAD',
|
|
29976
29979
|
negative: '#B73131',
|
|
29977
29980
|
|
|
29981
|
+
alert_background: '#B73131',
|
|
29982
|
+
warning_background: '#F69F14',
|
|
29983
|
+
positive_background: '#147DAD',
|
|
29984
|
+
|
|
29978
29985
|
focus: '#E2CA76',
|
|
29979
29986
|
placeholder: '#585656',
|
|
29980
29987
|
secondary: '#1A9DD9',
|
|
@@ -30012,7 +30019,7 @@ const lb_vars_north = {
|
|
|
30012
30019
|
font-size: 24px;
|
|
30013
30020
|
font-size: 1.5rem;
|
|
30014
30021
|
font-weight: 700;
|
|
30015
|
-
|
|
30022
|
+
|
|
30016
30023
|
@media (min-width: 40.0625em) {
|
|
30017
30024
|
font-size: 36px;
|
|
30018
30025
|
font-size: 2.25rem;
|
|
@@ -30022,7 +30029,7 @@ const lb_vars_north = {
|
|
|
30022
30029
|
font-size: 18px;
|
|
30023
30030
|
font-size: 1.125rem;
|
|
30024
30031
|
font-weight: 700;
|
|
30025
|
-
|
|
30032
|
+
|
|
30026
30033
|
@media (min-width: 40.0625em) {
|
|
30027
30034
|
font-size: 24px;
|
|
30028
30035
|
font-size: 1.5rem;
|
|
@@ -30032,7 +30039,7 @@ const lb_vars_north = {
|
|
|
30032
30039
|
font-size: 16px;
|
|
30033
30040
|
font-size: 1rem;
|
|
30034
30041
|
font-weight: 700;
|
|
30035
|
-
|
|
30042
|
+
|
|
30036
30043
|
@media (min-width: 40.0625em) {
|
|
30037
30044
|
font-size: 19px;
|
|
30038
30045
|
font-size: 1.1875rem;
|
|
@@ -30088,6 +30095,10 @@ const lb_vars_west = {
|
|
|
30088
30095
|
positive: '#6C9A36',
|
|
30089
30096
|
negative: '#9D0B1D',
|
|
30090
30097
|
|
|
30098
|
+
alert_background: '#9D0B1D',
|
|
30099
|
+
warning_background: '#F69F14',
|
|
30100
|
+
positive_background: '#6C9A36',
|
|
30101
|
+
|
|
30091
30102
|
focus: '#E2CA76',
|
|
30092
30103
|
placeholder: '#585656',
|
|
30093
30104
|
|
|
@@ -30126,7 +30137,7 @@ const lb_vars_west = {
|
|
|
30126
30137
|
font-size: 24px;
|
|
30127
30138
|
font-size: 1.5rem;
|
|
30128
30139
|
font-weight: 700;
|
|
30129
|
-
|
|
30140
|
+
|
|
30130
30141
|
@media (min-width: 40.0625em) {
|
|
30131
30142
|
font-size: 36px;
|
|
30132
30143
|
font-size: 2.25rem;
|
|
@@ -30136,7 +30147,7 @@ const lb_vars_west = {
|
|
|
30136
30147
|
font-size: 18px;
|
|
30137
30148
|
font-size: 1.125rem;
|
|
30138
30149
|
font-weight: 700;
|
|
30139
|
-
|
|
30150
|
+
|
|
30140
30151
|
@media (min-width: 40.0625em) {
|
|
30141
30152
|
font-size: 24px;
|
|
30142
30153
|
font-size: 1.5rem;
|
|
@@ -30146,7 +30157,7 @@ const lb_vars_west = {
|
|
|
30146
30157
|
font-size: 16px;
|
|
30147
30158
|
font-size: 1rem;
|
|
30148
30159
|
font-weight: 700;
|
|
30149
|
-
|
|
30160
|
+
|
|
30150
30161
|
@media (min-width: 40.0625em) {
|
|
30151
30162
|
font-size: 19px;
|
|
30152
30163
|
font-size: 1.1875rem;
|
|
@@ -33705,6 +33716,819 @@ var DirectoryDocumentList = function (_a) {
|
|
|
33705
33716
|
React__default.default.createElement(Column, { small: "full", medium: "full", large: "full" }, !isLoading && (React__default.default.createElement(Pagination, { currentPage: pageNumber, totalResults: totalResults, resultsPerPage: perPage, postTo: directoryPath, buttonClickOverride: setPageNumber }))))))));
|
|
33706
33717
|
};
|
|
33707
33718
|
|
|
33719
|
+
var Event = function (_a) {
|
|
33720
|
+
var _b, _c;
|
|
33721
|
+
var id = _a.id, name = _a.name, description = _a.description, descriptionElement = _a.descriptionElement, startDateTime = _a.startDateTime, endDateTime = _a.endDateTime, eventType = _a.eventType, audience = _a.audience, organization = _a.organization, location = _a.location, email = _a.email, fees = _a.fees, url = _a.url, websiteUrlTitle = _a.websiteUrlTitle, contacts = _a.contacts, uploads = _a.uploads, socialProfiles = _a.socialProfiles, shortListPath = _a.shortListPath, isRecurring = _a.isRecurring, recurrencePattern = _a.recurrencePattern, registrationDeadline = _a.registrationDeadline, capacity = _a.capacity, currentAttendees = _a.currentAttendees;
|
|
33722
|
+
var labelLetters = ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L'];
|
|
33723
|
+
var _d = React.useState(false), notServer = _d[0], setNotServer = _d[1];
|
|
33724
|
+
var themeContext = React.useContext(styled.ThemeContext);
|
|
33725
|
+
var favourites = useDirectoryShortListContext().favourites.favourites;
|
|
33726
|
+
React.useEffect(function () {
|
|
33727
|
+
setNotServer(true);
|
|
33728
|
+
}, []);
|
|
33729
|
+
var formatEventDateTime = function (startDateTime, endDateTime) {
|
|
33730
|
+
var startDate = new Date(startDateTime);
|
|
33731
|
+
var options = {
|
|
33732
|
+
weekday: 'long',
|
|
33733
|
+
year: 'numeric',
|
|
33734
|
+
month: 'long',
|
|
33735
|
+
day: 'numeric',
|
|
33736
|
+
hour: '2-digit',
|
|
33737
|
+
minute: '2-digit',
|
|
33738
|
+
};
|
|
33739
|
+
var formatted = startDate.toLocaleDateString('en-GB', options);
|
|
33740
|
+
if (endDateTime) {
|
|
33741
|
+
var endDate = new Date(endDateTime);
|
|
33742
|
+
var endTime = endDate.toLocaleTimeString('en-GB', { hour: '2-digit', minute: '2-digit' });
|
|
33743
|
+
formatted += " - ".concat(endTime);
|
|
33744
|
+
}
|
|
33745
|
+
return formatted;
|
|
33746
|
+
};
|
|
33747
|
+
var transformEventDetails = function () {
|
|
33748
|
+
var details = [];
|
|
33749
|
+
if (fees) {
|
|
33750
|
+
details.push({
|
|
33751
|
+
term: 'Cost',
|
|
33752
|
+
definition: fees,
|
|
33753
|
+
});
|
|
33754
|
+
}
|
|
33755
|
+
if (eventType) {
|
|
33756
|
+
details.push({
|
|
33757
|
+
term: 'Event type',
|
|
33758
|
+
definition: eventType,
|
|
33759
|
+
});
|
|
33760
|
+
}
|
|
33761
|
+
if (audience && audience.length > 0) {
|
|
33762
|
+
details.push({
|
|
33763
|
+
term: 'Target audience',
|
|
33764
|
+
definition: audience.join(', '),
|
|
33765
|
+
});
|
|
33766
|
+
}
|
|
33767
|
+
if (isRecurring && recurrencePattern) {
|
|
33768
|
+
details.push({
|
|
33769
|
+
term: 'Recurrence',
|
|
33770
|
+
definition: recurrencePattern,
|
|
33771
|
+
});
|
|
33772
|
+
}
|
|
33773
|
+
if (registrationDeadline) {
|
|
33774
|
+
var deadline = new Date(registrationDeadline);
|
|
33775
|
+
details.push({
|
|
33776
|
+
term: 'Registration deadline',
|
|
33777
|
+
definition: deadline.toLocaleDateString('en-GB', {
|
|
33778
|
+
weekday: 'long',
|
|
33779
|
+
year: 'numeric',
|
|
33780
|
+
month: 'long',
|
|
33781
|
+
day: 'numeric',
|
|
33782
|
+
}),
|
|
33783
|
+
});
|
|
33784
|
+
}
|
|
33785
|
+
if (capacity && currentAttendees !== undefined) {
|
|
33786
|
+
details.push({
|
|
33787
|
+
term: 'Availability',
|
|
33788
|
+
definition: "".concat(currentAttendees, " / ").concat(capacity, " registered"),
|
|
33789
|
+
});
|
|
33790
|
+
}
|
|
33791
|
+
else if (capacity) {
|
|
33792
|
+
details.push({
|
|
33793
|
+
term: 'Capacity',
|
|
33794
|
+
definition: "".concat(capacity, " spaces"),
|
|
33795
|
+
});
|
|
33796
|
+
}
|
|
33797
|
+
return details;
|
|
33798
|
+
};
|
|
33799
|
+
return (React__default.default.createElement(Container$7, { "data-testid": "Event" },
|
|
33800
|
+
React__default.default.createElement(Row$1, null,
|
|
33801
|
+
React__default.default.createElement(Column, { small: "full", medium: "full", large: "full" },
|
|
33802
|
+
React__default.default.createElement(Row$1, null,
|
|
33803
|
+
React__default.default.createElement(Column, { small: "full", medium: "full", large: "full" },
|
|
33804
|
+
React__default.default.createElement(ServiceHeader$1, null,
|
|
33805
|
+
React__default.default.createElement(Heading, { level: 1, text: name }),
|
|
33806
|
+
(organization === null || organization === void 0 ? void 0 : organization.logo) && (React__default.default.createElement(ServiceImageOuter, null,
|
|
33807
|
+
React__default.default.createElement(ServiceImageContainer$1, null,
|
|
33808
|
+
React__default.default.createElement(ServiceImage$1, { src: organization.logo, alt: name + ' logo', loading: "lazy" })))))),
|
|
33809
|
+
React__default.default.createElement(Column, { small: "full", medium: "full", large: "full" }, notServer && (React__default.default.createElement(ShortListLinks, null,
|
|
33810
|
+
shortListPath && (React__default.default.createElement(Favourites$1, { href: shortListPath },
|
|
33811
|
+
React__default.default.createElement(HeartIcon, { colourFill: themeContext.theme_vars.colours.action }),
|
|
33812
|
+
" Shortlist (",
|
|
33813
|
+
favourites.length,
|
|
33814
|
+
")")),
|
|
33815
|
+
React__default.default.createElement(DirectoryAddToShortList, { id: id, name: name, snippet: transformSnippet(description, 350), email: email, website: url, phone: (_c = (_b = contacts === null || contacts === void 0 ? void 0 : contacts[0]) === null || _b === void 0 ? void 0 : _b.phones) === null || _c === void 0 ? void 0 : _c.flatMap(function (phone) { return phone.number; }).join(', '), addresses: (location === null || location === void 0 ? void 0 : location.address) ? [{
|
|
33816
|
+
id: location.address.id,
|
|
33817
|
+
address_1: location.address.address1,
|
|
33818
|
+
city: location.address.city,
|
|
33819
|
+
state_province: location.address.county,
|
|
33820
|
+
postal_code: location.address.postcode,
|
|
33821
|
+
country: location.address.country
|
|
33822
|
+
}] : [], fees: fees })))))),
|
|
33823
|
+
React__default.default.createElement(Column, { small: "full", medium: "full", large: "full", classes: "striped-column" },
|
|
33824
|
+
React__default.default.createElement(Heading, { level: 2, text: "Event date and time" }),
|
|
33825
|
+
React__default.default.createElement("div", { style: { fontSize: '1.2rem', fontWeight: 'bold', marginBottom: '1rem' } }, formatEventDateTime(startDateTime, endDateTime)),
|
|
33826
|
+
organization && (React__default.default.createElement("p", null,
|
|
33827
|
+
React__default.default.createElement("strong", null, "Organised by:"),
|
|
33828
|
+
" ",
|
|
33829
|
+
organization.name))),
|
|
33830
|
+
location && (location.address || location.isVirtual) && (React__default.default.createElement(Column, { small: "full", medium: "full", large: "full", classes: "striped-column" },
|
|
33831
|
+
React__default.default.createElement(Row$1, null,
|
|
33832
|
+
React__default.default.createElement(Column, { small: "full", medium: "full", large: "one-third" }, location.isVirtual ? (React__default.default.createElement("div", null,
|
|
33833
|
+
React__default.default.createElement(Heading, { level: 2, text: "Virtual event" }),
|
|
33834
|
+
React__default.default.createElement("p", null, "This is an online event."),
|
|
33835
|
+
location.virtualMeetingInfo && (React__default.default.createElement("div", null,
|
|
33836
|
+
React__default.default.createElement("strong", null, "Meeting details:"),
|
|
33837
|
+
React__default.default.createElement("div", { dangerouslySetInnerHTML: { __html: location.virtualMeetingInfo } }))))) : (React__default.default.createElement("div", null,
|
|
33838
|
+
React__default.default.createElement(Heading, { level: 2, text: location.name || 'Event location' }),
|
|
33839
|
+
location.address && (React__default.default.createElement(PhysicalAddress, null,
|
|
33840
|
+
React__default.default.createElement("p", { dangerouslySetInnerHTML: {
|
|
33841
|
+
__html: Object.values(location.address)
|
|
33842
|
+
.filter(function (item) { var _a; return item !== '' && item !== ((_a = location.address) === null || _a === void 0 ? void 0 : _a.id); })
|
|
33843
|
+
.join(' <br />'),
|
|
33844
|
+
} }),
|
|
33845
|
+
location.latitude && location.longitude && (React__default.default.createElement(Button$4, { url: "https://google.com/maps/dir//".concat(location.latitude, ",").concat(location.longitude), text: "Get directions" })))),
|
|
33846
|
+
location.accessibility && location.accessibility.length > 0 && (React__default.default.createElement(React__default.default.Fragment, null,
|
|
33847
|
+
React__default.default.createElement(Heading, { level: 3, text: "Accessibility" }),
|
|
33848
|
+
React__default.default.createElement("ul", null, location.accessibility.map(function (accessibility) { return (React__default.default.createElement("li", { key: accessibility.id }, accessibility.accessibility)); }))))))),
|
|
33849
|
+
React__default.default.createElement(Column, { small: "full", medium: "full", large: "two-thirds" }, !location.isVirtual &&
|
|
33850
|
+
location.latitude &&
|
|
33851
|
+
location.longitude && (React__default.default.createElement(React__default.default.Fragment, null,
|
|
33852
|
+
notServer && (React__default.default.createElement(DirectoryMap, { mapProps: {
|
|
33853
|
+
centre: "".concat(location.latitude, ",").concat(location.longitude),
|
|
33854
|
+
imageAltText: "".concat(location.name || 'Event location', " shown on a map"),
|
|
33855
|
+
zoom: 14,
|
|
33856
|
+
size: '640x320',
|
|
33857
|
+
mapMarkers: [
|
|
33858
|
+
{
|
|
33859
|
+
lat: parseFloat(location.latitude),
|
|
33860
|
+
lng: parseFloat(location.longitude),
|
|
33861
|
+
label: labelLetters[0],
|
|
33862
|
+
title: location.name || 'Event location',
|
|
33863
|
+
},
|
|
33864
|
+
],
|
|
33865
|
+
} })),
|
|
33866
|
+
React__default.default.createElement(MapLink, { href: "https://www.google.com/maps/search/?api=1&query=".concat(location.latitude, "%2C").concat(location.longitude) }, "View in Google Maps"))))))),
|
|
33867
|
+
(email || url || (contacts === null || contacts === void 0 ? void 0 : contacts.length) > 0) && (React__default.default.createElement(Column, { small: "full", medium: "full", large: "full", classes: "striped-column" },
|
|
33868
|
+
React__default.default.createElement(Heading, { level: 2, text: "How to contact about this event" }),
|
|
33869
|
+
React__default.default.createElement(ServiceContact, { email: email, website: url, websiteTitle: websiteUrlTitle, contacts: contacts }))),
|
|
33870
|
+
React__default.default.createElement(Column, { small: "full", medium: "full", large: "full", classes: "striped-column" },
|
|
33871
|
+
React__default.default.createElement(Heading, { level: 2, text: "About this event" }),
|
|
33872
|
+
React__default.default.createElement("div", null,
|
|
33873
|
+
React__default.default.createElement(React__default.default.Fragment, null, descriptionElement)),
|
|
33874
|
+
React__default.default.createElement(SummaryList, { terms: transformEventDetails(), hasMargin: false })),
|
|
33875
|
+
(uploads === null || uploads === void 0 ? void 0 : uploads.length) > 0 && (React__default.default.createElement(Column, { small: "full", medium: "full", large: "full", classes: "striped-column" },
|
|
33876
|
+
React__default.default.createElement(Heading, { level: 2, text: "Event resources" }),
|
|
33877
|
+
React__default.default.createElement(DownloadableFiles, { files: uploads }))),
|
|
33878
|
+
(socialProfiles === null || socialProfiles === void 0 ? void 0 : socialProfiles.length) > 0 && (React__default.default.createElement(Column, { small: "full", medium: "full", large: "full", classes: "striped-column" },
|
|
33879
|
+
React__default.default.createElement(Heading, { level: 2, text: "Follow this event" }),
|
|
33880
|
+
React__default.default.createElement(ServiceSocialLinks, { profiles: socialProfiles }))))));
|
|
33881
|
+
};
|
|
33882
|
+
|
|
33883
|
+
({
|
|
33884
|
+
id: 'event-1',
|
|
33885
|
+
name: 'Family Fun Day at Wicksteed Park',
|
|
33886
|
+
description: 'Join us for an exciting family fun day with activities for all ages. There will be face painting, balloon animals, live music, and special discounts on park rides. A perfect day out for families with children of all ages.',
|
|
33887
|
+
descriptionElement: (React__default.default.createElement("div", null,
|
|
33888
|
+
React__default.default.createElement("p", null, "Join us for an exciting family fun day with activities for all ages. There will be face painting, balloon animals, live music, and special discounts on park rides."),
|
|
33889
|
+
React__default.default.createElement("p", null, "A perfect day out for families with children of all ages. Food and refreshments will be available throughout the day."))),
|
|
33890
|
+
startDateTime: '2025-07-15T10:00:00',
|
|
33891
|
+
endDateTime: '2025-07-15T16:00:00',
|
|
33892
|
+
eventType: 'Family Event',
|
|
33893
|
+
audience: ['Families', 'Children', 'Young People'],
|
|
33894
|
+
organization: {
|
|
33895
|
+
id: 'org-1',
|
|
33896
|
+
name: 'Wicksteed Park',
|
|
33897
|
+
description: 'A family theme park and nature reserve in Kettering',
|
|
33898
|
+
logo: 'https://via.placeholder.com/200x100?text=Wicksteed+Park',
|
|
33899
|
+
url: 'https://www.wicksteedpark.co.uk',
|
|
33900
|
+
},
|
|
33901
|
+
location: {
|
|
33902
|
+
id: 1,
|
|
33903
|
+
name: 'Wicksteed Park',
|
|
33904
|
+
description: 'Main entrance and activities area',
|
|
33905
|
+
isVisitable: true,
|
|
33906
|
+
latitude: '52.3991',
|
|
33907
|
+
longitude: '-0.7358',
|
|
33908
|
+
address: {
|
|
33909
|
+
id: 1,
|
|
33910
|
+
address1: 'Barton Road',
|
|
33911
|
+
city: 'Kettering',
|
|
33912
|
+
county: 'Northamptonshire',
|
|
33913
|
+
postcode: 'NN15 6NJ',
|
|
33914
|
+
country: 'United Kingdom',
|
|
33915
|
+
},
|
|
33916
|
+
accessibility: [
|
|
33917
|
+
{
|
|
33918
|
+
id: 1,
|
|
33919
|
+
accessibility: 'Wheelchair accessible paths',
|
|
33920
|
+
},
|
|
33921
|
+
{
|
|
33922
|
+
id: 2,
|
|
33923
|
+
accessibility: 'Accessible toilets',
|
|
33924
|
+
},
|
|
33925
|
+
{
|
|
33926
|
+
id: 3,
|
|
33927
|
+
accessibility: 'Disabled parking available',
|
|
33928
|
+
},
|
|
33929
|
+
],
|
|
33930
|
+
},
|
|
33931
|
+
email: 'events@wicksteedpark.co.uk',
|
|
33932
|
+
fees: 'Free entry to event activities. Park entry charges apply.',
|
|
33933
|
+
url: 'https://www.wicksteedpark.co.uk/events/family-fun-day',
|
|
33934
|
+
websiteUrlTitle: 'Book tickets online',
|
|
33935
|
+
contacts: [
|
|
33936
|
+
{
|
|
33937
|
+
id: 1,
|
|
33938
|
+
name: 'Event Information',
|
|
33939
|
+
title: 'General Enquiries',
|
|
33940
|
+
phones: [
|
|
33941
|
+
{
|
|
33942
|
+
id: 1,
|
|
33943
|
+
number: '01536 512475',
|
|
33944
|
+
},
|
|
33945
|
+
],
|
|
33946
|
+
},
|
|
33947
|
+
],
|
|
33948
|
+
uploads: [
|
|
33949
|
+
{
|
|
33950
|
+
title: 'Event Programme',
|
|
33951
|
+
url: '/files/family-fun-day-programme.pdf',
|
|
33952
|
+
size: '2.5MB',
|
|
33953
|
+
type: 'PDF',
|
|
33954
|
+
archived: false,
|
|
33955
|
+
},
|
|
33956
|
+
{
|
|
33957
|
+
title: 'Activity Map',
|
|
33958
|
+
url: '/files/activity-map.pdf',
|
|
33959
|
+
size: '1.2MB',
|
|
33960
|
+
type: 'PDF',
|
|
33961
|
+
archived: false,
|
|
33962
|
+
},
|
|
33963
|
+
],
|
|
33964
|
+
socialProfiles: [
|
|
33965
|
+
{
|
|
33966
|
+
id: 1,
|
|
33967
|
+
name: 'Wicksteed Park Facebook',
|
|
33968
|
+
social_network: 'facebook',
|
|
33969
|
+
link: 'https://facebook.com/wicksteedpark',
|
|
33970
|
+
},
|
|
33971
|
+
{
|
|
33972
|
+
id: 2,
|
|
33973
|
+
name: 'Wicksteed Park Twitter',
|
|
33974
|
+
social_network: 'twitter',
|
|
33975
|
+
link: 'https://twitter.com/wicksteedpark',
|
|
33976
|
+
},
|
|
33977
|
+
],
|
|
33978
|
+
updatedAt: '2025-01-15',
|
|
33979
|
+
shortListPath: '/events/shortlist',
|
|
33980
|
+
isRecurring: false,
|
|
33981
|
+
registrationDeadline: '2025-07-10T23:59:59',
|
|
33982
|
+
capacity: 500,
|
|
33983
|
+
currentAttendees: 342,
|
|
33984
|
+
});
|
|
33985
|
+
({
|
|
33986
|
+
id: 'event-2',
|
|
33987
|
+
name: 'Online Parenting Workshop: Managing Screen Time',
|
|
33988
|
+
description: 'A comprehensive online workshop for parents and carers about managing children\'s screen time effectively. Learn practical strategies, understand the latest research, and connect with other parents.',
|
|
33989
|
+
descriptionElement: (React__default.default.createElement("div", null,
|
|
33990
|
+
React__default.default.createElement("p", null, "A comprehensive online workshop for parents and carers about managing children's screen time effectively."),
|
|
33991
|
+
React__default.default.createElement("p", null, "During this 2-hour session, you'll learn:"),
|
|
33992
|
+
React__default.default.createElement("ul", null,
|
|
33993
|
+
React__default.default.createElement("li", null, "Evidence-based strategies for healthy screen time limits"),
|
|
33994
|
+
React__default.default.createElement("li", null, "How to create engaging offline activities"),
|
|
33995
|
+
React__default.default.createElement("li", null, "Understanding age-appropriate content"),
|
|
33996
|
+
React__default.default.createElement("li", null, "Building family media agreements")),
|
|
33997
|
+
React__default.default.createElement("p", null, "There will be time for Q&A and connecting with other parents."))),
|
|
33998
|
+
startDateTime: '2025-03-20T19:00:00',
|
|
33999
|
+
endDateTime: '2025-03-20T21:00:00',
|
|
34000
|
+
eventType: 'Workshop',
|
|
34001
|
+
audience: ['Parents', 'Carers'],
|
|
34002
|
+
organization: {
|
|
34003
|
+
id: 'org-2',
|
|
34004
|
+
name: 'Northamptonshire Family Support',
|
|
34005
|
+
description: 'Supporting families across Northamptonshire',
|
|
34006
|
+
logo: 'https://via.placeholder.com/200x100?text=Family+Support',
|
|
34007
|
+
url: 'https://www.northantsfamilysupport.org.uk',
|
|
34008
|
+
},
|
|
34009
|
+
location: {
|
|
34010
|
+
id: 2,
|
|
34011
|
+
name: 'Online Event',
|
|
34012
|
+
description: 'Join from the comfort of your own home',
|
|
34013
|
+
isVirtual: true,
|
|
34014
|
+
virtualMeetingInfo: 'Zoom link will be sent 24 hours before the event. Please ensure you have a stable internet connection and a quiet space.',
|
|
34015
|
+
},
|
|
34016
|
+
email: 'workshops@northantsfamilysupport.org.uk',
|
|
34017
|
+
fees: 'Free',
|
|
34018
|
+
url: 'https://www.northantsfamilysupport.org.uk/workshops/screen-time',
|
|
34019
|
+
websiteUrlTitle: 'Register for this workshop',
|
|
34020
|
+
contacts: [
|
|
34021
|
+
{
|
|
34022
|
+
id: 1,
|
|
34023
|
+
name: 'Workshop Team',
|
|
34024
|
+
title: 'Registration Support',
|
|
34025
|
+
phones: [
|
|
34026
|
+
{
|
|
34027
|
+
id: 1,
|
|
34028
|
+
number: '01604 123456',
|
|
34029
|
+
},
|
|
34030
|
+
],
|
|
34031
|
+
},
|
|
34032
|
+
],
|
|
34033
|
+
uploads: [
|
|
34034
|
+
{
|
|
34035
|
+
title: 'Workshop Preparation Guide',
|
|
34036
|
+
url: '/files/screen-time-prep-guide.pdf',
|
|
34037
|
+
size: '800KB',
|
|
34038
|
+
type: 'PDF',
|
|
34039
|
+
archived: false,
|
|
34040
|
+
},
|
|
34041
|
+
],
|
|
34042
|
+
updatedAt: '2025-01-10',
|
|
34043
|
+
shortListPath: '/events/shortlist',
|
|
34044
|
+
isRecurring: true,
|
|
34045
|
+
recurrencePattern: 'Monthly on the third Thursday',
|
|
34046
|
+
registrationDeadline: '2025-03-18T23:59:59',
|
|
34047
|
+
capacity: 50,
|
|
34048
|
+
currentAttendees: 23,
|
|
34049
|
+
});
|
|
34050
|
+
|
|
34051
|
+
var EventList = function (_a) {
|
|
34052
|
+
var eventsPath = _a.eventsPath, shortListPath = _a.shortListPath, events = _a.events, _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.eventTypes, eventTypes = _k === void 0 ? [] : _k, setEventTypes = _a.setEventTypes, _l = _a.audiences, audiences = _l === void 0 ? [] : _l, setAudiences = _a.setAudiences, selectedMonth = _a.selectedMonth, setSelectedMonth = _a.setSelectedMonth, selectedYear = _a.selectedYear, setSelectedYear = _a.setSelectedYear, _m = _a.mapCenter, mapCenter = _m === void 0 ? '52.40410666556486,-0.7237065995821512' : _m, _o = _a.mapZoom, mapZoom = _o === void 0 ? 9 : _o, _p = _a.isLoading, isLoading = _p === void 0 ? false : _p, _q = _a.isError, isError = _q === void 0 ? false : _q; _a.hideOldEvents;
|
|
34053
|
+
var _s = useLocalStorage("".concat(eventsPath.replace(/\//g, ''), "-accordion"), []), accordions = _s[0], setAccordions = _s[1];
|
|
34054
|
+
var _t = useLocalStorage("".concat(eventsPath.replace(/\//g, ''), "-accordion-all"), true), openAll = _t[0], setOpenAll = _t[1];
|
|
34055
|
+
var _u = useLocalStorage("".concat(eventsPath.replace(/\//g, ''), "-show-map"), false), showMap = _u[0], setShowMap = _u[1];
|
|
34056
|
+
var _v = React.useState(false), showFilters = _v[0], setShowFilters = _v[1];
|
|
34057
|
+
var _w = useDirectoryShortListContext(), _x = _w.favourites, favourites = _x.favourites; _x.setFavourites; _w.toggleFavourites; _w.isFavourite;
|
|
34058
|
+
var _y = React.useState(false), notServer = _y[0], setNotServer = _y[1];
|
|
34059
|
+
var _z = React.useState(search), searchTerm = _z[0], setSearchTerm = _z[1];
|
|
34060
|
+
var _0 = React.useState(postcode), postcodeSearch = _0[0], setPostcodeSearch = _0[1];
|
|
34061
|
+
var themeContext = React.useContext(styled.ThemeContext);
|
|
34062
|
+
var _1 = React.useState(false), filtersActive = _1[0], setFiltersActive = _1[1];
|
|
34063
|
+
React.useEffect(function () {
|
|
34064
|
+
setNotServer(true);
|
|
34065
|
+
setFiltersActive(hasActiveFilters());
|
|
34066
|
+
}, []);
|
|
34067
|
+
React.useEffect(function () {
|
|
34068
|
+
setFiltersActive(hasActiveFilters());
|
|
34069
|
+
}, [selectedMonth, selectedYear, eventTypes, audiences, search, postcode]);
|
|
34070
|
+
// Initialize accordions
|
|
34071
|
+
if (accordions.length === 0) {
|
|
34072
|
+
var tempAccordions_1 = [];
|
|
34073
|
+
// Date filter
|
|
34074
|
+
tempAccordions_1.push(false);
|
|
34075
|
+
// Event types
|
|
34076
|
+
eventTypes === null || eventTypes === void 0 ? void 0 : eventTypes.forEach(function () {
|
|
34077
|
+
tempAccordions_1.push(false);
|
|
34078
|
+
});
|
|
34079
|
+
// Audiences
|
|
34080
|
+
audiences === null || audiences === void 0 ? void 0 : audiences.forEach(function () {
|
|
34081
|
+
tempAccordions_1.push(false);
|
|
34082
|
+
});
|
|
34083
|
+
setAccordions(tempAccordions_1);
|
|
34084
|
+
}
|
|
34085
|
+
var optionChecked = function (e, categoryIndex, singleSelection, isEventType) {
|
|
34086
|
+
if (isEventType === void 0) { isEventType = true; }
|
|
34087
|
+
var categories = isEventType ? eventTypes : audiences;
|
|
34088
|
+
var setCategories = isEventType ? setEventTypes : setAudiences;
|
|
34089
|
+
var newCategories = __spreadArray([], categories, true);
|
|
34090
|
+
if (singleSelection) {
|
|
34091
|
+
newCategories[categoryIndex].options.forEach(function (option) {
|
|
34092
|
+
option.checked = false;
|
|
34093
|
+
});
|
|
34094
|
+
}
|
|
34095
|
+
newCategories[categoryIndex].options.find(function (option) {
|
|
34096
|
+
if (option.id === e.target.value) {
|
|
34097
|
+
option.checked = !option.checked;
|
|
34098
|
+
}
|
|
34099
|
+
});
|
|
34100
|
+
setCategories(newCategories);
|
|
34101
|
+
};
|
|
34102
|
+
var clearCategory = function (categoryIndex, isEventType) {
|
|
34103
|
+
if (isEventType === void 0) { isEventType = true; }
|
|
34104
|
+
var categories = isEventType ? eventTypes : audiences;
|
|
34105
|
+
var setCategories = isEventType ? setEventTypes : setAudiences;
|
|
34106
|
+
var newCategories = __spreadArray([], categories, true);
|
|
34107
|
+
newCategories[categoryIndex].options.forEach(function (option) {
|
|
34108
|
+
option.checked = false;
|
|
34109
|
+
});
|
|
34110
|
+
setCategories(newCategories);
|
|
34111
|
+
};
|
|
34112
|
+
var clearDateFilter = function () {
|
|
34113
|
+
setSelectedMonth(undefined);
|
|
34114
|
+
setSelectedYear(undefined);
|
|
34115
|
+
};
|
|
34116
|
+
var from = pageNumber * perPage - (perPage - 1);
|
|
34117
|
+
var to = from + ((events === null || events === void 0 ? void 0 : events.length) ? events.length - 1 : 0);
|
|
34118
|
+
var clearSearch = function () {
|
|
34119
|
+
window.location.href = eventsPath;
|
|
34120
|
+
};
|
|
34121
|
+
var toggleAccordion = function (index) {
|
|
34122
|
+
var updatedAccordions = __spreadArray([], accordions, true);
|
|
34123
|
+
updatedAccordions[index] = !updatedAccordions[index];
|
|
34124
|
+
setAccordions(updatedAccordions);
|
|
34125
|
+
};
|
|
34126
|
+
var toggleAll = function () {
|
|
34127
|
+
setOpenAll(!openAll);
|
|
34128
|
+
var updatedAccordions = accordions.map(function () {
|
|
34129
|
+
return openAll;
|
|
34130
|
+
});
|
|
34131
|
+
setAccordions(updatedAccordions);
|
|
34132
|
+
};
|
|
34133
|
+
var submitSearch = function (e) {
|
|
34134
|
+
e.preventDefault();
|
|
34135
|
+
setSearch(searchTerm);
|
|
34136
|
+
setPostcode(postcodeSearch);
|
|
34137
|
+
};
|
|
34138
|
+
var letters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789';
|
|
34139
|
+
var labelLetters = letters.split('');
|
|
34140
|
+
var mapProps = {
|
|
34141
|
+
centre: mapCenter,
|
|
34142
|
+
zoom: mapZoom,
|
|
34143
|
+
size: '640x320',
|
|
34144
|
+
imageAltText: 'Event search results displayed on a map',
|
|
34145
|
+
mapMarkers: events
|
|
34146
|
+
.filter(function (event) {
|
|
34147
|
+
var _a, _b;
|
|
34148
|
+
return ((_a = event.location) === null || _a === void 0 ? void 0 : _a.latitude) && ((_b = event.location) === null || _b === void 0 ? void 0 : _b.longitude);
|
|
34149
|
+
})
|
|
34150
|
+
.map(function (event, index) {
|
|
34151
|
+
var _a, _b;
|
|
34152
|
+
return {
|
|
34153
|
+
lat: parseFloat(((_a = event.location) === null || _a === void 0 ? void 0 : _a.latitude) || '0'),
|
|
34154
|
+
lng: parseFloat(((_b = event.location) === null || _b === void 0 ? void 0 : _b.longitude) || '0'),
|
|
34155
|
+
label: labelLetters[index],
|
|
34156
|
+
title: "<a href=".concat(event.id, ">").concat(event.name, "</a>"),
|
|
34157
|
+
};
|
|
34158
|
+
}),
|
|
34159
|
+
};
|
|
34160
|
+
var hasActiveFilters = function () {
|
|
34161
|
+
return (search !== '' ||
|
|
34162
|
+
postcode !== '' ||
|
|
34163
|
+
selectedMonth !== undefined ||
|
|
34164
|
+
selectedYear !== undefined ||
|
|
34165
|
+
eventTypes.some(function (category) {
|
|
34166
|
+
return category.options.some(function (option) {
|
|
34167
|
+
return option.checked == true;
|
|
34168
|
+
});
|
|
34169
|
+
}) ||
|
|
34170
|
+
audiences.some(function (category) {
|
|
34171
|
+
return category.options.some(function (option) {
|
|
34172
|
+
return option.checked == true;
|
|
34173
|
+
});
|
|
34174
|
+
}));
|
|
34175
|
+
};
|
|
34176
|
+
var formatEventDateTime = function (startDateTime, endDateTime) {
|
|
34177
|
+
var startDate = new Date(startDateTime);
|
|
34178
|
+
var options = {
|
|
34179
|
+
weekday: 'long',
|
|
34180
|
+
year: 'numeric',
|
|
34181
|
+
month: 'long',
|
|
34182
|
+
day: 'numeric',
|
|
34183
|
+
hour: '2-digit',
|
|
34184
|
+
minute: '2-digit',
|
|
34185
|
+
};
|
|
34186
|
+
var formatted = startDate.toLocaleDateString('en-GB', options);
|
|
34187
|
+
if (endDateTime) {
|
|
34188
|
+
var endDate = new Date(endDateTime);
|
|
34189
|
+
var endTime = endDate.toLocaleTimeString('en-GB', { hour: '2-digit', minute: '2-digit' });
|
|
34190
|
+
formatted += " - ".concat(endTime);
|
|
34191
|
+
}
|
|
34192
|
+
return formatted;
|
|
34193
|
+
};
|
|
34194
|
+
var monthNames = [
|
|
34195
|
+
'January', 'February', 'March', 'April', 'May', 'June',
|
|
34196
|
+
'July', 'August', 'September', 'October', 'November', 'December'
|
|
34197
|
+
];
|
|
34198
|
+
var currentYear = new Date().getFullYear();
|
|
34199
|
+
var years = Array.from({ length: 5 }, function (_, i) { return currentYear + i; });
|
|
34200
|
+
return (React__default.default.createElement(Container$3, { "data-testid": "EventList" },
|
|
34201
|
+
React__default.default.createElement(Row$1, null,
|
|
34202
|
+
React__default.default.createElement(Column, { small: "full", medium: "full", large: "full" },
|
|
34203
|
+
React__default.default.createElement(SearchHeader$1, null,
|
|
34204
|
+
React__default.default.createElement(FormWithLine, { hideLine: true, onSubmit: submitSearch },
|
|
34205
|
+
React__default.default.createElement(Row$1, null,
|
|
34206
|
+
React__default.default.createElement(Column, { small: "full", medium: "one-half", large: "one-third" },
|
|
34207
|
+
React__default.default.createElement(Label$1, { htmlFor: "eventSearch" }, "What events are you looking for?"),
|
|
34208
|
+
React__default.default.createElement(HintText, { text: "Enter the name of a specific event or organisation" }),
|
|
34209
|
+
React__default.default.createElement(Input, { name: "eventSearch", type: "text", defaultValue: searchTerm, id: "eventSearch", onChange: function (e) {
|
|
34210
|
+
setSearchTerm(e.target.value);
|
|
34211
|
+
} })),
|
|
34212
|
+
showPostcodeSearch && (React__default.default.createElement(Column, { small: "full", medium: "one-half", large: "one-third" },
|
|
34213
|
+
React__default.default.createElement(Label$1, { htmlFor: "postcode" }, "Postcode (optional)"),
|
|
34214
|
+
React__default.default.createElement(HintText, { text: "Enter a postcode to see results within ".concat(proximity, " miles") }),
|
|
34215
|
+
React__default.default.createElement(Input, { name: "postcode", type: "text", defaultValue: postcodeSearch, id: "postcode", onChange: function (e) { return setPostcodeSearch(e.target.value); }, autocomplete: "postal-code" }))),
|
|
34216
|
+
React__default.default.createElement(Column, { small: "full", medium: "one-half", large: "one-third" },
|
|
34217
|
+
React__default.default.createElement(ButtonContainer$2, null,
|
|
34218
|
+
React__default.default.createElement(Button$1, { size: "large", onClick: submitSearch, type: "submit" },
|
|
34219
|
+
React__default.default.createElement(ButtonText$1, null, "Search"),
|
|
34220
|
+
React__default.default.createElement(IconDownload, { colourFill: "#fff" })),
|
|
34221
|
+
filtersActive && (React__default.default.createElement(Button$1, { size: "large", onClick: clearSearch, type: "button", "$isWarning": true },
|
|
34222
|
+
React__default.default.createElement(ButtonText$1, null, "Clear search"))))))))),
|
|
34223
|
+
React__default.default.createElement(Column, { small: "full", medium: "one-third", large: "one-third" },
|
|
34224
|
+
React__default.default.createElement(FilterToggle, { type: "button", onClick: function (e) { return setShowFilters(!showFilters); } }, showFilters ? "Hide Filters" : "Show Filters"),
|
|
34225
|
+
React__default.default.createElement(FilterContainer, { "$showFilters": showFilters },
|
|
34226
|
+
React__default.default.createElement(Row$1, null,
|
|
34227
|
+
React__default.default.createElement(Column, { small: "full", medium: "full", large: "full" },
|
|
34228
|
+
React__default.default.createElement(ResultInfo$1, null, "Refine your search")),
|
|
34229
|
+
notServer && (React__default.default.createElement(React__default.default.Fragment, null,
|
|
34230
|
+
React__default.default.createElement(Column, { small: "full", medium: "full", large: "full" },
|
|
34231
|
+
React__default.default.createElement(AccordionControls, null,
|
|
34232
|
+
filtersActive ? (React__default.default.createElement(TextLink$1, { onClick: clearSearch, type: "button" },
|
|
34233
|
+
React__default.default.createElement(ButtonText$1, null, "Clear all filters"))) : (React__default.default.createElement("div", null)),
|
|
34234
|
+
React__default.default.createElement(TextLink$1, { onClick: toggleAll, type: "button", "aria-expanded": !openAll },
|
|
34235
|
+
openAll ? 'Open all' : 'Close all',
|
|
34236
|
+
React__default.default.createElement(VisuallyHidden, null, " sections")))),
|
|
34237
|
+
React__default.default.createElement(Column, { small: "full", medium: "full", large: "full" },
|
|
34238
|
+
React__default.default.createElement(Fieldset$1, null,
|
|
34239
|
+
React__default.default.createElement(Legend$1, { onClick: function (e) { return toggleAccordion(0); } },
|
|
34240
|
+
React__default.default.createElement(LegendButton, { onClick: function (e) { return toggleAccordion(0); }, type: "button" },
|
|
34241
|
+
"Select date range",
|
|
34242
|
+
React__default.default.createElement(AccordionIcon, { "$isOpen": accordions[0] }))),
|
|
34243
|
+
React__default.default.createElement(Accordion, { "$isOpen": accordions[0] },
|
|
34244
|
+
React__default.default.createElement(ClearFilter$1, null,
|
|
34245
|
+
React__default.default.createElement(TextLink$1, { onClick: clearDateFilter }, "Clear filter")),
|
|
34246
|
+
React__default.default.createElement(Row$1, null,
|
|
34247
|
+
React__default.default.createElement(Column, { small: "full", medium: "one-half", large: "one-half" },
|
|
34248
|
+
React__default.default.createElement(DropDownSelect, { id: "event_month", label: "Month", selected: (selectedMonth === null || selectedMonth === void 0 ? void 0 : selectedMonth.toString()) || '', onChange: function (e) { return setSelectedMonth(e.target.value ? parseInt(e.target.value) : undefined); }, options: __spreadArray([
|
|
34249
|
+
{ title: 'All months', value: '' }
|
|
34250
|
+
], monthNames.map(function (month, index) { return ({
|
|
34251
|
+
title: month,
|
|
34252
|
+
value: (index + 1).toString(),
|
|
34253
|
+
}); }), true) })),
|
|
34254
|
+
React__default.default.createElement(Column, { small: "full", medium: "one-half", large: "one-half" },
|
|
34255
|
+
React__default.default.createElement(DropDownSelect, { id: "event_year", label: "Year", selected: (selectedYear === null || selectedYear === void 0 ? void 0 : selectedYear.toString()) || '', onChange: function (e) { return setSelectedYear(e.target.value ? parseInt(e.target.value) : undefined); }, options: __spreadArray([
|
|
34256
|
+
{ title: 'All years', value: '' }
|
|
34257
|
+
], years.map(function (year) { return ({
|
|
34258
|
+
title: year.toString(),
|
|
34259
|
+
value: year.toString(),
|
|
34260
|
+
}); }), true) })))))), eventTypes === null || eventTypes === void 0 ? void 0 :
|
|
34261
|
+
eventTypes.map(function (category, categoryIndex) { return (React__default.default.createElement(Column, { small: "full", medium: "full", large: "full", key: category.label },
|
|
34262
|
+
React__default.default.createElement(Fieldset$1, null,
|
|
34263
|
+
React__default.default.createElement(Legend$1, null,
|
|
34264
|
+
React__default.default.createElement(LegendButton, { onClick: function (e) { return toggleAccordion(categoryIndex + 1); }, type: "button" },
|
|
34265
|
+
category.label,
|
|
34266
|
+
React__default.default.createElement(AccordionIcon, { "$isOpen": accordions[categoryIndex + 1] }))),
|
|
34267
|
+
React__default.default.createElement(Accordion, { "$isOpen": accordions[categoryIndex + 1] },
|
|
34268
|
+
React__default.default.createElement(ClearFilter$1, null,
|
|
34269
|
+
React__default.default.createElement(TextLink$1, { onClick: function (e) { return clearCategory(categoryIndex, true); } }, "Clear filter")),
|
|
34270
|
+
category.options.map(function (taxonomy) { return (React__default.default.createElement(Category$2, { key: taxonomy.id },
|
|
34271
|
+
React__default.default.createElement(RadioCheckboxInput, { name: taxonomy.vocabulary, value: taxonomy.id, label: taxonomy.name, singleSelection: category.singleSelection, checked: taxonomy.checked, onChange: function (e) { return optionChecked(e, categoryIndex, category.singleSelection, true); } }))); }))))); }), audiences === null || audiences === void 0 ? void 0 :
|
|
34272
|
+
audiences.map(function (category, categoryIndex) { return (React__default.default.createElement(Column, { small: "full", medium: "full", large: "full", key: category.label },
|
|
34273
|
+
React__default.default.createElement(Fieldset$1, null,
|
|
34274
|
+
React__default.default.createElement(Legend$1, null,
|
|
34275
|
+
React__default.default.createElement(LegendButton, { onClick: function (e) { return toggleAccordion(eventTypes.length + categoryIndex + 1); }, type: "button" },
|
|
34276
|
+
category.label,
|
|
34277
|
+
React__default.default.createElement(AccordionIcon, { "$isOpen": accordions[eventTypes.length + categoryIndex + 1] }))),
|
|
34278
|
+
React__default.default.createElement(Accordion, { "$isOpen": accordions[eventTypes.length + categoryIndex + 1] },
|
|
34279
|
+
React__default.default.createElement(ClearFilter$1, null,
|
|
34280
|
+
React__default.default.createElement(TextLink$1, { onClick: function (e) { return clearCategory(categoryIndex, false); } }, "Clear filter")),
|
|
34281
|
+
category.options.map(function (taxonomy) { return (React__default.default.createElement(Category$2, { key: taxonomy.id },
|
|
34282
|
+
React__default.default.createElement(RadioCheckboxInput, { name: taxonomy.vocabulary, value: taxonomy.id, label: taxonomy.name, singleSelection: category.singleSelection, checked: taxonomy.checked, onChange: function (e) { return optionChecked(e, categoryIndex, category.singleSelection, false); } }))); }))))); })))))),
|
|
34283
|
+
React__default.default.createElement(Column, { small: "full", medium: "two-thirds", large: "two-thirds" },
|
|
34284
|
+
React__default.default.createElement(Row$1, null, isError ? (React__default.default.createElement(Column, { small: "full", medium: "full", large: "full" },
|
|
34285
|
+
React__default.default.createElement(AlertBannerService, null,
|
|
34286
|
+
React__default.default.createElement("p", null, "Sorry, there was a problem fetching events. Please try again later.")))) : isLoading ? (React__default.default.createElement(LoadingContainer$1, null,
|
|
34287
|
+
React__default.default.createElement(LoadingSpinner, null),
|
|
34288
|
+
React__default.default.createElement("p", null, "Loading"))) : (React__default.default.createElement(React__default.default.Fragment, null,
|
|
34289
|
+
React__default.default.createElement(Column, { small: "full", medium: "full", large: "full" },
|
|
34290
|
+
(events === null || events === void 0 ? void 0 : events.length) > 0 ? (React__default.default.createElement(ResultInfo$1, null,
|
|
34291
|
+
"Showing ",
|
|
34292
|
+
from,
|
|
34293
|
+
" to ",
|
|
34294
|
+
to,
|
|
34295
|
+
" out of ",
|
|
34296
|
+
totalResults.toLocaleString())) : (React__default.default.createElement(ResultInfo$1, null, "No events found")),
|
|
34297
|
+
React__default.default.createElement(FavouritesContainer, null,
|
|
34298
|
+
(events === null || events === void 0 ? void 0 : events.length) > 0 && (React__default.default.createElement(MapToggle, { type: "button", size: "large", onClick: function (e) { return setShowMap(!showMap); } }, showMap ? "Hide Map" : "Show Map")),
|
|
34299
|
+
React__default.default.createElement(Favourites, { href: shortListPath },
|
|
34300
|
+
React__default.default.createElement(HeartIcon, { colourFill: themeContext.theme_vars.colours.action }),
|
|
34301
|
+
" Shortlist (",
|
|
34302
|
+
favourites.length,
|
|
34303
|
+
")"))),
|
|
34304
|
+
React__default.default.createElement(Column, { small: "full", medium: "full", large: "full" },
|
|
34305
|
+
React__default.default.createElement(Pagination, { currentPage: pageNumber, totalResults: totalResults, resultsPerPage: perPage, postTo: eventsPath, buttonClickOverride: setPageNumber })),
|
|
34306
|
+
React__default.default.createElement(Column, { small: "full", medium: "full", large: "full" }, notServer && React__default.default.createElement(React__default.default.Fragment, null, (events === null || events === void 0 ? void 0 : events.length) > 0 && showMap && React__default.default.createElement(DirectoryMap, { mapProps: mapProps }))),
|
|
34307
|
+
events.map(function (event, index) {
|
|
34308
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
34309
|
+
var snippet = transformSnippet(event.description, extractLength);
|
|
34310
|
+
return (React__default.default.createElement(Column, { small: "full", medium: "full", large: "full", key: event.id },
|
|
34311
|
+
React__default.default.createElement(ServiceContainer, { "$resultNumber": index },
|
|
34312
|
+
React__default.default.createElement(Row$1, null,
|
|
34313
|
+
React__default.default.createElement(Column, { small: "full", medium: "full", large: "full" },
|
|
34314
|
+
React__default.default.createElement(ServiceHeader, null,
|
|
34315
|
+
React__default.default.createElement(ServiceLink$1, { href: "".concat(event.id) }, event.name),
|
|
34316
|
+
showMap && ((_a = event.location) === null || _a === void 0 ? void 0 : _a.latitude) && ((_b = event.location) === null || _b === void 0 ? void 0 : _b.longitude) && (React__default.default.createElement(MarkerContainer, null,
|
|
34317
|
+
React__default.default.createElement("span", null, labelLetters[index]),
|
|
34318
|
+
React__default.default.createElement(PinIcon, { colourFill: themeContext.theme_vars.colours.action_dark }))))),
|
|
34319
|
+
React__default.default.createElement(Column, { small: "full", medium: "full", large: "full" },
|
|
34320
|
+
React__default.default.createElement(Age, null, formatEventDateTime(event.startDateTime, event.endDateTime)),
|
|
34321
|
+
event.organization && (React__default.default.createElement("p", { style: { fontSize: '0.9rem', color: '#666', marginBottom: '8px' } },
|
|
34322
|
+
"Organised by: ",
|
|
34323
|
+
React__default.default.createElement("strong", null, event.organization.name))),
|
|
34324
|
+
event.eventType && (React__default.default.createElement("p", { style: { fontSize: '0.9rem', color: '#666', marginBottom: '8px' } },
|
|
34325
|
+
"Event type: ",
|
|
34326
|
+
React__default.default.createElement("strong", null, event.eventType))),
|
|
34327
|
+
event.audience && event.audience.length > 0 && (React__default.default.createElement("p", { style: { fontSize: '0.9rem', color: '#666', marginBottom: '8px' } },
|
|
34328
|
+
"Audience: ",
|
|
34329
|
+
React__default.default.createElement("strong", null, event.audience.join(', '))))),
|
|
34330
|
+
React__default.default.createElement(Column, { small: "full", medium: ((_c = event.organization) === null || _c === void 0 ? void 0 : _c.logo) ? 'two-thirds' : 'full', large: ((_d = event.organization) === null || _d === void 0 ? void 0 : _d.logo) ? 'two-thirds' : 'full' },
|
|
34331
|
+
React__default.default.createElement("div", null, snippet)),
|
|
34332
|
+
((_e = event.organization) === null || _e === void 0 ? void 0 : _e.logo) && (React__default.default.createElement(Column, { small: "full", medium: "one-third", large: "one-third" },
|
|
34333
|
+
React__default.default.createElement(ServiceImageContainer, null,
|
|
34334
|
+
React__default.default.createElement(ServiceImage, { src: event.organization.logo, alt: event.name + ' logo', loading: "lazy" })))),
|
|
34335
|
+
React__default.default.createElement(Column, { small: "full", medium: "full", large: "full" },
|
|
34336
|
+
React__default.default.createElement(DirectoryAddToShortList, { id: event.id, name: event.name, snippet: snippet, email: event.email, website: event.url, phone: (_h = (_g = (_f = event.contacts) === null || _f === void 0 ? void 0 : _f[0]) === null || _g === void 0 ? void 0 : _g.phones) === null || _h === void 0 ? void 0 : _h.flatMap(function (phone) { return phone.number; }).join(', '), addresses: ((_j = event.location) === null || _j === void 0 ? void 0 : _j.address) ? [{
|
|
34337
|
+
id: event.location.address.id,
|
|
34338
|
+
address_1: event.location.address.address1,
|
|
34339
|
+
city: event.location.address.city,
|
|
34340
|
+
state_province: event.location.address.county,
|
|
34341
|
+
postal_code: event.location.address.postcode,
|
|
34342
|
+
country: event.location.address.country
|
|
34343
|
+
}] : [], fees: event.fees }))))));
|
|
34344
|
+
}),
|
|
34345
|
+
React__default.default.createElement(Column, { small: "full", medium: "full", large: "full" },
|
|
34346
|
+
React__default.default.createElement(Pagination, { currentPage: pageNumber, totalResults: totalResults, resultsPerPage: perPage, postTo: eventsPath, buttonClickOverride: setPageNumber })))))))));
|
|
34347
|
+
};
|
|
34348
|
+
|
|
34349
|
+
/**
|
|
34350
|
+
* Filters out events that have already ended based on their end date/time
|
|
34351
|
+
* @param events Array of events to filter
|
|
34352
|
+
* @param hideOldEvents Whether to hide old events (defaults to true)
|
|
34353
|
+
* @returns Filtered array of events
|
|
34354
|
+
*/
|
|
34355
|
+
var filterOldEvents = function (events, hideOldEvents) {
|
|
34356
|
+
if (hideOldEvents === void 0) { hideOldEvents = true; }
|
|
34357
|
+
if (!hideOldEvents) {
|
|
34358
|
+
return events;
|
|
34359
|
+
}
|
|
34360
|
+
var now = new Date();
|
|
34361
|
+
return events.filter(function (event) {
|
|
34362
|
+
// Use end date if available, otherwise use start date
|
|
34363
|
+
var eventEndDate = new Date(event.endDateTime || event.startDateTime);
|
|
34364
|
+
// Keep events that haven't ended yet
|
|
34365
|
+
return eventEndDate > now;
|
|
34366
|
+
});
|
|
34367
|
+
};
|
|
34368
|
+
/**
|
|
34369
|
+
* Filters events by month and year
|
|
34370
|
+
* @param events Array of events to filter
|
|
34371
|
+
* @param selectedMonth Month (1-12) or undefined for all months
|
|
34372
|
+
* @param selectedYear Year or undefined for all years
|
|
34373
|
+
* @returns Filtered array of events
|
|
34374
|
+
*/
|
|
34375
|
+
var filterEventsByDate = function (events, selectedMonth, selectedYear) {
|
|
34376
|
+
if (!selectedMonth && !selectedYear) {
|
|
34377
|
+
return events;
|
|
34378
|
+
}
|
|
34379
|
+
return events.filter(function (event) {
|
|
34380
|
+
var eventDate = new Date(event.startDateTime);
|
|
34381
|
+
var eventMonth = eventDate.getMonth() + 1; // JavaScript months are 0-indexed
|
|
34382
|
+
var eventYear = eventDate.getFullYear();
|
|
34383
|
+
var monthMatches = !selectedMonth || eventMonth === selectedMonth;
|
|
34384
|
+
var yearMatches = !selectedYear || eventYear === selectedYear;
|
|
34385
|
+
return monthMatches && yearMatches;
|
|
34386
|
+
});
|
|
34387
|
+
};
|
|
34388
|
+
/**
|
|
34389
|
+
* Filters events by event type
|
|
34390
|
+
* @param events Array of events to filter
|
|
34391
|
+
* @param selectedEventTypes Array of selected event type IDs
|
|
34392
|
+
* @returns Filtered array of events
|
|
34393
|
+
*/
|
|
34394
|
+
var filterEventsByType = function (events, selectedEventTypes) {
|
|
34395
|
+
if (selectedEventTypes.length === 0) {
|
|
34396
|
+
return events;
|
|
34397
|
+
}
|
|
34398
|
+
return events.filter(function (event) {
|
|
34399
|
+
if (!event.eventType) {
|
|
34400
|
+
return false;
|
|
34401
|
+
}
|
|
34402
|
+
return selectedEventTypes.includes(event.eventType);
|
|
34403
|
+
});
|
|
34404
|
+
};
|
|
34405
|
+
/**
|
|
34406
|
+
* Filters events by audience
|
|
34407
|
+
* @param events Array of events to filter
|
|
34408
|
+
* @param selectedAudiences Array of selected audience IDs
|
|
34409
|
+
* @returns Filtered array of events
|
|
34410
|
+
*/
|
|
34411
|
+
var filterEventsByAudience = function (events, selectedAudiences) {
|
|
34412
|
+
if (selectedAudiences.length === 0) {
|
|
34413
|
+
return events;
|
|
34414
|
+
}
|
|
34415
|
+
return events.filter(function (event) {
|
|
34416
|
+
if (!event.audience || event.audience.length === 0) {
|
|
34417
|
+
return false;
|
|
34418
|
+
}
|
|
34419
|
+
// Check if any of the event's audiences match the selected audiences
|
|
34420
|
+
return event.audience.some(function (audience) { return selectedAudiences.includes(audience); });
|
|
34421
|
+
});
|
|
34422
|
+
};
|
|
34423
|
+
/**
|
|
34424
|
+
* Filters events by search term (searches in name and description)
|
|
34425
|
+
* @param events Array of events to filter
|
|
34426
|
+
* @param searchTerm Search term to look for
|
|
34427
|
+
* @returns Filtered array of events
|
|
34428
|
+
*/
|
|
34429
|
+
var filterEventsBySearch = function (events, searchTerm) {
|
|
34430
|
+
if (!searchTerm.trim()) {
|
|
34431
|
+
return events;
|
|
34432
|
+
}
|
|
34433
|
+
var lowercaseSearch = searchTerm.toLowerCase();
|
|
34434
|
+
return events.filter(function (event) {
|
|
34435
|
+
var _a, _b;
|
|
34436
|
+
var nameMatch = event.name.toLowerCase().includes(lowercaseSearch);
|
|
34437
|
+
var descriptionMatch = event.description.toLowerCase().includes(lowercaseSearch);
|
|
34438
|
+
var organizationMatch = ((_b = (_a = event.organization) === null || _a === void 0 ? void 0 : _a.name) === null || _b === void 0 ? void 0 : _b.toLowerCase().includes(lowercaseSearch)) || false;
|
|
34439
|
+
return nameMatch || descriptionMatch || organizationMatch;
|
|
34440
|
+
});
|
|
34441
|
+
};
|
|
34442
|
+
/**
|
|
34443
|
+
* Sorts events by date (earliest first)
|
|
34444
|
+
* @param events Array of events to sort
|
|
34445
|
+
* @returns Sorted array of events
|
|
34446
|
+
*/
|
|
34447
|
+
var sortEventsByDate = function (events) {
|
|
34448
|
+
return __spreadArray([], events, true).sort(function (a, b) {
|
|
34449
|
+
var dateA = new Date(a.startDateTime);
|
|
34450
|
+
var dateB = new Date(b.startDateTime);
|
|
34451
|
+
return dateA.getTime() - dateB.getTime();
|
|
34452
|
+
});
|
|
34453
|
+
};
|
|
34454
|
+
/**
|
|
34455
|
+
* Comprehensive filter function that applies all filters
|
|
34456
|
+
* @param events Array of events to filter
|
|
34457
|
+
* @param filters Object containing all filter criteria
|
|
34458
|
+
* @returns Filtered and sorted array of events
|
|
34459
|
+
*/
|
|
34460
|
+
var applyAllEventFilters = function (events, filters) {
|
|
34461
|
+
var filteredEvents = events;
|
|
34462
|
+
// Apply old events filter
|
|
34463
|
+
filteredEvents = filterOldEvents(filteredEvents, filters.hideOldEvents);
|
|
34464
|
+
// Apply date filter
|
|
34465
|
+
filteredEvents = filterEventsByDate(filteredEvents, filters.selectedMonth, filters.selectedYear);
|
|
34466
|
+
// Apply event type filter
|
|
34467
|
+
if (filters.selectedEventTypes && filters.selectedEventTypes.length > 0) {
|
|
34468
|
+
filteredEvents = filterEventsByType(filteredEvents, filters.selectedEventTypes);
|
|
34469
|
+
}
|
|
34470
|
+
// Apply audience filter
|
|
34471
|
+
if (filters.selectedAudiences && filters.selectedAudiences.length > 0) {
|
|
34472
|
+
filteredEvents = filterEventsByAudience(filteredEvents, filters.selectedAudiences);
|
|
34473
|
+
}
|
|
34474
|
+
// Apply search filter
|
|
34475
|
+
if (filters.searchTerm) {
|
|
34476
|
+
filteredEvents = filterEventsBySearch(filteredEvents, filters.searchTerm);
|
|
34477
|
+
}
|
|
34478
|
+
// Sort by date
|
|
34479
|
+
return sortEventsByDate(filteredEvents);
|
|
34480
|
+
};
|
|
34481
|
+
|
|
34482
|
+
var defaultBreadcrumbs = [
|
|
34483
|
+
{
|
|
34484
|
+
title: 'Home',
|
|
34485
|
+
url: '/',
|
|
34486
|
+
},
|
|
34487
|
+
{
|
|
34488
|
+
title: 'Events',
|
|
34489
|
+
url: '/events',
|
|
34490
|
+
},
|
|
34491
|
+
];
|
|
34492
|
+
var defaultFooterLinks = [
|
|
34493
|
+
{
|
|
34494
|
+
title: 'About',
|
|
34495
|
+
url: '/',
|
|
34496
|
+
},
|
|
34497
|
+
{
|
|
34498
|
+
title: 'Accessibility',
|
|
34499
|
+
url: '/',
|
|
34500
|
+
},
|
|
34501
|
+
{
|
|
34502
|
+
title: 'Cookies',
|
|
34503
|
+
url: '/',
|
|
34504
|
+
},
|
|
34505
|
+
{
|
|
34506
|
+
title: 'Contact us',
|
|
34507
|
+
url: '/',
|
|
34508
|
+
},
|
|
34509
|
+
{
|
|
34510
|
+
title: 'Jobs',
|
|
34511
|
+
url: '/',
|
|
34512
|
+
},
|
|
34513
|
+
{
|
|
34514
|
+
title: 'Newsletter',
|
|
34515
|
+
url: '/',
|
|
34516
|
+
},
|
|
34517
|
+
];
|
|
34518
|
+
var EventPage = function (_a) {
|
|
34519
|
+
var event = _a.event, _b = _a.breadcrumbs, breadcrumbs = _b === void 0 ? defaultBreadcrumbs : _b, _c = _a.footerLinks, footerLinks = _c === void 0 ? defaultFooterLinks : _c;
|
|
34520
|
+
return (React__default.default.createElement(React__default.default.Fragment, null,
|
|
34521
|
+
React__default.default.createElement(Header, null),
|
|
34522
|
+
React__default.default.createElement(MaxWidthContainer, null,
|
|
34523
|
+
React__default.default.createElement(PageMain, null,
|
|
34524
|
+
React__default.default.createElement(Breadcrumbs, { breadcrumbsArray: breadcrumbs, hasMargin: true }),
|
|
34525
|
+
React__default.default.createElement(DirectoryShortListProvider, null,
|
|
34526
|
+
React__default.default.createElement(Event, __assign$2({}, event))),
|
|
34527
|
+
event.updatedAt && (React__default.default.createElement("p", null,
|
|
34528
|
+
React__default.default.createElement(DisplayDate, { preText: "Last updated ", text: event.updatedAt, format: "YYYY-MM-DD" }))))),
|
|
34529
|
+
React__default.default.createElement(Footer, { footerLinksArray: footerLinks })));
|
|
34530
|
+
};
|
|
34531
|
+
|
|
33708
34532
|
exports.AccessibleLinks = AccessibleLink;
|
|
33709
34533
|
exports.Accordion = Accordion$1;
|
|
33710
34534
|
exports.AlertBanner = AlertBanner;
|
|
@@ -33733,6 +34557,9 @@ exports.Divider = Divider;
|
|
|
33733
34557
|
exports.DownloadableFiles = DownloadableFiles;
|
|
33734
34558
|
exports.DropDownFilter = DropDownFilter;
|
|
33735
34559
|
exports.DynamicIcon = DynamicIcon;
|
|
34560
|
+
exports.Event = Event;
|
|
34561
|
+
exports.EventList = EventList;
|
|
34562
|
+
exports.EventPage = EventPage;
|
|
33736
34563
|
exports.Footer = Footer;
|
|
33737
34564
|
exports.FullWidthContainer = FullWidthContainer;
|
|
33738
34565
|
exports.GDS_theme = GDS_theme;
|
|
@@ -33785,9 +34612,16 @@ exports.TextInput = TextInput;
|
|
|
33785
34612
|
exports.Video = Video;
|
|
33786
34613
|
exports.WarningText = WarningText;
|
|
33787
34614
|
exports.WarningTextDisclaimer = WarningTextDisclaimer;
|
|
34615
|
+
exports.applyAllEventFilters = applyAllEventFilters;
|
|
34616
|
+
exports.filterEventsByAudience = filterEventsByAudience;
|
|
34617
|
+
exports.filterEventsByDate = filterEventsByDate;
|
|
34618
|
+
exports.filterEventsBySearch = filterEventsBySearch;
|
|
34619
|
+
exports.filterEventsByType = filterEventsByType;
|
|
34620
|
+
exports.filterOldEvents = filterOldEvents;
|
|
33788
34621
|
exports.lb_theme_north = lb_theme_north;
|
|
33789
34622
|
exports.lb_theme_west = lb_theme_west;
|
|
33790
34623
|
exports.north_theme = north_theme;
|
|
34624
|
+
exports.sortEventsByDate = sortEventsByDate;
|
|
33791
34625
|
exports.useDirectoryShortListContext = useDirectoryShortListContext;
|
|
33792
34626
|
exports.west_theme = west_theme;
|
|
33793
34627
|
//# sourceMappingURL=index.js.map
|