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.
Files changed (137) hide show
  1. package/build/index.esm.js +5 -2
  2. package/build/index.esm.js.map +1 -1
  3. package/build/index.js +5 -2
  4. package/build/index.js.map +1 -1
  5. package/build/library/components/Map/Map.types.d.ts +5 -0
  6. package/build/library/directory/DirectoryServiceList/DirectoryServiceList.types.d.ts +4 -0
  7. package/package.json +1 -1
  8. package/build/icons/flytip.svg +0 -24
  9. package/build/index.css +0 -36
  10. package/build/library/components/CheckboxesInput/CheckboxesInput.d.ts +0 -4
  11. package/build/library/components/CheckboxesInput/CheckboxesInput.storydata.d.ts +0 -3
  12. package/build/library/components/CheckboxesInput/CheckboxesInput.types.d.ts +0 -37
  13. package/build/library/components/CouncilTaxAlphabeticalDirectory/CouncilTaxAlphabeticalDirectory.d.ts +0 -4
  14. package/build/library/components/GoogleMap/GoogleMap.d.ts +0 -4
  15. package/build/library/components/GoogleMap/GoogleMap.types.d.ts +0 -11
  16. package/build/library/components/GoogleMapMarker/GoogleMapMarker.d.ts +0 -4
  17. package/build/library/components/MapMarker/MapMarker.types.d.ts +0 -6
  18. package/build/library/components/PostCodeSearchApollo/PostCodeSearchApollo.d.ts +0 -4
  19. package/build/library/components/PostCodeSearchApollo/PostCodeSearchApollo.types.d.ts +0 -6
  20. package/build/library/components/icons/services/AccessibleParkingHover/Icon.d.ts +0 -4
  21. package/build/library/components/icons/services/AddressChangeIcon/Icon.d.ts +0 -4
  22. package/build/library/components/icons/services/AddressChangeIconHover/Icon.d.ts +0 -4
  23. package/build/library/components/icons/services/AddressIcon/Icon.d.ts +0 -4
  24. package/build/library/components/icons/services/AddressIconHover/Icon.d.ts +0 -4
  25. package/build/library/components/icons/services/AdultsIcon/Icon.d.ts +0 -4
  26. package/build/library/components/icons/services/AdultsIcon/IconHover.d.ts +0 -4
  27. package/build/library/components/icons/services/AdultsIconHover/Icon.d.ts +0 -4
  28. package/build/library/components/icons/services/BenefitsIcon/Icon.d.ts +0 -4
  29. package/build/library/components/icons/services/BenefitsIconHover/Icon.d.ts +0 -4
  30. package/build/library/components/icons/services/BinDayHover/Icon.d.ts +0 -4
  31. package/build/library/components/icons/services/BinsIcon/Icon.d.ts +0 -4
  32. package/build/library/components/icons/services/BinsIconHover/Icon.d.ts +0 -4
  33. package/build/library/components/icons/services/BirthsIcon/Icon.d.ts +0 -4
  34. package/build/library/components/icons/services/BirthsIconHover/Icon.d.ts +0 -4
  35. package/build/library/components/icons/services/BollardHover/Icon.d.ts +0 -4
  36. package/build/library/components/icons/services/BusIcon/Icon.d.ts +0 -4
  37. package/build/library/components/icons/services/BusIconHover/Icon.d.ts +0 -4
  38. package/build/library/components/icons/services/BusPassHover/Icon.d.ts +0 -4
  39. package/build/library/components/icons/services/BusinessIcon/Icon.d.ts +0 -4
  40. package/build/library/components/icons/services/BusinessIconHover/Icon.d.ts +0 -4
  41. package/build/library/components/icons/services/CareersIcon/Icon.d.ts +0 -4
  42. package/build/library/components/icons/services/CareersIconHover/Icon.d.ts +0 -4
  43. package/build/library/components/icons/services/CashIcon/Icon.d.ts +0 -4
  44. package/build/library/components/icons/services/CashIconHover/Icon.d.ts +0 -4
  45. package/build/library/components/icons/services/CharityHover/Icon.d.ts +0 -4
  46. package/build/library/components/icons/services/ChildrenIcon/Icon.d.ts +0 -4
  47. package/build/library/components/icons/services/ChildrenIconHover/Icon.d.ts +0 -4
  48. package/build/library/components/icons/services/CondolenceBookIcon/Icon.d.ts +0 -4
  49. package/build/library/components/icons/services/CondolenceBookIconHover/Icon.d.ts +0 -4
  50. package/build/library/components/icons/services/CookingIcon/Icon.d.ts +0 -4
  51. package/build/library/components/icons/services/CookingIconHover/Icon.d.ts +0 -4
  52. package/build/library/components/icons/services/CouncilIcon/Icon.d.ts +0 -4
  53. package/build/library/components/icons/services/CouncilIconHover/Icon.d.ts +0 -4
  54. package/build/library/components/icons/services/CouncilTaxIcon/Icon.d.ts +0 -4
  55. package/build/library/components/icons/services/CouncilTaxIconHover/Icon.d.ts +0 -4
  56. package/build/library/components/icons/services/CovidIcon/Icon.d.ts +0 -4
  57. package/build/library/components/icons/services/CovidIconHover/Icon.d.ts +0 -4
  58. package/build/library/components/icons/services/CultureIcon/Icon.d.ts +0 -4
  59. package/build/library/components/icons/services/CultureIconHover/Icon.d.ts +0 -4
  60. package/build/library/components/icons/services/CultureNorthIcon/Icon.d.ts +0 -4
  61. package/build/library/components/icons/services/CultureNorthIconHover/Icon.d.ts +0 -4
  62. package/build/library/components/icons/services/CultureWestIcon/Icon.d.ts +0 -4
  63. package/build/library/components/icons/services/CultureWestIconHover/Icon.d.ts +0 -4
  64. package/build/library/components/icons/services/DOLSIcon/Icon.d.ts +0 -4
  65. package/build/library/components/icons/services/DOLSIconHover/Icon.d.ts +0 -4
  66. package/build/library/components/icons/services/DemocracyIcon/Icon.d.ts +0 -4
  67. package/build/library/components/icons/services/DemocracyIconHover/Icon.d.ts +0 -4
  68. package/build/library/components/icons/services/EditIcon/Icon.d.ts +0 -4
  69. package/build/library/components/icons/services/EditIconHover/Icon.d.ts +0 -4
  70. package/build/library/components/icons/services/EnvironmentIcon/Icon.d.ts +0 -4
  71. package/build/library/components/icons/services/EnvironmentIconHover/Icon.d.ts +0 -4
  72. package/build/library/components/icons/services/FinanceIcon/Icon.d.ts +0 -4
  73. package/build/library/components/icons/services/FinanceIconHover/Icon.d.ts +0 -4
  74. package/build/library/components/icons/services/FlowerHover/Icon.d.ts +0 -4
  75. package/build/library/components/icons/services/FlyTipHover/Icon.d.ts +0 -4
  76. package/build/library/components/icons/services/FoodWasteHover/Icon.d.ts +0 -4
  77. package/build/library/components/icons/services/GovUKIcon/Icon.d.ts +0 -4
  78. package/build/library/components/icons/services/GovUKIconHover/Icon.d.ts +0 -4
  79. package/build/library/components/icons/services/HighwayHover/Icon.d.ts +0 -4
  80. package/build/library/components/icons/services/HouseMoneyIcon/Icon.d.ts +0 -4
  81. package/build/library/components/icons/services/HouseMoneyIconHover/Icon.d.ts +0 -4
  82. package/build/library/components/icons/services/HousingIcon/Icon.d.ts +0 -4
  83. package/build/library/components/icons/services/HousingIconHover/Icon.d.ts +0 -4
  84. package/build/library/components/icons/services/IndependenceIcon/Icon.d.ts +0 -4
  85. package/build/library/components/icons/services/IndependenceIconHover/Icon.d.ts +0 -4
  86. package/build/library/components/icons/services/LibrariesIcon/Icon.d.ts +0 -4
  87. package/build/library/components/icons/services/LibrariesIconHover/Icon.d.ts +0 -4
  88. package/build/library/components/icons/services/MapPinHover/Icon.d.ts +0 -4
  89. package/build/library/components/icons/services/MissedBinHover/Icon.d.ts +0 -4
  90. package/build/library/components/icons/services/NewIcon/Icon.d.ts +0 -4
  91. package/build/library/components/icons/services/NewIconHover/Icon.d.ts +0 -4
  92. package/build/library/components/icons/services/OccupationalTherapyIcon/Icon.d.ts +0 -4
  93. package/build/library/components/icons/services/OccupationalTherapyIconHover/Icon.d.ts +0 -4
  94. package/build/library/components/icons/services/ParkEventHover/Icon.d.ts +0 -4
  95. package/build/library/components/icons/services/ParkingHover/Icon.d.ts +0 -4
  96. package/build/library/components/icons/services/ParkingTicketHover/Icon.d.ts +0 -4
  97. package/build/library/components/icons/services/PayIcon/Icon.d.ts +0 -4
  98. package/build/library/components/icons/services/PayIconHover/Icon.d.ts +0 -4
  99. package/build/library/components/icons/services/PhonePayIcon/Icon.d.ts +0 -4
  100. package/build/library/components/icons/services/PhonePayIconHover/Icon.d.ts +0 -4
  101. package/build/library/components/icons/services/PlanningIcon/Icon.d.ts +0 -4
  102. package/build/library/components/icons/services/PlanningIconHover/Icon.d.ts +0 -4
  103. package/build/library/components/icons/services/PotholeHover/Icon.d.ts +0 -4
  104. package/build/library/components/icons/services/ProtectIcon/Icon.d.ts +0 -4
  105. package/build/library/components/icons/services/ProtectIconHover/Icon.d.ts +0 -4
  106. package/build/library/components/icons/services/RatePayIcon/Icon.d.ts +0 -4
  107. package/build/library/components/icons/services/RatePayIconHover/Icon.d.ts +0 -4
  108. package/build/library/components/icons/services/ReportHover/Icon.d.ts +0 -4
  109. package/build/library/components/icons/services/RestrictIcon/Icon.d.ts +0 -4
  110. package/build/library/components/icons/services/RestrictIconHover/Icon.d.ts +0 -4
  111. package/build/library/components/icons/services/RoadWorksHover/Icon.d.ts +0 -4
  112. package/build/library/components/icons/services/RoadsIcon/Icon.d.ts +0 -4
  113. package/build/library/components/icons/services/RoadsIconHover/Icon.d.ts +0 -4
  114. package/build/library/components/icons/services/RoyalWebsiteIcon/Icon.d.ts +0 -4
  115. package/build/library/components/icons/services/RoyalWebsiteIconHover/Icon.d.ts +0 -4
  116. package/build/library/components/icons/services/SafetyIcon/Icon.d.ts +0 -4
  117. package/build/library/components/icons/services/SafetyIconHover/Icon.d.ts +0 -4
  118. package/build/library/components/icons/services/SchoolsIcon/Icon.d.ts +0 -4
  119. package/build/library/components/icons/services/SchoolsIconHover/Icon.d.ts +0 -4
  120. package/build/library/components/icons/services/SinglePersonIcon/Icon.d.ts +0 -4
  121. package/build/library/components/icons/services/SinglePersonIconHover/Icon.d.ts +0 -4
  122. package/build/library/components/icons/services/SportsIcon/Icon.d.ts +0 -4
  123. package/build/library/components/icons/services/SportsIconHover/Icon.d.ts +0 -4
  124. package/build/library/components/icons/services/ValuationIcon/Icon.d.ts +0 -4
  125. package/build/library/components/icons/services/ValuationIconHover/Icon.d.ts +0 -4
  126. package/build/library/components/icons/services/WasteChecklistHover/Icon.d.ts +0 -4
  127. package/build/library/components/icons/services/WasteSortingHover/Icon.d.ts +0 -4
  128. package/build/library/contexts/DirectoryFavouritesProvider/DirectoryFavouritesProvider.d.ts +0 -4
  129. package/build/library/contexts/DirectoryFavouritesProvider/DirectoryFavouritesProvider.types.d.ts +0 -14
  130. package/build/library/contexts/DirectoryServiceListProvider/DirectoryServiceListProvider.d.ts +0 -4
  131. package/build/library/contexts/DirectoryServiceListProvider/DirectoryServiceListProvider.types.d.ts +0 -31
  132. package/build/library/pages/PromotionPage/PromotionPageExample.d.ts +0 -3
  133. package/build/library/pages/PromotionPage/PromotionPageExample.storydata.d.ts +0 -20
  134. package/build/library/pages/PromotionPage/PromotionPageExample.types.d.ts +0 -42
  135. package/build/library/structure/HomeUnitarySection/HomeUnitarySection.d.ts +0 -4
  136. package/build/library/structure/HomeUnitarySection/HomeUnitarySection.types.d.ts +0 -22
  137. package/build/library/structure/HomeUnitarySection/assets/map.d.ts +0 -3
@@ -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 },