northants-design-system 0.3.11 → 0.3.13

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 (147) hide show
  1. package/build/index.d.ts +2 -1
  2. package/build/index.esm.js +175 -118
  3. package/build/index.esm.js.map +1 -1
  4. package/build/index.js +174 -116
  5. package/build/index.js.map +1 -1
  6. package/build/index.mjs.js +34249 -0
  7. package/build/index.mjs.js.map +1 -0
  8. package/build/library/components/Map/Map.types.d.ts +5 -0
  9. package/build/library/directory/DirectoryService/DirectoryService.d.ts +1 -0
  10. package/build/library/directory/DirectoryService/DirectoryService.types.d.ts +2 -0
  11. package/build/library/directory/DirectoryServiceList/DirectoryServiceList.types.d.ts +12 -4
  12. package/build/library/slices/CouncilTaxAlphabeticalDirectory/CouncilTaxAlphabeticalDirectory.storydata.d.ts +2 -1
  13. package/build/library/slices/CouncilTaxAlphabeticalDirectory/CouncilTaxAlphabeticalDirectory.types.d.ts +14 -1
  14. package/build/library/slices/InquestSchedule/InquestSchedule.d.ts +7 -0
  15. package/build/library/slices/InquestSchedule/InquestSchedule.storydata.d.ts +2 -0
  16. package/build/library/slices/InquestSchedule/InquestSchedule.types.d.ts +24 -0
  17. package/package.json +1 -1
  18. package/build/icons/flytip.svg +0 -24
  19. package/build/index.css +0 -36
  20. package/build/library/components/CheckboxesInput/CheckboxesInput.d.ts +0 -4
  21. package/build/library/components/CheckboxesInput/CheckboxesInput.storydata.d.ts +0 -3
  22. package/build/library/components/CheckboxesInput/CheckboxesInput.types.d.ts +0 -37
  23. package/build/library/components/CouncilTaxAlphabeticalDirectory/CouncilTaxAlphabeticalDirectory.d.ts +0 -4
  24. package/build/library/components/GoogleMap/GoogleMap.d.ts +0 -4
  25. package/build/library/components/GoogleMap/GoogleMap.types.d.ts +0 -11
  26. package/build/library/components/GoogleMapMarker/GoogleMapMarker.d.ts +0 -4
  27. package/build/library/components/MapMarker/MapMarker.types.d.ts +0 -6
  28. package/build/library/components/PostCodeSearchApollo/PostCodeSearchApollo.d.ts +0 -4
  29. package/build/library/components/PostCodeSearchApollo/PostCodeSearchApollo.types.d.ts +0 -6
  30. package/build/library/components/icons/services/AccessibleParkingHover/Icon.d.ts +0 -4
  31. package/build/library/components/icons/services/AddressChangeIcon/Icon.d.ts +0 -4
  32. package/build/library/components/icons/services/AddressChangeIconHover/Icon.d.ts +0 -4
  33. package/build/library/components/icons/services/AddressIcon/Icon.d.ts +0 -4
  34. package/build/library/components/icons/services/AddressIconHover/Icon.d.ts +0 -4
  35. package/build/library/components/icons/services/AdultsIcon/Icon.d.ts +0 -4
  36. package/build/library/components/icons/services/AdultsIcon/IconHover.d.ts +0 -4
  37. package/build/library/components/icons/services/AdultsIconHover/Icon.d.ts +0 -4
  38. package/build/library/components/icons/services/BenefitsIcon/Icon.d.ts +0 -4
  39. package/build/library/components/icons/services/BenefitsIconHover/Icon.d.ts +0 -4
  40. package/build/library/components/icons/services/BinDayHover/Icon.d.ts +0 -4
  41. package/build/library/components/icons/services/BinsIcon/Icon.d.ts +0 -4
  42. package/build/library/components/icons/services/BinsIconHover/Icon.d.ts +0 -4
  43. package/build/library/components/icons/services/BirthsIcon/Icon.d.ts +0 -4
  44. package/build/library/components/icons/services/BirthsIconHover/Icon.d.ts +0 -4
  45. package/build/library/components/icons/services/BollardHover/Icon.d.ts +0 -4
  46. package/build/library/components/icons/services/BusIcon/Icon.d.ts +0 -4
  47. package/build/library/components/icons/services/BusIconHover/Icon.d.ts +0 -4
  48. package/build/library/components/icons/services/BusPassHover/Icon.d.ts +0 -4
  49. package/build/library/components/icons/services/BusinessIcon/Icon.d.ts +0 -4
  50. package/build/library/components/icons/services/BusinessIconHover/Icon.d.ts +0 -4
  51. package/build/library/components/icons/services/CareersIcon/Icon.d.ts +0 -4
  52. package/build/library/components/icons/services/CareersIconHover/Icon.d.ts +0 -4
  53. package/build/library/components/icons/services/CashIcon/Icon.d.ts +0 -4
  54. package/build/library/components/icons/services/CashIconHover/Icon.d.ts +0 -4
  55. package/build/library/components/icons/services/CharityHover/Icon.d.ts +0 -4
  56. package/build/library/components/icons/services/ChildrenIcon/Icon.d.ts +0 -4
  57. package/build/library/components/icons/services/ChildrenIconHover/Icon.d.ts +0 -4
  58. package/build/library/components/icons/services/CondolenceBookIcon/Icon.d.ts +0 -4
  59. package/build/library/components/icons/services/CondolenceBookIconHover/Icon.d.ts +0 -4
  60. package/build/library/components/icons/services/CookingIcon/Icon.d.ts +0 -4
  61. package/build/library/components/icons/services/CookingIconHover/Icon.d.ts +0 -4
  62. package/build/library/components/icons/services/CouncilIcon/Icon.d.ts +0 -4
  63. package/build/library/components/icons/services/CouncilIconHover/Icon.d.ts +0 -4
  64. package/build/library/components/icons/services/CouncilTaxIcon/Icon.d.ts +0 -4
  65. package/build/library/components/icons/services/CouncilTaxIconHover/Icon.d.ts +0 -4
  66. package/build/library/components/icons/services/CovidIcon/Icon.d.ts +0 -4
  67. package/build/library/components/icons/services/CovidIconHover/Icon.d.ts +0 -4
  68. package/build/library/components/icons/services/CultureIcon/Icon.d.ts +0 -4
  69. package/build/library/components/icons/services/CultureIconHover/Icon.d.ts +0 -4
  70. package/build/library/components/icons/services/CultureNorthIcon/Icon.d.ts +0 -4
  71. package/build/library/components/icons/services/CultureNorthIconHover/Icon.d.ts +0 -4
  72. package/build/library/components/icons/services/CultureWestIcon/Icon.d.ts +0 -4
  73. package/build/library/components/icons/services/CultureWestIconHover/Icon.d.ts +0 -4
  74. package/build/library/components/icons/services/DOLSIcon/Icon.d.ts +0 -4
  75. package/build/library/components/icons/services/DOLSIconHover/Icon.d.ts +0 -4
  76. package/build/library/components/icons/services/DemocracyIcon/Icon.d.ts +0 -4
  77. package/build/library/components/icons/services/DemocracyIconHover/Icon.d.ts +0 -4
  78. package/build/library/components/icons/services/EditIcon/Icon.d.ts +0 -4
  79. package/build/library/components/icons/services/EditIconHover/Icon.d.ts +0 -4
  80. package/build/library/components/icons/services/EnvironmentIcon/Icon.d.ts +0 -4
  81. package/build/library/components/icons/services/EnvironmentIconHover/Icon.d.ts +0 -4
  82. package/build/library/components/icons/services/FinanceIcon/Icon.d.ts +0 -4
  83. package/build/library/components/icons/services/FinanceIconHover/Icon.d.ts +0 -4
  84. package/build/library/components/icons/services/FlowerHover/Icon.d.ts +0 -4
  85. package/build/library/components/icons/services/FlyTipHover/Icon.d.ts +0 -4
  86. package/build/library/components/icons/services/FoodWasteHover/Icon.d.ts +0 -4
  87. package/build/library/components/icons/services/GovUKIcon/Icon.d.ts +0 -4
  88. package/build/library/components/icons/services/GovUKIconHover/Icon.d.ts +0 -4
  89. package/build/library/components/icons/services/HighwayHover/Icon.d.ts +0 -4
  90. package/build/library/components/icons/services/HouseMoneyIcon/Icon.d.ts +0 -4
  91. package/build/library/components/icons/services/HouseMoneyIconHover/Icon.d.ts +0 -4
  92. package/build/library/components/icons/services/HousingIcon/Icon.d.ts +0 -4
  93. package/build/library/components/icons/services/HousingIconHover/Icon.d.ts +0 -4
  94. package/build/library/components/icons/services/IndependenceIcon/Icon.d.ts +0 -4
  95. package/build/library/components/icons/services/IndependenceIconHover/Icon.d.ts +0 -4
  96. package/build/library/components/icons/services/LibrariesIcon/Icon.d.ts +0 -4
  97. package/build/library/components/icons/services/LibrariesIconHover/Icon.d.ts +0 -4
  98. package/build/library/components/icons/services/MapPinHover/Icon.d.ts +0 -4
  99. package/build/library/components/icons/services/MissedBinHover/Icon.d.ts +0 -4
  100. package/build/library/components/icons/services/NewIcon/Icon.d.ts +0 -4
  101. package/build/library/components/icons/services/NewIconHover/Icon.d.ts +0 -4
  102. package/build/library/components/icons/services/OccupationalTherapyIcon/Icon.d.ts +0 -4
  103. package/build/library/components/icons/services/OccupationalTherapyIconHover/Icon.d.ts +0 -4
  104. package/build/library/components/icons/services/ParkEventHover/Icon.d.ts +0 -4
  105. package/build/library/components/icons/services/ParkingHover/Icon.d.ts +0 -4
  106. package/build/library/components/icons/services/ParkingTicketHover/Icon.d.ts +0 -4
  107. package/build/library/components/icons/services/PayIcon/Icon.d.ts +0 -4
  108. package/build/library/components/icons/services/PayIconHover/Icon.d.ts +0 -4
  109. package/build/library/components/icons/services/PhonePayIcon/Icon.d.ts +0 -4
  110. package/build/library/components/icons/services/PhonePayIconHover/Icon.d.ts +0 -4
  111. package/build/library/components/icons/services/PlanningIcon/Icon.d.ts +0 -4
  112. package/build/library/components/icons/services/PlanningIconHover/Icon.d.ts +0 -4
  113. package/build/library/components/icons/services/PotholeHover/Icon.d.ts +0 -4
  114. package/build/library/components/icons/services/ProtectIcon/Icon.d.ts +0 -4
  115. package/build/library/components/icons/services/ProtectIconHover/Icon.d.ts +0 -4
  116. package/build/library/components/icons/services/RatePayIcon/Icon.d.ts +0 -4
  117. package/build/library/components/icons/services/RatePayIconHover/Icon.d.ts +0 -4
  118. package/build/library/components/icons/services/ReportHover/Icon.d.ts +0 -4
  119. package/build/library/components/icons/services/RestrictIcon/Icon.d.ts +0 -4
  120. package/build/library/components/icons/services/RestrictIconHover/Icon.d.ts +0 -4
  121. package/build/library/components/icons/services/RoadWorksHover/Icon.d.ts +0 -4
  122. package/build/library/components/icons/services/RoadsIcon/Icon.d.ts +0 -4
  123. package/build/library/components/icons/services/RoadsIconHover/Icon.d.ts +0 -4
  124. package/build/library/components/icons/services/RoyalWebsiteIcon/Icon.d.ts +0 -4
  125. package/build/library/components/icons/services/RoyalWebsiteIconHover/Icon.d.ts +0 -4
  126. package/build/library/components/icons/services/SafetyIcon/Icon.d.ts +0 -4
  127. package/build/library/components/icons/services/SafetyIconHover/Icon.d.ts +0 -4
  128. package/build/library/components/icons/services/SchoolsIcon/Icon.d.ts +0 -4
  129. package/build/library/components/icons/services/SchoolsIconHover/Icon.d.ts +0 -4
  130. package/build/library/components/icons/services/SinglePersonIcon/Icon.d.ts +0 -4
  131. package/build/library/components/icons/services/SinglePersonIconHover/Icon.d.ts +0 -4
  132. package/build/library/components/icons/services/SportsIcon/Icon.d.ts +0 -4
  133. package/build/library/components/icons/services/SportsIconHover/Icon.d.ts +0 -4
  134. package/build/library/components/icons/services/ValuationIcon/Icon.d.ts +0 -4
  135. package/build/library/components/icons/services/ValuationIconHover/Icon.d.ts +0 -4
  136. package/build/library/components/icons/services/WasteChecklistHover/Icon.d.ts +0 -4
  137. package/build/library/components/icons/services/WasteSortingHover/Icon.d.ts +0 -4
  138. package/build/library/contexts/DirectoryFavouritesProvider/DirectoryFavouritesProvider.d.ts +0 -4
  139. package/build/library/contexts/DirectoryFavouritesProvider/DirectoryFavouritesProvider.types.d.ts +0 -14
  140. package/build/library/contexts/DirectoryServiceListProvider/DirectoryServiceListProvider.d.ts +0 -4
  141. package/build/library/contexts/DirectoryServiceListProvider/DirectoryServiceListProvider.types.d.ts +0 -31
  142. package/build/library/pages/PromotionPage/PromotionPageExample.d.ts +0 -3
  143. package/build/library/pages/PromotionPage/PromotionPageExample.storydata.d.ts +0 -20
  144. package/build/library/pages/PromotionPage/PromotionPageExample.types.d.ts +0 -42
  145. package/build/library/structure/HomeUnitarySection/HomeUnitarySection.d.ts +0 -4
  146. package/build/library/structure/HomeUnitarySection/HomeUnitarySection.types.d.ts +0 -22
  147. package/build/library/structure/HomeUnitarySection/assets/map.d.ts +0 -3
@@ -1,4 +1,4 @@
1
- import React, { Component, cloneElement, useState, useContext, useEffect, useRef } from 'react';
1
+ import React, { Component, cloneElement, useState, useContext, useId, useEffect, useRef } from 'react';
2
2
  import styled, { css, ThemeContext, ThemeProvider, createGlobalStyle } from 'styled-components';
3
3
  import require$$0$1 from 'tty';
4
4
  import require$$2 from 'path';
@@ -148,7 +148,8 @@ const StyledTextInput = styled.input`
148
148
 
149
149
  &:focus {
150
150
  outline: none;
151
- box-shadow: ${(props) => props.theme.theme_vars.colours.focus} 0 0 0 3px;
151
+ box-shadow: ${(props) => props.theme.theme_vars.colours.focus} 0 0 0 2px,
152
+ ${(props) => props.theme.theme_vars.colours.black} 0 0 0 4px;
152
153
  transition: box-shadow 0.3s ease 0s;
153
154
  }
154
155
 
@@ -5787,7 +5788,7 @@ var HeadingWithIcon = function (_a) {
5787
5788
  React.createElement(Heading, { text: text, level: level })));
5788
5789
  };
5789
5790
 
5790
- const Container$W = styled.div`
5791
+ const Container$X = styled.div`
5791
5792
  ${(props) => props.theme.fontStyles};
5792
5793
  display: block;
5793
5794
  border-top: 1px solid ${(props) => props.theme.theme_vars.colours.grey};
@@ -6559,7 +6560,7 @@ var Pagination = function (_a) {
6559
6560
  handleParams(postTo, [{ key: 'page', value: pageNo }]);
6560
6561
  };
6561
6562
  if (numbers.length > 1) {
6562
- return (React.createElement(Container$W, { "data-testid": "Pagination", role: "navigation", "aria-label": "Pagination" },
6563
+ return (React.createElement(Container$X, { "data-testid": "Pagination", role: "navigation", "aria-label": "Pagination" },
6563
6564
  currentPage > 1 && (React.createElement(Previous, { onClick: function () { return buttonClick(currentPage - 1); }, title: "Go back a page" }, "Previous")),
6564
6565
  React.createElement(NumbersContainer, null, numbers.map(function (v, i) { return (React.createElement(NumberContainer, { key: i },
6565
6566
  v === '...' && (React.createElement(Ellipsis, null, "...")),
@@ -6571,7 +6572,7 @@ var Pagination = function (_a) {
6571
6572
  return null;
6572
6573
  };
6573
6574
 
6574
- const Container$V = styled.div`
6575
+ const Container$W = styled.div`
6575
6576
  ${(props) => props.theme.fontStyles};
6576
6577
  margin-bottom: 30px;
6577
6578
  `;
@@ -6742,7 +6743,7 @@ var CheckboxListFilter = function (_a) {
6742
6743
  handleParams('news', [{ key: NewsArticleFilterFields.articleType.queryParamKey, value: articleTypes }], ['page']);
6743
6744
  };
6744
6745
  var backupLabel = Math.random().toString(36).substring(7);
6745
- return (React.createElement(Container$V, { "data-testid": "CheckboxListFilter" },
6746
+ return (React.createElement(Container$W, { "data-testid": "CheckboxListFilter" },
6746
6747
  React.createElement(Fieldset, { "aria-describedby": hintId },
6747
6748
  React.createElement(Legend, { labelHidden: labelHidden, "data-testid": "CheckboxListFilterLegend" }, label),
6748
6749
  React.createElement(Hint, { id: hintId, hintHidden: hintHidden, "data-testid": "CheckboxListFilterHint" }, hint),
@@ -6751,52 +6752,52 @@ var CheckboxListFilter = function (_a) {
6751
6752
  React.createElement(CheckboxLabel, { isChecked: option.checked, htmlFor: option.value }, option.title))); })))));
6752
6753
  };
6753
6754
 
6754
- const Container$U = styled.div`
6755
- ${props => props.theme.fontStyles};
6755
+ const Container$V = styled.div`
6756
+ ${(props) => props.theme.fontStyles};
6756
6757
  `;
6757
6758
 
6758
- const hideLabel = props => {
6759
- if(props.hideLabel === true) {
6759
+ const hideLabel = (props) => {
6760
+ if (props.hideLabel === true) {
6760
6761
  return VisuallyHidden$2;
6761
6762
  }
6762
6763
  };
6763
6764
 
6764
-
6765
6765
  const Label$2 = styled.label`
6766
- display: block;
6767
- margin-bottom: 5px;
6768
- ${hideLabel}
6766
+ display: block;
6767
+ margin-bottom: 5px;
6768
+ ${hideLabel}
6769
6769
  `;
6770
6770
 
6771
6771
  const Select = styled.select`
6772
-
6773
- ${props => props.theme.fontStyles};
6774
- border-radius: ${props => props.theme.theme_vars.border_radius};
6772
+ ${(props) => props.theme.fontStyles};
6773
+ border-radius: ${(props) => props.theme.theme_vars.border_radius};
6775
6774
  box-sizing: border-box;
6776
6775
  max-width: 100%;
6777
6776
  height: 40px;
6778
6777
  height: 2.5rem;
6779
6778
  padding: 5px;
6780
- border: 2px solid ${props => props.theme.theme_vars.colours.black};
6779
+ border: 2px solid ${(props) => props.theme.theme_vars.colours.black};
6781
6780
 
6782
6781
  &:focus {
6783
- outline: none;
6784
- box-shadow: ${props => props.theme.theme_vars.colours.focus} 0 0 0 3px;
6782
+ outline: 2px transparent solid;
6783
+ box-shadow: ${(props) => props.theme.theme_vars.colours.focus} 0 0 0 2px,
6784
+ ${(props) => props.theme.theme_vars.colours.black} 0 0 0 4px;
6785
6785
  transition: box-shadow 0.3s ease 0s;
6786
6786
  }
6787
6787
  `;
6788
6788
 
6789
6789
  const Option = styled.option`
6790
- :active, :checked,:focus::-ms-value {
6790
+ :active,
6791
+ :checked,
6792
+ :focus::-ms-value {
6791
6793
  color: #fff;
6792
- background-color: #1d70b8
6794
+ background-color: #1d70b8;
6793
6795
  }
6794
-
6795
6796
  `;
6796
6797
 
6797
6798
  var DropDownSelect = function (_a) {
6798
6799
  var id = _a.id, label = _a.label, options = _a.options, onChange = _a.onChange, selected = _a.selected, _b = _a.hideLabel, hideLabel = _b === void 0 ? false : _b;
6799
- return (React.createElement(Container$U, null,
6800
+ return (React.createElement(Container$V, null,
6800
6801
  React.createElement(Label$2, { htmlFor: id, hideLabel: hideLabel }, label),
6801
6802
  React.createElement(Select, { id: id, name: id, onChange: onChange && onChange, defaultValue: selected && selected }, options.map(function (option, i) {
6802
6803
  return React.createElement(Option, { key: i, value: option.value }, option.title);
@@ -6913,7 +6914,7 @@ const PromotedLink$1 = styled.a`
6913
6914
  ${oneColStyles}
6914
6915
  `;
6915
6916
 
6916
- const Container$T = styled.div`
6917
+ const Container$U = styled.div`
6917
6918
  box-sizing: border-box;
6918
6919
  display: flex;
6919
6920
  flex-wrap: wrap;
@@ -6936,7 +6937,7 @@ const Container$T = styled.div`
6936
6937
 
6937
6938
  var Row$1 = function (_a) {
6938
6939
  var _b = _a.hasBorder, hasBorder = _b === void 0 ? false : _b, _c = _a.isList, isList = _c === void 0 ? false : _c, _d = _a.hasWrap, hasWrap = _d === void 0 ? true : _d, children = _a.children;
6939
- return (React.createElement(Container$T, { "data-testid": "Row", hasBorder: hasBorder, hasWrap: hasWrap, as: isList ? 'ul' : 'div' }, children));
6940
+ return (React.createElement(Container$U, { "data-testid": "Row", hasBorder: hasBorder, hasWrap: hasWrap, as: isList ? 'ul' : 'div' }, children));
6940
6941
  };
6941
6942
 
6942
6943
  const calculateWidth = (size) => {
@@ -6986,7 +6987,7 @@ const widths = (props) => {
6986
6987
  `;
6987
6988
  };
6988
6989
 
6989
- const Container$S = styled.div`
6990
+ const Container$T = styled.div`
6990
6991
  box-sizing: border-box;
6991
6992
  display: block;
6992
6993
  padding: ${(props) => (props.hasPadding ? props.theme.theme_vars.spacingSizes.small : `0`)};
@@ -6997,7 +6998,7 @@ const Container$S = styled.div`
6997
6998
 
6998
6999
  var Column = function (_a) {
6999
7000
  var _b = _a.small, small = _b === void 0 ? 'full' : _b, _c = _a.medium, medium = _c === void 0 ? 'one-half' : _c, _d = _a.large, large = _d === void 0 ? 'one-third' : _d, _e = _a.hasPadding, hasPadding = _e === void 0 ? true : _e, _f = _a.hasBorder, hasBorder = _f === void 0 ? false : _f, _g = _a.isList, isList = _g === void 0 ? false : _g, children = _a.children;
7000
- return (React.createElement(Container$S, { "data-testid": "Column", small: small, medium: medium, large: large, hasPadding: hasPadding, hasBorder: hasBorder, as: isList ? 'li' : 'div' }, children));
7001
+ return (React.createElement(Container$T, { "data-testid": "Column", small: small, medium: medium, large: large, hasPadding: hasPadding, hasBorder: hasBorder, as: isList ? 'li' : 'div' }, children));
7001
7002
  };
7002
7003
 
7003
7004
  var PromotedLinks = function (_a) {
@@ -7025,7 +7026,7 @@ var TextInput = function (_a) {
7025
7026
 
7026
7027
  // Accordion
7027
7028
 
7028
- const Container$R = styled.div`
7029
+ const Container$S = styled.div`
7029
7030
  ${(props) => props.theme.fontStyles}
7030
7031
  margin-bottom: 20px;
7031
7032
  border-bottom: 1px solid ${(props) => props.theme.theme_vars.colours.grey};
@@ -7247,19 +7248,12 @@ const SectionContent = styled.div`
7247
7248
  }
7248
7249
  `;
7249
7250
 
7250
- const uniqueID = () => {
7251
- // Math.random should be unique because of its seeding algorithm.
7252
- // Convert it to base 36 (numbers + letters), and grab the first 9 characters
7253
- // after the decimal.
7254
- return '_' + Math.random().toString(36).substr(2, 9);
7255
- };
7256
-
7257
7251
  var AccordionSection = function (_a) {
7258
7252
  var title = _a.title, content = _a.content, summary = _a.summary, isExpanded = _a.isExpanded, accordionSectionId = _a.accordionSectionId, onToggle = _a.onToggle, _b = _a.isFilter, isFilter = _b === void 0 ? false : _b, withReadMore = _a.withReadMore, _c = _a.sectionId, sectionId = _c === void 0 ? false : _c;
7259
7253
  var onSectionToggle = function () {
7260
7254
  return isExpanded === true ? onToggle(accordionSectionId, false) : onToggle(accordionSectionId, true);
7261
7255
  };
7262
- var thisSectionId = sectionId === false ? "accordion_section".concat(uniqueID()) : sectionId;
7256
+ var thisSectionId = sectionId === false ? "accordion_section".concat(useId()) : sectionId;
7263
7257
  return (React.createElement(Section, { id: thisSectionId, className: isExpanded && 'accordion__section--expanded' },
7264
7258
  React.createElement(SectionHeader, { onClick: onSectionToggle },
7265
7259
  React.createElement(SectionHeading, { as: isFilter ? 'h3' : 'h2' },
@@ -7273,6 +7267,13 @@ var AccordionSection = function (_a) {
7273
7267
  isExpanded && withReadMore && (React.createElement(ShowLessButton, { onClick: onSectionToggle }, "Show less")))));
7274
7268
  };
7275
7269
 
7270
+ const uniqueID = () => {
7271
+ // Math.random should be unique because of its seeding algorithm.
7272
+ // Convert it to base 36 (numbers + letters), and grab the first 9 characters
7273
+ // after the decimal.
7274
+ return '_' + Math.random().toString(36).substr(2, 9);
7275
+ };
7276
+
7276
7277
  var Accordion = function (_a) {
7277
7278
  var sections = _a.sections, _b = _a.isFilter, isFilter = _b === void 0 ? false : _b, _c = _a.withReadMore, withReadMore = _c === void 0 ? false : _c;
7278
7279
  sections.map(function (section, i) {
@@ -7307,7 +7308,7 @@ var Accordion = function (_a) {
7307
7308
  setAccordionStates(newStatus);
7308
7309
  };
7309
7310
  var accordionId = "accordion".concat(uniqueID());
7310
- return (React.createElement(Container$R, { "data-testid": "Accordion", id: accordionId },
7311
+ return (React.createElement(Container$S, { "data-testid": "Accordion", id: accordionId },
7311
7312
  showControls && sections.length > 1 && (React.createElement(AccordionControls, null,
7312
7313
  React.createElement(OpenAllButton, { onClick: toggleAll, type: "button", "aria-expanded": !openAll },
7313
7314
  openAll ? 'Open all' : 'Close all',
@@ -7358,7 +7359,7 @@ var BlockQuote = function (_a) {
7358
7359
  citation && React.createElement(Citation, null, citation)));
7359
7360
  };
7360
7361
 
7361
- const Container$Q = styled.div`
7362
+ const Container$R = styled.div`
7362
7363
  margin-bottom: 30px;
7363
7364
  display: block;
7364
7365
 
@@ -7373,11 +7374,11 @@ const Container$Q = styled.div`
7373
7374
  */
7374
7375
  var CallToAction = function (_a) {
7375
7376
  var primary = _a.primary; _a.size; var text = _a.text, url = _a.url, isExternal = _a.isExternal, isDisabled = _a.isDisabled; __rest(_a, ["primary", "size", "text", "url", "isExternal", "isDisabled"]);
7376
- return (React.createElement(Container$Q, null,
7377
+ return (React.createElement(Container$R, null,
7377
7378
  React.createElement(Button$2, { primary: primary, size: "large", text: text, url: url, isExternal: isExternal, isDisabled: isDisabled })));
7378
7379
  };
7379
7380
 
7380
- const Container$P = styled.div`
7381
+ const Container$Q = styled.div`
7381
7382
  display: block;
7382
7383
  ${(props) => props.theme.fontStyles}
7383
7384
  `;
@@ -7513,17 +7514,17 @@ var CouncilTaxAlphabeticalDirectory = function (_a) {
7513
7514
  var formatParishData = function (data) {
7514
7515
  var sortData = data.reduce(function (r, e) {
7515
7516
  // get first letter of name of current element
7516
- var group = e.official_parish[0];
7517
+ var group = e.parish[0];
7517
7518
  if (!r[group]) {
7518
7519
  // there is no property in accumulator with this letter so create it
7519
7520
  r[group] = {
7520
7521
  group: group,
7521
- children: [{ title: trimParishName(e.official_parish), values: e.bands }],
7522
+ children: [{ title: trimParishName(e.parish), values: e.bands }],
7522
7523
  };
7523
7524
  }
7524
7525
  else {
7525
7526
  // push current element to children array for that letter
7526
- r[group].children.push({ title: trimParishName(e.official_parish), values: e.bands });
7527
+ r[group].children.push({ title: trimParishName(e.parish), values: e.bands });
7527
7528
  }
7528
7529
  return r;
7529
7530
  }, {});
@@ -7553,7 +7554,7 @@ var CouncilTaxAlphabeticalDirectory = function (_a) {
7553
7554
  });
7554
7555
  return letterData;
7555
7556
  });
7556
- return (React.createElement(Container$P, { "data-testid": "AlphabeticalDirectory", ref: directoryRef },
7557
+ return (React.createElement(Container$Q, { "data-testid": "AlphabeticalDirectory", ref: directoryRef },
7557
7558
  React.createElement(React.Fragment, null,
7558
7559
  parishes.length === 0 && (React.createElement(ErrorText, null, "There was an issue fetching the parish data. Please try again later.")),
7559
7560
  parish === null ? (React.createElement(React.Fragment, null, sortedData.map(function (letter, i) { return (React.createElement(Row, { key: i },
@@ -7579,9 +7580,9 @@ var CouncilTaxAlphabeticalDirectory = function (_a) {
7579
7580
  React.createElement("td", null, Number(parish.values[band]).toLocaleString('en-GB', { style: 'currency', currency: 'GBP' })))); })))))))));
7580
7581
  };
7581
7582
 
7582
- const Container$O = styled.div``;
7583
+ const Container$P = styled.div``;
7583
7584
 
7584
- const Container$N = styled.div`
7585
+ const Container$O = styled.div`
7585
7586
  display: flex;
7586
7587
  flex-direction: column;
7587
7588
  justify-content: flex-start;
@@ -17699,7 +17700,7 @@ function markDirtyUp(node) {
17699
17700
  }
17700
17701
  }
17701
17702
 
17702
- class Container$M extends Node$1 {
17703
+ class Container$N extends Node$1 {
17703
17704
  push(child) {
17704
17705
  child.parent = this;
17705
17706
  this.proxyOf.nodes.push(child);
@@ -17992,7 +17993,7 @@ class Container$M extends Node$1 {
17992
17993
 
17993
17994
  let processed = nodes.map(i => {
17994
17995
  /* c8 ignore next */
17995
- if (!i[my$1]) Container$M.rebuild(i);
17996
+ if (!i[my$1]) Container$N.rebuild(i);
17996
17997
  i = i.proxyOf;
17997
17998
  if (i.parent) i.parent.removeChild(i);
17998
17999
  if (i[isClean$1]) markDirtyUp(i);
@@ -18070,27 +18071,27 @@ class Container$M extends Node$1 {
18070
18071
  }
18071
18072
  }
18072
18073
 
18073
- Container$M.registerParse = dependant => {
18074
+ Container$N.registerParse = dependant => {
18074
18075
  parse$4 = dependant;
18075
18076
  };
18076
18077
 
18077
- Container$M.registerRule = dependant => {
18078
+ Container$N.registerRule = dependant => {
18078
18079
  Rule$4 = dependant;
18079
18080
  };
18080
18081
 
18081
- Container$M.registerAtRule = dependant => {
18082
+ Container$N.registerAtRule = dependant => {
18082
18083
  AtRule$4 = dependant;
18083
18084
  };
18084
18085
 
18085
- Container$M.registerRoot = dependant => {
18086
+ Container$N.registerRoot = dependant => {
18086
18087
  Root$6 = dependant;
18087
18088
  };
18088
18089
 
18089
- var container = Container$M;
18090
- Container$M.default = Container$M;
18090
+ var container = Container$N;
18091
+ Container$N.default = Container$N;
18091
18092
 
18092
18093
  /* c8 ignore start */
18093
- Container$M.rebuild = node => {
18094
+ Container$N.rebuild = node => {
18094
18095
  if (node.type === 'atrule') {
18095
18096
  Object.setPrototypeOf(node, AtRule$4.prototype);
18096
18097
  } else if (node.type === 'rule') {
@@ -18107,16 +18108,16 @@ Container$M.rebuild = node => {
18107
18108
 
18108
18109
  if (node.nodes) {
18109
18110
  node.nodes.forEach(child => {
18110
- Container$M.rebuild(child);
18111
+ Container$N.rebuild(child);
18111
18112
  });
18112
18113
  }
18113
18114
  };
18114
18115
 
18115
- let Container$L = container;
18116
+ let Container$M = container;
18116
18117
 
18117
18118
  let LazyResult$4, Processor$3;
18118
18119
 
18119
- class Document$3 extends Container$L {
18120
+ class Document$3 extends Container$M {
18120
18121
  constructor(defaults) {
18121
18122
  // type needs to be passed to super, otherwise child roots won't be normalized correctly
18122
18123
  super({ type: 'document', ...defaults });
@@ -18234,9 +18235,9 @@ class Result$4 {
18234
18235
  var result = Result$4;
18235
18236
  Result$4.default = Result$4;
18236
18237
 
18237
- let Container$K = container;
18238
+ let Container$L = container;
18238
18239
 
18239
- class AtRule$3 extends Container$K {
18240
+ class AtRule$3 extends Container$L {
18240
18241
  constructor(defaults) {
18241
18242
  super(defaults);
18242
18243
  this.type = 'atrule';
@@ -18256,13 +18257,13 @@ class AtRule$3 extends Container$K {
18256
18257
  var atRule = AtRule$3;
18257
18258
  AtRule$3.default = AtRule$3;
18258
18259
 
18259
- Container$K.registerAtRule(AtRule$3);
18260
+ Container$L.registerAtRule(AtRule$3);
18260
18261
 
18261
- let Container$J = container;
18262
+ let Container$K = container;
18262
18263
 
18263
18264
  let LazyResult$3, Processor$2;
18264
18265
 
18265
- class Root$5 extends Container$J {
18266
+ class Root$5 extends Container$K {
18266
18267
  constructor(defaults) {
18267
18268
  super(defaults);
18268
18269
  this.type = 'root';
@@ -18316,7 +18317,7 @@ Root$5.registerProcessor = dependant => {
18316
18317
  var root = Root$5;
18317
18318
  Root$5.default = Root$5;
18318
18319
 
18319
- Container$J.registerRoot(Root$5);
18320
+ Container$K.registerRoot(Root$5);
18320
18321
 
18321
18322
  let list$2 = {
18322
18323
  split(string, separators, last) {
@@ -18375,10 +18376,10 @@ let list$2 = {
18375
18376
  var list_1 = list$2;
18376
18377
  list$2.default = list$2;
18377
18378
 
18378
- let Container$I = container;
18379
+ let Container$J = container;
18379
18380
  let list$1 = list_1;
18380
18381
 
18381
- class Rule$3 extends Container$I {
18382
+ class Rule$3 extends Container$J {
18382
18383
  constructor(defaults) {
18383
18384
  super(defaults);
18384
18385
  this.type = 'rule';
@@ -18399,7 +18400,7 @@ class Rule$3 extends Container$I {
18399
18400
  var rule = Rule$3;
18400
18401
  Rule$3.default = Rule$3;
18401
18402
 
18402
- Container$I.registerRule(Rule$3);
18403
+ Container$J.registerRule(Rule$3);
18403
18404
 
18404
18405
  let Declaration$2 = declaration;
18405
18406
  let tokenizer = tokenize;
@@ -19003,7 +19004,7 @@ class Parser$1 {
19003
19004
 
19004
19005
  var parser = Parser$1;
19005
19006
 
19006
- let Container$H = container;
19007
+ let Container$I = container;
19007
19008
  let Parser = parser;
19008
19009
  let Input$3 = input;
19009
19010
 
@@ -19042,12 +19043,12 @@ function parse$3(css, opts) {
19042
19043
  var parse_1 = parse$3;
19043
19044
  parse$3.default = parse$3;
19044
19045
 
19045
- Container$H.registerParse(parse$3);
19046
+ Container$I.registerParse(parse$3);
19046
19047
 
19047
19048
  let { isClean, my } = symbols;
19048
19049
  let MapGenerator$1 = mapGenerator;
19049
19050
  let stringify$2 = stringify_1;
19050
- let Container$G = container;
19051
+ let Container$H = container;
19051
19052
  let Document$2 = document$1;
19052
19053
  let warnOnce$1 = warnOnce$2;
19053
19054
  let Result$3 = result;
@@ -19182,7 +19183,7 @@ class LazyResult$2 {
19182
19183
 
19183
19184
  if (root && !root[my]) {
19184
19185
  /* c8 ignore next 2 */
19185
- Container$G.rebuild(root);
19186
+ Container$H.rebuild(root);
19186
19187
  }
19187
19188
  }
19188
19189
 
@@ -19849,7 +19850,7 @@ fromJSON$1.default = fromJSON$1;
19849
19850
  let CssSyntaxError = cssSyntaxError;
19850
19851
  let Declaration = declaration;
19851
19852
  let LazyResult = lazyResult;
19852
- let Container$F = container;
19853
+ let Container$G = container;
19853
19854
  let Processor = processor;
19854
19855
  let stringify = stringify_1;
19855
19856
  let fromJSON = fromJSON_1;
@@ -19929,7 +19930,7 @@ postcss.document = defaults => new Document(defaults);
19929
19930
 
19930
19931
  postcss.CssSyntaxError = CssSyntaxError;
19931
19932
  postcss.Declaration = Declaration;
19932
- postcss.Container = Container$F;
19933
+ postcss.Container = Container$G;
19933
19934
  postcss.Processor = Processor;
19934
19935
  postcss.Document = Document;
19935
19936
  postcss.Comment = Comment;
@@ -20798,7 +20799,7 @@ var sanitizeHtml$1 = sanitizeHtml_1;
20798
20799
  var Card = function (_a) {
20799
20800
  var header = _a.header, content = _a.content, footerLink = _a.footerLink, imageLarge = _a.imageLarge, imageSmall = _a.imageSmall, imageAltText = _a.imageAltText;
20800
20801
  var showContent = content || header;
20801
- return (React.createElement(Container$N, { "data-testid": "Card" },
20802
+ return (React.createElement(Container$O, { "data-testid": "Card" },
20802
20803
  imageLarge && imageSmall && (React.createElement(React.Fragment, null, footerLink ? (React.createElement(ImageLink$1, { href: footerLink.url },
20803
20804
  React.createElement(Image$4, { src: imageLarge, alt: imageAltText, srcSet: "".concat(imageSmall, " 400w, ").concat(imageLarge, " 800w"), sizes: "(max-width: 550px) 400px, 800px", loading: "lazy" }))) : (React.createElement(Image$4, { src: imageLarge, alt: imageAltText, srcSet: "".concat(imageSmall, " 400w, ").concat(imageLarge, " 800w"), sizes: "(max-width: 550px) 400px, 800px", loading: "lazy" })))),
20804
20805
  showContent && (React.createElement(Content$4, null,
@@ -20814,12 +20815,12 @@ var Card = function (_a) {
20814
20815
  */
20815
20816
  var Cards = function (_a) {
20816
20817
  var cards = _a.cards;
20817
- return (React.createElement(Container$O, { "data-testid": "Cards" },
20818
+ return (React.createElement(Container$P, { "data-testid": "Cards" },
20818
20819
  React.createElement(Row$1, null, cards.map(function (card, index) { return (React.createElement(Column, { small: "full", medium: "one-half", large: "one-third", key: index },
20819
20820
  React.createElement(Card, __assign$2({}, card)))); }))));
20820
20821
  };
20821
20822
 
20822
- const Container$E = styled.div`
20823
+ const Container$F = styled.div`
20823
20824
  margin: 25px 0;
20824
20825
  `;
20825
20826
 
@@ -20888,10 +20889,11 @@ const FileDetails = styled.div`
20888
20889
  max-width: calc(100% - 45px);
20889
20890
  transition: transform 0.3s;
20890
20891
  `;
20891
- const Title$7 = styled.span`
20892
+ const Title$7 = styled.p`
20892
20893
  display: block;
20893
20894
  color: ${(props) => props.theme.theme_vars.colours.action};
20894
20895
  font-weight: 700;
20896
+ margin-bottom: 0 !important;
20895
20897
  `;
20896
20898
  const Type = styled.span`
20897
20899
  color: ${(props) => props.theme.theme_vars.colours.black};
@@ -20936,7 +20938,7 @@ var FileDownload = function (_a) {
20936
20938
 
20937
20939
  var DownloadableFiles = function (_a) {
20938
20940
  var files = _a.files;
20939
- return (React.createElement(Container$E, { "data-testid": "DownloadableFiles" }, files.length > 0 ?
20941
+ return (React.createElement(Container$F, { "data-testid": "DownloadableFiles" }, files.length > 0 ?
20940
20942
  files.map(function (file) { return React.createElement(FileDownload, __assign$2({ key: file.title }, file)); })
20941
20943
  :
20942
20944
  React.createElement("i", null, "No file to show")));
@@ -21072,7 +21074,7 @@ const wereCookiesAccepted = (cookiesAcceptedOverride) => {
21072
21074
  return false;
21073
21075
  };
21074
21076
 
21075
- const Container$D = styled.div`
21077
+ const Container$E = styled.div`
21076
21078
  border: solid 4px;
21077
21079
  border-radius: ${(props) => props.theme.theme_vars.border_radius};
21078
21080
  border-color: ${(props) =>
@@ -21126,7 +21128,7 @@ const InnerContainer$2 = styled.div`
21126
21128
  */
21127
21129
  var AlertBannerService = function (_a) {
21128
21130
  var title = _a.title, _b = _a.hasTopSpacing, hasTopSpacing = _b === void 0 ? false : _b, _c = _a.alertType, alertType = _c === void 0 ? 'alert' : _c, children = _a.children;
21129
- return (React.createElement(Container$D, { alertType: alertType, "data-testid": "AlertBannerService", hasTopSpacing: hasTopSpacing },
21131
+ return (React.createElement(Container$E, { alertType: alertType, "data-testid": "AlertBannerService", hasTopSpacing: hasTopSpacing },
21130
21132
  React.createElement(InnerContainer$2, { "data-testid": "AlertBannerServiceInner" },
21131
21133
  (title === null || title === void 0 ? void 0 : title.trim()) && React.createElement(Heading, { text: title }),
21132
21134
  children)));
@@ -21173,7 +21175,7 @@ var GoogleMap = function (_a) {
21173
21175
  React.createElement(MapLink, { href: link_url }, link_title ? link_title : 'Google Maps link')))));
21174
21176
  };
21175
21177
 
21176
- const Container$C = styled.figure`
21178
+ const Container$D = styled.figure`
21177
21179
  display: block;
21178
21180
  background: ${(props) =>
21179
21181
  props.theme.cardinal_name === 'north'
@@ -21815,7 +21817,7 @@ var LazyImage = /*@__PURE__*/getDefaultExportFromCjs(lib);
21815
21817
  */
21816
21818
  var Image$2 = function (_a) {
21817
21819
  var imageSmall = _a.imageSmall, imageLarge = _a.imageLarge, imageAltText = _a.imageAltText, _b = _a.ratio, ratio = _b === void 0 ? '4by3' : _b, caption = _a.caption, wrapText = _a.wrapText;
21818
- return (React.createElement(Container$C, { "data-testid": "Image", wrapText: wrapText },
21820
+ return (React.createElement(Container$D, { "data-testid": "Image", wrapText: wrapText },
21819
21821
  React.createElement(ImageContainer$4, { "data-testid": "ImageContainer", ratio: ratio },
21820
21822
  React.createElement(LazyImage, { placeholder: imageSmall, src: imageLarge, visibilitySensorProps: {
21821
21823
  partialVisibility: true,
@@ -21823,7 +21825,7 @@ var Image$2 = function (_a) {
21823
21825
  (caption === null || caption === void 0 ? void 0 : caption.trim()) && React.createElement(Caption, null, caption)));
21824
21826
  };
21825
21827
 
21826
- const Container$B = styled.div`
21828
+ const Container$C = styled.div`
21827
21829
  display: block;
21828
21830
  `;
21829
21831
 
@@ -21844,7 +21846,7 @@ const Content$3 = styled.div`
21844
21846
  */
21845
21847
  var ImageAndText = function (_a) {
21846
21848
  var heading = _a.heading, textContent = _a.textContent, image = _a.image;
21847
- return (React.createElement(Container$B, { "data-testid": "ImageAndText" },
21849
+ return (React.createElement(Container$C, { "data-testid": "ImageAndText" },
21848
21850
  React.createElement(Row$1, null,
21849
21851
  heading && (React.createElement(Column, { small: "full", medium: "full", large: "full" },
21850
21852
  React.createElement(HeadingContainer, null,
@@ -21857,6 +21859,43 @@ var ImageAndText = function (_a) {
21857
21859
  React.createElement(Content$3, { dangerouslySetInnerHTML: { __html: sanitizeHtml$1(textContent) } }))))));
21858
21860
  };
21859
21861
 
21862
+ const Container$B = styled.div`
21863
+ display: block;
21864
+ `;
21865
+
21866
+ /**
21867
+ * A table displaying a schedule of inquests
21868
+ */
21869
+ var InquestSchedule = function (_a) {
21870
+ var caseAppointments = _a.caseAppointments, title = _a.title, _b = _a.error, error = _b === void 0 ? false : _b;
21871
+ return (React.createElement(Container$B, { "data-testid": "InquestSchedule" },
21872
+ React.createElement("div", { className: "table-container" },
21873
+ React.createElement("table", null,
21874
+ React.createElement("caption", null, title),
21875
+ React.createElement("thead", null,
21876
+ React.createElement("tr", null,
21877
+ React.createElement("th", null, "Name"),
21878
+ React.createElement("th", null, "Age"),
21879
+ React.createElement("th", null, "Place of death"),
21880
+ React.createElement("th", null, "Date of death"),
21881
+ React.createElement("th", null, "Name of coroner"),
21882
+ React.createElement("th", null, "Location"),
21883
+ React.createElement("th", null, "Date and time"))),
21884
+ React.createElement("tbody", null,
21885
+ caseAppointments.map(function (item, index) { return (React.createElement("tr", { key: index },
21886
+ React.createElement("td", null, item.fullName),
21887
+ React.createElement("td", null, item.age),
21888
+ React.createElement("td", null, item.placeOfDeath),
21889
+ React.createElement("td", null, new Date(item.dateTimeOfDeath).toLocaleString('en-GB')),
21890
+ React.createElement("td", null, item.coroner),
21891
+ React.createElement("td", null, item.courtroomFullAddress),
21892
+ React.createElement("td", null, new Date(item.startDateTime).toLocaleString('en-GB')))); }),
21893
+ caseAppointments.length === 0 && (React.createElement("tr", null,
21894
+ React.createElement("td", { colSpan: 7 },
21895
+ React.createElement("p", null, "We can't find any results at the moment."),
21896
+ error ? (React.createElement("p", null, " The information is currently unavailable.")) : (React.createElement("p", null, "There are no inquests scheduled for next month."))))))))));
21897
+ };
21898
+
21860
21899
  const Container$A = styled.div`
21861
21900
  ${(props) => props.theme.fontStyles};
21862
21901
  overflow: hidden;
@@ -22278,8 +22317,8 @@ var Input = function (_a) {
22278
22317
 
22279
22318
  var CustomSearch = function (_a) {
22280
22319
  var method = _a.method, path = _a.path, label = _a.label, _b = _a.hasHiddenLabel, hasHiddenLabel = _b === void 0 ? true : _b, fieldName = _a.fieldName, placeholder = _a.placeholder, searchText = _a.searchText, id = _a.id;
22281
- if (id === null) {
22282
- id = uniqueID();
22320
+ if (!id) {
22321
+ id = useId();
22283
22322
  }
22284
22323
  return (React.createElement(Container$y, { "data-testid": "CustomSearch" },
22285
22324
  React.createElement("form", { method: method, action: path, "aria-label": label },
@@ -22357,6 +22396,7 @@ const VideoLink = styled.a`
22357
22396
  var Video = function (_a) {
22358
22397
  var video_id = _a.video_id, provider = _a.provider, description = _a.description, allowCookies = _a.allowCookies; __rest(_a, ["video_id", "provider", "description", "allowCookies"]);
22359
22398
  var cookiesAccepted = wereCookiesAccepted(allowCookies);
22399
+ var _b = useState(false), notServer = _b[0], setNotServer = _b[1];
22360
22400
  var watchLink;
22361
22401
  var embedLink;
22362
22402
  var defineLinks = function () {
@@ -22370,10 +22410,11 @@ var Video = function (_a) {
22370
22410
  }
22371
22411
  };
22372
22412
  defineLinks();
22373
- return (React.createElement(React.Fragment, null,
22374
- cookiesAccepted && (React.createElement(VideoContainer, { "data-testid": "Video" },
22375
- React.createElement("iframe", { src: embedLink, title: description, allow: "accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; fullscreen;", "data-testid": "VideoIframe" }))),
22376
- !cookiesAccepted && (React.createElement(VideoLink, { href: watchLink, title: description, "data-testid": "VideoLink" }, description))));
22413
+ useEffect(function () {
22414
+ setNotServer(true);
22415
+ }, []);
22416
+ return (React.createElement(React.Fragment, null, cookiesAccepted && notServer ? (React.createElement(VideoContainer, { "data-testid": "Video" },
22417
+ React.createElement("iframe", { src: embedLink, title: description, allow: "accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; fullscreen;", "data-testid": "VideoIframe" }))) : (React.createElement(VideoLink, { href: watchLink, title: description, "data-testid": "VideoLink" }, description))));
22377
22418
  };
22378
22419
 
22379
22420
  const WarningText$1 = styled.div`
@@ -22678,10 +22719,15 @@ var AlertBanner = function (_a) {
22678
22719
  var themeContext = useContext(ThemeContext);
22679
22720
  var elementRef = useRef(null);
22680
22721
  var _c = useLocalStorage$1('alert_' + uid, true), showAlert = _c[0], setShowAlert = _c[1];
22722
+ var _d = useState(false), notServer = _d[0], setNotServer = _d[1];
22681
22723
  useEffect(function () {
22682
22724
  var _a;
22683
22725
  (_a = elementRef === null || elementRef === void 0 ? void 0 : elementRef.current) === null || _a === void 0 ? void 0 : _a.addEventListener('click', embeddedLinkCLickHandler);
22684
22726
  }, [elementRef]);
22727
+ /* Stop flash of banner on page load when previously dismissed */
22728
+ useEffect(function () {
22729
+ setNotServer(true);
22730
+ }, []);
22685
22731
  /* A click on any link within the alert text dismisses the banner too */
22686
22732
  var embeddedLinkCLickHandler = function (event) {
22687
22733
  var _a;
@@ -22692,8 +22738,6 @@ var AlertBanner = function (_a) {
22692
22738
  var hideClickHandler = function () {
22693
22739
  setShowAlert(false);
22694
22740
  };
22695
- /* Stop flash of banner on page load when previously dismissed */
22696
- var notServer = typeof window !== 'undefined';
22697
22741
  return (showAlert &&
22698
22742
  notServer && (React.createElement(Container$x, { alertType: alertType, "data-testid": "AlertBanner" },
22699
22743
  React.createElement(MaxWidthContainer, { noBackground: true },
@@ -23362,7 +23406,10 @@ const SocialLinkSingle = styled.a`
23362
23406
  opacity: 0.8;
23363
23407
  }
23364
23408
  &:focus {
23365
- outline: none;
23409
+ outline: 2px transparent solid;
23410
+ border-radius: 4px;
23411
+ box-shadow: ${(props) => props.theme.theme_vars.colours.focus} 0 0 0 3px;
23412
+ transition: box-shadow 0.3s ease 0s;
23366
23413
 
23367
23414
  svg {
23368
23415
  path {
@@ -23372,6 +23419,9 @@ const SocialLinkSingle = styled.a`
23372
23419
  }
23373
23420
  &:active {
23374
23421
  opacity: 1;
23422
+ border-radius: 4px;
23423
+ box-shadow: ${(props) => props.theme.theme_vars.colours.focus} 0 0 0 3px;
23424
+ transition: box-shadow 0.3s ease 0s;
23375
23425
 
23376
23426
  svg {
23377
23427
  path {
@@ -23580,21 +23630,23 @@ const StyledMaxWidthContainer$2 = styled(MaxWidthContainer)`
23580
23630
  }
23581
23631
  `;
23582
23632
 
23583
- const LogoStyles = `
23633
+ const LogoStyles = () => {
23634
+ return css`
23584
23635
  svg {
23585
- width: 240px;
23586
- height: auto;
23587
- vertical-align: middle;
23636
+ width: 240px;
23637
+ height: auto;
23638
+ vertical-align: middle;
23588
23639
  }
23589
23640
  &.black_logo {
23590
- svg {
23591
- fill: black !important;
23592
- path {
23593
- fill: black !important;
23594
- }
23641
+ svg {
23642
+ fill: black !important;
23643
+ path {
23644
+ fill: black !important;
23595
23645
  }
23646
+ }
23596
23647
  }
23597
- `;
23648
+ `;
23649
+ };
23598
23650
 
23599
23651
  const LogoColoured$1 = styled.div`
23600
23652
  ${LogoStyles}
@@ -23619,8 +23671,13 @@ const HomeLink = styled.a`
23619
23671
  }
23620
23672
  }
23621
23673
  &:focus {
23622
- outline: none;
23623
- box-shadow: ${(props) => props.theme.theme_vars.colours.focus} 0 0 0 3px;
23674
+ outline: 2px transparent solid;
23675
+ box-shadow: ${(props) => props.theme.theme_vars.colours.focus} 0 0 0 2px,
23676
+ ${(props) =>
23677
+ props.theme.cardinal_name === 'north'
23678
+ ? props.theme.theme_vars.colours.black
23679
+ : props.theme.theme_vars.colours.focus}
23680
+ 0 0 0 4px;
23624
23681
  transition: box-shadow 0.3s ease 0s;
23625
23682
  }
23626
23683
  `;
@@ -25724,16 +25781,13 @@ const Pagelink = styled.a`
25724
25781
  }
25725
25782
  }
25726
25783
  &:focus {
25727
- outline: none;
25728
- box-shadow: 0px -4px 0px 0px ${(props) => props.theme.theme_vars.colours.black} inset !important;
25729
- -webkit-box-shadow: 0px -4px 0px 0px ${(props) => props.theme.theme_vars.colours.black} inset !important;
25730
- -moz-box-shadow: 0px -4px 0px 0px ${(props) => props.theme.theme_vars.colours.black} inset !important;
25784
+ ${(props) => props.theme.linkStylesFocus}
25731
25785
  }
25732
25786
  &:active {
25733
25787
  transform: translate(3px);
25734
- box-shadow: 0px -1px 0px 0px ${(props) => props.theme.theme_vars.colours.black} inset !important;
25735
- -webkit-box-shadow: 0px -1px 0px 0px ${(props) => props.theme.theme_vars.colours.black} inset !important;
25736
- -moz-box-shadow: 0px -1px 0px 0px ${(props) => props.theme.theme_vars.colours.black} inset !important;
25788
+ box-shadow: 0px -2px 0px 0px ${(props) => props.theme.theme_vars.colours.black} inset !important;
25789
+ -webkit-box-shadow: 0px -2px 0px 0px ${(props) => props.theme.theme_vars.colours.black} inset !important;
25790
+ -moz-box-shadow: 0px -2px 0px 0px ${(props) => props.theme.theme_vars.colours.black} inset !important;
25737
25791
  }
25738
25792
  `;
25739
25793
 
@@ -25770,7 +25824,7 @@ styled.img`
25770
25824
  left: 0;
25771
25825
  width: 100%;
25772
25826
  height: 100%;
25773
- '`;
25827
+ `;
25774
25828
 
25775
25829
  /**
25776
25830
  * Display a list of links for a section with optional images
@@ -33956,9 +34010,9 @@ const generate_theme = (theme_vars) => {
33956
34010
  background: ${theme_vars.colours.focus};
33957
34011
  outline: none;
33958
34012
  text-decoration: none !important;
33959
- box-shadow: 0 -6px ${theme_vars.colours.focus}, 0 3px ${theme_vars.colours.black};
33960
- -webkit-box-shadow: 0 -6px ${theme_vars.colours.focus}, 0 3px ${theme_vars.colours.black};
33961
- -moz-box-shadow: 0 -6px ${theme_vars.colours.focus}, 0 3px ${theme_vars.colours.black};
34013
+ box-shadow: 0 0 0 1px ${theme_vars.colours.focus}, 0 0 0 3px ${theme_vars.colours.black};
34014
+ -webkit-box-shadow: 0 0 0 1px ${theme_vars.colours.focus}, 0 0 0 3px ${theme_vars.colours.black};
34015
+ -moz-box-shadow: 0 0 0 1px ${theme_vars.colours.focus}, 0 0 0 3px ${theme_vars.colours.black};
33962
34016
  `,
33963
34017
  linkStylesActive: css`
33964
34018
  color: ${theme_vars.colours.black};
@@ -34149,7 +34203,10 @@ const GlobalStyleReset = createGlobalStyle`
34149
34203
  .table-container li {
34150
34204
  left: 0;
34151
34205
  }
34206
+ table tr td {
34207
+ vertical-align: top;
34208
+ }
34152
34209
  `;
34153
34210
 
34154
- export { AccessibleLink as AccessibleLinks, Accordion, AlertBanner, AlertBannerService, Autocomplete, BlockQuote, Breadcrumbs, Button$2 as Button, CallToAction, Cards, CheckboxListFilter, Contents$1 as Contents, ContentsNavigation, CookieBanner, CouncilTaxAlphabeticalDirectory, DisplayDate, Divider, DownloadableFiles, DropDownFilter, DynamicIcon, Footer, FullWidthContainer, GDS_theme, GlobalStyleReset, GoogleMap, Header, Heading, HeadingWithIcon, HeroImage, HomeHero, Image$2 as Image, ImageAndText, MaxWidthContainer, MemorialHero, NewsArticleDate, NewsArticleFeaturedBlock, NewsArticleFilterAccordion, NewsArticleImage, NewsArticleList, NewsArticleListHeader, NewsArticleOldBanner, PageMain, PageSidebar, PageTitle, PageWithSidebarContainer, PageWrapper, Pagination, PhaseBanner, PromoBanner, PromoBlock, PromotedLinks, Promotions, SearchBox, SearchResultsList, Searchbar, SectionLinks, SectionLinksMobileContents, SectionLinksSidebar, ServiceLinksBoxed, ServicesLinksList, SignpostLinks, SkipToMainContent, Summary, TextInput, Video, WarningText, WarningTextDisclaimer, lb_theme_north, lb_theme_west, north_theme, west_theme };
34211
+ export { AccessibleLink as AccessibleLinks, Accordion, AlertBanner, AlertBannerService, Autocomplete, BlockQuote, Breadcrumbs, Button$2 as Button, CallToAction, Cards, CheckboxListFilter, Contents$1 as Contents, ContentsNavigation, CookieBanner, CouncilTaxAlphabeticalDirectory, DisplayDate, Divider, DownloadableFiles, DropDownFilter, DynamicIcon, Footer, FullWidthContainer, GDS_theme, GlobalStyleReset, GoogleMap, Header, Heading, HeadingWithIcon, HeroImage, HomeHero, Image$2 as Image, ImageAndText, InquestSchedule, MaxWidthContainer, MemorialHero, NewsArticleDate, NewsArticleFeaturedBlock, NewsArticleFilterAccordion, NewsArticleImage, NewsArticleList, NewsArticleListHeader, NewsArticleOldBanner, PageMain, PageSidebar, PageTitle, PageWithSidebarContainer, PageWrapper, Pagination, PhaseBanner, PromoBanner, PromoBlock, PromotedLinks, Promotions, SearchBox, SearchResultsList, Searchbar, SectionLinks, SectionLinksMobileContents, SectionLinksSidebar, ServiceLinksBoxed, ServicesLinksList, SignpostLinks, SkipToMainContent, Summary, TextInput, Video, WarningText, WarningTextDisclaimer, lb_theme_north, lb_theme_west, north_theme, west_theme };
34155
34212
  //# sourceMappingURL=index.esm.js.map