northants-design-system 0.3.11 → 0.3.12
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.esm.js +5 -2
- package/build/index.esm.js.map +1 -1
- package/build/index.js +5 -2
- package/build/index.js.map +1 -1
- package/build/library/components/Map/Map.types.d.ts +5 -0
- package/build/library/directory/DirectoryServiceList/DirectoryServiceList.types.d.ts +4 -0
- package/package.json +1 -1
- package/build/icons/flytip.svg +0 -24
- package/build/index.css +0 -36
- package/build/library/components/CheckboxesInput/CheckboxesInput.d.ts +0 -4
- package/build/library/components/CheckboxesInput/CheckboxesInput.storydata.d.ts +0 -3
- package/build/library/components/CheckboxesInput/CheckboxesInput.types.d.ts +0 -37
- package/build/library/components/CouncilTaxAlphabeticalDirectory/CouncilTaxAlphabeticalDirectory.d.ts +0 -4
- package/build/library/components/GoogleMap/GoogleMap.d.ts +0 -4
- package/build/library/components/GoogleMap/GoogleMap.types.d.ts +0 -11
- package/build/library/components/GoogleMapMarker/GoogleMapMarker.d.ts +0 -4
- package/build/library/components/MapMarker/MapMarker.types.d.ts +0 -6
- package/build/library/components/PostCodeSearchApollo/PostCodeSearchApollo.d.ts +0 -4
- package/build/library/components/PostCodeSearchApollo/PostCodeSearchApollo.types.d.ts +0 -6
- package/build/library/components/icons/services/AccessibleParkingHover/Icon.d.ts +0 -4
- package/build/library/components/icons/services/AddressChangeIcon/Icon.d.ts +0 -4
- package/build/library/components/icons/services/AddressChangeIconHover/Icon.d.ts +0 -4
- package/build/library/components/icons/services/AddressIcon/Icon.d.ts +0 -4
- package/build/library/components/icons/services/AddressIconHover/Icon.d.ts +0 -4
- package/build/library/components/icons/services/AdultsIcon/Icon.d.ts +0 -4
- package/build/library/components/icons/services/AdultsIcon/IconHover.d.ts +0 -4
- package/build/library/components/icons/services/AdultsIconHover/Icon.d.ts +0 -4
- package/build/library/components/icons/services/BenefitsIcon/Icon.d.ts +0 -4
- package/build/library/components/icons/services/BenefitsIconHover/Icon.d.ts +0 -4
- package/build/library/components/icons/services/BinDayHover/Icon.d.ts +0 -4
- package/build/library/components/icons/services/BinsIcon/Icon.d.ts +0 -4
- package/build/library/components/icons/services/BinsIconHover/Icon.d.ts +0 -4
- package/build/library/components/icons/services/BirthsIcon/Icon.d.ts +0 -4
- package/build/library/components/icons/services/BirthsIconHover/Icon.d.ts +0 -4
- package/build/library/components/icons/services/BollardHover/Icon.d.ts +0 -4
- package/build/library/components/icons/services/BusIcon/Icon.d.ts +0 -4
- package/build/library/components/icons/services/BusIconHover/Icon.d.ts +0 -4
- package/build/library/components/icons/services/BusPassHover/Icon.d.ts +0 -4
- package/build/library/components/icons/services/BusinessIcon/Icon.d.ts +0 -4
- package/build/library/components/icons/services/BusinessIconHover/Icon.d.ts +0 -4
- package/build/library/components/icons/services/CareersIcon/Icon.d.ts +0 -4
- package/build/library/components/icons/services/CareersIconHover/Icon.d.ts +0 -4
- package/build/library/components/icons/services/CashIcon/Icon.d.ts +0 -4
- package/build/library/components/icons/services/CashIconHover/Icon.d.ts +0 -4
- package/build/library/components/icons/services/CharityHover/Icon.d.ts +0 -4
- package/build/library/components/icons/services/ChildrenIcon/Icon.d.ts +0 -4
- package/build/library/components/icons/services/ChildrenIconHover/Icon.d.ts +0 -4
- package/build/library/components/icons/services/CondolenceBookIcon/Icon.d.ts +0 -4
- package/build/library/components/icons/services/CondolenceBookIconHover/Icon.d.ts +0 -4
- package/build/library/components/icons/services/CookingIcon/Icon.d.ts +0 -4
- package/build/library/components/icons/services/CookingIconHover/Icon.d.ts +0 -4
- package/build/library/components/icons/services/CouncilIcon/Icon.d.ts +0 -4
- package/build/library/components/icons/services/CouncilIconHover/Icon.d.ts +0 -4
- package/build/library/components/icons/services/CouncilTaxIcon/Icon.d.ts +0 -4
- package/build/library/components/icons/services/CouncilTaxIconHover/Icon.d.ts +0 -4
- package/build/library/components/icons/services/CovidIcon/Icon.d.ts +0 -4
- package/build/library/components/icons/services/CovidIconHover/Icon.d.ts +0 -4
- package/build/library/components/icons/services/CultureIcon/Icon.d.ts +0 -4
- package/build/library/components/icons/services/CultureIconHover/Icon.d.ts +0 -4
- package/build/library/components/icons/services/CultureNorthIcon/Icon.d.ts +0 -4
- package/build/library/components/icons/services/CultureNorthIconHover/Icon.d.ts +0 -4
- package/build/library/components/icons/services/CultureWestIcon/Icon.d.ts +0 -4
- package/build/library/components/icons/services/CultureWestIconHover/Icon.d.ts +0 -4
- package/build/library/components/icons/services/DOLSIcon/Icon.d.ts +0 -4
- package/build/library/components/icons/services/DOLSIconHover/Icon.d.ts +0 -4
- package/build/library/components/icons/services/DemocracyIcon/Icon.d.ts +0 -4
- package/build/library/components/icons/services/DemocracyIconHover/Icon.d.ts +0 -4
- package/build/library/components/icons/services/EditIcon/Icon.d.ts +0 -4
- package/build/library/components/icons/services/EditIconHover/Icon.d.ts +0 -4
- package/build/library/components/icons/services/EnvironmentIcon/Icon.d.ts +0 -4
- package/build/library/components/icons/services/EnvironmentIconHover/Icon.d.ts +0 -4
- package/build/library/components/icons/services/FinanceIcon/Icon.d.ts +0 -4
- package/build/library/components/icons/services/FinanceIconHover/Icon.d.ts +0 -4
- package/build/library/components/icons/services/FlowerHover/Icon.d.ts +0 -4
- package/build/library/components/icons/services/FlyTipHover/Icon.d.ts +0 -4
- package/build/library/components/icons/services/FoodWasteHover/Icon.d.ts +0 -4
- package/build/library/components/icons/services/GovUKIcon/Icon.d.ts +0 -4
- package/build/library/components/icons/services/GovUKIconHover/Icon.d.ts +0 -4
- package/build/library/components/icons/services/HighwayHover/Icon.d.ts +0 -4
- package/build/library/components/icons/services/HouseMoneyIcon/Icon.d.ts +0 -4
- package/build/library/components/icons/services/HouseMoneyIconHover/Icon.d.ts +0 -4
- package/build/library/components/icons/services/HousingIcon/Icon.d.ts +0 -4
- package/build/library/components/icons/services/HousingIconHover/Icon.d.ts +0 -4
- package/build/library/components/icons/services/IndependenceIcon/Icon.d.ts +0 -4
- package/build/library/components/icons/services/IndependenceIconHover/Icon.d.ts +0 -4
- package/build/library/components/icons/services/LibrariesIcon/Icon.d.ts +0 -4
- package/build/library/components/icons/services/LibrariesIconHover/Icon.d.ts +0 -4
- package/build/library/components/icons/services/MapPinHover/Icon.d.ts +0 -4
- package/build/library/components/icons/services/MissedBinHover/Icon.d.ts +0 -4
- package/build/library/components/icons/services/NewIcon/Icon.d.ts +0 -4
- package/build/library/components/icons/services/NewIconHover/Icon.d.ts +0 -4
- package/build/library/components/icons/services/OccupationalTherapyIcon/Icon.d.ts +0 -4
- package/build/library/components/icons/services/OccupationalTherapyIconHover/Icon.d.ts +0 -4
- package/build/library/components/icons/services/ParkEventHover/Icon.d.ts +0 -4
- package/build/library/components/icons/services/ParkingHover/Icon.d.ts +0 -4
- package/build/library/components/icons/services/ParkingTicketHover/Icon.d.ts +0 -4
- package/build/library/components/icons/services/PayIcon/Icon.d.ts +0 -4
- package/build/library/components/icons/services/PayIconHover/Icon.d.ts +0 -4
- package/build/library/components/icons/services/PhonePayIcon/Icon.d.ts +0 -4
- package/build/library/components/icons/services/PhonePayIconHover/Icon.d.ts +0 -4
- package/build/library/components/icons/services/PlanningIcon/Icon.d.ts +0 -4
- package/build/library/components/icons/services/PlanningIconHover/Icon.d.ts +0 -4
- package/build/library/components/icons/services/PotholeHover/Icon.d.ts +0 -4
- package/build/library/components/icons/services/ProtectIcon/Icon.d.ts +0 -4
- package/build/library/components/icons/services/ProtectIconHover/Icon.d.ts +0 -4
- package/build/library/components/icons/services/RatePayIcon/Icon.d.ts +0 -4
- package/build/library/components/icons/services/RatePayIconHover/Icon.d.ts +0 -4
- package/build/library/components/icons/services/ReportHover/Icon.d.ts +0 -4
- package/build/library/components/icons/services/RestrictIcon/Icon.d.ts +0 -4
- package/build/library/components/icons/services/RestrictIconHover/Icon.d.ts +0 -4
- package/build/library/components/icons/services/RoadWorksHover/Icon.d.ts +0 -4
- package/build/library/components/icons/services/RoadsIcon/Icon.d.ts +0 -4
- package/build/library/components/icons/services/RoadsIconHover/Icon.d.ts +0 -4
- package/build/library/components/icons/services/RoyalWebsiteIcon/Icon.d.ts +0 -4
- package/build/library/components/icons/services/RoyalWebsiteIconHover/Icon.d.ts +0 -4
- package/build/library/components/icons/services/SafetyIcon/Icon.d.ts +0 -4
- package/build/library/components/icons/services/SafetyIconHover/Icon.d.ts +0 -4
- package/build/library/components/icons/services/SchoolsIcon/Icon.d.ts +0 -4
- package/build/library/components/icons/services/SchoolsIconHover/Icon.d.ts +0 -4
- package/build/library/components/icons/services/SinglePersonIcon/Icon.d.ts +0 -4
- package/build/library/components/icons/services/SinglePersonIconHover/Icon.d.ts +0 -4
- package/build/library/components/icons/services/SportsIcon/Icon.d.ts +0 -4
- package/build/library/components/icons/services/SportsIconHover/Icon.d.ts +0 -4
- package/build/library/components/icons/services/ValuationIcon/Icon.d.ts +0 -4
- package/build/library/components/icons/services/ValuationIconHover/Icon.d.ts +0 -4
- package/build/library/components/icons/services/WasteChecklistHover/Icon.d.ts +0 -4
- package/build/library/components/icons/services/WasteSortingHover/Icon.d.ts +0 -4
- package/build/library/contexts/DirectoryFavouritesProvider/DirectoryFavouritesProvider.d.ts +0 -4
- package/build/library/contexts/DirectoryFavouritesProvider/DirectoryFavouritesProvider.types.d.ts +0 -14
- package/build/library/contexts/DirectoryServiceListProvider/DirectoryServiceListProvider.d.ts +0 -4
- package/build/library/contexts/DirectoryServiceListProvider/DirectoryServiceListProvider.types.d.ts +0 -31
- package/build/library/pages/PromotionPage/PromotionPageExample.d.ts +0 -3
- package/build/library/pages/PromotionPage/PromotionPageExample.storydata.d.ts +0 -20
- package/build/library/pages/PromotionPage/PromotionPageExample.types.d.ts +0 -42
- package/build/library/structure/HomeUnitarySection/HomeUnitarySection.d.ts +0 -4
- package/build/library/structure/HomeUnitarySection/HomeUnitarySection.types.d.ts +0 -22
- package/build/library/structure/HomeUnitarySection/assets/map.d.ts +0 -3
package/build/index.esm.js
CHANGED
|
@@ -22678,10 +22678,15 @@ var AlertBanner = function (_a) {
|
|
|
22678
22678
|
var themeContext = useContext(ThemeContext);
|
|
22679
22679
|
var elementRef = useRef(null);
|
|
22680
22680
|
var _c = useLocalStorage$1('alert_' + uid, true), showAlert = _c[0], setShowAlert = _c[1];
|
|
22681
|
+
var _d = useState(false), notServer = _d[0], setNotServer = _d[1];
|
|
22681
22682
|
useEffect(function () {
|
|
22682
22683
|
var _a;
|
|
22683
22684
|
(_a = elementRef === null || elementRef === void 0 ? void 0 : elementRef.current) === null || _a === void 0 ? void 0 : _a.addEventListener('click', embeddedLinkCLickHandler);
|
|
22684
22685
|
}, [elementRef]);
|
|
22686
|
+
/* Stop flash of banner on page load when previously dismissed */
|
|
22687
|
+
useEffect(function () {
|
|
22688
|
+
setNotServer(true);
|
|
22689
|
+
}, []);
|
|
22685
22690
|
/* A click on any link within the alert text dismisses the banner too */
|
|
22686
22691
|
var embeddedLinkCLickHandler = function (event) {
|
|
22687
22692
|
var _a;
|
|
@@ -22692,8 +22697,6 @@ var AlertBanner = function (_a) {
|
|
|
22692
22697
|
var hideClickHandler = function () {
|
|
22693
22698
|
setShowAlert(false);
|
|
22694
22699
|
};
|
|
22695
|
-
/* Stop flash of banner on page load when previously dismissed */
|
|
22696
|
-
var notServer = typeof window !== 'undefined';
|
|
22697
22700
|
return (showAlert &&
|
|
22698
22701
|
notServer && (React.createElement(Container$x, { alertType: alertType, "data-testid": "AlertBanner" },
|
|
22699
22702
|
React.createElement(MaxWidthContainer, { noBackground: true },
|