northants-design-system 0.2.30 → 0.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/index.js CHANGED
@@ -5422,6 +5422,8 @@ var ServiceIcon$5 = function (_a) {
5422
5422
  };
5423
5423
 
5424
5424
  var components = {
5425
+ accessibleparking: ServiceIcon$1X,
5426
+ accessibleparkingHover: ServiceIcon$1W,
5425
5427
  adults: ServiceIcon$1R,
5426
5428
  adultsHover: ServiceIcon$1Q,
5427
5429
  addresschange: ServiceIcon$1V,
@@ -5472,8 +5474,6 @@ var components = {
5472
5474
  dolsHover: ServiceIcon$1e,
5473
5475
  edit: ServiceIcon$1d,
5474
5476
  editHover: ServiceIcon$1c,
5475
- accessibleparking: ServiceIcon$1X,
5476
- accessibleparkingHover: ServiceIcon$1W,
5477
5477
  environment: ServiceIcon$1b,
5478
5478
  environmentHover: ServiceIcon$1a,
5479
5479
  finance: ServiceIcon$19,
@@ -6487,131 +6487,128 @@ var Pagination = function (_a) {
6487
6487
  };
6488
6488
 
6489
6489
  const Container$T = styled__default["default"].div`
6490
- ${props => props.theme.fontStyles};
6490
+ ${(props) => props.theme.fontStyles};
6491
6491
  margin-bottom: 30px;
6492
6492
  `;
6493
6493
 
6494
6494
  const Fieldset = styled__default["default"].fieldset`
6495
- min-width: 0;
6496
- margin: 0;
6497
- padding: 0;
6498
- border: 0;
6495
+ min-width: 0;
6496
+ margin: 0;
6497
+ padding: 0;
6498
+ border: 0;
6499
6499
 
6500
- &:after {
6501
- content: "";
6502
- display: block;
6503
- clear: both;
6504
- }
6500
+ &:after {
6501
+ content: '';
6502
+ display: block;
6503
+ clear: both;
6504
+ }
6505
6505
  `;
6506
6506
 
6507
- const hideLabel$1 = props => {
6508
- if(props.labelHidden === true) {
6507
+ const hideLabel$1 = (props) => {
6508
+ if (props.labelHidden === true) {
6509
6509
  return VisuallyHidden$2;
6510
6510
  }
6511
6511
  };
6512
6512
 
6513
-
6514
6513
  const Legend = styled__default["default"].legend`
6515
- color: #0b0c0c;
6516
- -webkit-box-sizing: border-box;
6517
- box-sizing: border-box;
6518
- display: table;
6519
- max-width: 100%;
6520
- margin-bottom: 10px;
6521
- padding: 0;
6522
- white-space: normal;
6523
- ${hideLabel$1}
6514
+ color: #0b0c0c;
6515
+ -webkit-box-sizing: border-box;
6516
+ box-sizing: border-box;
6517
+ display: table;
6518
+ max-width: 100%;
6519
+ margin-bottom: 10px;
6520
+ padding: 0;
6521
+ white-space: normal;
6522
+ ${hideLabel$1}
6524
6523
  `;
6525
6524
 
6526
- const hideHint = props => {
6527
- if(props.hintHidden === true) {
6525
+ const hideHint = (props) => {
6526
+ if (props.hintHidden === true) {
6528
6527
  return VisuallyHidden$2;
6529
6528
  }
6530
6529
  };
6531
6530
 
6532
-
6533
6531
  const Hint = styled__default["default"].div`
6534
- font-size: ${props => props.theme.theme_vars.fontSizes.small};
6535
- display: block;
6536
- margin-bottom: 15px;
6537
- color: #505a5f;
6538
- margin-top: -5px;
6539
- ${hideHint}
6532
+ font-size: ${(props) => props.theme.theme_vars.fontSizes.small};
6533
+ display: block;
6534
+ margin-bottom: 15px;
6535
+ color: #505a5f;
6536
+ margin-top: -5px;
6537
+ ${hideHint}
6540
6538
  `;
6541
6539
 
6542
6540
  const Checkboxes = styled__default["default"].div`
6543
- display: block;
6544
- `;
6545
-
6546
-
6541
+ display: block;
6542
+ `;
6547
6543
 
6548
6544
  const Checkbox = styled__default["default"].div`
6549
-
6550
- font-size: ${props => props.theme.theme_vars.fontSizes.small};
6551
- display: block;
6552
- position: relative;
6553
- min-height: 40px;
6554
- margin-bottom: 10px;
6555
- padding-left: 40px;
6556
- clear: left;
6557
- `;
6545
+ font-size: ${(props) => props.theme.theme_vars.fontSizes.small};
6546
+ display: block;
6547
+ position: relative;
6548
+ min-height: 40px;
6549
+ margin-bottom: 10px;
6550
+ padding-left: 40px;
6551
+ clear: left;
6552
+ `;
6558
6553
 
6559
6554
  const CheckboxInput = styled__default["default"].input`
6560
- cursor: pointer;
6561
- position: absolute;
6562
- z-index: 1;
6563
- top: -2px;
6564
- left: -2px;
6565
- width: 44px;
6566
- height: 44px;
6567
- margin: 0;
6568
- opacity: 0;
6555
+ cursor: pointer;
6556
+ position: absolute;
6557
+ z-index: 1;
6558
+ top: -2px;
6559
+ left: -2px;
6560
+ width: 44px;
6561
+ height: 44px;
6562
+ margin: 0;
6563
+ opacity: 0;
6564
+
6565
+ &:focus + label:before {
6566
+ box-shadow: 0 0 0 3px ${(props) => props.theme.theme_vars.colours.focus};
6567
+ }
6569
6568
  `;
6570
6569
 
6571
6570
  const CheckboxLabel = styled__default["default"].label`
6572
- display: inline-block;
6573
- margin-bottom: 0;
6574
- padding: 8px 15px 5px;
6575
- cursor: pointer;
6576
- -ms-touch-action: manipulation;
6577
- touch-action: manipulation;
6578
- color: #0b0c0c;
6579
- display: block;
6580
- margin-bottom: 5px;
6581
-
6582
-
6583
- &:before {
6584
- content: "";
6585
- -webkit-box-sizing: border-box;
6586
- box-sizing: border-box;
6587
- position: absolute;
6588
- top: 0;
6589
- left: 0;
6590
- width: 40px;
6591
- height: 40px;
6592
- border: 2px solid currentColor;
6593
- background: transparent;
6594
- }
6571
+ display: inline-block;
6572
+ margin-bottom: 0;
6573
+ padding: 8px 15px 5px;
6574
+ cursor: pointer;
6575
+ -ms-touch-action: manipulation;
6576
+ touch-action: manipulation;
6577
+ color: #0b0c0c;
6578
+ display: block;
6579
+ margin-bottom: 5px;
6595
6580
 
6581
+ &:before {
6582
+ content: '';
6583
+ -webkit-box-sizing: border-box;
6584
+ box-sizing: border-box;
6585
+ position: absolute;
6586
+ top: 0;
6587
+ left: 0;
6588
+ width: 40px;
6589
+ height: 40px;
6590
+ border: 2px solid currentColor;
6591
+ background: transparent;
6592
+ }
6596
6593
 
6597
- &:after {
6598
- content: "";
6599
- -webkit-box-sizing: border-box;
6600
- box-sizing: border-box;
6601
- position: absolute;
6602
- top: 11px;
6603
- left: 9px;
6604
- width: 23px;
6605
- height: 12px;
6606
- -webkit-transform: rotate(-45deg);
6607
- -ms-transform: rotate(-45deg);
6608
- transform: rotate(-45deg);
6609
- border: solid;
6610
- border-width: 0 0 5px 5px;
6611
- border-top-color: transparent;
6612
- opacity: ${props => props.isChecked ? 1 : 0};
6613
- background: transparent;
6614
- }
6594
+ &:after {
6595
+ content: '';
6596
+ -webkit-box-sizing: border-box;
6597
+ box-sizing: border-box;
6598
+ position: absolute;
6599
+ top: 11px;
6600
+ left: 9px;
6601
+ width: 23px;
6602
+ height: 12px;
6603
+ -webkit-transform: rotate(-45deg);
6604
+ -ms-transform: rotate(-45deg);
6605
+ transform: rotate(-45deg);
6606
+ border: solid;
6607
+ border-width: 0 0 5px 5px;
6608
+ border-top-color: transparent;
6609
+ opacity: ${(props) => (props.isChecked ? 1 : 0)};
6610
+ background: transparent;
6611
+ }
6615
6612
  `;
6616
6613
 
6617
6614
  const NewsArticleFilterFields = {
@@ -6637,10 +6634,10 @@ const NewsArticleFilterFields = {
6637
6634
 
6638
6635
  var CheckboxListFilter = function (_a) {
6639
6636
  var options = _a.options, checked = _a.checked, label = _a.label, _b = _a.hint, hint = _b === void 0 ? null : _b, displayLegend = _a.displayLegend;
6640
- var labelHidden = (label === null || !displayLegend) ? true : false;
6641
- var hintHidden = (hint === null) ? true : false;
6637
+ var labelHidden = label === null || !displayLegend ? true : false;
6638
+ var hintHidden = hint === null ? true : false;
6642
6639
  var setupCheckboxes = function () {
6643
- return options.map(function (option) { return (__assign$2(__assign$2({}, option), { checked: (checked.includes(option.value) ? true : false) })); });
6640
+ return options.map(function (option) { return (__assign$2(__assign$2({}, option), { checked: checked.includes(option.value) ? true : false })); });
6644
6641
  };
6645
6642
  var _c = React.useState(setupCheckboxes()), checkboxState = _c[0], setCheckboxState = _c[1];
6646
6643
  var optionChecked = function (e) {
@@ -6657,18 +6654,16 @@ var CheckboxListFilter = function (_a) {
6657
6654
  var checked = __spreadArray([], checkboxState, true);
6658
6655
  checked = newCheckboxState.filter(function (c) { return c.checked === true; });
6659
6656
  var articleTypes = checked.map(function (c) { return c.value; }).join(',');
6660
- handleParams('news', [{ key: NewsArticleFilterFields.articleType.queryParamKey, value: articleTypes }], ["page"]);
6657
+ handleParams('news', [{ key: NewsArticleFilterFields.articleType.queryParamKey, value: articleTypes }], ['page']);
6661
6658
  };
6662
6659
  var backupLabel = Math.random().toString(36).substring(7);
6663
6660
  return (React__default["default"].createElement(Container$T, { "data-testid": "CheckboxListFilter" },
6664
6661
  React__default["default"].createElement(Fieldset, { "aria-describedby": "waste-hint" },
6665
6662
  React__default["default"].createElement(Legend, { labelHidden: labelHidden }, label),
6666
6663
  React__default["default"].createElement(Hint, { id: "waste-hint", hintHidden: hintHidden }, hint),
6667
- React__default["default"].createElement(Checkboxes, null, checkboxState.map(function (option, i) {
6668
- return React__default["default"].createElement(Checkbox, { key: i },
6669
- React__default["default"].createElement(CheckboxInput, { id: option.value, name: labelHidden ? backupLabel : label, type: "checkbox", onChange: optionChecked, value: option.value, checked: option.checked }),
6670
- React__default["default"].createElement(CheckboxLabel, { isChecked: option.checked, htmlFor: option.value }, option.title));
6671
- })))));
6664
+ React__default["default"].createElement(Checkboxes, null, checkboxState.map(function (option, i) { return (React__default["default"].createElement(Checkbox, { key: i },
6665
+ React__default["default"].createElement(CheckboxInput, { id: option.value, name: labelHidden ? backupLabel : label, type: "checkbox", onChange: optionChecked, value: option.value, checked: option.checked }),
6666
+ React__default["default"].createElement(CheckboxLabel, { isChecked: option.checked, htmlFor: option.value }, option.title))); })))));
6672
6667
  };
6673
6668
 
6674
6669
  const Container$S = styled__default["default"].div`
@@ -6733,103 +6728,200 @@ var DropDownFilter = function (_a) {
6733
6728
  return (React__default["default"].createElement(DropDownSelect, { id: id, label: label, options: options, onChange: optionPicked, selected: value, hideLabel: hideLabel }));
6734
6729
  };
6735
6730
 
6736
- const oneColStyles = props => {
6737
- if(props.oneCol) {
6738
- return styled.css`width: 100%; display: block;`
6739
- }
6731
+ const oneColStyles = (props) => {
6732
+ if (props.oneCol) {
6733
+ return styled.css`
6734
+ width: 100%;
6735
+ display: block;
6736
+ `;
6737
+ }
6740
6738
  };
6741
6739
 
6742
6740
  const PromotedLinks$1 = styled__default["default"].div`
6743
- ${props => props.theme.fontStyles}
6744
- margin-top: 30px;
6741
+ ${(props) => props.theme.fontStyles}
6742
+ margin-top: 30px;
6745
6743
 
6746
- @media screen and (min-width: ${props => props.theme.theme_vars.breakpoints.s}){
6747
- display: -ms-flex;
6748
- display: -webkit-flex;
6749
- display: flex;
6750
- flex-wrap: wrap;
6751
- margin-top: 60px;
6752
- }
6753
- @media screen and (min-width: calc(${props => props.theme.theme_vars.breakpoints.l} + 60px)){
6754
- margin-top: 90px;
6755
- }
6756
- flex-direction: ${prop => prop.oneCol ? 'column' : 'inherit'};
6744
+ @media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.s}) {
6745
+ display: -ms-flex;
6746
+ display: -webkit-flex;
6747
+ display: flex;
6748
+ flex-wrap: wrap;
6749
+ margin-top: 60px;
6750
+ }
6751
+ @media screen and (min-width: calc(${(props) => props.theme.theme_vars.breakpoints.l} + 60px)) {
6752
+ margin-top: 90px;
6753
+ }
6754
+ flex-direction: ${(prop) => (prop.oneCol ? 'column' : 'inherit')};
6757
6755
  `;
6758
6756
 
6759
6757
  const PromotedLink$1 = styled__default["default"].a`
6760
- display: block;
6761
- @media screen and (min-width: calc(${props => props.theme.theme_vars.breakpoints.l} + 60px)){
6762
- box-sizing: border-box;
6763
- }
6764
- background: ${props => props.theme.theme_vars.colours.white};
6765
- background: ${props => props.theme.theme_vars.colours.white}F2;
6766
- border-radius: 3px;
6767
- box-shadow: 0px -4px 0px 0px ${props => props.theme.theme_vars.colours.action} inset, 0px 4px 15px rgba(0, 0, 0, 0.11);
6768
- -webkit-box-shadow: 0px -4px 0px 0px ${props => props.theme.theme_vars.colours.action} inset, 0px 4px 15px rgba(0, 0, 0, 0.11);
6769
- -moz-box-shadow: 0px -4px 0px 0px ${props => props.theme.theme_vars.colours.action} inset, 0px 4px 15px rgba(0, 0, 0, 0.11);
6770
-
6771
- padding: 20px 15px;
6772
- width: calc(100% - 30px);
6773
- margin-bottom: 15px;
6758
+ display: block;
6759
+ height: 100%;
6760
+ @media screen and (min-width: calc(${(props) => props.theme.theme_vars.breakpoints.l} + 60px)) {
6761
+ box-sizing: border-box;
6762
+ }
6763
+ background: ${(props) => props.theme.theme_vars.colours.white};
6764
+ background: ${(props) => props.theme.theme_vars.colours.white}F2;
6765
+ border-radius: 3px;
6766
+ box-shadow: 0px -4px 0px 0px ${(props) => props.theme.theme_vars.colours.action} inset,
6767
+ 0px 4px 15px rgba(0, 0, 0, 0.11);
6768
+ -webkit-box-shadow: 0px -4px 0px 0px ${(props) => props.theme.theme_vars.colours.action} inset,
6769
+ 0px 4px 15px rgba(0, 0, 0, 0.11);
6770
+ -moz-box-shadow: 0px -4px 0px 0px ${(props) => props.theme.theme_vars.colours.action} inset,
6771
+ 0px 4px 15px rgba(0, 0, 0, 0.11);
6774
6772
 
6775
- span {
6776
- ${props => props.theme.linkStyles};
6777
- }
6773
+ padding: 20px 15px;
6774
+ width: calc(100% - 30px);
6775
+ margin-bottom: 15px;
6778
6776
 
6779
- &:hover {
6780
- background: ${props => props.theme.theme_vars.colours.white};
6781
- }
6777
+ span {
6778
+ ${(props) => props.theme.linkStyles};
6779
+ }
6782
6780
 
6783
- &:focus {
6784
- ${props => props.theme.linkStylesFocus};
6785
- box-shadow: 0px -4px 0px 0px ${props => props.theme.theme_vars.colours.black} inset, 0px 4px 15px rgba(0, 0, 0, 0.11);
6786
- -webkit-box-shadow: 0px -4px 0px 0px ${props => props.theme.theme_vars.colours.black} inset, 0px 4px 15px rgba(0, 0, 0, 0.11);
6787
- -moz-box-shadow: 0px -4px 0px 0px ${props => props.theme.theme_vars.colours.black} inset, 0px 4px 15px rgba(0, 0, 0, 0.11);
6781
+ &:hover {
6782
+ background: ${(props) => props.theme.theme_vars.colours.white};
6783
+ }
6784
+
6785
+ &:focus {
6786
+ ${(props) => props.theme.linkStylesFocus};
6787
+ box-shadow: 0px -4px 0px 0px ${(props) => props.theme.theme_vars.colours.black} inset,
6788
+ 0px 4px 15px rgba(0, 0, 0, 0.11);
6789
+ -webkit-box-shadow: 0px -4px 0px 0px ${(props) => props.theme.theme_vars.colours.black} inset,
6790
+ 0px 4px 15px rgba(0, 0, 0, 0.11);
6791
+ -moz-box-shadow: 0px -4px 0px 0px ${(props) => props.theme.theme_vars.colours.black} inset,
6792
+ 0px 4px 15px rgba(0, 0, 0, 0.11);
6793
+ }
6794
+ &:active {
6795
+ ${(props) => props.theme.linkStylesActive};
6796
+ transform: translateY(3px);
6797
+ box-shadow: 0px -1px 0px 0px ${(props) => props.theme.theme_vars.colours.black} inset,
6798
+ 0px 4px 15px rgba(0, 0, 0, 0.11);
6799
+ -webkit-box-shadow: 0px -1px 0px 0px ${(props) => props.theme.theme_vars.colours.black} inset,
6800
+ 0px 4px 15px rgba(0, 0, 0, 0.11);
6801
+ -moz-box-shadow: 0px -1px 0px 0px ${(props) => props.theme.theme_vars.colours.black} inset,
6802
+ 0px 4px 15px rgba(0, 0, 0, 0.11);
6803
+ }
6804
+ @media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.s}) {
6805
+ width: 100%;
6806
+ margin-right: 15px;
6807
+ flex: 0 0 calc(50% - 38px);
6808
+ &:nth-of-type(2n) {
6809
+ margin-right: 0;
6788
6810
  }
6789
- &:active {
6790
- ${props => props.theme.linkStylesActive};
6791
- transform: translateY(3px);
6792
- box-shadow: 0px -1px 0px 0px ${props => props.theme.theme_vars.colours.black} inset, 0px 4px 15px rgba(0, 0, 0, 0.11);
6793
- -webkit-box-shadow: 0px -1px 0px 0px ${props => props.theme.theme_vars.colours.black} inset, 0px 4px 15px rgba(0, 0, 0, 0.11);
6794
- -moz-box-shadow: 0px -1px 0px 0px ${props => props.theme.theme_vars.colours.black} inset, 0px 4px 15px rgba(0, 0, 0, 0.11);
6811
+ }
6812
+
6813
+ @media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.m}) {
6814
+ width: 100%;
6815
+ margin-right: 30px;
6816
+
6817
+ margin-bottom: ${(prop) => (prop.oneCol ? '20px' : '0px')};
6818
+ padding: 30px;
6819
+ flex: 1;
6820
+
6821
+ &:nth-of-type(2n) {
6822
+ margin-right: 30px;
6795
6823
  }
6796
- @media screen and (min-width: ${props => props.theme.theme_vars.breakpoints.s}){
6797
- width: 100%;
6798
- margin-right: 15px;
6799
- flex: 0 0 calc(50% - 38px);
6800
- &:nth-of-type(2n) {
6801
- margin-right: 0;
6802
- }
6824
+ &:last-of-type {
6825
+ margin-right: 0;
6803
6826
  }
6827
+ }
6828
+ ${oneColStyles}
6829
+ `;
6804
6830
 
6805
- @media screen and (min-width: ${props => props.theme.theme_vars.breakpoints.m}){
6806
- width: 100%;
6807
- margin-right: 30px;
6831
+ const Container$R = styled__default["default"].div`
6832
+ box-sizing: border-box;
6833
+ display: flex;
6834
+ flex-wrap: wrap;
6835
+ flex-direction: row;
6836
+ justify-content: start;
6837
+ align-items: stretch;
6838
+ margin: 0 -${(props) => props.theme.theme_vars.spacingSizes.small};
6839
+ border: ${(props) => (props.hasBorder ? `1px solid ${props.theme.theme_vars.colours.grey}` : 'none')};
6840
+ list-style: none;
6841
+ max-width: none !important;
6842
+ min-width: calc(
6843
+ 100% + ${(props) => props.theme.theme_vars.spacingSizes.small} +
6844
+ ${(props) => props.theme.theme_vars.spacingSizes.small}
6845
+ );
6808
6846
 
6809
- margin-bottom: ${prop => prop.oneCol ? '20px' : '0px'};
6810
- padding: 30px;
6811
- flex: 1;
6847
+ @media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.l}) {
6848
+ flex-wrap: ${(props) => (props.hasWrap ? `wrap` : `nowrap`)};
6849
+ }
6850
+ `;
6812
6851
 
6813
- &:nth-of-type(2n) {
6814
- margin-right: 30px;
6815
- }
6816
- &:last-of-type {
6817
- margin-right: 0;
6818
- }
6852
+ var Row$1 = function (_a) {
6853
+ var _b = _a.hasBorder, hasBorder = _b === void 0 ? false : _b, _c = _a.isList, isList = _c === void 0 ? false : _c, _d = _a.hasWrap, hasWrap = _d === void 0 ? true : _d, children = _a.children;
6854
+ return (React__default["default"].createElement(Container$R, { "data-testid": "Row", hasBorder: hasBorder, hasWrap: hasWrap, as: isList ? 'ul' : 'div' }, children));
6855
+ };
6856
+
6857
+ const calculateWidth = (size) => {
6858
+ switch (size) {
6859
+ case 'full':
6860
+ return styled.css`
6861
+ width: 100%;
6862
+ `;
6863
+ case 'one-half':
6864
+ return styled.css`
6865
+ width: 50%;
6866
+ `;
6867
+ case 'one-third':
6868
+ return styled.css`
6869
+ width: 33.333%;
6870
+ `;
6871
+ case 'two-thirds':
6872
+ return styled.css`
6873
+ width: 66.666%;
6874
+ `;
6875
+ case 'one-quarter':
6876
+ return styled.css`
6877
+ width: 25%;
6878
+ `;
6879
+ case 'three-quarters':
6880
+ return styled.css`
6881
+ width: 75%;
6882
+ `;
6883
+ case 'auto':
6884
+ return styled.css`
6885
+ flex-grow: 1;
6886
+ `;
6887
+ }
6888
+ };
6819
6889
 
6890
+ const widths = (props) => {
6891
+ return styled.css`
6892
+ ${calculateWidth(props.small)};
6820
6893
 
6894
+ @media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.m}) {
6895
+ ${calculateWidth(props.medium)};
6821
6896
  }
6822
- ${oneColStyles}
6823
6897
 
6898
+ @media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.l}) {
6899
+ ${calculateWidth(props.large)};
6900
+ }
6824
6901
  `;
6902
+ };
6903
+
6904
+ const Container$Q = styled__default["default"].div`
6905
+ box-sizing: border-box;
6906
+ display: block;
6907
+ padding: ${(props) => (props.hasPadding ? props.theme.theme_vars.spacingSizes.small : `0`)};
6908
+ border: ${(props) => (props.hasBorder ? `1px solid ${props.theme.theme_vars.colours.negative}` : 'none')};
6909
+ left: 0;
6910
+ ${widths};
6911
+ `;
6912
+
6913
+ var Column = function (_a) {
6914
+ var _b = _a.small, small = _b === void 0 ? 'full' : _b, _c = _a.medium, medium = _c === void 0 ? 'one-half' : _c, _d = _a.large, large = _d === void 0 ? 'one-third' : _d, _e = _a.hasPadding, hasPadding = _e === void 0 ? true : _e, _f = _a.hasBorder, hasBorder = _f === void 0 ? false : _f, _g = _a.isList, isList = _g === void 0 ? false : _g, children = _a.children;
6915
+ return (React__default["default"].createElement(Container$Q, { "data-testid": "Column", small: small, medium: medium, large: large, hasPadding: hasPadding, hasBorder: hasBorder, as: isList ? 'li' : 'div' }, children));
6916
+ };
6825
6917
 
6826
6918
  var PromotedLinks = function (_a) {
6827
6919
  var promotedLinksArray = _a.promotedLinksArray, oneCol = _a.oneCol;
6828
6920
  if (promotedLinksArray.length > 0) {
6829
- return (React__default["default"].createElement(PromotedLinks$1, { "data-testid": "PromotedLinks", oneCol: oneCol }, promotedLinksArray.map(function (link, i) {
6830
- return React__default["default"].createElement(PromotedLink$1, { key: i, oneCol: oneCol, href: link.url, title: link.title },
6831
- React__default["default"].createElement("span", null, link.title));
6832
- })));
6921
+ return (React__default["default"].createElement(PromotedLinks$1, { "data-testid": "PromotedLinks", oneCol: oneCol },
6922
+ React__default["default"].createElement(Row$1, { isList: true, hasWrap: false }, promotedLinksArray.map(function (link, i) { return (React__default["default"].createElement(Column, { isList: true, small: "full", medium: "one-half", large: "auto", key: i },
6923
+ React__default["default"].createElement(PromotedLink$1, { oneCol: oneCol, href: link.url, title: link.title },
6924
+ React__default["default"].createElement("span", null, link.title)))); }))));
6833
6925
  }
6834
6926
  else {
6835
6927
  return null;
@@ -6848,7 +6940,7 @@ var TextInput = function (_a) {
6848
6940
 
6849
6941
  // Accordion
6850
6942
 
6851
- const Container$R = styled__default["default"].div`
6943
+ const Container$P = styled__default["default"].div`
6852
6944
  ${(props) => props.theme.fontStyles}
6853
6945
  margin-bottom: 20px;
6854
6946
  border-bottom: 1px solid ${(props) => props.theme.theme_vars.colours.grey};
@@ -7130,7 +7222,7 @@ var Accordion = function (_a) {
7130
7222
  setAccordionStates(newStatus);
7131
7223
  };
7132
7224
  var accordionId = "accordion".concat(uniqueID());
7133
- return (React__default["default"].createElement(Container$R, { "data-testid": "Accordion", id: accordionId },
7225
+ return (React__default["default"].createElement(Container$P, { "data-testid": "Accordion", id: accordionId },
7134
7226
  showControls && sections.length > 1 && (React__default["default"].createElement(AccordionControls, null,
7135
7227
  React__default["default"].createElement(OpenAllButton, { onClick: toggleAll, type: "button", "aria-expanded": !openAll },
7136
7228
  openAll ? 'Open all' : 'Close all',
@@ -7181,7 +7273,7 @@ var BlockQuote = function (_a) {
7181
7273
  citation && React__default["default"].createElement(Citation, null, citation)));
7182
7274
  };
7183
7275
 
7184
- const Container$Q = styled__default["default"].div`
7276
+ const Container$O = styled__default["default"].div`
7185
7277
  margin-bottom: 30px;
7186
7278
  display: block;
7187
7279
 
@@ -7196,16 +7288,16 @@ const Container$Q = styled__default["default"].div`
7196
7288
  */
7197
7289
  var CallToAction = function (_a) {
7198
7290
  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"]);
7199
- return (React__default["default"].createElement(Container$Q, null,
7291
+ return (React__default["default"].createElement(Container$O, null,
7200
7292
  React__default["default"].createElement(Button$2, { primary: primary, size: "large", text: text, url: url, isExternal: isExternal, isDisabled: isDisabled })));
7201
7293
  };
7202
7294
 
7203
- const Container$P = styled__default["default"].div`
7295
+ const Container$N = styled__default["default"].div`
7204
7296
  display: block;
7205
7297
  ${(props) => props.theme.fontStyles}
7206
7298
  `;
7207
7299
 
7208
- const Row$1 = styled__default["default"].div`
7300
+ const Row = styled__default["default"].div`
7209
7301
  margin-bottom: 15px;
7210
7302
  border-bottom: 1px solid ${(props) => props.theme.theme_vars.colours.grey};
7211
7303
  `;
@@ -7298,81 +7390,9 @@ const ErrorText = styled__default["default"].p`
7298
7390
  font-size: 18px;
7299
7391
  font-size: 1rem;
7300
7392
  line-height: 1.25;
7301
- }
7302
- `;
7303
-
7304
- const calculateWidth = (size) => {
7305
- switch (size) {
7306
- case 'full':
7307
- return styled.css`
7308
- width: 100%;
7309
- `;
7310
- case 'one-half':
7311
- return styled.css`
7312
- width: 50%;
7313
- `;
7314
- case 'one-third':
7315
- return styled.css`
7316
- width: 33.333%;
7317
- `;
7318
- case 'two-thirds':
7319
- return styled.css`
7320
- width: 66.666%;
7321
- `;
7322
- case 'one-quarter':
7323
- return styled.css`
7324
- width: 25%;
7325
- `;
7326
- case 'three-quarters':
7327
- return styled.css`
7328
- width: 75%;
7329
- `;
7330
- }
7331
- };
7332
-
7333
- const widths = (props) => {
7334
- return styled.css`
7335
- ${calculateWidth(props.small)};
7336
-
7337
- @media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.m}) {
7338
- ${calculateWidth(props.medium)};
7339
- }
7340
-
7341
- @media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.l}) {
7342
- ${calculateWidth(props.large)};
7343
- }
7344
- `;
7345
- };
7346
-
7347
- const Container$O = styled__default["default"].div`
7348
- box-sizing: border-box;
7349
- display: block;
7350
- padding: ${(props) => (props.hasPadding ? props.theme.theme_vars.spacingSizes.small : `0`)};
7351
- border: ${(props) => (props.hasBorder ? `1px solid ${props.theme.theme_vars.colours.negative}` : 'none')};
7352
- ${widths};
7353
- `;
7354
-
7355
- var Column = function (_a) {
7356
- 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;
7357
- return (React__default["default"].createElement(Container$O, { "data-testid": "Column", small: small, medium: medium, large: large, hasPadding: hasPadding, hasBorder: hasBorder }, children));
7358
- };
7359
-
7360
- const Container$N = styled__default["default"].div`
7361
- box-sizing: border-box;
7362
- display: flex;
7363
- flex-wrap: wrap;
7364
- flex-direction: row;
7365
- justify-content: start;
7366
- align-items: stretch;
7367
- margin: 0;
7368
- border: ${(props) => (props.hasBorder ? `1px solid ${props.theme.theme_vars.colours.grey}` : 'none')};
7393
+ }
7369
7394
  `;
7370
7395
 
7371
- var Row = function (_a) {
7372
- var _b = _a.hasBorder, hasBorder = _b === void 0 ? false : _b, children = _a.children;
7373
- return (React__default["default"].createElement(Container$N, { "data-testid": "Row", hasBorder: hasBorder }, children));
7374
- };
7375
-
7376
7396
  /**
7377
7397
  * An list of parishes, sorted alphabetically, containing parish council tax bands
7378
7398
  */
@@ -7448,15 +7468,15 @@ var CouncilTaxAlphabeticalDirectory = function (_a) {
7448
7468
  });
7449
7469
  return letterData;
7450
7470
  });
7451
- return (React__default["default"].createElement(Container$P, { "data-testid": "AlphabeticalDirectory", ref: directoryRef },
7471
+ return (React__default["default"].createElement(Container$N, { "data-testid": "AlphabeticalDirectory", ref: directoryRef },
7452
7472
  React__default["default"].createElement(React__default["default"].Fragment, null,
7453
7473
  parishes.length === 0 && (React__default["default"].createElement(ErrorText, null, "There was an issue fetching the parish data. Please try again later.")),
7454
- parish === null ? (React__default["default"].createElement(React__default["default"].Fragment, null, sortedData.map(function (letter, i) { return (React__default["default"].createElement(Row$1, { key: i },
7455
- React__default["default"].createElement(Row, null,
7474
+ parish === null ? (React__default["default"].createElement(React__default["default"].Fragment, null, sortedData.map(function (letter, i) { return (React__default["default"].createElement(Row, { key: i },
7475
+ React__default["default"].createElement(Row$1, null,
7456
7476
  React__default["default"].createElement(Column, { small: "full", medium: "one-quarter", large: "one-quarter" },
7457
7477
  React__default["default"].createElement(Letter, null, letter.group)),
7458
7478
  React__default["default"].createElement(Column, { small: "full", medium: "three-quarters", large: "three-quarters" },
7459
- React__default["default"].createElement(Row, null, letter.children.map(function (letterData, i) { return (React__default["default"].createElement(Column, { small: "one-half", medium: "one-half", large: "one-half", key: i },
7479
+ React__default["default"].createElement(Row$1, null, letter.children.map(function (letterData, i) { return (React__default["default"].createElement(Column, { small: "one-half", medium: "one-half", large: "one-half", key: i },
7460
7480
  React__default["default"].createElement(Link$4, { onClick: function () { return showParish(letterData); } }, letterData.title))); })))))); }))) : (React__default["default"].createElement(React__default["default"].Fragment, null,
7461
7481
  React__default["default"].createElement(BackButton, { onClick: function () { return setCurrentParish(null); } }, "Back"),
7462
7482
  React__default["default"].createElement("div", { className: "table-container" },
@@ -19798,7 +19818,6 @@ function sanitizeHtml(html, options, _recursing) {
19798
19818
  delete frame.attribs[a];
19799
19819
  return;
19800
19820
  }
19801
- let parsed;
19802
19821
  // check allowedAttributesMap for the element and attribute and modify the value
19803
19822
  // as necessary if there are specific values defined.
19804
19823
  let passedAllowedAttributesMapCheck = false;
@@ -19846,14 +19865,14 @@ function sanitizeHtml(html, options, _recursing) {
19846
19865
  let allowed = true;
19847
19866
 
19848
19867
  try {
19849
- const parsed = new URL(value);
19868
+ const parsed = parseUrl(value);
19850
19869
 
19851
19870
  if (options.allowedScriptHostnames || options.allowedScriptDomains) {
19852
19871
  const allowedHostname = (options.allowedScriptHostnames || []).find(function (hostname) {
19853
- return hostname === parsed.hostname;
19872
+ return hostname === parsed.url.hostname;
19854
19873
  });
19855
19874
  const allowedDomain = (options.allowedScriptDomains || []).find(function(domain) {
19856
- return parsed.hostname === domain || parsed.hostname.endsWith(`.${domain}`);
19875
+ return parsed.url.hostname === domain || parsed.url.hostname.endsWith(`.${domain}`);
19857
19876
  });
19858
19877
  allowed = allowedHostname || allowedDomain;
19859
19878
  }
@@ -19870,29 +19889,9 @@ function sanitizeHtml(html, options, _recursing) {
19870
19889
  if (name === 'iframe' && a === 'src') {
19871
19890
  let allowed = true;
19872
19891
  try {
19873
- // Chrome accepts \ as a substitute for / in the // at the
19874
- // start of a URL, so rewrite accordingly to prevent exploit.
19875
- // Also drop any whitespace at that point in the URL
19876
- value = value.replace(/^(\w+:)?\s*[\\/]\s*[\\/]/, '$1//');
19877
- if (value.startsWith('relative:')) {
19878
- // An attempt to exploit our workaround for base URLs being
19879
- // mandatory for relative URL validation in the WHATWG
19880
- // URL parser, reject it
19881
- throw new Error('relative: exploit attempt');
19882
- }
19883
- // naughtyHref is in charge of whether protocol relative URLs
19884
- // are cool. Here we are concerned just with allowed hostnames and
19885
- // whether to allow relative URLs.
19886
- //
19887
- // Build a placeholder "base URL" against which any reasonable
19888
- // relative URL may be parsed successfully
19889
- let base = 'relative://relative-site';
19890
- for (let i = 0; (i < 100); i++) {
19891
- base += `/${i}`;
19892
- }
19893
- const parsed = new URL(value, base);
19894
- const isRelativeUrl = parsed && parsed.hostname === 'relative-site' && parsed.protocol === 'relative:';
19895
- if (isRelativeUrl) {
19892
+ const parsed = parseUrl(value);
19893
+
19894
+ if (parsed.isRelativeUrl) {
19896
19895
  // default value of allowIframeRelativeUrls is true
19897
19896
  // unless allowedIframeHostnames or allowedIframeDomains specified
19898
19897
  allowed = has(options, 'allowIframeRelativeUrls')
@@ -19900,10 +19899,10 @@ function sanitizeHtml(html, options, _recursing) {
19900
19899
  : (!options.allowedIframeHostnames && !options.allowedIframeDomains);
19901
19900
  } else if (options.allowedIframeHostnames || options.allowedIframeDomains) {
19902
19901
  const allowedHostname = (options.allowedIframeHostnames || []).find(function (hostname) {
19903
- return hostname === parsed.hostname;
19902
+ return hostname === parsed.url.hostname;
19904
19903
  });
19905
19904
  const allowedDomain = (options.allowedIframeDomains || []).find(function(domain) {
19906
- return parsed.hostname === domain || parsed.hostname.endsWith(`.${domain}`);
19905
+ return parsed.url.hostname === domain || parsed.url.hostname.endsWith(`.${domain}`);
19907
19906
  });
19908
19907
  allowed = allowedHostname || allowedDomain;
19909
19908
  }
@@ -19918,7 +19917,7 @@ function sanitizeHtml(html, options, _recursing) {
19918
19917
  }
19919
19918
  if (a === 'srcset') {
19920
19919
  try {
19921
- parsed = parseSrcset(value);
19920
+ let parsed = parseSrcset(value);
19922
19921
  parsed.forEach(function(value) {
19923
19922
  if (naughtyHref('srcset', value.url)) {
19924
19923
  value.evil = true;
@@ -20144,7 +20143,17 @@ function sanitizeHtml(html, options, _recursing) {
20144
20143
  // Clobber any comments in URLs, which the browser might
20145
20144
  // interpret inside an XML data island, allowing
20146
20145
  // a javascript: URL to be snuck through
20147
- href = href.replace(/<!--.*?-->/g, '');
20146
+ while (true) {
20147
+ const firstIndex = href.indexOf('<!--');
20148
+ if (firstIndex === -1) {
20149
+ break;
20150
+ }
20151
+ const lastIndex = href.indexOf('-->', firstIndex + 4);
20152
+ if (lastIndex === -1) {
20153
+ break;
20154
+ }
20155
+ href = href.substring(0, firstIndex) + href.substring(lastIndex + 3);
20156
+ }
20148
20157
  // Case insensitive so we don't get faked out by JAVASCRIPT #1
20149
20158
  // Allow more characters after the first so we don't get faked
20150
20159
  // out by certain schemes browsers accept
@@ -20167,6 +20176,33 @@ function sanitizeHtml(html, options, _recursing) {
20167
20176
  return !options.allowedSchemes || options.allowedSchemes.indexOf(scheme) === -1;
20168
20177
  }
20169
20178
 
20179
+ function parseUrl(value) {
20180
+ value = value.replace(/^(\w+:)?\s*[\\/]\s*[\\/]/, '$1//');
20181
+ if (value.startsWith('relative:')) {
20182
+ // An attempt to exploit our workaround for base URLs being
20183
+ // mandatory for relative URL validation in the WHATWG
20184
+ // URL parser, reject it
20185
+ throw new Error('relative: exploit attempt');
20186
+ }
20187
+ // naughtyHref is in charge of whether protocol relative URLs
20188
+ // are cool. Here we are concerned just with allowed hostnames and
20189
+ // whether to allow relative URLs.
20190
+ //
20191
+ // Build a placeholder "base URL" against which any reasonable
20192
+ // relative URL may be parsed successfully
20193
+ let base = 'relative://relative-site';
20194
+ for (let i = 0; (i < 100); i++) {
20195
+ base += `/${i}`;
20196
+ }
20197
+
20198
+ const parsed = new URL(value, base);
20199
+
20200
+ const isRelativeUrl = parsed && parsed.hostname === 'relative-site' && parsed.protocol === 'relative:';
20201
+ return {
20202
+ isRelativeUrl,
20203
+ url: parsed
20204
+ };
20205
+ }
20170
20206
  /**
20171
20207
  * Filters user input css properties by allowlisted regex attributes.
20172
20208
  * Modifies the abstractSyntaxTree object.
@@ -20349,7 +20385,7 @@ var Card = function (_a) {
20349
20385
  var Cards = function (_a) {
20350
20386
  var cards = _a.cards;
20351
20387
  return (React__default["default"].createElement(Container$M, { "data-testid": "Cards" },
20352
- React__default["default"].createElement(Row, null, cards.map(function (card, index) { return (React__default["default"].createElement(Column, { small: "full", medium: "one-half", large: "one-third", key: index },
20388
+ React__default["default"].createElement(Row$1, null, cards.map(function (card, index) { return (React__default["default"].createElement(Column, { small: "full", medium: "one-half", large: "one-third", key: index },
20353
20389
  React__default["default"].createElement(Card, __assign$2({}, card)))); }))));
20354
20390
  };
20355
20391
 
@@ -20358,91 +20394,85 @@ const Container$C = styled__default["default"].div`
20358
20394
  `;
20359
20395
 
20360
20396
  const Outer = styled__default["default"].div`
20361
- ${props => props.theme.fontStyles}
20362
- max-width: 725px;
20363
- &:not(:first-child) {
20364
- a {
20365
- margin-top: 30px;
20366
- &:before {
20367
- content: "";
20368
- height: 1px;
20369
- width: 100%;
20370
- position: absolute;
20371
- left: 0;
20372
- top: -15px;
20373
- background: ${props => props.theme.theme_vars.colours.grey_dark}80;
20374
- }
20375
- }
20376
- }
20397
+ ${(props) => props.theme.fontStyles}
20398
+ max-width: 725px;
20399
+ &:not(:first-child) {
20400
+ a {
20401
+ margin-top: 15px;
20402
+ border-top: 1px solid ${(props) => props.theme.theme_vars.colours.grey_dark}80;
20403
+ padding-top: 15px;
20404
+ }
20405
+ }
20377
20406
  `;
20378
20407
  const Link$3 = styled__default["default"].a`
20379
- margin-bottom: 15px;
20380
- display: block;
20381
- width: fit-content;
20382
- position: relative;
20383
- min-width: 300px;
20408
+ margin-bottom: 15px;
20409
+ display: block;
20410
+ width: 100%;
20411
+ position: relative;
20412
+ min-width: 300px;
20384
20413
 
20385
- svg {
20386
- margin-right: 10px;
20387
- vertical-align: top;
20388
- margin-left: 5px;
20389
- margin-top: 5px;
20390
- g {
20391
- fill: ${props => props.theme.theme_vars.colours.grey_dark};
20392
- }
20414
+ svg {
20415
+ margin-right: 10px;
20416
+ vertical-align: top;
20417
+ margin-left: 5px;
20418
+ margin-top: 5px;
20419
+ g {
20420
+ fill: ${(props) => props.theme.theme_vars.colours.grey_dark};
20393
20421
  }
20422
+ }
20394
20423
 
20395
- &:hover {
20396
- .file-title {
20397
- color: ${props => props.theme.theme_vars.colours.action};
20398
- }
20399
- .file-details {
20400
- transform: translate(3px, 0px);
20401
- }
20402
- svg {
20403
- g {
20404
- fill: ${props => props.theme.theme_vars.colours.action};
20405
- }
20406
- }
20424
+ &:hover {
20425
+ .file-title {
20426
+ color: ${(props) => props.theme.theme_vars.colours.action};
20407
20427
  }
20408
-
20409
- &:focus {
20410
- outline: none;
20411
- background: ${props => props.theme.theme_vars.colours.focus};
20412
- box-shadow: 0px 0px 0px 3px ${props => props.theme.theme_vars.colours.focus}, 0px 3px 0px 3px ${props => props.theme.theme_vars.colours.black};
20413
- svg {
20414
- g {
20415
- fill: ${props => props.theme.theme_vars.colours.black};
20416
- }
20417
- }
20428
+ .file-details {
20429
+ transform: translate(3px, 0px);
20418
20430
  }
20419
- &:active {
20420
- transform: translateY(2px);
20421
- box-shadow: 0px 0px 0px 3px ${props => props.theme.theme_vars.colours.focus}, 0px 1px 0px 3px ${props => props.theme.theme_vars.colours.black};
20431
+ svg {
20432
+ g {
20433
+ fill: ${(props) => props.theme.theme_vars.colours.action};
20434
+ }
20435
+ }
20436
+ }
20437
+
20438
+ &:focus {
20439
+ outline: none;
20440
+ background: ${(props) => props.theme.theme_vars.colours.focus};
20441
+ box-shadow: 0px 0px 0px 3px ${(props) => props.theme.theme_vars.colours.focus},
20442
+ 0px 3px 0px 3px ${(props) => props.theme.theme_vars.colours.black};
20443
+ svg {
20444
+ g {
20445
+ fill: ${(props) => props.theme.theme_vars.colours.black};
20446
+ }
20422
20447
  }
20448
+ }
20449
+ &:active {
20450
+ transform: translateY(2px);
20451
+ box-shadow: 0px 0px 0px 3px ${(props) => props.theme.theme_vars.colours.focus},
20452
+ 0px 1px 0px 3px ${(props) => props.theme.theme_vars.colours.black};
20453
+ }
20423
20454
  `;
20424
20455
 
20425
- const FileDetails= styled__default["default"].div`
20426
- display: inline-block;
20427
- max-width: calc(100% - 45px);
20428
- transition: transform 0.3s;
20456
+ const FileDetails = styled__default["default"].div`
20457
+ display: inline-block;
20458
+ max-width: calc(100% - 45px);
20459
+ transition: transform 0.3s;
20429
20460
  `;
20430
20461
  const Title$7 = styled__default["default"].span`
20431
- display: block;
20432
- color: ${props => props.theme.theme_vars.colours.action};
20433
- font-weight: 700;
20434
-
20462
+ display: block;
20463
+ color: ${(props) => props.theme.theme_vars.colours.action};
20464
+ font-weight: 700;
20435
20465
  `;
20436
20466
  const Type = styled__default["default"].span`
20437
- color: ${props => props.theme.theme_vars.colours.black};
20438
- margin-right: 5px;
20439
- font-weight: 400 !important;
20440
- font-size: ${props => props.theme.theme_vars.fontSizes.extra_small};
20467
+ color: ${(props) => props.theme.theme_vars.colours.black};
20468
+ margin-right: 5px;
20469
+ font-weight: 400 !important;
20470
+ font-size: ${(props) => props.theme.theme_vars.fontSizes.extra_small};
20441
20471
  `;
20442
20472
  const Size = styled__default["default"].span`
20443
- color: ${props => props.theme.theme_vars.colours.black};
20444
- font-size: ${props => props.theme.theme_vars.fontSizes.extra_small};
20445
- font-weight: 400 !important;
20473
+ color: ${(props) => props.theme.theme_vars.colours.black};
20474
+ font-size: ${(props) => props.theme.theme_vars.fontSizes.extra_small};
20475
+ font-weight: 400 !important;
20446
20476
  `;
20447
20477
 
20448
20478
  var IconDownload$2 = function (_a) {
@@ -20721,15 +20751,15 @@ const Container$A = styled__default["default"].figure`
20721
20751
  : props.theme.theme_vars.colours.grey_light};
20722
20752
  border-bottom: 1px solid ${(props) => props.theme.theme_vars.colours.grey};
20723
20753
  margin-bottom: ${(props) => props.theme.theme_vars.spacingSizes.medium};
20724
- float: ${(props) => (props.wrapText === true ? 'left' : 'none')};
20725
- width: ${(props) => (props.wrapText === true ? '30%' : '100%')};
20726
20754
  margin-top: ${(props) => props.theme.theme_vars.spacingSizes.medium};
20727
- margin-right: ${(props) => (props.wrapText === true ? '1.5rem' : '0')};
20755
+ float: none;
20756
+ width: 100%;
20757
+ margin-right: 0;
20728
20758
 
20729
- @media screen and (max-width: ${(props) => props.theme.theme_vars.breakpoints.s}) {
20730
- float: none;
20731
- width: 100%;
20732
- margin-right: 0;
20759
+ @media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.s}) {
20760
+ float: ${(props) => (props.wrapText === true ? 'left' : 'none')};
20761
+ width: ${(props) => (props.wrapText === true ? '30%' : '100%')};
20762
+ margin-right: ${(props) => (props.wrapText === true ? '1.5rem' : '0')};
20733
20763
  }
20734
20764
  `;
20735
20765
 
@@ -21374,7 +21404,9 @@ const HeadingContainer = styled__default["default"].div`
21374
21404
  `;
21375
21405
 
21376
21406
  const Content$3 = styled__default["default"].div`
21377
- margin: ${(props) => props.theme.theme_vars.spacingSizes.medium} 0;
21407
+ @media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.m}) {
21408
+ margin: ${(props) => props.theme.theme_vars.spacingSizes.medium} 0;
21409
+ }
21378
21410
  `;
21379
21411
 
21380
21412
  /**
@@ -21383,7 +21415,7 @@ const Content$3 = styled__default["default"].div`
21383
21415
  var ImageAndText = function (_a) {
21384
21416
  var heading = _a.heading, textContent = _a.textContent, image = _a.image;
21385
21417
  return (React__default["default"].createElement(Container$z, { "data-testid": "ImageAndText" },
21386
- React__default["default"].createElement(Row, null,
21418
+ React__default["default"].createElement(Row$1, null,
21387
21419
  heading && (React__default["default"].createElement(Column, { small: "full", medium: "full", large: "full" },
21388
21420
  React__default["default"].createElement(HeadingContainer, null,
21389
21421
  React__default["default"].createElement(Heading, { text: heading, level: 3 })))),
@@ -21403,8 +21435,6 @@ const Container$y = styled__default["default"].div`
21403
21435
  props.theme.cardinal_name === 'north'
21404
21436
  ? props.theme.theme_vars.colours.white
21405
21437
  : props.theme.theme_vars.colours.grey_light};
21406
- margin-left: -15px;
21407
- width: calc(100% + 30px);
21408
21438
  border-bottom: 3px solid ${(props) => props.theme.theme_vars.colours.action};
21409
21439
 
21410
21440
  @media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.m}) {
@@ -21416,8 +21446,6 @@ const Container$y = styled__default["default"].div`
21416
21446
  justify-content: space-between;
21417
21447
  align-items: center;
21418
21448
  flex-wrap: wrap;
21419
- margin-left: -30px;
21420
- width: calc(100% + 60px);
21421
21449
  border-bottom: none;
21422
21450
  }
21423
21451
  @media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.l}) {
@@ -21511,6 +21539,9 @@ const PromoTilesContainer = styled__default["default"].div`
21511
21539
  * A promo tile, containing image and text area
21512
21540
  */
21513
21541
  const PromoTile = styled__default["default"].a`
21542
+ display: block;
21543
+ width: 100%;
21544
+ height: 100%;
21514
21545
  background: ${(props) =>
21515
21546
  props.theme.cardinal_name === 'north'
21516
21547
  ? props.theme.theme_vars.colours.white
@@ -21555,33 +21586,6 @@ const PromoTile = styled__default["default"].a`
21555
21586
  -moz-box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.15),
21556
21587
  0px 2px 0px 0px ${(props) => props.theme.theme_vars.colours.black} !important;
21557
21588
  }
21558
-
21559
- @media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.s}) {
21560
- display: -ms-flex;
21561
- display: -webkit-flex;
21562
- display: flex;
21563
- width: 100%;
21564
- }
21565
-
21566
- @media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.m}) {
21567
- width: 100%;
21568
- margin-right: 30px;
21569
- margin-bottom: 20px;
21570
- display: block;
21571
- flex: 1;
21572
- max-width: 50%;
21573
- min-width: 30%;
21574
-
21575
- &:nth-of-type(2n) {
21576
- margin-right: 30px;
21577
- }
21578
- &:nth-of-type(3n) {
21579
- margin-right: 0;
21580
- }
21581
- &:last-of-type {
21582
- margin-right: 0;
21583
- }
21584
- }
21585
21589
  `;
21586
21590
 
21587
21591
  /**
@@ -21592,17 +21596,15 @@ const PromoImage = styled__default["default"].span`
21592
21596
  width: 100%;
21593
21597
  height: ${imageHeightMobile$1}px;
21594
21598
  overflow: hidden;
21595
- background-image: url("${(props) => props.background}");
21599
+ background-image: url('${(props) => props.background}');
21596
21600
  background-size: cover;
21597
21601
  background-position: center;
21598
21602
  justify-self: center;
21599
21603
 
21600
- @media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.s}){
21601
- flex: 0 0 40%;
21602
- height: 100%;
21603
- min-height: ${imageHeightMobile$1}px;
21604
+ @media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.s}) {
21605
+ min-height: ${imageHeightDesktop$1}px;
21604
21606
  }
21605
- @media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.m}){
21607
+ @media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.m}) {
21606
21608
  flex: none;
21607
21609
  height: ${imageHeightDesktop$1}px;
21608
21610
  }
@@ -21686,22 +21688,20 @@ const PromoCallToAction = styled__default["default"].p`
21686
21688
  */
21687
21689
  var PromoBlock = function (_a) {
21688
21690
  var promos = _a.promos;
21689
- if (promos && promos.length > 0) {
21690
- return (React__default["default"].createElement(React__default["default"].Fragment, null,
21691
- React__default["default"].createElement(PromoTilesContainer, null, promos.map(function (promo, index) { return (React__default["default"].createElement(PromoTile, { key: promo.callToActionURL, href: promo.callToActionURL },
21692
- React__default["default"].createElement(LazyImage, { src: promo.imageMedium, placeholder: promo.imageSmall, visibilitySensorProps: {
21693
- partialVisibility: true,
21694
- } }, function (src) { return (React__default["default"].createElement(PromoImage, { background: src, role: "img", "aria-label": promo.imageAltText ? promo.imageAltText : "" })); }),
21695
- React__default["default"].createElement(PromoText, null,
21696
- React__default["default"].createElement(PromoHeadline, { level: 3, text: promo.title }),
21697
- React__default["default"].createElement(PromoContent, { dangerouslySetInnerHTML: {
21698
- __html: sanitizeHtml_1(promo.content),
21699
- } }),
21700
- React__default["default"].createElement(PromoCallToAction, null, promo.callToActionText)))); }))));
21701
- }
21702
- else {
21703
- return React__default["default"].createElement(React__default["default"].Fragment, null);
21704
- }
21691
+ return (React__default["default"].createElement(React__default["default"].Fragment, null, promos && promos.length > 0 && (React__default["default"].createElement(PromoTilesContainer, { "data-testid": "PromoBlock" },
21692
+ React__default["default"].createElement(Row$1, { isList: true, hasWrap: false },
21693
+ promos.map(function (promo, index) { return (React__default["default"].createElement(Column, { isList: true, small: "full", medium: "one-half", large: "auto", key: promo.callToActionURL },
21694
+ React__default["default"].createElement(PromoTile, { href: promo.callToActionURL },
21695
+ React__default["default"].createElement(LazyImage, { src: promo.imageMedium, placeholder: promo.imageSmall, visibilitySensorProps: {
21696
+ partialVisibility: true,
21697
+ } }, function (src) { return (React__default["default"].createElement(PromoImage, { background: src, role: "img", "aria-label": promo.imageAltText ? promo.imageAltText : '' })); }),
21698
+ React__default["default"].createElement(PromoText, null,
21699
+ React__default["default"].createElement(PromoHeadline, { level: 3, text: promo.title }),
21700
+ React__default["default"].createElement(PromoContent, { dangerouslySetInnerHTML: {
21701
+ __html: sanitizeHtml_1(promo.content),
21702
+ } }),
21703
+ React__default["default"].createElement(PromoCallToAction, null, promo.callToActionText))))); }),
21704
+ promos.length === 1 && React__default["default"].createElement(Column, { small: "full", medium: "one-half", large: "one-half" }))))));
21705
21705
  };
21706
21706
 
21707
21707
  /**
@@ -22027,40 +22027,48 @@ var IconDownload$1 = function (_a) {
22027
22027
  };
22028
22028
 
22029
22029
  const handleContainerPadding = (noBackground, noPadding) => {
22030
- if (noPadding || noBackground) {
22031
- return 0
22032
- } else {
22033
- return "50px";
22034
- }
22030
+ if (noPadding || noBackground) {
22031
+ return 0;
22032
+ } else {
22033
+ return '50px';
22034
+ }
22035
22035
  };
22036
22036
 
22037
22037
  const Container$w = styled__default["default"].div`
22038
- background: ${props => props.noBackground ? "transparent" :
22039
- props.theme.cardinal_name === "north" ? (props.theme.theme_vars.colours.grey_light+"7a") : props.theme.theme_vars.colours.white};
22040
- overflow: ${props => props.noPadding ? "hidden" : "visible"};
22041
- padding-bottom: ${({ noBackground, noPadding }) => handleContainerPadding(noBackground, noPadding)};
22038
+ background: ${(props) =>
22039
+ props.noBackground
22040
+ ? 'transparent'
22041
+ : props.theme.cardinal_name === 'north'
22042
+ ? props.theme.theme_vars.colours.grey_light + '7a'
22043
+ : props.theme.theme_vars.colours.white};
22044
+ overflow: ${(props) => (props.noPadding ? 'hidden' : 'visible')};
22045
+ padding-bottom: ${({ noBackground, noPadding }) => handleContainerPadding(noBackground, noPadding)};
22042
22046
  `;
22043
22047
 
22044
22048
  const MaxWidth = styled__default["default"].div`
22045
- ${props => props.theme.fontStyles}
22046
- margin-right: 15px;
22047
- margin-left: 15px;
22048
- overflow: ${props => props.overflowVisible ? "visible" : "hidden"};
22049
+ ${(props) => props.theme.fontStyles}
22050
+ padding-right: ${(props) => props.theme.theme_vars.spacingSizes.medium};
22051
+ padding-left: ${(props) => props.theme.theme_vars.spacingSizes.medium};
22052
+ overflow: ${(props) => (props.overflowVisible ? 'visible' : 'hidden')};
22049
22053
 
22050
- pre {
22051
- font-family: monospace;
22052
- white-space: pre;
22053
- }
22054
- @media screen and (min-width: ${props => props.theme.theme_vars.breakpoints.m}){
22055
- margin-right: 30px;
22056
- margin-left: 30px;
22057
- }
22054
+ pre {
22055
+ font-family: monospace;
22056
+ white-space: pre;
22057
+ }
22058
+ @media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.m}) {
22059
+ margin-right: ${(props) => props.theme.theme_vars.spacingSizes.large};
22060
+ margin-left: ${(props) => props.theme.theme_vars.spacingSizes.large};
22061
+ padding-left: ${(props) => props.theme.theme_vars.spacingSizes.small};
22062
+ padding-right: ${(props) => props.theme.theme_vars.spacingSizes.small};
22063
+ }
22058
22064
 
22059
- @media screen and (min-width: calc(${props => props.theme.theme_vars.breakpoints.l} + 60px)){
22060
- margin-right: auto;
22061
- margin-left: auto;
22062
- max-width: ${props => props.theme.theme_vars.breakpoints.l};
22063
- }
22065
+ @media screen and (min-width: calc(${(props) => props.theme.theme_vars.breakpoints.l} + 60px)) {
22066
+ margin-right: auto;
22067
+ margin-left: auto;
22068
+ padding-left: ${(props) => props.theme.theme_vars.spacingSizes.small};
22069
+ padding-right: ${(props) => props.theme.theme_vars.spacingSizes.small};
22070
+ max-width: ${(props) => props.theme.theme_vars.breakpoints.l};
22071
+ }
22064
22072
  `;
22065
22073
 
22066
22074
  /**
@@ -22746,14 +22754,18 @@ const FooterListItem = styled__default["default"].li`
22746
22754
  margin-bottom: 15px;
22747
22755
  `;
22748
22756
 
22749
- const SocialLinks = styled__default["default"].div`
22750
- margin-bottom: 15px;
22751
- margin-top: 5px;
22757
+ const SocialLinks = styled__default["default"].ul`
22758
+ margin: 5px 0 15px 0;
22759
+ list-style: none;
22760
+ `;
22761
+
22762
+ const SocialLinkItem = styled__default["default"].li`
22763
+ left: 0;
22764
+ display: inline-block;
22752
22765
  `;
22753
22766
 
22754
22767
  const SocialLinkSingle = styled__default["default"].a`
22755
22768
  display: inline-block;
22756
- margin-right: 15px;
22757
22769
  height: 36px;
22758
22770
 
22759
22771
  &:hover {
@@ -22886,16 +22898,21 @@ var Footer = function (_a) {
22886
22898
  footerLinksArray && (React__default["default"].createElement(FooterList, null, footerLinksArray.map(function (link, i) { return (React__default["default"].createElement(FooterListItem, { key: i },
22887
22899
  React__default["default"].createElement(FooterLink, { key: link.title, href: link.url, title: link.title }, link.title))); }))),
22888
22900
  React__default["default"].createElement(SocialLinks, null,
22889
- themeContext.theme_vars.twitter_link && (React__default["default"].createElement(SocialLinkSingle, { href: themeContext.theme_vars.twitter_link, title: "View our Twitter feed" },
22890
- React__default["default"].createElement(ServiceIcon$2, { colourFill: themeContext.theme_vars.colours.white }))),
22891
- themeContext.theme_vars.facebook_link && (React__default["default"].createElement(SocialLinkSingle, { href: themeContext.theme_vars.facebook_link, title: "View our Facebook page" },
22892
- React__default["default"].createElement(ServiceIcon$3, { colourFill: themeContext.theme_vars.colours.white }))),
22893
- themeContext.theme_vars.instagram_link && (React__default["default"].createElement(SocialLinkSingle, { href: themeContext.theme_vars.instagram_link, title: "View our Instagram feed" },
22894
- React__default["default"].createElement(ServiceIcon$4, { colourFill: themeContext.theme_vars.colours.white }))),
22895
- themeContext.theme_vars.youtube_link && (React__default["default"].createElement(SocialLinkSingle, { href: themeContext.theme_vars.youtube_link, title: "View our YouTube channel" },
22896
- React__default["default"].createElement(ServiceIcon, { colourFill: themeContext.theme_vars.colours.white }))),
22897
- themeContext.theme_vars.linkedin_link && (React__default["default"].createElement(SocialLinkSingle, { href: themeContext.theme_vars.linkedin_link, title: "View our LinkedIn page" },
22898
- React__default["default"].createElement(ServiceIcon$1, { colourFill: themeContext.theme_vars.colours.white })))),
22901
+ themeContext.theme_vars.twitter_link && (React__default["default"].createElement(SocialLinkItem, null,
22902
+ React__default["default"].createElement(SocialLinkSingle, { href: themeContext.theme_vars.twitter_link, title: "View our Twitter feed" },
22903
+ React__default["default"].createElement(ServiceIcon$2, { colourFill: themeContext.theme_vars.colours.white })))),
22904
+ themeContext.theme_vars.facebook_link && (React__default["default"].createElement(SocialLinkItem, null,
22905
+ React__default["default"].createElement(SocialLinkSingle, { href: themeContext.theme_vars.facebook_link, title: "View our Facebook page" },
22906
+ React__default["default"].createElement(ServiceIcon$3, { colourFill: themeContext.theme_vars.colours.white })))),
22907
+ themeContext.theme_vars.instagram_link && (React__default["default"].createElement(SocialLinkItem, null,
22908
+ React__default["default"].createElement(SocialLinkSingle, { href: themeContext.theme_vars.instagram_link, title: "View our Instagram feed" },
22909
+ React__default["default"].createElement(ServiceIcon$4, { colourFill: themeContext.theme_vars.colours.white })))),
22910
+ themeContext.theme_vars.youtube_link && (React__default["default"].createElement(SocialLinkItem, null,
22911
+ React__default["default"].createElement(SocialLinkSingle, { href: themeContext.theme_vars.youtube_link, title: "View our YouTube channel" },
22912
+ React__default["default"].createElement(ServiceIcon, { colourFill: themeContext.theme_vars.colours.white })))),
22913
+ themeContext.theme_vars.linkedin_link && (React__default["default"].createElement(SocialLinkItem, null,
22914
+ React__default["default"].createElement(SocialLinkSingle, { href: themeContext.theme_vars.linkedin_link, title: "View our LinkedIn page" },
22915
+ React__default["default"].createElement(ServiceIcon$1, { colourFill: themeContext.theme_vars.colours.white }))))),
22899
22916
  React__default["default"].createElement(FooterCopy, null,
22900
22917
  "\u00A9\u00A0",
22901
22918
  themeContext.full_name,
@@ -23899,6 +23916,8 @@ const ArticleContainer$1 = styled__default["default"].a`
23899
23916
  text-decoration: none !important;
23900
23917
  font-weight: normal !important;
23901
23918
  margin-bottom: 15px;
23919
+ width: 100%;
23920
+ height: 100%;
23902
23921
 
23903
23922
  &:hover {
23904
23923
  border-bottom: 5px solid ${(props) => props.theme.theme_vars.colours.action_dark};
@@ -23937,45 +23956,10 @@ const ArticleContainer$1 = styled__default["default"].a`
23937
23956
  ${(props) => props.theme.linkStylesActive};
23938
23957
  }
23939
23958
  }
23940
-
23941
- @media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.s}) {
23942
- display: -ms-flex;
23943
- display: -webkit-flex;
23944
- display: flex;
23945
- width: 100%;
23946
- }
23947
-
23948
- @media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.m}) {
23949
- width: 100%;
23950
- margin-right: 30px;
23951
- margin-bottom: 20px;
23952
- display: block;
23953
- flex: 1;
23954
- max-width: 50%;
23955
- min-width: 30%;
23956
-
23957
- &:nth-of-type(2n) {
23958
- margin-right: 30px;
23959
- }
23960
- &:nth-of-type(3n) {
23961
- margin-right: 0;
23962
- }
23963
- &:last-of-type {
23964
- margin-right: 0;
23965
- }
23966
- }
23967
23959
  `;
23968
23960
 
23969
23961
  const ArticleContent$1 = styled__default["default"].div`
23970
23962
  padding: 15px;
23971
- height: calc(100% - ${imageHeightMobile + 30}px);
23972
-
23973
- @media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.s}) {
23974
- display: flex;
23975
- flex-flow: row;
23976
- flex-wrap: wrap;
23977
- height: calc(100% - ${imageHeightDesktop + 30}px);
23978
- }
23979
23963
  `;
23980
23964
 
23981
23965
  const ImageContainer$3 = styled__default["default"].span`
@@ -24021,14 +24005,19 @@ var NewsArticleFeaturedBlock = function (_a) {
24021
24005
  if (articles && articles.length > 0) {
24022
24006
  return (React__default["default"].createElement(React__default["default"].Fragment, null,
24023
24007
  !withoutTitle && React__default["default"].createElement(Heading, { text: "News articles and press releases" }),
24024
- React__default["default"].createElement(Container$k, null, articles.map(function (article) { return (React__default["default"].createElement(ArticleContainer$1, { key: article.id, href: article.url },
24025
- article.image720x405 && (React__default["default"].createElement(LazyImage, { src: article.image720x405, placeholder: article.image72x41, visibilitySensorProps: {
24026
- partialVisibility: true,
24027
- } }, function (src) { return (React__default["default"].createElement(ImageContainer$3, { background: src, role: "img", "aria-label": article.imageAltText ? article.imageAltText : '' })); })),
24028
- React__default["default"].createElement(ArticleContent$1, null,
24029
- React__default["default"].createElement(Title$5, { className: "article_title" }, article.title),
24030
- React__default["default"].createElement(DateContainer$1, null,
24031
- React__default["default"].createElement(NewsArticleDate, { text: article.date.toString(), format: "X" }))))); })),
24008
+ React__default["default"].createElement(Container$k, null,
24009
+ React__default["default"].createElement(Row$1, { isList: true }, articles.map(function (article) { return (React__default["default"].createElement(Column, { isList: true, small: "full", medium: "one-half", large: "one-third", key: article.id },
24010
+ React__default["default"].createElement(ArticleContainer$1, { href: article.url },
24011
+ React__default["default"].createElement(Row$1, null,
24012
+ article.image720x405 && (React__default["default"].createElement(Column, { small: "full", medium: "full", large: "full", hasPadding: false },
24013
+ React__default["default"].createElement(LazyImage, { src: article.image720x405, placeholder: article.image72x41, visibilitySensorProps: {
24014
+ partialVisibility: true,
24015
+ } }, function (src) { return (React__default["default"].createElement(ImageContainer$3, { background: src, role: "img", "aria-label": article.imageAltText ? article.imageAltText : '' })); }))),
24016
+ React__default["default"].createElement(Column, { small: "full", medium: "full", large: "full" },
24017
+ React__default["default"].createElement(ArticleContent$1, null,
24018
+ React__default["default"].createElement(Title$5, { className: "article_title" }, article.title),
24019
+ React__default["default"].createElement(DateContainer$1, null,
24020
+ React__default["default"].createElement(NewsArticleDate, { text: article.date.toString(), format: "X" })))))))); }))),
24032
24021
  viewAllLink && (React__default["default"].createElement(ViewAllContainer, null,
24033
24022
  React__default["default"].createElement(Button$2, { text: "View all news", primary: false, url: viewAllLink, size: "large" })))));
24034
24023
  }
@@ -24284,7 +24273,6 @@ var NewsArticleImage = function (_a) {
24284
24273
 
24285
24274
  const Container$h = styled__default["default"].div`
24286
24275
  ${(props) => props.theme.fontStyles};
24287
- padding: 15px 0;
24288
24276
  `;
24289
24277
 
24290
24278
  const Title$4 = styled__default["default"].div`
@@ -24342,7 +24330,7 @@ const ArticleContainer = styled__default["default"].a`
24342
24330
  }
24343
24331
  }
24344
24332
 
24345
- margin-bottom: 40px;
24333
+ margin-bottom: ${(props) => props.theme.theme_vars.spacingSizes.medium};
24346
24334
 
24347
24335
  @media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.s}) {
24348
24336
  display: flex;
@@ -24404,17 +24392,19 @@ var NewsArticleList = function (_a) {
24404
24392
  var results = _a.results;
24405
24393
  var extractLength = 140;
24406
24394
  if (results && results.length > 0) {
24407
- return (React__default["default"].createElement(Container$h, { "data-testid": "NewsArticleList" }, results.map(function (article) { return (React__default["default"].createElement(ArticleContainer, { href: article.url, title: article.title, key: article.id },
24408
- article.image720x405 && (React__default["default"].createElement(LazyImage, { src: article.image720x405, placeholder: article.image72x41, visibilitySensorProps: {
24409
- partialVisibility: true,
24410
- } }, function (src) { return (React__default["default"].createElement(ImageContainer$1, { className: "news-article-list__image", background: src, role: "img", "aria-label": article.imageAltText ? article.imageAltText : 'News article' })); })),
24411
- React__default["default"].createElement(ArticleContent, { withImage: article.image720x405 ? true : false },
24412
- React__default["default"].createElement(Title$4, { className: "news-article-list__title" }, article.title),
24413
- article.excerpt.length > extractLength
24414
- ? article.excerpt.substr(0, extractLength - 1).trim() + String.fromCharCode(8230)
24415
- : article.excerpt,
24416
- React__default["default"].createElement(DateContainer, null,
24417
- React__default["default"].createElement(NewsArticleDate, { text: article.date.toString(), format: "X" }))))); })));
24395
+ return (React__default["default"].createElement(Container$h, { "data-testid": "NewsArticleList" },
24396
+ React__default["default"].createElement(Row$1, { isList: true }, results.map(function (article) { return (React__default["default"].createElement(Column, { isList: true, small: "full", medium: "full", large: "full", key: article.id },
24397
+ React__default["default"].createElement(ArticleContainer, { href: article.url, title: article.title },
24398
+ article.image720x405 && (React__default["default"].createElement(LazyImage, { src: article.image720x405, placeholder: article.image72x41, visibilitySensorProps: {
24399
+ partialVisibility: true,
24400
+ } }, function (src) { return (React__default["default"].createElement(ImageContainer$1, { className: "news-article-list__image", background: src, role: "img", "aria-label": article.imageAltText ? article.imageAltText : 'News article' })); })),
24401
+ React__default["default"].createElement(ArticleContent, { withImage: article.image720x405 ? true : false },
24402
+ React__default["default"].createElement(Title$4, { className: "news-article-list__title" }, article.title),
24403
+ article.excerpt.length > extractLength
24404
+ ? article.excerpt.substr(0, extractLength - 1).trim() + String.fromCharCode(8230)
24405
+ : article.excerpt,
24406
+ React__default["default"].createElement(DateContainer, null,
24407
+ React__default["default"].createElement(NewsArticleDate, { text: article.date.toString(), format: "X" })))))); }))));
24418
24408
  }
24419
24409
  else {
24420
24410
  return (React__default["default"].createElement(Container$h, { "data-testid": "NewsArticleList" },
@@ -24910,16 +24900,16 @@ var PhaseBanner = function (_a) {
24910
24900
  };
24911
24901
 
24912
24902
  const Container$9 = styled__default["default"].div`
24913
- ${props => props.theme.fontStyles};
24903
+ ${(props) => props.theme.fontStyles};
24914
24904
  `;
24915
24905
 
24916
24906
  const ResultInfo = styled__default["default"].div`
24917
24907
  font-weight: bold;
24918
- margin: ${props => props.theme.theme_vars.spacingSizes.large} 0;
24908
+ margin: ${(props) => props.theme.theme_vars.spacingSizes.large} 0;
24919
24909
  `;
24920
24910
 
24921
24911
  const Result = styled__default["default"].div`
24922
- margin-bottom: ${props => props.theme.theme_vars.spacingSizes.x_large};
24912
+ margin-bottom: ${(props) => props.theme.theme_vars.spacingSizes.x_large};
24923
24913
 
24924
24914
  &:first-of-type {
24925
24915
  margin-top: 0;
@@ -24927,7 +24917,7 @@ const Result = styled__default["default"].div`
24927
24917
  `;
24928
24918
 
24929
24919
  const Title$3 = styled__default["default"].a`
24930
- ${props => props.theme.linkStyles};
24920
+ ${(props) => props.theme.linkStyles};
24931
24921
  font-size: 1.2em;
24932
24922
  display: block;
24933
24923
  margin-bottom: 5px;
@@ -24937,10 +24927,13 @@ const ServiceArea = styled__default["default"].p`
24937
24927
  font-size: 14px;
24938
24928
  font-size: 0.8rem;
24939
24929
  line-height: 1.3;
24940
- color: ${props => props.theme.theme_vars.colours.grey_dark};
24930
+ color: ${(props) =>
24931
+ props.theme.cardinal_name === 'west'
24932
+ ? props.theme.theme_vars.colours.grey_darke
24933
+ : props.theme.theme_vars.colours.grey_darkest};
24941
24934
  margin-bottom: 3px !important;
24942
24935
 
24943
- @media screen and (min-width: ${props => props.theme.theme_vars.breakpoints.s}){
24936
+ @media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.s}) {
24944
24937
  font-size: 16px;
24945
24938
  font-size: 1rem;
24946
24939
  line-height: 1.4;
@@ -24948,7 +24941,7 @@ const ServiceArea = styled__default["default"].p`
24948
24941
  `;
24949
24942
 
24950
24943
  const Summary$2 = styled__default["default"].p`
24951
- margin-bottom: ${props => props.theme.theme_vars.spacingSizes.small};
24944
+ margin-bottom: ${(props) => props.theme.theme_vars.spacingSizes.small};
24952
24945
  `;
24953
24946
 
24954
24947
  const SignpostContainer = styled__default["default"].div`
@@ -24971,8 +24964,7 @@ const SignpostContainer = styled__default["default"].div`
24971
24964
  }
24972
24965
  }
24973
24966
 
24974
-
24975
- @media screen and (min-width: ${props => props.theme.theme_vars.breakpoints.s}){
24967
+ @media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.s}) {
24976
24968
  font-size: 16px;
24977
24969
  font-size: 1rem;
24978
24970
  line-height: 1.4;
@@ -25105,54 +25097,25 @@ const SectionTitle$1 = styled__default["default"](Heading)`
25105
25097
  : props.theme.theme_vars.colours.grey_light};
25106
25098
  padding: 10px 15px;
25107
25099
  width: 100%;
25108
- margin-left: -15px;
25109
25100
  margin-bottom: 15px;
25110
25101
  max-width: none !important;
25111
25102
  border-radius: ${(props) => props.theme.theme_vars.border_radius};
25112
25103
 
25113
25104
  @media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.s}) {
25114
- width: calc(100% - 30px);
25105
+ width: 100%;
25115
25106
  margin-left: 0;
25116
25107
  margin-bottom: 25px;
25117
25108
  }
25118
25109
  `;
25119
25110
 
25120
- const LinksList$1 = styled__default["default"].div`
25121
- display: flex;
25122
- -webkit-flex-direction: row;
25123
- -moz-flex-direction: row;
25124
- -ms-flex-direction: row;
25125
- flex-direction: row;
25126
- flex-wrap: wrap;
25127
- justify-content: space-between;
25128
- `;
25129
-
25130
- const PagelinkBlank$1 = styled__default["default"].div`
25131
- display: none;
25132
-
25133
- @media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.m}) {
25134
- display: block;
25135
- padding: 15px;
25136
- width: calc(33.333% - 61px);
25137
- margin-bottom: 31px;
25138
- }
25139
- `;
25140
-
25141
25111
  const Pagelink = styled__default["default"].a`
25142
25112
  color: ${(props) => props.theme.theme_vars.colours.black};
25143
25113
  text-decoration: none !important;
25144
25114
  display: block;
25145
- padding: 15px;
25115
+ padding: ${(props) => props.theme.theme_vars.spacingSizes.medium};
25146
25116
  border-radius: ${(props) => props.theme.theme_vars.border_radius};
25147
25117
  width: 100%;
25148
-
25149
- @media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.s}) {
25150
- width: calc(50% - 46px);
25151
- margin-bottom: 31px;
25152
- }
25153
- @media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.m}) {
25154
- width: calc(33.333% - 61px);
25155
- }
25118
+ height: 100%;
25156
25119
 
25157
25120
  &:hover,
25158
25121
  &:focus {
@@ -25222,17 +25185,16 @@ var SectionLinks = function (_a) {
25222
25185
  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;
25223
25186
  return (React__default["default"].createElement(Container$8, { id: sectionSlug, "data-testid": "SectionLinks" },
25224
25187
  displayTitle ? React__default["default"].createElement(SectionTitle$1, { text: sectionTitle }) : React__default["default"].createElement("br", null),
25225
- React__default["default"].createElement(LinksList$1, null,
25226
- pageLinksArray.map(function (link, i) {
25227
- var _a;
25228
- return (React__default["default"].createElement(Pagelink, { key: i, href: link.url, title: link.title },
25188
+ React__default["default"].createElement(Row$1, { isList: true }, pageLinksArray.map(function (link, i) {
25189
+ var _a;
25190
+ return (React__default["default"].createElement(Column, { isList: true, small: "full", medium: "one-half", large: "one-third", key: i },
25191
+ React__default["default"].createElement(Pagelink, { href: link.url, title: link.title },
25229
25192
  hasImages && (React__default["default"].createElement(React__default["default"].Fragment, null, ((_a = link.imageLarge) === null || _a === void 0 ? void 0 : _a.trim()) ? (React__default["default"].createElement(LazyImage, { placeholder: link.imageSmall, src: link.imageLarge, visibilitySensorProps: {
25230
25193
  partialVisibility: true,
25231
25194
  } }, function (src) { return (React__default["default"].createElement(ImageContainer, { image: src, role: "img", "aria-label": link.imageAltText })); })) : (React__default["default"].createElement(ImageContainer, null)))),
25232
25195
  React__default["default"].createElement(Title$2, null, link.title),
25233
- React__default["default"].createElement(Summary$1, null, link.summary)));
25234
- }),
25235
- pageLinksArray.length > 1 && (pageLinksArray.length + 1) % 3 === 0 && React__default["default"].createElement(PagelinkBlank$1, null))));
25196
+ React__default["default"].createElement(Summary$1, null, link.summary))));
25197
+ }))));
25236
25198
  };
25237
25199
 
25238
25200
  const Container$7 = styled__default["default"].aside`
@@ -25585,7 +25547,8 @@ const QuickLinksInnerContainer = styled__default["default"].div`
25585
25547
  background: ${(props) => props.theme.theme_vars.colours.action_light};
25586
25548
  border-top: ${(props) => props.theme.theme_vars.border_width_thin} solid
25587
25549
  ${(props) => props.theme.theme_vars.colours.action};
25588
- padding: ${(props) => props.theme.theme_vars.spacingSizes.medium} 0;
25550
+ padding: ${(props) => props.theme.theme_vars.spacingSizes.medium}
25551
+ ${(props) => props.theme.theme_vars.spacingSizes.small};
25589
25552
  box-shadow: 0px -4px 0px 0px ${(props) => props.theme.theme_vars.colours.action} inset;
25590
25553
  -webkit-box-shadow: 0px -4px 0px 0px ${(props) => props.theme.theme_vars.colours.action} inset;
25591
25554
  -moz-box-shadow: 0px -4px 0px 0px ${(props) => props.theme.theme_vars.colours.action} inset;
@@ -25643,7 +25606,7 @@ var ServiceLinksBoxed = function (_a) {
25643
25606
  return (_a = refs.current[index]) !== null && _a !== void 0 ? _a : React__default["default"].createRef();
25644
25607
  });
25645
25608
  return (React__default["default"].createElement(Container$5, { "data-testid": "ServiceLinksBoxed" },
25646
- React__default["default"].createElement(Row, null, serviceLinksArray.map(function (serviceLink, index) {
25609
+ React__default["default"].createElement(Row$1, null, serviceLinksArray.map(function (serviceLink, index) {
25647
25610
  var _a;
25648
25611
  return (React__default["default"].createElement(Column, { small: "full", medium: "one-half", large: "one-third", key: index },
25649
25612
  React__default["default"].createElement(ServiceLink, { onClick: function () { return toggleActive(index); }, show: index === activeServiceLink, "aria-label": index === activeServiceLink ? 'Close ' + serviceLink.title : 'View ' + serviceLink.title },
@@ -25652,8 +25615,8 @@ var ServiceLinksBoxed = function (_a) {
25652
25615
  React__default["default"].createElement("span", { className: "serviceLinkChevron" })),
25653
25616
  React__default["default"].createElement(QuickLinksContainer, { show: index === activeServiceLink, ref: refs.current[index] },
25654
25617
  React__default["default"].createElement(QuickLinksInnerContainer, null,
25655
- React__default["default"].createElement(Row, null, (_a = serviceLink.quickLinksArray) === null || _a === void 0 ? void 0 :
25656
- _a.map(function (quickLink, quickLinkIndex) { return (React__default["default"].createElement(Column, { small: "full", medium: "one-half", large: "one-third", key: quickLinkIndex },
25618
+ React__default["default"].createElement(Row$1, { isList: true }, (_a = serviceLink.quickLinksArray) === null || _a === void 0 ? void 0 :
25619
+ _a.map(function (quickLink, quickLinkIndex) { return (React__default["default"].createElement(Column, { isList: true, small: "full", medium: "one-half", large: "one-third", key: quickLinkIndex },
25657
25620
  React__default["default"].createElement(QuickLink, { href: quickLink.url }, quickLink.title))); }),
25658
25621
  React__default["default"].createElement(Column, { small: "full", medium: "one-half", large: "one-third" },
25659
25622
  React__default["default"].createElement(QuickLink, { href: serviceLink.url },
@@ -25689,7 +25652,7 @@ const Container$4 = styled__default["default"].div`
25689
25652
 
25690
25653
  @media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.s}) {
25691
25654
  max-height: none;
25692
- margin-top: 30px;
25655
+ margin-top: 15px;
25693
25656
  }
25694
25657
  `;
25695
25658