northants-design-system 0.2.1 → 0.2.5

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.
@@ -4005,7 +4005,7 @@ const H2 = styled.h2`
4005
4005
  font-weight: 700;
4006
4006
  line-height: 1;
4007
4007
  font-family: ${props => props.theme.theme_vars.fontstack};
4008
- margin-top: 50px;
4008
+ margin-top: 25px;
4009
4009
  margin-bottom: 15px;
4010
4010
 
4011
4011
  font-size: 24px;
@@ -4865,7 +4865,7 @@ var HeadingWithIcon = function (_a) {
4865
4865
  React.createElement(Heading, { text: text, level: level })));
4866
4866
  };
4867
4867
 
4868
- const Container$D = styled.div`
4868
+ const Container$E = styled.div`
4869
4869
  ${props => props.theme.fontStyles};
4870
4870
  display: block;
4871
4871
  border-top: 1px solid ${props => props.theme.theme_vars.colours.grey};
@@ -5620,7 +5620,7 @@ var Pagination = function (_a) {
5620
5620
  handleParams(postTo, [{ key: 'page', value: pageNo }]);
5621
5621
  };
5622
5622
  if (numbers.length > 1) {
5623
- return (React.createElement(Container$D, { "data-testid": "Pagination", role: "navigation", "aria-label": "Pagination" },
5623
+ return (React.createElement(Container$E, { "data-testid": "Pagination", role: "navigation", "aria-label": "Pagination" },
5624
5624
  currentPage !== 1 &&
5625
5625
  React.createElement(Previous, { onClick: function () { return buttonClick(currentPage - 1); }, title: "Go back a page" }, "Previous"),
5626
5626
  React.createElement(NumbersContainer, null, numbers.map(function (v, i) {
@@ -5635,7 +5635,7 @@ var Pagination = function (_a) {
5635
5635
  return null;
5636
5636
  };
5637
5637
 
5638
- const Container$C = styled.div`
5638
+ const Container$D = styled.div`
5639
5639
  ${props => props.theme.fontStyles};
5640
5640
  margin-bottom: 30px;
5641
5641
  `;
@@ -5809,7 +5809,7 @@ var CheckboxListFilter = function (_a) {
5809
5809
  handleParams('news', [{ key: NewsArticleFilterFields.articleType.queryParamKey, value: articleTypes }], ["page"]);
5810
5810
  };
5811
5811
  var backupLabel = Math.random().toString(36).substring(7);
5812
- return (React.createElement(Container$C, { "data-testid": "CheckboxListFilter" },
5812
+ return (React.createElement(Container$D, { "data-testid": "CheckboxListFilter" },
5813
5813
  React.createElement(Fieldset, { "aria-describedby": "waste-hint" },
5814
5814
  React.createElement(Legend, { labelHidden: labelHidden }, label),
5815
5815
  React.createElement(Hint, { id: "waste-hint", hintHidden: hintHidden }, hint),
@@ -5820,7 +5820,7 @@ var CheckboxListFilter = function (_a) {
5820
5820
  })))));
5821
5821
  };
5822
5822
 
5823
- const Container$B = styled.div`
5823
+ const Container$C = styled.div`
5824
5824
  ${props => props.theme.fontStyles};
5825
5825
  `;
5826
5826
 
@@ -5865,7 +5865,7 @@ const Option = styled.option`
5865
5865
 
5866
5866
  var DropDownSelect = function (_a) {
5867
5867
  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;
5868
- return (React.createElement(Container$B, null,
5868
+ return (React.createElement(Container$C, null,
5869
5869
  React.createElement(Label$1, { htmlFor: id, hideLabel: hideLabel }, label),
5870
5870
  React.createElement(Select, { id: id, name: id, onChange: onChange && onChange, defaultValue: selected && selected }, options.map(function (option, i) {
5871
5871
  return React.createElement(Option, { key: i, value: option.value }, option.title);
@@ -5997,7 +5997,7 @@ var TextInput = function (_a) {
5997
5997
 
5998
5998
  // Accordion
5999
5999
 
6000
- const Container$A = styled.div`
6000
+ const Container$B = styled.div`
6001
6001
  ${(props) => props.theme.fontStyles}
6002
6002
  margin-bottom: 20px;
6003
6003
  border-bottom: 1px solid ${(props) => props.theme.theme_vars.colours.grey};
@@ -6246,7 +6246,7 @@ var AccordionSection = function (_a) {
6246
6246
  };
6247
6247
 
6248
6248
  var Accordion = function (_a) {
6249
- var sections = _a.sections, _b = _a.isFilter, isFilter = _b === void 0 ? false : _b, _c = _a.withReadMore, withReadMore = _c === void 0 ? true : _c;
6249
+ var sections = _a.sections, _b = _a.isFilter, isFilter = _b === void 0 ? false : _b, _c = _a.withReadMore, withReadMore = _c === void 0 ? false : _c;
6250
6250
  sections.map(function (section, i) {
6251
6251
  section.accordionSectionId = i;
6252
6252
  });
@@ -6279,10 +6279,10 @@ var Accordion = function (_a) {
6279
6279
  setAccordionStates(newStatus);
6280
6280
  };
6281
6281
  var accordionId = "accordion".concat(uniqueID());
6282
- return (React.createElement(Container$A, { "data-testid": "Accordion", id: accordionId },
6282
+ return (React.createElement(Container$B, { "data-testid": "Accordion", id: accordionId },
6283
6283
  showControls && sections.length > 1 && (React.createElement(AccordionControls, null,
6284
6284
  React.createElement(OpenAllButton, { onClick: toggleAll, type: "button", "aria-expanded": !openAll },
6285
- openAll ? "Open all" : "Close all",
6285
+ openAll ? 'Open all' : 'Close all',
6286
6286
  React.createElement(VisuallyHidden, null, " sections")))),
6287
6287
  accordionStates.map(function (section, i) { return (React.createElement(AccordionSection, __assign({}, section, { key: i, onToggle: updateAccordionState, isFilter: isFilter, withReadMore: withReadMore }))); })));
6288
6288
  };
@@ -6330,7 +6330,7 @@ var BlockQuote = function (_a) {
6330
6330
  citation && React.createElement(Citation, null, citation)));
6331
6331
  };
6332
6332
 
6333
- const Container$z = styled.div`
6333
+ const Container$A = styled.div`
6334
6334
  margin-bottom: 30px;
6335
6335
  display: block;
6336
6336
 
@@ -6345,11 +6345,11 @@ const Container$z = styled.div`
6345
6345
  */
6346
6346
  var CallToAction = function (_a) {
6347
6347
  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"]);
6348
- return (React.createElement(Container$z, null,
6348
+ return (React.createElement(Container$A, null,
6349
6349
  React.createElement(Button$2, { primary: primary, size: "large", text: text, url: url, isExternal: isExternal, isDisabled: isDisabled })));
6350
6350
  };
6351
6351
 
6352
- const Container$y = styled.div`
6352
+ const Container$z = styled.div`
6353
6353
  margin: 25px 0;
6354
6354
  `;
6355
6355
 
@@ -6465,7 +6465,7 @@ var FileDownload = function (_a) {
6465
6465
 
6466
6466
  var DownloadableFiles = function (_a) {
6467
6467
  var files = _a.files;
6468
- return (React.createElement(Container$y, { "data-testid": "DownloadableFiles" }, files.length > 0 ?
6468
+ return (React.createElement(Container$z, { "data-testid": "DownloadableFiles" }, files.length > 0 ?
6469
6469
  files.map(function (file) { return React.createElement(FileDownload, __assign({ key: file.title }, file)); })
6470
6470
  :
6471
6471
  React.createElement("i", null, "No file to show")));
@@ -6688,7 +6688,7 @@ var AccessibleLink = function (_a) {
6688
6688
  })));
6689
6689
  };
6690
6690
 
6691
- const Container$x = styled.div`
6691
+ const Container$y = styled.div`
6692
6692
  padding: 15px 0;
6693
6693
  background: ${props => props.alertType === "alert" ? props.theme.theme_vars.colours.negative :
6694
6694
  props.alertType === "warning" ? props.theme.theme_vars.colours.focus :
@@ -6789,7 +6789,7 @@ const handleContainerPadding = (noBackground, noPadding) => {
6789
6789
  }
6790
6790
  };
6791
6791
 
6792
- const Container$w = styled.div`
6792
+ const Container$x = styled.div`
6793
6793
  background: ${props => props.noBackground ? "transparent" :
6794
6794
  props.theme.cardinal_name === "north" ? (props.theme.theme_vars.colours.grey_light+"7a") : props.theme.theme_vars.colours.white};
6795
6795
  overflow: ${props => props.noPadding ? "hidden" : "visible"};
@@ -6823,7 +6823,7 @@ const MaxWidth = styled.div`
6823
6823
  */
6824
6824
  var MaxWidthContainer = function (_a) {
6825
6825
  var children = _a.children, classes = _a.classes, _b = _a.noBackground, noBackground = _b === void 0 ? false : _b, _c = _a.noPadding, noPadding = _c === void 0 ? false : _c, _d = _a.overflowVisible, overflowVisible = _d === void 0 ? false : _d, props = __rest(_a, ["children", "classes", "noBackground", "noPadding", "overflowVisible"]);
6826
- return (React.createElement(Container$w, { noBackground: noBackground, noPadding: noPadding },
6826
+ return (React.createElement(Container$x, { noBackground: noBackground, noPadding: noPadding },
6827
6827
  React.createElement(MaxWidth, __assign({ className: classes, overflowVisible: overflowVisible }, props), children)));
6828
6828
  };
6829
6829
 
@@ -6835,7 +6835,7 @@ var AlertBanner = function (_a) {
6835
6835
  setHideAlert(false);
6836
6836
  };
6837
6837
  return (hideAlert &&
6838
- React.createElement(Container$x, { alertType: alertType },
6838
+ React.createElement(Container$y, { alertType: alertType },
6839
6839
  React.createElement(MaxWidthContainer, { noBackground: true },
6840
6840
  React.createElement(InnerContainer$1, null,
6841
6841
  React.createElement(BannerContentContainer, null,
@@ -6885,7 +6885,7 @@ function useLocalStorage$1(key, initialValue) {
6885
6885
  return [storedValue, setValue];
6886
6886
  }
6887
6887
 
6888
- const Container$v = styled.div`
6888
+ const Container$w = styled.div`
6889
6889
  border: solid 4px;
6890
6890
  border-radius: ${(props) => props.theme.theme_vars.border_radius};
6891
6891
  border-color: ${(props) =>
@@ -6903,6 +6903,7 @@ const Container$v = styled.div`
6903
6903
  margin-bottom: 25px;
6904
6904
  display: flex;
6905
6905
  justify-content: center;
6906
+ margin-top: ${(props) => (props.hasTopSpacing ? `25px` : `0`)};
6906
6907
 
6907
6908
  @media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.s}) {
6908
6909
  padding: 20px;
@@ -6933,79 +6934,81 @@ const InnerContainer = styled.div`
6933
6934
  `;
6934
6935
 
6935
6936
  /**
6936
- * A container for holding the main content of a page
6937
+ * A banner to be displayed at the top of a page before the main content
6938
+ * to draw the viewer's attention to an alert notice
6937
6939
  */
6938
6940
  var AlertBannerService = function (_a) {
6939
- var title = _a.title, _b = _a.alertType, alertType = _b === void 0 ? 'alert' : _b, children = _a.children;
6940
- return (React.createElement(Container$v, { alertType: alertType, "data-testid": "AlertBannerService" },
6941
+ 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;
6942
+ return (React.createElement(Container$w, { alertType: alertType, "data-testid": "AlertBannerService", hasTopSpacing: hasTopSpacing },
6941
6943
  React.createElement(InnerContainer, { "data-testid": "AlertBannerServiceInner" },
6942
6944
  (title === null || title === void 0 ? void 0 : title.trim()) && React.createElement(Heading, { text: title }),
6943
6945
  children)));
6944
6946
  };
6945
6947
 
6946
- const Container$u = styled.div`
6947
- padding-top: 20px;
6948
- border-bottom: 1px solid ${props => props.theme.theme_vars.colours.grey}80;
6948
+ const Container$v = styled.div`
6949
+ padding-top: 20px;
6950
+ border-bottom: 1px solid ${(props) => props.theme.theme_vars.colours.grey}80;
6951
+ margin-bottom: ${(props) => (props.hasMargin ? '30px' : 0)};
6949
6952
  `;
6950
6953
 
6951
6954
  const List$1 = styled.ol`
6952
- list-style: none;
6953
- padding-left: 0px;
6954
- margin-top: 0;
6955
- display: none;
6956
- margin-bottom: 20px;
6955
+ list-style: none;
6956
+ padding-left: 0px;
6957
+ margin-top: 0;
6958
+ display: none;
6959
+ margin-bottom: 20px;
6957
6960
 
6958
- @media screen and (min-width: ${props => props.theme.theme_vars.breakpoints.m}){
6959
- display: block;
6960
- }
6961
+ @media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.m}) {
6962
+ display: block;
6963
+ }
6961
6964
  `;
6962
6965
 
6963
6966
  const Crumb = styled.li`
6964
- display: inline;
6965
- margin-right: 10px;
6966
- &:last-of-type svg {
6967
- display: none;
6968
- }
6967
+ display: inline;
6968
+ margin-right: 10px;
6969
+ &:last-of-type svg {
6970
+ display: none;
6971
+ }
6969
6972
  `;
6970
6973
  const IconWrapper$4 = styled.div`
6971
- display: inline-block;
6972
- margin-left: 10px;
6973
- vertical-align: middle;
6974
+ display: inline-block;
6975
+ margin-left: 10px;
6976
+ vertical-align: middle;
6974
6977
  `;
6975
6978
  const MobileCrumb = styled.div`
6976
- display: block;
6977
- padding: 15px 0;
6978
- margin-top: -15px;
6979
+ display: block;
6980
+ padding: 15px 0;
6981
+ margin-top: -15px;
6979
6982
 
6980
- @media screen and (min-width: ${props => props.theme.theme_vars.breakpoints.m}){
6981
- display: none;
6982
- }
6983
+ @media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.m}) {
6984
+ display: none;
6985
+ }
6983
6986
  `;
6984
6987
  const BackIconWrapper = styled.div`
6985
- display: inline-block;
6986
- margin-right: 10px;
6987
- vertical-align: middle;
6988
+ display: inline-block;
6989
+ margin-right: 10px;
6990
+ vertical-align: middle;
6988
6991
  `;
6989
6992
  const BreadcrumbLink = styled.a`
6990
- ${props => props.theme.linkStyles}
6991
- font-weight: 400;
6993
+ ${(props) => props.theme.linkStyles}
6994
+ font-weight: 400;
6992
6995
 
6993
- svg {
6994
- fill: ${props => props.theme.theme_vars.colours.action};
6995
- }
6996
+ svg {
6997
+ fill: ${(props) => props.theme.theme_vars.colours.action};
6998
+ }
6996
6999
 
6997
- &:hover{
6998
- ${props => props.theme.linkStylesHover}
6999
- }
7000
- &:focus{
7001
- ${props => props.theme.linkStylesFocus}
7002
- svg {
7003
- fill: ${props => props.theme.theme_vars.colours.black};
7004
- }
7005
- }
7006
- &:active{
7007
- ${props => props.theme.linkStylesActive}
7000
+ &:hover {
7001
+ ${(props) => props.theme.linkStylesHover}
7002
+ }
7003
+ &:focus {
7004
+ ${(props) => props.theme.linkStylesFocus}
7005
+ svg {
7006
+ fill: ${(props) => props.theme.theme_vars.colours.black};
7008
7007
  }
7008
+ }
7009
+ &:active {
7010
+ ${(props) => props.theme.linkStylesActive}
7011
+ }
7009
7012
  `;
7010
7013
 
7011
7014
  const StyledSVG = styled.svg`
@@ -7032,22 +7035,20 @@ var ChevronIcon = function (_a) {
7032
7035
  };
7033
7036
 
7034
7037
  var Breadcrumbs = function (_a) {
7035
- var breadcrumbsArray = _a.breadcrumbsArray;
7036
- return (React.createElement(Container$u, null,
7037
- React.createElement(List$1, null, breadcrumbsArray.map(function (crumb) {
7038
- return React.createElement(Crumb, { key: crumb.title }, React.createElement(React.Fragment, null,
7039
- React.createElement(BreadcrumbLink, { href: crumb.url, title: crumb.title }, crumb.title),
7040
- React.createElement(IconWrapper$4, null,
7041
- React.createElement(ChevronIcon, { direction: "right", colourFill: "#C6C6C6" }))));
7042
- })),
7038
+ var breadcrumbsArray = _a.breadcrumbsArray, _b = _a.hasMargin, hasMargin = _b === void 0 ? false : _b;
7039
+ return (React.createElement(Container$v, { hasMargin: hasMargin, "data-testid": "Breadcrumbs" },
7040
+ React.createElement(List$1, null, breadcrumbsArray.map(function (crumb) { return (React.createElement(Crumb, { key: crumb.title }, React.createElement(React.Fragment, null,
7041
+ React.createElement(BreadcrumbLink, { href: crumb.url, title: crumb.title }, crumb.title),
7042
+ React.createElement(IconWrapper$4, null,
7043
+ React.createElement(ChevronIcon, { direction: 'right', colourFill: "#C6C6C6" }))))); })),
7043
7044
  React.createElement(MobileCrumb, null,
7044
- React.createElement(BreadcrumbLink, { href: breadcrumbsArray[breadcrumbsArray.length - 1].url, title: "Go back to previous page" },
7045
+ React.createElement(BreadcrumbLink, { href: breadcrumbsArray[breadcrumbsArray.length - 1].url, title: 'Go back to previous page' },
7045
7046
  React.createElement(BackIconWrapper, null,
7046
- React.createElement(ChevronIcon, { direction: "left" })),
7047
+ React.createElement(ChevronIcon, { direction: 'left' })),
7047
7048
  "Back"))));
7048
7049
  };
7049
7050
 
7050
- const Container$t = styled.div`
7051
+ const Container$u = styled.div`
7051
7052
  ${props => props.theme.fontStyles}
7052
7053
  background-color: ${props => props.theme.theme_vars.colours.grey_light};
7053
7054
  padding: ${props => props.theme.theme_vars.spacingSizes.medium} 0;
@@ -7333,7 +7334,7 @@ var CookieBanner = function (_a) {
7333
7334
  };
7334
7335
  return (React.createElement(React.Fragment, null,
7335
7336
  showCookieBanner &&
7336
- React.createElement(Container$t, { "data-testid": "CookieBanner" },
7337
+ React.createElement(Container$u, { "data-testid": "CookieBanner" },
7337
7338
  React.createElement(CookieMessage, null,
7338
7339
  React.createElement(CookieHeading, null, title),
7339
7340
  React.createElement(CookieParagraph, null, paragraph),
@@ -7341,12 +7342,12 @@ var CookieBanner = function (_a) {
7341
7342
  React.createElement(FormButton, { primary: true, text: acceptButtonText, isDisabled: true, onClick: acceptCookies }),
7342
7343
  React.createElement(FormButton, { primary: true, text: rejectButtonText, isDisabled: true, onClick: rejectCookies })))),
7343
7344
  showCookiesRejectedBanner &&
7344
- React.createElement(Container$t, { "data-testid": "CookieBannerRejected", id: "CookieBannerRejected" },
7345
+ React.createElement(Container$u, { "data-testid": "CookieBannerRejected", id: "CookieBannerRejected" },
7345
7346
  React.createElement(CookieMessage, { isInline: true },
7346
7347
  React.createElement(CookieParagraph, null, rejectConfirmationText),
7347
7348
  React.createElement(CookieHide, { onClick: hideCookiesConfirmationBanner, "aria-controls": "CookieBannerRejected", "aria-hidden": "false" }, "Hide"))),
7348
7349
  showCookiesAcceptedBanner &&
7349
- React.createElement(Container$t, { "data-testid": "CookieBannerAccepted", id: "CookieBannerAccepted" },
7350
+ React.createElement(Container$u, { "data-testid": "CookieBannerAccepted", id: "CookieBannerAccepted" },
7350
7351
  React.createElement(CookieMessage, { isInline: true },
7351
7352
  React.createElement(CookieParagraph, null, acceptConfirmationText),
7352
7353
  React.createElement(CookieHide, { onClick: hideCookiesConfirmationBanner, "aria-controls": "CookieBannerAccepted", "aria-hidden": "false" }, "Hide")))));
@@ -7384,7 +7385,7 @@ var DisplayDate = function (_a) {
7384
7385
  postText));
7385
7386
  };
7386
7387
 
7387
- const Container$s = styled.footer`
7388
+ const Container$t = styled.footer`
7388
7389
  background-color: ${props => props.theme.theme_vars.colours.black};
7389
7390
  padding: 25px 0;
7390
7391
  `;
@@ -7539,7 +7540,7 @@ var ServiceIcon = function (_a) {
7539
7540
  var Footer = function (_a) {
7540
7541
  var _b = _a.footerLinksArray, footerLinksArray = _b === void 0 ? null : _b, _c = _a.year, year = _c === void 0 ? "2021" : _c;
7541
7542
  var themeContext = useContext(ThemeContext);
7542
- return (React.createElement(Container$s, null,
7543
+ return (React.createElement(Container$t, null,
7543
7544
  React.createElement(StyledMaxWidthContainer$3, { noBackground: true },
7544
7545
  React.createElement(FooterAlignment, null,
7545
7546
  React.createElement("div", null,
@@ -7572,9 +7573,9 @@ var Footer = function (_a) {
7572
7573
  React.createElement(LogoWhite$1, { className: themeContext.theme_vars.theme_name === "Memorial theme North" || themeContext.theme_vars.theme_name === "Memorial theme West" ? "black_logo" : "" }, themeContext.cardinal_name === "north" ? React.createElement(NorthWhiteLogo, null) : (themeContext.cardinal_name === "west" ? React.createElement(WestWhiteLogo, null) : React.createElement(GDSLogo, null)))))));
7573
7574
  };
7574
7575
 
7575
- const Container$r = styled.div`
7576
+ const Container$s = styled.div`
7576
7577
  background: ${(props) => (props.hasBackground ? props.theme.theme_vars.colours.grey_light : 'transparent')};
7577
- padding: ${(props) => (props.hasPadding ? '50px 0' : '0')};
7578
+ padding: ${(props) => (props.hasPadding ? '50px 0 20px' : '0')};
7578
7579
  `;
7579
7580
 
7580
7581
  /**
@@ -7582,7 +7583,7 @@ const Container$r = styled.div`
7582
7583
  */
7583
7584
  var FullWidthContainer = function (_a) {
7584
7585
  var children = _a.children, _b = _a.hasBackground, hasBackground = _b === void 0 ? false : _b, _c = _a.hasPadding, hasPadding = _c === void 0 ? false : _c;
7585
- return (React.createElement(Container$r, { hasBackground: hasBackground, hasPadding: hasPadding, "data-testid": "FullWidthContainer" }, children));
7586
+ return (React.createElement(Container$s, { hasBackground: hasBackground, hasPadding: hasPadding, "data-testid": "FullWidthContainer" }, children));
7586
7587
  };
7587
7588
 
7588
7589
  /**
@@ -7614,7 +7615,7 @@ const headerThemeStyles = props => {
7614
7615
  }
7615
7616
  };
7616
7617
 
7617
- const Container$q = styled.header`
7618
+ const Container$r = styled.header`
7618
7619
  font-family: ${props => props.theme.theme_vars.fontstack};
7619
7620
  padding: 3px 0;
7620
7621
  ${headerThemeStyles}
@@ -7773,7 +7774,7 @@ var NorthColouredLogo = function () {
7773
7774
  React.createElement("path", { fill: "#fff", d: "M0 0H974V327H0z" })))));
7774
7775
  };
7775
7776
 
7776
- const Container$p = styled.div`
7777
+ const Container$q = styled.div`
7777
7778
  ${props => props.theme.fontStyles}
7778
7779
  width: calc(100% - ${ props => props.isLarge ? "5rem" : "3rem"});
7779
7780
  `;
@@ -7919,7 +7920,7 @@ var Searchbar = function (_a) {
7919
7920
  /**
7920
7921
  * Render the component
7921
7922
  */
7922
- return (React.createElement(Container$p, { "data-testid": "Searchbar", isLarge: isLarge },
7923
+ return (React.createElement(Container$q, { "data-testid": "Searchbar", isLarge: isLarge },
7923
7924
  React.createElement("form", { onSubmit: handleSubmit },
7924
7925
  React.createElement("div", { role: "search" },
7925
7926
  React.createElement(InputWrapper, null,
@@ -7974,7 +7975,7 @@ var Header = function (_a) {
7974
7975
  }
7975
7976
  };
7976
7977
  return (React.createElement(React.Fragment, null,
7977
- React.createElement(Container$q, __assign({}, props),
7978
+ React.createElement(Container$r, __assign({}, props),
7978
7979
  React.createElement(StyledMaxWidthContainer$2, { noBackground: true },
7979
7980
  React.createElement(LogoWrapper, null,
7980
7981
  React.createElement(HomeLink, { href: homeLink, title: "Home", id: "logo" }, themeLogos(themeContext.cardinal_name, themeContext.is_memorial))),
@@ -7994,7 +7995,7 @@ var Header = function (_a) {
7994
7995
  * Hero image container with optional dark gradient for non-box mode
7995
7996
  * Optimised for an image in 16:5 ratio on all but small width screens
7996
7997
  */
7997
- const Container$o = styled.div`
7998
+ const Container$p = styled.div`
7998
7999
  background-image: ${(props) =>
7999
8000
  !props.backgroundBox
8000
8001
  ? `linear-gradient(to bottom left, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.75)),`
@@ -23190,7 +23191,7 @@ function markDirtyUp(node) {
23190
23191
  }
23191
23192
  }
23192
23193
 
23193
- class Container$n extends node_1 {
23194
+ class Container$o extends node_1 {
23194
23195
  push(child) {
23195
23196
  child.parent = this;
23196
23197
  this.proxyOf.nodes.push(child);
@@ -23483,7 +23484,7 @@ class Container$n extends node_1 {
23483
23484
 
23484
23485
  let processed = nodes.map(i => {
23485
23486
  /* c8 ignore next */
23486
- if (!i[my$1]) Container$n.rebuild(i);
23487
+ if (!i[my$1]) Container$o.rebuild(i);
23487
23488
  i = i.proxyOf;
23488
23489
  if (i.parent) i.parent.removeChild(i);
23489
23490
  if (i[isClean$1]) markDirtyUp(i);
@@ -23561,23 +23562,23 @@ class Container$n extends node_1 {
23561
23562
  }
23562
23563
  }
23563
23564
 
23564
- Container$n.registerParse = dependant => {
23565
+ Container$o.registerParse = dependant => {
23565
23566
  parse$2 = dependant;
23566
23567
  };
23567
23568
 
23568
- Container$n.registerRule = dependant => {
23569
+ Container$o.registerRule = dependant => {
23569
23570
  Rule$1 = dependant;
23570
23571
  };
23571
23572
 
23572
- Container$n.registerAtRule = dependant => {
23573
+ Container$o.registerAtRule = dependant => {
23573
23574
  AtRule$1 = dependant;
23574
23575
  };
23575
23576
 
23576
- var container = Container$n;
23577
- Container$n.default = Container$n;
23577
+ var container = Container$o;
23578
+ Container$o.default = Container$o;
23578
23579
 
23579
23580
  /* c8 ignore start */
23580
- Container$n.rebuild = node => {
23581
+ Container$o.rebuild = node => {
23581
23582
  if (node.type === 'atrule') {
23582
23583
  Object.setPrototypeOf(node, AtRule$1.prototype);
23583
23584
  } else if (node.type === 'rule') {
@@ -23592,7 +23593,7 @@ Container$n.rebuild = node => {
23592
23593
 
23593
23594
  if (node.nodes) {
23594
23595
  node.nodes.forEach(child => {
23595
- Container$n.rebuild(child);
23596
+ Container$o.rebuild(child);
23596
23597
  });
23597
23598
  }
23598
23599
  };
@@ -26175,7 +26176,7 @@ var HeroImage = function (_a) {
26175
26176
  return (React.createElement(React.Fragment, null,
26176
26177
  React.createElement(LazyImage, { src: imageLarge, placeholder: imageSmall, visibilitySensorProps: {
26177
26178
  partialVisibility: true,
26178
- } }, function (src, loading) { return (React.createElement(Container$o, { image: src, loading: loading.toString(), backgroundBox: backgroundBox, "data-testid": "HeroImage" },
26179
+ } }, function (src, loading) { return (React.createElement(Container$p, { image: src, loading: loading.toString(), backgroundBox: backgroundBox, "data-testid": "HeroImage" },
26179
26180
  React.createElement(Overlay, { backgroundBox: backgroundBox, "data-testid": "HeroImageOverlay" },
26180
26181
  headline && React.createElement(Headline, { level: 1, text: headline, backgroundBox: backgroundBox }),
26181
26182
  content && React.createElement(Content$1, { dangerouslySetInnerHTML: { __html: sanitizeHtml$1(content) } }),
@@ -26186,19 +26187,23 @@ var HeroImage = function (_a) {
26186
26187
  };
26187
26188
 
26188
26189
  const Wrapper$4 = styled.header`
26189
- background: ${props => props.noBackground ? "transparent" :
26190
- props.theme.cardinal_name === "north" ? (props.theme.theme_vars.colours.grey_light+"7a") : props.theme.theme_vars.colours.white};
26190
+ background: ${(props) =>
26191
+ props.noBackground
26192
+ ? 'transparent'
26193
+ : props.theme.cardinal_name === 'north'
26194
+ ? props.theme.theme_vars.colours.grey_light + '7a'
26195
+ : props.theme.theme_vars.colours.white};
26191
26196
  `;
26192
26197
 
26193
- const Container$m = styled.div`
26194
- font-family: ${props => props.theme.theme_vars.fontstack};
26198
+ const Container$n = styled.div`
26199
+ font-family: ${(props) => props.theme.theme_vars.fontstack};
26195
26200
  overflow: hidden;
26196
- background: ${props => props.theme.theme_vars.colours.action}5A;
26201
+ background: ${(props) => props.theme.theme_vars.colours.action}5A;
26197
26202
  padding: 30px 0;
26198
26203
  padding-bottom: 15px;
26199
26204
 
26200
- @media screen and (min-width: ${props => props.theme.theme_vars.breakpoints.s}){
26201
- background-image: url("${props => props.image}");
26205
+ @media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.s}){
26206
+ background-image: url("${(props) => props.image}");
26202
26207
  background-size: cover;
26203
26208
  background-repeat: no-repeat;
26204
26209
  background-position: center;
@@ -26207,10 +26212,10 @@ const Container$m = styled.div`
26207
26212
  background-image: none;
26208
26213
  }
26209
26214
  }
26210
- @media screen and (min-width: ${props => props.theme.theme_vars.breakpoints.s}){
26215
+ @media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.s}){
26211
26216
  padding: 60px 0;
26212
26217
  }
26213
- @media screen and (min-width: calc(${props => props.theme.theme_vars.breakpoints.l} + 60px)){
26218
+ @media screen and (min-width: calc(${(props) => props.theme.theme_vars.breakpoints.l} + 60px)){
26214
26219
  margin-right: auto;
26215
26220
  margin-left: auto;
26216
26221
  padding: 90px 0;
@@ -26219,63 +26224,72 @@ const Container$m = styled.div`
26219
26224
  `;
26220
26225
 
26221
26226
  const StyledMaxWidthContainer$1 = styled.div`
26222
- ${props => props.theme.fontStyles}
26227
+ ${(props) => props.theme.fontStyles}
26223
26228
  margin-right: 15px;
26224
26229
  margin-left: 15px;
26225
26230
 
26226
- @media screen and (min-width: ${props => props.theme.theme_vars.breakpoints.m}){
26231
+ @media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.m}){
26227
26232
  margin-right: 30px;
26228
26233
  margin-left: 30px;
26229
26234
  }
26230
26235
 
26231
- @media screen and (min-width: calc(${props => props.theme.theme_vars.breakpoints.l} + 60px)){
26236
+ @media screen and (min-width: calc(${(props) => props.theme.theme_vars.breakpoints.l} + 60px)){
26232
26237
  margin-right: auto;
26233
26238
  margin-left: auto;
26234
- max-width: ${props => props.theme.theme_vars.breakpoints.l};
26239
+ max-width: ${(props) => props.theme.theme_vars.breakpoints.l};
26235
26240
  }
26236
26241
  `;
26237
26242
  const HiddenH1$1 = styled.h1`
26238
- visibility: hidden;
26243
+ visibility: hidden;
26239
26244
  `;
26240
26245
 
26241
26246
  const MainBox = styled.div`
26242
- padding: 30px;
26243
- background: ${props => props.theme.theme_vars.colours.white};
26244
- background: ${props => props.theme.theme_vars.colours.white}F2;
26245
- box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.11);
26246
- -webkit-box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.11);
26247
- -moz-box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.11);
26248
- border-radius: 5px;
26247
+ padding: 30px;
26248
+ background: ${(props) => props.theme.theme_vars.colours.white};
26249
+ background: ${(props) => props.theme.theme_vars.colours.white}F2;
26250
+ box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.11);
26251
+ -webkit-box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.11);
26252
+ -moz-box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.11);
26253
+ border-radius: 5px;
26249
26254
 
26250
- @media screen and (min-width: ${props => props.theme.theme_vars.breakpoints.m}){
26251
- max-width: calc(50% - 60px);
26252
- }
26255
+ @media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.m}) {
26256
+ max-width: calc(50% - 60px);
26257
+ }
26253
26258
  `;
26254
26259
 
26255
26260
  const Topline = styled.p`
26256
- color: ${props => props.theme.theme_vars.colours.grey_dark};
26261
+ color: ${(props) => props.theme.theme_vars.colours.grey_dark};
26257
26262
  `;
26258
26263
 
26259
26264
  const LogoColoured = styled.div`
26265
+ svg {
26266
+ margin-top: -45px;
26267
+ max-width: 450px;
26268
+ width: 95%;
26269
+ height: auto;
26270
+ }
26271
+ &.black_logo {
26260
26272
  svg {
26261
- margin-top: -45px;
26262
- max-width: 450px;
26263
- width: 95%;
26264
- height: auto;
26265
- }
26266
- &.black_logo {
26267
- svg {
26268
- fill: black !important;
26269
- path {
26270
- fill: black !important;
26271
- }
26272
- }
26273
+ fill: black !important;
26274
+ path {
26275
+ fill: black !important;
26276
+ }
26273
26277
  }
26278
+ }
26279
+ `;
26280
+
26281
+ const LogoOverride = styled.div`
26282
+ img {
26283
+ margin-top: -45px;
26284
+ max-width: 520px;
26285
+ width: 100%;
26286
+ height: auto;
26287
+ }
26274
26288
  `;
26275
26289
 
26276
26290
  const Strapline = styled.p`
26277
- margin-bottom: 20px;
26278
- margin-top: -10px;
26291
+ margin-bottom: 20px;
26292
+ margin-top: -10px;
26279
26293
  `;
26280
26294
 
26281
26295
  var WestColouredLogo = function () {
@@ -26313,40 +26327,39 @@ var WestColouredLogo = function () {
26313
26327
  * The Hero that should appear at the top of the home page.
26314
26328
  */
26315
26329
  var HomeHero = function (_a) {
26316
- var topline = _a.topline, strapline = _a.strapline, imagesArray = _a.imagesArray, promotedLinksArray = _a.promotedLinksArray, _b = _a.searchSuggestions, searchSuggestions = _b === void 0 ? [] : _b;
26330
+ var topline = _a.topline, strapline = _a.strapline, imagesArray = _a.imagesArray, promotedLinksArray = _a.promotedLinksArray, _b = _a.searchSuggestions, searchSuggestions = _b === void 0 ? [] : _b, imageOverrideLogo = _a.imageOverrideLogo, imageOverrideLogoAltText = _a.imageOverrideLogoAltText;
26317
26331
  var themeContext = useContext(ThemeContext);
26318
26332
  var _c = useState(999), random = _c[0], setRandom = _c[1];
26333
+ var usingMemorialTheme = themeContext.theme_vars.theme_name === 'Memorial theme North' ||
26334
+ themeContext.theme_vars.theme_name === 'Memorial theme West';
26319
26335
  useEffect(function () {
26320
26336
  setRandom(Math.floor(Math.random() * imagesArray.length));
26321
26337
  }, []);
26322
26338
  return (React.createElement(React.Fragment, null,
26323
26339
  React.createElement(Wrapper$4, null,
26324
26340
  React.createElement(LazyImage, { src: random !== 999 && imagesArray[random].image1440x810 ? imagesArray[random].image1440x810 : '', placeholder: random !== 999 && imagesArray[random].image144x81 ? imagesArray[random].image144x81 : '', visibilitySensorProps: {
26325
- partialVisibility: true
26326
- } }, function (src) {
26327
- return React.createElement(Container$m, { className: random !== 999 ? "loaded" : "loading", image: src, title: random !== 999 && imagesArray[random].imageAltText ? imagesArray[random].imageAltText : "" },
26328
- React.createElement(StyledMaxWidthContainer$1, null,
26329
- React.createElement(MainBox, null,
26330
- topline &&
26331
- React.createElement(Topline, null, topline),
26332
- React.createElement(HiddenH1$1, null,
26333
- themeContext.full_name,
26334
- " Council"),
26335
- React.createElement(LogoColoured, { className: themeContext.theme_vars.theme_name === "Memorial theme North" || themeContext.theme_vars.theme_name === "Memorial theme West" ? "black_logo" : "" }, themeContext.cardinal_name === "north" ? React.createElement(NorthColouredLogo, null) : (themeContext.cardinal_name === "west" ? React.createElement(WestColouredLogo, null) : React.createElement(GDSLogo, null))),
26336
- strapline &&
26337
- React.createElement(Strapline, null, strapline),
26338
- React.createElement(Searchbar, { isLight: true, isLarge: true, placeholder: "Search the site", submitInfo: {
26339
- postTo: "/search",
26340
- params: {
26341
- type: "search"
26342
- }
26343
- }, suggestions: searchSuggestions, maximumMatchesShown: 4 })),
26344
- promotedLinksArray.length > 0 &&
26345
- React.createElement(PromotedLinks, { promotedLinksArray: promotedLinksArray })));
26346
- }))));
26341
+ partialVisibility: true,
26342
+ } }, function (src) { return (React.createElement(Container$n, { className: random !== 999 ? 'loaded' : 'loading', image: src, title: random !== 999 && imagesArray[random].imageAltText ? imagesArray[random].imageAltText : '' },
26343
+ React.createElement(StyledMaxWidthContainer$1, null,
26344
+ React.createElement(MainBox, null,
26345
+ topline && React.createElement(Topline, null, topline),
26346
+ React.createElement(HiddenH1$1, null,
26347
+ themeContext.full_name,
26348
+ " Council"),
26349
+ imageOverrideLogo && !usingMemorialTheme && (React.createElement(LogoOverride, null,
26350
+ React.createElement("img", { src: imageOverrideLogo, width: "520", height: "150", alt: (imageOverrideLogoAltText === null || imageOverrideLogoAltText === void 0 ? void 0 : imageOverrideLogoAltText.trim()) ? imageOverrideLogoAltText : "Logo" }))),
26351
+ (!imageOverrideLogo || usingMemorialTheme) && (React.createElement(LogoColoured, { className: usingMemorialTheme ? 'black_logo' : '' }, themeContext.cardinal_name === 'north' ? (React.createElement(NorthColouredLogo, null)) : themeContext.cardinal_name === 'west' ? (React.createElement(WestColouredLogo, null)) : (React.createElement(GDSLogo, null)))),
26352
+ strapline && React.createElement(Strapline, null, strapline),
26353
+ React.createElement(Searchbar, { isLight: true, isLarge: true, placeholder: "Search the site", submitInfo: {
26354
+ postTo: '/search',
26355
+ params: {
26356
+ type: 'search',
26357
+ },
26358
+ }, suggestions: searchSuggestions, maximumMatchesShown: 4 })),
26359
+ promotedLinksArray.length > 0 && React.createElement(PromotedLinks, { promotedLinksArray: promotedLinksArray })))); }))));
26347
26360
  };
26348
26361
 
26349
- const Container$l = styled.div`
26362
+ const Container$m = styled.div`
26350
26363
  h2 {
26351
26364
  border-bottom: 1px solid ${props => props.theme.theme_vars.colours.grey_dark};
26352
26365
  max-width: none;
@@ -29124,42 +29137,28 @@ var followRedirects = wrap({ http: http, https: https });
29124
29137
  var wrap_1 = wrap;
29125
29138
  followRedirects.wrap = wrap_1;
29126
29139
 
29127
- const _from="axios@^0.21.4";const _id="axios@0.21.4";const _inBundle=false;const _integrity="sha512-ut5vewkiu8jjGBdqpM44XxjuCjq9LAKeHVmoVfHVzy8eHgxxq8SbAVQNovDA8mVi05kP0Ea/n/UzcSHcTJQfNg==";const _location="/axios";const _phantomChildren={};const _requested={type:"range",registry:true,raw:"axios@^0.21.4",name:"axios",escapedName:"axios",rawSpec:"^0.21.4",saveSpec:null,fetchSpec:"^0.21.4"};const _requiredBy=["/"];const _resolved="https://registry.npmjs.org/axios/-/axios-0.21.4.tgz";const _shasum="c67b90dc0568e5c1cf2b0b858c43ba28e2eda575";const _spec="axios@^0.21.4";const _where="/Users/chrisrhymes/code/design-system";const author={name:"Matt Zabriskie"};const browser={"./lib/adapters/http.js":"./lib/adapters/xhr.js"};const bugs={url:"https://github.com/axios/axios/issues"};const bundleDependencies=false;const bundlesize=[{path:"./dist/axios.min.js",threshold:"5kB"}];const dependencies={"follow-redirects":"^1.14.0"};const deprecated=false;const description="Promise based HTTP client for the browser and node.js";const devDependencies={coveralls:"^3.0.0","es6-promise":"^4.2.4",grunt:"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1",karma:"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2",minimist:"^1.2.0",mocha:"^8.2.1",sinon:"^4.5.0","terser-webpack-plugin":"^4.2.3",typescript:"^4.0.5","url-search-params":"^0.10.0",webpack:"^4.44.2","webpack-dev-server":"^3.11.0"};const homepage="https://axios-http.com";const jsdelivr="dist/axios.min.js";const keywords=["xhr","http","ajax","promise","node"];const license="MIT";const main="index.js";const name="axios";const repository={type:"git",url:"git+https://github.com/axios/axios.git"};const scripts={build:"NODE_ENV=production grunt build",coveralls:"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",examples:"node ./examples/server.js",fix:"eslint --fix lib/**/*.js",postversion:"git push && git push --tags",preversion:"npm test",start:"node ./sandbox/server.js",test:"grunt test",version:"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json"};const typings="./index.d.ts";const unpkg="dist/axios.min.js";const version="0.21.4";var _package = {_from:_from,_id:_id,_inBundle:_inBundle,_integrity:_integrity,_location:_location,_phantomChildren:_phantomChildren,_requested:_requested,_requiredBy:_requiredBy,_resolved:_resolved,_shasum:_shasum,_spec:_spec,_where:_where,author:author,browser:browser,bugs:bugs,bundleDependencies:bundleDependencies,bundlesize:bundlesize,dependencies:dependencies,deprecated:deprecated,description:description,devDependencies:devDependencies,homepage:homepage,jsdelivr:jsdelivr,keywords:keywords,license:license,main:main,name:name,repository:repository,scripts:scripts,typings:typings,unpkg:unpkg,version:version};
29140
+ const name="axios";const version="0.21.4";const description="Promise based HTTP client for the browser and node.js";const main="index.js";const scripts={test:"grunt test",start:"node ./sandbox/server.js",build:"NODE_ENV=production grunt build",preversion:"npm test",version:"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json",postversion:"git push && git push --tags",examples:"node ./examples/server.js",coveralls:"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",fix:"eslint --fix lib/**/*.js"};const repository={type:"git",url:"https://github.com/axios/axios.git"};const keywords=["xhr","http","ajax","promise","node"];const author="Matt Zabriskie";const license="MIT";const bugs={url:"https://github.com/axios/axios/issues"};const homepage="https://axios-http.com";const devDependencies={coveralls:"^3.0.0","es6-promise":"^4.2.4",grunt:"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1",karma:"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2",minimist:"^1.2.0",mocha:"^8.2.1",sinon:"^4.5.0","terser-webpack-plugin":"^4.2.3",typescript:"^4.0.5","url-search-params":"^0.10.0",webpack:"^4.44.2","webpack-dev-server":"^3.11.0"};const browser={"./lib/adapters/http.js":"./lib/adapters/xhr.js"};const jsdelivr="dist/axios.min.js";const unpkg="dist/axios.min.js";const typings="./index.d.ts";const dependencies={"follow-redirects":"^1.14.0"};const bundlesize=[{path:"./dist/axios.min.js",threshold:"5kB"}];var _package = {name:name,version:version,description:description,main:main,scripts:scripts,repository:repository,keywords:keywords,author:author,license:license,bugs:bugs,homepage:homepage,devDependencies:devDependencies,browser:browser,jsdelivr:jsdelivr,unpkg:unpkg,typings:typings,dependencies:dependencies,bundlesize:bundlesize};
29128
29141
 
29129
29142
  var _package$1 = /*#__PURE__*/Object.freeze({
29130
29143
  __proto__: null,
29131
- _from: _from,
29132
- _id: _id,
29133
- _inBundle: _inBundle,
29134
- _integrity: _integrity,
29135
- _location: _location,
29136
- _phantomChildren: _phantomChildren,
29137
- _requested: _requested,
29138
- _requiredBy: _requiredBy,
29139
- _resolved: _resolved,
29140
- _shasum: _shasum,
29141
- _spec: _spec,
29142
- _where: _where,
29144
+ name: name,
29145
+ version: version,
29146
+ description: description,
29147
+ main: main,
29148
+ scripts: scripts,
29149
+ repository: repository,
29150
+ keywords: keywords,
29143
29151
  author: author,
29144
- browser: browser,
29152
+ license: license,
29145
29153
  bugs: bugs,
29146
- bundleDependencies: bundleDependencies,
29147
- bundlesize: bundlesize,
29148
- dependencies: dependencies,
29149
- deprecated: deprecated,
29150
- description: description,
29151
- devDependencies: devDependencies,
29152
29154
  homepage: homepage,
29155
+ devDependencies: devDependencies,
29156
+ browser: browser,
29153
29157
  jsdelivr: jsdelivr,
29154
- keywords: keywords,
29155
- license: license,
29156
- main: main,
29157
- name: name,
29158
- repository: repository,
29159
- scripts: scripts,
29160
- typings: typings,
29161
29158
  unpkg: unpkg,
29162
- version: version,
29159
+ typings: typings,
29160
+ dependencies: dependencies,
29161
+ bundlesize: bundlesize,
29163
29162
  'default': _package
29164
29163
  });
29165
29164
 
@@ -30200,7 +30199,7 @@ axios_1.default = _default;
30200
30199
 
30201
30200
  var axios = axios_1;
30202
30201
 
30203
- const Container$k = styled.div`
30202
+ const Container$l = styled.div`
30204
30203
  strong {
30205
30204
  font-weight: bold;
30206
30205
  }
@@ -30337,7 +30336,7 @@ var HintText = function (_a) {
30337
30336
  return (React.createElement(HintText$1, null, text));
30338
30337
  };
30339
30338
 
30340
- const Container$j = styled.div`
30339
+ const Container$k = styled.div`
30341
30340
  display: flex;
30342
30341
  -webkit-flex-direction: row;
30343
30342
  -moz-flex-direction: row;
@@ -30372,7 +30371,7 @@ const ErrorSummary = styled.div`
30372
30371
  */
30373
30372
  var FormWithLine = function (_a) {
30374
30373
  var _b = _a.lineColour, lineColour = _b === void 0 ? "#C6C6C6" : _b, _c = _a.hideLine, hideLine = _c === void 0 ? false : _c, formRole = _a.formRole, formMethod = _a.formMethod, formURL = _a.formURL, _d = _a.isError, isError = _d === void 0 ? false : _d, errorSummary = _a.errorSummary, onSubmit = _a.onSubmit, children = _a.children;
30375
- return (React.createElement(Container$j, null,
30374
+ return (React.createElement(Container$k, null,
30376
30375
  React.createElement(Line, { lineColour: lineColour, hideLine: hideLine, isError: isError }),
30377
30376
  React.createElement(Form, { onSubmit: onSubmit, hideLine: hideLine, role: formRole, method: formMethod, url: formURL },
30378
30377
  errorSummary && React.createElement(ErrorSummary, null, errorSummary),
@@ -30533,7 +30532,7 @@ var PostCodeSearch = function (_a) {
30533
30532
  setCurrentPostcode(currentPostcode + " (" + singleAddress.title + ")");
30534
30533
  }
30535
30534
  }
30536
- return (React.createElement(Container$k, null,
30535
+ return (React.createElement(Container$l, null,
30537
30536
  React.createElement(DropDownButton, { onClick: function () { return setOpen(open ? false : true); } },
30538
30537
  React.createElement(IconWrapper$3, null,
30539
30538
  React.createElement(ChevronIcon, { direction: open ? "down" : "right", colourFill: themeContext.theme_vars.colours.black })),
@@ -30719,7 +30718,7 @@ var HomeUnitarySection = function (_a) {
30719
30718
  var themeContext = useContext(ThemeContext);
30720
30719
  var northLink = themeContext.cardinal_name === "north" ? themeContext.theme_vars.council_link : themeContext.theme_vars.other_council_link;
30721
30720
  var westLink = themeContext.cardinal_name === "west" ? themeContext.theme_vars.council_link : themeContext.theme_vars.other_council_link;
30722
- return (React.createElement(Container$l, null,
30721
+ return (React.createElement(Container$m, null,
30723
30722
  React.createElement(Heading, { text: title }),
30724
30723
  React.createElement("p", null, firstLine),
30725
30724
  React.createElement(PostCodeSearch, { isUnitary: true, title: postcodeText }),
@@ -30742,7 +30741,7 @@ overflow: ${props => props.noPadding ? "hidden" : "visible"};
30742
30741
  padding-bottom: 0px;
30743
30742
  `;
30744
30743
 
30745
- const Container$i = styled.div`
30744
+ const Container$j = styled.div`
30746
30745
  font-family: ${props => props.theme.theme_vars.fontstack};
30747
30746
  display: flex;
30748
30747
  flex-wrap: wrap;
@@ -30882,7 +30881,7 @@ var MemorialHero = function (_a) {
30882
30881
  React.createElement(HiddenH1, null,
30883
30882
  themeContext.full_name,
30884
30883
  " Council"),
30885
- React.createElement(Container$i, null,
30884
+ React.createElement(Container$j, null,
30886
30885
  React.createElement(Left, null,
30887
30886
  children,
30888
30887
  React.createElement(ThemeProvider, { theme: theme }, councilServices)),
@@ -30912,7 +30911,7 @@ var NewsArticleDate = function (_a) {
30912
30911
  const imageHeightMobile$2 = 150;
30913
30912
  const imageHeightDesktop$1 = 200;
30914
30913
 
30915
- const Container$h = styled.div`
30914
+ const Container$i = styled.div`
30916
30915
  ${props => props.theme.fontStyles};
30917
30916
  padding: 15px 0;
30918
30917
 
@@ -31080,7 +31079,7 @@ var NewsArticleFeaturedBlock = function (_a) {
31080
31079
  return (React.createElement(React.Fragment, null,
31081
31080
  !withoutTitle &&
31082
31081
  React.createElement(Heading, { text: "News articles and press releases" }),
31083
- React.createElement(Container$h, null, articles.map(function (article) {
31082
+ React.createElement(Container$i, null, articles.map(function (article) {
31084
31083
  return React.createElement(ArticleContainer$1, { key: article.id, href: article.url },
31085
31084
  article.image720x405 &&
31086
31085
  React.createElement(LazyImage, { src: article.image720x405, placeholder: article.image72x41, visibilitySensorProps: {
@@ -31102,7 +31101,7 @@ var NewsArticleFeaturedBlock = function (_a) {
31102
31101
  }
31103
31102
  };
31104
31103
 
31105
- const Container$g = styled.div`
31104
+ const Container$h = styled.div`
31106
31105
  /* margin-top: 50px; */
31107
31106
  /* border: 1px solid red; */
31108
31107
 
@@ -31204,7 +31203,7 @@ const FilterHeading = styled.h2`
31204
31203
  // display: block;
31205
31204
  // overflow: hidden;
31206
31205
 
31207
- const Container$f = styled.a`
31206
+ const Container$g = styled.a`
31208
31207
  ${props => props.theme.linkStyles}
31209
31208
  color: ${props => props.theme.theme_vars.colours.negative} !important;
31210
31209
  font-weight: normal;
@@ -31233,7 +31232,7 @@ var RemoveAllFilters = function (_a) {
31233
31232
  e.preventDefault();
31234
31233
  removeParams(__spreadArray(__spreadArray([], NewsArticleFilterFields.removeFiltersList, true), ['page'], false));
31235
31234
  };
31236
- return (React.createElement(Container$f, { "data-testid": "RemoveAllFilters", href: "#", onClick: removeAllFilters },
31235
+ return (React.createElement(Container$g, { "data-testid": "RemoveAllFilters", href: "#", onClick: removeAllFilters },
31237
31236
  "Clear ",
31238
31237
  searchValue.length > 0 && 'search term and ',
31239
31238
  "filters",
@@ -31280,7 +31279,7 @@ var NewsArticleFilterAccordion = function (_a) {
31280
31279
  section.isExpanded = false;
31281
31280
  }
31282
31281
  });
31283
- return (React.createElement(Container$g, { "data-testid": "NewsArticleFilterAccordion" },
31282
+ return (React.createElement(Container$h, { "data-testid": "NewsArticleFilterAccordion" },
31284
31283
  React.createElement(ShowFiltersButton, { onClick: showFullscreenFilters, "aria-expanded": !!isFullScreen, "aria-controls": "PageFilters" },
31285
31284
  "Show Search and filters",
31286
31285
  count > 0 && " (".concat(count, ")")),
@@ -31349,7 +31348,7 @@ var NewsArticleImage = function (_a) {
31349
31348
 
31350
31349
  const imageHeightMobile$1 = 150;
31351
31350
 
31352
- const Container$e = styled.div`
31351
+ const Container$f = styled.div`
31353
31352
  ${props => props.theme.fontStyles};
31354
31353
  padding: 15px 0;
31355
31354
  `;
@@ -31477,7 +31476,7 @@ var NewsArticleList = function (_a) {
31477
31476
  var results = _a.results;
31478
31477
  var extractLength = 140;
31479
31478
  if (results && results.length > 0) {
31480
- return (React.createElement(Container$e, { "data-testid": "NewsArticleList" }, results.map(function (article) {
31479
+ return (React.createElement(Container$f, { "data-testid": "NewsArticleList" }, results.map(function (article) {
31481
31480
  return React.createElement(ArticleContainer, { href: article.url, title: article.title, key: article.id },
31482
31481
  article.image720x405 &&
31483
31482
  React.createElement(LazyImage, { src: article.image720x405, placeholder: article.image72x41, visibilitySensorProps: {
@@ -31493,12 +31492,12 @@ var NewsArticleList = function (_a) {
31493
31492
  })));
31494
31493
  }
31495
31494
  else {
31496
- return (React.createElement(Container$e, { "data-testid": "NewsArticleList" },
31495
+ return (React.createElement(Container$f, { "data-testid": "NewsArticleList" },
31497
31496
  React.createElement(ResultInfo$1, null, "No results found")));
31498
31497
  }
31499
31498
  };
31500
31499
 
31501
- const Container$d = styled.div`
31500
+ const Container$e = styled.div`
31502
31501
  ${props => props.theme.fontStyles};
31503
31502
  padding-bottom: 20px;
31504
31503
  border-bottom: 1px solid ${props => props.theme.theme_vars.colours.grey};
@@ -31572,7 +31571,7 @@ const Preposition = styled.div`
31572
31571
  font-size: 80%;
31573
31572
  `;
31574
31573
 
31575
- const Container$c = styled.span`
31574
+ const Container$d = styled.span`
31576
31575
  margin: 0 5px;
31577
31576
  display: inline-block;
31578
31577
  position: relative;
@@ -31633,7 +31632,7 @@ var RemovableTag = function (_a) {
31633
31632
  var index = _a.index, preposition = _a.preposition, label = _a.label; _a.value; _a.param; var clickHandler = _a.clickHandler;
31634
31633
  return (React.createElement(Wrapper$2, { "data-testid": "RemovableTag" },
31635
31634
  index > 0 && preposition && React.createElement(Preposition, null, preposition),
31636
- React.createElement(Container$c, null,
31635
+ React.createElement(Container$d, null,
31637
31636
  React.createElement(Text, null, label),
31638
31637
  React.createElement(Button, { "aria-label": "Remove filter ".concat(label), onClick: clickHandler }, "x"))));
31639
31638
  };
@@ -31653,7 +31652,7 @@ var NewsArticleListHeader = function (_a) {
31653
31652
  var removeFilterValue = function (param, value) {
31654
31653
  removeValueFromParam(param, value);
31655
31654
  };
31656
- return (React.createElement(Container$d, { "data-testid": "NewsArticleListHeader" },
31655
+ return (React.createElement(Container$e, { "data-testid": "NewsArticleListHeader" },
31657
31656
  React.createElement(LeftCol, null,
31658
31657
  totalResults,
31659
31658
  " article",
@@ -31707,7 +31706,7 @@ var NewsArticleOldBanner = function (_a) {
31707
31706
  React.createElement("strong", null, "1 year old")));
31708
31707
  };
31709
31708
 
31710
- const Container$b = styled.main`
31709
+ const Container$c = styled.main`
31711
31710
  padding-top: 30px;
31712
31711
 
31713
31712
  a {
@@ -31838,10 +31837,10 @@ const Container$b = styled.main`
31838
31837
  */
31839
31838
  var PageMain = function (_a) {
31840
31839
  var children = _a.children, classes = _a.classes, props = __rest(_a, ["children", "classes"]);
31841
- return (React.createElement(Container$b, __assign({ id: "main", className: classes }, props), children));
31840
+ return (React.createElement(Container$c, __assign({ id: "main", className: classes }, props), children));
31842
31841
  };
31843
31842
 
31844
- const Container$a = styled.aside`
31843
+ const Container$b = styled.aside`
31845
31844
  padding-top: 30px;
31846
31845
  `;
31847
31846
 
@@ -31850,10 +31849,10 @@ const Container$a = styled.aside`
31850
31849
  */
31851
31850
  var PageSidebar = function (_a) {
31852
31851
  var children = _a.children;
31853
- return (React.createElement(Container$a, { className: "sidebar" }, children));
31852
+ return (React.createElement(Container$b, { className: "sidebar" }, children));
31854
31853
  };
31855
31854
 
31856
- const Container$9 = styled.div`
31855
+ const Container$a = styled.div`
31857
31856
  padding-top: 30px;
31858
31857
 
31859
31858
  h1 {
@@ -31866,10 +31865,10 @@ const Container$9 = styled.div`
31866
31865
  */
31867
31866
  var PageTitle = function (_a) {
31868
31867
  var children = _a.children, classes = _a.classes, props = __rest(_a, ["children", "classes"]);
31869
- return (React.createElement(Container$9, __assign({ "data-testid": "title", className: classes }, props), children));
31868
+ return (React.createElement(Container$a, __assign({ "data-testid": "title", className: classes }, props), children));
31870
31869
  };
31871
31870
 
31872
- const Container$8 = styled.div`
31871
+ const Container$9 = styled.div`
31873
31872
  @media screen and (min-width: ${props => props.theme.theme_vars.breakpoints.m}){
31874
31873
  display: flex;
31875
31874
  flex-wrap: wrap;
@@ -31911,7 +31910,7 @@ const Container$8 = styled.div`
31911
31910
  */
31912
31911
  var PageWithSidebarContainer = function (_a) {
31913
31912
  var _b = _a.sidebarLeft, sidebarLeft = _b === void 0 ? false : _b, children = _a.children;
31914
- return (React.createElement(Container$8, { sidebarLeft: sidebarLeft }, children));
31913
+ return (React.createElement(Container$9, { sidebarLeft: sidebarLeft }, children));
31915
31914
  };
31916
31915
 
31917
31916
  const backgroundDecider = props => {
@@ -31930,14 +31929,14 @@ const backgroundDecider = props => {
31930
31929
  };
31931
31930
 
31932
31931
 
31933
- const Container$7 = styled.div`
31932
+ const Container$8 = styled.div`
31934
31933
  ${backgroundDecider};
31935
31934
  padding-top: 1.5em;
31936
31935
  `;
31937
31936
 
31938
31937
  var PageWrapper = function (_a) {
31939
31938
  var colour = _a.colour, children = _a.children;
31940
- return (React.createElement(Container$7, { "data-testid": "PageWrapper", colour: colour }, children));
31939
+ return (React.createElement(Container$8, { "data-testid": "PageWrapper", colour: colour }, children));
31941
31940
  };
31942
31941
 
31943
31942
  const Wrapper$1 = styled.div`
@@ -32003,7 +32002,7 @@ var PhaseBanner = function (_a) {
32003
32002
  React.createElement(PhaseText, null, "This site is new and we are improving it every day."))));
32004
32003
  };
32005
32004
 
32006
- const Container$6 = styled.div`
32005
+ const Container$7 = styled.div`
32007
32006
  overflow: hidden;
32008
32007
  margin: 40px auto 5px auto;
32009
32008
  background: ${props => props.theme.cardinal_name === "north" ? props.theme.theme_vars.colours.white : props.theme.theme_vars.colours.grey_light};
@@ -32066,7 +32065,7 @@ const CTA = styled.a`
32066
32065
 
32067
32066
  var PromoBanner = function (_a) {
32068
32067
  var title = _a.title, image1440x810 = _a.image1440x810, image144x81 = _a.image144x81, ctaText = _a.ctaText, ctaUrl = _a.ctaUrl, children = _a.children;
32069
- return (React.createElement(Container$6, null,
32068
+ return (React.createElement(Container$7, null,
32070
32069
  React.createElement(LazyImage, { src: image1440x810, placeholder: image144x81, visibilitySensorProps: {
32071
32070
  partialVisibility: true
32072
32071
  } }, function (src) {
@@ -32299,7 +32298,7 @@ var PromoBlock = function (_a) {
32299
32298
  }
32300
32299
  };
32301
32300
 
32302
- const Container$5 = styled.div`
32301
+ const Container$6 = styled.div`
32303
32302
  ${props => props.theme.fontStyles};
32304
32303
  `;
32305
32304
 
@@ -32337,7 +32336,7 @@ const ServiceArea = styled.p`
32337
32336
  }
32338
32337
  `;
32339
32338
 
32340
- const Summary$1 = styled.p`
32339
+ const Summary$2 = styled.p`
32341
32340
  margin-bottom: ${props => props.theme.theme_vars.spacingSizes.small};
32342
32341
  `;
32343
32342
 
@@ -32453,11 +32452,11 @@ var SignpostLinksList = function (_a) {
32453
32452
  var SearchResultsList = function (_a) {
32454
32453
  var searchTerm = _a.searchTerm, results = _a.results, _b = _a.totalResults, totalResults = _b === void 0 ? 0 : _b, _c = _a.pageNumber, pageNumber = _c === void 0 ? 0 : _c;
32455
32454
  if (totalResults === 0) {
32456
- return (React.createElement(Container$5, { "data-testid": "SearchResultsList" },
32455
+ return (React.createElement(Container$6, { "data-testid": "SearchResultsList" },
32457
32456
  React.createElement(ResultInfo, null, "No results found")));
32458
32457
  }
32459
32458
  else {
32460
- return (React.createElement(Container$5, { "data-testid": "SearchResultsList" },
32459
+ return (React.createElement(Container$6, { "data-testid": "SearchResultsList" },
32461
32460
  React.createElement(ResultInfo, null,
32462
32461
  (pageNumber) > 1 && ("Page " + (pageNumber) + " of "),
32463
32462
  totalResults,
@@ -32468,7 +32467,7 @@ var SearchResultsList = function (_a) {
32468
32467
  return React.createElement(Result, { key: i },
32469
32468
  result.service && React.createElement(ServiceArea, null, result.service),
32470
32469
  React.createElement(Title$2, { href: result.link }, result.title),
32471
- React.createElement(Summary$1, null, result.summary),
32470
+ React.createElement(Summary$2, null, result.summary),
32472
32471
  result.signpostLinksArray &&
32473
32472
  React.createElement(SignpostContainer, null,
32474
32473
  result.signpostLinksArray.length > 1 ?
@@ -32486,7 +32485,7 @@ var SearchResultsList = function (_a) {
32486
32485
  }
32487
32486
  };
32488
32487
 
32489
- const Container$4 = styled.div`
32488
+ const Container$5 = styled.div`
32490
32489
 
32491
32490
  `;
32492
32491
 
@@ -32575,7 +32574,7 @@ const Title$1 = styled.p`
32575
32574
  }
32576
32575
  `;
32577
32576
 
32578
- const Summary = styled.p`
32577
+ const Summary$1 = styled.p`
32579
32578
  margin: 0;
32580
32579
  color: ${props => props.theme.theme_vars.colours.black} !important;
32581
32580
  font-weight: 400;
@@ -32583,7 +32582,7 @@ const Summary = styled.p`
32583
32582
 
32584
32583
  var SectionLinks = function (_a) {
32585
32584
  var sectionTitle = _a.sectionTitle, _b = _a.displayTitle, displayTitle = _b === void 0 ? true : _b, sectionSlug = _a.sectionSlug, pageLinksArray = _a.pageLinksArray;
32586
- return (React.createElement(Container$4, { id: sectionSlug },
32585
+ return (React.createElement(Container$5, { id: sectionSlug },
32587
32586
  displayTitle ?
32588
32587
  React.createElement(SectionTitle$1, { text: sectionTitle })
32589
32588
  :
@@ -32592,13 +32591,13 @@ var SectionLinks = function (_a) {
32592
32591
  pageLinksArray.map(function (link, i) {
32593
32592
  return React.createElement(Pagelink, { key: i, href: link.url, title: link.title },
32594
32593
  React.createElement(Title$1, null, link.title),
32595
- React.createElement(Summary, null, link.summary));
32594
+ React.createElement(Summary$1, null, link.summary));
32596
32595
  }),
32597
32596
  pageLinksArray.length > 1 && ((pageLinksArray.length + 1) % 3 === 0) &&
32598
32597
  React.createElement(PagelinkBlank$1, null))));
32599
32598
  };
32600
32599
 
32601
- const Container$3 = styled.aside`
32600
+ const Container$4 = styled.aside`
32602
32601
  padding-top: 20px;
32603
32602
  display: block;
32604
32603
 
@@ -32682,7 +32681,7 @@ const InlineLink = styled.a`
32682
32681
 
32683
32682
  var SectionLinksMobileContents = function (_a) {
32684
32683
  var sectionLinksArray = _a.sectionLinksArray;
32685
- return (React.createElement(Container$3, null,
32684
+ return (React.createElement(Container$4, null,
32686
32685
  React.createElement(Contents, null,
32687
32686
  React.createElement(ContentsTitle, null, "Contents"),
32688
32687
  React.createElement(ContentsList, null, sectionLinksArray.map(function (link) {
@@ -32691,7 +32690,7 @@ var SectionLinksMobileContents = function (_a) {
32691
32690
  })))));
32692
32691
  };
32693
32692
 
32694
- const Container$2 = styled.div`
32693
+ const Container$3 = styled.div`
32695
32694
  ${props => props.theme.fontStyles}
32696
32695
  background-color: ${props => props.theme.theme_vars.colours.action_light};
32697
32696
  border-radius: ${props => props.theme.theme_vars.border_radius};
@@ -32846,7 +32845,7 @@ const ListItemLink = styled.a`
32846
32845
  var SectionLinksSidebar = function (_a) {
32847
32846
  var Title$1 = _a.Title, Sections = _a.Sections;
32848
32847
  var _b = useState(false), open = _b[0], setOpen = _b[1];
32849
- return (React.createElement(Container$2, { "data-testid": "SectionLinksSidebar" },
32848
+ return (React.createElement(Container$3, { "data-testid": "SectionLinksSidebar" },
32850
32849
  React.createElement(MobileTitleButton, { onClick: function () { return open ? setOpen(false) : setOpen(true); } },
32851
32850
  Title$1,
32852
32851
  React.createElement(IconWrapper$1, null,
@@ -32877,7 +32876,7 @@ const containerMaxHeight = (props) => {
32877
32876
  }
32878
32877
  };
32879
32878
 
32880
- const Container$1 = styled.div`
32879
+ const Container$2 = styled.div`
32881
32880
  ${(props) => props.theme.fontStyles}
32882
32881
  ${containerMaxHeight}
32883
32882
 
@@ -33300,7 +33299,7 @@ var ServicesLinksList = function (_a) {
33300
33299
  return React.createElement(DynamicIcon, { colourFill: themeContext.theme_vars.colours.action });
33301
33300
  };
33302
33301
  return (React.createElement(React.Fragment, null,
33303
- React.createElement(Container$1, { id: serviceId, className: open && 'open', hideHeader: hideHeader },
33302
+ React.createElement(Container$2, { id: serviceId, className: open && 'open', hideHeader: hideHeader },
33304
33303
  !hideHeader && (React.createElement(HomeTitle, { "data-testid": "servicesLinksListHeader" },
33305
33304
  React.createElement(Heading, { text: "Council services" }),
33306
33305
  React.createElement(ReorderControl, null,
@@ -33375,7 +33374,7 @@ function useLocalStorage(key, initialValue) {
33375
33374
  return [storedValue, setValue];
33376
33375
  }
33377
33376
 
33378
- const Container = styled.div`
33377
+ const Container$1 = styled.div`
33379
33378
  ${props => props.theme.fontStyles}
33380
33379
  max-width: 500px;
33381
33380
  border-radius: ${props => props.theme.theme_vars.border_radius};
@@ -33427,7 +33426,7 @@ var SignpostLinks = function (_a) {
33427
33426
  var themeContext = useContext(ThemeContext);
33428
33427
  var councilLink = otherCouncilLink ? otherCouncilLink : themeContext.theme_vars.other_council_link;
33429
33428
  return (React.createElement(React.Fragment, null, signpostLinksArray.length > 1 ?
33430
- React.createElement(Container, null,
33429
+ React.createElement(Container$1, null,
33431
33430
  React.createElement(Paragraph, null, TopLineText),
33432
33431
  React.createElement(SignpostLinksList, { signpostLinksArray: signpostLinksArray }),
33433
33432
  React.createElement(PostCodeSearch, { otherCouncilLink: councilLink, signPostLinks: signpostLinksArray }),
@@ -33504,6 +33503,49 @@ const SkipToMainContent$1 = styled.a`
33504
33503
 
33505
33504
  var SkipToMainContent = function () { return (React.createElement(SkipToMainContent$1, { "data-testid": "SkipToMainContent", href: "#main" }, "Skip to main content")); };
33506
33505
 
33506
+ const summaryStyles = (props) => {
33507
+ if (props.theme.is_memorial === true) {
33508
+ return css`
33509
+ background-color: ${props.theme.theme_vars.colours.grey_darkest};
33510
+ color: ${props.theme.theme_vars.colours.white};
33511
+ `;
33512
+ }
33513
+
33514
+ switch (props.theme.cardinal_name) {
33515
+ case 'north':
33516
+ return css`
33517
+ background-color: ${(props) => (props.hasBackground ? props.theme.theme_vars.colours.white : 'transparent')};
33518
+ color: ${(props) => props.theme.theme_vars.colours.action};
33519
+ `;
33520
+ case 'west':
33521
+ return css`
33522
+ background-color: ${(props) =>
33523
+ props.hasBackground ? props.theme.theme_vars.colours.grey_light : 'transparent'};
33524
+ color: ${(props) => props.theme.theme_vars.colours.action_dark};
33525
+ `;
33526
+ }
33527
+ };
33528
+
33529
+ const Container = styled.div`
33530
+ padding: ${(props) => (props.hasPadding ? '30px 20px' : '0')};
33531
+ font-size: 1.2em;
33532
+ margin-bottom: 15px;
33533
+ ${summaryStyles}
33534
+
33535
+ p {
33536
+ max-width: 100%;
33537
+ }
33538
+
33539
+ p:last-of-type {
33540
+ margin-bottom: 0;
33541
+ }
33542
+ `;
33543
+
33544
+ var Summary = function (_a) {
33545
+ var children = _a.children, _b = _a.hasBackground, hasBackground = _b === void 0 ? true : _b, _c = _a.hasPadding, hasPadding = _c === void 0 ? true : _c;
33546
+ return (React.createElement(Container, { "data-testid": "Summary", hasBackground: hasBackground, hasPadding: hasPadding }, children));
33547
+ };
33548
+
33507
33549
  const breakpointsVals$4 = {
33508
33550
  s: "550",
33509
33551
  m: "768", // tablets and larger
@@ -34149,5 +34191,5 @@ const north_theme = generate_theme(north_vars);
34149
34191
  const lb_theme_north = generate_theme(lb_vars_north);
34150
34192
  const lb_theme_west = generate_theme(lb_vars_west);
34151
34193
 
34152
- export { AccessibleLink as AccessibleLinks, Accordion, AlertBanner, AlertBannerService, Autocomplete, BlockQuote, Breadcrumbs, Button$2 as Button, CallToAction, CheckboxListFilter, CookieBanner, DisplayDate, Divider, DownloadableFiles, DropDownFilter, Footer, FullWidthContainer, GDS_theme, Header, Heading, HeadingWithIcon, HeroImage, HomeHero, HomeUnitarySection, MaxWidthContainer, MemorialHero, NewsArticleDate, NewsArticleFeaturedBlock, NewsArticleFilterAccordion, NewsArticleImage, NewsArticleList, NewsArticleListHeader, NewsArticleOldBanner, PageMain, PageSidebar, PageTitle, PageWithSidebarContainer, PageWrapper, Pagination, PhaseBanner, PromoBanner, PromoBlock, PromotedLinks, SearchResultsList, Searchbar, SectionLinks, SectionLinksMobileContents, SectionLinksSidebar, ServicesLinksList, SignpostLinks, SkipToMainContent, TextInput, Video, WarningText, WarningTextDisclaimer, lb_theme_north, lb_theme_west, north_theme, west_theme };
34194
+ export { AccessibleLink as AccessibleLinks, Accordion, AlertBanner, AlertBannerService, Autocomplete, BlockQuote, Breadcrumbs, Button$2 as Button, CallToAction, CheckboxListFilter, CookieBanner, DisplayDate, Divider, DownloadableFiles, DropDownFilter, Footer, FullWidthContainer, GDS_theme, Header, Heading, HeadingWithIcon, HeroImage, HomeHero, HomeUnitarySection, MaxWidthContainer, MemorialHero, NewsArticleDate, NewsArticleFeaturedBlock, NewsArticleFilterAccordion, NewsArticleImage, NewsArticleList, NewsArticleListHeader, NewsArticleOldBanner, PageMain, PageSidebar, PageTitle, PageWithSidebarContainer, PageWrapper, Pagination, PhaseBanner, PromoBanner, PromoBlock, PromotedLinks, SearchResultsList, Searchbar, SectionLinks, SectionLinksMobileContents, SectionLinksSidebar, ServicesLinksList, SignpostLinks, SkipToMainContent, Summary, TextInput, Video, WarningText, WarningTextDisclaimer, lb_theme_north, lb_theme_west, north_theme, west_theme };
34153
34195
  //# sourceMappingURL=index.esm.js.map