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.esm.js +535 -572
- package/build/index.esm.js.map +1 -1
- package/build/index.js +535 -572
- package/build/index.js.map +1 -1
- package/build/library/components/CheckboxListFilter/CheckboxListFilter.d.ts +3 -3
- package/build/library/components/CheckboxListFilter/CheckboxListFilter.types.d.ts +5 -5
- package/build/library/components/Column/Column.types.d.ts +7 -3
- package/build/library/components/PostCodeSearchApollo/PostCodeSearchApollo.d.ts +4 -0
- package/build/library/components/PostCodeSearchApollo/PostCodeSearchApollo.types.d.ts +6 -0
- package/build/library/components/PromotedLinks/PromotedLinks.d.ts +2 -2
- package/build/library/components/PromotedLinks/PromotedLinks.types.d.ts +2 -2
- package/build/library/components/Row/Row.types.d.ts +8 -0
- package/build/library/components/icons/services/ServicesIcons.d.ts +2 -2
- package/build/library/structure/PromoBlock/PromoBlock.d.ts +2 -2
- package/package.json +10 -10
package/build/index.esm.js
CHANGED
|
@@ -5401,6 +5401,8 @@ var ServiceIcon$5 = function (_a) {
|
|
|
5401
5401
|
};
|
|
5402
5402
|
|
|
5403
5403
|
var components = {
|
|
5404
|
+
accessibleparking: ServiceIcon$1X,
|
|
5405
|
+
accessibleparkingHover: ServiceIcon$1W,
|
|
5404
5406
|
adults: ServiceIcon$1R,
|
|
5405
5407
|
adultsHover: ServiceIcon$1Q,
|
|
5406
5408
|
addresschange: ServiceIcon$1V,
|
|
@@ -5451,8 +5453,6 @@ var components = {
|
|
|
5451
5453
|
dolsHover: ServiceIcon$1e,
|
|
5452
5454
|
edit: ServiceIcon$1d,
|
|
5453
5455
|
editHover: ServiceIcon$1c,
|
|
5454
|
-
accessibleparking: ServiceIcon$1X,
|
|
5455
|
-
accessibleparkingHover: ServiceIcon$1W,
|
|
5456
5456
|
environment: ServiceIcon$1b,
|
|
5457
5457
|
environmentHover: ServiceIcon$1a,
|
|
5458
5458
|
finance: ServiceIcon$19,
|
|
@@ -6466,131 +6466,128 @@ var Pagination = function (_a) {
|
|
|
6466
6466
|
};
|
|
6467
6467
|
|
|
6468
6468
|
const Container$T = styled.div`
|
|
6469
|
-
${props => props.theme.fontStyles};
|
|
6469
|
+
${(props) => props.theme.fontStyles};
|
|
6470
6470
|
margin-bottom: 30px;
|
|
6471
6471
|
`;
|
|
6472
6472
|
|
|
6473
6473
|
const Fieldset = styled.fieldset`
|
|
6474
|
-
|
|
6475
|
-
|
|
6476
|
-
|
|
6477
|
-
|
|
6474
|
+
min-width: 0;
|
|
6475
|
+
margin: 0;
|
|
6476
|
+
padding: 0;
|
|
6477
|
+
border: 0;
|
|
6478
6478
|
|
|
6479
|
-
|
|
6480
|
-
|
|
6481
|
-
|
|
6482
|
-
|
|
6483
|
-
|
|
6479
|
+
&:after {
|
|
6480
|
+
content: '';
|
|
6481
|
+
display: block;
|
|
6482
|
+
clear: both;
|
|
6483
|
+
}
|
|
6484
6484
|
`;
|
|
6485
6485
|
|
|
6486
|
-
const hideLabel$1 = props => {
|
|
6487
|
-
if(props.labelHidden === true) {
|
|
6486
|
+
const hideLabel$1 = (props) => {
|
|
6487
|
+
if (props.labelHidden === true) {
|
|
6488
6488
|
return VisuallyHidden$2;
|
|
6489
6489
|
}
|
|
6490
6490
|
};
|
|
6491
6491
|
|
|
6492
|
-
|
|
6493
6492
|
const Legend = styled.legend`
|
|
6494
|
-
|
|
6495
|
-
|
|
6496
|
-
|
|
6497
|
-
|
|
6498
|
-
|
|
6499
|
-
|
|
6500
|
-
|
|
6501
|
-
|
|
6502
|
-
|
|
6493
|
+
color: #0b0c0c;
|
|
6494
|
+
-webkit-box-sizing: border-box;
|
|
6495
|
+
box-sizing: border-box;
|
|
6496
|
+
display: table;
|
|
6497
|
+
max-width: 100%;
|
|
6498
|
+
margin-bottom: 10px;
|
|
6499
|
+
padding: 0;
|
|
6500
|
+
white-space: normal;
|
|
6501
|
+
${hideLabel$1}
|
|
6503
6502
|
`;
|
|
6504
6503
|
|
|
6505
|
-
const hideHint = props => {
|
|
6506
|
-
if(props.hintHidden === true) {
|
|
6504
|
+
const hideHint = (props) => {
|
|
6505
|
+
if (props.hintHidden === true) {
|
|
6507
6506
|
return VisuallyHidden$2;
|
|
6508
6507
|
}
|
|
6509
6508
|
};
|
|
6510
6509
|
|
|
6511
|
-
|
|
6512
6510
|
const Hint = styled.div`
|
|
6513
|
-
|
|
6514
|
-
|
|
6515
|
-
|
|
6516
|
-
|
|
6517
|
-
|
|
6518
|
-
|
|
6511
|
+
font-size: ${(props) => props.theme.theme_vars.fontSizes.small};
|
|
6512
|
+
display: block;
|
|
6513
|
+
margin-bottom: 15px;
|
|
6514
|
+
color: #505a5f;
|
|
6515
|
+
margin-top: -5px;
|
|
6516
|
+
${hideHint}
|
|
6519
6517
|
`;
|
|
6520
6518
|
|
|
6521
6519
|
const Checkboxes = styled.div`
|
|
6522
|
-
display: block;
|
|
6523
|
-
|
|
6524
|
-
|
|
6525
|
-
|
|
6520
|
+
display: block;
|
|
6521
|
+
`;
|
|
6526
6522
|
|
|
6527
6523
|
const Checkbox = styled.div`
|
|
6528
|
-
|
|
6529
|
-
|
|
6530
|
-
|
|
6531
|
-
|
|
6532
|
-
|
|
6533
|
-
|
|
6534
|
-
|
|
6535
|
-
|
|
6536
|
-
`;
|
|
6524
|
+
font-size: ${(props) => props.theme.theme_vars.fontSizes.small};
|
|
6525
|
+
display: block;
|
|
6526
|
+
position: relative;
|
|
6527
|
+
min-height: 40px;
|
|
6528
|
+
margin-bottom: 10px;
|
|
6529
|
+
padding-left: 40px;
|
|
6530
|
+
clear: left;
|
|
6531
|
+
`;
|
|
6537
6532
|
|
|
6538
6533
|
const CheckboxInput = styled.input`
|
|
6539
|
-
|
|
6540
|
-
|
|
6541
|
-
|
|
6542
|
-
|
|
6543
|
-
|
|
6544
|
-
|
|
6545
|
-
|
|
6546
|
-
|
|
6547
|
-
|
|
6534
|
+
cursor: pointer;
|
|
6535
|
+
position: absolute;
|
|
6536
|
+
z-index: 1;
|
|
6537
|
+
top: -2px;
|
|
6538
|
+
left: -2px;
|
|
6539
|
+
width: 44px;
|
|
6540
|
+
height: 44px;
|
|
6541
|
+
margin: 0;
|
|
6542
|
+
opacity: 0;
|
|
6543
|
+
|
|
6544
|
+
&:focus + label:before {
|
|
6545
|
+
box-shadow: 0 0 0 3px ${(props) => props.theme.theme_vars.colours.focus};
|
|
6546
|
+
}
|
|
6548
6547
|
`;
|
|
6549
6548
|
|
|
6550
6549
|
const CheckboxLabel = styled.label`
|
|
6551
|
-
|
|
6552
|
-
|
|
6553
|
-
|
|
6554
|
-
|
|
6555
|
-
|
|
6556
|
-
|
|
6557
|
-
|
|
6558
|
-
|
|
6559
|
-
|
|
6560
|
-
|
|
6561
|
-
|
|
6562
|
-
&:before {
|
|
6563
|
-
content: "";
|
|
6564
|
-
-webkit-box-sizing: border-box;
|
|
6565
|
-
box-sizing: border-box;
|
|
6566
|
-
position: absolute;
|
|
6567
|
-
top: 0;
|
|
6568
|
-
left: 0;
|
|
6569
|
-
width: 40px;
|
|
6570
|
-
height: 40px;
|
|
6571
|
-
border: 2px solid currentColor;
|
|
6572
|
-
background: transparent;
|
|
6573
|
-
}
|
|
6550
|
+
display: inline-block;
|
|
6551
|
+
margin-bottom: 0;
|
|
6552
|
+
padding: 8px 15px 5px;
|
|
6553
|
+
cursor: pointer;
|
|
6554
|
+
-ms-touch-action: manipulation;
|
|
6555
|
+
touch-action: manipulation;
|
|
6556
|
+
color: #0b0c0c;
|
|
6557
|
+
display: block;
|
|
6558
|
+
margin-bottom: 5px;
|
|
6574
6559
|
|
|
6560
|
+
&:before {
|
|
6561
|
+
content: '';
|
|
6562
|
+
-webkit-box-sizing: border-box;
|
|
6563
|
+
box-sizing: border-box;
|
|
6564
|
+
position: absolute;
|
|
6565
|
+
top: 0;
|
|
6566
|
+
left: 0;
|
|
6567
|
+
width: 40px;
|
|
6568
|
+
height: 40px;
|
|
6569
|
+
border: 2px solid currentColor;
|
|
6570
|
+
background: transparent;
|
|
6571
|
+
}
|
|
6575
6572
|
|
|
6576
|
-
|
|
6577
|
-
|
|
6578
|
-
|
|
6579
|
-
|
|
6580
|
-
|
|
6581
|
-
|
|
6582
|
-
|
|
6583
|
-
|
|
6584
|
-
|
|
6585
|
-
|
|
6586
|
-
|
|
6587
|
-
|
|
6588
|
-
|
|
6589
|
-
|
|
6590
|
-
|
|
6591
|
-
|
|
6592
|
-
|
|
6593
|
-
|
|
6573
|
+
&:after {
|
|
6574
|
+
content: '';
|
|
6575
|
+
-webkit-box-sizing: border-box;
|
|
6576
|
+
box-sizing: border-box;
|
|
6577
|
+
position: absolute;
|
|
6578
|
+
top: 11px;
|
|
6579
|
+
left: 9px;
|
|
6580
|
+
width: 23px;
|
|
6581
|
+
height: 12px;
|
|
6582
|
+
-webkit-transform: rotate(-45deg);
|
|
6583
|
+
-ms-transform: rotate(-45deg);
|
|
6584
|
+
transform: rotate(-45deg);
|
|
6585
|
+
border: solid;
|
|
6586
|
+
border-width: 0 0 5px 5px;
|
|
6587
|
+
border-top-color: transparent;
|
|
6588
|
+
opacity: ${(props) => (props.isChecked ? 1 : 0)};
|
|
6589
|
+
background: transparent;
|
|
6590
|
+
}
|
|
6594
6591
|
`;
|
|
6595
6592
|
|
|
6596
6593
|
const NewsArticleFilterFields = {
|
|
@@ -6616,10 +6613,10 @@ const NewsArticleFilterFields = {
|
|
|
6616
6613
|
|
|
6617
6614
|
var CheckboxListFilter = function (_a) {
|
|
6618
6615
|
var options = _a.options, checked = _a.checked, label = _a.label, _b = _a.hint, hint = _b === void 0 ? null : _b, displayLegend = _a.displayLegend;
|
|
6619
|
-
var labelHidden =
|
|
6620
|
-
var hintHidden =
|
|
6616
|
+
var labelHidden = label === null || !displayLegend ? true : false;
|
|
6617
|
+
var hintHidden = hint === null ? true : false;
|
|
6621
6618
|
var setupCheckboxes = function () {
|
|
6622
|
-
return options.map(function (option) { return (__assign$2(__assign$2({}, option), { checked:
|
|
6619
|
+
return options.map(function (option) { return (__assign$2(__assign$2({}, option), { checked: checked.includes(option.value) ? true : false })); });
|
|
6623
6620
|
};
|
|
6624
6621
|
var _c = useState(setupCheckboxes()), checkboxState = _c[0], setCheckboxState = _c[1];
|
|
6625
6622
|
var optionChecked = function (e) {
|
|
@@ -6636,18 +6633,16 @@ var CheckboxListFilter = function (_a) {
|
|
|
6636
6633
|
var checked = __spreadArray([], checkboxState, true);
|
|
6637
6634
|
checked = newCheckboxState.filter(function (c) { return c.checked === true; });
|
|
6638
6635
|
var articleTypes = checked.map(function (c) { return c.value; }).join(',');
|
|
6639
|
-
handleParams('news', [{ key: NewsArticleFilterFields.articleType.queryParamKey, value: articleTypes }], [
|
|
6636
|
+
handleParams('news', [{ key: NewsArticleFilterFields.articleType.queryParamKey, value: articleTypes }], ['page']);
|
|
6640
6637
|
};
|
|
6641
6638
|
var backupLabel = Math.random().toString(36).substring(7);
|
|
6642
6639
|
return (React.createElement(Container$T, { "data-testid": "CheckboxListFilter" },
|
|
6643
6640
|
React.createElement(Fieldset, { "aria-describedby": "waste-hint" },
|
|
6644
6641
|
React.createElement(Legend, { labelHidden: labelHidden }, label),
|
|
6645
6642
|
React.createElement(Hint, { id: "waste-hint", hintHidden: hintHidden }, hint),
|
|
6646
|
-
React.createElement(Checkboxes, null, checkboxState.map(function (option, i) {
|
|
6647
|
-
|
|
6648
|
-
|
|
6649
|
-
React.createElement(CheckboxLabel, { isChecked: option.checked, htmlFor: option.value }, option.title));
|
|
6650
|
-
})))));
|
|
6643
|
+
React.createElement(Checkboxes, null, checkboxState.map(function (option, i) { return (React.createElement(Checkbox, { key: i },
|
|
6644
|
+
React.createElement(CheckboxInput, { id: option.value, name: labelHidden ? backupLabel : label, type: "checkbox", onChange: optionChecked, value: option.value, checked: option.checked }),
|
|
6645
|
+
React.createElement(CheckboxLabel, { isChecked: option.checked, htmlFor: option.value }, option.title))); })))));
|
|
6651
6646
|
};
|
|
6652
6647
|
|
|
6653
6648
|
const Container$S = styled.div`
|
|
@@ -6712,103 +6707,200 @@ var DropDownFilter = function (_a) {
|
|
|
6712
6707
|
return (React.createElement(DropDownSelect, { id: id, label: label, options: options, onChange: optionPicked, selected: value, hideLabel: hideLabel }));
|
|
6713
6708
|
};
|
|
6714
6709
|
|
|
6715
|
-
const oneColStyles = props => {
|
|
6716
|
-
|
|
6717
|
-
|
|
6718
|
-
|
|
6710
|
+
const oneColStyles = (props) => {
|
|
6711
|
+
if (props.oneCol) {
|
|
6712
|
+
return css`
|
|
6713
|
+
width: 100%;
|
|
6714
|
+
display: block;
|
|
6715
|
+
`;
|
|
6716
|
+
}
|
|
6719
6717
|
};
|
|
6720
6718
|
|
|
6721
6719
|
const PromotedLinks$1 = styled.div`
|
|
6722
|
-
${props => props.theme.fontStyles}
|
|
6723
|
-
|
|
6720
|
+
${(props) => props.theme.fontStyles}
|
|
6721
|
+
margin-top: 30px;
|
|
6724
6722
|
|
|
6725
|
-
|
|
6726
|
-
|
|
6727
|
-
|
|
6728
|
-
|
|
6729
|
-
|
|
6730
|
-
|
|
6731
|
-
|
|
6732
|
-
|
|
6733
|
-
|
|
6734
|
-
|
|
6735
|
-
|
|
6723
|
+
@media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.s}) {
|
|
6724
|
+
display: -ms-flex;
|
|
6725
|
+
display: -webkit-flex;
|
|
6726
|
+
display: flex;
|
|
6727
|
+
flex-wrap: wrap;
|
|
6728
|
+
margin-top: 60px;
|
|
6729
|
+
}
|
|
6730
|
+
@media screen and (min-width: calc(${(props) => props.theme.theme_vars.breakpoints.l} + 60px)) {
|
|
6731
|
+
margin-top: 90px;
|
|
6732
|
+
}
|
|
6733
|
+
flex-direction: ${(prop) => (prop.oneCol ? 'column' : 'inherit')};
|
|
6736
6734
|
`;
|
|
6737
6735
|
|
|
6738
6736
|
const PromotedLink$1 = styled.a`
|
|
6739
|
-
|
|
6740
|
-
|
|
6741
|
-
|
|
6742
|
-
|
|
6743
|
-
|
|
6744
|
-
|
|
6745
|
-
|
|
6746
|
-
|
|
6747
|
-
|
|
6748
|
-
|
|
6749
|
-
|
|
6750
|
-
|
|
6751
|
-
|
|
6752
|
-
|
|
6737
|
+
display: block;
|
|
6738
|
+
height: 100%;
|
|
6739
|
+
@media screen and (min-width: calc(${(props) => props.theme.theme_vars.breakpoints.l} + 60px)) {
|
|
6740
|
+
box-sizing: border-box;
|
|
6741
|
+
}
|
|
6742
|
+
background: ${(props) => props.theme.theme_vars.colours.white};
|
|
6743
|
+
background: ${(props) => props.theme.theme_vars.colours.white}F2;
|
|
6744
|
+
border-radius: 3px;
|
|
6745
|
+
box-shadow: 0px -4px 0px 0px ${(props) => props.theme.theme_vars.colours.action} inset,
|
|
6746
|
+
0px 4px 15px rgba(0, 0, 0, 0.11);
|
|
6747
|
+
-webkit-box-shadow: 0px -4px 0px 0px ${(props) => props.theme.theme_vars.colours.action} inset,
|
|
6748
|
+
0px 4px 15px rgba(0, 0, 0, 0.11);
|
|
6749
|
+
-moz-box-shadow: 0px -4px 0px 0px ${(props) => props.theme.theme_vars.colours.action} inset,
|
|
6750
|
+
0px 4px 15px rgba(0, 0, 0, 0.11);
|
|
6753
6751
|
|
|
6754
|
-
|
|
6755
|
-
|
|
6756
|
-
|
|
6752
|
+
padding: 20px 15px;
|
|
6753
|
+
width: calc(100% - 30px);
|
|
6754
|
+
margin-bottom: 15px;
|
|
6757
6755
|
|
|
6758
|
-
|
|
6759
|
-
|
|
6760
|
-
|
|
6756
|
+
span {
|
|
6757
|
+
${(props) => props.theme.linkStyles};
|
|
6758
|
+
}
|
|
6761
6759
|
|
|
6762
|
-
|
|
6763
|
-
|
|
6764
|
-
|
|
6765
|
-
|
|
6766
|
-
|
|
6760
|
+
&:hover {
|
|
6761
|
+
background: ${(props) => props.theme.theme_vars.colours.white};
|
|
6762
|
+
}
|
|
6763
|
+
|
|
6764
|
+
&:focus {
|
|
6765
|
+
${(props) => props.theme.linkStylesFocus};
|
|
6766
|
+
box-shadow: 0px -4px 0px 0px ${(props) => props.theme.theme_vars.colours.black} 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.black} 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.black} inset,
|
|
6771
|
+
0px 4px 15px rgba(0, 0, 0, 0.11);
|
|
6772
|
+
}
|
|
6773
|
+
&:active {
|
|
6774
|
+
${(props) => props.theme.linkStylesActive};
|
|
6775
|
+
transform: translateY(3px);
|
|
6776
|
+
box-shadow: 0px -1px 0px 0px ${(props) => props.theme.theme_vars.colours.black} inset,
|
|
6777
|
+
0px 4px 15px rgba(0, 0, 0, 0.11);
|
|
6778
|
+
-webkit-box-shadow: 0px -1px 0px 0px ${(props) => props.theme.theme_vars.colours.black} inset,
|
|
6779
|
+
0px 4px 15px rgba(0, 0, 0, 0.11);
|
|
6780
|
+
-moz-box-shadow: 0px -1px 0px 0px ${(props) => props.theme.theme_vars.colours.black} inset,
|
|
6781
|
+
0px 4px 15px rgba(0, 0, 0, 0.11);
|
|
6782
|
+
}
|
|
6783
|
+
@media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.s}) {
|
|
6784
|
+
width: 100%;
|
|
6785
|
+
margin-right: 15px;
|
|
6786
|
+
flex: 0 0 calc(50% - 38px);
|
|
6787
|
+
&:nth-of-type(2n) {
|
|
6788
|
+
margin-right: 0;
|
|
6767
6789
|
}
|
|
6768
|
-
|
|
6769
|
-
|
|
6770
|
-
|
|
6771
|
-
|
|
6772
|
-
|
|
6773
|
-
|
|
6790
|
+
}
|
|
6791
|
+
|
|
6792
|
+
@media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.m}) {
|
|
6793
|
+
width: 100%;
|
|
6794
|
+
margin-right: 30px;
|
|
6795
|
+
|
|
6796
|
+
margin-bottom: ${(prop) => (prop.oneCol ? '20px' : '0px')};
|
|
6797
|
+
padding: 30px;
|
|
6798
|
+
flex: 1;
|
|
6799
|
+
|
|
6800
|
+
&:nth-of-type(2n) {
|
|
6801
|
+
margin-right: 30px;
|
|
6774
6802
|
}
|
|
6775
|
-
|
|
6776
|
-
|
|
6777
|
-
margin-right: 15px;
|
|
6778
|
-
flex: 0 0 calc(50% - 38px);
|
|
6779
|
-
&:nth-of-type(2n) {
|
|
6780
|
-
margin-right: 0;
|
|
6781
|
-
}
|
|
6803
|
+
&:last-of-type {
|
|
6804
|
+
margin-right: 0;
|
|
6782
6805
|
}
|
|
6806
|
+
}
|
|
6807
|
+
${oneColStyles}
|
|
6808
|
+
`;
|
|
6783
6809
|
|
|
6784
|
-
|
|
6785
|
-
|
|
6786
|
-
|
|
6810
|
+
const Container$R = styled.div`
|
|
6811
|
+
box-sizing: border-box;
|
|
6812
|
+
display: flex;
|
|
6813
|
+
flex-wrap: wrap;
|
|
6814
|
+
flex-direction: row;
|
|
6815
|
+
justify-content: start;
|
|
6816
|
+
align-items: stretch;
|
|
6817
|
+
margin: 0 -${(props) => props.theme.theme_vars.spacingSizes.small};
|
|
6818
|
+
border: ${(props) => (props.hasBorder ? `1px solid ${props.theme.theme_vars.colours.grey}` : 'none')};
|
|
6819
|
+
list-style: none;
|
|
6820
|
+
max-width: none !important;
|
|
6821
|
+
min-width: calc(
|
|
6822
|
+
100% + ${(props) => props.theme.theme_vars.spacingSizes.small} +
|
|
6823
|
+
${(props) => props.theme.theme_vars.spacingSizes.small}
|
|
6824
|
+
);
|
|
6787
6825
|
|
|
6788
|
-
|
|
6789
|
-
|
|
6790
|
-
|
|
6826
|
+
@media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.l}) {
|
|
6827
|
+
flex-wrap: ${(props) => (props.hasWrap ? `wrap` : `nowrap`)};
|
|
6828
|
+
}
|
|
6829
|
+
`;
|
|
6791
6830
|
|
|
6792
|
-
|
|
6793
|
-
|
|
6794
|
-
|
|
6795
|
-
|
|
6796
|
-
|
|
6797
|
-
|
|
6831
|
+
var Row$1 = function (_a) {
|
|
6832
|
+
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;
|
|
6833
|
+
return (React.createElement(Container$R, { "data-testid": "Row", hasBorder: hasBorder, hasWrap: hasWrap, as: isList ? 'ul' : 'div' }, children));
|
|
6834
|
+
};
|
|
6835
|
+
|
|
6836
|
+
const calculateWidth = (size) => {
|
|
6837
|
+
switch (size) {
|
|
6838
|
+
case 'full':
|
|
6839
|
+
return css`
|
|
6840
|
+
width: 100%;
|
|
6841
|
+
`;
|
|
6842
|
+
case 'one-half':
|
|
6843
|
+
return css`
|
|
6844
|
+
width: 50%;
|
|
6845
|
+
`;
|
|
6846
|
+
case 'one-third':
|
|
6847
|
+
return css`
|
|
6848
|
+
width: 33.333%;
|
|
6849
|
+
`;
|
|
6850
|
+
case 'two-thirds':
|
|
6851
|
+
return css`
|
|
6852
|
+
width: 66.666%;
|
|
6853
|
+
`;
|
|
6854
|
+
case 'one-quarter':
|
|
6855
|
+
return css`
|
|
6856
|
+
width: 25%;
|
|
6857
|
+
`;
|
|
6858
|
+
case 'three-quarters':
|
|
6859
|
+
return css`
|
|
6860
|
+
width: 75%;
|
|
6861
|
+
`;
|
|
6862
|
+
case 'auto':
|
|
6863
|
+
return css`
|
|
6864
|
+
flex-grow: 1;
|
|
6865
|
+
`;
|
|
6866
|
+
}
|
|
6867
|
+
};
|
|
6798
6868
|
|
|
6869
|
+
const widths = (props) => {
|
|
6870
|
+
return css`
|
|
6871
|
+
${calculateWidth(props.small)};
|
|
6799
6872
|
|
|
6873
|
+
@media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.m}) {
|
|
6874
|
+
${calculateWidth(props.medium)};
|
|
6800
6875
|
}
|
|
6801
|
-
${oneColStyles}
|
|
6802
6876
|
|
|
6877
|
+
@media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.l}) {
|
|
6878
|
+
${calculateWidth(props.large)};
|
|
6879
|
+
}
|
|
6803
6880
|
`;
|
|
6881
|
+
};
|
|
6882
|
+
|
|
6883
|
+
const Container$Q = styled.div`
|
|
6884
|
+
box-sizing: border-box;
|
|
6885
|
+
display: block;
|
|
6886
|
+
padding: ${(props) => (props.hasPadding ? props.theme.theme_vars.spacingSizes.small : `0`)};
|
|
6887
|
+
border: ${(props) => (props.hasBorder ? `1px solid ${props.theme.theme_vars.colours.negative}` : 'none')};
|
|
6888
|
+
left: 0;
|
|
6889
|
+
${widths};
|
|
6890
|
+
`;
|
|
6891
|
+
|
|
6892
|
+
var Column = function (_a) {
|
|
6893
|
+
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;
|
|
6894
|
+
return (React.createElement(Container$Q, { "data-testid": "Column", small: small, medium: medium, large: large, hasPadding: hasPadding, hasBorder: hasBorder, as: isList ? 'li' : 'div' }, children));
|
|
6895
|
+
};
|
|
6804
6896
|
|
|
6805
6897
|
var PromotedLinks = function (_a) {
|
|
6806
6898
|
var promotedLinksArray = _a.promotedLinksArray, oneCol = _a.oneCol;
|
|
6807
6899
|
if (promotedLinksArray.length > 0) {
|
|
6808
|
-
return (React.createElement(PromotedLinks$1, { "data-testid": "PromotedLinks", oneCol: oneCol },
|
|
6809
|
-
|
|
6810
|
-
React.createElement(
|
|
6811
|
-
|
|
6900
|
+
return (React.createElement(PromotedLinks$1, { "data-testid": "PromotedLinks", oneCol: oneCol },
|
|
6901
|
+
React.createElement(Row$1, { isList: true, hasWrap: false }, promotedLinksArray.map(function (link, i) { return (React.createElement(Column, { isList: true, small: "full", medium: "one-half", large: "auto", key: i },
|
|
6902
|
+
React.createElement(PromotedLink$1, { oneCol: oneCol, href: link.url, title: link.title },
|
|
6903
|
+
React.createElement("span", null, link.title)))); }))));
|
|
6812
6904
|
}
|
|
6813
6905
|
else {
|
|
6814
6906
|
return null;
|
|
@@ -6827,7 +6919,7 @@ var TextInput = function (_a) {
|
|
|
6827
6919
|
|
|
6828
6920
|
// Accordion
|
|
6829
6921
|
|
|
6830
|
-
const Container$
|
|
6922
|
+
const Container$P = styled.div`
|
|
6831
6923
|
${(props) => props.theme.fontStyles}
|
|
6832
6924
|
margin-bottom: 20px;
|
|
6833
6925
|
border-bottom: 1px solid ${(props) => props.theme.theme_vars.colours.grey};
|
|
@@ -7109,7 +7201,7 @@ var Accordion = function (_a) {
|
|
|
7109
7201
|
setAccordionStates(newStatus);
|
|
7110
7202
|
};
|
|
7111
7203
|
var accordionId = "accordion".concat(uniqueID());
|
|
7112
|
-
return (React.createElement(Container$
|
|
7204
|
+
return (React.createElement(Container$P, { "data-testid": "Accordion", id: accordionId },
|
|
7113
7205
|
showControls && sections.length > 1 && (React.createElement(AccordionControls, null,
|
|
7114
7206
|
React.createElement(OpenAllButton, { onClick: toggleAll, type: "button", "aria-expanded": !openAll },
|
|
7115
7207
|
openAll ? 'Open all' : 'Close all',
|
|
@@ -7160,7 +7252,7 @@ var BlockQuote = function (_a) {
|
|
|
7160
7252
|
citation && React.createElement(Citation, null, citation)));
|
|
7161
7253
|
};
|
|
7162
7254
|
|
|
7163
|
-
const Container$
|
|
7255
|
+
const Container$O = styled.div`
|
|
7164
7256
|
margin-bottom: 30px;
|
|
7165
7257
|
display: block;
|
|
7166
7258
|
|
|
@@ -7175,16 +7267,16 @@ const Container$Q = styled.div`
|
|
|
7175
7267
|
*/
|
|
7176
7268
|
var CallToAction = function (_a) {
|
|
7177
7269
|
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"]);
|
|
7178
|
-
return (React.createElement(Container$
|
|
7270
|
+
return (React.createElement(Container$O, null,
|
|
7179
7271
|
React.createElement(Button$2, { primary: primary, size: "large", text: text, url: url, isExternal: isExternal, isDisabled: isDisabled })));
|
|
7180
7272
|
};
|
|
7181
7273
|
|
|
7182
|
-
const Container$
|
|
7274
|
+
const Container$N = styled.div`
|
|
7183
7275
|
display: block;
|
|
7184
7276
|
${(props) => props.theme.fontStyles}
|
|
7185
7277
|
`;
|
|
7186
7278
|
|
|
7187
|
-
const Row
|
|
7279
|
+
const Row = styled.div`
|
|
7188
7280
|
margin-bottom: 15px;
|
|
7189
7281
|
border-bottom: 1px solid ${(props) => props.theme.theme_vars.colours.grey};
|
|
7190
7282
|
`;
|
|
@@ -7277,81 +7369,9 @@ const ErrorText = styled.p`
|
|
|
7277
7369
|
font-size: 18px;
|
|
7278
7370
|
font-size: 1rem;
|
|
7279
7371
|
line-height: 1.25;
|
|
7280
|
-
}
|
|
7281
|
-
`;
|
|
7282
|
-
|
|
7283
|
-
const calculateWidth = (size) => {
|
|
7284
|
-
switch (size) {
|
|
7285
|
-
case 'full':
|
|
7286
|
-
return css`
|
|
7287
|
-
width: 100%;
|
|
7288
|
-
`;
|
|
7289
|
-
case 'one-half':
|
|
7290
|
-
return css`
|
|
7291
|
-
width: 50%;
|
|
7292
|
-
`;
|
|
7293
|
-
case 'one-third':
|
|
7294
|
-
return css`
|
|
7295
|
-
width: 33.333%;
|
|
7296
|
-
`;
|
|
7297
|
-
case 'two-thirds':
|
|
7298
|
-
return css`
|
|
7299
|
-
width: 66.666%;
|
|
7300
|
-
`;
|
|
7301
|
-
case 'one-quarter':
|
|
7302
|
-
return css`
|
|
7303
|
-
width: 25%;
|
|
7304
|
-
`;
|
|
7305
|
-
case 'three-quarters':
|
|
7306
|
-
return css`
|
|
7307
|
-
width: 75%;
|
|
7308
|
-
`;
|
|
7309
|
-
}
|
|
7310
|
-
};
|
|
7311
|
-
|
|
7312
|
-
const widths = (props) => {
|
|
7313
|
-
return css`
|
|
7314
|
-
${calculateWidth(props.small)};
|
|
7315
|
-
|
|
7316
|
-
@media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.m}) {
|
|
7317
|
-
${calculateWidth(props.medium)};
|
|
7318
|
-
}
|
|
7319
|
-
|
|
7320
|
-
@media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.l}) {
|
|
7321
|
-
${calculateWidth(props.large)};
|
|
7322
|
-
}
|
|
7323
|
-
`;
|
|
7324
|
-
};
|
|
7325
|
-
|
|
7326
|
-
const Container$O = styled.div`
|
|
7327
|
-
box-sizing: border-box;
|
|
7328
|
-
display: block;
|
|
7329
|
-
padding: ${(props) => (props.hasPadding ? props.theme.theme_vars.spacingSizes.small : `0`)};
|
|
7330
|
-
border: ${(props) => (props.hasBorder ? `1px solid ${props.theme.theme_vars.colours.negative}` : 'none')};
|
|
7331
|
-
${widths};
|
|
7332
|
-
`;
|
|
7333
|
-
|
|
7334
|
-
var Column = function (_a) {
|
|
7335
|
-
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;
|
|
7336
|
-
return (React.createElement(Container$O, { "data-testid": "Column", small: small, medium: medium, large: large, hasPadding: hasPadding, hasBorder: hasBorder }, children));
|
|
7337
|
-
};
|
|
7338
|
-
|
|
7339
|
-
const Container$N = styled.div`
|
|
7340
|
-
box-sizing: border-box;
|
|
7341
|
-
display: flex;
|
|
7342
|
-
flex-wrap: wrap;
|
|
7343
|
-
flex-direction: row;
|
|
7344
|
-
justify-content: start;
|
|
7345
|
-
align-items: stretch;
|
|
7346
|
-
margin: 0;
|
|
7347
|
-
border: ${(props) => (props.hasBorder ? `1px solid ${props.theme.theme_vars.colours.grey}` : 'none')};
|
|
7372
|
+
}
|
|
7348
7373
|
`;
|
|
7349
7374
|
|
|
7350
|
-
var Row = function (_a) {
|
|
7351
|
-
var _b = _a.hasBorder, hasBorder = _b === void 0 ? false : _b, children = _a.children;
|
|
7352
|
-
return (React.createElement(Container$N, { "data-testid": "Row", hasBorder: hasBorder }, children));
|
|
7353
|
-
};
|
|
7354
|
-
|
|
7355
7375
|
/**
|
|
7356
7376
|
* An list of parishes, sorted alphabetically, containing parish council tax bands
|
|
7357
7377
|
*/
|
|
@@ -7427,15 +7447,15 @@ var CouncilTaxAlphabeticalDirectory = function (_a) {
|
|
|
7427
7447
|
});
|
|
7428
7448
|
return letterData;
|
|
7429
7449
|
});
|
|
7430
|
-
return (React.createElement(Container$
|
|
7450
|
+
return (React.createElement(Container$N, { "data-testid": "AlphabeticalDirectory", ref: directoryRef },
|
|
7431
7451
|
React.createElement(React.Fragment, null,
|
|
7432
7452
|
parishes.length === 0 && (React.createElement(ErrorText, null, "There was an issue fetching the parish data. Please try again later.")),
|
|
7433
|
-
parish === null ? (React.createElement(React.Fragment, null, sortedData.map(function (letter, i) { return (React.createElement(Row
|
|
7434
|
-
React.createElement(Row, null,
|
|
7453
|
+
parish === null ? (React.createElement(React.Fragment, null, sortedData.map(function (letter, i) { return (React.createElement(Row, { key: i },
|
|
7454
|
+
React.createElement(Row$1, null,
|
|
7435
7455
|
React.createElement(Column, { small: "full", medium: "one-quarter", large: "one-quarter" },
|
|
7436
7456
|
React.createElement(Letter, null, letter.group)),
|
|
7437
7457
|
React.createElement(Column, { small: "full", medium: "three-quarters", large: "three-quarters" },
|
|
7438
|
-
React.createElement(Row, null, letter.children.map(function (letterData, i) { return (React.createElement(Column, { small: "one-half", medium: "one-half", large: "one-half", key: i },
|
|
7458
|
+
React.createElement(Row$1, null, letter.children.map(function (letterData, i) { return (React.createElement(Column, { small: "one-half", medium: "one-half", large: "one-half", key: i },
|
|
7439
7459
|
React.createElement(Link$4, { onClick: function () { return showParish(letterData); } }, letterData.title))); })))))); }))) : (React.createElement(React.Fragment, null,
|
|
7440
7460
|
React.createElement(BackButton, { onClick: function () { return setCurrentParish(null); } }, "Back"),
|
|
7441
7461
|
React.createElement("div", { className: "table-container" },
|
|
@@ -19777,7 +19797,6 @@ function sanitizeHtml(html, options, _recursing) {
|
|
|
19777
19797
|
delete frame.attribs[a];
|
|
19778
19798
|
return;
|
|
19779
19799
|
}
|
|
19780
|
-
let parsed;
|
|
19781
19800
|
// check allowedAttributesMap for the element and attribute and modify the value
|
|
19782
19801
|
// as necessary if there are specific values defined.
|
|
19783
19802
|
let passedAllowedAttributesMapCheck = false;
|
|
@@ -19825,14 +19844,14 @@ function sanitizeHtml(html, options, _recursing) {
|
|
|
19825
19844
|
let allowed = true;
|
|
19826
19845
|
|
|
19827
19846
|
try {
|
|
19828
|
-
const parsed =
|
|
19847
|
+
const parsed = parseUrl(value);
|
|
19829
19848
|
|
|
19830
19849
|
if (options.allowedScriptHostnames || options.allowedScriptDomains) {
|
|
19831
19850
|
const allowedHostname = (options.allowedScriptHostnames || []).find(function (hostname) {
|
|
19832
|
-
return hostname === parsed.hostname;
|
|
19851
|
+
return hostname === parsed.url.hostname;
|
|
19833
19852
|
});
|
|
19834
19853
|
const allowedDomain = (options.allowedScriptDomains || []).find(function(domain) {
|
|
19835
|
-
return parsed.hostname === domain || parsed.hostname.endsWith(`.${domain}`);
|
|
19854
|
+
return parsed.url.hostname === domain || parsed.url.hostname.endsWith(`.${domain}`);
|
|
19836
19855
|
});
|
|
19837
19856
|
allowed = allowedHostname || allowedDomain;
|
|
19838
19857
|
}
|
|
@@ -19849,29 +19868,9 @@ function sanitizeHtml(html, options, _recursing) {
|
|
|
19849
19868
|
if (name === 'iframe' && a === 'src') {
|
|
19850
19869
|
let allowed = true;
|
|
19851
19870
|
try {
|
|
19852
|
-
|
|
19853
|
-
|
|
19854
|
-
|
|
19855
|
-
value = value.replace(/^(\w+:)?\s*[\\/]\s*[\\/]/, '$1//');
|
|
19856
|
-
if (value.startsWith('relative:')) {
|
|
19857
|
-
// An attempt to exploit our workaround for base URLs being
|
|
19858
|
-
// mandatory for relative URL validation in the WHATWG
|
|
19859
|
-
// URL parser, reject it
|
|
19860
|
-
throw new Error('relative: exploit attempt');
|
|
19861
|
-
}
|
|
19862
|
-
// naughtyHref is in charge of whether protocol relative URLs
|
|
19863
|
-
// are cool. Here we are concerned just with allowed hostnames and
|
|
19864
|
-
// whether to allow relative URLs.
|
|
19865
|
-
//
|
|
19866
|
-
// Build a placeholder "base URL" against which any reasonable
|
|
19867
|
-
// relative URL may be parsed successfully
|
|
19868
|
-
let base = 'relative://relative-site';
|
|
19869
|
-
for (let i = 0; (i < 100); i++) {
|
|
19870
|
-
base += `/${i}`;
|
|
19871
|
-
}
|
|
19872
|
-
const parsed = new URL(value, base);
|
|
19873
|
-
const isRelativeUrl = parsed && parsed.hostname === 'relative-site' && parsed.protocol === 'relative:';
|
|
19874
|
-
if (isRelativeUrl) {
|
|
19871
|
+
const parsed = parseUrl(value);
|
|
19872
|
+
|
|
19873
|
+
if (parsed.isRelativeUrl) {
|
|
19875
19874
|
// default value of allowIframeRelativeUrls is true
|
|
19876
19875
|
// unless allowedIframeHostnames or allowedIframeDomains specified
|
|
19877
19876
|
allowed = has(options, 'allowIframeRelativeUrls')
|
|
@@ -19879,10 +19878,10 @@ function sanitizeHtml(html, options, _recursing) {
|
|
|
19879
19878
|
: (!options.allowedIframeHostnames && !options.allowedIframeDomains);
|
|
19880
19879
|
} else if (options.allowedIframeHostnames || options.allowedIframeDomains) {
|
|
19881
19880
|
const allowedHostname = (options.allowedIframeHostnames || []).find(function (hostname) {
|
|
19882
|
-
return hostname === parsed.hostname;
|
|
19881
|
+
return hostname === parsed.url.hostname;
|
|
19883
19882
|
});
|
|
19884
19883
|
const allowedDomain = (options.allowedIframeDomains || []).find(function(domain) {
|
|
19885
|
-
return parsed.hostname === domain || parsed.hostname.endsWith(`.${domain}`);
|
|
19884
|
+
return parsed.url.hostname === domain || parsed.url.hostname.endsWith(`.${domain}`);
|
|
19886
19885
|
});
|
|
19887
19886
|
allowed = allowedHostname || allowedDomain;
|
|
19888
19887
|
}
|
|
@@ -19897,7 +19896,7 @@ function sanitizeHtml(html, options, _recursing) {
|
|
|
19897
19896
|
}
|
|
19898
19897
|
if (a === 'srcset') {
|
|
19899
19898
|
try {
|
|
19900
|
-
parsed = parseSrcset(value);
|
|
19899
|
+
let parsed = parseSrcset(value);
|
|
19901
19900
|
parsed.forEach(function(value) {
|
|
19902
19901
|
if (naughtyHref('srcset', value.url)) {
|
|
19903
19902
|
value.evil = true;
|
|
@@ -20123,7 +20122,17 @@ function sanitizeHtml(html, options, _recursing) {
|
|
|
20123
20122
|
// Clobber any comments in URLs, which the browser might
|
|
20124
20123
|
// interpret inside an XML data island, allowing
|
|
20125
20124
|
// a javascript: URL to be snuck through
|
|
20126
|
-
|
|
20125
|
+
while (true) {
|
|
20126
|
+
const firstIndex = href.indexOf('<!--');
|
|
20127
|
+
if (firstIndex === -1) {
|
|
20128
|
+
break;
|
|
20129
|
+
}
|
|
20130
|
+
const lastIndex = href.indexOf('-->', firstIndex + 4);
|
|
20131
|
+
if (lastIndex === -1) {
|
|
20132
|
+
break;
|
|
20133
|
+
}
|
|
20134
|
+
href = href.substring(0, firstIndex) + href.substring(lastIndex + 3);
|
|
20135
|
+
}
|
|
20127
20136
|
// Case insensitive so we don't get faked out by JAVASCRIPT #1
|
|
20128
20137
|
// Allow more characters after the first so we don't get faked
|
|
20129
20138
|
// out by certain schemes browsers accept
|
|
@@ -20146,6 +20155,33 @@ function sanitizeHtml(html, options, _recursing) {
|
|
|
20146
20155
|
return !options.allowedSchemes || options.allowedSchemes.indexOf(scheme) === -1;
|
|
20147
20156
|
}
|
|
20148
20157
|
|
|
20158
|
+
function parseUrl(value) {
|
|
20159
|
+
value = value.replace(/^(\w+:)?\s*[\\/]\s*[\\/]/, '$1//');
|
|
20160
|
+
if (value.startsWith('relative:')) {
|
|
20161
|
+
// An attempt to exploit our workaround for base URLs being
|
|
20162
|
+
// mandatory for relative URL validation in the WHATWG
|
|
20163
|
+
// URL parser, reject it
|
|
20164
|
+
throw new Error('relative: exploit attempt');
|
|
20165
|
+
}
|
|
20166
|
+
// naughtyHref is in charge of whether protocol relative URLs
|
|
20167
|
+
// are cool. Here we are concerned just with allowed hostnames and
|
|
20168
|
+
// whether to allow relative URLs.
|
|
20169
|
+
//
|
|
20170
|
+
// Build a placeholder "base URL" against which any reasonable
|
|
20171
|
+
// relative URL may be parsed successfully
|
|
20172
|
+
let base = 'relative://relative-site';
|
|
20173
|
+
for (let i = 0; (i < 100); i++) {
|
|
20174
|
+
base += `/${i}`;
|
|
20175
|
+
}
|
|
20176
|
+
|
|
20177
|
+
const parsed = new URL(value, base);
|
|
20178
|
+
|
|
20179
|
+
const isRelativeUrl = parsed && parsed.hostname === 'relative-site' && parsed.protocol === 'relative:';
|
|
20180
|
+
return {
|
|
20181
|
+
isRelativeUrl,
|
|
20182
|
+
url: parsed
|
|
20183
|
+
};
|
|
20184
|
+
}
|
|
20149
20185
|
/**
|
|
20150
20186
|
* Filters user input css properties by allowlisted regex attributes.
|
|
20151
20187
|
* Modifies the abstractSyntaxTree object.
|
|
@@ -20328,7 +20364,7 @@ var Card = function (_a) {
|
|
|
20328
20364
|
var Cards = function (_a) {
|
|
20329
20365
|
var cards = _a.cards;
|
|
20330
20366
|
return (React.createElement(Container$M, { "data-testid": "Cards" },
|
|
20331
|
-
React.createElement(Row, null, cards.map(function (card, index) { return (React.createElement(Column, { small: "full", medium: "one-half", large: "one-third", key: index },
|
|
20367
|
+
React.createElement(Row$1, null, cards.map(function (card, index) { return (React.createElement(Column, { small: "full", medium: "one-half", large: "one-third", key: index },
|
|
20332
20368
|
React.createElement(Card, __assign$2({}, card)))); }))));
|
|
20333
20369
|
};
|
|
20334
20370
|
|
|
@@ -20337,91 +20373,85 @@ const Container$C = styled.div`
|
|
|
20337
20373
|
`;
|
|
20338
20374
|
|
|
20339
20375
|
const Outer = styled.div`
|
|
20340
|
-
|
|
20341
|
-
|
|
20342
|
-
|
|
20343
|
-
|
|
20344
|
-
|
|
20345
|
-
|
|
20346
|
-
|
|
20347
|
-
|
|
20348
|
-
|
|
20349
|
-
position: absolute;
|
|
20350
|
-
left: 0;
|
|
20351
|
-
top: -15px;
|
|
20352
|
-
background: ${props => props.theme.theme_vars.colours.grey_dark}80;
|
|
20353
|
-
}
|
|
20354
|
-
}
|
|
20355
|
-
}
|
|
20376
|
+
${(props) => props.theme.fontStyles}
|
|
20377
|
+
max-width: 725px;
|
|
20378
|
+
&:not(:first-child) {
|
|
20379
|
+
a {
|
|
20380
|
+
margin-top: 15px;
|
|
20381
|
+
border-top: 1px solid ${(props) => props.theme.theme_vars.colours.grey_dark}80;
|
|
20382
|
+
padding-top: 15px;
|
|
20383
|
+
}
|
|
20384
|
+
}
|
|
20356
20385
|
`;
|
|
20357
20386
|
const Link$3 = styled.a`
|
|
20358
|
-
|
|
20359
|
-
|
|
20360
|
-
|
|
20361
|
-
|
|
20362
|
-
|
|
20387
|
+
margin-bottom: 15px;
|
|
20388
|
+
display: block;
|
|
20389
|
+
width: 100%;
|
|
20390
|
+
position: relative;
|
|
20391
|
+
min-width: 300px;
|
|
20363
20392
|
|
|
20364
|
-
|
|
20365
|
-
|
|
20366
|
-
|
|
20367
|
-
|
|
20368
|
-
|
|
20369
|
-
|
|
20370
|
-
|
|
20371
|
-
}
|
|
20393
|
+
svg {
|
|
20394
|
+
margin-right: 10px;
|
|
20395
|
+
vertical-align: top;
|
|
20396
|
+
margin-left: 5px;
|
|
20397
|
+
margin-top: 5px;
|
|
20398
|
+
g {
|
|
20399
|
+
fill: ${(props) => props.theme.theme_vars.colours.grey_dark};
|
|
20372
20400
|
}
|
|
20401
|
+
}
|
|
20373
20402
|
|
|
20374
|
-
|
|
20375
|
-
|
|
20376
|
-
|
|
20377
|
-
}
|
|
20378
|
-
.file-details {
|
|
20379
|
-
transform: translate(3px, 0px);
|
|
20380
|
-
}
|
|
20381
|
-
svg {
|
|
20382
|
-
g {
|
|
20383
|
-
fill: ${props => props.theme.theme_vars.colours.action};
|
|
20384
|
-
}
|
|
20385
|
-
}
|
|
20403
|
+
&:hover {
|
|
20404
|
+
.file-title {
|
|
20405
|
+
color: ${(props) => props.theme.theme_vars.colours.action};
|
|
20386
20406
|
}
|
|
20387
|
-
|
|
20388
|
-
|
|
20389
|
-
outline: none;
|
|
20390
|
-
background: ${props => props.theme.theme_vars.colours.focus};
|
|
20391
|
-
box-shadow: 0px 0px 0px 3px ${props => props.theme.theme_vars.colours.focus}, 0px 3px 0px 3px ${props => props.theme.theme_vars.colours.black};
|
|
20392
|
-
svg {
|
|
20393
|
-
g {
|
|
20394
|
-
fill: ${props => props.theme.theme_vars.colours.black};
|
|
20395
|
-
}
|
|
20396
|
-
}
|
|
20407
|
+
.file-details {
|
|
20408
|
+
transform: translate(3px, 0px);
|
|
20397
20409
|
}
|
|
20398
|
-
|
|
20399
|
-
|
|
20400
|
-
|
|
20410
|
+
svg {
|
|
20411
|
+
g {
|
|
20412
|
+
fill: ${(props) => props.theme.theme_vars.colours.action};
|
|
20413
|
+
}
|
|
20414
|
+
}
|
|
20415
|
+
}
|
|
20416
|
+
|
|
20417
|
+
&:focus {
|
|
20418
|
+
outline: none;
|
|
20419
|
+
background: ${(props) => props.theme.theme_vars.colours.focus};
|
|
20420
|
+
box-shadow: 0px 0px 0px 3px ${(props) => props.theme.theme_vars.colours.focus},
|
|
20421
|
+
0px 3px 0px 3px ${(props) => props.theme.theme_vars.colours.black};
|
|
20422
|
+
svg {
|
|
20423
|
+
g {
|
|
20424
|
+
fill: ${(props) => props.theme.theme_vars.colours.black};
|
|
20425
|
+
}
|
|
20401
20426
|
}
|
|
20427
|
+
}
|
|
20428
|
+
&:active {
|
|
20429
|
+
transform: translateY(2px);
|
|
20430
|
+
box-shadow: 0px 0px 0px 3px ${(props) => props.theme.theme_vars.colours.focus},
|
|
20431
|
+
0px 1px 0px 3px ${(props) => props.theme.theme_vars.colours.black};
|
|
20432
|
+
}
|
|
20402
20433
|
`;
|
|
20403
20434
|
|
|
20404
|
-
const FileDetails= styled.div`
|
|
20405
|
-
|
|
20406
|
-
|
|
20407
|
-
|
|
20435
|
+
const FileDetails = styled.div`
|
|
20436
|
+
display: inline-block;
|
|
20437
|
+
max-width: calc(100% - 45px);
|
|
20438
|
+
transition: transform 0.3s;
|
|
20408
20439
|
`;
|
|
20409
20440
|
const Title$7 = styled.span`
|
|
20410
|
-
|
|
20411
|
-
|
|
20412
|
-
|
|
20413
|
-
|
|
20441
|
+
display: block;
|
|
20442
|
+
color: ${(props) => props.theme.theme_vars.colours.action};
|
|
20443
|
+
font-weight: 700;
|
|
20414
20444
|
`;
|
|
20415
20445
|
const Type = styled.span`
|
|
20416
|
-
|
|
20417
|
-
|
|
20418
|
-
|
|
20419
|
-
|
|
20446
|
+
color: ${(props) => props.theme.theme_vars.colours.black};
|
|
20447
|
+
margin-right: 5px;
|
|
20448
|
+
font-weight: 400 !important;
|
|
20449
|
+
font-size: ${(props) => props.theme.theme_vars.fontSizes.extra_small};
|
|
20420
20450
|
`;
|
|
20421
20451
|
const Size = styled.span`
|
|
20422
|
-
|
|
20423
|
-
|
|
20424
|
-
|
|
20452
|
+
color: ${(props) => props.theme.theme_vars.colours.black};
|
|
20453
|
+
font-size: ${(props) => props.theme.theme_vars.fontSizes.extra_small};
|
|
20454
|
+
font-weight: 400 !important;
|
|
20425
20455
|
`;
|
|
20426
20456
|
|
|
20427
20457
|
var IconDownload$2 = function (_a) {
|
|
@@ -20700,15 +20730,15 @@ const Container$A = styled.figure`
|
|
|
20700
20730
|
: props.theme.theme_vars.colours.grey_light};
|
|
20701
20731
|
border-bottom: 1px solid ${(props) => props.theme.theme_vars.colours.grey};
|
|
20702
20732
|
margin-bottom: ${(props) => props.theme.theme_vars.spacingSizes.medium};
|
|
20703
|
-
float: ${(props) => (props.wrapText === true ? 'left' : 'none')};
|
|
20704
|
-
width: ${(props) => (props.wrapText === true ? '30%' : '100%')};
|
|
20705
20733
|
margin-top: ${(props) => props.theme.theme_vars.spacingSizes.medium};
|
|
20706
|
-
|
|
20734
|
+
float: none;
|
|
20735
|
+
width: 100%;
|
|
20736
|
+
margin-right: 0;
|
|
20707
20737
|
|
|
20708
|
-
@media screen and (
|
|
20709
|
-
float: none;
|
|
20710
|
-
width: 100
|
|
20711
|
-
margin-right: 0;
|
|
20738
|
+
@media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.s}) {
|
|
20739
|
+
float: ${(props) => (props.wrapText === true ? 'left' : 'none')};
|
|
20740
|
+
width: ${(props) => (props.wrapText === true ? '30%' : '100%')};
|
|
20741
|
+
margin-right: ${(props) => (props.wrapText === true ? '1.5rem' : '0')};
|
|
20712
20742
|
}
|
|
20713
20743
|
`;
|
|
20714
20744
|
|
|
@@ -21353,7 +21383,9 @@ const HeadingContainer = styled.div`
|
|
|
21353
21383
|
`;
|
|
21354
21384
|
|
|
21355
21385
|
const Content$3 = styled.div`
|
|
21356
|
-
|
|
21386
|
+
@media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.m}) {
|
|
21387
|
+
margin: ${(props) => props.theme.theme_vars.spacingSizes.medium} 0;
|
|
21388
|
+
}
|
|
21357
21389
|
`;
|
|
21358
21390
|
|
|
21359
21391
|
/**
|
|
@@ -21362,7 +21394,7 @@ const Content$3 = styled.div`
|
|
|
21362
21394
|
var ImageAndText = function (_a) {
|
|
21363
21395
|
var heading = _a.heading, textContent = _a.textContent, image = _a.image;
|
|
21364
21396
|
return (React.createElement(Container$z, { "data-testid": "ImageAndText" },
|
|
21365
|
-
React.createElement(Row, null,
|
|
21397
|
+
React.createElement(Row$1, null,
|
|
21366
21398
|
heading && (React.createElement(Column, { small: "full", medium: "full", large: "full" },
|
|
21367
21399
|
React.createElement(HeadingContainer, null,
|
|
21368
21400
|
React.createElement(Heading, { text: heading, level: 3 })))),
|
|
@@ -21382,8 +21414,6 @@ const Container$y = styled.div`
|
|
|
21382
21414
|
props.theme.cardinal_name === 'north'
|
|
21383
21415
|
? props.theme.theme_vars.colours.white
|
|
21384
21416
|
: props.theme.theme_vars.colours.grey_light};
|
|
21385
|
-
margin-left: -15px;
|
|
21386
|
-
width: calc(100% + 30px);
|
|
21387
21417
|
border-bottom: 3px solid ${(props) => props.theme.theme_vars.colours.action};
|
|
21388
21418
|
|
|
21389
21419
|
@media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.m}) {
|
|
@@ -21395,8 +21425,6 @@ const Container$y = styled.div`
|
|
|
21395
21425
|
justify-content: space-between;
|
|
21396
21426
|
align-items: center;
|
|
21397
21427
|
flex-wrap: wrap;
|
|
21398
|
-
margin-left: -30px;
|
|
21399
|
-
width: calc(100% + 60px);
|
|
21400
21428
|
border-bottom: none;
|
|
21401
21429
|
}
|
|
21402
21430
|
@media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.l}) {
|
|
@@ -21490,6 +21518,9 @@ const PromoTilesContainer = styled.div`
|
|
|
21490
21518
|
* A promo tile, containing image and text area
|
|
21491
21519
|
*/
|
|
21492
21520
|
const PromoTile = styled.a`
|
|
21521
|
+
display: block;
|
|
21522
|
+
width: 100%;
|
|
21523
|
+
height: 100%;
|
|
21493
21524
|
background: ${(props) =>
|
|
21494
21525
|
props.theme.cardinal_name === 'north'
|
|
21495
21526
|
? props.theme.theme_vars.colours.white
|
|
@@ -21534,33 +21565,6 @@ const PromoTile = styled.a`
|
|
|
21534
21565
|
-moz-box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.15),
|
|
21535
21566
|
0px 2px 0px 0px ${(props) => props.theme.theme_vars.colours.black} !important;
|
|
21536
21567
|
}
|
|
21537
|
-
|
|
21538
|
-
@media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.s}) {
|
|
21539
|
-
display: -ms-flex;
|
|
21540
|
-
display: -webkit-flex;
|
|
21541
|
-
display: flex;
|
|
21542
|
-
width: 100%;
|
|
21543
|
-
}
|
|
21544
|
-
|
|
21545
|
-
@media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.m}) {
|
|
21546
|
-
width: 100%;
|
|
21547
|
-
margin-right: 30px;
|
|
21548
|
-
margin-bottom: 20px;
|
|
21549
|
-
display: block;
|
|
21550
|
-
flex: 1;
|
|
21551
|
-
max-width: 50%;
|
|
21552
|
-
min-width: 30%;
|
|
21553
|
-
|
|
21554
|
-
&:nth-of-type(2n) {
|
|
21555
|
-
margin-right: 30px;
|
|
21556
|
-
}
|
|
21557
|
-
&:nth-of-type(3n) {
|
|
21558
|
-
margin-right: 0;
|
|
21559
|
-
}
|
|
21560
|
-
&:last-of-type {
|
|
21561
|
-
margin-right: 0;
|
|
21562
|
-
}
|
|
21563
|
-
}
|
|
21564
21568
|
`;
|
|
21565
21569
|
|
|
21566
21570
|
/**
|
|
@@ -21571,17 +21575,15 @@ const PromoImage = styled.span`
|
|
|
21571
21575
|
width: 100%;
|
|
21572
21576
|
height: ${imageHeightMobile$1}px;
|
|
21573
21577
|
overflow: hidden;
|
|
21574
|
-
background-image: url(
|
|
21578
|
+
background-image: url('${(props) => props.background}');
|
|
21575
21579
|
background-size: cover;
|
|
21576
21580
|
background-position: center;
|
|
21577
21581
|
justify-self: center;
|
|
21578
21582
|
|
|
21579
|
-
@media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.s}){
|
|
21580
|
-
|
|
21581
|
-
height: 100%;
|
|
21582
|
-
min-height: ${imageHeightMobile$1}px;
|
|
21583
|
+
@media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.s}) {
|
|
21584
|
+
min-height: ${imageHeightDesktop$1}px;
|
|
21583
21585
|
}
|
|
21584
|
-
@media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.m}){
|
|
21586
|
+
@media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.m}) {
|
|
21585
21587
|
flex: none;
|
|
21586
21588
|
height: ${imageHeightDesktop$1}px;
|
|
21587
21589
|
}
|
|
@@ -21665,22 +21667,20 @@ const PromoCallToAction = styled.p`
|
|
|
21665
21667
|
*/
|
|
21666
21668
|
var PromoBlock = function (_a) {
|
|
21667
21669
|
var promos = _a.promos;
|
|
21668
|
-
|
|
21669
|
-
|
|
21670
|
-
|
|
21671
|
-
React.createElement(
|
|
21672
|
-
|
|
21673
|
-
|
|
21674
|
-
|
|
21675
|
-
React.createElement(
|
|
21676
|
-
|
|
21677
|
-
|
|
21678
|
-
|
|
21679
|
-
|
|
21680
|
-
|
|
21681
|
-
|
|
21682
|
-
return React.createElement(React.Fragment, null);
|
|
21683
|
-
}
|
|
21670
|
+
return (React.createElement(React.Fragment, null, promos && promos.length > 0 && (React.createElement(PromoTilesContainer, { "data-testid": "PromoBlock" },
|
|
21671
|
+
React.createElement(Row$1, { isList: true, hasWrap: false },
|
|
21672
|
+
promos.map(function (promo, index) { return (React.createElement(Column, { isList: true, small: "full", medium: "one-half", large: "auto", key: promo.callToActionURL },
|
|
21673
|
+
React.createElement(PromoTile, { href: promo.callToActionURL },
|
|
21674
|
+
React.createElement(LazyImage, { src: promo.imageMedium, placeholder: promo.imageSmall, visibilitySensorProps: {
|
|
21675
|
+
partialVisibility: true,
|
|
21676
|
+
} }, function (src) { return (React.createElement(PromoImage, { background: src, role: "img", "aria-label": promo.imageAltText ? promo.imageAltText : '' })); }),
|
|
21677
|
+
React.createElement(PromoText, null,
|
|
21678
|
+
React.createElement(PromoHeadline, { level: 3, text: promo.title }),
|
|
21679
|
+
React.createElement(PromoContent, { dangerouslySetInnerHTML: {
|
|
21680
|
+
__html: sanitizeHtml_1(promo.content),
|
|
21681
|
+
} }),
|
|
21682
|
+
React.createElement(PromoCallToAction, null, promo.callToActionText))))); }),
|
|
21683
|
+
promos.length === 1 && React.createElement(Column, { small: "full", medium: "one-half", large: "one-half" }))))));
|
|
21684
21684
|
};
|
|
21685
21685
|
|
|
21686
21686
|
/**
|
|
@@ -22006,40 +22006,48 @@ var IconDownload$1 = function (_a) {
|
|
|
22006
22006
|
};
|
|
22007
22007
|
|
|
22008
22008
|
const handleContainerPadding = (noBackground, noPadding) => {
|
|
22009
|
-
|
|
22010
|
-
|
|
22011
|
-
|
|
22012
|
-
|
|
22013
|
-
|
|
22009
|
+
if (noPadding || noBackground) {
|
|
22010
|
+
return 0;
|
|
22011
|
+
} else {
|
|
22012
|
+
return '50px';
|
|
22013
|
+
}
|
|
22014
22014
|
};
|
|
22015
22015
|
|
|
22016
22016
|
const Container$w = styled.div`
|
|
22017
|
-
|
|
22018
|
-
|
|
22019
|
-
|
|
22020
|
-
|
|
22017
|
+
background: ${(props) =>
|
|
22018
|
+
props.noBackground
|
|
22019
|
+
? 'transparent'
|
|
22020
|
+
: props.theme.cardinal_name === 'north'
|
|
22021
|
+
? props.theme.theme_vars.colours.grey_light + '7a'
|
|
22022
|
+
: props.theme.theme_vars.colours.white};
|
|
22023
|
+
overflow: ${(props) => (props.noPadding ? 'hidden' : 'visible')};
|
|
22024
|
+
padding-bottom: ${({ noBackground, noPadding }) => handleContainerPadding(noBackground, noPadding)};
|
|
22021
22025
|
`;
|
|
22022
22026
|
|
|
22023
22027
|
const MaxWidth = styled.div`
|
|
22024
|
-
|
|
22025
|
-
|
|
22026
|
-
|
|
22027
|
-
|
|
22028
|
+
${(props) => props.theme.fontStyles}
|
|
22029
|
+
padding-right: ${(props) => props.theme.theme_vars.spacingSizes.medium};
|
|
22030
|
+
padding-left: ${(props) => props.theme.theme_vars.spacingSizes.medium};
|
|
22031
|
+
overflow: ${(props) => (props.overflowVisible ? 'visible' : 'hidden')};
|
|
22028
22032
|
|
|
22029
|
-
|
|
22030
|
-
|
|
22031
|
-
|
|
22032
|
-
|
|
22033
|
-
|
|
22034
|
-
|
|
22035
|
-
|
|
22036
|
-
}
|
|
22033
|
+
pre {
|
|
22034
|
+
font-family: monospace;
|
|
22035
|
+
white-space: pre;
|
|
22036
|
+
}
|
|
22037
|
+
@media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.m}) {
|
|
22038
|
+
margin-right: ${(props) => props.theme.theme_vars.spacingSizes.large};
|
|
22039
|
+
margin-left: ${(props) => props.theme.theme_vars.spacingSizes.large};
|
|
22040
|
+
padding-left: ${(props) => props.theme.theme_vars.spacingSizes.small};
|
|
22041
|
+
padding-right: ${(props) => props.theme.theme_vars.spacingSizes.small};
|
|
22042
|
+
}
|
|
22037
22043
|
|
|
22038
|
-
|
|
22039
|
-
|
|
22040
|
-
|
|
22041
|
-
|
|
22042
|
-
}
|
|
22044
|
+
@media screen and (min-width: calc(${(props) => props.theme.theme_vars.breakpoints.l} + 60px)) {
|
|
22045
|
+
margin-right: auto;
|
|
22046
|
+
margin-left: auto;
|
|
22047
|
+
padding-left: ${(props) => props.theme.theme_vars.spacingSizes.small};
|
|
22048
|
+
padding-right: ${(props) => props.theme.theme_vars.spacingSizes.small};
|
|
22049
|
+
max-width: ${(props) => props.theme.theme_vars.breakpoints.l};
|
|
22050
|
+
}
|
|
22043
22051
|
`;
|
|
22044
22052
|
|
|
22045
22053
|
/**
|
|
@@ -22725,14 +22733,18 @@ const FooterListItem = styled.li`
|
|
|
22725
22733
|
margin-bottom: 15px;
|
|
22726
22734
|
`;
|
|
22727
22735
|
|
|
22728
|
-
const SocialLinks = styled.
|
|
22729
|
-
margin
|
|
22730
|
-
|
|
22736
|
+
const SocialLinks = styled.ul`
|
|
22737
|
+
margin: 5px 0 15px 0;
|
|
22738
|
+
list-style: none;
|
|
22739
|
+
`;
|
|
22740
|
+
|
|
22741
|
+
const SocialLinkItem = styled.li`
|
|
22742
|
+
left: 0;
|
|
22743
|
+
display: inline-block;
|
|
22731
22744
|
`;
|
|
22732
22745
|
|
|
22733
22746
|
const SocialLinkSingle = styled.a`
|
|
22734
22747
|
display: inline-block;
|
|
22735
|
-
margin-right: 15px;
|
|
22736
22748
|
height: 36px;
|
|
22737
22749
|
|
|
22738
22750
|
&:hover {
|
|
@@ -22865,16 +22877,21 @@ var Footer = function (_a) {
|
|
|
22865
22877
|
footerLinksArray && (React.createElement(FooterList, null, footerLinksArray.map(function (link, i) { return (React.createElement(FooterListItem, { key: i },
|
|
22866
22878
|
React.createElement(FooterLink, { key: link.title, href: link.url, title: link.title }, link.title))); }))),
|
|
22867
22879
|
React.createElement(SocialLinks, null,
|
|
22868
|
-
themeContext.theme_vars.twitter_link && (React.createElement(
|
|
22869
|
-
React.createElement(
|
|
22870
|
-
|
|
22871
|
-
|
|
22872
|
-
|
|
22873
|
-
|
|
22874
|
-
themeContext.theme_vars.
|
|
22875
|
-
React.createElement(
|
|
22876
|
-
|
|
22877
|
-
|
|
22880
|
+
themeContext.theme_vars.twitter_link && (React.createElement(SocialLinkItem, null,
|
|
22881
|
+
React.createElement(SocialLinkSingle, { href: themeContext.theme_vars.twitter_link, title: "View our Twitter feed" },
|
|
22882
|
+
React.createElement(ServiceIcon$2, { colourFill: themeContext.theme_vars.colours.white })))),
|
|
22883
|
+
themeContext.theme_vars.facebook_link && (React.createElement(SocialLinkItem, null,
|
|
22884
|
+
React.createElement(SocialLinkSingle, { href: themeContext.theme_vars.facebook_link, title: "View our Facebook page" },
|
|
22885
|
+
React.createElement(ServiceIcon$3, { colourFill: themeContext.theme_vars.colours.white })))),
|
|
22886
|
+
themeContext.theme_vars.instagram_link && (React.createElement(SocialLinkItem, null,
|
|
22887
|
+
React.createElement(SocialLinkSingle, { href: themeContext.theme_vars.instagram_link, title: "View our Instagram feed" },
|
|
22888
|
+
React.createElement(ServiceIcon$4, { colourFill: themeContext.theme_vars.colours.white })))),
|
|
22889
|
+
themeContext.theme_vars.youtube_link && (React.createElement(SocialLinkItem, null,
|
|
22890
|
+
React.createElement(SocialLinkSingle, { href: themeContext.theme_vars.youtube_link, title: "View our YouTube channel" },
|
|
22891
|
+
React.createElement(ServiceIcon, { colourFill: themeContext.theme_vars.colours.white })))),
|
|
22892
|
+
themeContext.theme_vars.linkedin_link && (React.createElement(SocialLinkItem, null,
|
|
22893
|
+
React.createElement(SocialLinkSingle, { href: themeContext.theme_vars.linkedin_link, title: "View our LinkedIn page" },
|
|
22894
|
+
React.createElement(ServiceIcon$1, { colourFill: themeContext.theme_vars.colours.white }))))),
|
|
22878
22895
|
React.createElement(FooterCopy, null,
|
|
22879
22896
|
"\u00A9\u00A0",
|
|
22880
22897
|
themeContext.full_name,
|
|
@@ -23878,6 +23895,8 @@ const ArticleContainer$1 = styled.a`
|
|
|
23878
23895
|
text-decoration: none !important;
|
|
23879
23896
|
font-weight: normal !important;
|
|
23880
23897
|
margin-bottom: 15px;
|
|
23898
|
+
width: 100%;
|
|
23899
|
+
height: 100%;
|
|
23881
23900
|
|
|
23882
23901
|
&:hover {
|
|
23883
23902
|
border-bottom: 5px solid ${(props) => props.theme.theme_vars.colours.action_dark};
|
|
@@ -23916,45 +23935,10 @@ const ArticleContainer$1 = styled.a`
|
|
|
23916
23935
|
${(props) => props.theme.linkStylesActive};
|
|
23917
23936
|
}
|
|
23918
23937
|
}
|
|
23919
|
-
|
|
23920
|
-
@media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.s}) {
|
|
23921
|
-
display: -ms-flex;
|
|
23922
|
-
display: -webkit-flex;
|
|
23923
|
-
display: flex;
|
|
23924
|
-
width: 100%;
|
|
23925
|
-
}
|
|
23926
|
-
|
|
23927
|
-
@media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.m}) {
|
|
23928
|
-
width: 100%;
|
|
23929
|
-
margin-right: 30px;
|
|
23930
|
-
margin-bottom: 20px;
|
|
23931
|
-
display: block;
|
|
23932
|
-
flex: 1;
|
|
23933
|
-
max-width: 50%;
|
|
23934
|
-
min-width: 30%;
|
|
23935
|
-
|
|
23936
|
-
&:nth-of-type(2n) {
|
|
23937
|
-
margin-right: 30px;
|
|
23938
|
-
}
|
|
23939
|
-
&:nth-of-type(3n) {
|
|
23940
|
-
margin-right: 0;
|
|
23941
|
-
}
|
|
23942
|
-
&:last-of-type {
|
|
23943
|
-
margin-right: 0;
|
|
23944
|
-
}
|
|
23945
|
-
}
|
|
23946
23938
|
`;
|
|
23947
23939
|
|
|
23948
23940
|
const ArticleContent$1 = styled.div`
|
|
23949
23941
|
padding: 15px;
|
|
23950
|
-
height: calc(100% - ${imageHeightMobile + 30}px);
|
|
23951
|
-
|
|
23952
|
-
@media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.s}) {
|
|
23953
|
-
display: flex;
|
|
23954
|
-
flex-flow: row;
|
|
23955
|
-
flex-wrap: wrap;
|
|
23956
|
-
height: calc(100% - ${imageHeightDesktop + 30}px);
|
|
23957
|
-
}
|
|
23958
23942
|
`;
|
|
23959
23943
|
|
|
23960
23944
|
const ImageContainer$3 = styled.span`
|
|
@@ -24000,14 +23984,19 @@ var NewsArticleFeaturedBlock = function (_a) {
|
|
|
24000
23984
|
if (articles && articles.length > 0) {
|
|
24001
23985
|
return (React.createElement(React.Fragment, null,
|
|
24002
23986
|
!withoutTitle && React.createElement(Heading, { text: "News articles and press releases" }),
|
|
24003
|
-
React.createElement(Container$k, null,
|
|
24004
|
-
|
|
24005
|
-
|
|
24006
|
-
|
|
24007
|
-
|
|
24008
|
-
|
|
24009
|
-
|
|
24010
|
-
|
|
23987
|
+
React.createElement(Container$k, null,
|
|
23988
|
+
React.createElement(Row$1, { isList: true }, articles.map(function (article) { return (React.createElement(Column, { isList: true, small: "full", medium: "one-half", large: "one-third", key: article.id },
|
|
23989
|
+
React.createElement(ArticleContainer$1, { href: article.url },
|
|
23990
|
+
React.createElement(Row$1, null,
|
|
23991
|
+
article.image720x405 && (React.createElement(Column, { small: "full", medium: "full", large: "full", hasPadding: false },
|
|
23992
|
+
React.createElement(LazyImage, { src: article.image720x405, placeholder: article.image72x41, visibilitySensorProps: {
|
|
23993
|
+
partialVisibility: true,
|
|
23994
|
+
} }, function (src) { return (React.createElement(ImageContainer$3, { background: src, role: "img", "aria-label": article.imageAltText ? article.imageAltText : '' })); }))),
|
|
23995
|
+
React.createElement(Column, { small: "full", medium: "full", large: "full" },
|
|
23996
|
+
React.createElement(ArticleContent$1, null,
|
|
23997
|
+
React.createElement(Title$5, { className: "article_title" }, article.title),
|
|
23998
|
+
React.createElement(DateContainer$1, null,
|
|
23999
|
+
React.createElement(NewsArticleDate, { text: article.date.toString(), format: "X" })))))))); }))),
|
|
24011
24000
|
viewAllLink && (React.createElement(ViewAllContainer, null,
|
|
24012
24001
|
React.createElement(Button$2, { text: "View all news", primary: false, url: viewAllLink, size: "large" })))));
|
|
24013
24002
|
}
|
|
@@ -24263,7 +24252,6 @@ var NewsArticleImage = function (_a) {
|
|
|
24263
24252
|
|
|
24264
24253
|
const Container$h = styled.div`
|
|
24265
24254
|
${(props) => props.theme.fontStyles};
|
|
24266
|
-
padding: 15px 0;
|
|
24267
24255
|
`;
|
|
24268
24256
|
|
|
24269
24257
|
const Title$4 = styled.div`
|
|
@@ -24321,7 +24309,7 @@ const ArticleContainer = styled.a`
|
|
|
24321
24309
|
}
|
|
24322
24310
|
}
|
|
24323
24311
|
|
|
24324
|
-
margin-bottom:
|
|
24312
|
+
margin-bottom: ${(props) => props.theme.theme_vars.spacingSizes.medium};
|
|
24325
24313
|
|
|
24326
24314
|
@media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.s}) {
|
|
24327
24315
|
display: flex;
|
|
@@ -24383,17 +24371,19 @@ var NewsArticleList = function (_a) {
|
|
|
24383
24371
|
var results = _a.results;
|
|
24384
24372
|
var extractLength = 140;
|
|
24385
24373
|
if (results && results.length > 0) {
|
|
24386
|
-
return (React.createElement(Container$h, { "data-testid": "NewsArticleList" },
|
|
24387
|
-
|
|
24388
|
-
|
|
24389
|
-
|
|
24390
|
-
|
|
24391
|
-
|
|
24392
|
-
|
|
24393
|
-
|
|
24394
|
-
|
|
24395
|
-
|
|
24396
|
-
|
|
24374
|
+
return (React.createElement(Container$h, { "data-testid": "NewsArticleList" },
|
|
24375
|
+
React.createElement(Row$1, { isList: true }, results.map(function (article) { return (React.createElement(Column, { isList: true, small: "full", medium: "full", large: "full", key: article.id },
|
|
24376
|
+
React.createElement(ArticleContainer, { href: article.url, title: article.title },
|
|
24377
|
+
article.image720x405 && (React.createElement(LazyImage, { src: article.image720x405, placeholder: article.image72x41, visibilitySensorProps: {
|
|
24378
|
+
partialVisibility: true,
|
|
24379
|
+
} }, function (src) { return (React.createElement(ImageContainer$1, { className: "news-article-list__image", background: src, role: "img", "aria-label": article.imageAltText ? article.imageAltText : 'News article' })); })),
|
|
24380
|
+
React.createElement(ArticleContent, { withImage: article.image720x405 ? true : false },
|
|
24381
|
+
React.createElement(Title$4, { className: "news-article-list__title" }, article.title),
|
|
24382
|
+
article.excerpt.length > extractLength
|
|
24383
|
+
? article.excerpt.substr(0, extractLength - 1).trim() + String.fromCharCode(8230)
|
|
24384
|
+
: article.excerpt,
|
|
24385
|
+
React.createElement(DateContainer, null,
|
|
24386
|
+
React.createElement(NewsArticleDate, { text: article.date.toString(), format: "X" })))))); }))));
|
|
24397
24387
|
}
|
|
24398
24388
|
else {
|
|
24399
24389
|
return (React.createElement(Container$h, { "data-testid": "NewsArticleList" },
|
|
@@ -24889,16 +24879,16 @@ var PhaseBanner = function (_a) {
|
|
|
24889
24879
|
};
|
|
24890
24880
|
|
|
24891
24881
|
const Container$9 = styled.div`
|
|
24892
|
-
${props => props.theme.fontStyles};
|
|
24882
|
+
${(props) => props.theme.fontStyles};
|
|
24893
24883
|
`;
|
|
24894
24884
|
|
|
24895
24885
|
const ResultInfo = styled.div`
|
|
24896
24886
|
font-weight: bold;
|
|
24897
|
-
margin: ${props => props.theme.theme_vars.spacingSizes.large} 0;
|
|
24887
|
+
margin: ${(props) => props.theme.theme_vars.spacingSizes.large} 0;
|
|
24898
24888
|
`;
|
|
24899
24889
|
|
|
24900
24890
|
const Result = styled.div`
|
|
24901
|
-
margin-bottom: ${props => props.theme.theme_vars.spacingSizes.x_large};
|
|
24891
|
+
margin-bottom: ${(props) => props.theme.theme_vars.spacingSizes.x_large};
|
|
24902
24892
|
|
|
24903
24893
|
&:first-of-type {
|
|
24904
24894
|
margin-top: 0;
|
|
@@ -24906,7 +24896,7 @@ const Result = styled.div`
|
|
|
24906
24896
|
`;
|
|
24907
24897
|
|
|
24908
24898
|
const Title$3 = styled.a`
|
|
24909
|
-
${props => props.theme.linkStyles};
|
|
24899
|
+
${(props) => props.theme.linkStyles};
|
|
24910
24900
|
font-size: 1.2em;
|
|
24911
24901
|
display: block;
|
|
24912
24902
|
margin-bottom: 5px;
|
|
@@ -24916,10 +24906,13 @@ const ServiceArea = styled.p`
|
|
|
24916
24906
|
font-size: 14px;
|
|
24917
24907
|
font-size: 0.8rem;
|
|
24918
24908
|
line-height: 1.3;
|
|
24919
|
-
color: ${props =>
|
|
24909
|
+
color: ${(props) =>
|
|
24910
|
+
props.theme.cardinal_name === 'west'
|
|
24911
|
+
? props.theme.theme_vars.colours.grey_darke
|
|
24912
|
+
: props.theme.theme_vars.colours.grey_darkest};
|
|
24920
24913
|
margin-bottom: 3px !important;
|
|
24921
24914
|
|
|
24922
|
-
@media screen and (min-width: ${props => props.theme.theme_vars.breakpoints.s}){
|
|
24915
|
+
@media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.s}) {
|
|
24923
24916
|
font-size: 16px;
|
|
24924
24917
|
font-size: 1rem;
|
|
24925
24918
|
line-height: 1.4;
|
|
@@ -24927,7 +24920,7 @@ const ServiceArea = styled.p`
|
|
|
24927
24920
|
`;
|
|
24928
24921
|
|
|
24929
24922
|
const Summary$2 = styled.p`
|
|
24930
|
-
margin-bottom: ${props => props.theme.theme_vars.spacingSizes.small};
|
|
24923
|
+
margin-bottom: ${(props) => props.theme.theme_vars.spacingSizes.small};
|
|
24931
24924
|
`;
|
|
24932
24925
|
|
|
24933
24926
|
const SignpostContainer = styled.div`
|
|
@@ -24950,8 +24943,7 @@ const SignpostContainer = styled.div`
|
|
|
24950
24943
|
}
|
|
24951
24944
|
}
|
|
24952
24945
|
|
|
24953
|
-
|
|
24954
|
-
@media screen and (min-width: ${props => props.theme.theme_vars.breakpoints.s}){
|
|
24946
|
+
@media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.s}) {
|
|
24955
24947
|
font-size: 16px;
|
|
24956
24948
|
font-size: 1rem;
|
|
24957
24949
|
line-height: 1.4;
|
|
@@ -25084,54 +25076,25 @@ const SectionTitle$1 = styled(Heading)`
|
|
|
25084
25076
|
: props.theme.theme_vars.colours.grey_light};
|
|
25085
25077
|
padding: 10px 15px;
|
|
25086
25078
|
width: 100%;
|
|
25087
|
-
margin-left: -15px;
|
|
25088
25079
|
margin-bottom: 15px;
|
|
25089
25080
|
max-width: none !important;
|
|
25090
25081
|
border-radius: ${(props) => props.theme.theme_vars.border_radius};
|
|
25091
25082
|
|
|
25092
25083
|
@media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.s}) {
|
|
25093
|
-
width:
|
|
25084
|
+
width: 100%;
|
|
25094
25085
|
margin-left: 0;
|
|
25095
25086
|
margin-bottom: 25px;
|
|
25096
25087
|
}
|
|
25097
25088
|
`;
|
|
25098
25089
|
|
|
25099
|
-
const LinksList$1 = styled.div`
|
|
25100
|
-
display: flex;
|
|
25101
|
-
-webkit-flex-direction: row;
|
|
25102
|
-
-moz-flex-direction: row;
|
|
25103
|
-
-ms-flex-direction: row;
|
|
25104
|
-
flex-direction: row;
|
|
25105
|
-
flex-wrap: wrap;
|
|
25106
|
-
justify-content: space-between;
|
|
25107
|
-
`;
|
|
25108
|
-
|
|
25109
|
-
const PagelinkBlank$1 = styled.div`
|
|
25110
|
-
display: none;
|
|
25111
|
-
|
|
25112
|
-
@media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.m}) {
|
|
25113
|
-
display: block;
|
|
25114
|
-
padding: 15px;
|
|
25115
|
-
width: calc(33.333% - 61px);
|
|
25116
|
-
margin-bottom: 31px;
|
|
25117
|
-
}
|
|
25118
|
-
`;
|
|
25119
|
-
|
|
25120
25090
|
const Pagelink = styled.a`
|
|
25121
25091
|
color: ${(props) => props.theme.theme_vars.colours.black};
|
|
25122
25092
|
text-decoration: none !important;
|
|
25123
25093
|
display: block;
|
|
25124
|
-
padding:
|
|
25094
|
+
padding: ${(props) => props.theme.theme_vars.spacingSizes.medium};
|
|
25125
25095
|
border-radius: ${(props) => props.theme.theme_vars.border_radius};
|
|
25126
25096
|
width: 100%;
|
|
25127
|
-
|
|
25128
|
-
@media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.s}) {
|
|
25129
|
-
width: calc(50% - 46px);
|
|
25130
|
-
margin-bottom: 31px;
|
|
25131
|
-
}
|
|
25132
|
-
@media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.m}) {
|
|
25133
|
-
width: calc(33.333% - 61px);
|
|
25134
|
-
}
|
|
25097
|
+
height: 100%;
|
|
25135
25098
|
|
|
25136
25099
|
&:hover,
|
|
25137
25100
|
&:focus {
|
|
@@ -25201,17 +25164,16 @@ var SectionLinks = function (_a) {
|
|
|
25201
25164
|
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;
|
|
25202
25165
|
return (React.createElement(Container$8, { id: sectionSlug, "data-testid": "SectionLinks" },
|
|
25203
25166
|
displayTitle ? React.createElement(SectionTitle$1, { text: sectionTitle }) : React.createElement("br", null),
|
|
25204
|
-
React.createElement(
|
|
25205
|
-
|
|
25206
|
-
|
|
25207
|
-
|
|
25167
|
+
React.createElement(Row$1, { isList: true }, pageLinksArray.map(function (link, i) {
|
|
25168
|
+
var _a;
|
|
25169
|
+
return (React.createElement(Column, { isList: true, small: "full", medium: "one-half", large: "one-third", key: i },
|
|
25170
|
+
React.createElement(Pagelink, { href: link.url, title: link.title },
|
|
25208
25171
|
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: {
|
|
25209
25172
|
partialVisibility: true,
|
|
25210
25173
|
} }, function (src) { return (React.createElement(ImageContainer, { image: src, role: "img", "aria-label": link.imageAltText })); })) : (React.createElement(ImageContainer, null)))),
|
|
25211
25174
|
React.createElement(Title$2, null, link.title),
|
|
25212
|
-
React.createElement(Summary$1, null, link.summary)));
|
|
25213
|
-
|
|
25214
|
-
pageLinksArray.length > 1 && (pageLinksArray.length + 1) % 3 === 0 && React.createElement(PagelinkBlank$1, null))));
|
|
25175
|
+
React.createElement(Summary$1, null, link.summary))));
|
|
25176
|
+
}))));
|
|
25215
25177
|
};
|
|
25216
25178
|
|
|
25217
25179
|
const Container$7 = styled.aside`
|
|
@@ -25564,7 +25526,8 @@ const QuickLinksInnerContainer = styled.div`
|
|
|
25564
25526
|
background: ${(props) => props.theme.theme_vars.colours.action_light};
|
|
25565
25527
|
border-top: ${(props) => props.theme.theme_vars.border_width_thin} solid
|
|
25566
25528
|
${(props) => props.theme.theme_vars.colours.action};
|
|
25567
|
-
padding: ${(props) => props.theme.theme_vars.spacingSizes.medium}
|
|
25529
|
+
padding: ${(props) => props.theme.theme_vars.spacingSizes.medium}
|
|
25530
|
+
${(props) => props.theme.theme_vars.spacingSizes.small};
|
|
25568
25531
|
box-shadow: 0px -4px 0px 0px ${(props) => props.theme.theme_vars.colours.action} inset;
|
|
25569
25532
|
-webkit-box-shadow: 0px -4px 0px 0px ${(props) => props.theme.theme_vars.colours.action} inset;
|
|
25570
25533
|
-moz-box-shadow: 0px -4px 0px 0px ${(props) => props.theme.theme_vars.colours.action} inset;
|
|
@@ -25622,7 +25585,7 @@ var ServiceLinksBoxed = function (_a) {
|
|
|
25622
25585
|
return (_a = refs.current[index]) !== null && _a !== void 0 ? _a : React.createRef();
|
|
25623
25586
|
});
|
|
25624
25587
|
return (React.createElement(Container$5, { "data-testid": "ServiceLinksBoxed" },
|
|
25625
|
-
React.createElement(Row, null, serviceLinksArray.map(function (serviceLink, index) {
|
|
25588
|
+
React.createElement(Row$1, null, serviceLinksArray.map(function (serviceLink, index) {
|
|
25626
25589
|
var _a;
|
|
25627
25590
|
return (React.createElement(Column, { small: "full", medium: "one-half", large: "one-third", key: index },
|
|
25628
25591
|
React.createElement(ServiceLink, { onClick: function () { return toggleActive(index); }, show: index === activeServiceLink, "aria-label": index === activeServiceLink ? 'Close ' + serviceLink.title : 'View ' + serviceLink.title },
|
|
@@ -25631,8 +25594,8 @@ var ServiceLinksBoxed = function (_a) {
|
|
|
25631
25594
|
React.createElement("span", { className: "serviceLinkChevron" })),
|
|
25632
25595
|
React.createElement(QuickLinksContainer, { show: index === activeServiceLink, ref: refs.current[index] },
|
|
25633
25596
|
React.createElement(QuickLinksInnerContainer, null,
|
|
25634
|
-
React.createElement(Row,
|
|
25635
|
-
_a.map(function (quickLink, quickLinkIndex) { return (React.createElement(Column, { small: "full", medium: "one-half", large: "one-third", key: quickLinkIndex },
|
|
25597
|
+
React.createElement(Row$1, { isList: true }, (_a = serviceLink.quickLinksArray) === null || _a === void 0 ? void 0 :
|
|
25598
|
+
_a.map(function (quickLink, quickLinkIndex) { return (React.createElement(Column, { isList: true, small: "full", medium: "one-half", large: "one-third", key: quickLinkIndex },
|
|
25636
25599
|
React.createElement(QuickLink, { href: quickLink.url }, quickLink.title))); }),
|
|
25637
25600
|
React.createElement(Column, { small: "full", medium: "one-half", large: "one-third" },
|
|
25638
25601
|
React.createElement(QuickLink, { href: serviceLink.url },
|
|
@@ -25668,7 +25631,7 @@ const Container$4 = styled.div`
|
|
|
25668
25631
|
|
|
25669
25632
|
@media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.s}) {
|
|
25670
25633
|
max-height: none;
|
|
25671
|
-
margin-top:
|
|
25634
|
+
margin-top: 15px;
|
|
25672
25635
|
}
|
|
25673
25636
|
`;
|
|
25674
25637
|
|