northants-design-system 0.2.15 → 0.2.16

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.
@@ -3980,41 +3980,59 @@ var Heading = function (_a) {
3980
3980
  };
3981
3981
 
3982
3982
  const HeadingWrapper = styled.div`
3983
- display: flex;
3984
- -webkit-flex-direction: row;
3985
- -moz-flex-direction: row;
3986
- -ms-flex-direction: row;
3987
- flex-direction: row;
3988
- align-items: center;
3989
- justify-content: left;
3990
- flex-wrap: wrap;
3983
+ display: flex;
3984
+ -webkit-flex-direction: row;
3985
+ -moz-flex-direction: row;
3986
+ -ms-flex-direction: row;
3987
+ flex-direction: row;
3988
+ align-items: center;
3989
+ justify-content: left;
3990
+ flex-wrap: wrap;
3991
3991
 
3992
- h1, h2, h3, h4 {
3993
- margin: 0;
3994
- vertical-align: middle;
3995
- display: inline-block;
3996
- width: calc(100% - 65px);
3997
- @media screen and (min-width: ${props => props.theme.theme_vars.breakpoints.s}){
3998
- width: calc(100% - 85px);
3999
- }
3992
+ h1,
3993
+ h2,
3994
+ h3,
3995
+ h4 {
3996
+ margin: 0;
3997
+ vertical-align: middle;
3998
+ display: inline-block;
3999
+ width: calc(100% - 65px);
4000
+ @media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.s}) {
4001
+ width: calc(100% - 85px);
4002
+ }
4003
+ }
4004
+
4005
+ .service-icon-hover {
4006
+ display: none;
4007
+ }
4008
+
4009
+ &:hover {
4010
+ .service-icon {
4011
+ display: ${(props) => (props.hasHover ? 'none' : 'block')};
4012
+ }
4013
+ .service-icon-hover {
4014
+ display: ${(props) => (props.hasHover ? 'block' : 'none')};
4000
4015
  }
4016
+ }
4001
4017
  `;
4002
4018
 
4003
4019
  const Icon$5 = styled.div`
4004
- vertical-align: middle;
4020
+ vertical-align: middle;
4005
4021
  `;
4006
4022
  const IconWrapper$5 = styled.div`
4007
- width: ${props => props.iconSize === 1 ? "65px" : props.iconSize === 2 ? "45px" : props.iconSize === 3 ? "30px" : "20px"};
4008
- height: auto;
4023
+ width: ${(props) =>
4024
+ props.iconSize === 1 ? '65px' : props.iconSize === 2 ? '45px' : props.iconSize === 3 ? '30px' : '20px'};
4025
+ height: auto;
4009
4026
 
4010
- svg {
4011
- width: 100%;
4012
- height: auto;
4013
- }
4014
- @media screen and (min-width: ${props => props.theme.theme_vars.breakpoints.s}){
4015
- width: ${props => props.iconSize === 1 ? "85px" : props.iconSize === 2 ? "70px" : props.iconSize === 3 ? "55px" : "40px"};
4016
- height: auto;
4017
- }
4027
+ svg {
4028
+ width: 100%;
4029
+ height: auto;
4030
+ }
4031
+ @media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.s}) {
4032
+ width: ${(props) =>
4033
+ props.iconSize === 1 ? '85px' : props.iconSize === 2 ? '70px' : props.iconSize === 3 ? '55px' : '40px'};
4034
+ height: auto;
4035
+ }
4018
4036
  `;
4019
4037
 
4020
4038
  var ServiceIcon$1J = function (_a) {
@@ -5400,28 +5418,30 @@ var components = {
5400
5418
  * A Heading With an Icon - used for service landing pages
5401
5419
  */
5402
5420
  var HeadingWithIcon = function (_a) {
5403
- var _b = _a.level, level = _b === void 0 ? 2 : _b, text = _a.text, icon = _a.icon;
5421
+ var _b = _a.level, level = _b === void 0 ? 2 : _b, text = _a.text, icon = _a.icon, _c = _a.hasHover, hasHover = _c === void 0 ? false : _c;
5404
5422
  var themeContext = useContext(ThemeContext);
5405
5423
  var DynamicComponent = function (_a) {
5406
5424
  var name = _a.name, _b = _a.isHover, isHover = _b === void 0 ? false : _b;
5407
5425
  var DynamicIcon;
5408
- if (name === "culture") {
5426
+ if (name === 'culture') {
5409
5427
  var newName = name + themeContext.cardinal_name;
5410
- DynamicIcon = components[newName + (isHover ? "Hover" : "")];
5428
+ DynamicIcon = components[newName + (isHover ? 'Hover' : '')];
5411
5429
  }
5412
5430
  else {
5413
- DynamicIcon = components[name + (isHover ? "Hover" : "")];
5431
+ DynamicIcon = components[name + (isHover ? 'Hover' : '')];
5414
5432
  }
5415
5433
  return React.createElement(DynamicIcon, { colourFill: themeContext.theme_vars.colours.action_dark });
5416
5434
  };
5417
- return (React.createElement(HeadingWrapper, null,
5435
+ return (React.createElement(HeadingWrapper, { "data-testid": "HeadingWithIcon", hasHover: hasHover },
5418
5436
  React.createElement(IconWrapper$5, { iconSize: level },
5419
5437
  React.createElement(Icon$5, { className: "service-icon", iconSize: level },
5420
- React.createElement(DynamicComponent, { name: icon, isHover: false }))),
5438
+ React.createElement(DynamicComponent, { name: icon, isHover: false })),
5439
+ React.createElement(Icon$5, { className: "service-icon-hover", iconSize: level },
5440
+ React.createElement(DynamicComponent, { name: icon, isHover: true }))),
5421
5441
  React.createElement(Heading, { text: text, level: level })));
5422
5442
  };
5423
5443
 
5424
- const Container$M = styled.div`
5444
+ const Container$P = styled.div`
5425
5445
  ${props => props.theme.fontStyles};
5426
5446
  display: block;
5427
5447
  border-top: 1px solid ${props => props.theme.theme_vars.colours.grey};
@@ -6180,7 +6200,7 @@ var Pagination = function (_a) {
6180
6200
  handleParams(postTo, [{ key: 'page', value: pageNo }]);
6181
6201
  };
6182
6202
  if (numbers.length > 1) {
6183
- return (React.createElement(Container$M, { "data-testid": "Pagination", role: "navigation", "aria-label": "Pagination" },
6203
+ return (React.createElement(Container$P, { "data-testid": "Pagination", role: "navigation", "aria-label": "Pagination" },
6184
6204
  currentPage !== 1 &&
6185
6205
  React.createElement(Previous, { onClick: function () { return buttonClick(currentPage - 1); }, title: "Go back a page" }, "Previous"),
6186
6206
  React.createElement(NumbersContainer, null, numbers.map(function (v, i) {
@@ -6195,7 +6215,7 @@ var Pagination = function (_a) {
6195
6215
  return null;
6196
6216
  };
6197
6217
 
6198
- const Container$L = styled.div`
6218
+ const Container$O = styled.div`
6199
6219
  ${props => props.theme.fontStyles};
6200
6220
  margin-bottom: 30px;
6201
6221
  `;
@@ -6369,7 +6389,7 @@ var CheckboxListFilter = function (_a) {
6369
6389
  handleParams('news', [{ key: NewsArticleFilterFields.articleType.queryParamKey, value: articleTypes }], ["page"]);
6370
6390
  };
6371
6391
  var backupLabel = Math.random().toString(36).substring(7);
6372
- return (React.createElement(Container$L, { "data-testid": "CheckboxListFilter" },
6392
+ return (React.createElement(Container$O, { "data-testid": "CheckboxListFilter" },
6373
6393
  React.createElement(Fieldset, { "aria-describedby": "waste-hint" },
6374
6394
  React.createElement(Legend, { labelHidden: labelHidden }, label),
6375
6395
  React.createElement(Hint, { id: "waste-hint", hintHidden: hintHidden }, hint),
@@ -6380,7 +6400,7 @@ var CheckboxListFilter = function (_a) {
6380
6400
  })))));
6381
6401
  };
6382
6402
 
6383
- const Container$K = styled.div`
6403
+ const Container$N = styled.div`
6384
6404
  ${props => props.theme.fontStyles};
6385
6405
  `;
6386
6406
 
@@ -6425,7 +6445,7 @@ const Option = styled.option`
6425
6445
 
6426
6446
  var DropDownSelect = function (_a) {
6427
6447
  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;
6428
- return (React.createElement(Container$K, null,
6448
+ return (React.createElement(Container$N, null,
6429
6449
  React.createElement(Label$1, { htmlFor: id, hideLabel: hideLabel }, label),
6430
6450
  React.createElement(Select, { id: id, name: id, onChange: onChange && onChange, defaultValue: selected && selected }, options.map(function (option, i) {
6431
6451
  return React.createElement(Option, { key: i, value: option.value }, option.title);
@@ -6557,7 +6577,7 @@ var TextInput = function (_a) {
6557
6577
 
6558
6578
  // Accordion
6559
6579
 
6560
- const Container$J = styled.div`
6580
+ const Container$M = styled.div`
6561
6581
  ${(props) => props.theme.fontStyles}
6562
6582
  margin-bottom: 20px;
6563
6583
  border-bottom: 1px solid ${(props) => props.theme.theme_vars.colours.grey};
@@ -6839,7 +6859,7 @@ var Accordion = function (_a) {
6839
6859
  setAccordionStates(newStatus);
6840
6860
  };
6841
6861
  var accordionId = "accordion".concat(uniqueID());
6842
- return (React.createElement(Container$J, { "data-testid": "Accordion", id: accordionId },
6862
+ return (React.createElement(Container$M, { "data-testid": "Accordion", id: accordionId },
6843
6863
  showControls && sections.length > 1 && (React.createElement(AccordionControls, null,
6844
6864
  React.createElement(OpenAllButton, { onClick: toggleAll, type: "button", "aria-expanded": !openAll },
6845
6865
  openAll ? 'Open all' : 'Close all',
@@ -6890,7 +6910,7 @@ var BlockQuote = function (_a) {
6890
6910
  citation && React.createElement(Citation, null, citation)));
6891
6911
  };
6892
6912
 
6893
- const Container$I = styled.div`
6913
+ const Container$L = styled.div`
6894
6914
  margin-bottom: 30px;
6895
6915
  display: block;
6896
6916
 
@@ -6905,11 +6925,11 @@ const Container$I = styled.div`
6905
6925
  */
6906
6926
  var CallToAction = function (_a) {
6907
6927
  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"]);
6908
- return (React.createElement(Container$I, null,
6928
+ return (React.createElement(Container$L, null,
6909
6929
  React.createElement(Button$2, { primary: primary, size: "large", text: text, url: url, isExternal: isExternal, isDisabled: isDisabled })));
6910
6930
  };
6911
6931
 
6912
- const Container$H = styled.div`
6932
+ const Container$K = styled.div`
6913
6933
  margin: 25px 0;
6914
6934
  `;
6915
6935
 
@@ -7032,7 +7052,7 @@ var FileDownload = function (_a) {
7032
7052
 
7033
7053
  var DownloadableFiles = function (_a) {
7034
7054
  var files = _a.files;
7035
- return (React.createElement(Container$H, { "data-testid": "DownloadableFiles" }, files.length > 0 ?
7055
+ return (React.createElement(Container$K, { "data-testid": "DownloadableFiles" }, files.length > 0 ?
7036
7056
  files.map(function (file) { return React.createElement(FileDownload, __assign$2({ key: file.title }, file)); })
7037
7057
  :
7038
7058
  React.createElement("i", null, "No file to show")));
@@ -7168,7 +7188,7 @@ const wereCookiesAccepted = (cookiesAcceptedOverride) => {
7168
7188
  return false;
7169
7189
  };
7170
7190
 
7171
- const Container$G = styled.div`
7191
+ const Container$J = styled.div`
7172
7192
  border: solid 4px;
7173
7193
  border-radius: ${(props) => props.theme.theme_vars.border_radius};
7174
7194
  border-color: ${(props) =>
@@ -7222,7 +7242,7 @@ const InnerContainer$2 = styled.div`
7222
7242
  */
7223
7243
  var AlertBannerService = function (_a) {
7224
7244
  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;
7225
- return (React.createElement(Container$G, { alertType: alertType, "data-testid": "AlertBannerService", hasTopSpacing: hasTopSpacing },
7245
+ return (React.createElement(Container$J, { alertType: alertType, "data-testid": "AlertBannerService", hasTopSpacing: hasTopSpacing },
7226
7246
  React.createElement(InnerContainer$2, { "data-testid": "AlertBannerServiceInner" },
7227
7247
  (title === null || title === void 0 ? void 0 : title.trim()) && React.createElement(Heading, { text: title }),
7228
7248
  children)));
@@ -16955,7 +16975,7 @@ function markDirtyUp(node) {
16955
16975
  }
16956
16976
  }
16957
16977
 
16958
- class Container$F extends Node$1 {
16978
+ class Container$I extends Node$1 {
16959
16979
  push(child) {
16960
16980
  child.parent = this;
16961
16981
  this.proxyOf.nodes.push(child);
@@ -17248,7 +17268,7 @@ class Container$F extends Node$1 {
17248
17268
 
17249
17269
  let processed = nodes.map(i => {
17250
17270
  /* c8 ignore next */
17251
- if (!i[my$1]) Container$F.rebuild(i);
17271
+ if (!i[my$1]) Container$I.rebuild(i);
17252
17272
  i = i.proxyOf;
17253
17273
  if (i.parent) i.parent.removeChild(i);
17254
17274
  if (i[isClean$1]) markDirtyUp(i);
@@ -17326,23 +17346,23 @@ class Container$F extends Node$1 {
17326
17346
  }
17327
17347
  }
17328
17348
 
17329
- Container$F.registerParse = dependant => {
17349
+ Container$I.registerParse = dependant => {
17330
17350
  parse$4 = dependant;
17331
17351
  };
17332
17352
 
17333
- Container$F.registerRule = dependant => {
17353
+ Container$I.registerRule = dependant => {
17334
17354
  Rule$4 = dependant;
17335
17355
  };
17336
17356
 
17337
- Container$F.registerAtRule = dependant => {
17357
+ Container$I.registerAtRule = dependant => {
17338
17358
  AtRule$4 = dependant;
17339
17359
  };
17340
17360
 
17341
- var container = Container$F;
17342
- Container$F.default = Container$F;
17361
+ var container = Container$I;
17362
+ Container$I.default = Container$I;
17343
17363
 
17344
17364
  /* c8 ignore start */
17345
- Container$F.rebuild = node => {
17365
+ Container$I.rebuild = node => {
17346
17366
  if (node.type === 'atrule') {
17347
17367
  Object.setPrototypeOf(node, AtRule$4.prototype);
17348
17368
  } else if (node.type === 'rule') {
@@ -17357,16 +17377,16 @@ Container$F.rebuild = node => {
17357
17377
 
17358
17378
  if (node.nodes) {
17359
17379
  node.nodes.forEach(child => {
17360
- Container$F.rebuild(child);
17380
+ Container$I.rebuild(child);
17361
17381
  });
17362
17382
  }
17363
17383
  };
17364
17384
 
17365
- let Container$E = container;
17385
+ let Container$H = container;
17366
17386
 
17367
17387
  let LazyResult$4, Processor$3;
17368
17388
 
17369
- class Document$3 extends Container$E {
17389
+ class Document$3 extends Container$H {
17370
17390
  constructor(defaults) {
17371
17391
  // type needs to be passed to super, otherwise child roots won't be normalized correctly
17372
17392
  super({ type: 'document', ...defaults });
@@ -17484,9 +17504,9 @@ class Result$4 {
17484
17504
  var result = Result$4;
17485
17505
  Result$4.default = Result$4;
17486
17506
 
17487
- let Container$D = container;
17507
+ let Container$G = container;
17488
17508
 
17489
- class AtRule$3 extends Container$D {
17509
+ class AtRule$3 extends Container$G {
17490
17510
  constructor(defaults) {
17491
17511
  super(defaults);
17492
17512
  this.type = 'atrule';
@@ -17506,13 +17526,13 @@ class AtRule$3 extends Container$D {
17506
17526
  var atRule = AtRule$3;
17507
17527
  AtRule$3.default = AtRule$3;
17508
17528
 
17509
- Container$D.registerAtRule(AtRule$3);
17529
+ Container$G.registerAtRule(AtRule$3);
17510
17530
 
17511
- let Container$C = container;
17531
+ let Container$F = container;
17512
17532
 
17513
17533
  let LazyResult$3, Processor$2;
17514
17534
 
17515
- class Root$5 extends Container$C {
17535
+ class Root$5 extends Container$F {
17516
17536
  constructor(defaults) {
17517
17537
  super(defaults);
17518
17538
  this.type = 'root';
@@ -17621,10 +17641,10 @@ let list$2 = {
17621
17641
  var list_1 = list$2;
17622
17642
  list$2.default = list$2;
17623
17643
 
17624
- let Container$B = container;
17644
+ let Container$E = container;
17625
17645
  let list$1 = list_1;
17626
17646
 
17627
- class Rule$3 extends Container$B {
17647
+ class Rule$3 extends Container$E {
17628
17648
  constructor(defaults) {
17629
17649
  super(defaults);
17630
17650
  this.type = 'rule';
@@ -17645,7 +17665,7 @@ class Rule$3 extends Container$B {
17645
17665
  var rule = Rule$3;
17646
17666
  Rule$3.default = Rule$3;
17647
17667
 
17648
- Container$B.registerRule(Rule$3);
17668
+ Container$E.registerRule(Rule$3);
17649
17669
 
17650
17670
  let Declaration$2 = declaration;
17651
17671
  let tokenizer = tokenize;
@@ -18249,7 +18269,7 @@ class Parser$1 {
18249
18269
 
18250
18270
  var parser = Parser$1;
18251
18271
 
18252
- let Container$A = container;
18272
+ let Container$D = container;
18253
18273
  let Parser = parser;
18254
18274
  let Input$3 = input;
18255
18275
 
@@ -18288,12 +18308,12 @@ function parse$3(css, opts) {
18288
18308
  var parse_1 = parse$3;
18289
18309
  parse$3.default = parse$3;
18290
18310
 
18291
- Container$A.registerParse(parse$3);
18311
+ Container$D.registerParse(parse$3);
18292
18312
 
18293
18313
  let { isClean, my } = symbols;
18294
18314
  let MapGenerator$1 = mapGenerator;
18295
18315
  let stringify$2 = stringify_1;
18296
- let Container$z = container;
18316
+ let Container$C = container;
18297
18317
  let Document$2 = document$1;
18298
18318
  let warnOnce$1 = warnOnce$2;
18299
18319
  let Result$3 = result;
@@ -18428,7 +18448,7 @@ class LazyResult$2 {
18428
18448
 
18429
18449
  if (root && !root[my]) {
18430
18450
  /* c8 ignore next 2 */
18431
- Container$z.rebuild(root);
18451
+ Container$C.rebuild(root);
18432
18452
  }
18433
18453
  }
18434
18454
 
@@ -19095,7 +19115,7 @@ fromJSON$1.default = fromJSON$1;
19095
19115
  let CssSyntaxError = cssSyntaxError;
19096
19116
  let Declaration = declaration;
19097
19117
  let LazyResult = lazyResult;
19098
- let Container$y = container;
19118
+ let Container$B = container;
19099
19119
  let Processor = processor;
19100
19120
  let stringify = stringify_1;
19101
19121
  let fromJSON = fromJSON_1;
@@ -19173,7 +19193,7 @@ postcss.document = defaults => new Document(defaults);
19173
19193
 
19174
19194
  postcss.CssSyntaxError = CssSyntaxError;
19175
19195
  postcss.Declaration = Declaration;
19176
- postcss.Container = Container$y;
19196
+ postcss.Container = Container$B;
19177
19197
  postcss.Processor = Processor;
19178
19198
  postcss.Document = Document;
19179
19199
  postcss.Comment = Comment;
@@ -20050,7 +20070,7 @@ var GoogleMap = function (_a) {
20050
20070
  React.createElement(MapLink, { href: link_url }, link_title ? link_title : 'Google Maps link')))));
20051
20071
  };
20052
20072
 
20053
- const Container$x = styled.figure`
20073
+ const Container$A = styled.figure`
20054
20074
  display: block;
20055
20075
  background: ${(props) =>
20056
20076
  props.theme.cardinal_name === 'north'
@@ -20682,7 +20702,7 @@ var LazyImage = /*@__PURE__*/getDefaultExportFromCjs(lib);
20682
20702
  */
20683
20703
  var Image$2 = function (_a) {
20684
20704
  var imageSmall = _a.imageSmall, imageLarge = _a.imageLarge, imageAltText = _a.imageAltText, _b = _a.ratio, ratio = _b === void 0 ? '4by3' : _b, caption = _a.caption;
20685
- return (React.createElement(Container$x, { "data-testid": "Image" },
20705
+ return (React.createElement(Container$A, { "data-testid": "Image" },
20686
20706
  React.createElement(ImageContainer$4, { "data-testid": "ImageContainer", ratio: ratio },
20687
20707
  React.createElement(LazyImage, { placeholder: imageSmall, src: imageLarge, visibilitySensorProps: {
20688
20708
  partialVisibility: true,
@@ -20690,7 +20710,7 @@ var Image$2 = function (_a) {
20690
20710
  (caption === null || caption === void 0 ? void 0 : caption.trim()) && React.createElement(Caption, null, caption)));
20691
20711
  };
20692
20712
 
20693
- const Container$w = styled.div`
20713
+ const Container$z = styled.div`
20694
20714
  ${(props) => props.theme.fontStyles};
20695
20715
  overflow: hidden;
20696
20716
  margin: 40px auto 5px auto;
@@ -20774,7 +20794,7 @@ const CTA = styled.a`
20774
20794
  */
20775
20795
  var PromoBanner = function (_a) {
20776
20796
  var title = _a.title, image1440x810 = _a.image1440x810, image144x81 = _a.image144x81, ctaText = _a.ctaText, ctaUrl = _a.ctaUrl, children = _a.children;
20777
- return (React.createElement(Container$w, null,
20797
+ return (React.createElement(Container$z, null,
20778
20798
  React.createElement(LazyImage, { src: image1440x810, placeholder: image144x81, visibilitySensorProps: {
20779
20799
  partialVisibility: true,
20780
20800
  } }, function (src) { return React.createElement(ImageLink, { img: src, href: ctaUrl, title: ctaText }); }),
@@ -21198,7 +21218,7 @@ var AccessibleLink = function (_a) {
21198
21218
  })));
21199
21219
  };
21200
21220
 
21201
- const Container$v = styled.div`
21221
+ const Container$y = styled.div`
21202
21222
  padding: ${(props) => props.theme.theme_vars.spacingSizes.medium} 0;
21203
21223
  background: ${(props) =>
21204
21224
  props.alertType === 'alert'
@@ -21329,7 +21349,7 @@ const handleContainerPadding = (noBackground, noPadding) => {
21329
21349
  }
21330
21350
  };
21331
21351
 
21332
- const Container$u = styled.div`
21352
+ const Container$x = styled.div`
21333
21353
  background: ${props => props.noBackground ? "transparent" :
21334
21354
  props.theme.cardinal_name === "north" ? (props.theme.theme_vars.colours.grey_light+"7a") : props.theme.theme_vars.colours.white};
21335
21355
  overflow: ${props => props.noPadding ? "hidden" : "visible"};
@@ -21363,7 +21383,7 @@ const MaxWidth = styled.div`
21363
21383
  */
21364
21384
  var MaxWidthContainer = function (_a) {
21365
21385
  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"]);
21366
- return (React.createElement(Container$u, { noBackground: noBackground, noPadding: noPadding },
21386
+ return (React.createElement(Container$x, { noBackground: noBackground, noPadding: noPadding },
21367
21387
  React.createElement(MaxWidth, __assign$2({ className: classes, overflowVisible: overflowVisible }, props), children)));
21368
21388
  };
21369
21389
 
@@ -21377,7 +21397,7 @@ var AlertBanner = function (_a) {
21377
21397
  var hideClickHandler = function () {
21378
21398
  setHideAlert(false);
21379
21399
  };
21380
- return (hideAlert && (React.createElement(Container$v, { alertType: alertType, "data-testid": "AlertBanner" },
21400
+ return (hideAlert && (React.createElement(Container$y, { alertType: alertType, "data-testid": "AlertBanner" },
21381
21401
  React.createElement(MaxWidthContainer, { noBackground: true },
21382
21402
  React.createElement(InnerContainer$1, null,
21383
21403
  React.createElement(BannerContentContainer, null,
@@ -21429,7 +21449,7 @@ function useLocalStorage$1(key, initialValue) {
21429
21449
  return [storedValue, setValue];
21430
21450
  }
21431
21451
 
21432
- const Container$t = styled.div`
21452
+ const Container$w = styled.div`
21433
21453
  padding-top: 20px;
21434
21454
  border-bottom: 1px solid ${(props) => props.theme.theme_vars.colours.grey}80;
21435
21455
  margin-bottom: ${(props) => (props.hasMargin ? props.theme.theme_vars.spacingSizes.large : 0)};
@@ -21516,14 +21536,14 @@ var ChevronIcon = function (_a) {
21516
21536
 
21517
21537
  var Breadcrumbs = function (_a) {
21518
21538
  var breadcrumbsArray = _a.breadcrumbsArray, _b = _a.hasMargin, hasMargin = _b === void 0 ? false : _b;
21519
- return (React.createElement(Container$t, { hasMargin: hasMargin, "data-testid": "Breadcrumbs" },
21539
+ return (React.createElement(Container$w, { hasMargin: hasMargin, "data-testid": "Breadcrumbs" },
21520
21540
  React.createElement(List$1, null, breadcrumbsArray.map(function (crumb) { return (React.createElement(Crumb, { key: crumb.title }, React.createElement(React.Fragment, null,
21521
21541
  React.createElement(BreadcrumbLink$1, { href: crumb.url, title: crumb.title }, crumb.title),
21522
21542
  React.createElement(IconWrapper$4, null,
21523
21543
  React.createElement(ChevronIcon, { direction: 'right', colourFill: "#C6C6C6" }))))); }))));
21524
21544
  };
21525
21545
 
21526
- const Container$s = styled.div`
21546
+ const Container$v = styled.div`
21527
21547
  ${props => props.theme.fontStyles}
21528
21548
  background-color: ${props => props.theme.theme_vars.colours.grey_light};
21529
21549
  padding: ${props => props.theme.theme_vars.spacingSizes.medium} 0;
@@ -21816,18 +21836,18 @@ var CookieBanner = function (_a) {
21816
21836
  hideCookiesAcceptedConfirmationBanner();
21817
21837
  };
21818
21838
  return (React.createElement(React.Fragment, null,
21819
- showCookieBanner && (React.createElement(Container$s, { "data-testid": "CookieBanner" },
21839
+ showCookieBanner && (React.createElement(Container$v, { "data-testid": "CookieBanner" },
21820
21840
  React.createElement(CookieMessage, null,
21821
21841
  React.createElement(CookieHeading, null, title),
21822
21842
  React.createElement(CookieParagraph, null, paragraph),
21823
21843
  React.createElement(ButtonsContainer, null,
21824
21844
  React.createElement(FormButton, { primary: true, text: acceptButtonText, isDisabled: true, onClick: acceptCookies }),
21825
21845
  React.createElement(FormButton, { primary: true, text: rejectButtonText, isDisabled: true, onClick: rejectCookies }))))),
21826
- showCookiesRejectedBanner && (React.createElement(Container$s, { "data-testid": "CookieBannerRejected", id: "CookieBannerRejected" },
21846
+ showCookiesRejectedBanner && (React.createElement(Container$v, { "data-testid": "CookieBannerRejected", id: "CookieBannerRejected" },
21827
21847
  React.createElement(CookieMessage, { isInline: true },
21828
21848
  React.createElement(CookieParagraph, null, rejectConfirmationText),
21829
21849
  React.createElement(CookieHide, { onClick: hideCookiesConfirmationBanner, "aria-controls": "CookieBannerRejected", "aria-hidden": "false" }, "Hide")))),
21830
- showCookiesAcceptedBanner && (React.createElement(Container$s, { "data-testid": "CookieBannerAccepted", id: "CookieBannerAccepted" },
21850
+ showCookiesAcceptedBanner && (React.createElement(Container$v, { "data-testid": "CookieBannerAccepted", id: "CookieBannerAccepted" },
21831
21851
  React.createElement(CookieMessage, { isInline: true },
21832
21852
  React.createElement(CookieParagraph, null, acceptConfirmationText),
21833
21853
  React.createElement(CookieHide, { onClick: hideCookiesConfirmationBanner, "aria-controls": "CookieBannerAccepted", "aria-hidden": "false" }, "Hide"))))));
@@ -21873,7 +21893,7 @@ var DisplayDate = function (_a) {
21873
21893
  postText));
21874
21894
  };
21875
21895
 
21876
- const Container$r = styled.footer`
21896
+ const Container$u = styled.footer`
21877
21897
  background-color: ${props => props.theme.theme_vars.colours.black};
21878
21898
  padding: 25px 0;
21879
21899
  `;
@@ -22028,7 +22048,7 @@ var ServiceIcon = function (_a) {
22028
22048
  var Footer = function (_a) {
22029
22049
  var _b = _a.footerLinksArray, footerLinksArray = _b === void 0 ? null : _b, _c = _a.year, year = _c === void 0 ? new Date().getFullYear() : _c;
22030
22050
  var themeContext = useContext(ThemeContext);
22031
- return (React.createElement(Container$r, null,
22051
+ return (React.createElement(Container$u, null,
22032
22052
  React.createElement(StyledMaxWidthContainer$3, { noBackground: true },
22033
22053
  React.createElement(FooterAlignment, null,
22034
22054
  React.createElement("div", null,
@@ -22056,7 +22076,7 @@ var Footer = function (_a) {
22056
22076
  : '' }, themeContext.cardinal_name === 'north' ? (React.createElement(NorthWhiteLogo, null)) : themeContext.cardinal_name === 'west' ? (React.createElement(WestWhiteLogo, null)) : (React.createElement(GDSLogo, null)))))));
22057
22077
  };
22058
22078
 
22059
- const Container$q = styled.div`
22079
+ const Container$t = styled.div`
22060
22080
  background: ${(props) => (props.hasBackground ? props.theme.theme_vars.colours.grey_light : 'transparent')};
22061
22081
  padding: ${(props) => (props.hasPadding ? '50px 0 20px' : '0')};
22062
22082
  `;
@@ -22066,7 +22086,7 @@ const Container$q = styled.div`
22066
22086
  */
22067
22087
  var FullWidthContainer = function (_a) {
22068
22088
  var children = _a.children, _b = _a.hasBackground, hasBackground = _b === void 0 ? false : _b, _c = _a.hasPadding, hasPadding = _c === void 0 ? false : _c;
22069
- return (React.createElement(Container$q, { hasBackground: hasBackground, hasPadding: hasPadding, "data-testid": "FullWidthContainer" }, children));
22089
+ return (React.createElement(Container$t, { hasBackground: hasBackground, hasPadding: hasPadding, "data-testid": "FullWidthContainer" }, children));
22070
22090
  };
22071
22091
 
22072
22092
  /**
@@ -22098,7 +22118,7 @@ const headerThemeStyles = props => {
22098
22118
  }
22099
22119
  };
22100
22120
 
22101
- const Container$p = styled.header`
22121
+ const Container$s = styled.header`
22102
22122
  font-family: ${props => props.theme.theme_vars.fontstack};
22103
22123
  padding: 3px 0;
22104
22124
  ${headerThemeStyles}
@@ -22257,7 +22277,7 @@ var NorthColouredLogo = function () {
22257
22277
  React.createElement("path", { fill: "#fff", d: "M0 0H974V327H0z" })))));
22258
22278
  };
22259
22279
 
22260
- const Container$o = styled.div`
22280
+ const Container$r = styled.div`
22261
22281
  ${props => props.theme.fontStyles}
22262
22282
  width: calc(100% - ${ props => props.isLarge ? "5rem" : "3rem"});
22263
22283
  `;
@@ -22403,7 +22423,7 @@ var Searchbar = function (_a) {
22403
22423
  /**
22404
22424
  * Render the component
22405
22425
  */
22406
- return (React.createElement(Container$o, { "data-testid": "Searchbar", isLarge: isLarge },
22426
+ return (React.createElement(Container$r, { "data-testid": "Searchbar", isLarge: isLarge },
22407
22427
  React.createElement("form", { onSubmit: handleSubmit },
22408
22428
  React.createElement("div", { role: "search" },
22409
22429
  React.createElement(InputWrapper, null,
@@ -22458,7 +22478,7 @@ var Header = function (_a) {
22458
22478
  }
22459
22479
  };
22460
22480
  return (React.createElement(React.Fragment, null,
22461
- React.createElement(Container$p, __assign$2({}, props, { "data-testid": "Header" }),
22481
+ React.createElement(Container$s, __assign$2({}, props, { "data-testid": "Header" }),
22462
22482
  React.createElement(StyledMaxWidthContainer$2, { noBackground: true },
22463
22483
  React.createElement(LogoWrapper, null,
22464
22484
  React.createElement(HomeLink, { href: homeLink, title: "Home", id: "logo" }, themeLogos(themeContext.cardinal_name, themeContext.is_memorial))),
@@ -22476,7 +22496,7 @@ var Header = function (_a) {
22476
22496
  * Hero image container with optional dark gradient for non-box mode
22477
22497
  * Optimised for an image in 16:5 ratio on all but small width screens
22478
22498
  */
22479
- const Container$n = styled.div`
22499
+ const Container$q = styled.div`
22480
22500
  background-image: ${(props) =>
22481
22501
  !props.backgroundBox ? `linear-gradient(to bottom left, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.75)),` : ``}
22482
22502
  url('${(props) => props.image}');
@@ -22636,7 +22656,7 @@ var HeroImage = function (_a) {
22636
22656
  return (React.createElement(React.Fragment, null,
22637
22657
  React.createElement(LazyImage, { src: imageLarge, placeholder: imageSmall, visibilitySensorProps: {
22638
22658
  partialVisibility: true,
22639
- } }, function (src, loading) { return (React.createElement(Container$n, { image: src, loading: loading.toString(), backgroundBox: backgroundBox, "data-testid": "HeroImage" },
22659
+ } }, function (src, loading) { return (React.createElement(Container$q, { image: src, loading: loading.toString(), backgroundBox: backgroundBox, "data-testid": "HeroImage" },
22640
22660
  React.createElement(InnerContainer, null,
22641
22661
  React.createElement(Overlay, { backgroundBox: backgroundBox, "data-testid": "HeroImageOverlay" },
22642
22662
  breadcrumb && (React.createElement(BreadcrumbLink, { href: breadcrumb.url, backgroundBox: backgroundBox }, breadcrumb.title)),
@@ -22657,7 +22677,7 @@ const Wrapper$3 = styled.header`
22657
22677
  : props.theme.theme_vars.colours.white};
22658
22678
  `;
22659
22679
 
22660
- const Container$m = styled.div`
22680
+ const Container$p = styled.div`
22661
22681
  font-family: ${(props) => props.theme.theme_vars.fontstack};
22662
22682
  overflow: hidden;
22663
22683
  background: ${(props) => props.theme.theme_vars.colours.action}5A;
@@ -22801,7 +22821,7 @@ var HomeHero = function (_a) {
22801
22821
  React.createElement(Wrapper$3, null,
22802
22822
  React.createElement(LazyImage, { src: random !== 999 && imagesArray[random].image1440x810 ? imagesArray[random].image1440x810 : '', placeholder: random !== 999 && imagesArray[random].image144x81 ? imagesArray[random].image144x81 : '', visibilitySensorProps: {
22803
22823
  partialVisibility: true,
22804
- } }, function (src) { return (React.createElement(Container$m, { className: random !== 999 ? 'loaded' : 'loading', image: src, title: random !== 999 && imagesArray[random].imageAltText ? imagesArray[random].imageAltText : '' },
22824
+ } }, function (src) { return (React.createElement(Container$p, { className: random !== 999 ? 'loaded' : 'loading', image: src, title: random !== 999 && imagesArray[random].imageAltText ? imagesArray[random].imageAltText : '' },
22805
22825
  React.createElement(StyledMaxWidthContainer$1, null,
22806
22826
  React.createElement(MainBox, null,
22807
22827
  topline && React.createElement(Topline, null, topline),
@@ -22821,7 +22841,7 @@ var HomeHero = function (_a) {
22821
22841
  promotedLinksArray.length > 0 && React.createElement(PromotedLinks, { promotedLinksArray: promotedLinksArray })))); }))));
22822
22842
  };
22823
22843
 
22824
- const Container$l = styled.div`
22844
+ const Container$o = styled.div`
22825
22845
  h2 {
22826
22846
  border-bottom: 1px solid ${props => props.theme.theme_vars.colours.grey_dark};
22827
22847
  max-width: none;
@@ -25728,7 +25748,7 @@ axios$2.exports.default = axios$1;
25728
25748
 
25729
25749
  var axios = axios$2.exports;
25730
25750
 
25731
- const Container$k = styled.div`
25751
+ const Container$n = styled.div`
25732
25752
  strong {
25733
25753
  font-weight: bold;
25734
25754
  }
@@ -25869,7 +25889,7 @@ var HintText = function (_a) {
25869
25889
  return (React.createElement(HintText$1, null, text));
25870
25890
  };
25871
25891
 
25872
- const Container$j = styled.div`
25892
+ const Container$m = styled.div`
25873
25893
  display: flex;
25874
25894
  -webkit-flex-direction: row;
25875
25895
  -moz-flex-direction: row;
@@ -25904,7 +25924,7 @@ const ErrorSummary = styled.div`
25904
25924
  */
25905
25925
  var FormWithLine = function (_a) {
25906
25926
  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;
25907
- return (React.createElement(Container$j, null,
25927
+ return (React.createElement(Container$m, null,
25908
25928
  React.createElement(Line, { lineColour: lineColour, hideLine: hideLine, isError: isError }),
25909
25929
  React.createElement(Form, { onSubmit: onSubmit, hideLine: hideLine, role: formRole, method: formMethod, url: formURL, "data-testid": "FormWithLine" },
25910
25930
  errorSummary && React.createElement(ErrorSummary, null, errorSummary),
@@ -26084,7 +26104,7 @@ var PostCodeSearch = function (_a) {
26084
26104
  setCurrentPostcode(currentPostcode + ' (' + singleAddress.title + ')');
26085
26105
  }
26086
26106
  }
26087
- return (React.createElement(Container$k, { "data-testid": "PostCodeSearch" },
26107
+ return (React.createElement(Container$n, { "data-testid": "PostCodeSearch" },
26088
26108
  React.createElement(DropDownButton, { onClick: function () { return setOpen(open ? false : true); } },
26089
26109
  React.createElement(IconWrapper$3, null,
26090
26110
  React.createElement(ChevronIcon, { direction: open ? 'down' : 'right', colourFill: themeContext.theme_vars.colours.black })),
@@ -26265,7 +26285,7 @@ var HomeUnitarySection = function (_a) {
26265
26285
  var westLink = themeContext.cardinal_name === 'west'
26266
26286
  ? themeContext.theme_vars.council_link
26267
26287
  : themeContext.theme_vars.other_council_link;
26268
- return (React.createElement(Container$l, { "data-testid": "HomeUnitarySection" },
26288
+ return (React.createElement(Container$o, { "data-testid": "HomeUnitarySection" },
26269
26289
  React.createElement(Heading, { text: title }),
26270
26290
  React.createElement("p", null, firstLine),
26271
26291
  React.createElement(PostCodeSearch, { isUnitary: true, title: postcodeText }),
@@ -26292,7 +26312,7 @@ overflow: ${props => props.noPadding ? "hidden" : "visible"};
26292
26312
  padding-bottom: 0px;
26293
26313
  `;
26294
26314
 
26295
- const Container$i = styled.div`
26315
+ const Container$l = styled.div`
26296
26316
  font-family: ${props => props.theme.theme_vars.fontstack};
26297
26317
  display: flex;
26298
26318
  flex-wrap: wrap;
@@ -26432,7 +26452,7 @@ var MemorialHero = function (_a) {
26432
26452
  React.createElement(HiddenH1, null,
26433
26453
  themeContext.full_name,
26434
26454
  " Council"),
26435
- React.createElement(Container$i, null,
26455
+ React.createElement(Container$l, null,
26436
26456
  React.createElement(Left, null,
26437
26457
  children,
26438
26458
  React.createElement(ThemeProvider, { theme: theme }, councilServices)),
@@ -26462,7 +26482,7 @@ var NewsArticleDate = function (_a) {
26462
26482
  const imageHeightMobile = 150;
26463
26483
  const imageHeightDesktop = 200;
26464
26484
 
26465
- const Container$h = styled.div`
26485
+ const Container$k = styled.div`
26466
26486
  ${(props) => props.theme.fontStyles};
26467
26487
  padding: 15px 0;
26468
26488
 
@@ -26634,7 +26654,7 @@ var NewsArticleFeaturedBlock = function (_a) {
26634
26654
  if (articles && articles.length > 0) {
26635
26655
  return (React.createElement(React.Fragment, null,
26636
26656
  !withoutTitle && React.createElement(Heading, { text: "News articles and press releases" }),
26637
- React.createElement(Container$h, null, articles.map(function (article) { return (React.createElement(ArticleContainer$1, { key: article.id, href: article.url },
26657
+ React.createElement(Container$k, null, articles.map(function (article) { return (React.createElement(ArticleContainer$1, { key: article.id, href: article.url },
26638
26658
  article.image720x405 && (React.createElement(LazyImage, { src: article.image720x405, placeholder: article.image72x41, visibilitySensorProps: {
26639
26659
  partialVisibility: true,
26640
26660
  } }, function (src) { return (React.createElement(ImageContainer$3, { background: src, role: "img", "aria-label": article.imageAltText ? article.imageAltText : '' })); })),
@@ -26650,7 +26670,7 @@ var NewsArticleFeaturedBlock = function (_a) {
26650
26670
  }
26651
26671
  };
26652
26672
 
26653
- const Container$g = styled.div`
26673
+ const Container$j = styled.div`
26654
26674
  /* margin-top: 50px; */
26655
26675
  /* border: 1px solid red; */
26656
26676
 
@@ -26752,7 +26772,7 @@ const FilterHeading = styled.h2`
26752
26772
  // display: block;
26753
26773
  // overflow: hidden;
26754
26774
 
26755
- const Container$f = styled.a`
26775
+ const Container$i = styled.a`
26756
26776
  ${props => props.theme.linkStyles}
26757
26777
  color: ${props => props.theme.theme_vars.colours.negative} !important;
26758
26778
  font-weight: normal;
@@ -26781,7 +26801,7 @@ var RemoveAllFilters = function (_a) {
26781
26801
  e.preventDefault();
26782
26802
  removeParams(__spreadArray(__spreadArray([], NewsArticleFilterFields.removeFiltersList, true), ['page'], false));
26783
26803
  };
26784
- return (React.createElement(Container$f, { "data-testid": "RemoveAllFilters", href: "#", onClick: removeAllFilters },
26804
+ return (React.createElement(Container$i, { "data-testid": "RemoveAllFilters", href: "#", onClick: removeAllFilters },
26785
26805
  "Clear ",
26786
26806
  searchValue.length > 0 && 'search term and ',
26787
26807
  "filters",
@@ -26828,7 +26848,7 @@ var NewsArticleFilterAccordion = function (_a) {
26828
26848
  section.isExpanded = false;
26829
26849
  }
26830
26850
  });
26831
- return (React.createElement(Container$g, { "data-testid": "NewsArticleFilterAccordion" },
26851
+ return (React.createElement(Container$j, { "data-testid": "NewsArticleFilterAccordion" },
26832
26852
  React.createElement(ShowFiltersButton, { onClick: showFullscreenFilters, "aria-expanded": !!isFullScreen, "aria-controls": "PageFilters" },
26833
26853
  "Show Search and filters",
26834
26854
  count > 0 && " (".concat(count, ")")),
@@ -26895,7 +26915,7 @@ var NewsArticleImage = function (_a) {
26895
26915
  })));
26896
26916
  };
26897
26917
 
26898
- const Container$e = styled.div`
26918
+ const Container$h = styled.div`
26899
26919
  ${(props) => props.theme.fontStyles};
26900
26920
  padding: 15px 0;
26901
26921
  `;
@@ -27017,7 +27037,7 @@ var NewsArticleList = function (_a) {
27017
27037
  var results = _a.results;
27018
27038
  var extractLength = 140;
27019
27039
  if (results && results.length > 0) {
27020
- return (React.createElement(Container$e, { "data-testid": "NewsArticleList" }, results.map(function (article) { return (React.createElement(ArticleContainer, { href: article.url, title: article.title, key: article.id },
27040
+ return (React.createElement(Container$h, { "data-testid": "NewsArticleList" }, results.map(function (article) { return (React.createElement(ArticleContainer, { href: article.url, title: article.title, key: article.id },
27021
27041
  article.image720x405 && (React.createElement(LazyImage, { src: article.image720x405, placeholder: article.image72x41, visibilitySensorProps: {
27022
27042
  partialVisibility: true,
27023
27043
  } }, function (src) { return (React.createElement(ImageContainer$1, { className: "news-article-list__image", background: src, role: "img", "aria-label": article.imageAltText ? article.imageAltText : 'News article' })); })),
@@ -27030,12 +27050,12 @@ var NewsArticleList = function (_a) {
27030
27050
  React.createElement(NewsArticleDate, { text: article.date.toString(), format: "X" }))))); })));
27031
27051
  }
27032
27052
  else {
27033
- return (React.createElement(Container$e, { "data-testid": "NewsArticleList" },
27053
+ return (React.createElement(Container$h, { "data-testid": "NewsArticleList" },
27034
27054
  React.createElement(ResultInfo$1, null, "No results found")));
27035
27055
  }
27036
27056
  };
27037
27057
 
27038
- const Container$d = styled.div`
27058
+ const Container$g = styled.div`
27039
27059
  ${props => props.theme.fontStyles};
27040
27060
  padding-bottom: 20px;
27041
27061
  border-bottom: 1px solid ${props => props.theme.theme_vars.colours.grey};
@@ -27109,7 +27129,7 @@ const Preposition = styled.div`
27109
27129
  font-size: 80%;
27110
27130
  `;
27111
27131
 
27112
- const Container$c = styled.span`
27132
+ const Container$f = styled.span`
27113
27133
  margin: 0 5px;
27114
27134
  display: inline-block;
27115
27135
  position: relative;
@@ -27170,7 +27190,7 @@ var RemovableTag = function (_a) {
27170
27190
  var index = _a.index, preposition = _a.preposition, label = _a.label; _a.value; _a.param; var clickHandler = _a.clickHandler;
27171
27191
  return (React.createElement(Wrapper$1, { "data-testid": "RemovableTag" },
27172
27192
  index > 0 && preposition && React.createElement(Preposition, null, preposition),
27173
- React.createElement(Container$c, null,
27193
+ React.createElement(Container$f, null,
27174
27194
  React.createElement(Text, null, label),
27175
27195
  React.createElement(Button, { "aria-label": "Remove filter ".concat(label), onClick: clickHandler }, "x"))));
27176
27196
  };
@@ -27190,7 +27210,7 @@ var NewsArticleListHeader = function (_a) {
27190
27210
  var removeFilterValue = function (param, value) {
27191
27211
  removeValueFromParam(param, value);
27192
27212
  };
27193
- return (React.createElement(Container$d, { "data-testid": "NewsArticleListHeader" },
27213
+ return (React.createElement(Container$g, { "data-testid": "NewsArticleListHeader" },
27194
27214
  React.createElement(LeftCol, null,
27195
27215
  totalResults,
27196
27216
  " article",
@@ -27244,7 +27264,7 @@ var NewsArticleOldBanner = function (_a) {
27244
27264
  React.createElement("strong", null, "1 year old")));
27245
27265
  };
27246
27266
 
27247
- const Container$b = styled.main`
27267
+ const Container$e = styled.main`
27248
27268
  padding-top: 30px;
27249
27269
 
27250
27270
  a {
@@ -27375,10 +27395,10 @@ const Container$b = styled.main`
27375
27395
  */
27376
27396
  var PageMain = function (_a) {
27377
27397
  var children = _a.children, classes = _a.classes, props = __rest(_a, ["children", "classes"]);
27378
- return (React.createElement(Container$b, __assign$2({ id: "main", className: classes }, props), children));
27398
+ return (React.createElement(Container$e, __assign$2({ id: "main", className: classes }, props), children));
27379
27399
  };
27380
27400
 
27381
- const Container$a = styled.aside`
27401
+ const Container$d = styled.aside`
27382
27402
  padding-top: 30px;
27383
27403
  `;
27384
27404
 
@@ -27387,10 +27407,10 @@ const Container$a = styled.aside`
27387
27407
  */
27388
27408
  var PageSidebar = function (_a) {
27389
27409
  var children = _a.children;
27390
- return (React.createElement(Container$a, { className: "sidebar" }, children));
27410
+ return (React.createElement(Container$d, { className: "sidebar" }, children));
27391
27411
  };
27392
27412
 
27393
- const Container$9 = styled.div`
27413
+ const Container$c = styled.div`
27394
27414
  padding-top: 30px;
27395
27415
 
27396
27416
  h1 {
@@ -27403,10 +27423,10 @@ const Container$9 = styled.div`
27403
27423
  */
27404
27424
  var PageTitle = function (_a) {
27405
27425
  var children = _a.children, classes = _a.classes, props = __rest(_a, ["children", "classes"]);
27406
- return (React.createElement(Container$9, __assign$2({ "data-testid": "title", className: classes }, props), children));
27426
+ return (React.createElement(Container$c, __assign$2({ "data-testid": "title", className: classes }, props), children));
27407
27427
  };
27408
27428
 
27409
- const Container$8 = styled.div`
27429
+ const Container$b = styled.div`
27410
27430
  @media screen and (min-width: ${props => props.theme.theme_vars.breakpoints.m}){
27411
27431
  display: flex;
27412
27432
  flex-wrap: wrap;
@@ -27448,7 +27468,7 @@ const Container$8 = styled.div`
27448
27468
  */
27449
27469
  var PageWithSidebarContainer = function (_a) {
27450
27470
  var _b = _a.sidebarLeft, sidebarLeft = _b === void 0 ? false : _b, children = _a.children;
27451
- return (React.createElement(Container$8, { sidebarLeft: sidebarLeft }, children));
27471
+ return (React.createElement(Container$b, { sidebarLeft: sidebarLeft }, children));
27452
27472
  };
27453
27473
 
27454
27474
  const backgroundDecider = props => {
@@ -27467,14 +27487,14 @@ const backgroundDecider = props => {
27467
27487
  };
27468
27488
 
27469
27489
 
27470
- const Container$7 = styled.div`
27490
+ const Container$a = styled.div`
27471
27491
  ${backgroundDecider};
27472
27492
  padding-top: 1.5em;
27473
27493
  `;
27474
27494
 
27475
27495
  var PageWrapper = function (_a) {
27476
27496
  var colour = _a.colour, children = _a.children;
27477
- return (React.createElement(Container$7, { "data-testid": "PageWrapper", colour: colour }, children));
27497
+ return (React.createElement(Container$a, { "data-testid": "PageWrapper", colour: colour }, children));
27478
27498
  };
27479
27499
 
27480
27500
  const Wrapper = styled.div`
@@ -27540,7 +27560,7 @@ var PhaseBanner = function (_a) {
27540
27560
  React.createElement(PhaseText, null, "This site is new and we are improving it every day."))));
27541
27561
  };
27542
27562
 
27543
- const Container$6 = styled.div`
27563
+ const Container$9 = styled.div`
27544
27564
  ${props => props.theme.fontStyles};
27545
27565
  `;
27546
27566
 
@@ -27694,11 +27714,11 @@ var SignpostLinksList = function (_a) {
27694
27714
  var SearchResultsList = function (_a) {
27695
27715
  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;
27696
27716
  if (totalResults === 0) {
27697
- return (React.createElement(Container$6, { "data-testid": "SearchResultsList" },
27717
+ return (React.createElement(Container$9, { "data-testid": "SearchResultsList" },
27698
27718
  React.createElement(ResultInfo, null, "No results found")));
27699
27719
  }
27700
27720
  else {
27701
- return (React.createElement(Container$6, { "data-testid": "SearchResultsList" },
27721
+ return (React.createElement(Container$9, { "data-testid": "SearchResultsList" },
27702
27722
  React.createElement(ResultInfo, null,
27703
27723
  (pageNumber) > 1 && ("Page " + (pageNumber) + " of "),
27704
27724
  totalResults,
@@ -27727,7 +27747,7 @@ var SearchResultsList = function (_a) {
27727
27747
  }
27728
27748
  };
27729
27749
 
27730
- const Container$5 = styled.div``;
27750
+ const Container$8 = styled.div``;
27731
27751
 
27732
27752
  const SectionTitle$1 = styled(Heading)`
27733
27753
  background: ${(props) =>
@@ -27827,7 +27847,7 @@ const Summary$1 = styled.p`
27827
27847
  font-weight: 400;
27828
27848
  `;
27829
27849
 
27830
- const ImageContainer = styled.figure`
27850
+ const ImageContainer = styled.span`
27831
27851
  position: relative;
27832
27852
  padding-top: 56.25%;
27833
27853
  width: 100%;
@@ -27851,7 +27871,7 @@ styled.img`
27851
27871
  */
27852
27872
  var SectionLinks = function (_a) {
27853
27873
  var sectionTitle = _a.sectionTitle, _b = _a.displayTitle, displayTitle = _b === void 0 ? true : _b, sectionSlug = _a.sectionSlug, pageLinksArray = _a.pageLinksArray, _c = _a.hasImages, hasImages = _c === void 0 ? false : _c;
27854
- return (React.createElement(Container$5, { id: sectionSlug, "data-testid": "SectionLinks" },
27874
+ return (React.createElement(Container$8, { id: sectionSlug, "data-testid": "SectionLinks" },
27855
27875
  displayTitle ? React.createElement(SectionTitle$1, { text: sectionTitle }) : React.createElement("br", null),
27856
27876
  React.createElement(LinksList$1, null,
27857
27877
  pageLinksArray.map(function (link, i) {
@@ -27859,14 +27879,14 @@ var SectionLinks = function (_a) {
27859
27879
  return (React.createElement(Pagelink, { key: i, href: link.url, title: link.title },
27860
27880
  hasImages && (React.createElement(React.Fragment, null, ((_a = link.imageLarge) === null || _a === void 0 ? void 0 : _a.trim()) ? (React.createElement(LazyImage, { placeholder: link.imageSmall, src: link.imageLarge, visibilitySensorProps: {
27861
27881
  partialVisibility: true,
27862
- } }, function (src) { return (React.createElement(ImageContainer, { image: src, alt: link.imageAltText, role: "img", "aria-label": link.imageAltText })); })) : (React.createElement(ImageContainer, null)))),
27882
+ } }, function (src) { return (React.createElement(ImageContainer, { image: src, role: "img", "aria-label": link.imageAltText })); })) : (React.createElement(ImageContainer, null)))),
27863
27883
  React.createElement(Title$2, null, link.title),
27864
27884
  React.createElement(Summary$1, null, link.summary)));
27865
27885
  }),
27866
27886
  pageLinksArray.length > 1 && (pageLinksArray.length + 1) % 3 === 0 && React.createElement(PagelinkBlank$1, null))));
27867
27887
  };
27868
27888
 
27869
- const Container$4 = styled.aside`
27889
+ const Container$7 = styled.aside`
27870
27890
  padding-top: 20px;
27871
27891
  display: block;
27872
27892
 
@@ -27950,7 +27970,7 @@ const InlineLink = styled.a`
27950
27970
 
27951
27971
  var SectionLinksMobileContents = function (_a) {
27952
27972
  var sectionLinksArray = _a.sectionLinksArray;
27953
- return (React.createElement(Container$4, null,
27973
+ return (React.createElement(Container$7, null,
27954
27974
  React.createElement(Contents, null,
27955
27975
  React.createElement(ContentsTitle, null, "Contents"),
27956
27976
  React.createElement(ContentsList, null, sectionLinksArray.map(function (link) {
@@ -27959,7 +27979,7 @@ var SectionLinksMobileContents = function (_a) {
27959
27979
  })))));
27960
27980
  };
27961
27981
 
27962
- const Container$3 = styled.div`
27982
+ const Container$6 = styled.div`
27963
27983
  ${props => props.theme.fontStyles}
27964
27984
  background-color: ${props => props.theme.theme_vars.colours.action_light};
27965
27985
  border-radius: ${props => props.theme.theme_vars.border_radius};
@@ -28114,7 +28134,7 @@ const ListItemLink = styled.a`
28114
28134
  var SectionLinksSidebar = function (_a) {
28115
28135
  var Title = _a.Title, Sections = _a.Sections;
28116
28136
  var _b = useState(false), open = _b[0], setOpen = _b[1];
28117
- return (React.createElement(Container$3, { "data-testid": "SectionLinksSidebar" },
28137
+ return (React.createElement(Container$6, { "data-testid": "SectionLinksSidebar" },
28118
28138
  React.createElement(MobileTitleButton, { onClick: function () { return open ? setOpen(false) : setOpen(true); } },
28119
28139
  Title,
28120
28140
  React.createElement(IconWrapper$1, null,
@@ -28131,8 +28151,241 @@ var SectionLinksSidebar = function (_a) {
28131
28151
  }))));
28132
28152
  };
28133
28153
 
28154
+ const Container$5 = styled.div`
28155
+ position: relative;
28156
+ `;
28157
+
28158
+ const ServiceLink = styled.button`
28159
+ color: ${(props) => props.theme.theme_vars.colours.action};
28160
+ background: ${(props) =>
28161
+ props.show ? props.theme.theme_vars.colours.action_light : props.theme.theme_vars.colours.grey_light};
28162
+ padding: ${(props) => props.theme.theme_vars.spacingSizes.large}
28163
+ ${(props) => props.theme.theme_vars.spacingSizes.medium};
28164
+ width: 100%;
28165
+ position: relative;
28166
+ border: ${(props) => props.theme.theme_vars.border_width_thin} solid
28167
+ ${(props) => (props.show ? props.theme.theme_vars.colours.action : props.theme.theme_vars.colours.grey)};
28168
+ border-radius: ${(props) => props.theme.theme_vars.border_radius};
28169
+ ${(props) => props.theme.fontStyles};
28170
+ ${(props) => props.theme.linkStyles};
28171
+ text-decoration-style: ${(props) => (props.show ? `dashed` : `underline`)};
28172
+
28173
+ &:hover {
28174
+ background: ${(props) => props.theme.theme_vars.colours.action_light};
28175
+ border: ${(props) => props.theme.theme_vars.border_width_thin} solid
28176
+ ${(props) => props.theme.theme_vars.colours.action};
28177
+ text-decoration-style: dashed;
28178
+ cursor: pointer;
28179
+ }
28180
+
28181
+ &:hover {
28182
+ .service-icon {
28183
+ display: none;
28184
+ }
28185
+ .service-icon-hover {
28186
+ display: block !important;
28187
+ }
28188
+ }
28189
+
28190
+ h3 {
28191
+ color: ${(props) => props.theme.theme_vars.colours.action};
28192
+ text-align: left;
28193
+ padding-left: ${(props) => props.theme.theme_vars.spacingSizes.small};
28194
+ }
28195
+
28196
+ .serviceLinkChevron {
28197
+ position: absolute;
28198
+ top: calc(50% - 12px);
28199
+ right: 10px;
28200
+ width: 34px;
28201
+ height: 32px;
28202
+
28203
+ &:before {
28204
+ border-style: solid;
28205
+ border-width: 4px 4px 0 0;
28206
+ content: '';
28207
+ display: inline-block;
28208
+ height: 12px;
28209
+ position: relative;
28210
+ vertical-align: top;
28211
+ width: 12px;
28212
+ border-color: ${(props) => props.theme.theme_vars.colours.black};
28213
+ top: ${(props) => (props.show ? `10px` : `0`)};
28214
+ left: 6px;
28215
+ transform: ${(props) => (props.show ? `rotate(-45deg)` : `rotate(135deg)`)};
28216
+ }
28217
+ }
28218
+ `;
28219
+
28220
+ const QuickLinksContainer = styled.div`
28221
+ display: ${(props) => (props.show ? 'block' : 'none')};
28222
+ position: absolute;
28223
+ overflow: hidden;
28224
+ top: auto;
28225
+ margin-top: ${(props) => props.theme.theme_vars.spacingSizes.medium};
28226
+ z-index: 9;
28227
+ left: 0;
28228
+ right: 0;
28229
+ background: ${(props) => props.theme.theme_vars.colours.white};
28230
+ box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.11);
28231
+ -webkit-box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.11);
28232
+ -moz-box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.11);
28233
+ `;
28234
+
28235
+ const QuickLinksInnerContainer = styled.div`
28236
+ background: ${(props) => props.theme.theme_vars.colours.action_light};
28237
+ border-top: ${(props) => props.theme.theme_vars.border_width_thin} solid
28238
+ ${(props) => props.theme.theme_vars.colours.action};
28239
+ padding: ${(props) => props.theme.theme_vars.spacingSizes.medium} 0;
28240
+ box-shadow: 0px -4px 0px 0px ${(props) => props.theme.theme_vars.colours.action} inset;
28241
+ -webkit-box-shadow: 0px -4px 0px 0px ${(props) => props.theme.theme_vars.colours.action} inset;
28242
+ -moz-box-shadow: 0px -4px 0px 0px ${(props) => props.theme.theme_vars.colours.action} inset;
28243
+ `;
28244
+
28245
+ const QuickLink = styled.a`
28246
+ display: block;
28247
+ background: ${(props) => props.theme.theme_vars.colours.white};
28248
+ padding: ${(props) => props.theme.theme_vars.spacingSizes.medium};
28249
+ border: ${(props) => props.theme.theme_vars.border_width_thin} solid ${(props) => props.theme.theme_vars.colours.grey};
28250
+ border-radius: ${(props) => props.theme.theme_vars.border_radius};
28251
+ ${(props) => props.theme.fontStyles};
28252
+ ${(props) => props.theme.linkStyles};
28253
+
28254
+ &:hover {
28255
+ ${(props) => props.theme.linkStylesHover};
28256
+ background: ${(props) => props.theme.theme_vars.colours.grey_light};
28257
+ }
28258
+
28259
+ &:focus {
28260
+ ${(props) => props.theme.linkStylesFocus};
28261
+ background: ${(props) => props.theme.theme_vars.colours.grey_light};
28262
+ }
28263
+
28264
+ &:active {
28265
+ ${(props) => props.theme.linkStylesActive};
28266
+ background: ${(props) => props.theme.theme_vars.colours.grey_light};
28267
+ }
28268
+ `;
28269
+
28270
+ const Separator = styled.div`
28271
+ margin-bottom: ${(props) => props.margin ?? 0}px;
28272
+ padding-bottom: ${(props) => (props.margin ? props.theme.theme_vars.spacingSizes.medium : 0)};
28273
+ `;
28274
+
28275
+ const Container$4 = styled.div`
28276
+ box-sizing: border-box;
28277
+ display: flex;
28278
+ flex-wrap: wrap;
28279
+ flex-direction: row;
28280
+ justify-content: start;
28281
+ align-items: stretch;
28282
+ margin: 0;
28283
+ border: ${(props) => (props.hasBorder ? `1px solid ${props.theme.theme_vars.colours.grey}` : 'none')};
28284
+ `;
28285
+
28286
+ var Row = function (_a) {
28287
+ var _b = _a.hasBorder, hasBorder = _b === void 0 ? false : _b, children = _a.children;
28288
+ return (React.createElement(Container$4, { "data-testid": "Row", hasBorder: hasBorder }, children));
28289
+ };
28290
+
28291
+ const calculateWidth = (size) => {
28292
+ switch (size) {
28293
+ case 'full':
28294
+ return css`
28295
+ width: 100%;
28296
+ `;
28297
+ case 'one-half':
28298
+ return css`
28299
+ width: 50%;
28300
+ `;
28301
+ case 'one-third':
28302
+ return css`
28303
+ width: 33.333%;
28304
+ `;
28305
+ case 'two-thirds':
28306
+ return css`
28307
+ width: 66.666%;
28308
+ `;
28309
+ case 'one-quarter':
28310
+ return css`
28311
+ width: 25%;
28312
+ `;
28313
+ case 'three-quarters':
28314
+ return css`
28315
+ width: 75%;
28316
+ `;
28317
+ }
28318
+ };
28319
+
28320
+ const widths = (props) => {
28321
+ return css`
28322
+ ${calculateWidth(props.small)};
28323
+
28324
+ @media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.m}) {
28325
+ ${calculateWidth(props.medium)};
28326
+ }
28327
+
28328
+ @media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.l}) {
28329
+ ${calculateWidth(props.large)};
28330
+ }
28331
+ `;
28332
+ };
28333
+
28334
+ const Container$3 = styled.div`
28335
+ box-sizing: border-box;
28336
+ display: block;
28337
+ padding: ${(props) => (props.hasPadding ? props.theme.theme_vars.spacingSizes.small : `0`)};
28338
+ border: ${(props) => (props.hasBorder ? `1px solid ${props.theme.theme_vars.colours.negative}` : 'none')};
28339
+ ${widths};
28340
+ `;
28341
+
28342
+ var Column = function (_a) {
28343
+ var _b = _a.small, small = _b === void 0 ? 'full' : _b, _c = _a.medium, medium = _c === void 0 ? 'one-half' : _c, _d = _a.large, large = _d === void 0 ? 'one-third' : _d, _e = _a.hasPadding, hasPadding = _e === void 0 ? true : _e, _f = _a.hasBorder, hasBorder = _f === void 0 ? false : _f, children = _a.children;
28344
+ return (React.createElement(Container$3, { "data-testid": "Column", small: small, medium: medium, large: large, hasPadding: hasPadding, hasBorder: hasBorder }, children));
28345
+ };
28346
+
28347
+ var ServiceLinksBoxed = function (_a) {
28348
+ var serviceLinksArray = _a.serviceLinksArray; _a.serviceId;
28349
+ var _b = useState(null), activeServiceLink = _b[0], setActiveServiceLink = _b[1];
28350
+ var _c = useState(0), bottomMargin = _c[0], setBottomMargin = _c[1];
28351
+ var toggleActive = function (serviceLinkIndex) {
28352
+ if (activeServiceLink === serviceLinkIndex) {
28353
+ setActiveServiceLink(null);
28354
+ }
28355
+ else {
28356
+ setActiveServiceLink(serviceLinkIndex);
28357
+ }
28358
+ };
28359
+ useEffect(function () {
28360
+ var _a, _b;
28361
+ setBottomMargin((_b = (_a = refs.current[activeServiceLink]) === null || _a === void 0 ? void 0 : _a.current) === null || _b === void 0 ? void 0 : _b.clientHeight);
28362
+ }, [activeServiceLink]);
28363
+ var refs = React.useRef([]);
28364
+ refs.current = serviceLinksArray.map(function (_, index) {
28365
+ var _a;
28366
+ return (_a = refs.current[index]) !== null && _a !== void 0 ? _a : React.createRef();
28367
+ });
28368
+ return (React.createElement(Container$5, { "data-testid": "ServiceLinksBoxed" },
28369
+ React.createElement(Row, null, serviceLinksArray.map(function (serviceLink, index) { return (React.createElement(Column, { small: "full", medium: "one-half", large: "one-third", key: index },
28370
+ React.createElement(ServiceLink, { onClick: function () { return toggleActive(index); }, show: index === activeServiceLink, "aria-label": index === activeServiceLink ? 'Close ' + serviceLink.title : 'View ' + serviceLink.title },
28371
+ React.createElement(HeadingWithIcon, { text: serviceLink.title, icon: serviceLink.iconKey, level: 3, hasHover: true }),
28372
+ React.createElement("span", { className: "serviceLinkChevron" })),
28373
+ React.createElement(QuickLinksContainer, { show: index === activeServiceLink, ref: refs.current[index] },
28374
+ React.createElement(QuickLinksInnerContainer, null,
28375
+ React.createElement(Row, null,
28376
+ serviceLink.quickLinksArray.map(function (quickLink, quickLinkIndex) { return (React.createElement(Column, { small: "full", medium: "one-half", large: "one-third", key: quickLinkIndex },
28377
+ React.createElement(QuickLink, { href: quickLink.url }, quickLink.title))); }),
28378
+ React.createElement(Column, { small: "full", medium: "one-half", large: "one-third" },
28379
+ React.createElement(QuickLink, { href: serviceLink.url },
28380
+ "All ",
28381
+ serviceLink.title.toLowerCase(),
28382
+ " ",
28383
+ serviceLink.title.endsWith('services') ? '' : 'services'))))),
28384
+ React.createElement(Separator, { margin: index === activeServiceLink ? bottomMargin : 0 }))); }))));
28385
+ };
28386
+
28134
28387
  const containerMaxHeight = (props) => {
28135
- if (props.hideHeader) {
28388
+ if (props.hideHeader || props.isBoxed) {
28136
28389
  return css`
28137
28390
  max-height: none;
28138
28391
  overflow: visible;
@@ -28516,6 +28769,7 @@ const Link = styled.a`
28516
28769
  const IconContainer = styled.div`
28517
28770
  width: 76px;
28518
28771
  height: 76px;
28772
+ flex-shrink: 0;
28519
28773
 
28520
28774
  svg {
28521
28775
  width: auto;
@@ -28565,13 +28819,13 @@ var HeadingWithIconLink = function (_a) {
28565
28819
  };
28566
28820
 
28567
28821
  var ServicesLinksList = function (_a) {
28568
- var serviceLinksArray = _a.serviceLinksArray, _b = _a.hasBackground, hasBackground = _b === void 0 ? false : _b, _c = _a.hideHeader, hideHeader = _c === void 0 ? false : _c, _d = _a.oneCol, oneCol = _d === void 0 ? false : _d, _e = _a.serviceId, serviceId = _e === void 0 ? 'all-services' : _e;
28822
+ var serviceLinksArray = _a.serviceLinksArray, _b = _a.hasBackground, hasBackground = _b === void 0 ? false : _b, _c = _a.hideHeader, hideHeader = _c === void 0 ? false : _c, _d = _a.oneCol, oneCol = _d === void 0 ? false : _d, _e = _a.serviceId, serviceId = _e === void 0 ? 'all-services' : _e, _f = _a.isBoxed, isBoxed = _f === void 0 ? false : _f;
28569
28823
  var themeContext = useContext(ThemeContext);
28570
- var _f = useState(serviceLinksArray), arrayOrdering = _f[0], setArrayOrdering = _f[1];
28824
+ var _g = useState(serviceLinksArray), arrayOrdering = _g[0], setArrayOrdering = _g[1];
28571
28825
  var orderedArray = __spreadArray([], serviceLinksArray, true).sort(function (a, b) { return (a.title > b.title ? 1 : -1); });
28572
- var _g = useState(false), open = _g[0], setOpen = _g[1];
28573
- var _h = useLocalStorage(themeContext.cardinal_name + '-savedOrder', 0), currentOrder = _h[0], setCurrentOrder = _h[1];
28574
- var _j = useState(true), orderButtons = _j[0], setOrderButtons = _j[1];
28826
+ var _h = useState(false), open = _h[0], setOpen = _h[1];
28827
+ var _j = useLocalStorage(themeContext.cardinal_name + '-savedOrder', 0), currentOrder = _j[0], setCurrentOrder = _j[1];
28828
+ var _k = useState(true), orderButtons = _k[0], setOrderButtons = _k[1];
28575
28829
  useEffect(function () {
28576
28830
  if (currentOrder === '0' || currentOrder === 0) {
28577
28831
  setArrayOrdering(serviceLinksArray);
@@ -28583,27 +28837,27 @@ var ServicesLinksList = function (_a) {
28583
28837
  }
28584
28838
  }, [currentOrder]);
28585
28839
  return (React.createElement(React.Fragment, null,
28586
- React.createElement(Container$2, { id: serviceId, className: open && 'open', hideHeader: hideHeader },
28840
+ React.createElement(Container$2, { id: serviceId, className: open && 'open', hideHeader: hideHeader, isBoxed: isBoxed },
28587
28841
  !hideHeader && (React.createElement(HomeTitle, { "data-testid": "servicesLinksListHeader" },
28588
28842
  React.createElement(Heading, { text: "Council services" }),
28589
28843
  React.createElement(ReorderControl, null,
28590
28844
  "Order services by",
28591
28845
  React.createElement("br", null),
28592
28846
  orderButtons ? (React.createElement(React.Fragment, null,
28593
- React.createElement(ReorderButton, { onClick: function () { return setCurrentOrder(0); }, tabIndex: "-1", className: 'chosen', title: "Most used services selected" }, "Most used"),
28594
- React.createElement(ReorderButton, { onClick: function () { return setCurrentOrder(1); }, title: "Alphabetical services", name: "alphabatical services" }, "Alphabetical"))) : (React.createElement(React.Fragment, null,
28595
- React.createElement(ReorderButton, { onClick: function () { return setCurrentOrder(0); }, title: "Most used services" }, "Most used"),
28596
- React.createElement(ReorderButton, { onClick: function () { return setCurrentOrder(1); }, tabIndex: "-1", className: 'chosen', title: "Alphabetical services selected" }, "Alphabetical")))))),
28597
- React.createElement(LinksList, null,
28847
+ React.createElement(ReorderButton, { onClick: function () { return setCurrentOrder(0); }, tabIndex: "-1", className: 'chosen', title: "Most used services selected", "aria-label": "Order services by most used" }, "Most used"),
28848
+ React.createElement(ReorderButton, { onClick: function () { return setCurrentOrder(1); }, title: "Alphabetical services", name: "alphabetical services", "aria-label": "Order services alphabetically" }, "Alphabetical"))) : (React.createElement(React.Fragment, null,
28849
+ React.createElement(ReorderButton, { onClick: function () { return setCurrentOrder(0); }, title: "Most used services", "aria-label": "Order services by most used" }, "Most used"),
28850
+ React.createElement(ReorderButton, { onClick: function () { return setCurrentOrder(1); }, tabIndex: "-1", className: 'chosen', title: "Alphabetical services selected", "aria-label": "Order services alphabetically" }, "Alphabetical")))))),
28851
+ isBoxed ? (React.createElement(ServiceLinksBoxed, { serviceLinksArray: arrayOrdering })) : (React.createElement(LinksList, null,
28598
28852
  arrayOrdering.map(function (link, i) {
28599
28853
  var _a;
28600
28854
  return (React.createElement(PagelinkBlock, { oneCol: oneCol, key: i, hasBackground: hasBackground },
28601
28855
  React.createElement(HeadingWithIconLink, { title: link.title, iconKey: link.iconKey, link: link.url }),
28602
- React.createElement(PagelinkInner, null, ((_a = link.quickLinksArray) === null || _a === void 0 ? void 0 : _a.length) > 0 && (React.createElement(QuicklinkList, null, link.quickLinksArray.map(function (quicklink) { return (React.createElement(QuicklinkItem, { key: quicklink.title },
28856
+ React.createElement(PagelinkInner, null, ((_a = link.quickLinksArray) === null || _a === void 0 ? void 0 : _a.length) > 0 && (React.createElement(QuicklinkList, null, link.quickLinksArray.slice(0, 3).map(function (quicklink) { return (React.createElement(QuicklinkItem, { key: quicklink.title },
28603
28857
  React.createElement(Quicklink, { href: quicklink.url, title: quicklink.title }, quicklink.title))); }))))));
28604
28858
  }),
28605
- arrayOrdering.length > 1 && (arrayOrdering.length + 1) % 3 === 0 && React.createElement(PagelinkBlank, null))),
28606
- !hideHeader && (React.createElement(ViewMoreButtonContainer, null,
28859
+ arrayOrdering.length > 1 && (arrayOrdering.length + 1) % 3 === 0 && React.createElement(PagelinkBlank, null)))),
28860
+ !isBoxed && !hideHeader && (React.createElement(ViewMoreButtonContainer, null,
28607
28861
  React.createElement(ViewMoreButton, { onClick: function () { return (open ? setOpen(false) : setOpen(true)); } },
28608
28862
  React.createElement(IconWrapper, null,
28609
28863
  React.createElement(ChevronIcon, { direction: open ? 'up' : 'down', colourFill: "#000000" })),
@@ -28823,66 +29077,67 @@ var Summary = function (_a) {
28823
29077
  };
28824
29078
 
28825
29079
  const breakpointsVals$4 = {
28826
- s: "550",
28827
- m: "768", // tablets and larger
28828
- l: "1160", // desktops and larger
28829
- xl: "1440", // large desktops only
29080
+ s: '550',
29081
+ m: '768', // tablets and larger
29082
+ l: '1160', // desktops and larger
29083
+ xl: '1440', // large desktops only
28830
29084
  };
28831
29085
 
28832
29086
  const gds_vars = {
28833
- theme_name: "GDS theme",
28834
- cardinal_name: "gds",
28835
- is_memorial: false,
28836
- full_name: "FutureGov Template",
28837
- breakpointsVals: {
28838
- s: breakpointsVals$4.s,
28839
- m: breakpointsVals$4.m, // tablets and larger
28840
- l: breakpointsVals$4.l, // desktops and larger
28841
- xl: breakpointsVals$4.xl, // large desktops only
28842
- },
28843
- breakpoints: {
28844
- s: `${breakpointsVals$4.s}px`,
28845
- m: `${breakpointsVals$4.m}px`, // tablets and larger
28846
- l: `${breakpointsVals$4.l}px`, // desktops and larger
28847
- xl:`${breakpointsVals$4.xl}px`, // large desktops only
28848
- },
28849
- colours: {
28850
- black: "#000000",
28851
- grey_darkest: "#3C3C3B",
28852
- grey_dark: "#757575",
28853
- grey: "#C6C6C6",
28854
- grey_light: "#F5F5F5",
28855
- white: "#FFFFFF",
28856
-
28857
- action: "#1d70b8",
28858
- action_light: "#FAFAFA",
28859
- action_dark: "#003078",
28860
- positive: "#6C9A36",
28861
- negative: "#d4351c",
28862
-
28863
- visited: "#4c2c92",
28864
- focus: "#fd0",
28865
- placeholder: "#585656"
28866
- },
28867
- fontstack: "GDS Transport, Helvetica, Arial, sans-serif",
28868
- fontSizes: {
28869
- extra_small: ".9em",
28870
- small: "1em",
28871
- medium: "2em",
28872
- large: "3em"
28873
- },
28874
- border_width: "2px",
28875
- border_width_error: "3px",
28876
- border_radius: "0px",
28877
- border_radius_large: "0px",
28878
- spacingSizes: {
28879
- extra_small: "5px",
28880
- small: "10px",
28881
- medium: "20px",
28882
- large: "30px",
28883
- x_large: "45px;"
28884
- },
28885
- h1: `
29087
+ theme_name: 'GDS theme',
29088
+ cardinal_name: 'gds',
29089
+ is_memorial: false,
29090
+ full_name: 'FutureGov Template',
29091
+ breakpointsVals: {
29092
+ s: breakpointsVals$4.s,
29093
+ m: breakpointsVals$4.m, // tablets and larger
29094
+ l: breakpointsVals$4.l, // desktops and larger
29095
+ xl: breakpointsVals$4.xl, // large desktops only
29096
+ },
29097
+ breakpoints: {
29098
+ s: `${breakpointsVals$4.s}px`,
29099
+ m: `${breakpointsVals$4.m}px`, // tablets and larger
29100
+ l: `${breakpointsVals$4.l}px`, // desktops and larger
29101
+ xl: `${breakpointsVals$4.xl}px`, // large desktops only
29102
+ },
29103
+ colours: {
29104
+ black: '#000000',
29105
+ grey_darkest: '#3C3C3B',
29106
+ grey_dark: '#757575',
29107
+ grey: '#C6C6C6',
29108
+ grey_light: '#F5F5F5',
29109
+ white: '#FFFFFF',
29110
+
29111
+ action: '#1d70b8',
29112
+ action_light: '#FAFAFA',
29113
+ action_dark: '#003078',
29114
+ positive: '#6C9A36',
29115
+ negative: '#d4351c',
29116
+
29117
+ visited: '#4c2c92',
29118
+ focus: '#fd0',
29119
+ placeholder: '#585656',
29120
+ },
29121
+ fontstack: 'GDS Transport, Helvetica, Arial, sans-serif',
29122
+ fontSizes: {
29123
+ extra_small: '.9em',
29124
+ small: '1em',
29125
+ medium: '2em',
29126
+ large: '3em',
29127
+ },
29128
+ border_width: '2px',
29129
+ border_width_error: '3px',
29130
+ border_width_thin: '1px',
29131
+ border_radius: '0px',
29132
+ border_radius_large: '0px',
29133
+ spacingSizes: {
29134
+ extra_small: '5px',
29135
+ small: '10px',
29136
+ medium: '20px',
29137
+ large: '30px',
29138
+ x_large: '45px;',
29139
+ },
29140
+ h1: `
28886
29141
  font-size: 32px;
28887
29142
  font-size: 2rem;
28888
29143
  font-weight: 700;
@@ -28892,7 +29147,7 @@ const gds_vars = {
28892
29147
  font-size: 3rem;
28893
29148
  }
28894
29149
  `,
28895
- h2: `
29150
+ h2: `
28896
29151
  font-size: 24px;
28897
29152
  font-size: 1.5rem;
28898
29153
  font-weight: 700;
@@ -28902,7 +29157,7 @@ const gds_vars = {
28902
29157
  font-size: 2.25rem;
28903
29158
  }
28904
29159
  `,
28905
- h3: `
29160
+ h3: `
28906
29161
  font-size: 18px;
28907
29162
  font-size: 1.125rem;
28908
29163
  font-weight: 700;
@@ -28912,7 +29167,7 @@ const gds_vars = {
28912
29167
  font-size: 1.5rem;
28913
29168
  }
28914
29169
  `,
28915
- h4: `
29170
+ h4: `
28916
29171
  font-size: 16px;
28917
29172
  font-size: 1rem;
28918
29173
  font-weight: 700;
@@ -28921,7 +29176,7 @@ const gds_vars = {
28921
29176
  font-size: 19px;
28922
29177
  font-size: 1.1875rem;
28923
29178
  }
28924
- `
29179
+ `,
28925
29180
  };
28926
29181
 
28927
29182
  const breakpointsVals$3 = {
@@ -28986,6 +29241,7 @@ const north_vars = {
28986
29241
  },
28987
29242
  border_width: '2px',
28988
29243
  border_width_error: '3px',
29244
+ border_width_thin: '1px',
28989
29245
  border_radius: '3px',
28990
29246
  border_radius_large: '6px',
28991
29247
  spacingSizes: {
@@ -29099,6 +29355,7 @@ const west_vars = {
29099
29355
  },
29100
29356
  border_width: '2px',
29101
29357
  border_width_error: '3px',
29358
+ border_width_thin: '1px',
29102
29359
  border_radius: '3px',
29103
29360
  border_radius_large: '6px',
29104
29361
  spacingSizes: {
@@ -29211,6 +29468,7 @@ const lb_vars_north = {
29211
29468
  },
29212
29469
  border_width: '2px',
29213
29470
  border_width_error: '3px',
29471
+ border_width_thin: '1px',
29214
29472
  border_radius: '3px',
29215
29473
  border_radius_large: '6px',
29216
29474
  spacingSizes: {
@@ -29324,6 +29582,7 @@ const lb_vars_west = {
29324
29582
  },
29325
29583
  border_width: '2px',
29326
29584
  border_width_error: '3px',
29585
+ border_width_thin: '1px',
29327
29586
  border_radius: '3px',
29328
29587
  border_radius_large: '6px',
29329
29588
  spacingSizes: {
@@ -29471,5 +29730,5 @@ const north_theme = generate_theme(north_vars);
29471
29730
  const lb_theme_north = generate_theme(lb_vars_north);
29472
29731
  const lb_theme_west = generate_theme(lb_vars_west);
29473
29732
 
29474
- 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, GoogleMap, Header, Heading, HeadingWithIcon, HeroImage, HomeHero, HomeUnitarySection, Image$2 as Image, MaxWidthContainer, MemorialHero, NewsArticleDate, NewsArticleFeaturedBlock, NewsArticleFilterAccordion, NewsArticleImage, NewsArticleList, NewsArticleListHeader, NewsArticleOldBanner, PageMain, PageSidebar, PageTitle, PageWithSidebarContainer, PageWrapper, Pagination, PhaseBanner, PromoBanner, PromoBlock, PromotedLinks, Promotions, SearchResultsList, Searchbar, SectionLinks, SectionLinksMobileContents, SectionLinksSidebar, ServicesLinksList, SignpostLinks, SkipToMainContent, Summary, TextInput, Video, WarningText, WarningTextDisclaimer, lb_theme_north, lb_theme_west, north_theme, west_theme };
29733
+ 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, GoogleMap, Header, Heading, HeadingWithIcon, HeroImage, HomeHero, HomeUnitarySection, Image$2 as Image, MaxWidthContainer, MemorialHero, NewsArticleDate, NewsArticleFeaturedBlock, NewsArticleFilterAccordion, NewsArticleImage, NewsArticleList, NewsArticleListHeader, NewsArticleOldBanner, PageMain, PageSidebar, PageTitle, PageWithSidebarContainer, PageWrapper, Pagination, PhaseBanner, PromoBanner, PromoBlock, PromotedLinks, Promotions, SearchResultsList, Searchbar, SectionLinks, SectionLinksMobileContents, SectionLinksSidebar, ServiceLinksBoxed, ServicesLinksList, SignpostLinks, SkipToMainContent, Summary, TextInput, Video, WarningText, WarningTextDisclaimer, lb_theme_north, lb_theme_west, north_theme, west_theme };
29475
29734
  //# sourceMappingURL=index.esm.js.map