northants-design-system 0.2.0 → 0.2.4

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,44 +5997,44 @@ var TextInput = function (_a) {
5997
5997
 
5998
5998
  // Accordion
5999
5999
 
6000
- const Container$A = styled.div`
6001
- ${props => props.theme.fontStyles}
6000
+ const Container$B = styled.div`
6001
+ ${(props) => props.theme.fontStyles}
6002
6002
  margin-bottom: 20px;
6003
- border-bottom: 1px solid ${props => props.theme.theme_vars.colours.grey};
6003
+ border-bottom: 1px solid ${(props) => props.theme.theme_vars.colours.grey};
6004
6004
 
6005
6005
  @media (min-width: 40.0625em) {
6006
- margin-bottom: 30px
6006
+ margin-bottom: 30px;
6007
6007
  }
6008
6008
  `;
6009
6009
 
6010
6010
  const AccordionControls = styled.div`
6011
- text-align: right;
6011
+ text-align: right;
6012
6012
  `;
6013
6013
 
6014
6014
  const OpenAllButton = styled.button`
6015
- font-size: ${props => props.theme.theme_vars.fontSizes.extra_small};
6016
- position: relative;
6017
- z-index: 1;
6018
- margin: 0;
6019
- margin-bottom: 15px;
6020
- padding: 0;
6021
- border-width: 0;
6022
- color: ${props => props.theme.theme_vars.colours.action};
6023
- background: none;
6024
- cursor: pointer;
6025
- &:hover {
6026
- ${props => props.theme.linkStylesHover};
6027
- }
6028
- &:focus {
6029
- ${props => props.theme.linkStylesFocus};
6030
- }
6031
- &:active {
6032
- ${props => props.theme.linkStylesActive};
6033
- }
6015
+ font-size: ${(props) => props.theme.theme_vars.fontSizes.extra_small};
6016
+ position: relative;
6017
+ z-index: 1;
6018
+ margin: 0;
6019
+ margin-bottom: 15px;
6020
+ padding: 0;
6021
+ border-width: 0;
6022
+ color: ${(props) => props.theme.theme_vars.colours.action};
6023
+ background: none;
6024
+ cursor: pointer;
6025
+ &:hover {
6026
+ ${(props) => props.theme.linkStylesHover};
6027
+ }
6028
+ &:focus {
6029
+ ${(props) => props.theme.linkStylesFocus};
6030
+ }
6031
+ &:active {
6032
+ ${(props) => props.theme.linkStylesActive};
6033
+ }
6034
6034
  `;
6035
6035
 
6036
6036
  const VisuallyHidden = styled.span`
6037
- ${props => props.theme.visuallyHidden}
6037
+ ${(props) => props.theme.visuallyHidden}
6038
6038
  `;
6039
6039
 
6040
6040
  // AccordionSection
@@ -6044,186 +6044,179 @@ const Section = styled.div`
6044
6044
  `;
6045
6045
 
6046
6046
  const SectionHeader = styled.div`
6047
- ${props => props.theme.headingStyles}
6048
- position: relative;
6049
- padding-right: 40px;
6050
- border-top: 1px solid ${props => props.theme.theme_vars.colours.grey};
6051
- color: ${props => props.theme.theme_vars.colours.action};
6052
- cursor: pointer;
6053
- padding-bottom: 15px;
6047
+ ${(props) => props.theme.headingStyles}
6048
+ position: relative;
6049
+ padding-right: 40px;
6050
+ border-top: 1px solid ${(props) => props.theme.theme_vars.colours.grey};
6051
+ color: ${(props) => props.theme.theme_vars.colours.action};
6052
+ cursor: pointer;
6053
+ padding-bottom: 15px;
6054
6054
 
6055
- &:hover {
6056
- border-top-color: ${props => props.theme.theme_vars.colours.action};
6057
- -webkit-box-shadow: inset 0 2px 0 0 ${props => props.theme.theme_vars.colours.action};
6058
- box-shadow: inset 0 2px 0 0 ${props => props.theme.theme_vars.colours.action}
6059
- }
6055
+ &:hover {
6056
+ border-top-color: ${(props) => props.theme.theme_vars.colours.action};
6057
+ -webkit-box-shadow: inset 0 2px 0 0 ${(props) => props.theme.theme_vars.colours.action};
6058
+ box-shadow: inset 0 2px 0 0 ${(props) => props.theme.theme_vars.colours.action};
6059
+ }
6060
6060
  `;
6061
6061
 
6062
6062
  const SectionHeading = styled.div`
6063
- margin-top: 10px;
6064
- margin-bottom: 5px;
6063
+ margin-top: 10px;
6064
+ margin-bottom: 5px;
6065
6065
  `;
6066
6066
 
6067
-
6068
- const SectionButtonIsFilteredStyles = props => {
6069
- if(props.isFilter) {
6070
- return css`
6071
- ${props => props.theme.theme_vars.h4}
6072
- `
6073
- } else {
6074
- return css`
6075
- ${props => props.theme.theme_vars.h3}
6076
- `
6077
- }
6067
+ const SectionButtonIsFilteredStyles = (props) => {
6068
+ if (props.isFilter) {
6069
+ return css`
6070
+ ${(props) => props.theme.theme_vars.h4}
6071
+ `;
6072
+ } else {
6073
+ return css`
6074
+ ${(props) => props.theme.theme_vars.h3}
6075
+ `;
6076
+ }
6078
6077
  };
6079
6078
 
6080
-
6081
6079
  const SectionButton = styled.button`
6082
- display: inline-block;
6083
- margin-top: 0;
6084
- margin-bottom: 0;
6085
- margin-left: 0;
6086
- padding: 0;
6087
- border-width: 0;
6088
- color: inherit;
6089
- background: none;
6090
- text-align: left;
6091
- cursor: pointer;
6092
- -webkit-appearance: none;
6093
- text-decoration: underline;
6080
+ display: inline-block;
6081
+ margin-top: 0;
6082
+ margin-bottom: 0;
6083
+ margin-left: 0;
6084
+ padding: 0;
6085
+ border-width: 0;
6086
+ color: inherit;
6087
+ background: none;
6088
+ text-align: left;
6089
+ cursor: pointer;
6090
+ -webkit-appearance: none;
6091
+ text-decoration: underline;
6094
6092
 
6095
- ${SectionButtonIsFilteredStyles}
6093
+ ${SectionButtonIsFilteredStyles}
6096
6094
 
6097
- &:focus {
6098
- outline: 3px solid transparent;
6099
- color: ${props => props.theme.theme_vars.colours.black};
6100
- background-color: ${props => props.theme.theme_vars.colours.focus};
6101
- -webkit-box-shadow: 0 -2px ${props => props.theme.theme_vars.colours.focus}, 0 4px ${props => props.theme.theme_vars.colours.black};
6102
- box-shadow: 0 -2px ${props => props.theme.theme_vars.colours.focus}, 0 4px ${props => props.theme.theme_vars.colours.black};
6103
- text-decoration: none
6104
- }
6095
+ &:focus {
6096
+ outline: 3px solid transparent;
6097
+ color: ${(props) => props.theme.theme_vars.colours.black};
6098
+ background-color: ${(props) => props.theme.theme_vars.colours.focus};
6099
+ -webkit-box-shadow: 0 -2px ${(props) => props.theme.theme_vars.colours.focus},
6100
+ 0 4px ${(props) => props.theme.theme_vars.colours.black};
6101
+ box-shadow: 0 -2px ${(props) => props.theme.theme_vars.colours.focus},
6102
+ 0 4px ${(props) => props.theme.theme_vars.colours.black};
6103
+ text-decoration: none;
6104
+ }
6105
6105
 
6106
- &::-moz-focus-inner {
6107
- padding: 0;
6108
- border: 0
6109
- }
6106
+ &::-moz-focus-inner {
6107
+ padding: 0;
6108
+ border: 0;
6109
+ }
6110
6110
 
6111
- &:after {
6112
- content: "";
6113
- position: absolute;
6114
- top: 0;
6115
- right: 0;
6116
- bottom: 0;
6117
- left: 0
6118
- }
6111
+ &:after {
6112
+ content: '';
6113
+ position: absolute;
6114
+ top: 0;
6115
+ right: 0;
6116
+ bottom: 0;
6117
+ left: 0;
6118
+ }
6119
6119
 
6120
- &:hover:not(:focus) {
6121
- text-decoration: underline;
6122
- text-decoration-style: dotted;
6123
- }
6120
+ &:hover:not(:focus) {
6121
+ text-decoration: underline;
6122
+ text-decoration-style: dotted;
6123
+ }
6124
6124
 
6125
- &:hover {
6126
- text-decoration: none;
6127
- }
6125
+ &:hover {
6126
+ text-decoration: none;
6127
+ }
6128
6128
  `;
6129
6129
 
6130
6130
  const ReadMore = styled.button`
6131
- ${props => props.theme.linkStyles}
6132
- background: none;
6133
- border: none;
6134
- margin-top: 15px;
6135
- margin-bottom: 10px;
6136
- padding: 0;
6137
- font-size: ${props => props.theme.theme_vars.fontSizes.extra_small};
6131
+ ${(props) => props.theme.linkStyles}
6132
+ background: none;
6133
+ border: none;
6134
+ margin-top: 15px;
6135
+ margin-bottom: 10px;
6136
+ padding: 0;
6137
+ font-size: ${(props) => props.theme.theme_vars.fontSizes.extra_small};
6138
6138
  `;
6139
6139
  const ShowLessButton = styled.button`
6140
- ${props => props.theme.linkStyles}
6141
- background: none;
6142
- border: none;
6143
- margin-top: 15px;
6144
- padding: 0;
6145
- font-size: ${props => props.theme.theme_vars.fontSizes.extra_small};
6146
- cursor: pointer;
6147
-
6148
- &:hover {
6149
- ${props => props.theme.linkStylesHover}
6150
- }
6151
- &:focus {
6152
- ${props => props.theme.linkStylesFocus}
6153
- }
6154
- &:active {
6155
- ${props => props.theme.linkStylesActive}
6156
- }
6157
- `;
6140
+ ${(props) => props.theme.linkStyles}
6141
+ background: none;
6142
+ border: none;
6143
+ margin-top: 15px;
6144
+ padding: 0;
6145
+ font-size: ${(props) => props.theme.theme_vars.fontSizes.extra_small};
6146
+ cursor: pointer;
6158
6147
 
6148
+ &:hover {
6149
+ ${(props) => props.theme.linkStylesHover}
6150
+ }
6151
+ &:focus {
6152
+ ${(props) => props.theme.linkStylesFocus}
6153
+ }
6154
+ &:active {
6155
+ ${(props) => props.theme.linkStylesActive}
6156
+ }
6157
+ `;
6159
6158
 
6160
6159
  const AccordionIcon = styled.span`
6161
- position: absolute;
6162
- top: 50%;
6163
- right: 15px;
6164
- width: 16px;
6165
- height: 16px;
6166
- margin-top: -8px;
6167
-
6168
- &:after,
6169
- &:before {
6170
- content: "";
6171
- -webkit-box-sizing: border-box;
6172
- box-sizing: border-box;
6173
- position: absolute;
6174
- top: 0;
6175
- right: 0;
6176
- bottom: 0;
6177
- left: 0;
6178
- width: 25%;
6179
- height: 25%;
6180
- margin: auto;
6181
- border: 2px solid transparent;
6182
- background-color: ${props => props.theme.theme_vars.colours.black};
6183
- }
6184
-
6185
- &:before {
6186
- width: 100%;
6187
- }
6160
+ position: absolute;
6161
+ top: 22px;
6162
+ right: 4px;
6163
+ width: 34px;
6164
+ height: 32px;
6188
6165
 
6189
- &:after {
6190
- height: 100%;
6166
+ &:before {
6167
+ border-style: solid;
6168
+ border-width: 4px 4px 0 0;
6169
+ content: '';
6170
+ display: inline-block;
6171
+ height: 12px;
6172
+ position: relative;
6173
+ vertical-align: top;
6174
+ width: 12px;
6175
+ border-color: ${(props) => props.theme.theme_vars.colours.black};
6176
+ top: 0;
6177
+ left: 6px;
6178
+ transform: rotate(135deg);
6179
+ }
6191
6180
 
6192
- .accordion__section--expanded & {
6193
- content: " ";
6194
- display: none;
6195
- }
6181
+ &:before {
6182
+ .accordion__section--expanded & {
6183
+ transform: rotate(-45deg);
6184
+ top: 10px;
6196
6185
  }
6186
+ }
6197
6187
  `;
6198
6188
 
6199
6189
  const SectionSummary = styled.div`
6200
- margin-top: 10px;
6201
- margin-bottom: 0;
6202
- color: ${props => props.theme.theme_vars.colours.black};
6190
+ margin-top: 10px;
6191
+ margin-bottom: 0;
6192
+ color: ${(props) => props.theme.theme_vars.colours.black};
6203
6193
  `;
6204
6194
 
6205
6195
  const SectionContent = styled.div`
6206
- display: none;
6207
- padding-top: 5px;
6208
- padding-bottom: 15px;
6196
+ display: none;
6197
+ padding-top: 5px;
6198
+ padding-bottom: 15px;
6209
6199
 
6210
- h2, h3, h4, h5 {
6211
- &:first-child {
6212
- margin-top: 0;
6213
- }
6200
+ h2,
6201
+ h3,
6202
+ h4,
6203
+ h5 {
6204
+ &:first-child {
6205
+ margin-top: 0;
6214
6206
  }
6207
+ }
6215
6208
 
6216
- @media (min-width: 40.0625em) {
6217
- padding-bottom: 25px
6218
- }
6209
+ @media (min-width: 40.0625em) {
6210
+ padding-bottom: 25px;
6211
+ }
6219
6212
 
6220
- >:last-child {
6221
- margin-bottom: 0
6222
- }
6213
+ > :last-child {
6214
+ margin-bottom: 0;
6215
+ }
6223
6216
 
6224
- .accordion__section--expanded & {
6225
- display: block;
6226
- }
6217
+ .accordion__section--expanded & {
6218
+ display: block;
6219
+ }
6227
6220
  `;
6228
6221
 
6229
6222
  const uniqueID = () => {
@@ -6235,26 +6228,25 @@ const uniqueID = () => {
6235
6228
 
6236
6229
  var AccordionSection = function (_a) {
6237
6230
  var title = _a.title, content = _a.content, summary = _a.summary, isExpanded = _a.isExpanded, accordionSectionId = _a.accordionSectionId, onToggle = _a.onToggle, _b = _a.isFilter, isFilter = _b === void 0 ? false : _b, withReadMore = _a.withReadMore, _c = _a.sectionId, sectionId = _c === void 0 ? false : _c;
6238
- var onSectionToggle = function () { return (isExpanded === true) ? onToggle(accordionSectionId, false) : onToggle(accordionSectionId, true); };
6239
- var thisSectionId = (sectionId === false) ? "accordion_section".concat(uniqueID()) : sectionId;
6240
- return (React.createElement(Section, { id: thisSectionId, className: isExpanded && "accordion__section--expanded" },
6231
+ var onSectionToggle = function () {
6232
+ return isExpanded === true ? onToggle(accordionSectionId, false) : onToggle(accordionSectionId, true);
6233
+ };
6234
+ var thisSectionId = sectionId === false ? "accordion_section".concat(uniqueID()) : sectionId;
6235
+ return (React.createElement(Section, { id: thisSectionId, className: isExpanded && 'accordion__section--expanded' },
6241
6236
  React.createElement(SectionHeader, { onClick: onSectionToggle },
6242
- React.createElement(SectionHeading, { as: isFilter ? "h3" : "h2" },
6243
- React.createElement(SectionButton, { title: isExpanded ? "Minimise " + title : title, isFilter: isFilter, type: "button", id: "".concat(thisSectionId, "_").concat(accordionSectionId, "-heading"), "aria-controls": "".concat(thisSectionId, "_").concat(accordionSectionId, "-content"), "aria-expanded": isExpanded ? "true" : "false" },
6237
+ React.createElement(SectionHeading, { as: isFilter ? 'h3' : 'h2' },
6238
+ React.createElement(SectionButton, { title: isExpanded ? 'Minimise ' + title : title, isFilter: isFilter, type: "button", id: "".concat(thisSectionId, "_").concat(accordionSectionId, "-heading"), "aria-controls": "".concat(thisSectionId, "_").concat(accordionSectionId, "-content"), "aria-expanded": isExpanded ? 'true' : 'false' },
6244
6239
  title,
6245
6240
  React.createElement(AccordionIcon, { "aria-hidden": "true" }))),
6246
- summary &&
6247
- React.createElement(SectionSummary, { id: "".concat(thisSectionId, "_").concat(accordionSectionId, "-summary") }, summary),
6248
- !isExpanded && withReadMore &&
6249
- React.createElement(ReadMore, { title: "Read more about " + title }, "Read more")),
6241
+ summary && (React.createElement(SectionSummary, { id: "".concat(thisSectionId, "_").concat(accordionSectionId, "-summary") }, summary)),
6242
+ !isExpanded && withReadMore && React.createElement(ReadMore, { title: 'Read more about ' + title }, "Read more")),
6250
6243
  React.createElement(SectionContent, { id: "".concat(thisSectionId, "_").concat(accordionSectionId, "-content"), "aria-labelledby": "".concat(thisSectionId, "_").concat(accordionSectionId, "-heading") },
6251
6244
  content,
6252
- isExpanded && withReadMore &&
6253
- React.createElement(ShowLessButton, { onClick: onSectionToggle }, "Show less"))));
6245
+ isExpanded && withReadMore && (React.createElement(ShowLessButton, { onClick: onSectionToggle }, "Show less")))));
6254
6246
  };
6255
6247
 
6256
6248
  var Accordion = function (_a) {
6257
- 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;
6258
6250
  sections.map(function (section, i) {
6259
6251
  section.accordionSectionId = i;
6260
6252
  });
@@ -6287,10 +6279,10 @@ var Accordion = function (_a) {
6287
6279
  setAccordionStates(newStatus);
6288
6280
  };
6289
6281
  var accordionId = "accordion".concat(uniqueID());
6290
- return (React.createElement(Container$A, { "data-testid": "Accordion", id: accordionId },
6282
+ return (React.createElement(Container$B, { "data-testid": "Accordion", id: accordionId },
6291
6283
  showControls && sections.length > 1 && (React.createElement(AccordionControls, null,
6292
6284
  React.createElement(OpenAllButton, { onClick: toggleAll, type: "button", "aria-expanded": !openAll },
6293
- openAll ? "Open all" : "Close all",
6285
+ openAll ? 'Open all' : 'Close all',
6294
6286
  React.createElement(VisuallyHidden, null, " sections")))),
6295
6287
  accordionStates.map(function (section, i) { return (React.createElement(AccordionSection, __assign({}, section, { key: i, onToggle: updateAccordionState, isFilter: isFilter, withReadMore: withReadMore }))); })));
6296
6288
  };
@@ -6338,7 +6330,7 @@ var BlockQuote = function (_a) {
6338
6330
  citation && React.createElement(Citation, null, citation)));
6339
6331
  };
6340
6332
 
6341
- const Container$z = styled.div`
6333
+ const Container$A = styled.div`
6342
6334
  margin-bottom: 30px;
6343
6335
  display: block;
6344
6336
 
@@ -6353,11 +6345,11 @@ const Container$z = styled.div`
6353
6345
  */
6354
6346
  var CallToAction = function (_a) {
6355
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"]);
6356
- return (React.createElement(Container$z, null,
6348
+ return (React.createElement(Container$A, null,
6357
6349
  React.createElement(Button$2, { primary: primary, size: "large", text: text, url: url, isExternal: isExternal, isDisabled: isDisabled })));
6358
6350
  };
6359
6351
 
6360
- const Container$y = styled.div`
6352
+ const Container$z = styled.div`
6361
6353
  margin: 25px 0;
6362
6354
  `;
6363
6355
 
@@ -6473,7 +6465,7 @@ var FileDownload = function (_a) {
6473
6465
 
6474
6466
  var DownloadableFiles = function (_a) {
6475
6467
  var files = _a.files;
6476
- return (React.createElement(Container$y, { "data-testid": "DownloadableFiles" }, files.length > 0 ?
6468
+ return (React.createElement(Container$z, { "data-testid": "DownloadableFiles" }, files.length > 0 ?
6477
6469
  files.map(function (file) { return React.createElement(FileDownload, __assign({ key: file.title }, file)); })
6478
6470
  :
6479
6471
  React.createElement("i", null, "No file to show")));
@@ -6696,7 +6688,7 @@ var AccessibleLink = function (_a) {
6696
6688
  })));
6697
6689
  };
6698
6690
 
6699
- const Container$x = styled.div`
6691
+ const Container$y = styled.div`
6700
6692
  padding: 15px 0;
6701
6693
  background: ${props => props.alertType === "alert" ? props.theme.theme_vars.colours.negative :
6702
6694
  props.alertType === "warning" ? props.theme.theme_vars.colours.focus :
@@ -6797,7 +6789,7 @@ const handleContainerPadding = (noBackground, noPadding) => {
6797
6789
  }
6798
6790
  };
6799
6791
 
6800
- const Container$w = styled.div`
6792
+ const Container$x = styled.div`
6801
6793
  background: ${props => props.noBackground ? "transparent" :
6802
6794
  props.theme.cardinal_name === "north" ? (props.theme.theme_vars.colours.grey_light+"7a") : props.theme.theme_vars.colours.white};
6803
6795
  overflow: ${props => props.noPadding ? "hidden" : "visible"};
@@ -6831,7 +6823,7 @@ const MaxWidth = styled.div`
6831
6823
  */
6832
6824
  var MaxWidthContainer = function (_a) {
6833
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"]);
6834
- return (React.createElement(Container$w, { noBackground: noBackground, noPadding: noPadding },
6826
+ return (React.createElement(Container$x, { noBackground: noBackground, noPadding: noPadding },
6835
6827
  React.createElement(MaxWidth, __assign({ className: classes, overflowVisible: overflowVisible }, props), children)));
6836
6828
  };
6837
6829
 
@@ -6843,7 +6835,7 @@ var AlertBanner = function (_a) {
6843
6835
  setHideAlert(false);
6844
6836
  };
6845
6837
  return (hideAlert &&
6846
- React.createElement(Container$x, { alertType: alertType },
6838
+ React.createElement(Container$y, { alertType: alertType },
6847
6839
  React.createElement(MaxWidthContainer, { noBackground: true },
6848
6840
  React.createElement(InnerContainer$1, null,
6849
6841
  React.createElement(BannerContentContainer, null,
@@ -6893,7 +6885,7 @@ function useLocalStorage$1(key, initialValue) {
6893
6885
  return [storedValue, setValue];
6894
6886
  }
6895
6887
 
6896
- const Container$v = styled.div`
6888
+ const Container$w = styled.div`
6897
6889
  border: solid 4px;
6898
6890
  border-radius: ${(props) => props.theme.theme_vars.border_radius};
6899
6891
  border-color: ${(props) =>
@@ -6911,6 +6903,7 @@ const Container$v = styled.div`
6911
6903
  margin-bottom: 25px;
6912
6904
  display: flex;
6913
6905
  justify-content: center;
6906
+ margin-top: ${(props) => (props.hasTopSpacing ? `25px` : `0`)};
6914
6907
 
6915
6908
  @media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.s}) {
6916
6909
  padding: 20px;
@@ -6941,79 +6934,81 @@ const InnerContainer = styled.div`
6941
6934
  `;
6942
6935
 
6943
6936
  /**
6944
- * 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
6945
6939
  */
6946
6940
  var AlertBannerService = function (_a) {
6947
- var title = _a.title, _b = _a.alertType, alertType = _b === void 0 ? 'alert' : _b, children = _a.children;
6948
- 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 },
6949
6943
  React.createElement(InnerContainer, { "data-testid": "AlertBannerServiceInner" },
6950
- React.createElement(Heading, { text: title }),
6944
+ (title === null || title === void 0 ? void 0 : title.trim()) && React.createElement(Heading, { text: title }),
6951
6945
  children)));
6952
6946
  };
6953
6947
 
6954
- const Container$u = styled.div`
6955
- padding-top: 20px;
6956
- 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)};
6957
6952
  `;
6958
6953
 
6959
6954
  const List$1 = styled.ol`
6960
- list-style: none;
6961
- padding-left: 0px;
6962
- margin-top: 0;
6963
- display: none;
6964
- margin-bottom: 20px;
6955
+ list-style: none;
6956
+ padding-left: 0px;
6957
+ margin-top: 0;
6958
+ display: none;
6959
+ margin-bottom: 20px;
6965
6960
 
6966
- @media screen and (min-width: ${props => props.theme.theme_vars.breakpoints.m}){
6967
- display: block;
6968
- }
6961
+ @media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.m}) {
6962
+ display: block;
6963
+ }
6969
6964
  `;
6970
6965
 
6971
6966
  const Crumb = styled.li`
6972
- display: inline;
6973
- margin-right: 10px;
6974
- &:last-of-type svg {
6975
- display: none;
6976
- }
6967
+ display: inline;
6968
+ margin-right: 10px;
6969
+ &:last-of-type svg {
6970
+ display: none;
6971
+ }
6977
6972
  `;
6978
6973
  const IconWrapper$4 = styled.div`
6979
- display: inline-block;
6980
- margin-left: 10px;
6981
- vertical-align: middle;
6974
+ display: inline-block;
6975
+ margin-left: 10px;
6976
+ vertical-align: middle;
6982
6977
  `;
6983
6978
  const MobileCrumb = styled.div`
6984
- display: block;
6985
- padding: 15px 0;
6986
- margin-top: -15px;
6979
+ display: block;
6980
+ padding: 15px 0;
6981
+ margin-top: -15px;
6987
6982
 
6988
- @media screen and (min-width: ${props => props.theme.theme_vars.breakpoints.m}){
6989
- display: none;
6990
- }
6983
+ @media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.m}) {
6984
+ display: none;
6985
+ }
6991
6986
  `;
6992
6987
  const BackIconWrapper = styled.div`
6993
- display: inline-block;
6994
- margin-right: 10px;
6995
- vertical-align: middle;
6988
+ display: inline-block;
6989
+ margin-right: 10px;
6990
+ vertical-align: middle;
6996
6991
  `;
6997
6992
  const BreadcrumbLink = styled.a`
6998
- ${props => props.theme.linkStyles}
6999
- font-weight: 400;
6993
+ ${(props) => props.theme.linkStyles}
6994
+ font-weight: 400;
7000
6995
 
7001
- svg {
7002
- fill: ${props => props.theme.theme_vars.colours.action};
7003
- }
6996
+ svg {
6997
+ fill: ${(props) => props.theme.theme_vars.colours.action};
6998
+ }
7004
6999
 
7005
- &:hover{
7006
- ${props => props.theme.linkStylesHover}
7007
- }
7008
- &:focus{
7009
- ${props => props.theme.linkStylesFocus}
7010
- svg {
7011
- fill: ${props => props.theme.theme_vars.colours.black};
7012
- }
7013
- }
7014
- &:active{
7015
- ${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};
7016
7007
  }
7008
+ }
7009
+ &:active {
7010
+ ${(props) => props.theme.linkStylesActive}
7011
+ }
7017
7012
  `;
7018
7013
 
7019
7014
  const StyledSVG = styled.svg`
@@ -7040,22 +7035,20 @@ var ChevronIcon = function (_a) {
7040
7035
  };
7041
7036
 
7042
7037
  var Breadcrumbs = function (_a) {
7043
- var breadcrumbsArray = _a.breadcrumbsArray;
7044
- return (React.createElement(Container$u, null,
7045
- React.createElement(List$1, null, breadcrumbsArray.map(function (crumb) {
7046
- return React.createElement(Crumb, { key: crumb.title }, React.createElement(React.Fragment, null,
7047
- React.createElement(BreadcrumbLink, { href: crumb.url, title: crumb.title }, crumb.title),
7048
- React.createElement(IconWrapper$4, null,
7049
- React.createElement(ChevronIcon, { direction: "right", colourFill: "#C6C6C6" }))));
7050
- })),
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" }))))); })),
7051
7044
  React.createElement(MobileCrumb, null,
7052
- 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' },
7053
7046
  React.createElement(BackIconWrapper, null,
7054
- React.createElement(ChevronIcon, { direction: "left" })),
7047
+ React.createElement(ChevronIcon, { direction: 'left' })),
7055
7048
  "Back"))));
7056
7049
  };
7057
7050
 
7058
- const Container$t = styled.div`
7051
+ const Container$u = styled.div`
7059
7052
  ${props => props.theme.fontStyles}
7060
7053
  background-color: ${props => props.theme.theme_vars.colours.grey_light};
7061
7054
  padding: ${props => props.theme.theme_vars.spacingSizes.medium} 0;
@@ -7341,7 +7334,7 @@ var CookieBanner = function (_a) {
7341
7334
  };
7342
7335
  return (React.createElement(React.Fragment, null,
7343
7336
  showCookieBanner &&
7344
- React.createElement(Container$t, { "data-testid": "CookieBanner" },
7337
+ React.createElement(Container$u, { "data-testid": "CookieBanner" },
7345
7338
  React.createElement(CookieMessage, null,
7346
7339
  React.createElement(CookieHeading, null, title),
7347
7340
  React.createElement(CookieParagraph, null, paragraph),
@@ -7349,12 +7342,12 @@ var CookieBanner = function (_a) {
7349
7342
  React.createElement(FormButton, { primary: true, text: acceptButtonText, isDisabled: true, onClick: acceptCookies }),
7350
7343
  React.createElement(FormButton, { primary: true, text: rejectButtonText, isDisabled: true, onClick: rejectCookies })))),
7351
7344
  showCookiesRejectedBanner &&
7352
- React.createElement(Container$t, { "data-testid": "CookieBannerRejected", id: "CookieBannerRejected" },
7345
+ React.createElement(Container$u, { "data-testid": "CookieBannerRejected", id: "CookieBannerRejected" },
7353
7346
  React.createElement(CookieMessage, { isInline: true },
7354
7347
  React.createElement(CookieParagraph, null, rejectConfirmationText),
7355
7348
  React.createElement(CookieHide, { onClick: hideCookiesConfirmationBanner, "aria-controls": "CookieBannerRejected", "aria-hidden": "false" }, "Hide"))),
7356
7349
  showCookiesAcceptedBanner &&
7357
- React.createElement(Container$t, { "data-testid": "CookieBannerAccepted", id: "CookieBannerAccepted" },
7350
+ React.createElement(Container$u, { "data-testid": "CookieBannerAccepted", id: "CookieBannerAccepted" },
7358
7351
  React.createElement(CookieMessage, { isInline: true },
7359
7352
  React.createElement(CookieParagraph, null, acceptConfirmationText),
7360
7353
  React.createElement(CookieHide, { onClick: hideCookiesConfirmationBanner, "aria-controls": "CookieBannerAccepted", "aria-hidden": "false" }, "Hide")))));
@@ -7392,7 +7385,7 @@ var DisplayDate = function (_a) {
7392
7385
  postText));
7393
7386
  };
7394
7387
 
7395
- const Container$s = styled.footer`
7388
+ const Container$t = styled.footer`
7396
7389
  background-color: ${props => props.theme.theme_vars.colours.black};
7397
7390
  padding: 25px 0;
7398
7391
  `;
@@ -7547,7 +7540,7 @@ var ServiceIcon = function (_a) {
7547
7540
  var Footer = function (_a) {
7548
7541
  var _b = _a.footerLinksArray, footerLinksArray = _b === void 0 ? null : _b, _c = _a.year, year = _c === void 0 ? "2021" : _c;
7549
7542
  var themeContext = useContext(ThemeContext);
7550
- return (React.createElement(Container$s, null,
7543
+ return (React.createElement(Container$t, null,
7551
7544
  React.createElement(StyledMaxWidthContainer$3, { noBackground: true },
7552
7545
  React.createElement(FooterAlignment, null,
7553
7546
  React.createElement("div", null,
@@ -7580,9 +7573,9 @@ var Footer = function (_a) {
7580
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)))))));
7581
7574
  };
7582
7575
 
7583
- const Container$r = styled.div`
7576
+ const Container$s = styled.div`
7584
7577
  background: ${(props) => (props.hasBackground ? props.theme.theme_vars.colours.grey_light : 'transparent')};
7585
- padding: ${(props) => (props.hasPadding ? '50px 0' : '0')};
7578
+ padding: ${(props) => (props.hasPadding ? '50px 0 20px' : '0')};
7586
7579
  `;
7587
7580
 
7588
7581
  /**
@@ -7590,7 +7583,7 @@ const Container$r = styled.div`
7590
7583
  */
7591
7584
  var FullWidthContainer = function (_a) {
7592
7585
  var children = _a.children, _b = _a.hasBackground, hasBackground = _b === void 0 ? false : _b, _c = _a.hasPadding, hasPadding = _c === void 0 ? false : _c;
7593
- 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));
7594
7587
  };
7595
7588
 
7596
7589
  /**
@@ -7622,7 +7615,7 @@ const headerThemeStyles = props => {
7622
7615
  }
7623
7616
  };
7624
7617
 
7625
- const Container$q = styled.header`
7618
+ const Container$r = styled.header`
7626
7619
  font-family: ${props => props.theme.theme_vars.fontstack};
7627
7620
  padding: 3px 0;
7628
7621
  ${headerThemeStyles}
@@ -7781,7 +7774,7 @@ var NorthColouredLogo = function () {
7781
7774
  React.createElement("path", { fill: "#fff", d: "M0 0H974V327H0z" })))));
7782
7775
  };
7783
7776
 
7784
- const Container$p = styled.div`
7777
+ const Container$q = styled.div`
7785
7778
  ${props => props.theme.fontStyles}
7786
7779
  width: calc(100% - ${ props => props.isLarge ? "5rem" : "3rem"});
7787
7780
  `;
@@ -7927,7 +7920,7 @@ var Searchbar = function (_a) {
7927
7920
  /**
7928
7921
  * Render the component
7929
7922
  */
7930
- return (React.createElement(Container$p, { "data-testid": "Searchbar", isLarge: isLarge },
7923
+ return (React.createElement(Container$q, { "data-testid": "Searchbar", isLarge: isLarge },
7931
7924
  React.createElement("form", { onSubmit: handleSubmit },
7932
7925
  React.createElement("div", { role: "search" },
7933
7926
  React.createElement(InputWrapper, null,
@@ -7982,7 +7975,7 @@ var Header = function (_a) {
7982
7975
  }
7983
7976
  };
7984
7977
  return (React.createElement(React.Fragment, null,
7985
- React.createElement(Container$q, __assign({}, props),
7978
+ React.createElement(Container$r, __assign({}, props),
7986
7979
  React.createElement(StyledMaxWidthContainer$2, { noBackground: true },
7987
7980
  React.createElement(LogoWrapper, null,
7988
7981
  React.createElement(HomeLink, { href: homeLink, title: "Home", id: "logo" }, themeLogos(themeContext.cardinal_name, themeContext.is_memorial))),
@@ -8002,7 +7995,7 @@ var Header = function (_a) {
8002
7995
  * Hero image container with optional dark gradient for non-box mode
8003
7996
  * Optimised for an image in 16:5 ratio on all but small width screens
8004
7997
  */
8005
- const Container$o = styled.div`
7998
+ const Container$p = styled.div`
8006
7999
  background-image: ${(props) =>
8007
8000
  !props.backgroundBox
8008
8001
  ? `linear-gradient(to bottom left, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.75)),`
@@ -23198,7 +23191,7 @@ function markDirtyUp(node) {
23198
23191
  }
23199
23192
  }
23200
23193
 
23201
- class Container$n extends node_1 {
23194
+ class Container$o extends node_1 {
23202
23195
  push(child) {
23203
23196
  child.parent = this;
23204
23197
  this.proxyOf.nodes.push(child);
@@ -23491,7 +23484,7 @@ class Container$n extends node_1 {
23491
23484
 
23492
23485
  let processed = nodes.map(i => {
23493
23486
  /* c8 ignore next */
23494
- if (!i[my$1]) Container$n.rebuild(i);
23487
+ if (!i[my$1]) Container$o.rebuild(i);
23495
23488
  i = i.proxyOf;
23496
23489
  if (i.parent) i.parent.removeChild(i);
23497
23490
  if (i[isClean$1]) markDirtyUp(i);
@@ -23569,23 +23562,23 @@ class Container$n extends node_1 {
23569
23562
  }
23570
23563
  }
23571
23564
 
23572
- Container$n.registerParse = dependant => {
23565
+ Container$o.registerParse = dependant => {
23573
23566
  parse$2 = dependant;
23574
23567
  };
23575
23568
 
23576
- Container$n.registerRule = dependant => {
23569
+ Container$o.registerRule = dependant => {
23577
23570
  Rule$1 = dependant;
23578
23571
  };
23579
23572
 
23580
- Container$n.registerAtRule = dependant => {
23573
+ Container$o.registerAtRule = dependant => {
23581
23574
  AtRule$1 = dependant;
23582
23575
  };
23583
23576
 
23584
- var container = Container$n;
23585
- Container$n.default = Container$n;
23577
+ var container = Container$o;
23578
+ Container$o.default = Container$o;
23586
23579
 
23587
23580
  /* c8 ignore start */
23588
- Container$n.rebuild = node => {
23581
+ Container$o.rebuild = node => {
23589
23582
  if (node.type === 'atrule') {
23590
23583
  Object.setPrototypeOf(node, AtRule$1.prototype);
23591
23584
  } else if (node.type === 'rule') {
@@ -23600,7 +23593,7 @@ Container$n.rebuild = node => {
23600
23593
 
23601
23594
  if (node.nodes) {
23602
23595
  node.nodes.forEach(child => {
23603
- Container$n.rebuild(child);
23596
+ Container$o.rebuild(child);
23604
23597
  });
23605
23598
  }
23606
23599
  };
@@ -26183,7 +26176,7 @@ var HeroImage = function (_a) {
26183
26176
  return (React.createElement(React.Fragment, null,
26184
26177
  React.createElement(LazyImage, { src: imageLarge, placeholder: imageSmall, visibilitySensorProps: {
26185
26178
  partialVisibility: true,
26186
- } }, 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" },
26187
26180
  React.createElement(Overlay, { backgroundBox: backgroundBox, "data-testid": "HeroImageOverlay" },
26188
26181
  headline && React.createElement(Headline, { level: 1, text: headline, backgroundBox: backgroundBox }),
26189
26182
  content && React.createElement(Content$1, { dangerouslySetInnerHTML: { __html: sanitizeHtml$1(content) } }),
@@ -26194,19 +26187,23 @@ var HeroImage = function (_a) {
26194
26187
  };
26195
26188
 
26196
26189
  const Wrapper$4 = styled.header`
26197
- background: ${props => props.noBackground ? "transparent" :
26198
- 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};
26199
26196
  `;
26200
26197
 
26201
- const Container$m = styled.div`
26202
- font-family: ${props => props.theme.theme_vars.fontstack};
26198
+ const Container$n = styled.div`
26199
+ font-family: ${(props) => props.theme.theme_vars.fontstack};
26203
26200
  overflow: hidden;
26204
- background: ${props => props.theme.theme_vars.colours.action}5A;
26201
+ background: ${(props) => props.theme.theme_vars.colours.action}5A;
26205
26202
  padding: 30px 0;
26206
26203
  padding-bottom: 15px;
26207
26204
 
26208
- @media screen and (min-width: ${props => props.theme.theme_vars.breakpoints.s}){
26209
- 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}");
26210
26207
  background-size: cover;
26211
26208
  background-repeat: no-repeat;
26212
26209
  background-position: center;
@@ -26215,10 +26212,10 @@ const Container$m = styled.div`
26215
26212
  background-image: none;
26216
26213
  }
26217
26214
  }
26218
- @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}){
26219
26216
  padding: 60px 0;
26220
26217
  }
26221
- @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)){
26222
26219
  margin-right: auto;
26223
26220
  margin-left: auto;
26224
26221
  padding: 90px 0;
@@ -26227,63 +26224,72 @@ const Container$m = styled.div`
26227
26224
  `;
26228
26225
 
26229
26226
  const StyledMaxWidthContainer$1 = styled.div`
26230
- ${props => props.theme.fontStyles}
26227
+ ${(props) => props.theme.fontStyles}
26231
26228
  margin-right: 15px;
26232
26229
  margin-left: 15px;
26233
26230
 
26234
- @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}){
26235
26232
  margin-right: 30px;
26236
26233
  margin-left: 30px;
26237
26234
  }
26238
26235
 
26239
- @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)){
26240
26237
  margin-right: auto;
26241
26238
  margin-left: auto;
26242
- max-width: ${props => props.theme.theme_vars.breakpoints.l};
26239
+ max-width: ${(props) => props.theme.theme_vars.breakpoints.l};
26243
26240
  }
26244
26241
  `;
26245
26242
  const HiddenH1$1 = styled.h1`
26246
- visibility: hidden;
26243
+ visibility: hidden;
26247
26244
  `;
26248
26245
 
26249
26246
  const MainBox = styled.div`
26250
- padding: 30px;
26251
- background: ${props => props.theme.theme_vars.colours.white};
26252
- background: ${props => props.theme.theme_vars.colours.white}F2;
26253
- box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.11);
26254
- -webkit-box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.11);
26255
- -moz-box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.11);
26256
- 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;
26257
26254
 
26258
- @media screen and (min-width: ${props => props.theme.theme_vars.breakpoints.m}){
26259
- max-width: calc(50% - 60px);
26260
- }
26255
+ @media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.m}) {
26256
+ max-width: calc(50% - 60px);
26257
+ }
26261
26258
  `;
26262
26259
 
26263
26260
  const Topline = styled.p`
26264
- color: ${props => props.theme.theme_vars.colours.grey_dark};
26261
+ color: ${(props) => props.theme.theme_vars.colours.grey_dark};
26265
26262
  `;
26266
26263
 
26267
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 {
26268
26272
  svg {
26269
- margin-top: -45px;
26270
- max-width: 450px;
26271
- width: 95%;
26272
- height: auto;
26273
- }
26274
- &.black_logo {
26275
- svg {
26276
- fill: black !important;
26277
- path {
26278
- fill: black !important;
26279
- }
26280
- }
26273
+ fill: black !important;
26274
+ path {
26275
+ fill: black !important;
26276
+ }
26281
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
+ }
26282
26288
  `;
26283
26289
 
26284
26290
  const Strapline = styled.p`
26285
- margin-bottom: 20px;
26286
- margin-top: -10px;
26291
+ margin-bottom: 20px;
26292
+ margin-top: -10px;
26287
26293
  `;
26288
26294
 
26289
26295
  var WestColouredLogo = function () {
@@ -26321,40 +26327,39 @@ var WestColouredLogo = function () {
26321
26327
  * The Hero that should appear at the top of the home page.
26322
26328
  */
26323
26329
  var HomeHero = function (_a) {
26324
- 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;
26325
26331
  var themeContext = useContext(ThemeContext);
26326
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';
26327
26335
  useEffect(function () {
26328
26336
  setRandom(Math.floor(Math.random() * imagesArray.length));
26329
26337
  }, []);
26330
26338
  return (React.createElement(React.Fragment, null,
26331
26339
  React.createElement(Wrapper$4, null,
26332
26340
  React.createElement(LazyImage, { src: random !== 999 && imagesArray[random].image1440x810 ? imagesArray[random].image1440x810 : '', placeholder: random !== 999 && imagesArray[random].image144x81 ? imagesArray[random].image144x81 : '', visibilitySensorProps: {
26333
- partialVisibility: true
26334
- } }, function (src) {
26335
- return React.createElement(Container$m, { className: random !== 999 ? "loaded" : "loading", image: src, title: random !== 999 && imagesArray[random].imageAltText ? imagesArray[random].imageAltText : "" },
26336
- React.createElement(StyledMaxWidthContainer$1, null,
26337
- React.createElement(MainBox, null,
26338
- topline &&
26339
- React.createElement(Topline, null, topline),
26340
- React.createElement(HiddenH1$1, null,
26341
- themeContext.full_name,
26342
- " Council"),
26343
- 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))),
26344
- strapline &&
26345
- React.createElement(Strapline, null, strapline),
26346
- React.createElement(Searchbar, { isLight: true, isLarge: true, placeholder: "Search the site", submitInfo: {
26347
- postTo: "/search",
26348
- params: {
26349
- type: "search"
26350
- }
26351
- }, suggestions: searchSuggestions, maximumMatchesShown: 4 })),
26352
- promotedLinksArray.length > 0 &&
26353
- React.createElement(PromotedLinks, { promotedLinksArray: promotedLinksArray })));
26354
- }))));
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 })))); }))));
26355
26360
  };
26356
26361
 
26357
- const Container$l = styled.div`
26362
+ const Container$m = styled.div`
26358
26363
  h2 {
26359
26364
  border-bottom: 1px solid ${props => props.theme.theme_vars.colours.grey_dark};
26360
26365
  max-width: none;
@@ -30208,7 +30213,7 @@ axios_1.default = _default;
30208
30213
 
30209
30214
  var axios = axios_1;
30210
30215
 
30211
- const Container$k = styled.div`
30216
+ const Container$l = styled.div`
30212
30217
  strong {
30213
30218
  font-weight: bold;
30214
30219
  }
@@ -30345,7 +30350,7 @@ var HintText = function (_a) {
30345
30350
  return (React.createElement(HintText$1, null, text));
30346
30351
  };
30347
30352
 
30348
- const Container$j = styled.div`
30353
+ const Container$k = styled.div`
30349
30354
  display: flex;
30350
30355
  -webkit-flex-direction: row;
30351
30356
  -moz-flex-direction: row;
@@ -30380,7 +30385,7 @@ const ErrorSummary = styled.div`
30380
30385
  */
30381
30386
  var FormWithLine = function (_a) {
30382
30387
  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;
30383
- return (React.createElement(Container$j, null,
30388
+ return (React.createElement(Container$k, null,
30384
30389
  React.createElement(Line, { lineColour: lineColour, hideLine: hideLine, isError: isError }),
30385
30390
  React.createElement(Form, { onSubmit: onSubmit, hideLine: hideLine, role: formRole, method: formMethod, url: formURL },
30386
30391
  errorSummary && React.createElement(ErrorSummary, null, errorSummary),
@@ -30541,7 +30546,7 @@ var PostCodeSearch = function (_a) {
30541
30546
  setCurrentPostcode(currentPostcode + " (" + singleAddress.title + ")");
30542
30547
  }
30543
30548
  }
30544
- return (React.createElement(Container$k, null,
30549
+ return (React.createElement(Container$l, null,
30545
30550
  React.createElement(DropDownButton, { onClick: function () { return setOpen(open ? false : true); } },
30546
30551
  React.createElement(IconWrapper$3, null,
30547
30552
  React.createElement(ChevronIcon, { direction: open ? "down" : "right", colourFill: themeContext.theme_vars.colours.black })),
@@ -30727,7 +30732,7 @@ var HomeUnitarySection = function (_a) {
30727
30732
  var themeContext = useContext(ThemeContext);
30728
30733
  var northLink = themeContext.cardinal_name === "north" ? themeContext.theme_vars.council_link : themeContext.theme_vars.other_council_link;
30729
30734
  var westLink = themeContext.cardinal_name === "west" ? themeContext.theme_vars.council_link : themeContext.theme_vars.other_council_link;
30730
- return (React.createElement(Container$l, null,
30735
+ return (React.createElement(Container$m, null,
30731
30736
  React.createElement(Heading, { text: title }),
30732
30737
  React.createElement("p", null, firstLine),
30733
30738
  React.createElement(PostCodeSearch, { isUnitary: true, title: postcodeText }),
@@ -30750,7 +30755,7 @@ overflow: ${props => props.noPadding ? "hidden" : "visible"};
30750
30755
  padding-bottom: 0px;
30751
30756
  `;
30752
30757
 
30753
- const Container$i = styled.div`
30758
+ const Container$j = styled.div`
30754
30759
  font-family: ${props => props.theme.theme_vars.fontstack};
30755
30760
  display: flex;
30756
30761
  flex-wrap: wrap;
@@ -30890,7 +30895,7 @@ var MemorialHero = function (_a) {
30890
30895
  React.createElement(HiddenH1, null,
30891
30896
  themeContext.full_name,
30892
30897
  " Council"),
30893
- React.createElement(Container$i, null,
30898
+ React.createElement(Container$j, null,
30894
30899
  React.createElement(Left, null,
30895
30900
  children,
30896
30901
  React.createElement(ThemeProvider, { theme: theme }, councilServices)),
@@ -30920,7 +30925,7 @@ var NewsArticleDate = function (_a) {
30920
30925
  const imageHeightMobile$2 = 150;
30921
30926
  const imageHeightDesktop$1 = 200;
30922
30927
 
30923
- const Container$h = styled.div`
30928
+ const Container$i = styled.div`
30924
30929
  ${props => props.theme.fontStyles};
30925
30930
  padding: 15px 0;
30926
30931
 
@@ -31088,7 +31093,7 @@ var NewsArticleFeaturedBlock = function (_a) {
31088
31093
  return (React.createElement(React.Fragment, null,
31089
31094
  !withoutTitle &&
31090
31095
  React.createElement(Heading, { text: "News articles and press releases" }),
31091
- React.createElement(Container$h, null, articles.map(function (article) {
31096
+ React.createElement(Container$i, null, articles.map(function (article) {
31092
31097
  return React.createElement(ArticleContainer$1, { key: article.id, href: article.url },
31093
31098
  article.image720x405 &&
31094
31099
  React.createElement(LazyImage, { src: article.image720x405, placeholder: article.image72x41, visibilitySensorProps: {
@@ -31110,7 +31115,7 @@ var NewsArticleFeaturedBlock = function (_a) {
31110
31115
  }
31111
31116
  };
31112
31117
 
31113
- const Container$g = styled.div`
31118
+ const Container$h = styled.div`
31114
31119
  /* margin-top: 50px; */
31115
31120
  /* border: 1px solid red; */
31116
31121
 
@@ -31212,7 +31217,7 @@ const FilterHeading = styled.h2`
31212
31217
  // display: block;
31213
31218
  // overflow: hidden;
31214
31219
 
31215
- const Container$f = styled.a`
31220
+ const Container$g = styled.a`
31216
31221
  ${props => props.theme.linkStyles}
31217
31222
  color: ${props => props.theme.theme_vars.colours.negative} !important;
31218
31223
  font-weight: normal;
@@ -31241,7 +31246,7 @@ var RemoveAllFilters = function (_a) {
31241
31246
  e.preventDefault();
31242
31247
  removeParams(__spreadArray(__spreadArray([], NewsArticleFilterFields.removeFiltersList, true), ['page'], false));
31243
31248
  };
31244
- return (React.createElement(Container$f, { "data-testid": "RemoveAllFilters", href: "#", onClick: removeAllFilters },
31249
+ return (React.createElement(Container$g, { "data-testid": "RemoveAllFilters", href: "#", onClick: removeAllFilters },
31245
31250
  "Clear ",
31246
31251
  searchValue.length > 0 && 'search term and ',
31247
31252
  "filters",
@@ -31288,7 +31293,7 @@ var NewsArticleFilterAccordion = function (_a) {
31288
31293
  section.isExpanded = false;
31289
31294
  }
31290
31295
  });
31291
- return (React.createElement(Container$g, { "data-testid": "NewsArticleFilterAccordion" },
31296
+ return (React.createElement(Container$h, { "data-testid": "NewsArticleFilterAccordion" },
31292
31297
  React.createElement(ShowFiltersButton, { onClick: showFullscreenFilters, "aria-expanded": !!isFullScreen, "aria-controls": "PageFilters" },
31293
31298
  "Show Search and filters",
31294
31299
  count > 0 && " (".concat(count, ")")),
@@ -31357,7 +31362,7 @@ var NewsArticleImage = function (_a) {
31357
31362
 
31358
31363
  const imageHeightMobile$1 = 150;
31359
31364
 
31360
- const Container$e = styled.div`
31365
+ const Container$f = styled.div`
31361
31366
  ${props => props.theme.fontStyles};
31362
31367
  padding: 15px 0;
31363
31368
  `;
@@ -31485,7 +31490,7 @@ var NewsArticleList = function (_a) {
31485
31490
  var results = _a.results;
31486
31491
  var extractLength = 140;
31487
31492
  if (results && results.length > 0) {
31488
- return (React.createElement(Container$e, { "data-testid": "NewsArticleList" }, results.map(function (article) {
31493
+ return (React.createElement(Container$f, { "data-testid": "NewsArticleList" }, results.map(function (article) {
31489
31494
  return React.createElement(ArticleContainer, { href: article.url, title: article.title, key: article.id },
31490
31495
  article.image720x405 &&
31491
31496
  React.createElement(LazyImage, { src: article.image720x405, placeholder: article.image72x41, visibilitySensorProps: {
@@ -31501,12 +31506,12 @@ var NewsArticleList = function (_a) {
31501
31506
  })));
31502
31507
  }
31503
31508
  else {
31504
- return (React.createElement(Container$e, { "data-testid": "NewsArticleList" },
31509
+ return (React.createElement(Container$f, { "data-testid": "NewsArticleList" },
31505
31510
  React.createElement(ResultInfo$1, null, "No results found")));
31506
31511
  }
31507
31512
  };
31508
31513
 
31509
- const Container$d = styled.div`
31514
+ const Container$e = styled.div`
31510
31515
  ${props => props.theme.fontStyles};
31511
31516
  padding-bottom: 20px;
31512
31517
  border-bottom: 1px solid ${props => props.theme.theme_vars.colours.grey};
@@ -31580,7 +31585,7 @@ const Preposition = styled.div`
31580
31585
  font-size: 80%;
31581
31586
  `;
31582
31587
 
31583
- const Container$c = styled.span`
31588
+ const Container$d = styled.span`
31584
31589
  margin: 0 5px;
31585
31590
  display: inline-block;
31586
31591
  position: relative;
@@ -31641,7 +31646,7 @@ var RemovableTag = function (_a) {
31641
31646
  var index = _a.index, preposition = _a.preposition, label = _a.label; _a.value; _a.param; var clickHandler = _a.clickHandler;
31642
31647
  return (React.createElement(Wrapper$2, { "data-testid": "RemovableTag" },
31643
31648
  index > 0 && preposition && React.createElement(Preposition, null, preposition),
31644
- React.createElement(Container$c, null,
31649
+ React.createElement(Container$d, null,
31645
31650
  React.createElement(Text, null, label),
31646
31651
  React.createElement(Button, { "aria-label": "Remove filter ".concat(label), onClick: clickHandler }, "x"))));
31647
31652
  };
@@ -31661,7 +31666,7 @@ var NewsArticleListHeader = function (_a) {
31661
31666
  var removeFilterValue = function (param, value) {
31662
31667
  removeValueFromParam(param, value);
31663
31668
  };
31664
- return (React.createElement(Container$d, { "data-testid": "NewsArticleListHeader" },
31669
+ return (React.createElement(Container$e, { "data-testid": "NewsArticleListHeader" },
31665
31670
  React.createElement(LeftCol, null,
31666
31671
  totalResults,
31667
31672
  " article",
@@ -31715,7 +31720,7 @@ var NewsArticleOldBanner = function (_a) {
31715
31720
  React.createElement("strong", null, "1 year old")));
31716
31721
  };
31717
31722
 
31718
- const Container$b = styled.main`
31723
+ const Container$c = styled.main`
31719
31724
  padding-top: 30px;
31720
31725
 
31721
31726
  a {
@@ -31846,10 +31851,10 @@ const Container$b = styled.main`
31846
31851
  */
31847
31852
  var PageMain = function (_a) {
31848
31853
  var children = _a.children, classes = _a.classes, props = __rest(_a, ["children", "classes"]);
31849
- return (React.createElement(Container$b, __assign({ id: "main", className: classes }, props), children));
31854
+ return (React.createElement(Container$c, __assign({ id: "main", className: classes }, props), children));
31850
31855
  };
31851
31856
 
31852
- const Container$a = styled.aside`
31857
+ const Container$b = styled.aside`
31853
31858
  padding-top: 30px;
31854
31859
  `;
31855
31860
 
@@ -31858,10 +31863,10 @@ const Container$a = styled.aside`
31858
31863
  */
31859
31864
  var PageSidebar = function (_a) {
31860
31865
  var children = _a.children;
31861
- return (React.createElement(Container$a, { className: "sidebar" }, children));
31866
+ return (React.createElement(Container$b, { className: "sidebar" }, children));
31862
31867
  };
31863
31868
 
31864
- const Container$9 = styled.div`
31869
+ const Container$a = styled.div`
31865
31870
  padding-top: 30px;
31866
31871
 
31867
31872
  h1 {
@@ -31874,10 +31879,10 @@ const Container$9 = styled.div`
31874
31879
  */
31875
31880
  var PageTitle = function (_a) {
31876
31881
  var children = _a.children, classes = _a.classes, props = __rest(_a, ["children", "classes"]);
31877
- return (React.createElement(Container$9, __assign({ "data-testid": "title", className: classes }, props), children));
31882
+ return (React.createElement(Container$a, __assign({ "data-testid": "title", className: classes }, props), children));
31878
31883
  };
31879
31884
 
31880
- const Container$8 = styled.div`
31885
+ const Container$9 = styled.div`
31881
31886
  @media screen and (min-width: ${props => props.theme.theme_vars.breakpoints.m}){
31882
31887
  display: flex;
31883
31888
  flex-wrap: wrap;
@@ -31919,7 +31924,7 @@ const Container$8 = styled.div`
31919
31924
  */
31920
31925
  var PageWithSidebarContainer = function (_a) {
31921
31926
  var _b = _a.sidebarLeft, sidebarLeft = _b === void 0 ? false : _b, children = _a.children;
31922
- return (React.createElement(Container$8, { sidebarLeft: sidebarLeft }, children));
31927
+ return (React.createElement(Container$9, { sidebarLeft: sidebarLeft }, children));
31923
31928
  };
31924
31929
 
31925
31930
  const backgroundDecider = props => {
@@ -31938,14 +31943,14 @@ const backgroundDecider = props => {
31938
31943
  };
31939
31944
 
31940
31945
 
31941
- const Container$7 = styled.div`
31946
+ const Container$8 = styled.div`
31942
31947
  ${backgroundDecider};
31943
31948
  padding-top: 1.5em;
31944
31949
  `;
31945
31950
 
31946
31951
  var PageWrapper = function (_a) {
31947
31952
  var colour = _a.colour, children = _a.children;
31948
- return (React.createElement(Container$7, { "data-testid": "PageWrapper", colour: colour }, children));
31953
+ return (React.createElement(Container$8, { "data-testid": "PageWrapper", colour: colour }, children));
31949
31954
  };
31950
31955
 
31951
31956
  const Wrapper$1 = styled.div`
@@ -32011,7 +32016,7 @@ var PhaseBanner = function (_a) {
32011
32016
  React.createElement(PhaseText, null, "This site is new and we are improving it every day."))));
32012
32017
  };
32013
32018
 
32014
- const Container$6 = styled.div`
32019
+ const Container$7 = styled.div`
32015
32020
  overflow: hidden;
32016
32021
  margin: 40px auto 5px auto;
32017
32022
  background: ${props => props.theme.cardinal_name === "north" ? props.theme.theme_vars.colours.white : props.theme.theme_vars.colours.grey_light};
@@ -32074,7 +32079,7 @@ const CTA = styled.a`
32074
32079
 
32075
32080
  var PromoBanner = function (_a) {
32076
32081
  var title = _a.title, image1440x810 = _a.image1440x810, image144x81 = _a.image144x81, ctaText = _a.ctaText, ctaUrl = _a.ctaUrl, children = _a.children;
32077
- return (React.createElement(Container$6, null,
32082
+ return (React.createElement(Container$7, null,
32078
32083
  React.createElement(LazyImage, { src: image1440x810, placeholder: image144x81, visibilitySensorProps: {
32079
32084
  partialVisibility: true
32080
32085
  } }, function (src) {
@@ -32307,7 +32312,7 @@ var PromoBlock = function (_a) {
32307
32312
  }
32308
32313
  };
32309
32314
 
32310
- const Container$5 = styled.div`
32315
+ const Container$6 = styled.div`
32311
32316
  ${props => props.theme.fontStyles};
32312
32317
  `;
32313
32318
 
@@ -32345,7 +32350,7 @@ const ServiceArea = styled.p`
32345
32350
  }
32346
32351
  `;
32347
32352
 
32348
- const Summary$1 = styled.p`
32353
+ const Summary$2 = styled.p`
32349
32354
  margin-bottom: ${props => props.theme.theme_vars.spacingSizes.small};
32350
32355
  `;
32351
32356
 
@@ -32461,11 +32466,11 @@ var SignpostLinksList = function (_a) {
32461
32466
  var SearchResultsList = function (_a) {
32462
32467
  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;
32463
32468
  if (totalResults === 0) {
32464
- return (React.createElement(Container$5, { "data-testid": "SearchResultsList" },
32469
+ return (React.createElement(Container$6, { "data-testid": "SearchResultsList" },
32465
32470
  React.createElement(ResultInfo, null, "No results found")));
32466
32471
  }
32467
32472
  else {
32468
- return (React.createElement(Container$5, { "data-testid": "SearchResultsList" },
32473
+ return (React.createElement(Container$6, { "data-testid": "SearchResultsList" },
32469
32474
  React.createElement(ResultInfo, null,
32470
32475
  (pageNumber) > 1 && ("Page " + (pageNumber) + " of "),
32471
32476
  totalResults,
@@ -32476,7 +32481,7 @@ var SearchResultsList = function (_a) {
32476
32481
  return React.createElement(Result, { key: i },
32477
32482
  result.service && React.createElement(ServiceArea, null, result.service),
32478
32483
  React.createElement(Title$2, { href: result.link }, result.title),
32479
- React.createElement(Summary$1, null, result.summary),
32484
+ React.createElement(Summary$2, null, result.summary),
32480
32485
  result.signpostLinksArray &&
32481
32486
  React.createElement(SignpostContainer, null,
32482
32487
  result.signpostLinksArray.length > 1 ?
@@ -32494,7 +32499,7 @@ var SearchResultsList = function (_a) {
32494
32499
  }
32495
32500
  };
32496
32501
 
32497
- const Container$4 = styled.div`
32502
+ const Container$5 = styled.div`
32498
32503
 
32499
32504
  `;
32500
32505
 
@@ -32583,7 +32588,7 @@ const Title$1 = styled.p`
32583
32588
  }
32584
32589
  `;
32585
32590
 
32586
- const Summary = styled.p`
32591
+ const Summary$1 = styled.p`
32587
32592
  margin: 0;
32588
32593
  color: ${props => props.theme.theme_vars.colours.black} !important;
32589
32594
  font-weight: 400;
@@ -32591,7 +32596,7 @@ const Summary = styled.p`
32591
32596
 
32592
32597
  var SectionLinks = function (_a) {
32593
32598
  var sectionTitle = _a.sectionTitle, _b = _a.displayTitle, displayTitle = _b === void 0 ? true : _b, sectionSlug = _a.sectionSlug, pageLinksArray = _a.pageLinksArray;
32594
- return (React.createElement(Container$4, { id: sectionSlug },
32599
+ return (React.createElement(Container$5, { id: sectionSlug },
32595
32600
  displayTitle ?
32596
32601
  React.createElement(SectionTitle$1, { text: sectionTitle })
32597
32602
  :
@@ -32600,13 +32605,13 @@ var SectionLinks = function (_a) {
32600
32605
  pageLinksArray.map(function (link, i) {
32601
32606
  return React.createElement(Pagelink, { key: i, href: link.url, title: link.title },
32602
32607
  React.createElement(Title$1, null, link.title),
32603
- React.createElement(Summary, null, link.summary));
32608
+ React.createElement(Summary$1, null, link.summary));
32604
32609
  }),
32605
32610
  pageLinksArray.length > 1 && ((pageLinksArray.length + 1) % 3 === 0) &&
32606
32611
  React.createElement(PagelinkBlank$1, null))));
32607
32612
  };
32608
32613
 
32609
- const Container$3 = styled.aside`
32614
+ const Container$4 = styled.aside`
32610
32615
  padding-top: 20px;
32611
32616
  display: block;
32612
32617
 
@@ -32690,7 +32695,7 @@ const InlineLink = styled.a`
32690
32695
 
32691
32696
  var SectionLinksMobileContents = function (_a) {
32692
32697
  var sectionLinksArray = _a.sectionLinksArray;
32693
- return (React.createElement(Container$3, null,
32698
+ return (React.createElement(Container$4, null,
32694
32699
  React.createElement(Contents, null,
32695
32700
  React.createElement(ContentsTitle, null, "Contents"),
32696
32701
  React.createElement(ContentsList, null, sectionLinksArray.map(function (link) {
@@ -32699,7 +32704,7 @@ var SectionLinksMobileContents = function (_a) {
32699
32704
  })))));
32700
32705
  };
32701
32706
 
32702
- const Container$2 = styled.div`
32707
+ const Container$3 = styled.div`
32703
32708
  ${props => props.theme.fontStyles}
32704
32709
  background-color: ${props => props.theme.theme_vars.colours.action_light};
32705
32710
  border-radius: ${props => props.theme.theme_vars.border_radius};
@@ -32854,7 +32859,7 @@ const ListItemLink = styled.a`
32854
32859
  var SectionLinksSidebar = function (_a) {
32855
32860
  var Title$1 = _a.Title, Sections = _a.Sections;
32856
32861
  var _b = useState(false), open = _b[0], setOpen = _b[1];
32857
- return (React.createElement(Container$2, { "data-testid": "SectionLinksSidebar" },
32862
+ return (React.createElement(Container$3, { "data-testid": "SectionLinksSidebar" },
32858
32863
  React.createElement(MobileTitleButton, { onClick: function () { return open ? setOpen(false) : setOpen(true); } },
32859
32864
  Title$1,
32860
32865
  React.createElement(IconWrapper$1, null,
@@ -32885,7 +32890,7 @@ const containerMaxHeight = (props) => {
32885
32890
  }
32886
32891
  };
32887
32892
 
32888
- const Container$1 = styled.div`
32893
+ const Container$2 = styled.div`
32889
32894
  ${(props) => props.theme.fontStyles}
32890
32895
  ${containerMaxHeight}
32891
32896
 
@@ -33308,7 +33313,7 @@ var ServicesLinksList = function (_a) {
33308
33313
  return React.createElement(DynamicIcon, { colourFill: themeContext.theme_vars.colours.action });
33309
33314
  };
33310
33315
  return (React.createElement(React.Fragment, null,
33311
- React.createElement(Container$1, { id: serviceId, className: open && 'open', hideHeader: hideHeader },
33316
+ React.createElement(Container$2, { id: serviceId, className: open && 'open', hideHeader: hideHeader },
33312
33317
  !hideHeader && (React.createElement(HomeTitle, { "data-testid": "servicesLinksListHeader" },
33313
33318
  React.createElement(Heading, { text: "Council services" }),
33314
33319
  React.createElement(ReorderControl, null,
@@ -33383,7 +33388,7 @@ function useLocalStorage(key, initialValue) {
33383
33388
  return [storedValue, setValue];
33384
33389
  }
33385
33390
 
33386
- const Container = styled.div`
33391
+ const Container$1 = styled.div`
33387
33392
  ${props => props.theme.fontStyles}
33388
33393
  max-width: 500px;
33389
33394
  border-radius: ${props => props.theme.theme_vars.border_radius};
@@ -33435,7 +33440,7 @@ var SignpostLinks = function (_a) {
33435
33440
  var themeContext = useContext(ThemeContext);
33436
33441
  var councilLink = otherCouncilLink ? otherCouncilLink : themeContext.theme_vars.other_council_link;
33437
33442
  return (React.createElement(React.Fragment, null, signpostLinksArray.length > 1 ?
33438
- React.createElement(Container, null,
33443
+ React.createElement(Container$1, null,
33439
33444
  React.createElement(Paragraph, null, TopLineText),
33440
33445
  React.createElement(SignpostLinksList, { signpostLinksArray: signpostLinksArray }),
33441
33446
  React.createElement(PostCodeSearch, { otherCouncilLink: councilLink, signPostLinks: signpostLinksArray }),
@@ -33512,6 +33517,49 @@ const SkipToMainContent$1 = styled.a`
33512
33517
 
33513
33518
  var SkipToMainContent = function () { return (React.createElement(SkipToMainContent$1, { "data-testid": "SkipToMainContent", href: "#main" }, "Skip to main content")); };
33514
33519
 
33520
+ const summaryStyles = (props) => {
33521
+ if (props.theme.is_memorial === true) {
33522
+ return css`
33523
+ background-color: ${props.theme.theme_vars.colours.grey_darkest};
33524
+ color: ${props.theme.theme_vars.colours.white};
33525
+ `;
33526
+ }
33527
+
33528
+ switch (props.theme.cardinal_name) {
33529
+ case 'north':
33530
+ return css`
33531
+ background-color: ${(props) => (props.hasBackground ? props.theme.theme_vars.colours.white : 'transparent')};
33532
+ color: ${(props) => props.theme.theme_vars.colours.action};
33533
+ `;
33534
+ case 'west':
33535
+ return css`
33536
+ background-color: ${(props) =>
33537
+ props.hasBackground ? props.theme.theme_vars.colours.grey_light : 'transparent'};
33538
+ color: ${(props) => props.theme.theme_vars.colours.action_dark};
33539
+ `;
33540
+ }
33541
+ };
33542
+
33543
+ const Container = styled.div`
33544
+ padding: ${(props) => (props.hasPadding ? '30px 20px' : '0')};
33545
+ font-size: 1.2em;
33546
+ margin-bottom: 15px;
33547
+ ${summaryStyles}
33548
+
33549
+ p {
33550
+ max-width: 100%;
33551
+ }
33552
+
33553
+ p:last-of-type {
33554
+ margin-bottom: 0;
33555
+ }
33556
+ `;
33557
+
33558
+ var Summary = function (_a) {
33559
+ var children = _a.children, _b = _a.hasBackground, hasBackground = _b === void 0 ? true : _b, _c = _a.hasPadding, hasPadding = _c === void 0 ? true : _c;
33560
+ return (React.createElement(Container, { "data-testid": "Summary", hasBackground: hasBackground, hasPadding: hasPadding }, children));
33561
+ };
33562
+
33515
33563
  const breakpointsVals$4 = {
33516
33564
  s: "550",
33517
33565
  m: "768", // tablets and larger
@@ -34157,5 +34205,5 @@ const north_theme = generate_theme(north_vars);
34157
34205
  const lb_theme_north = generate_theme(lb_vars_north);
34158
34206
  const lb_theme_west = generate_theme(lb_vars_west);
34159
34207
 
34160
- 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 };
34208
+ 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 };
34161
34209
  //# sourceMappingURL=index.esm.js.map