northants-design-system 0.2.1 → 0.2.2

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.
@@ -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};
@@ -6279,7 +6279,7 @@ 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
6285
  openAll ? "Open all" : "Close all",
@@ -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) =>
@@ -6937,13 +6937,13 @@ const InnerContainer = styled.div`
6937
6937
  */
6938
6938
  var AlertBannerService = function (_a) {
6939
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" },
6940
+ return (React.createElement(Container$w, { alertType: alertType, "data-testid": "AlertBannerService" },
6941
6941
  React.createElement(InnerContainer, { "data-testid": "AlertBannerServiceInner" },
6942
6942
  (title === null || title === void 0 ? void 0 : title.trim()) && React.createElement(Heading, { text: title }),
6943
6943
  children)));
6944
6944
  };
6945
6945
 
6946
- const Container$u = styled.div`
6946
+ const Container$v = styled.div`
6947
6947
  padding-top: 20px;
6948
6948
  border-bottom: 1px solid ${props => props.theme.theme_vars.colours.grey}80;
6949
6949
  `;
@@ -7033,7 +7033,7 @@ var ChevronIcon = function (_a) {
7033
7033
 
7034
7034
  var Breadcrumbs = function (_a) {
7035
7035
  var breadcrumbsArray = _a.breadcrumbsArray;
7036
- return (React.createElement(Container$u, null,
7036
+ return (React.createElement(Container$v, null,
7037
7037
  React.createElement(List$1, null, breadcrumbsArray.map(function (crumb) {
7038
7038
  return React.createElement(Crumb, { key: crumb.title }, React.createElement(React.Fragment, null,
7039
7039
  React.createElement(BreadcrumbLink, { href: crumb.url, title: crumb.title }, crumb.title),
@@ -7047,7 +7047,7 @@ var Breadcrumbs = function (_a) {
7047
7047
  "Back"))));
7048
7048
  };
7049
7049
 
7050
- const Container$t = styled.div`
7050
+ const Container$u = styled.div`
7051
7051
  ${props => props.theme.fontStyles}
7052
7052
  background-color: ${props => props.theme.theme_vars.colours.grey_light};
7053
7053
  padding: ${props => props.theme.theme_vars.spacingSizes.medium} 0;
@@ -7333,7 +7333,7 @@ var CookieBanner = function (_a) {
7333
7333
  };
7334
7334
  return (React.createElement(React.Fragment, null,
7335
7335
  showCookieBanner &&
7336
- React.createElement(Container$t, { "data-testid": "CookieBanner" },
7336
+ React.createElement(Container$u, { "data-testid": "CookieBanner" },
7337
7337
  React.createElement(CookieMessage, null,
7338
7338
  React.createElement(CookieHeading, null, title),
7339
7339
  React.createElement(CookieParagraph, null, paragraph),
@@ -7341,12 +7341,12 @@ var CookieBanner = function (_a) {
7341
7341
  React.createElement(FormButton, { primary: true, text: acceptButtonText, isDisabled: true, onClick: acceptCookies }),
7342
7342
  React.createElement(FormButton, { primary: true, text: rejectButtonText, isDisabled: true, onClick: rejectCookies })))),
7343
7343
  showCookiesRejectedBanner &&
7344
- React.createElement(Container$t, { "data-testid": "CookieBannerRejected", id: "CookieBannerRejected" },
7344
+ React.createElement(Container$u, { "data-testid": "CookieBannerRejected", id: "CookieBannerRejected" },
7345
7345
  React.createElement(CookieMessage, { isInline: true },
7346
7346
  React.createElement(CookieParagraph, null, rejectConfirmationText),
7347
7347
  React.createElement(CookieHide, { onClick: hideCookiesConfirmationBanner, "aria-controls": "CookieBannerRejected", "aria-hidden": "false" }, "Hide"))),
7348
7348
  showCookiesAcceptedBanner &&
7349
- React.createElement(Container$t, { "data-testid": "CookieBannerAccepted", id: "CookieBannerAccepted" },
7349
+ React.createElement(Container$u, { "data-testid": "CookieBannerAccepted", id: "CookieBannerAccepted" },
7350
7350
  React.createElement(CookieMessage, { isInline: true },
7351
7351
  React.createElement(CookieParagraph, null, acceptConfirmationText),
7352
7352
  React.createElement(CookieHide, { onClick: hideCookiesConfirmationBanner, "aria-controls": "CookieBannerAccepted", "aria-hidden": "false" }, "Hide")))));
@@ -7384,7 +7384,7 @@ var DisplayDate = function (_a) {
7384
7384
  postText));
7385
7385
  };
7386
7386
 
7387
- const Container$s = styled.footer`
7387
+ const Container$t = styled.footer`
7388
7388
  background-color: ${props => props.theme.theme_vars.colours.black};
7389
7389
  padding: 25px 0;
7390
7390
  `;
@@ -7539,7 +7539,7 @@ var ServiceIcon = function (_a) {
7539
7539
  var Footer = function (_a) {
7540
7540
  var _b = _a.footerLinksArray, footerLinksArray = _b === void 0 ? null : _b, _c = _a.year, year = _c === void 0 ? "2021" : _c;
7541
7541
  var themeContext = useContext(ThemeContext);
7542
- return (React.createElement(Container$s, null,
7542
+ return (React.createElement(Container$t, null,
7543
7543
  React.createElement(StyledMaxWidthContainer$3, { noBackground: true },
7544
7544
  React.createElement(FooterAlignment, null,
7545
7545
  React.createElement("div", null,
@@ -7572,7 +7572,7 @@ var Footer = function (_a) {
7572
7572
  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
7573
  };
7574
7574
 
7575
- const Container$r = styled.div`
7575
+ const Container$s = styled.div`
7576
7576
  background: ${(props) => (props.hasBackground ? props.theme.theme_vars.colours.grey_light : 'transparent')};
7577
7577
  padding: ${(props) => (props.hasPadding ? '50px 0' : '0')};
7578
7578
  `;
@@ -7582,7 +7582,7 @@ const Container$r = styled.div`
7582
7582
  */
7583
7583
  var FullWidthContainer = function (_a) {
7584
7584
  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));
7585
+ return (React.createElement(Container$s, { hasBackground: hasBackground, hasPadding: hasPadding, "data-testid": "FullWidthContainer" }, children));
7586
7586
  };
7587
7587
 
7588
7588
  /**
@@ -7614,7 +7614,7 @@ const headerThemeStyles = props => {
7614
7614
  }
7615
7615
  };
7616
7616
 
7617
- const Container$q = styled.header`
7617
+ const Container$r = styled.header`
7618
7618
  font-family: ${props => props.theme.theme_vars.fontstack};
7619
7619
  padding: 3px 0;
7620
7620
  ${headerThemeStyles}
@@ -7773,7 +7773,7 @@ var NorthColouredLogo = function () {
7773
7773
  React.createElement("path", { fill: "#fff", d: "M0 0H974V327H0z" })))));
7774
7774
  };
7775
7775
 
7776
- const Container$p = styled.div`
7776
+ const Container$q = styled.div`
7777
7777
  ${props => props.theme.fontStyles}
7778
7778
  width: calc(100% - ${ props => props.isLarge ? "5rem" : "3rem"});
7779
7779
  `;
@@ -7919,7 +7919,7 @@ var Searchbar = function (_a) {
7919
7919
  /**
7920
7920
  * Render the component
7921
7921
  */
7922
- return (React.createElement(Container$p, { "data-testid": "Searchbar", isLarge: isLarge },
7922
+ return (React.createElement(Container$q, { "data-testid": "Searchbar", isLarge: isLarge },
7923
7923
  React.createElement("form", { onSubmit: handleSubmit },
7924
7924
  React.createElement("div", { role: "search" },
7925
7925
  React.createElement(InputWrapper, null,
@@ -7974,7 +7974,7 @@ var Header = function (_a) {
7974
7974
  }
7975
7975
  };
7976
7976
  return (React.createElement(React.Fragment, null,
7977
- React.createElement(Container$q, __assign({}, props),
7977
+ React.createElement(Container$r, __assign({}, props),
7978
7978
  React.createElement(StyledMaxWidthContainer$2, { noBackground: true },
7979
7979
  React.createElement(LogoWrapper, null,
7980
7980
  React.createElement(HomeLink, { href: homeLink, title: "Home", id: "logo" }, themeLogos(themeContext.cardinal_name, themeContext.is_memorial))),
@@ -7994,7 +7994,7 @@ var Header = function (_a) {
7994
7994
  * Hero image container with optional dark gradient for non-box mode
7995
7995
  * Optimised for an image in 16:5 ratio on all but small width screens
7996
7996
  */
7997
- const Container$o = styled.div`
7997
+ const Container$p = styled.div`
7998
7998
  background-image: ${(props) =>
7999
7999
  !props.backgroundBox
8000
8000
  ? `linear-gradient(to bottom left, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.75)),`
@@ -23190,7 +23190,7 @@ function markDirtyUp(node) {
23190
23190
  }
23191
23191
  }
23192
23192
 
23193
- class Container$n extends node_1 {
23193
+ class Container$o extends node_1 {
23194
23194
  push(child) {
23195
23195
  child.parent = this;
23196
23196
  this.proxyOf.nodes.push(child);
@@ -23483,7 +23483,7 @@ class Container$n extends node_1 {
23483
23483
 
23484
23484
  let processed = nodes.map(i => {
23485
23485
  /* c8 ignore next */
23486
- if (!i[my$1]) Container$n.rebuild(i);
23486
+ if (!i[my$1]) Container$o.rebuild(i);
23487
23487
  i = i.proxyOf;
23488
23488
  if (i.parent) i.parent.removeChild(i);
23489
23489
  if (i[isClean$1]) markDirtyUp(i);
@@ -23561,23 +23561,23 @@ class Container$n extends node_1 {
23561
23561
  }
23562
23562
  }
23563
23563
 
23564
- Container$n.registerParse = dependant => {
23564
+ Container$o.registerParse = dependant => {
23565
23565
  parse$2 = dependant;
23566
23566
  };
23567
23567
 
23568
- Container$n.registerRule = dependant => {
23568
+ Container$o.registerRule = dependant => {
23569
23569
  Rule$1 = dependant;
23570
23570
  };
23571
23571
 
23572
- Container$n.registerAtRule = dependant => {
23572
+ Container$o.registerAtRule = dependant => {
23573
23573
  AtRule$1 = dependant;
23574
23574
  };
23575
23575
 
23576
- var container = Container$n;
23577
- Container$n.default = Container$n;
23576
+ var container = Container$o;
23577
+ Container$o.default = Container$o;
23578
23578
 
23579
23579
  /* c8 ignore start */
23580
- Container$n.rebuild = node => {
23580
+ Container$o.rebuild = node => {
23581
23581
  if (node.type === 'atrule') {
23582
23582
  Object.setPrototypeOf(node, AtRule$1.prototype);
23583
23583
  } else if (node.type === 'rule') {
@@ -23592,7 +23592,7 @@ Container$n.rebuild = node => {
23592
23592
 
23593
23593
  if (node.nodes) {
23594
23594
  node.nodes.forEach(child => {
23595
- Container$n.rebuild(child);
23595
+ Container$o.rebuild(child);
23596
23596
  });
23597
23597
  }
23598
23598
  };
@@ -26175,7 +26175,7 @@ var HeroImage = function (_a) {
26175
26175
  return (React.createElement(React.Fragment, null,
26176
26176
  React.createElement(LazyImage, { src: imageLarge, placeholder: imageSmall, visibilitySensorProps: {
26177
26177
  partialVisibility: true,
26178
- } }, function (src, loading) { return (React.createElement(Container$o, { image: src, loading: loading.toString(), backgroundBox: backgroundBox, "data-testid": "HeroImage" },
26178
+ } }, function (src, loading) { return (React.createElement(Container$p, { image: src, loading: loading.toString(), backgroundBox: backgroundBox, "data-testid": "HeroImage" },
26179
26179
  React.createElement(Overlay, { backgroundBox: backgroundBox, "data-testid": "HeroImageOverlay" },
26180
26180
  headline && React.createElement(Headline, { level: 1, text: headline, backgroundBox: backgroundBox }),
26181
26181
  content && React.createElement(Content$1, { dangerouslySetInnerHTML: { __html: sanitizeHtml$1(content) } }),
@@ -26186,19 +26186,23 @@ var HeroImage = function (_a) {
26186
26186
  };
26187
26187
 
26188
26188
  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};
26189
+ background: ${(props) =>
26190
+ props.noBackground
26191
+ ? 'transparent'
26192
+ : props.theme.cardinal_name === 'north'
26193
+ ? props.theme.theme_vars.colours.grey_light + '7a'
26194
+ : props.theme.theme_vars.colours.white};
26191
26195
  `;
26192
26196
 
26193
- const Container$m = styled.div`
26194
- font-family: ${props => props.theme.theme_vars.fontstack};
26197
+ const Container$n = styled.div`
26198
+ font-family: ${(props) => props.theme.theme_vars.fontstack};
26195
26199
  overflow: hidden;
26196
- background: ${props => props.theme.theme_vars.colours.action}5A;
26200
+ background: ${(props) => props.theme.theme_vars.colours.action}5A;
26197
26201
  padding: 30px 0;
26198
26202
  padding-bottom: 15px;
26199
26203
 
26200
- @media screen and (min-width: ${props => props.theme.theme_vars.breakpoints.s}){
26201
- background-image: url("${props => props.image}");
26204
+ @media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.s}){
26205
+ background-image: url("${(props) => props.image}");
26202
26206
  background-size: cover;
26203
26207
  background-repeat: no-repeat;
26204
26208
  background-position: center;
@@ -26207,10 +26211,10 @@ const Container$m = styled.div`
26207
26211
  background-image: none;
26208
26212
  }
26209
26213
  }
26210
- @media screen and (min-width: ${props => props.theme.theme_vars.breakpoints.s}){
26214
+ @media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.s}){
26211
26215
  padding: 60px 0;
26212
26216
  }
26213
- @media screen and (min-width: calc(${props => props.theme.theme_vars.breakpoints.l} + 60px)){
26217
+ @media screen and (min-width: calc(${(props) => props.theme.theme_vars.breakpoints.l} + 60px)){
26214
26218
  margin-right: auto;
26215
26219
  margin-left: auto;
26216
26220
  padding: 90px 0;
@@ -26219,63 +26223,72 @@ const Container$m = styled.div`
26219
26223
  `;
26220
26224
 
26221
26225
  const StyledMaxWidthContainer$1 = styled.div`
26222
- ${props => props.theme.fontStyles}
26226
+ ${(props) => props.theme.fontStyles}
26223
26227
  margin-right: 15px;
26224
26228
  margin-left: 15px;
26225
26229
 
26226
- @media screen and (min-width: ${props => props.theme.theme_vars.breakpoints.m}){
26230
+ @media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.m}){
26227
26231
  margin-right: 30px;
26228
26232
  margin-left: 30px;
26229
26233
  }
26230
26234
 
26231
- @media screen and (min-width: calc(${props => props.theme.theme_vars.breakpoints.l} + 60px)){
26235
+ @media screen and (min-width: calc(${(props) => props.theme.theme_vars.breakpoints.l} + 60px)){
26232
26236
  margin-right: auto;
26233
26237
  margin-left: auto;
26234
- max-width: ${props => props.theme.theme_vars.breakpoints.l};
26238
+ max-width: ${(props) => props.theme.theme_vars.breakpoints.l};
26235
26239
  }
26236
26240
  `;
26237
26241
  const HiddenH1$1 = styled.h1`
26238
- visibility: hidden;
26242
+ visibility: hidden;
26239
26243
  `;
26240
26244
 
26241
26245
  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;
26246
+ padding: 30px;
26247
+ background: ${(props) => props.theme.theme_vars.colours.white};
26248
+ background: ${(props) => props.theme.theme_vars.colours.white}F2;
26249
+ box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.11);
26250
+ -webkit-box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.11);
26251
+ -moz-box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.11);
26252
+ border-radius: 5px;
26249
26253
 
26250
- @media screen and (min-width: ${props => props.theme.theme_vars.breakpoints.m}){
26251
- max-width: calc(50% - 60px);
26252
- }
26254
+ @media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.m}) {
26255
+ max-width: calc(50% - 60px);
26256
+ }
26253
26257
  `;
26254
26258
 
26255
26259
  const Topline = styled.p`
26256
- color: ${props => props.theme.theme_vars.colours.grey_dark};
26260
+ color: ${(props) => props.theme.theme_vars.colours.grey_dark};
26257
26261
  `;
26258
26262
 
26259
26263
  const LogoColoured = styled.div`
26264
+ svg {
26265
+ margin-top: -45px;
26266
+ max-width: 450px;
26267
+ width: 95%;
26268
+ height: auto;
26269
+ }
26270
+ &.black_logo {
26260
26271
  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
- }
26272
+ fill: black !important;
26273
+ path {
26274
+ fill: black !important;
26275
+ }
26273
26276
  }
26277
+ }
26278
+ `;
26279
+
26280
+ const LogoOverride = styled.div`
26281
+ img {
26282
+ margin-top: -45px;
26283
+ max-width: 520px;
26284
+ width: 100%;
26285
+ height: auto;
26286
+ }
26274
26287
  `;
26275
26288
 
26276
26289
  const Strapline = styled.p`
26277
- margin-bottom: 20px;
26278
- margin-top: -10px;
26290
+ margin-bottom: 20px;
26291
+ margin-top: -10px;
26279
26292
  `;
26280
26293
 
26281
26294
  var WestColouredLogo = function () {
@@ -26313,40 +26326,39 @@ var WestColouredLogo = function () {
26313
26326
  * The Hero that should appear at the top of the home page.
26314
26327
  */
26315
26328
  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;
26329
+ 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
26330
  var themeContext = useContext(ThemeContext);
26318
26331
  var _c = useState(999), random = _c[0], setRandom = _c[1];
26332
+ var usingMemorialTheme = themeContext.theme_vars.theme_name === 'Memorial theme North' ||
26333
+ themeContext.theme_vars.theme_name === 'Memorial theme West';
26319
26334
  useEffect(function () {
26320
26335
  setRandom(Math.floor(Math.random() * imagesArray.length));
26321
26336
  }, []);
26322
26337
  return (React.createElement(React.Fragment, null,
26323
26338
  React.createElement(Wrapper$4, null,
26324
26339
  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
- }))));
26340
+ partialVisibility: true,
26341
+ } }, function (src) { return (React.createElement(Container$n, { className: random !== 999 ? 'loaded' : 'loading', image: src, title: random !== 999 && imagesArray[random].imageAltText ? imagesArray[random].imageAltText : '' },
26342
+ React.createElement(StyledMaxWidthContainer$1, null,
26343
+ React.createElement(MainBox, null,
26344
+ topline && React.createElement(Topline, null, topline),
26345
+ React.createElement(HiddenH1$1, null,
26346
+ themeContext.full_name,
26347
+ " Council"),
26348
+ imageOverrideLogo && !usingMemorialTheme && (React.createElement(LogoOverride, null,
26349
+ React.createElement("img", { src: imageOverrideLogo, width: "520", height: "150", alt: (imageOverrideLogoAltText === null || imageOverrideLogoAltText === void 0 ? void 0 : imageOverrideLogoAltText.trim()) ? imageOverrideLogoAltText : "Logo" }))),
26350
+ (!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)))),
26351
+ strapline && React.createElement(Strapline, null, strapline),
26352
+ React.createElement(Searchbar, { isLight: true, isLarge: true, placeholder: "Search the site", submitInfo: {
26353
+ postTo: '/search',
26354
+ params: {
26355
+ type: 'search',
26356
+ },
26357
+ }, suggestions: searchSuggestions, maximumMatchesShown: 4 })),
26358
+ promotedLinksArray.length > 0 && React.createElement(PromotedLinks, { promotedLinksArray: promotedLinksArray })))); }))));
26347
26359
  };
26348
26360
 
26349
- const Container$l = styled.div`
26361
+ const Container$m = styled.div`
26350
26362
  h2 {
26351
26363
  border-bottom: 1px solid ${props => props.theme.theme_vars.colours.grey_dark};
26352
26364
  max-width: none;
@@ -30200,7 +30212,7 @@ axios_1.default = _default;
30200
30212
 
30201
30213
  var axios = axios_1;
30202
30214
 
30203
- const Container$k = styled.div`
30215
+ const Container$l = styled.div`
30204
30216
  strong {
30205
30217
  font-weight: bold;
30206
30218
  }
@@ -30337,7 +30349,7 @@ var HintText = function (_a) {
30337
30349
  return (React.createElement(HintText$1, null, text));
30338
30350
  };
30339
30351
 
30340
- const Container$j = styled.div`
30352
+ const Container$k = styled.div`
30341
30353
  display: flex;
30342
30354
  -webkit-flex-direction: row;
30343
30355
  -moz-flex-direction: row;
@@ -30372,7 +30384,7 @@ const ErrorSummary = styled.div`
30372
30384
  */
30373
30385
  var FormWithLine = function (_a) {
30374
30386
  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,
30387
+ return (React.createElement(Container$k, null,
30376
30388
  React.createElement(Line, { lineColour: lineColour, hideLine: hideLine, isError: isError }),
30377
30389
  React.createElement(Form, { onSubmit: onSubmit, hideLine: hideLine, role: formRole, method: formMethod, url: formURL },
30378
30390
  errorSummary && React.createElement(ErrorSummary, null, errorSummary),
@@ -30533,7 +30545,7 @@ var PostCodeSearch = function (_a) {
30533
30545
  setCurrentPostcode(currentPostcode + " (" + singleAddress.title + ")");
30534
30546
  }
30535
30547
  }
30536
- return (React.createElement(Container$k, null,
30548
+ return (React.createElement(Container$l, null,
30537
30549
  React.createElement(DropDownButton, { onClick: function () { return setOpen(open ? false : true); } },
30538
30550
  React.createElement(IconWrapper$3, null,
30539
30551
  React.createElement(ChevronIcon, { direction: open ? "down" : "right", colourFill: themeContext.theme_vars.colours.black })),
@@ -30719,7 +30731,7 @@ var HomeUnitarySection = function (_a) {
30719
30731
  var themeContext = useContext(ThemeContext);
30720
30732
  var northLink = themeContext.cardinal_name === "north" ? themeContext.theme_vars.council_link : themeContext.theme_vars.other_council_link;
30721
30733
  var westLink = themeContext.cardinal_name === "west" ? themeContext.theme_vars.council_link : themeContext.theme_vars.other_council_link;
30722
- return (React.createElement(Container$l, null,
30734
+ return (React.createElement(Container$m, null,
30723
30735
  React.createElement(Heading, { text: title }),
30724
30736
  React.createElement("p", null, firstLine),
30725
30737
  React.createElement(PostCodeSearch, { isUnitary: true, title: postcodeText }),
@@ -30742,7 +30754,7 @@ overflow: ${props => props.noPadding ? "hidden" : "visible"};
30742
30754
  padding-bottom: 0px;
30743
30755
  `;
30744
30756
 
30745
- const Container$i = styled.div`
30757
+ const Container$j = styled.div`
30746
30758
  font-family: ${props => props.theme.theme_vars.fontstack};
30747
30759
  display: flex;
30748
30760
  flex-wrap: wrap;
@@ -30882,7 +30894,7 @@ var MemorialHero = function (_a) {
30882
30894
  React.createElement(HiddenH1, null,
30883
30895
  themeContext.full_name,
30884
30896
  " Council"),
30885
- React.createElement(Container$i, null,
30897
+ React.createElement(Container$j, null,
30886
30898
  React.createElement(Left, null,
30887
30899
  children,
30888
30900
  React.createElement(ThemeProvider, { theme: theme }, councilServices)),
@@ -30912,7 +30924,7 @@ var NewsArticleDate = function (_a) {
30912
30924
  const imageHeightMobile$2 = 150;
30913
30925
  const imageHeightDesktop$1 = 200;
30914
30926
 
30915
- const Container$h = styled.div`
30927
+ const Container$i = styled.div`
30916
30928
  ${props => props.theme.fontStyles};
30917
30929
  padding: 15px 0;
30918
30930
 
@@ -31080,7 +31092,7 @@ var NewsArticleFeaturedBlock = function (_a) {
31080
31092
  return (React.createElement(React.Fragment, null,
31081
31093
  !withoutTitle &&
31082
31094
  React.createElement(Heading, { text: "News articles and press releases" }),
31083
- React.createElement(Container$h, null, articles.map(function (article) {
31095
+ React.createElement(Container$i, null, articles.map(function (article) {
31084
31096
  return React.createElement(ArticleContainer$1, { key: article.id, href: article.url },
31085
31097
  article.image720x405 &&
31086
31098
  React.createElement(LazyImage, { src: article.image720x405, placeholder: article.image72x41, visibilitySensorProps: {
@@ -31102,7 +31114,7 @@ var NewsArticleFeaturedBlock = function (_a) {
31102
31114
  }
31103
31115
  };
31104
31116
 
31105
- const Container$g = styled.div`
31117
+ const Container$h = styled.div`
31106
31118
  /* margin-top: 50px; */
31107
31119
  /* border: 1px solid red; */
31108
31120
 
@@ -31204,7 +31216,7 @@ const FilterHeading = styled.h2`
31204
31216
  // display: block;
31205
31217
  // overflow: hidden;
31206
31218
 
31207
- const Container$f = styled.a`
31219
+ const Container$g = styled.a`
31208
31220
  ${props => props.theme.linkStyles}
31209
31221
  color: ${props => props.theme.theme_vars.colours.negative} !important;
31210
31222
  font-weight: normal;
@@ -31233,7 +31245,7 @@ var RemoveAllFilters = function (_a) {
31233
31245
  e.preventDefault();
31234
31246
  removeParams(__spreadArray(__spreadArray([], NewsArticleFilterFields.removeFiltersList, true), ['page'], false));
31235
31247
  };
31236
- return (React.createElement(Container$f, { "data-testid": "RemoveAllFilters", href: "#", onClick: removeAllFilters },
31248
+ return (React.createElement(Container$g, { "data-testid": "RemoveAllFilters", href: "#", onClick: removeAllFilters },
31237
31249
  "Clear ",
31238
31250
  searchValue.length > 0 && 'search term and ',
31239
31251
  "filters",
@@ -31280,7 +31292,7 @@ var NewsArticleFilterAccordion = function (_a) {
31280
31292
  section.isExpanded = false;
31281
31293
  }
31282
31294
  });
31283
- return (React.createElement(Container$g, { "data-testid": "NewsArticleFilterAccordion" },
31295
+ return (React.createElement(Container$h, { "data-testid": "NewsArticleFilterAccordion" },
31284
31296
  React.createElement(ShowFiltersButton, { onClick: showFullscreenFilters, "aria-expanded": !!isFullScreen, "aria-controls": "PageFilters" },
31285
31297
  "Show Search and filters",
31286
31298
  count > 0 && " (".concat(count, ")")),
@@ -31349,7 +31361,7 @@ var NewsArticleImage = function (_a) {
31349
31361
 
31350
31362
  const imageHeightMobile$1 = 150;
31351
31363
 
31352
- const Container$e = styled.div`
31364
+ const Container$f = styled.div`
31353
31365
  ${props => props.theme.fontStyles};
31354
31366
  padding: 15px 0;
31355
31367
  `;
@@ -31477,7 +31489,7 @@ var NewsArticleList = function (_a) {
31477
31489
  var results = _a.results;
31478
31490
  var extractLength = 140;
31479
31491
  if (results && results.length > 0) {
31480
- return (React.createElement(Container$e, { "data-testid": "NewsArticleList" }, results.map(function (article) {
31492
+ return (React.createElement(Container$f, { "data-testid": "NewsArticleList" }, results.map(function (article) {
31481
31493
  return React.createElement(ArticleContainer, { href: article.url, title: article.title, key: article.id },
31482
31494
  article.image720x405 &&
31483
31495
  React.createElement(LazyImage, { src: article.image720x405, placeholder: article.image72x41, visibilitySensorProps: {
@@ -31493,12 +31505,12 @@ var NewsArticleList = function (_a) {
31493
31505
  })));
31494
31506
  }
31495
31507
  else {
31496
- return (React.createElement(Container$e, { "data-testid": "NewsArticleList" },
31508
+ return (React.createElement(Container$f, { "data-testid": "NewsArticleList" },
31497
31509
  React.createElement(ResultInfo$1, null, "No results found")));
31498
31510
  }
31499
31511
  };
31500
31512
 
31501
- const Container$d = styled.div`
31513
+ const Container$e = styled.div`
31502
31514
  ${props => props.theme.fontStyles};
31503
31515
  padding-bottom: 20px;
31504
31516
  border-bottom: 1px solid ${props => props.theme.theme_vars.colours.grey};
@@ -31572,7 +31584,7 @@ const Preposition = styled.div`
31572
31584
  font-size: 80%;
31573
31585
  `;
31574
31586
 
31575
- const Container$c = styled.span`
31587
+ const Container$d = styled.span`
31576
31588
  margin: 0 5px;
31577
31589
  display: inline-block;
31578
31590
  position: relative;
@@ -31633,7 +31645,7 @@ var RemovableTag = function (_a) {
31633
31645
  var index = _a.index, preposition = _a.preposition, label = _a.label; _a.value; _a.param; var clickHandler = _a.clickHandler;
31634
31646
  return (React.createElement(Wrapper$2, { "data-testid": "RemovableTag" },
31635
31647
  index > 0 && preposition && React.createElement(Preposition, null, preposition),
31636
- React.createElement(Container$c, null,
31648
+ React.createElement(Container$d, null,
31637
31649
  React.createElement(Text, null, label),
31638
31650
  React.createElement(Button, { "aria-label": "Remove filter ".concat(label), onClick: clickHandler }, "x"))));
31639
31651
  };
@@ -31653,7 +31665,7 @@ var NewsArticleListHeader = function (_a) {
31653
31665
  var removeFilterValue = function (param, value) {
31654
31666
  removeValueFromParam(param, value);
31655
31667
  };
31656
- return (React.createElement(Container$d, { "data-testid": "NewsArticleListHeader" },
31668
+ return (React.createElement(Container$e, { "data-testid": "NewsArticleListHeader" },
31657
31669
  React.createElement(LeftCol, null,
31658
31670
  totalResults,
31659
31671
  " article",
@@ -31707,7 +31719,7 @@ var NewsArticleOldBanner = function (_a) {
31707
31719
  React.createElement("strong", null, "1 year old")));
31708
31720
  };
31709
31721
 
31710
- const Container$b = styled.main`
31722
+ const Container$c = styled.main`
31711
31723
  padding-top: 30px;
31712
31724
 
31713
31725
  a {
@@ -31838,10 +31850,10 @@ const Container$b = styled.main`
31838
31850
  */
31839
31851
  var PageMain = function (_a) {
31840
31852
  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));
31853
+ return (React.createElement(Container$c, __assign({ id: "main", className: classes }, props), children));
31842
31854
  };
31843
31855
 
31844
- const Container$a = styled.aside`
31856
+ const Container$b = styled.aside`
31845
31857
  padding-top: 30px;
31846
31858
  `;
31847
31859
 
@@ -31850,10 +31862,10 @@ const Container$a = styled.aside`
31850
31862
  */
31851
31863
  var PageSidebar = function (_a) {
31852
31864
  var children = _a.children;
31853
- return (React.createElement(Container$a, { className: "sidebar" }, children));
31865
+ return (React.createElement(Container$b, { className: "sidebar" }, children));
31854
31866
  };
31855
31867
 
31856
- const Container$9 = styled.div`
31868
+ const Container$a = styled.div`
31857
31869
  padding-top: 30px;
31858
31870
 
31859
31871
  h1 {
@@ -31866,10 +31878,10 @@ const Container$9 = styled.div`
31866
31878
  */
31867
31879
  var PageTitle = function (_a) {
31868
31880
  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));
31881
+ return (React.createElement(Container$a, __assign({ "data-testid": "title", className: classes }, props), children));
31870
31882
  };
31871
31883
 
31872
- const Container$8 = styled.div`
31884
+ const Container$9 = styled.div`
31873
31885
  @media screen and (min-width: ${props => props.theme.theme_vars.breakpoints.m}){
31874
31886
  display: flex;
31875
31887
  flex-wrap: wrap;
@@ -31911,7 +31923,7 @@ const Container$8 = styled.div`
31911
31923
  */
31912
31924
  var PageWithSidebarContainer = function (_a) {
31913
31925
  var _b = _a.sidebarLeft, sidebarLeft = _b === void 0 ? false : _b, children = _a.children;
31914
- return (React.createElement(Container$8, { sidebarLeft: sidebarLeft }, children));
31926
+ return (React.createElement(Container$9, { sidebarLeft: sidebarLeft }, children));
31915
31927
  };
31916
31928
 
31917
31929
  const backgroundDecider = props => {
@@ -31930,14 +31942,14 @@ const backgroundDecider = props => {
31930
31942
  };
31931
31943
 
31932
31944
 
31933
- const Container$7 = styled.div`
31945
+ const Container$8 = styled.div`
31934
31946
  ${backgroundDecider};
31935
31947
  padding-top: 1.5em;
31936
31948
  `;
31937
31949
 
31938
31950
  var PageWrapper = function (_a) {
31939
31951
  var colour = _a.colour, children = _a.children;
31940
- return (React.createElement(Container$7, { "data-testid": "PageWrapper", colour: colour }, children));
31952
+ return (React.createElement(Container$8, { "data-testid": "PageWrapper", colour: colour }, children));
31941
31953
  };
31942
31954
 
31943
31955
  const Wrapper$1 = styled.div`
@@ -32003,7 +32015,7 @@ var PhaseBanner = function (_a) {
32003
32015
  React.createElement(PhaseText, null, "This site is new and we are improving it every day."))));
32004
32016
  };
32005
32017
 
32006
- const Container$6 = styled.div`
32018
+ const Container$7 = styled.div`
32007
32019
  overflow: hidden;
32008
32020
  margin: 40px auto 5px auto;
32009
32021
  background: ${props => props.theme.cardinal_name === "north" ? props.theme.theme_vars.colours.white : props.theme.theme_vars.colours.grey_light};
@@ -32066,7 +32078,7 @@ const CTA = styled.a`
32066
32078
 
32067
32079
  var PromoBanner = function (_a) {
32068
32080
  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,
32081
+ return (React.createElement(Container$7, null,
32070
32082
  React.createElement(LazyImage, { src: image1440x810, placeholder: image144x81, visibilitySensorProps: {
32071
32083
  partialVisibility: true
32072
32084
  } }, function (src) {
@@ -32299,7 +32311,7 @@ var PromoBlock = function (_a) {
32299
32311
  }
32300
32312
  };
32301
32313
 
32302
- const Container$5 = styled.div`
32314
+ const Container$6 = styled.div`
32303
32315
  ${props => props.theme.fontStyles};
32304
32316
  `;
32305
32317
 
@@ -32337,7 +32349,7 @@ const ServiceArea = styled.p`
32337
32349
  }
32338
32350
  `;
32339
32351
 
32340
- const Summary$1 = styled.p`
32352
+ const Summary$2 = styled.p`
32341
32353
  margin-bottom: ${props => props.theme.theme_vars.spacingSizes.small};
32342
32354
  `;
32343
32355
 
@@ -32453,11 +32465,11 @@ var SignpostLinksList = function (_a) {
32453
32465
  var SearchResultsList = function (_a) {
32454
32466
  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
32467
  if (totalResults === 0) {
32456
- return (React.createElement(Container$5, { "data-testid": "SearchResultsList" },
32468
+ return (React.createElement(Container$6, { "data-testid": "SearchResultsList" },
32457
32469
  React.createElement(ResultInfo, null, "No results found")));
32458
32470
  }
32459
32471
  else {
32460
- return (React.createElement(Container$5, { "data-testid": "SearchResultsList" },
32472
+ return (React.createElement(Container$6, { "data-testid": "SearchResultsList" },
32461
32473
  React.createElement(ResultInfo, null,
32462
32474
  (pageNumber) > 1 && ("Page " + (pageNumber) + " of "),
32463
32475
  totalResults,
@@ -32468,7 +32480,7 @@ var SearchResultsList = function (_a) {
32468
32480
  return React.createElement(Result, { key: i },
32469
32481
  result.service && React.createElement(ServiceArea, null, result.service),
32470
32482
  React.createElement(Title$2, { href: result.link }, result.title),
32471
- React.createElement(Summary$1, null, result.summary),
32483
+ React.createElement(Summary$2, null, result.summary),
32472
32484
  result.signpostLinksArray &&
32473
32485
  React.createElement(SignpostContainer, null,
32474
32486
  result.signpostLinksArray.length > 1 ?
@@ -32486,7 +32498,7 @@ var SearchResultsList = function (_a) {
32486
32498
  }
32487
32499
  };
32488
32500
 
32489
- const Container$4 = styled.div`
32501
+ const Container$5 = styled.div`
32490
32502
 
32491
32503
  `;
32492
32504
 
@@ -32575,7 +32587,7 @@ const Title$1 = styled.p`
32575
32587
  }
32576
32588
  `;
32577
32589
 
32578
- const Summary = styled.p`
32590
+ const Summary$1 = styled.p`
32579
32591
  margin: 0;
32580
32592
  color: ${props => props.theme.theme_vars.colours.black} !important;
32581
32593
  font-weight: 400;
@@ -32583,7 +32595,7 @@ const Summary = styled.p`
32583
32595
 
32584
32596
  var SectionLinks = function (_a) {
32585
32597
  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 },
32598
+ return (React.createElement(Container$5, { id: sectionSlug },
32587
32599
  displayTitle ?
32588
32600
  React.createElement(SectionTitle$1, { text: sectionTitle })
32589
32601
  :
@@ -32592,13 +32604,13 @@ var SectionLinks = function (_a) {
32592
32604
  pageLinksArray.map(function (link, i) {
32593
32605
  return React.createElement(Pagelink, { key: i, href: link.url, title: link.title },
32594
32606
  React.createElement(Title$1, null, link.title),
32595
- React.createElement(Summary, null, link.summary));
32607
+ React.createElement(Summary$1, null, link.summary));
32596
32608
  }),
32597
32609
  pageLinksArray.length > 1 && ((pageLinksArray.length + 1) % 3 === 0) &&
32598
32610
  React.createElement(PagelinkBlank$1, null))));
32599
32611
  };
32600
32612
 
32601
- const Container$3 = styled.aside`
32613
+ const Container$4 = styled.aside`
32602
32614
  padding-top: 20px;
32603
32615
  display: block;
32604
32616
 
@@ -32682,7 +32694,7 @@ const InlineLink = styled.a`
32682
32694
 
32683
32695
  var SectionLinksMobileContents = function (_a) {
32684
32696
  var sectionLinksArray = _a.sectionLinksArray;
32685
- return (React.createElement(Container$3, null,
32697
+ return (React.createElement(Container$4, null,
32686
32698
  React.createElement(Contents, null,
32687
32699
  React.createElement(ContentsTitle, null, "Contents"),
32688
32700
  React.createElement(ContentsList, null, sectionLinksArray.map(function (link) {
@@ -32691,7 +32703,7 @@ var SectionLinksMobileContents = function (_a) {
32691
32703
  })))));
32692
32704
  };
32693
32705
 
32694
- const Container$2 = styled.div`
32706
+ const Container$3 = styled.div`
32695
32707
  ${props => props.theme.fontStyles}
32696
32708
  background-color: ${props => props.theme.theme_vars.colours.action_light};
32697
32709
  border-radius: ${props => props.theme.theme_vars.border_radius};
@@ -32846,7 +32858,7 @@ const ListItemLink = styled.a`
32846
32858
  var SectionLinksSidebar = function (_a) {
32847
32859
  var Title$1 = _a.Title, Sections = _a.Sections;
32848
32860
  var _b = useState(false), open = _b[0], setOpen = _b[1];
32849
- return (React.createElement(Container$2, { "data-testid": "SectionLinksSidebar" },
32861
+ return (React.createElement(Container$3, { "data-testid": "SectionLinksSidebar" },
32850
32862
  React.createElement(MobileTitleButton, { onClick: function () { return open ? setOpen(false) : setOpen(true); } },
32851
32863
  Title$1,
32852
32864
  React.createElement(IconWrapper$1, null,
@@ -32877,7 +32889,7 @@ const containerMaxHeight = (props) => {
32877
32889
  }
32878
32890
  };
32879
32891
 
32880
- const Container$1 = styled.div`
32892
+ const Container$2 = styled.div`
32881
32893
  ${(props) => props.theme.fontStyles}
32882
32894
  ${containerMaxHeight}
32883
32895
 
@@ -33300,7 +33312,7 @@ var ServicesLinksList = function (_a) {
33300
33312
  return React.createElement(DynamicIcon, { colourFill: themeContext.theme_vars.colours.action });
33301
33313
  };
33302
33314
  return (React.createElement(React.Fragment, null,
33303
- React.createElement(Container$1, { id: serviceId, className: open && 'open', hideHeader: hideHeader },
33315
+ React.createElement(Container$2, { id: serviceId, className: open && 'open', hideHeader: hideHeader },
33304
33316
  !hideHeader && (React.createElement(HomeTitle, { "data-testid": "servicesLinksListHeader" },
33305
33317
  React.createElement(Heading, { text: "Council services" }),
33306
33318
  React.createElement(ReorderControl, null,
@@ -33375,7 +33387,7 @@ function useLocalStorage(key, initialValue) {
33375
33387
  return [storedValue, setValue];
33376
33388
  }
33377
33389
 
33378
- const Container = styled.div`
33390
+ const Container$1 = styled.div`
33379
33391
  ${props => props.theme.fontStyles}
33380
33392
  max-width: 500px;
33381
33393
  border-radius: ${props => props.theme.theme_vars.border_radius};
@@ -33427,7 +33439,7 @@ var SignpostLinks = function (_a) {
33427
33439
  var themeContext = useContext(ThemeContext);
33428
33440
  var councilLink = otherCouncilLink ? otherCouncilLink : themeContext.theme_vars.other_council_link;
33429
33441
  return (React.createElement(React.Fragment, null, signpostLinksArray.length > 1 ?
33430
- React.createElement(Container, null,
33442
+ React.createElement(Container$1, null,
33431
33443
  React.createElement(Paragraph, null, TopLineText),
33432
33444
  React.createElement(SignpostLinksList, { signpostLinksArray: signpostLinksArray }),
33433
33445
  React.createElement(PostCodeSearch, { otherCouncilLink: councilLink, signPostLinks: signpostLinksArray }),
@@ -33504,6 +33516,49 @@ const SkipToMainContent$1 = styled.a`
33504
33516
 
33505
33517
  var SkipToMainContent = function () { return (React.createElement(SkipToMainContent$1, { "data-testid": "SkipToMainContent", href: "#main" }, "Skip to main content")); };
33506
33518
 
33519
+ const summaryStyles = (props) => {
33520
+ if (props.theme.is_memorial === true) {
33521
+ return css`
33522
+ background-color: ${props.theme.theme_vars.colours.grey_darkest};
33523
+ color: ${props.theme.theme_vars.colours.white};
33524
+ `;
33525
+ }
33526
+
33527
+ switch (props.theme.cardinal_name) {
33528
+ case 'north':
33529
+ return css`
33530
+ background-color: ${(props) => (props.hasBackground ? props.theme.theme_vars.colours.white : 'transparent')};
33531
+ color: ${(props) => props.theme.theme_vars.colours.action};
33532
+ `;
33533
+ case 'west':
33534
+ return css`
33535
+ background-color: ${(props) =>
33536
+ props.hasBackground ? props.theme.theme_vars.colours.grey_light : 'transparent'};
33537
+ color: ${(props) => props.theme.theme_vars.colours.action};
33538
+ `;
33539
+ }
33540
+ };
33541
+
33542
+ const Container = styled.div`
33543
+ padding: ${(props) => (props.hasPadding ? '30px 20px' : '0')};
33544
+ font-size: 1.2em;
33545
+ margin-bottom: 15px;
33546
+ ${summaryStyles}
33547
+
33548
+ p {
33549
+ max-width: 100%;
33550
+ }
33551
+
33552
+ p:last-of-type {
33553
+ margin-bottom: 0;
33554
+ }
33555
+ `;
33556
+
33557
+ var Summary = function (_a) {
33558
+ var children = _a.children, _b = _a.hasBackground, hasBackground = _b === void 0 ? true : _b, _c = _a.hasPadding, hasPadding = _c === void 0 ? true : _c;
33559
+ return (React.createElement(Container, { "data-testid": "Summary", hasBackground: hasBackground, hasPadding: hasPadding }, children));
33560
+ };
33561
+
33507
33562
  const breakpointsVals$4 = {
33508
33563
  s: "550",
33509
33564
  m: "768", // tablets and larger
@@ -34149,5 +34204,5 @@ const north_theme = generate_theme(north_vars);
34149
34204
  const lb_theme_north = generate_theme(lb_vars_north);
34150
34205
  const lb_theme_west = generate_theme(lb_vars_west);
34151
34206
 
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 };
34207
+ 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
34208
  //# sourceMappingURL=index.esm.js.map