@nnc-digital/nnc-design-system 0.4.3
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/LICENSE +674 -0
- package/README.md +232 -0
- package/build/index.d.ts +41 -0
- package/build/index.esm.js +31663 -0
- package/build/index.esm.js.map +1 -0
- package/build/index.js +31760 -0
- package/build/index.js.map +1 -0
- package/build/library/components/AlphabeticalDirectory/AlphabeticalDirectory.d.ts +4 -0
- package/build/library/components/AlphabeticalDirectory/AlphabeticalDirectory.types.d.ts +26 -0
- package/build/library/components/Autocomplete/Autocomplete.d.ts +9 -0
- package/build/library/components/Autocomplete/Autocomplete.storydata.d.ts +47 -0
- package/build/library/components/Autocomplete/Autocomplete.types.d.ts +70 -0
- package/build/library/components/BackToTop/BackToTop.d.ts +4 -0
- package/build/library/components/BackToTop/BackToTop.types.d.ts +6 -0
- package/build/library/components/Button/Button.d.ts +7 -0
- package/build/library/components/Button/Button.types.d.ts +43 -0
- package/build/library/components/Card/Card.d.ts +7 -0
- package/build/library/components/Card/Card.types.d.ts +36 -0
- package/build/library/components/CheckboxListFilter/CheckboxListFilter.d.ts +4 -0
- package/build/library/components/CheckboxListFilter/CheckboxListFilter.types.d.ts +36 -0
- package/build/library/components/Column/Column.d.ts +4 -0
- package/build/library/components/Column/Column.types.d.ts +36 -0
- package/build/library/components/CustomSearch/CustomSearch.d.ts +4 -0
- package/build/library/components/CustomSearch/CustomSearch.storydata.d.ts +2 -0
- package/build/library/components/CustomSearch/CustomSearch.types.d.ts +34 -0
- package/build/library/components/DropDownFilter/DropDownFilter.d.ts +4 -0
- package/build/library/components/DropDownFilter/DropDownFilter.types.d.ts +32 -0
- package/build/library/components/DropDownSelect/DropDownSelect.d.ts +4 -0
- package/build/library/components/DropDownSelect/DropDownSelect.types.d.ts +36 -0
- package/build/library/components/DynamicIcon/DynamicIcon.d.ts +7 -0
- package/build/library/components/DynamicIcon/DynamicIcon.types.d.ts +10 -0
- package/build/library/components/FileDownload/FileDownload.d.ts +7 -0
- package/build/library/components/FileDownload/FileDownload.types.d.ts +22 -0
- package/build/library/components/FormButton/FormButton.d.ts +7 -0
- package/build/library/components/FormButton/FormButton.types.d.ts +27 -0
- package/build/library/components/FormWithLine/FormWithLine.d.ts +7 -0
- package/build/library/components/FormWithLine/FormWithLine.types.d.ts +39 -0
- package/build/library/components/Heading/Heading.d.ts +7 -0
- package/build/library/components/Heading/Heading.types.d.ts +10 -0
- package/build/library/components/HeadingWithIcon/HeadingWithIcon.d.ts +7 -0
- package/build/library/components/HeadingWithIcon/HeadingWithIcon.types.d.ts +18 -0
- package/build/library/components/HeadingWithIconLink/HeadingWithIconLink.d.ts +4 -0
- package/build/library/components/HeadingWithIconLink/HeadingWithIconLink.types.d.ts +14 -0
- package/build/library/components/HintText/HintText.d.ts +7 -0
- package/build/library/components/HintText/HintText.types.d.ts +6 -0
- package/build/library/components/Input/Input.d.ts +8 -0
- package/build/library/components/Input/Input.types.d.ts +45 -0
- package/build/library/components/LoadingSpinner/LoadingSpinner.d.ts +4 -0
- package/build/library/components/LoadingSpinner/LoadingSpinner.types.d.ts +2 -0
- package/build/library/components/Map/Map.d.ts +7 -0
- package/build/library/components/Map/Map.types.d.ts +16 -0
- package/build/library/components/MapMarker/MapMarker.d.ts +7 -0
- package/build/library/components/Pagination/Pagination.d.ts +4 -0
- package/build/library/components/Pagination/Pagination.types.d.ts +23 -0
- package/build/library/components/PostCodeAddressDropdown/PostCodeAddressDropdown.d.ts +7 -0
- package/build/library/components/PostCodeAddressDropdown/PostCodeAddressDropdown.types.d.ts +2 -0
- package/build/library/components/PostCodeAddressSearch/PostCodeAddressSearch.d.ts +7 -0
- package/build/library/components/PostCodeAddressSearch/PostCodeAddressSearch.types.d.ts +23 -0
- package/build/library/components/PostCodeAddressTable/PostCodeAddressTable.d.ts +4 -0
- package/build/library/components/PostCodeAddressTable/PostCodeAddressTable.types.d.ts +2 -0
- package/build/library/components/PostCodeSearch/PostCodeSearch.d.ts +7 -0
- package/build/library/components/PostCodeSearch/PostCodeSearch.types.d.ts +52 -0
- package/build/library/components/PromotedLinks/PromotedLinks.d.ts +4 -0
- package/build/library/components/PromotedLinks/PromotedLinks.types.d.ts +20 -0
- package/build/library/components/RadioCheckboxInput/RadioCheckboxInput.d.ts +4 -0
- package/build/library/components/RadioCheckboxInput/RadioCheckboxInput.types.d.ts +27 -0
- package/build/library/components/RemovableTag/RemovableTag.d.ts +4 -0
- package/build/library/components/RemovableTag/RemovableTag.types.d.ts +8 -0
- package/build/library/components/RemoveAllFilters/RemoveAllFilters.d.ts +4 -0
- package/build/library/components/RemoveAllFilters/RemoveAllFilters.types.d.ts +3 -0
- package/build/library/components/Row/Row.d.ts +4 -0
- package/build/library/components/Row/Row.types.d.ts +20 -0
- package/build/library/components/SignpostLinksList/SignpostLinksList.d.ts +4 -0
- package/build/library/components/SignpostLinksList/SignpostLinksList.types.d.ts +24 -0
- package/build/library/components/SortBy/SortBy.d.ts +4 -0
- package/build/library/components/SortBy/SortBy.types.d.ts +20 -0
- package/build/library/components/StaticMap/StaticMap.d.ts +7 -0
- package/build/library/components/StaticMap/StaticMap.types.d.ts +52 -0
- package/build/library/components/SummaryList/SummaryList.d.ts +4 -0
- package/build/library/components/SummaryList/SummaryList.types.d.ts +21 -0
- package/build/library/components/TextInput/TextInput.d.ts +7 -0
- package/build/library/components/TextInput/TextInput.types.d.ts +34 -0
- package/build/library/components/icons/ChevronIcon/ChevronIcon.d.ts +4 -0
- package/build/library/components/icons/ChevronIcon/ChevronIcon.types.d.ts +10 -0
- package/build/library/components/icons/CloseIcon/CloseIcon.d.ts +4 -0
- package/build/library/components/icons/CloseIcon/CloseIcon.types.d.ts +6 -0
- package/build/library/components/icons/DownloadFileIcon/DownloadFileIcon.d.ts +4 -0
- package/build/library/components/icons/DownloadFileIcon/DownloadFileIcon.types.d.ts +6 -0
- package/build/library/components/icons/EmailIcon/EmailIcon.d.ts +4 -0
- package/build/library/components/icons/EmailIcon/EmailIcon.types.d.ts +6 -0
- package/build/library/components/icons/FacebookIcon/Icon.d.ts +4 -0
- package/build/library/components/icons/HeartIcon/HeartIcon.d.ts +7 -0
- package/build/library/components/icons/HeartIcon/HeartIcon.types.d.ts +6 -0
- package/build/library/components/icons/InstagramIcon/Icon.d.ts +4 -0
- package/build/library/components/icons/LinkIcon/LinkIcon.d.ts +4 -0
- package/build/library/components/icons/LinkIcon/LinkIcon.types.d.ts +6 -0
- package/build/library/components/icons/LinkedInIcon/Icon.d.ts +4 -0
- package/build/library/components/icons/PhoneIcon/PhoneIcon.d.ts +4 -0
- package/build/library/components/icons/PhoneIcon/PhoneIcon.types.d.ts +6 -0
- package/build/library/components/icons/PinIcon/PinIcon.d.ts +7 -0
- package/build/library/components/icons/PinIcon/PinIcon.types.d.ts +6 -0
- package/build/library/components/icons/SearchIcon/SearchIcon.d.ts +4 -0
- package/build/library/components/icons/SearchIcon/SearchIcon.types.d.ts +6 -0
- package/build/library/components/icons/TwitterIcon/Icon.d.ts +4 -0
- package/build/library/components/icons/WebsiteIcon/WebsiteIcon.d.ts +4 -0
- package/build/library/components/icons/WebsiteIcon/WebsiteIcon.types.d.ts +6 -0
- package/build/library/components/icons/YouTubeIcon/Icon.d.ts +4 -0
- package/build/library/components/icons/services/AccessibleParking/Icon.d.ts +4 -0
- package/build/library/components/icons/services/AccessibleParking/IconHover.d.ts +4 -0
- package/build/library/components/icons/services/Address/Icon.d.ts +4 -0
- package/build/library/components/icons/services/Address/IconHover.d.ts +4 -0
- package/build/library/components/icons/services/AddressChange/Icon.d.ts +4 -0
- package/build/library/components/icons/services/AddressChange/IconHover.d.ts +4 -0
- package/build/library/components/icons/services/Adults/Icon.d.ts +4 -0
- package/build/library/components/icons/services/Adults/IconHover.d.ts +4 -0
- package/build/library/components/icons/services/Benefits/Icon.d.ts +4 -0
- package/build/library/components/icons/services/Benefits/IconHover.d.ts +4 -0
- package/build/library/components/icons/services/BinDay/Icon.d.ts +4 -0
- package/build/library/components/icons/services/BinDay/IconHover.d.ts +4 -0
- package/build/library/components/icons/services/Bins/Icon.d.ts +4 -0
- package/build/library/components/icons/services/Bins/IconHover.d.ts +4 -0
- package/build/library/components/icons/services/BirthCertificate/Icon.d.ts +4 -0
- package/build/library/components/icons/services/BirthCertificate/IconHover.d.ts +4 -0
- package/build/library/components/icons/services/Births/Icon.d.ts +4 -0
- package/build/library/components/icons/services/Births/IconHover.d.ts +4 -0
- package/build/library/components/icons/services/Bollard/Icon.d.ts +4 -0
- package/build/library/components/icons/services/Bollard/IconHover.d.ts +4 -0
- package/build/library/components/icons/services/BulkWaste/Icon.d.ts +4 -0
- package/build/library/components/icons/services/BulkWaste/IconHover.d.ts +4 -0
- package/build/library/components/icons/services/Bus/Icon.d.ts +4 -0
- package/build/library/components/icons/services/Bus/IconHover.d.ts +4 -0
- package/build/library/components/icons/services/BusPass/Icon.d.ts +4 -0
- package/build/library/components/icons/services/BusPass/IconHover.d.ts +4 -0
- package/build/library/components/icons/services/Business/Icon.d.ts +4 -0
- package/build/library/components/icons/services/Business/IconHover.d.ts +4 -0
- package/build/library/components/icons/services/Careers/Icon.d.ts +4 -0
- package/build/library/components/icons/services/Careers/IconHover.d.ts +4 -0
- package/build/library/components/icons/services/Cash/Icon.d.ts +4 -0
- package/build/library/components/icons/services/Cash/IconHover.d.ts +4 -0
- package/build/library/components/icons/services/Catalogue/Icon.d.ts +4 -0
- package/build/library/components/icons/services/Catalogue/IconHover.d.ts +4 -0
- package/build/library/components/icons/services/Ceremony/Icon.d.ts +4 -0
- package/build/library/components/icons/services/Ceremony/IconHover.d.ts +4 -0
- package/build/library/components/icons/services/Charity/Icon.d.ts +4 -0
- package/build/library/components/icons/services/Charity/IconHover.d.ts +4 -0
- package/build/library/components/icons/services/Children/Icon.d.ts +4 -0
- package/build/library/components/icons/services/Children/IconHover.d.ts +4 -0
- package/build/library/components/icons/services/Computer/Icon.d.ts +4 -0
- package/build/library/components/icons/services/Computer/IconHover.d.ts +4 -0
- package/build/library/components/icons/services/CondolenceBook/Icon.d.ts +4 -0
- package/build/library/components/icons/services/CondolenceBook/IconHover.d.ts +4 -0
- package/build/library/components/icons/services/Cooking/Icon.d.ts +4 -0
- package/build/library/components/icons/services/Cooking/IconHover.d.ts +4 -0
- package/build/library/components/icons/services/Council/Icon.d.ts +4 -0
- package/build/library/components/icons/services/Council/IconHover.d.ts +4 -0
- package/build/library/components/icons/services/CouncilTax/Icon.d.ts +4 -0
- package/build/library/components/icons/services/CouncilTax/IconHover.d.ts +4 -0
- package/build/library/components/icons/services/Covid/Icon.d.ts +4 -0
- package/build/library/components/icons/services/Covid/IconHover.d.ts +4 -0
- package/build/library/components/icons/services/Culture/Icon.d.ts +4 -0
- package/build/library/components/icons/services/Culture/IconHover.d.ts +4 -0
- package/build/library/components/icons/services/CultureNorth/Icon.d.ts +4 -0
- package/build/library/components/icons/services/CultureNorth/IconHover.d.ts +4 -0
- package/build/library/components/icons/services/CultureWest/Icon.d.ts +4 -0
- package/build/library/components/icons/services/CultureWest/IconHover.d.ts +4 -0
- package/build/library/components/icons/services/DOLS/Icon.d.ts +4 -0
- package/build/library/components/icons/services/DOLS/IconHover.d.ts +4 -0
- package/build/library/components/icons/services/DeathCertificate/Icon.d.ts +4 -0
- package/build/library/components/icons/services/DeathCertificate/IconHover.d.ts +4 -0
- package/build/library/components/icons/services/Democracy/Icon.d.ts +4 -0
- package/build/library/components/icons/services/Democracy/IconHover.d.ts +4 -0
- package/build/library/components/icons/services/DogFouling/Icon.d.ts +4 -0
- package/build/library/components/icons/services/DogFouling/IconHover.d.ts +4 -0
- package/build/library/components/icons/services/Ebook/Icon.d.ts +4 -0
- package/build/library/components/icons/services/Ebook/IconHover.d.ts +4 -0
- package/build/library/components/icons/services/Edit/Icon.d.ts +4 -0
- package/build/library/components/icons/services/Edit/IconHover.d.ts +4 -0
- package/build/library/components/icons/services/Environment/Icon.d.ts +4 -0
- package/build/library/components/icons/services/Environment/IconHover.d.ts +4 -0
- package/build/library/components/icons/services/Events/Icon.d.ts +4 -0
- package/build/library/components/icons/services/Events/IconHover.d.ts +4 -0
- package/build/library/components/icons/services/Finance/Icon.d.ts +4 -0
- package/build/library/components/icons/services/Finance/IconHover.d.ts +4 -0
- package/build/library/components/icons/services/Flower/Icon.d.ts +4 -0
- package/build/library/components/icons/services/Flower/IconHover.d.ts +4 -0
- package/build/library/components/icons/services/FlyTip/Icon.d.ts +4 -0
- package/build/library/components/icons/services/FlyTip/IconHover.d.ts +4 -0
- package/build/library/components/icons/services/FoodWaste/Icon.d.ts +4 -0
- package/build/library/components/icons/services/FoodWaste/IconHover.d.ts +4 -0
- package/build/library/components/icons/services/GiveNotice/Icon.d.ts +4 -0
- package/build/library/components/icons/services/GiveNotice/IconHover.d.ts +4 -0
- package/build/library/components/icons/services/GovUK/Icon.d.ts +4 -0
- package/build/library/components/icons/services/GovUK/IconHover.d.ts +4 -0
- package/build/library/components/icons/services/Graffiti/Icon.d.ts +4 -0
- package/build/library/components/icons/services/Graffiti/IconHover.d.ts +4 -0
- package/build/library/components/icons/services/Highway/Icon.d.ts +4 -0
- package/build/library/components/icons/services/Highway/IconHover.d.ts +4 -0
- package/build/library/components/icons/services/HouseMoney/Icon.d.ts +4 -0
- package/build/library/components/icons/services/HouseMoney/IconHover.d.ts +4 -0
- package/build/library/components/icons/services/Housing/Icon.d.ts +4 -0
- package/build/library/components/icons/services/Housing/IconHover.d.ts +4 -0
- package/build/library/components/icons/services/Icon.types.d.ts +6 -0
- package/build/library/components/icons/services/Independence/Icon.d.ts +4 -0
- package/build/library/components/icons/services/Independence/IconHover.d.ts +4 -0
- package/build/library/components/icons/services/Libraries/Icon.d.ts +4 -0
- package/build/library/components/icons/services/Libraries/IconHover.d.ts +4 -0
- package/build/library/components/icons/services/Litter/Icon.d.ts +4 -0
- package/build/library/components/icons/services/Litter/IconHover.d.ts +4 -0
- package/build/library/components/icons/services/MapPin/Icon.d.ts +4 -0
- package/build/library/components/icons/services/MapPin/IconHover.d.ts +4 -0
- package/build/library/components/icons/services/Member/Icon.d.ts +4 -0
- package/build/library/components/icons/services/Member/IconHover.d.ts +4 -0
- package/build/library/components/icons/services/MissedBin/Icon.d.ts +4 -0
- package/build/library/components/icons/services/MissedBin/IconHover.d.ts +4 -0
- package/build/library/components/icons/services/New/Icon.d.ts +4 -0
- package/build/library/components/icons/services/New/IconHover.d.ts +4 -0
- package/build/library/components/icons/services/OccupationalTherapy/Icon.d.ts +4 -0
- package/build/library/components/icons/services/OccupationalTherapy/IconHover.d.ts +4 -0
- package/build/library/components/icons/services/ParkEvent/Icon.d.ts +4 -0
- package/build/library/components/icons/services/ParkEvent/IconHover.d.ts +4 -0
- package/build/library/components/icons/services/Parking/Icon.d.ts +4 -0
- package/build/library/components/icons/services/Parking/IconHover.d.ts +4 -0
- package/build/library/components/icons/services/ParkingTicket/Icon.d.ts +4 -0
- package/build/library/components/icons/services/ParkingTicket/IconHover.d.ts +4 -0
- package/build/library/components/icons/services/Pay/Icon.d.ts +4 -0
- package/build/library/components/icons/services/Pay/IconHover.d.ts +4 -0
- package/build/library/components/icons/services/PhonePay/Icon.d.ts +4 -0
- package/build/library/components/icons/services/PhonePay/IconHover.d.ts +4 -0
- package/build/library/components/icons/services/Planning/Icon.d.ts +4 -0
- package/build/library/components/icons/services/Planning/IconHover.d.ts +4 -0
- package/build/library/components/icons/services/Pothole/Icon.d.ts +4 -0
- package/build/library/components/icons/services/Pothole/IconHover.d.ts +4 -0
- package/build/library/components/icons/services/Protect/Icon.d.ts +4 -0
- package/build/library/components/icons/services/Protect/IconHover.d.ts +4 -0
- package/build/library/components/icons/services/RatePay/Icon.d.ts +4 -0
- package/build/library/components/icons/services/RatePay/IconHover.d.ts +4 -0
- package/build/library/components/icons/services/RegisterBirth/Icon.d.ts +4 -0
- package/build/library/components/icons/services/RegisterBirth/IconHover.d.ts +4 -0
- package/build/library/components/icons/services/RegisterDeath/Icon.d.ts +4 -0
- package/build/library/components/icons/services/RegisterDeath/IconHover.d.ts +4 -0
- package/build/library/components/icons/services/Report/Icon.d.ts +4 -0
- package/build/library/components/icons/services/Report/IconHover.d.ts +4 -0
- package/build/library/components/icons/services/Restrict/Icon.d.ts +4 -0
- package/build/library/components/icons/services/Restrict/IconHover.d.ts +4 -0
- package/build/library/components/icons/services/RoadWorks/Icon.d.ts +4 -0
- package/build/library/components/icons/services/RoadWorks/IconHover.d.ts +4 -0
- package/build/library/components/icons/services/Roads/Icon.d.ts +4 -0
- package/build/library/components/icons/services/Roads/IconHover.d.ts +4 -0
- package/build/library/components/icons/services/RoyalWebsite/Icon.d.ts +4 -0
- package/build/library/components/icons/services/RoyalWebsite/IconHover.d.ts +4 -0
- package/build/library/components/icons/services/Safety/Icon.d.ts +4 -0
- package/build/library/components/icons/services/Safety/IconHover.d.ts +4 -0
- package/build/library/components/icons/services/Schools/Icon.d.ts +4 -0
- package/build/library/components/icons/services/Schools/IconHover.d.ts +4 -0
- package/build/library/components/icons/services/ServicesIcons.d.ts +160 -0
- package/build/library/components/icons/services/SinglePerson/Icon.d.ts +4 -0
- package/build/library/components/icons/services/SinglePerson/IconHover.d.ts +4 -0
- package/build/library/components/icons/services/Sports/Icon.d.ts +4 -0
- package/build/library/components/icons/services/Sports/IconHover.d.ts +4 -0
- package/build/library/components/icons/services/Valuation/Icon.d.ts +4 -0
- package/build/library/components/icons/services/Valuation/IconHover.d.ts +4 -0
- package/build/library/components/icons/services/Venue/Icon.d.ts +4 -0
- package/build/library/components/icons/services/Venue/IconHover.d.ts +4 -0
- package/build/library/components/icons/services/WasteChecklist/Icon.d.ts +4 -0
- package/build/library/components/icons/services/WasteChecklist/IconHover.d.ts +4 -0
- package/build/library/components/icons/services/WasteSorting/Icon.d.ts +4 -0
- package/build/library/components/icons/services/WasteSorting/IconHover.d.ts +4 -0
- package/build/library/components/logos/GDSLogo/logo.d.ts +4 -0
- package/build/library/components/logos/GDSLogo/logo.types.d.ts +2 -0
- package/build/library/components/logos/NorthColouredLogo/logo.d.ts +4 -0
- package/build/library/components/logos/NorthColouredLogo/logo.types.d.ts +2 -0
- package/build/library/components/logos/NorthWhiteLogo/logo.d.ts +4 -0
- package/build/library/components/logos/NorthWhiteLogo/logo.types.d.ts +2 -0
- package/build/library/components/logos/WestColouredLogo/logo.d.ts +4 -0
- package/build/library/components/logos/WestColouredLogo/logo.types.d.ts +2 -0
- package/build/library/components/logos/WestWhiteLogo/logo.d.ts +4 -0
- package/build/library/components/logos/WestWhiteLogo/logo.types.d.ts +2 -0
- package/build/library/contexts/DirectoryShortListProvider/DirectoryShortListProvider.d.ts +4 -0
- package/build/library/contexts/DirectoryShortListProvider/DirectoryShortListProvider.types.d.ts +41 -0
- package/build/library/contexts/PostCodeAddressProvider/PostCodeAddressProvider.d.ts +6 -0
- package/build/library/contexts/PostCodeAddressProvider/PostCodeAddressProvider.types.d.ts +18 -0
- package/build/library/directory/DirectoryAddToShortList/DirectoryAddToShortList.d.ts +4 -0
- package/build/library/directory/DirectoryAddToShortList/DirectoryAddToShortList.types.d.ts +26 -0
- package/build/library/directory/DirectoryDocumentList/DirectoryDocumentList.d.ts +4 -0
- package/build/library/directory/DirectoryDocumentList/DirectoryDocumentList.storydata.d.ts +4 -0
- package/build/library/directory/DirectoryDocumentList/DirectoryDocumentList.types.d.ts +63 -0
- package/build/library/directory/DirectoryMap/DirectoryMap.d.ts +4 -0
- package/build/library/directory/DirectoryMap/DirectoryMap.types.d.ts +11 -0
- package/build/library/directory/DirectoryService/DirectoryService.d.ts +4 -0
- package/build/library/directory/DirectoryService/DirectoryService.storydata.d.ts +4 -0
- package/build/library/directory/DirectoryService/DirectoryService.types.d.ts +278 -0
- package/build/library/directory/DirectoryService/DirectoryServiceTransform.d.ts +8 -0
- package/build/library/directory/DirectoryServiceList/DirectoryServiceList.d.ts +4 -0
- package/build/library/directory/DirectoryServiceList/DirectoryServiceList.storydata.d.ts +6 -0
- package/build/library/directory/DirectoryServiceList/DirectoryServiceList.types.d.ts +136 -0
- package/build/library/directory/DirectoryShortList/DirectoryShortList.d.ts +4 -0
- package/build/library/directory/DirectoryShortList/DirectoryShortList.types.d.ts +6 -0
- package/build/library/directory/ServiceContact/ServiceContact.d.ts +4 -0
- package/build/library/directory/ServiceContact/ServiceContact.types.d.ts +42 -0
- package/build/library/directory/ServiceSocialLinks/ServiceSocialLinks.d.ts +4 -0
- package/build/library/directory/ServiceSocialLinks/ServiceSocialLinks.storydata.d.ts +2 -0
- package/build/library/directory/ServiceSocialLinks/ServiceSocialLinks.types.d.ts +24 -0
- package/build/library/helpers/UseLocalStorage.d.ts +2 -0
- package/build/library/helpers/api-helpers.d.ts +120 -0
- package/build/library/pages/ContentPage/ContentPage.d.ts +4 -0
- package/build/library/pages/ContentPage/ContentPage.storydata.d.ts +10 -0
- package/build/library/pages/CouncilTaxPageExample/CouncilTaxPageExample.d.ts +5 -0
- package/build/library/pages/CouncilTaxParishPageExample/CouncilTaxParishPageExample.d.ts +5 -0
- package/build/library/pages/DirectoryServicePage/DirectoryServicePage.d.ts +2 -0
- package/build/library/pages/ErrorPage/ErrorPage.d.ts +6 -0
- package/build/library/pages/Home/HomePage.d.ts +8 -0
- package/build/library/pages/Home/HomePage.types.d.ts +60 -0
- package/build/library/pages/MemorialPage/MemorialPage.d.ts +8 -0
- package/build/library/pages/MemorialPage/MemorialPage.types.d.ts +59 -0
- package/build/library/pages/News/News.d.ts +5 -0
- package/build/library/pages/NewsArticle/NewsArticle.d.ts +7 -0
- package/build/library/pages/SearchResultsPageExample/SearchResultsPageExample.d.ts +29 -0
- package/build/library/pages/ServiceLandingPageExample/ServiceLandingPageExample.d.ts +3 -0
- package/build/library/pages/ServiceLandingPageExample/ServiceLandingPageExample.storydata.d.ts +30 -0
- package/build/library/pages/ServiceLandingPageExample/ServiceLandingPageExample.types.d.ts +52 -0
- package/build/library/pages/ServicePageExample/ServicePageExample.d.ts +7 -0
- package/build/library/pages/SignpostPageExample/SignpostPageExample.d.ts +7 -0
- package/build/library/pages/Templates/Templates.d.ts +8 -0
- package/build/library/slices/Accordion/Accordion.d.ts +4 -0
- package/build/library/slices/Accordion/Accordion.types.d.ts +53 -0
- package/build/library/slices/Accordion/AccordionSection.d.ts +4 -0
- package/build/library/slices/BlockQuote/BlockQuote.d.ts +4 -0
- package/build/library/slices/BlockQuote/BlockQuote.types.d.ts +11 -0
- package/build/library/slices/CallToAction/CallToAction.d.ts +7 -0
- package/build/library/slices/Cards/Cards.d.ts +7 -0
- package/build/library/slices/Cards/Cards.types.d.ts +7 -0
- package/build/library/slices/CouncilTaxAlphabeticalDirectory/CouncilTaxAlphabeticalDirectory.d.ts +7 -0
- package/build/library/slices/CouncilTaxAlphabeticalDirectory/CouncilTaxAlphabeticalDirectory.storydata.d.ts +4 -0
- package/build/library/slices/CouncilTaxAlphabeticalDirectory/CouncilTaxAlphabeticalDirectory.types.d.ts +81 -0
- package/build/library/slices/Divider/Divider.d.ts +4 -0
- package/build/library/slices/Divider/Divider.types.d.ts +2 -0
- package/build/library/slices/DownloadableFiles/DownloadableFiles.d.ts +4 -0
- package/build/library/slices/DownloadableFiles/DownloadableFiles.types.d.ts +7 -0
- package/build/library/slices/GoogleMap/GoogleMap.d.ts +7 -0
- package/build/library/slices/GoogleMap/GoogleMap.storydata.d.ts +44 -0
- package/build/library/slices/GoogleMap/GoogleMap.types.d.ts +28 -0
- package/build/library/slices/Image/Image.d.ts +8 -0
- package/build/library/slices/Image/Image.storydata.d.ts +2 -0
- package/build/library/slices/Image/Image.types.d.ts +26 -0
- package/build/library/slices/ImageAndText/ImageAndText.d.ts +7 -0
- package/build/library/slices/ImageAndText/ImageAndText.storydata.d.ts +2 -0
- package/build/library/slices/ImageAndText/ImageAndText.types.d.ts +15 -0
- package/build/library/slices/InquestSchedule/InquestSchedule.d.ts +7 -0
- package/build/library/slices/InquestSchedule/InquestSchedule.storydata.d.ts +2 -0
- package/build/library/slices/InquestSchedule/InquestSchedule.types.d.ts +24 -0
- package/build/library/slices/Promotions/Promotions.d.ts +7 -0
- package/build/library/slices/SearchBox/SearchBox.d.ts +4 -0
- package/build/library/slices/SearchBox/SearchBox.storydata.d.ts +2 -0
- package/build/library/slices/SearchBox/SearchBox.types.d.ts +41 -0
- package/build/library/slices/Video/Video.d.ts +7 -0
- package/build/library/slices/Video/Video.types.d.ts +22 -0
- package/build/library/slices/WarningText/WarningText.d.ts +7 -0
- package/build/library/slices/WarningText/WarningText.types.d.ts +15 -0
- package/build/library/slices/WarningTextDisclaimer/WarningTextDisclaimer.d.ts +4 -0
- package/build/library/slices/WarningTextDisclaimer/WarningTextDisclaimer.types.d.ts +2 -0
- package/build/library/structure/AccessibleLinks/AccessibleLinks.d.ts +4 -0
- package/build/library/structure/AccessibleLinks/AccessibleLinks.types.d.ts +20 -0
- package/build/library/structure/AlertBanner/AlertBanner.d.ts +7 -0
- package/build/library/structure/AlertBanner/AlertBanner.types.d.ts +19 -0
- package/build/library/structure/AlertBannerService/AlertBannerService.d.ts +8 -0
- package/build/library/structure/AlertBannerService/AlertBannerService.types.d.ts +19 -0
- package/build/library/structure/BackLink/BackLink.d.ts +4 -0
- package/build/library/structure/BackLink/BackLink.types.d.ts +6 -0
- package/build/library/structure/Breadcrumbs/Breadcrumbs.d.ts +4 -0
- package/build/library/structure/Breadcrumbs/Breadcrumbs.types.d.ts +20 -0
- package/build/library/structure/Contents/Contents.d.ts +4 -0
- package/build/library/structure/Contents/Contents.storydata.d.ts +2 -0
- package/build/library/structure/Contents/Contents.types.d.ts +24 -0
- package/build/library/structure/ContentsNavigation/ContentsNavigation.d.ts +4 -0
- package/build/library/structure/CookieBanner/CookieBanner.d.ts +4 -0
- package/build/library/structure/CookieBanner/CookieBanner.types.d.ts +31 -0
- package/build/library/structure/CookieBanner/CookieClear.d.ts +5 -0
- package/build/library/structure/DisplayDate/DisplayDate.d.ts +7 -0
- package/build/library/structure/DisplayDate/DisplayDate.types.d.ts +18 -0
- package/build/library/structure/Footer/Footer.d.ts +4 -0
- package/build/library/structure/Footer/Footer.types.d.ts +24 -0
- package/build/library/structure/FullWidthContainer/FullWidthContainer.d.ts +7 -0
- package/build/library/structure/FullWidthContainer/FullWidthContainer.types.d.ts +15 -0
- package/build/library/structure/Header/Header.d.ts +7 -0
- package/build/library/structure/Header/Header.types.d.ts +31 -0
- package/build/library/structure/HeroImage/HeroImage.d.ts +8 -0
- package/build/library/structure/HeroImage/HeroImage.storydata.d.ts +6 -0
- package/build/library/structure/HeroImage/HeroImage.types.d.ts +48 -0
- package/build/library/structure/HomeHero/HomeHero.d.ts +7 -0
- package/build/library/structure/HomeHero/HomeHero.storydata.d.ts +14 -0
- package/build/library/structure/HomeHero/HomeHero.types.d.ts +54 -0
- package/build/library/structure/MaxWidthContainer/MaxWidthContainer.d.ts +7 -0
- package/build/library/structure/MaxWidthContainer/MaxWidthContainer.types.d.ts +23 -0
- package/build/library/structure/MemorialHero/MemorialHero.d.ts +4 -0
- package/build/library/structure/MemorialHero/MemorialHero.types.d.ts +27 -0
- package/build/library/structure/NewsArticleDate/NewsArticleDate.d.ts +7 -0
- package/build/library/structure/NewsArticleDate/NewsArticleDate.types.d.ts +10 -0
- package/build/library/structure/NewsArticleFeaturedBlock/NewsArticleFeaturedBlock.d.ts +7 -0
- package/build/library/structure/NewsArticleFeaturedBlock/NewsArticleFeaturedBlock.types.d.ts +23 -0
- package/build/library/structure/NewsArticleFilterAccordion/NewsArticleFilterAccordion.d.ts +4 -0
- package/build/library/structure/NewsArticleFilterAccordion/NewsArticleFilterAccordion.types.d.ts +7 -0
- package/build/library/structure/NewsArticleImage/NewsArticleImage.d.ts +7 -0
- package/build/library/structure/NewsArticleImage/NewsArticleImage.types.d.ts +18 -0
- package/build/library/structure/NewsArticleList/NewsArticleData.d.ts +7 -0
- package/build/library/structure/NewsArticleList/NewsArticleList.d.ts +4 -0
- package/build/library/structure/NewsArticleList/NewsArticleList.types.d.ts +28 -0
- package/build/library/structure/NewsArticleListHeader/NewsArticleListHeader.d.ts +4 -0
- package/build/library/structure/NewsArticleListHeader/NewsArticleListHeader.types.d.ts +6 -0
- package/build/library/structure/NewsArticleOldBanner/NewsArticleOldBanner.d.ts +7 -0
- package/build/library/structure/NewsArticleOldBanner/NewsArticleOldBanner.types.d.ts +2 -0
- package/build/library/structure/PageMain/PageMain.d.ts +7 -0
- package/build/library/structure/PageMain/PageMain.types.d.ts +15 -0
- package/build/library/structure/PageSidebar/PageSidebar.d.ts +7 -0
- package/build/library/structure/PageSidebar/PageSidebar.types.d.ts +7 -0
- package/build/library/structure/PageStructures.d.ts +42 -0
- package/build/library/structure/PageTitle/PageTitle.d.ts +7 -0
- package/build/library/structure/PageTitle/PageTitle.types.d.ts +11 -0
- package/build/library/structure/PageWithSidebarContainer/PageWithSidebarContainer.d.ts +7 -0
- package/build/library/structure/PageWithSidebarContainer/PageWithSidebarContainer.types.d.ts +11 -0
- package/build/library/structure/PageWrapper/PageWrapper.d.ts +4 -0
- package/build/library/structure/PageWrapper/PageWrapper.types.d.ts +11 -0
- package/build/library/structure/PhaseBanner/PhaseBanner.d.ts +4 -0
- package/build/library/structure/PhaseBanner/PhaseBanner.types.d.ts +3 -0
- package/build/library/structure/PromoBanner/PromoBanner.d.ts +8 -0
- package/build/library/structure/PromoBanner/PromoBanner.storydata.d.ts +10 -0
- package/build/library/structure/PromoBanner/PromoBanner.types.d.ts +27 -0
- package/build/library/structure/PromoBlock/PromoBlock.d.ts +8 -0
- package/build/library/structure/PromoBlock/PromoBlock.storydata.d.ts +5 -0
- package/build/library/structure/PromoBlock/PromoBlock.types.d.ts +36 -0
- package/build/library/structure/SearchHeader/SearchHeader.d.ts +4 -0
- package/build/library/structure/SearchHeader/SearchHeader.types.d.ts +2 -0
- package/build/library/structure/SearchResultsList/SearchResultsList.d.ts +4 -0
- package/build/library/structure/SearchResultsList/SearchResultsList.types.d.ts +45 -0
- package/build/library/structure/Searchbar/Searchbar.d.ts +4 -0
- package/build/library/structure/Searchbar/Searchbar.types.d.ts +48 -0
- package/build/library/structure/SectionLinks/SectionLinks.d.ts +7 -0
- package/build/library/structure/SectionLinks/SectionLinks.storydata.d.ts +2 -0
- package/build/library/structure/SectionLinks/SectionLinks.types.d.ts +52 -0
- package/build/library/structure/SectionLinksMobileContents/SectionLinksMobileContents.d.ts +4 -0
- package/build/library/structure/SectionLinksMobileContents/SectionLinksMobileContents.types.d.ts +16 -0
- package/build/library/structure/SectionLinksSidebar/SectionLinksSidebar.d.ts +4 -0
- package/build/library/structure/SectionLinksSidebar/SectionLinksSidebar.types.d.ts +34 -0
- package/build/library/structure/ServicesLinksBoxed/ServicesLinksBoxed.d.ts +4 -0
- package/build/library/structure/ServicesLinksBoxed/ServicesLinksBoxed.storydata.d.ts +9 -0
- package/build/library/structure/ServicesLinksBoxed/ServicesLinksBoxed.types.d.ts +53 -0
- package/build/library/structure/ServicesLinksList/ServicesLinksList.d.ts +4 -0
- package/build/library/structure/ServicesLinksList/ServicesLinksList.types.d.ts +68 -0
- package/build/library/structure/SignpostLinks/SignpostLinks.d.ts +4 -0
- package/build/library/structure/SignpostLinks/SignpostLinks.types.d.ts +32 -0
- package/build/library/structure/SkipToMainContent/SkipToMainContent.d.ts +4 -0
- package/build/library/structure/SkipToMainContent/SkipToMainContent.types.d.ts +2 -0
- package/build/library/structure/Summary/Summary.d.ts +4 -0
- package/build/library/structure/Summary/Summary.types.d.ts +15 -0
- package/package.json +117 -0
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { DirectoryShortListContextType, DirectoryShortListProviderProps } from './DirectoryShortListProvider.types';
|
|
3
|
+
export declare const DirectoryShortListProvider: React.FunctionComponent<DirectoryShortListProviderProps>;
|
|
4
|
+
export declare const useDirectoryShortListContext: () => DirectoryShortListContextType;
|
package/build/library/contexts/DirectoryShortListProvider/DirectoryShortListProvider.types.d.ts
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import React, { SetStateAction, Dispatch } from 'react';
|
|
2
|
+
export interface DirectoryShortListProviderProps {
|
|
3
|
+
/**
|
|
4
|
+
* The child components
|
|
5
|
+
*/
|
|
6
|
+
children: React.ReactNode;
|
|
7
|
+
}
|
|
8
|
+
export interface DirectoryShortListContextType {
|
|
9
|
+
favourites?: {
|
|
10
|
+
favourites: ShortListProps[];
|
|
11
|
+
setFavourites: Dispatch<SetStateAction<ShortListProps[]>>;
|
|
12
|
+
};
|
|
13
|
+
toggleFavourites?: (id: string, name: string, snippet: string, email?: string, website?: string, phone?: string) => void;
|
|
14
|
+
isFavourite?: (id: string) => boolean;
|
|
15
|
+
}
|
|
16
|
+
export interface ShortListProps {
|
|
17
|
+
/**
|
|
18
|
+
* The unique id for the service
|
|
19
|
+
*/
|
|
20
|
+
id: string;
|
|
21
|
+
/**
|
|
22
|
+
* The name of the service
|
|
23
|
+
*/
|
|
24
|
+
name: string;
|
|
25
|
+
/**
|
|
26
|
+
* The optional description snippet
|
|
27
|
+
*/
|
|
28
|
+
snippet?: string;
|
|
29
|
+
/**
|
|
30
|
+
* The optional email
|
|
31
|
+
*/
|
|
32
|
+
email?: string;
|
|
33
|
+
/**
|
|
34
|
+
* The optional website
|
|
35
|
+
*/
|
|
36
|
+
website?: string;
|
|
37
|
+
/**
|
|
38
|
+
* The optional phone number
|
|
39
|
+
*/
|
|
40
|
+
phone?: string;
|
|
41
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { PostcodeResultsProps } from '../../helpers/api-helpers';
|
|
3
|
+
import { PostCodeAddressProviderProps, PostCodeAddressContextType } from './PostCodeAddressProvider.types';
|
|
4
|
+
export declare const defaultResults: PostcodeResultsProps;
|
|
5
|
+
export declare const PostCodeAddressProvider: React.FunctionComponent<PostCodeAddressProviderProps>;
|
|
6
|
+
export declare const usePostcodeAddressContext: () => PostCodeAddressContextType;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React, { SetStateAction, Dispatch } from 'react';
|
|
2
|
+
import { PostcodeResultsProps } from '../../helpers/api-helpers';
|
|
3
|
+
export interface PostCodeAddressProviderProps {
|
|
4
|
+
/**
|
|
5
|
+
* What is this?
|
|
6
|
+
*/
|
|
7
|
+
children: React.ReactNode;
|
|
8
|
+
}
|
|
9
|
+
export interface PostCodeAddressContextType {
|
|
10
|
+
postcodeValue?: {
|
|
11
|
+
postcode: string;
|
|
12
|
+
setPostcode: Dispatch<SetStateAction<string>>;
|
|
13
|
+
};
|
|
14
|
+
resultsValue?: {
|
|
15
|
+
results?: PostcodeResultsProps;
|
|
16
|
+
setResults: Dispatch<SetStateAction<PostcodeResultsProps>>;
|
|
17
|
+
};
|
|
18
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export interface DirectoryAddToShortListProps {
|
|
2
|
+
/**
|
|
3
|
+
* The unique identifier
|
|
4
|
+
*/
|
|
5
|
+
id: string;
|
|
6
|
+
/**
|
|
7
|
+
* The service name
|
|
8
|
+
*/
|
|
9
|
+
name: string;
|
|
10
|
+
/**
|
|
11
|
+
* A snippet from the service description
|
|
12
|
+
*/
|
|
13
|
+
snippet: string;
|
|
14
|
+
/**
|
|
15
|
+
* The optional contact email address
|
|
16
|
+
*/
|
|
17
|
+
email?: string;
|
|
18
|
+
/**
|
|
19
|
+
* The optional website address
|
|
20
|
+
*/
|
|
21
|
+
website?: string;
|
|
22
|
+
/**
|
|
23
|
+
* The optional phone number
|
|
24
|
+
*/
|
|
25
|
+
phone?: string;
|
|
26
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { DirectoryDocument, DirectoryDocumentListProps } from './DirectoryDocumentList.types';
|
|
2
|
+
export declare const ExampleDirectoryDocument: DirectoryDocument;
|
|
3
|
+
export declare const ExampleDirectoryLink: DirectoryDocument;
|
|
4
|
+
export declare const ExampleDirectoryDocumentListProps: DirectoryDocumentListProps;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { Dispatch, SetStateAction } from 'react';
|
|
2
|
+
import { DirectoryCategory } from '../DirectoryServiceList/DirectoryServiceList.types';
|
|
3
|
+
import { FileDownloadProps } from '../../components/FileDownload/FileDownload.types';
|
|
4
|
+
export interface DirectoryDocumentListProps {
|
|
5
|
+
/**
|
|
6
|
+
* The base url for the directory
|
|
7
|
+
*/
|
|
8
|
+
directoryPath: string;
|
|
9
|
+
/**
|
|
10
|
+
* An array of documents
|
|
11
|
+
*/
|
|
12
|
+
documents: DirectoryDocument[];
|
|
13
|
+
/**
|
|
14
|
+
* The search term string
|
|
15
|
+
*/
|
|
16
|
+
search?: string;
|
|
17
|
+
/**
|
|
18
|
+
* Function prop passed in to handle updating search
|
|
19
|
+
*/
|
|
20
|
+
setSearch: Dispatch<SetStateAction<string>>;
|
|
21
|
+
/**
|
|
22
|
+
* The total amount of results
|
|
23
|
+
*/
|
|
24
|
+
totalResults?: number;
|
|
25
|
+
/**
|
|
26
|
+
* The total amount of pages
|
|
27
|
+
*/
|
|
28
|
+
pageNumber?: number;
|
|
29
|
+
/**
|
|
30
|
+
* Function prop passed in to handle the update page number
|
|
31
|
+
*/
|
|
32
|
+
setPageNumber: Dispatch<SetStateAction<number>>;
|
|
33
|
+
/**
|
|
34
|
+
* The number of results per page
|
|
35
|
+
*/
|
|
36
|
+
perPage?: number;
|
|
37
|
+
/**
|
|
38
|
+
* The filter categories
|
|
39
|
+
*/
|
|
40
|
+
categories?: DirectoryCategory[];
|
|
41
|
+
/**
|
|
42
|
+
* Function prop passed in to handle updating categories
|
|
43
|
+
*/
|
|
44
|
+
setCategories: Dispatch<SetStateAction<DirectoryCategory[]>>;
|
|
45
|
+
/**
|
|
46
|
+
* Is the data loading
|
|
47
|
+
*/
|
|
48
|
+
isLoading: boolean;
|
|
49
|
+
}
|
|
50
|
+
export interface DirectoryDocument {
|
|
51
|
+
/**
|
|
52
|
+
* The unique identifier
|
|
53
|
+
*/
|
|
54
|
+
id: string;
|
|
55
|
+
/**
|
|
56
|
+
* The description of the file
|
|
57
|
+
*/
|
|
58
|
+
description: string;
|
|
59
|
+
/**
|
|
60
|
+
* The file properties
|
|
61
|
+
*/
|
|
62
|
+
file: FileDownloadProps;
|
|
63
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { StaticMapProps } from '../../components/StaticMap/StaticMap.types';
|
|
2
|
+
export interface DirectoryMapProps {
|
|
3
|
+
/**
|
|
4
|
+
* Allow overriding if cookies are allowed (for stories).
|
|
5
|
+
*/
|
|
6
|
+
allowCookies?: boolean;
|
|
7
|
+
/**
|
|
8
|
+
* Map settings
|
|
9
|
+
*/
|
|
10
|
+
mapProps: StaticMapProps;
|
|
11
|
+
}
|
|
@@ -0,0 +1,278 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ServiceContactProps } from '../ServiceContact/ServiceContact.types';
|
|
3
|
+
import { FileDownloadProps } from '../../components/FileDownload/FileDownload.types';
|
|
4
|
+
import { SocialProfile } from '../ServiceSocialLinks/ServiceSocialLinks.types';
|
|
5
|
+
export interface DirectoryServiceProps {
|
|
6
|
+
/**
|
|
7
|
+
* The unique service id
|
|
8
|
+
*/
|
|
9
|
+
id: string;
|
|
10
|
+
/**
|
|
11
|
+
* The optional accreditations, such as Ofsted Grade
|
|
12
|
+
*/
|
|
13
|
+
accreditations?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Should the age be displayed in months?
|
|
16
|
+
*/
|
|
17
|
+
ageInMonths?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* An array of contacts with phone numbers
|
|
20
|
+
*/
|
|
21
|
+
contacts?: ServiceContactProps[];
|
|
22
|
+
/**
|
|
23
|
+
* The description as a plain HTML string
|
|
24
|
+
*/
|
|
25
|
+
description: string;
|
|
26
|
+
/**
|
|
27
|
+
* The description as a react node
|
|
28
|
+
*/
|
|
29
|
+
descriptionElement?: React.ReactNode;
|
|
30
|
+
/**
|
|
31
|
+
* The optional min and max ages
|
|
32
|
+
*/
|
|
33
|
+
eligibilitys: EligibilitiesProps[];
|
|
34
|
+
/**
|
|
35
|
+
* The optional service email address
|
|
36
|
+
*/
|
|
37
|
+
email?: string;
|
|
38
|
+
/**
|
|
39
|
+
* The optional costs of the service
|
|
40
|
+
*/
|
|
41
|
+
fees?: string;
|
|
42
|
+
/**
|
|
43
|
+
* The optional additional languages
|
|
44
|
+
*/
|
|
45
|
+
languages?: LanguagesProps[];
|
|
46
|
+
/**
|
|
47
|
+
* The service name
|
|
48
|
+
*/
|
|
49
|
+
name: string;
|
|
50
|
+
/**
|
|
51
|
+
* The organization that the service belongs to
|
|
52
|
+
*/
|
|
53
|
+
organization: OrganizationProps;
|
|
54
|
+
/**
|
|
55
|
+
* The optional opening times for the service
|
|
56
|
+
*/
|
|
57
|
+
regular_schedules?: RegularScheduleProps[];
|
|
58
|
+
/**
|
|
59
|
+
* The service areas or locality the service operates in
|
|
60
|
+
*/
|
|
61
|
+
service_areas: ServiceAreaProps[];
|
|
62
|
+
/**
|
|
63
|
+
* An optional array of locations, including addresses and facilities
|
|
64
|
+
*/
|
|
65
|
+
service_at_locations?: LocationProps[];
|
|
66
|
+
/**
|
|
67
|
+
* An optional array of social profile links
|
|
68
|
+
*/
|
|
69
|
+
service_social_profiles?: SocialProfile[];
|
|
70
|
+
/**
|
|
71
|
+
* The filters the service belongs to
|
|
72
|
+
*/
|
|
73
|
+
service_taxonomys?: ServiceTaxonomy[];
|
|
74
|
+
/**
|
|
75
|
+
* Which taxonomies should be shown on the service page
|
|
76
|
+
*/
|
|
77
|
+
taxonomiesToShow: TaxonomyToShow[];
|
|
78
|
+
/**
|
|
79
|
+
* The service website address
|
|
80
|
+
*/
|
|
81
|
+
url?: string;
|
|
82
|
+
/**
|
|
83
|
+
* An optional array of files/links belonging to the service
|
|
84
|
+
*/
|
|
85
|
+
uploads?: FileDownloadProps[];
|
|
86
|
+
/**
|
|
87
|
+
* When the service was updated. Expected format YYYY-MM-DD
|
|
88
|
+
*/
|
|
89
|
+
updated_at?: string;
|
|
90
|
+
/**
|
|
91
|
+
* The url to the shortlist
|
|
92
|
+
*/
|
|
93
|
+
shortListPath?: string;
|
|
94
|
+
}
|
|
95
|
+
export interface OrganizationProps {
|
|
96
|
+
/**
|
|
97
|
+
* The unique identifier for the service
|
|
98
|
+
*/
|
|
99
|
+
id: string;
|
|
100
|
+
/**
|
|
101
|
+
* The description of the organization
|
|
102
|
+
*/
|
|
103
|
+
description: string;
|
|
104
|
+
/**
|
|
105
|
+
* The full path to the organization logo
|
|
106
|
+
*/
|
|
107
|
+
logo: string;
|
|
108
|
+
/**
|
|
109
|
+
* The name of the organization
|
|
110
|
+
*/
|
|
111
|
+
name: string;
|
|
112
|
+
/**
|
|
113
|
+
* An optional uri
|
|
114
|
+
*/
|
|
115
|
+
uri: string;
|
|
116
|
+
/**
|
|
117
|
+
* The organization website address
|
|
118
|
+
*/
|
|
119
|
+
url: string;
|
|
120
|
+
}
|
|
121
|
+
export interface RegularScheduleProps {
|
|
122
|
+
/**
|
|
123
|
+
* The closing time in format HH:MM:SS
|
|
124
|
+
*/
|
|
125
|
+
closes_at: string;
|
|
126
|
+
/**
|
|
127
|
+
* The opening time in format HH:MM:SS
|
|
128
|
+
*/
|
|
129
|
+
opens_at: string;
|
|
130
|
+
/**
|
|
131
|
+
* The day of the week as text, e.g. 'Monday'
|
|
132
|
+
*/
|
|
133
|
+
weekday: string;
|
|
134
|
+
}
|
|
135
|
+
export interface LocationProps {
|
|
136
|
+
/**
|
|
137
|
+
* The unique identifier for the location
|
|
138
|
+
*/
|
|
139
|
+
id: number;
|
|
140
|
+
/**
|
|
141
|
+
* The name of the location, such as 'Head Office'
|
|
142
|
+
*/
|
|
143
|
+
name: string;
|
|
144
|
+
/**
|
|
145
|
+
* The optional description
|
|
146
|
+
*/
|
|
147
|
+
description: string;
|
|
148
|
+
/**
|
|
149
|
+
* Is the location visitable by the public?
|
|
150
|
+
*/
|
|
151
|
+
is_visitable?: boolean;
|
|
152
|
+
/**
|
|
153
|
+
* The latitude of the location
|
|
154
|
+
*/
|
|
155
|
+
latitude: string;
|
|
156
|
+
/**
|
|
157
|
+
* The longitude of the location
|
|
158
|
+
*/
|
|
159
|
+
longitude: string;
|
|
160
|
+
/**
|
|
161
|
+
* An array of addresses for the location
|
|
162
|
+
*/
|
|
163
|
+
physical_addresses: PhysicalAddressProps[];
|
|
164
|
+
/**
|
|
165
|
+
* An array of facilities that the location offers
|
|
166
|
+
*/
|
|
167
|
+
accessibility_for_disabilities: AccessibilityForDisabilityProps[];
|
|
168
|
+
}
|
|
169
|
+
export interface PhysicalAddressProps {
|
|
170
|
+
/**
|
|
171
|
+
* The unique identifier
|
|
172
|
+
*/
|
|
173
|
+
id: number;
|
|
174
|
+
/**
|
|
175
|
+
* The street number and address line 1
|
|
176
|
+
*/
|
|
177
|
+
address_1: string;
|
|
178
|
+
/**
|
|
179
|
+
* The city
|
|
180
|
+
*/
|
|
181
|
+
city: string;
|
|
182
|
+
/**
|
|
183
|
+
* The county
|
|
184
|
+
*/
|
|
185
|
+
state_province: string;
|
|
186
|
+
/**
|
|
187
|
+
* The postcode
|
|
188
|
+
*/
|
|
189
|
+
postal_code: string;
|
|
190
|
+
/**
|
|
191
|
+
* The country
|
|
192
|
+
*/
|
|
193
|
+
country: string;
|
|
194
|
+
}
|
|
195
|
+
export interface AccessibilityForDisabilityProps {
|
|
196
|
+
/**
|
|
197
|
+
* The unique identifier
|
|
198
|
+
*/
|
|
199
|
+
id: number;
|
|
200
|
+
/**
|
|
201
|
+
* The name of the facility offered by the location
|
|
202
|
+
*/
|
|
203
|
+
accessibility: string;
|
|
204
|
+
}
|
|
205
|
+
export interface ServiceAreaProps {
|
|
206
|
+
/**
|
|
207
|
+
* The unique identifier
|
|
208
|
+
*/
|
|
209
|
+
id: number;
|
|
210
|
+
/**
|
|
211
|
+
* An optional extent string. Not used.
|
|
212
|
+
*/
|
|
213
|
+
extent?: string | null;
|
|
214
|
+
/**
|
|
215
|
+
* The locality or service area name
|
|
216
|
+
*/
|
|
217
|
+
service_area: string;
|
|
218
|
+
/**
|
|
219
|
+
* An optional uri. Not used.
|
|
220
|
+
*/
|
|
221
|
+
uri?: string | null;
|
|
222
|
+
}
|
|
223
|
+
export interface EligibilitiesProps {
|
|
224
|
+
/**
|
|
225
|
+
* The unique identifier
|
|
226
|
+
*/
|
|
227
|
+
id: number;
|
|
228
|
+
/**
|
|
229
|
+
* The eligibility name. Not used.
|
|
230
|
+
*/
|
|
231
|
+
eligibility: string;
|
|
232
|
+
/**
|
|
233
|
+
* The minimum age as a number
|
|
234
|
+
*/
|
|
235
|
+
minimum_age: number;
|
|
236
|
+
/**
|
|
237
|
+
* The maximum age as a number
|
|
238
|
+
*/
|
|
239
|
+
maximum_age: number;
|
|
240
|
+
}
|
|
241
|
+
export interface LanguagesProps {
|
|
242
|
+
/**
|
|
243
|
+
* The unique identifier
|
|
244
|
+
*/
|
|
245
|
+
id: number;
|
|
246
|
+
/**
|
|
247
|
+
* The additional language offered by the service
|
|
248
|
+
*/
|
|
249
|
+
language: string;
|
|
250
|
+
}
|
|
251
|
+
export interface ServiceTaxonomy {
|
|
252
|
+
/**
|
|
253
|
+
* The unique identifier, in CURIE format. e.g. 'referralRoute:1'
|
|
254
|
+
*/
|
|
255
|
+
id: string;
|
|
256
|
+
/**
|
|
257
|
+
* The name/label for the taxonomy
|
|
258
|
+
*/
|
|
259
|
+
name: string;
|
|
260
|
+
/**
|
|
261
|
+
* The vocabulary in camelCase. e.g. 'referralRoute'
|
|
262
|
+
*/
|
|
263
|
+
vocabulary: string;
|
|
264
|
+
/**
|
|
265
|
+
* An optional parent id. Not used.
|
|
266
|
+
*/
|
|
267
|
+
parent?: string;
|
|
268
|
+
}
|
|
269
|
+
export interface TaxonomyToShow {
|
|
270
|
+
/**
|
|
271
|
+
* The camelCase vocabulary
|
|
272
|
+
*/
|
|
273
|
+
vocabulary: string;
|
|
274
|
+
/**
|
|
275
|
+
* The label to present to the user for the taxonomy
|
|
276
|
+
*/
|
|
277
|
+
label: string;
|
|
278
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { SummaryRowProps } from '../../components/SummaryList/SummaryList.types';
|
|
2
|
+
import { EligibilitiesProps, LanguagesProps, LocationProps, ServiceAreaProps, ServiceTaxonomy, TaxonomyToShow } from './DirectoryService.types';
|
|
3
|
+
export declare const transformService: (email: string, url: string, phone?: string) => SummaryRowProps[];
|
|
4
|
+
export declare const transformLocation: (location: LocationProps) => SummaryRowProps[];
|
|
5
|
+
export declare const transformDescriptionDetails: (accreditations: string, fees: string, service_areas: ServiceAreaProps[], languages: LanguagesProps[], eligibilities: EligibilitiesProps[], ageInMonths?: boolean) => SummaryRowProps[];
|
|
6
|
+
export declare const transformSnippet: (description: string, extractLength?: number) => string;
|
|
7
|
+
export declare const transformTaxonomies: (service_taxonomys: ServiceTaxonomy[], taxonomiesToShow?: TaxonomyToShow[]) => SummaryRowProps[];
|
|
8
|
+
export declare const transformAge: (age: number, ageInMonths?: boolean) => string | 0;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { DirectoryCategory } from './DirectoryServiceList.types';
|
|
2
|
+
export declare const LocalOfferTaxonomy: DirectoryCategory;
|
|
3
|
+
export declare const SpecialNeedTaxonomy: DirectoryCategory;
|
|
4
|
+
export declare const ExampleFacilities: DirectoryCategory;
|
|
5
|
+
export declare const ExampleLanguages: DirectoryCategory;
|
|
6
|
+
export declare const ExampleDirectoryCategories: DirectoryCategory[];
|