northants-design-system 0.2.21 → 0.2.22
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.d.ts +3 -1
- package/build/index.esm.js +759 -527
- package/build/index.esm.js.map +1 -1
- package/build/index.js +782 -548
- package/build/index.js.map +1 -1
- package/build/library/components/Card/Card.types.d.ts +8 -7
- package/build/library/slices/Image/Image.types.d.ts +4 -0
- package/package.json +1 -1
package/build/index.esm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { cloneElement, Component, useState, useContext, useEffect, useRef } from 'react';
|
|
2
|
-
import styled, { css, ThemeContext, ThemeProvider } from 'styled-components';
|
|
2
|
+
import styled, { css, ThemeContext, ThemeProvider, createGlobalStyle } from 'styled-components';
|
|
3
3
|
import require$$0$3 from 'tty';
|
|
4
4
|
import require$$2 from 'path';
|
|
5
5
|
import require$$1$3 from 'url';
|
|
@@ -5560,7 +5560,7 @@ var HeadingWithIcon = function (_a) {
|
|
|
5560
5560
|
React.createElement(Heading, { text: text, level: level })));
|
|
5561
5561
|
};
|
|
5562
5562
|
|
|
5563
|
-
const Container$
|
|
5563
|
+
const Container$T = styled.div`
|
|
5564
5564
|
${props => props.theme.fontStyles};
|
|
5565
5565
|
display: block;
|
|
5566
5566
|
border-top: 1px solid ${props => props.theme.theme_vars.colours.grey};
|
|
@@ -6319,7 +6319,7 @@ var Pagination = function (_a) {
|
|
|
6319
6319
|
handleParams(postTo, [{ key: 'page', value: pageNo }]);
|
|
6320
6320
|
};
|
|
6321
6321
|
if (numbers.length > 1) {
|
|
6322
|
-
return (React.createElement(Container$
|
|
6322
|
+
return (React.createElement(Container$T, { "data-testid": "Pagination", role: "navigation", "aria-label": "Pagination" },
|
|
6323
6323
|
currentPage !== 1 &&
|
|
6324
6324
|
React.createElement(Previous, { onClick: function () { return buttonClick(currentPage - 1); }, title: "Go back a page" }, "Previous"),
|
|
6325
6325
|
React.createElement(NumbersContainer, null, numbers.map(function (v, i) {
|
|
@@ -6334,7 +6334,7 @@ var Pagination = function (_a) {
|
|
|
6334
6334
|
return null;
|
|
6335
6335
|
};
|
|
6336
6336
|
|
|
6337
|
-
const Container$
|
|
6337
|
+
const Container$S = styled.div`
|
|
6338
6338
|
${props => props.theme.fontStyles};
|
|
6339
6339
|
margin-bottom: 30px;
|
|
6340
6340
|
`;
|
|
@@ -6508,7 +6508,7 @@ var CheckboxListFilter = function (_a) {
|
|
|
6508
6508
|
handleParams('news', [{ key: NewsArticleFilterFields.articleType.queryParamKey, value: articleTypes }], ["page"]);
|
|
6509
6509
|
};
|
|
6510
6510
|
var backupLabel = Math.random().toString(36).substring(7);
|
|
6511
|
-
return (React.createElement(Container$
|
|
6511
|
+
return (React.createElement(Container$S, { "data-testid": "CheckboxListFilter" },
|
|
6512
6512
|
React.createElement(Fieldset, { "aria-describedby": "waste-hint" },
|
|
6513
6513
|
React.createElement(Legend, { labelHidden: labelHidden }, label),
|
|
6514
6514
|
React.createElement(Hint, { id: "waste-hint", hintHidden: hintHidden }, hint),
|
|
@@ -6519,7 +6519,7 @@ var CheckboxListFilter = function (_a) {
|
|
|
6519
6519
|
})))));
|
|
6520
6520
|
};
|
|
6521
6521
|
|
|
6522
|
-
const Container$
|
|
6522
|
+
const Container$R = styled.div`
|
|
6523
6523
|
${props => props.theme.fontStyles};
|
|
6524
6524
|
`;
|
|
6525
6525
|
|
|
@@ -6564,7 +6564,7 @@ const Option = styled.option`
|
|
|
6564
6564
|
|
|
6565
6565
|
var DropDownSelect = function (_a) {
|
|
6566
6566
|
var id = _a.id, label = _a.label, options = _a.options, onChange = _a.onChange, selected = _a.selected, _b = _a.hideLabel, hideLabel = _b === void 0 ? false : _b;
|
|
6567
|
-
return (React.createElement(Container$
|
|
6567
|
+
return (React.createElement(Container$R, null,
|
|
6568
6568
|
React.createElement(Label$1, { htmlFor: id, hideLabel: hideLabel }, label),
|
|
6569
6569
|
React.createElement(Select, { id: id, name: id, onChange: onChange && onChange, defaultValue: selected && selected }, options.map(function (option, i) {
|
|
6570
6570
|
return React.createElement(Option, { key: i, value: option.value }, option.title);
|
|
@@ -6696,7 +6696,7 @@ var TextInput = function (_a) {
|
|
|
6696
6696
|
|
|
6697
6697
|
// Accordion
|
|
6698
6698
|
|
|
6699
|
-
const Container$
|
|
6699
|
+
const Container$Q = styled.div`
|
|
6700
6700
|
${(props) => props.theme.fontStyles}
|
|
6701
6701
|
margin-bottom: 20px;
|
|
6702
6702
|
border-bottom: 1px solid ${(props) => props.theme.theme_vars.colours.grey};
|
|
@@ -6978,7 +6978,7 @@ var Accordion = function (_a) {
|
|
|
6978
6978
|
setAccordionStates(newStatus);
|
|
6979
6979
|
};
|
|
6980
6980
|
var accordionId = "accordion".concat(uniqueID());
|
|
6981
|
-
return (React.createElement(Container$
|
|
6981
|
+
return (React.createElement(Container$Q, { "data-testid": "Accordion", id: accordionId },
|
|
6982
6982
|
showControls && sections.length > 1 && (React.createElement(AccordionControls, null,
|
|
6983
6983
|
React.createElement(OpenAllButton, { onClick: toggleAll, type: "button", "aria-expanded": !openAll },
|
|
6984
6984
|
openAll ? 'Open all' : 'Close all',
|
|
@@ -7029,7 +7029,7 @@ var BlockQuote = function (_a) {
|
|
|
7029
7029
|
citation && React.createElement(Citation, null, citation)));
|
|
7030
7030
|
};
|
|
7031
7031
|
|
|
7032
|
-
const Container$
|
|
7032
|
+
const Container$P = styled.div`
|
|
7033
7033
|
margin-bottom: 30px;
|
|
7034
7034
|
display: block;
|
|
7035
7035
|
|
|
@@ -7044,216 +7044,72 @@ const Container$N = styled.div`
|
|
|
7044
7044
|
*/
|
|
7045
7045
|
var CallToAction = function (_a) {
|
|
7046
7046
|
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"]);
|
|
7047
|
-
return (React.createElement(Container$
|
|
7047
|
+
return (React.createElement(Container$P, null,
|
|
7048
7048
|
React.createElement(Button$2, { primary: primary, size: "large", text: text, url: url, isExternal: isExternal, isDisabled: isDisabled })));
|
|
7049
7049
|
};
|
|
7050
7050
|
|
|
7051
|
-
const Container$
|
|
7052
|
-
margin: 25px 0;
|
|
7053
|
-
`;
|
|
7051
|
+
const Container$O = styled.div``;
|
|
7054
7052
|
|
|
7055
|
-
const
|
|
7056
|
-
|
|
7057
|
-
|
|
7058
|
-
|
|
7059
|
-
|
|
7060
|
-
|
|
7061
|
-
|
|
7062
|
-
|
|
7063
|
-
|
|
7064
|
-
width: 100%;
|
|
7065
|
-
position: absolute;
|
|
7066
|
-
left: 0;
|
|
7067
|
-
top: -15px;
|
|
7068
|
-
background: ${props => props.theme.theme_vars.colours.grey_dark}80;
|
|
7069
|
-
}
|
|
7070
|
-
}
|
|
7071
|
-
}
|
|
7053
|
+
const Container$N = styled.div`
|
|
7054
|
+
box-sizing: border-box;
|
|
7055
|
+
display: flex;
|
|
7056
|
+
flex-wrap: wrap;
|
|
7057
|
+
flex-direction: row;
|
|
7058
|
+
justify-content: start;
|
|
7059
|
+
align-items: stretch;
|
|
7060
|
+
margin: 0;
|
|
7061
|
+
border: ${(props) => (props.hasBorder ? `1px solid ${props.theme.theme_vars.colours.grey}` : 'none')};
|
|
7072
7062
|
`;
|
|
7073
|
-
const Link$3 = styled.a`
|
|
7074
|
-
margin-bottom: 15px;
|
|
7075
|
-
display: block;
|
|
7076
|
-
width: fit-content;
|
|
7077
|
-
position: relative;
|
|
7078
|
-
min-width: 300px;
|
|
7079
7063
|
|
|
7080
|
-
|
|
7081
|
-
|
|
7082
|
-
|
|
7083
|
-
|
|
7084
|
-
margin-top: 5px;
|
|
7085
|
-
g {
|
|
7086
|
-
fill: ${props => props.theme.theme_vars.colours.grey_dark};
|
|
7087
|
-
}
|
|
7088
|
-
}
|
|
7089
|
-
|
|
7090
|
-
&:hover {
|
|
7091
|
-
.file-title {
|
|
7092
|
-
color: ${props => props.theme.theme_vars.colours.action};
|
|
7093
|
-
}
|
|
7094
|
-
.file-details {
|
|
7095
|
-
transform: translate(3px, 0px);
|
|
7096
|
-
}
|
|
7097
|
-
svg {
|
|
7098
|
-
g {
|
|
7099
|
-
fill: ${props => props.theme.theme_vars.colours.action};
|
|
7100
|
-
}
|
|
7101
|
-
}
|
|
7102
|
-
}
|
|
7064
|
+
var Row = function (_a) {
|
|
7065
|
+
var _b = _a.hasBorder, hasBorder = _b === void 0 ? false : _b, children = _a.children;
|
|
7066
|
+
return (React.createElement(Container$N, { "data-testid": "Row", hasBorder: hasBorder }, children));
|
|
7067
|
+
};
|
|
7103
7068
|
|
|
7104
|
-
|
|
7105
|
-
|
|
7106
|
-
|
|
7107
|
-
|
|
7108
|
-
|
|
7109
|
-
|
|
7110
|
-
|
|
7111
|
-
|
|
7112
|
-
|
|
7113
|
-
|
|
7114
|
-
|
|
7115
|
-
transform: translateY(2px);
|
|
7116
|
-
box-shadow: 0px 0px 0px 3px ${props => props.theme.theme_vars.colours.focus}, 0px 1px 0px 3px ${props => props.theme.theme_vars.colours.black};
|
|
7117
|
-
}
|
|
7069
|
+
const Container$M = styled.div`
|
|
7070
|
+
display: flex;
|
|
7071
|
+
flex-direction: column;
|
|
7072
|
+
justify-content: flex-start;
|
|
7073
|
+
height: 100%;
|
|
7074
|
+
box-shadow: 1px 1px 5px 1px rgba(0, 0, 0, 0.2);
|
|
7075
|
+
border-radius: ${(props) => props.theme.theme_vars.border_radius};
|
|
7076
|
+
background-color: ${(props) =>
|
|
7077
|
+
props.theme.cardinal_name === 'west'
|
|
7078
|
+
? props.theme.theme_vars.colours.grey_light + '7a'
|
|
7079
|
+
: props.theme.theme_vars.colours.white};
|
|
7118
7080
|
`;
|
|
7119
7081
|
|
|
7120
|
-
const
|
|
7121
|
-
|
|
7122
|
-
|
|
7123
|
-
transition: transform 0.3s;
|
|
7124
|
-
`;
|
|
7125
|
-
const Title$7 = styled.span`
|
|
7126
|
-
display: block;
|
|
7127
|
-
color: ${props => props.theme.theme_vars.colours.action};
|
|
7128
|
-
font-weight: 700;
|
|
7129
|
-
|
|
7130
|
-
`;
|
|
7131
|
-
const Type = styled.span`
|
|
7132
|
-
color: ${props => props.theme.theme_vars.colours.black};
|
|
7133
|
-
margin-right: 5px;
|
|
7134
|
-
font-weight: 400 !important;
|
|
7135
|
-
font-size: ${props => props.theme.theme_vars.fontSizes.extra_small};
|
|
7136
|
-
`;
|
|
7137
|
-
const Size = styled.span`
|
|
7138
|
-
color: ${props => props.theme.theme_vars.colours.black};
|
|
7139
|
-
font-size: ${props => props.theme.theme_vars.fontSizes.extra_small};
|
|
7140
|
-
font-weight: 400 !important;
|
|
7082
|
+
const Content$3 = styled.div`
|
|
7083
|
+
padding: ${(props) => props.theme.theme_vars.spacingSizes.medium};
|
|
7084
|
+
flex-grow: 1;
|
|
7141
7085
|
`;
|
|
7142
7086
|
|
|
7143
|
-
|
|
7144
|
-
var colourFill = _a.colourFill;
|
|
7145
|
-
return (React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "30", height: "40", viewBox: "0 0 30 40" },
|
|
7146
|
-
React.createElement("g", { fill: "none", fillRule: "evenodd", stroke: "none", strokeWidth: "1" },
|
|
7147
|
-
React.createElement("g", { fill: colourFill, fillRule: "nonzero", transform: "translate(-80 -1189)" },
|
|
7148
|
-
React.createElement("g", { transform: "translate(80 1189)" },
|
|
7149
|
-
React.createElement("g", null,
|
|
7150
|
-
React.createElement("path", { d: "M16.875 18.443a.937.937 0 00-.938-.938h-1.874a.937.937 0 00-.938.938v6.563H9.306c-.836 0-1.254 1.014-.66 1.603l5.65 5.607a1 1 0 001.408 0l5.65-5.607c.593-.589.176-1.603-.661-1.603h-3.818v-6.563zM28.893 7.655l-6.554-6.553A3.75 3.75 0 0019.691 0H3.75A3.762 3.762 0 000 3.757v32.494A3.75 3.75 0 003.75 40h22.495C28.315 40 30 38.32 30 36.25V10.31c0-.991-.404-1.952-1.107-2.655zm-8.897-3.593l5.945 5.943h-5.945V4.062zM26.25 36.25H3.75V3.757h12.497v8.123a1.87 1.87 0 001.875 1.875h8.128V36.25z" })))))));
|
|
7151
|
-
};
|
|
7152
|
-
|
|
7153
|
-
/**
|
|
7154
|
-
* A styled file download link
|
|
7155
|
-
*/
|
|
7156
|
-
var FileDownload = function (_a) {
|
|
7157
|
-
var title = _a.title, type = _a.type, url = _a.url, size = _a.size, _b = _a.archived, archived = _b === void 0 ? false : _b; __rest(_a, ["title", "type", "url", "size", "archived"]);
|
|
7158
|
-
var _c = useState(false); _c[0]; var setIsHovered = _c[1];
|
|
7159
|
-
return (React.createElement(Outer, { "data-testid": "FileDownload" },
|
|
7160
|
-
React.createElement(Link$3, { href: url, download: true, onMouseEnter: function () { return setIsHovered(true); }, onMouseLeave: function () { return setIsHovered(false); }, rel: archived ? 'archived' : '' },
|
|
7161
|
-
React.createElement(IconDownload$2, null),
|
|
7162
|
-
React.createElement(FileDetails, { className: "file-details" },
|
|
7163
|
-
React.createElement(Title$7, { className: "file-title" }, title),
|
|
7164
|
-
React.createElement(Type, null, type == 'Microsoft Office - OOXML - Word Document'
|
|
7165
|
-
? 'Word Document'
|
|
7166
|
-
: type == 'Adobe Portable Document Format'
|
|
7167
|
-
? 'PDF'
|
|
7168
|
-
: type),
|
|
7169
|
-
React.createElement(Size, null, size)))));
|
|
7170
|
-
};
|
|
7171
|
-
|
|
7172
|
-
var DownloadableFiles = function (_a) {
|
|
7173
|
-
var files = _a.files;
|
|
7174
|
-
return (React.createElement(Container$M, { "data-testid": "DownloadableFiles" }, files.length > 0 ?
|
|
7175
|
-
files.map(function (file) { return React.createElement(FileDownload, __assign$2({ key: file.title }, file)); })
|
|
7176
|
-
:
|
|
7177
|
-
React.createElement("i", null, "No file to show")));
|
|
7178
|
-
};
|
|
7179
|
-
|
|
7180
|
-
const Divider$1 = styled.hr`
|
|
7181
|
-
display: block;
|
|
7087
|
+
const Image$4 = styled.img`
|
|
7182
7088
|
width: 100%;
|
|
7183
|
-
height: 1px;
|
|
7184
|
-
margin: ${props => props.theme.theme_vars.spacingSizes.medium} 0;
|
|
7185
|
-
background-color: ${props => props.theme.theme_vars.colours.grey_dark};
|
|
7186
|
-
border: none;
|
|
7187
7089
|
`;
|
|
7188
7090
|
|
|
7189
|
-
|
|
7190
|
-
|
|
7191
|
-
|
|
7192
|
-
/**
|
|
7193
|
-
* A div to workaround a bug in styled components that results in no or wrong class and
|
|
7194
|
-
* therefore styling being applied in some circumstances. Wrapped around anything affected.
|
|
7195
|
-
*/
|
|
7196
|
-
const ProtectiveContainer = styled.div``;
|
|
7197
|
-
|
|
7198
|
-
/**
|
|
7199
|
-
* Description text above map embed/link
|
|
7200
|
-
*/
|
|
7201
|
-
const MapDescription = styled.div`
|
|
7202
|
-
${(props) => props.theme.fontStyles};
|
|
7203
|
-
margin-bottom: 15px;
|
|
7204
|
-
|
|
7205
|
-
/* re-style bold and italic elements within the content */
|
|
7206
|
-
strong,
|
|
7207
|
-
b {
|
|
7208
|
-
font-weight: bold;
|
|
7209
|
-
}
|
|
7210
|
-
em,
|
|
7211
|
-
i {
|
|
7212
|
-
font-style: italic;
|
|
7213
|
-
}
|
|
7214
|
-
|
|
7215
|
-
/* style links within the content correctly though ideally there won't be any */
|
|
7216
|
-
a {
|
|
7217
|
-
${(props) => props.theme.linkStyles};
|
|
7218
|
-
}
|
|
7219
|
-
a:hover {
|
|
7220
|
-
${(props) => props.theme.linkStylesHover};
|
|
7221
|
-
}
|
|
7222
|
-
a:focus {
|
|
7223
|
-
${(props) => props.theme.linkStylesFocus};
|
|
7224
|
-
}
|
|
7225
|
-
a:active {
|
|
7226
|
-
${(props) => props.theme.linkStylesActive};
|
|
7091
|
+
const Header$1 = styled.div`
|
|
7092
|
+
h3 {
|
|
7093
|
+
margin-top: 0;
|
|
7227
7094
|
}
|
|
7228
7095
|
`;
|
|
7229
7096
|
|
|
7230
|
-
const
|
|
7231
|
-
|
|
7232
|
-
|
|
7233
|
-
|
|
7234
|
-
width: 100%;
|
|
7235
|
-
padding-top: 75%; /* 4:3 aspect ratio */
|
|
7236
|
-
@media screen and (orientation: portrait) {
|
|
7237
|
-
padding-top: 133%; /* 3:4 aspect ratio for phones */
|
|
7238
|
-
}
|
|
7239
|
-
margin-bottom: 15px;
|
|
7240
|
-
`;
|
|
7097
|
+
const Footer$1 = styled.div`
|
|
7098
|
+
margin-top: ${(props) => props.theme.theme_vars.spacingSizes.small};
|
|
7099
|
+
padding: ${(props) => props.theme.theme_vars.spacingSizes.small}
|
|
7100
|
+
${(props) => props.theme.theme_vars.spacingSizes.medium} ${(props) => props.theme.theme_vars.spacingSizes.medium};
|
|
7241
7101
|
|
|
7242
|
-
|
|
7243
|
-
|
|
7244
|
-
|
|
7245
|
-
|
|
7246
|
-
|
|
7247
|
-
right: 0;
|
|
7248
|
-
width: 100%;
|
|
7249
|
-
height: 100%;
|
|
7102
|
+
border-top: 1px solid
|
|
7103
|
+
${(props) =>
|
|
7104
|
+
props.theme.cardinal_name === 'north'
|
|
7105
|
+
? props.theme.theme_vars.colours.grey_light
|
|
7106
|
+
: props.theme.theme_vars.colours.white};
|
|
7250
7107
|
`;
|
|
7251
7108
|
|
|
7252
|
-
const
|
|
7109
|
+
const FooterLink$1 = styled.a`
|
|
7253
7110
|
${(props) => props.theme.fontStyles};
|
|
7254
7111
|
${(props) => props.theme.linkStyles};
|
|
7255
|
-
|
|
7256
|
-
display: block;
|
|
7112
|
+
display: flex;
|
|
7257
7113
|
|
|
7258
7114
|
&:hover {
|
|
7259
7115
|
${(props) => props.theme.linkStylesHover};
|
|
@@ -7268,105 +7124,6 @@ const MapLink = styled.a`
|
|
|
7268
7124
|
}
|
|
7269
7125
|
`;
|
|
7270
7126
|
|
|
7271
|
-
const AccessibleMapLink = styled(MapLink)`
|
|
7272
|
-
${(props) => props.theme.visuallyHidden};
|
|
7273
|
-
`;
|
|
7274
|
-
|
|
7275
|
-
const cookieName = 'fn-cookie';
|
|
7276
|
-
|
|
7277
|
-
const getCookie = (name) => {
|
|
7278
|
-
if (typeof document === 'undefined') return '';
|
|
7279
|
-
|
|
7280
|
-
let dc = document.cookie;
|
|
7281
|
-
let prefix = name + '=';
|
|
7282
|
-
|
|
7283
|
-
let begin = dc.indexOf(prefix);
|
|
7284
|
-
if (begin == -1) return null;
|
|
7285
|
-
var end = dc.indexOf(';', begin);
|
|
7286
|
-
if (end == -1) end = dc.length;
|
|
7287
|
-
|
|
7288
|
-
return decodeURI(dc.substring(begin + prefix.length, end));
|
|
7289
|
-
};
|
|
7290
|
-
|
|
7291
|
-
/**
|
|
7292
|
-
* Were cookies accepted by the user, or overridden by the passed param?
|
|
7293
|
-
*
|
|
7294
|
-
* @param cookiesAcceptedOverride boolean | null | undefined
|
|
7295
|
-
* @returns boolean
|
|
7296
|
-
*/
|
|
7297
|
-
const wereCookiesAccepted = (cookiesAcceptedOverride) => {
|
|
7298
|
-
if (typeof cookiesAcceptedOverride === 'boolean') {
|
|
7299
|
-
return cookiesAcceptedOverride;
|
|
7300
|
-
}
|
|
7301
|
-
|
|
7302
|
-
const myCookie = getCookie(cookieName);
|
|
7303
|
-
if (myCookie !== null) {
|
|
7304
|
-
return myCookie.includes('"cookiesAccepted":true');
|
|
7305
|
-
}
|
|
7306
|
-
|
|
7307
|
-
return false;
|
|
7308
|
-
};
|
|
7309
|
-
|
|
7310
|
-
const Container$L = styled.div`
|
|
7311
|
-
border: solid 4px;
|
|
7312
|
-
border-radius: ${(props) => props.theme.theme_vars.border_radius};
|
|
7313
|
-
border-color: ${(props) =>
|
|
7314
|
-
props.alertType === 'alert'
|
|
7315
|
-
? props.theme.theme_vars.colours.negative
|
|
7316
|
-
: props.alertType === 'warning'
|
|
7317
|
-
? props.theme.theme_vars.colours.focus
|
|
7318
|
-
: props.alertType === 'positive'
|
|
7319
|
-
? props.theme.theme_vars.colours.positive
|
|
7320
|
-
: props.alertType === 'london_bridge'
|
|
7321
|
-
? props.theme.theme_vars.colours.black
|
|
7322
|
-
: props.theme.theme_vars.colours.negative};
|
|
7323
|
-
|
|
7324
|
-
padding: 15px;
|
|
7325
|
-
margin-bottom: 25px;
|
|
7326
|
-
display: flex;
|
|
7327
|
-
justify-content: center;
|
|
7328
|
-
margin-top: ${(props) => (props.hasTopSpacing ? `25px` : `0`)};
|
|
7329
|
-
|
|
7330
|
-
@media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.s}) {
|
|
7331
|
-
padding: 20px;
|
|
7332
|
-
border-width: 6px;
|
|
7333
|
-
}
|
|
7334
|
-
`;
|
|
7335
|
-
|
|
7336
|
-
const InnerContainer$2 = styled.div`
|
|
7337
|
-
width: 100%;
|
|
7338
|
-
|
|
7339
|
-
p {
|
|
7340
|
-
margin-bottom: 15px;
|
|
7341
|
-
|
|
7342
|
-
&:last-of-type {
|
|
7343
|
-
margin-bottom: 0;
|
|
7344
|
-
}
|
|
7345
|
-
@media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.l}) {
|
|
7346
|
-
min-width: 100%;
|
|
7347
|
-
}
|
|
7348
|
-
}
|
|
7349
|
-
|
|
7350
|
-
h2 {
|
|
7351
|
-
margin-top: 0;
|
|
7352
|
-
@media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.l}) {
|
|
7353
|
-
min-width: 100%;
|
|
7354
|
-
}
|
|
7355
|
-
}
|
|
7356
|
-
`;
|
|
7357
|
-
|
|
7358
|
-
/**
|
|
7359
|
-
* A banner to be displayed at the top of a page before the main content
|
|
7360
|
-
* to draw the viewer's attention to an alert notice
|
|
7361
|
-
*/
|
|
7362
|
-
var AlertBannerService = function (_a) {
|
|
7363
|
-
var title = _a.title, _b = _a.hasTopSpacing, hasTopSpacing = _b === void 0 ? false : _b, _c = _a.alertType, alertType = _c === void 0 ? 'alert' : _c, children = _a.children;
|
|
7364
|
-
return (React.createElement(Container$L, { alertType: alertType, "data-testid": "AlertBannerService", hasTopSpacing: hasTopSpacing },
|
|
7365
|
-
React.createElement(InnerContainer$2, { "data-testid": "AlertBannerServiceInner" },
|
|
7366
|
-
(title === null || title === void 0 ? void 0 : title.trim()) && React.createElement(Heading, { text: title }),
|
|
7367
|
-
children)));
|
|
7368
|
-
};
|
|
7369
|
-
|
|
7370
7127
|
var lib$6 = {};
|
|
7371
7128
|
|
|
7372
7129
|
var Parser$3 = {};
|
|
@@ -17094,7 +16851,7 @@ function markDirtyUp(node) {
|
|
|
17094
16851
|
}
|
|
17095
16852
|
}
|
|
17096
16853
|
|
|
17097
|
-
class Container$
|
|
16854
|
+
class Container$L extends Node$1 {
|
|
17098
16855
|
push(child) {
|
|
17099
16856
|
child.parent = this;
|
|
17100
16857
|
this.proxyOf.nodes.push(child);
|
|
@@ -17387,7 +17144,7 @@ class Container$K extends Node$1 {
|
|
|
17387
17144
|
|
|
17388
17145
|
let processed = nodes.map(i => {
|
|
17389
17146
|
/* c8 ignore next */
|
|
17390
|
-
if (!i[my$1]) Container$
|
|
17147
|
+
if (!i[my$1]) Container$L.rebuild(i);
|
|
17391
17148
|
i = i.proxyOf;
|
|
17392
17149
|
if (i.parent) i.parent.removeChild(i);
|
|
17393
17150
|
if (i[isClean$1]) markDirtyUp(i);
|
|
@@ -17465,23 +17222,23 @@ class Container$K extends Node$1 {
|
|
|
17465
17222
|
}
|
|
17466
17223
|
}
|
|
17467
17224
|
|
|
17468
|
-
Container$
|
|
17225
|
+
Container$L.registerParse = dependant => {
|
|
17469
17226
|
parse$4 = dependant;
|
|
17470
17227
|
};
|
|
17471
17228
|
|
|
17472
|
-
Container$
|
|
17229
|
+
Container$L.registerRule = dependant => {
|
|
17473
17230
|
Rule$4 = dependant;
|
|
17474
17231
|
};
|
|
17475
17232
|
|
|
17476
|
-
Container$
|
|
17233
|
+
Container$L.registerAtRule = dependant => {
|
|
17477
17234
|
AtRule$4 = dependant;
|
|
17478
17235
|
};
|
|
17479
17236
|
|
|
17480
|
-
var container = Container$
|
|
17481
|
-
Container$
|
|
17237
|
+
var container = Container$L;
|
|
17238
|
+
Container$L.default = Container$L;
|
|
17482
17239
|
|
|
17483
17240
|
/* c8 ignore start */
|
|
17484
|
-
Container$
|
|
17241
|
+
Container$L.rebuild = node => {
|
|
17485
17242
|
if (node.type === 'atrule') {
|
|
17486
17243
|
Object.setPrototypeOf(node, AtRule$4.prototype);
|
|
17487
17244
|
} else if (node.type === 'rule') {
|
|
@@ -17496,16 +17253,16 @@ Container$K.rebuild = node => {
|
|
|
17496
17253
|
|
|
17497
17254
|
if (node.nodes) {
|
|
17498
17255
|
node.nodes.forEach(child => {
|
|
17499
|
-
Container$
|
|
17256
|
+
Container$L.rebuild(child);
|
|
17500
17257
|
});
|
|
17501
17258
|
}
|
|
17502
17259
|
};
|
|
17503
17260
|
|
|
17504
|
-
let Container$
|
|
17261
|
+
let Container$K = container;
|
|
17505
17262
|
|
|
17506
17263
|
let LazyResult$4, Processor$3;
|
|
17507
17264
|
|
|
17508
|
-
class Document$3 extends Container$
|
|
17265
|
+
class Document$3 extends Container$K {
|
|
17509
17266
|
constructor(defaults) {
|
|
17510
17267
|
// type needs to be passed to super, otherwise child roots won't be normalized correctly
|
|
17511
17268
|
super({ type: 'document', ...defaults });
|
|
@@ -17623,9 +17380,9 @@ class Result$4 {
|
|
|
17623
17380
|
var result = Result$4;
|
|
17624
17381
|
Result$4.default = Result$4;
|
|
17625
17382
|
|
|
17626
|
-
let Container$
|
|
17383
|
+
let Container$J = container;
|
|
17627
17384
|
|
|
17628
|
-
class AtRule$3 extends Container$
|
|
17385
|
+
class AtRule$3 extends Container$J {
|
|
17629
17386
|
constructor(defaults) {
|
|
17630
17387
|
super(defaults);
|
|
17631
17388
|
this.type = 'atrule';
|
|
@@ -17645,13 +17402,13 @@ class AtRule$3 extends Container$I {
|
|
|
17645
17402
|
var atRule = AtRule$3;
|
|
17646
17403
|
AtRule$3.default = AtRule$3;
|
|
17647
17404
|
|
|
17648
|
-
Container$
|
|
17405
|
+
Container$J.registerAtRule(AtRule$3);
|
|
17649
17406
|
|
|
17650
|
-
let Container$
|
|
17407
|
+
let Container$I = container;
|
|
17651
17408
|
|
|
17652
17409
|
let LazyResult$3, Processor$2;
|
|
17653
17410
|
|
|
17654
|
-
class Root$5 extends Container$
|
|
17411
|
+
class Root$5 extends Container$I {
|
|
17655
17412
|
constructor(defaults) {
|
|
17656
17413
|
super(defaults);
|
|
17657
17414
|
this.type = 'root';
|
|
@@ -17760,10 +17517,10 @@ let list$2 = {
|
|
|
17760
17517
|
var list_1 = list$2;
|
|
17761
17518
|
list$2.default = list$2;
|
|
17762
17519
|
|
|
17763
|
-
let Container$
|
|
17520
|
+
let Container$H = container;
|
|
17764
17521
|
let list$1 = list_1;
|
|
17765
17522
|
|
|
17766
|
-
class Rule$3 extends Container$
|
|
17523
|
+
class Rule$3 extends Container$H {
|
|
17767
17524
|
constructor(defaults) {
|
|
17768
17525
|
super(defaults);
|
|
17769
17526
|
this.type = 'rule';
|
|
@@ -17784,7 +17541,7 @@ class Rule$3 extends Container$G {
|
|
|
17784
17541
|
var rule = Rule$3;
|
|
17785
17542
|
Rule$3.default = Rule$3;
|
|
17786
17543
|
|
|
17787
|
-
Container$
|
|
17544
|
+
Container$H.registerRule(Rule$3);
|
|
17788
17545
|
|
|
17789
17546
|
let Declaration$2 = declaration;
|
|
17790
17547
|
let tokenizer = tokenize;
|
|
@@ -18388,7 +18145,7 @@ class Parser$1 {
|
|
|
18388
18145
|
|
|
18389
18146
|
var parser = Parser$1;
|
|
18390
18147
|
|
|
18391
|
-
let Container$
|
|
18148
|
+
let Container$G = container;
|
|
18392
18149
|
let Parser = parser;
|
|
18393
18150
|
let Input$3 = input;
|
|
18394
18151
|
|
|
@@ -18427,12 +18184,12 @@ function parse$3(css, opts) {
|
|
|
18427
18184
|
var parse_1 = parse$3;
|
|
18428
18185
|
parse$3.default = parse$3;
|
|
18429
18186
|
|
|
18430
|
-
Container$
|
|
18187
|
+
Container$G.registerParse(parse$3);
|
|
18431
18188
|
|
|
18432
18189
|
let { isClean, my } = symbols;
|
|
18433
18190
|
let MapGenerator$1 = mapGenerator;
|
|
18434
18191
|
let stringify$2 = stringify_1;
|
|
18435
|
-
let Container$
|
|
18192
|
+
let Container$F = container;
|
|
18436
18193
|
let Document$2 = document$1;
|
|
18437
18194
|
let warnOnce$1 = warnOnce$2;
|
|
18438
18195
|
let Result$3 = result;
|
|
@@ -18567,7 +18324,7 @@ class LazyResult$2 {
|
|
|
18567
18324
|
|
|
18568
18325
|
if (root && !root[my]) {
|
|
18569
18326
|
/* c8 ignore next 2 */
|
|
18570
|
-
Container$
|
|
18327
|
+
Container$F.rebuild(root);
|
|
18571
18328
|
}
|
|
18572
18329
|
}
|
|
18573
18330
|
|
|
@@ -19234,7 +18991,7 @@ fromJSON$1.default = fromJSON$1;
|
|
|
19234
18991
|
let CssSyntaxError = cssSyntaxError;
|
|
19235
18992
|
let Declaration = declaration;
|
|
19236
18993
|
let LazyResult = lazyResult;
|
|
19237
|
-
let Container$
|
|
18994
|
+
let Container$E = container;
|
|
19238
18995
|
let Processor = processor;
|
|
19239
18996
|
let stringify = stringify_1;
|
|
19240
18997
|
let fromJSON = fromJSON_1;
|
|
@@ -19314,7 +19071,7 @@ postcss.document = defaults => new Document(defaults);
|
|
|
19314
19071
|
|
|
19315
19072
|
postcss.CssSyntaxError = CssSyntaxError;
|
|
19316
19073
|
postcss.Declaration = Declaration;
|
|
19317
|
-
postcss.Container = Container$
|
|
19074
|
+
postcss.Container = Container$E;
|
|
19318
19075
|
postcss.Processor = Processor;
|
|
19319
19076
|
postcss.Document = Document;
|
|
19320
19077
|
postcss.Comment = Comment;
|
|
@@ -20148,6 +19905,407 @@ sanitizeHtml.simpleTransform = function(newTagName, newAttribs, merge) {
|
|
|
20148
19905
|
};
|
|
20149
19906
|
};
|
|
20150
19907
|
|
|
19908
|
+
/**
|
|
19909
|
+
* A card component with header, footer and content
|
|
19910
|
+
*/
|
|
19911
|
+
var Card = function (_a) {
|
|
19912
|
+
var header = _a.header, content = _a.content, footerLink = _a.footerLink, imageLarge = _a.imageLarge, imageSmall = _a.imageSmall, imageAltText = _a.imageAltText;
|
|
19913
|
+
var showContent = content || header;
|
|
19914
|
+
return (React.createElement(Container$M, { "data-testid": "Card" },
|
|
19915
|
+
imageLarge && imageSmall && (React.createElement(Image$4, { src: imageLarge, alt: imageAltText, srcSet: "".concat(imageSmall, " 400w, ").concat(imageLarge, " 800w"), sizes: "(max-width: 550px) 400px, 800px", loading: "lazy" })),
|
|
19916
|
+
showContent && (React.createElement(Content$3, null,
|
|
19917
|
+
header && (React.createElement(Header$1, null,
|
|
19918
|
+
React.createElement(Heading, { text: header, level: 3 }))),
|
|
19919
|
+
React.createElement("div", { dangerouslySetInnerHTML: { __html: sanitizeHtml_1(content) } }))),
|
|
19920
|
+
footerLink && (React.createElement(Footer$1, null,
|
|
19921
|
+
React.createElement(FooterLink$1, { href: footerLink.url }, footerLink.title)))));
|
|
19922
|
+
};
|
|
19923
|
+
|
|
19924
|
+
const calculateWidth = (size) => {
|
|
19925
|
+
switch (size) {
|
|
19926
|
+
case 'full':
|
|
19927
|
+
return css`
|
|
19928
|
+
width: 100%;
|
|
19929
|
+
`;
|
|
19930
|
+
case 'one-half':
|
|
19931
|
+
return css`
|
|
19932
|
+
width: 50%;
|
|
19933
|
+
`;
|
|
19934
|
+
case 'one-third':
|
|
19935
|
+
return css`
|
|
19936
|
+
width: 33.333%;
|
|
19937
|
+
`;
|
|
19938
|
+
case 'two-thirds':
|
|
19939
|
+
return css`
|
|
19940
|
+
width: 66.666%;
|
|
19941
|
+
`;
|
|
19942
|
+
case 'one-quarter':
|
|
19943
|
+
return css`
|
|
19944
|
+
width: 25%;
|
|
19945
|
+
`;
|
|
19946
|
+
case 'three-quarters':
|
|
19947
|
+
return css`
|
|
19948
|
+
width: 75%;
|
|
19949
|
+
`;
|
|
19950
|
+
}
|
|
19951
|
+
};
|
|
19952
|
+
|
|
19953
|
+
const widths = (props) => {
|
|
19954
|
+
return css`
|
|
19955
|
+
${calculateWidth(props.small)};
|
|
19956
|
+
|
|
19957
|
+
@media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.m}) {
|
|
19958
|
+
${calculateWidth(props.medium)};
|
|
19959
|
+
}
|
|
19960
|
+
|
|
19961
|
+
@media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.l}) {
|
|
19962
|
+
${calculateWidth(props.large)};
|
|
19963
|
+
}
|
|
19964
|
+
`;
|
|
19965
|
+
};
|
|
19966
|
+
|
|
19967
|
+
const Container$D = styled.div`
|
|
19968
|
+
box-sizing: border-box;
|
|
19969
|
+
display: block;
|
|
19970
|
+
padding: ${(props) => (props.hasPadding ? props.theme.theme_vars.spacingSizes.small : `0`)};
|
|
19971
|
+
border: ${(props) => (props.hasBorder ? `1px solid ${props.theme.theme_vars.colours.negative}` : 'none')};
|
|
19972
|
+
${widths};
|
|
19973
|
+
`;
|
|
19974
|
+
|
|
19975
|
+
var Column = function (_a) {
|
|
19976
|
+
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;
|
|
19977
|
+
return (React.createElement(Container$D, { "data-testid": "Column", small: small, medium: medium, large: large, hasPadding: hasPadding, hasBorder: hasBorder }, children));
|
|
19978
|
+
};
|
|
19979
|
+
|
|
19980
|
+
/**
|
|
19981
|
+
* Multiple cards in a responsive grid
|
|
19982
|
+
*/
|
|
19983
|
+
var Cards = function (_a) {
|
|
19984
|
+
var cards = _a.cards;
|
|
19985
|
+
return (React.createElement(Container$O, { "data-testid": "Cards" },
|
|
19986
|
+
React.createElement(Row, null, cards.map(function (card, index) { return (React.createElement(Column, { small: "full", medium: "one-half", large: "one-third", key: index },
|
|
19987
|
+
React.createElement(Card, __assign$2({}, card)))); }))));
|
|
19988
|
+
};
|
|
19989
|
+
|
|
19990
|
+
const Container$C = styled.div`
|
|
19991
|
+
margin: 25px 0;
|
|
19992
|
+
`;
|
|
19993
|
+
|
|
19994
|
+
const Outer = styled.div`
|
|
19995
|
+
${props => props.theme.fontStyles}
|
|
19996
|
+
max-width: 725px;
|
|
19997
|
+
&:not(:first-child) {
|
|
19998
|
+
a {
|
|
19999
|
+
margin-top: 30px;
|
|
20000
|
+
&:before {
|
|
20001
|
+
content: "";
|
|
20002
|
+
height: 1px;
|
|
20003
|
+
width: 100%;
|
|
20004
|
+
position: absolute;
|
|
20005
|
+
left: 0;
|
|
20006
|
+
top: -15px;
|
|
20007
|
+
background: ${props => props.theme.theme_vars.colours.grey_dark}80;
|
|
20008
|
+
}
|
|
20009
|
+
}
|
|
20010
|
+
}
|
|
20011
|
+
`;
|
|
20012
|
+
const Link$3 = styled.a`
|
|
20013
|
+
margin-bottom: 15px;
|
|
20014
|
+
display: block;
|
|
20015
|
+
width: fit-content;
|
|
20016
|
+
position: relative;
|
|
20017
|
+
min-width: 300px;
|
|
20018
|
+
|
|
20019
|
+
svg {
|
|
20020
|
+
margin-right: 10px;
|
|
20021
|
+
vertical-align: top;
|
|
20022
|
+
margin-left: 5px;
|
|
20023
|
+
margin-top: 5px;
|
|
20024
|
+
g {
|
|
20025
|
+
fill: ${props => props.theme.theme_vars.colours.grey_dark};
|
|
20026
|
+
}
|
|
20027
|
+
}
|
|
20028
|
+
|
|
20029
|
+
&:hover {
|
|
20030
|
+
.file-title {
|
|
20031
|
+
color: ${props => props.theme.theme_vars.colours.action};
|
|
20032
|
+
}
|
|
20033
|
+
.file-details {
|
|
20034
|
+
transform: translate(3px, 0px);
|
|
20035
|
+
}
|
|
20036
|
+
svg {
|
|
20037
|
+
g {
|
|
20038
|
+
fill: ${props => props.theme.theme_vars.colours.action};
|
|
20039
|
+
}
|
|
20040
|
+
}
|
|
20041
|
+
}
|
|
20042
|
+
|
|
20043
|
+
&:focus {
|
|
20044
|
+
outline: none;
|
|
20045
|
+
background: ${props => props.theme.theme_vars.colours.focus};
|
|
20046
|
+
box-shadow: 0px 0px 0px 3px ${props => props.theme.theme_vars.colours.focus}, 0px 3px 0px 3px ${props => props.theme.theme_vars.colours.black};
|
|
20047
|
+
svg {
|
|
20048
|
+
g {
|
|
20049
|
+
fill: ${props => props.theme.theme_vars.colours.black};
|
|
20050
|
+
}
|
|
20051
|
+
}
|
|
20052
|
+
}
|
|
20053
|
+
&:active {
|
|
20054
|
+
transform: translateY(2px);
|
|
20055
|
+
box-shadow: 0px 0px 0px 3px ${props => props.theme.theme_vars.colours.focus}, 0px 1px 0px 3px ${props => props.theme.theme_vars.colours.black};
|
|
20056
|
+
}
|
|
20057
|
+
`;
|
|
20058
|
+
|
|
20059
|
+
const FileDetails= styled.div`
|
|
20060
|
+
display: inline-block;
|
|
20061
|
+
max-width: calc(100% - 45px);
|
|
20062
|
+
transition: transform 0.3s;
|
|
20063
|
+
`;
|
|
20064
|
+
const Title$7 = styled.span`
|
|
20065
|
+
display: block;
|
|
20066
|
+
color: ${props => props.theme.theme_vars.colours.action};
|
|
20067
|
+
font-weight: 700;
|
|
20068
|
+
|
|
20069
|
+
`;
|
|
20070
|
+
const Type = styled.span`
|
|
20071
|
+
color: ${props => props.theme.theme_vars.colours.black};
|
|
20072
|
+
margin-right: 5px;
|
|
20073
|
+
font-weight: 400 !important;
|
|
20074
|
+
font-size: ${props => props.theme.theme_vars.fontSizes.extra_small};
|
|
20075
|
+
`;
|
|
20076
|
+
const Size = styled.span`
|
|
20077
|
+
color: ${props => props.theme.theme_vars.colours.black};
|
|
20078
|
+
font-size: ${props => props.theme.theme_vars.fontSizes.extra_small};
|
|
20079
|
+
font-weight: 400 !important;
|
|
20080
|
+
`;
|
|
20081
|
+
|
|
20082
|
+
var IconDownload$2 = function (_a) {
|
|
20083
|
+
var colourFill = _a.colourFill;
|
|
20084
|
+
return (React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "30", height: "40", viewBox: "0 0 30 40" },
|
|
20085
|
+
React.createElement("g", { fill: "none", fillRule: "evenodd", stroke: "none", strokeWidth: "1" },
|
|
20086
|
+
React.createElement("g", { fill: colourFill, fillRule: "nonzero", transform: "translate(-80 -1189)" },
|
|
20087
|
+
React.createElement("g", { transform: "translate(80 1189)" },
|
|
20088
|
+
React.createElement("g", null,
|
|
20089
|
+
React.createElement("path", { d: "M16.875 18.443a.937.937 0 00-.938-.938h-1.874a.937.937 0 00-.938.938v6.563H9.306c-.836 0-1.254 1.014-.66 1.603l5.65 5.607a1 1 0 001.408 0l5.65-5.607c.593-.589.176-1.603-.661-1.603h-3.818v-6.563zM28.893 7.655l-6.554-6.553A3.75 3.75 0 0019.691 0H3.75A3.762 3.762 0 000 3.757v32.494A3.75 3.75 0 003.75 40h22.495C28.315 40 30 38.32 30 36.25V10.31c0-.991-.404-1.952-1.107-2.655zm-8.897-3.593l5.945 5.943h-5.945V4.062zM26.25 36.25H3.75V3.757h12.497v8.123a1.87 1.87 0 001.875 1.875h8.128V36.25z" })))))));
|
|
20090
|
+
};
|
|
20091
|
+
|
|
20092
|
+
/**
|
|
20093
|
+
* A styled file download link
|
|
20094
|
+
*/
|
|
20095
|
+
var FileDownload = function (_a) {
|
|
20096
|
+
var title = _a.title, type = _a.type, url = _a.url, size = _a.size, _b = _a.archived, archived = _b === void 0 ? false : _b; __rest(_a, ["title", "type", "url", "size", "archived"]);
|
|
20097
|
+
var _c = useState(false); _c[0]; var setIsHovered = _c[1];
|
|
20098
|
+
return (React.createElement(Outer, { "data-testid": "FileDownload" },
|
|
20099
|
+
React.createElement(Link$3, { href: url, download: true, onMouseEnter: function () { return setIsHovered(true); }, onMouseLeave: function () { return setIsHovered(false); }, rel: archived ? 'archived' : '' },
|
|
20100
|
+
React.createElement(IconDownload$2, null),
|
|
20101
|
+
React.createElement(FileDetails, { className: "file-details" },
|
|
20102
|
+
React.createElement(Title$7, { className: "file-title" }, title),
|
|
20103
|
+
React.createElement(Type, null, type == 'Microsoft Office - OOXML - Word Document'
|
|
20104
|
+
? 'Word Document'
|
|
20105
|
+
: type == 'Adobe Portable Document Format'
|
|
20106
|
+
? 'PDF'
|
|
20107
|
+
: type),
|
|
20108
|
+
React.createElement(Size, null, size)))));
|
|
20109
|
+
};
|
|
20110
|
+
|
|
20111
|
+
var DownloadableFiles = function (_a) {
|
|
20112
|
+
var files = _a.files;
|
|
20113
|
+
return (React.createElement(Container$C, { "data-testid": "DownloadableFiles" }, files.length > 0 ?
|
|
20114
|
+
files.map(function (file) { return React.createElement(FileDownload, __assign$2({ key: file.title }, file)); })
|
|
20115
|
+
:
|
|
20116
|
+
React.createElement("i", null, "No file to show")));
|
|
20117
|
+
};
|
|
20118
|
+
|
|
20119
|
+
const Divider$1 = styled.hr`
|
|
20120
|
+
display: block;
|
|
20121
|
+
width: 100%;
|
|
20122
|
+
height: 1px;
|
|
20123
|
+
margin: ${props => props.theme.theme_vars.spacingSizes.medium} 0;
|
|
20124
|
+
background-color: ${props => props.theme.theme_vars.colours.grey_dark};
|
|
20125
|
+
border: none;
|
|
20126
|
+
`;
|
|
20127
|
+
|
|
20128
|
+
// @TODO this needs to fit within the content border
|
|
20129
|
+
var Divider = function () { return (React.createElement(Divider$1, { "data-testid": "Divider" })); };
|
|
20130
|
+
|
|
20131
|
+
/**
|
|
20132
|
+
* A div to workaround a bug in styled components that results in no or wrong class and
|
|
20133
|
+
* therefore styling being applied in some circumstances. Wrapped around anything affected.
|
|
20134
|
+
*/
|
|
20135
|
+
const ProtectiveContainer = styled.div``;
|
|
20136
|
+
|
|
20137
|
+
/**
|
|
20138
|
+
* Description text above map embed/link
|
|
20139
|
+
*/
|
|
20140
|
+
const MapDescription = styled.div`
|
|
20141
|
+
${(props) => props.theme.fontStyles};
|
|
20142
|
+
margin-bottom: 15px;
|
|
20143
|
+
|
|
20144
|
+
/* re-style bold and italic elements within the content */
|
|
20145
|
+
strong,
|
|
20146
|
+
b {
|
|
20147
|
+
font-weight: bold;
|
|
20148
|
+
}
|
|
20149
|
+
em,
|
|
20150
|
+
i {
|
|
20151
|
+
font-style: italic;
|
|
20152
|
+
}
|
|
20153
|
+
|
|
20154
|
+
/* style links within the content correctly though ideally there won't be any */
|
|
20155
|
+
a {
|
|
20156
|
+
${(props) => props.theme.linkStyles};
|
|
20157
|
+
}
|
|
20158
|
+
a:hover {
|
|
20159
|
+
${(props) => props.theme.linkStylesHover};
|
|
20160
|
+
}
|
|
20161
|
+
a:focus {
|
|
20162
|
+
${(props) => props.theme.linkStylesFocus};
|
|
20163
|
+
}
|
|
20164
|
+
a:active {
|
|
20165
|
+
${(props) => props.theme.linkStylesActive};
|
|
20166
|
+
}
|
|
20167
|
+
`;
|
|
20168
|
+
|
|
20169
|
+
const MapEmbed = styled.figure`
|
|
20170
|
+
display: block;
|
|
20171
|
+
position: relative;
|
|
20172
|
+
overflow: hidden;
|
|
20173
|
+
width: 100%;
|
|
20174
|
+
padding-top: 75%; /* 4:3 aspect ratio */
|
|
20175
|
+
@media screen and (orientation: portrait) {
|
|
20176
|
+
padding-top: 133%; /* 3:4 aspect ratio for phones */
|
|
20177
|
+
}
|
|
20178
|
+
margin-bottom: 15px;
|
|
20179
|
+
`;
|
|
20180
|
+
|
|
20181
|
+
const MapEmbedIFrame = styled.iframe`
|
|
20182
|
+
position: absolute;
|
|
20183
|
+
top: 0;
|
|
20184
|
+
left: 0;
|
|
20185
|
+
bottom: 0;
|
|
20186
|
+
right: 0;
|
|
20187
|
+
width: 100%;
|
|
20188
|
+
height: 100%;
|
|
20189
|
+
`;
|
|
20190
|
+
|
|
20191
|
+
const MapLink = styled.a`
|
|
20192
|
+
${(props) => props.theme.fontStyles};
|
|
20193
|
+
${(props) => props.theme.linkStyles};
|
|
20194
|
+
margin-bottom: 15px;
|
|
20195
|
+
display: block;
|
|
20196
|
+
|
|
20197
|
+
&:hover {
|
|
20198
|
+
${(props) => props.theme.linkStylesHover};
|
|
20199
|
+
}
|
|
20200
|
+
|
|
20201
|
+
&:focus {
|
|
20202
|
+
${(props) => props.theme.linkStylesFocus};
|
|
20203
|
+
}
|
|
20204
|
+
|
|
20205
|
+
&:active {
|
|
20206
|
+
${(props) => props.theme.linkStylesActive};
|
|
20207
|
+
}
|
|
20208
|
+
`;
|
|
20209
|
+
|
|
20210
|
+
const AccessibleMapLink = styled(MapLink)`
|
|
20211
|
+
${(props) => props.theme.visuallyHidden};
|
|
20212
|
+
`;
|
|
20213
|
+
|
|
20214
|
+
const cookieName = 'fn-cookie';
|
|
20215
|
+
|
|
20216
|
+
const getCookie = (name) => {
|
|
20217
|
+
if (typeof document === 'undefined') return '';
|
|
20218
|
+
|
|
20219
|
+
let dc = document.cookie;
|
|
20220
|
+
let prefix = name + '=';
|
|
20221
|
+
|
|
20222
|
+
let begin = dc.indexOf(prefix);
|
|
20223
|
+
if (begin == -1) return null;
|
|
20224
|
+
var end = dc.indexOf(';', begin);
|
|
20225
|
+
if (end == -1) end = dc.length;
|
|
20226
|
+
|
|
20227
|
+
return decodeURI(dc.substring(begin + prefix.length, end));
|
|
20228
|
+
};
|
|
20229
|
+
|
|
20230
|
+
/**
|
|
20231
|
+
* Were cookies accepted by the user, or overridden by the passed param?
|
|
20232
|
+
*
|
|
20233
|
+
* @param cookiesAcceptedOverride boolean | null | undefined
|
|
20234
|
+
* @returns boolean
|
|
20235
|
+
*/
|
|
20236
|
+
const wereCookiesAccepted = (cookiesAcceptedOverride) => {
|
|
20237
|
+
if (typeof cookiesAcceptedOverride === 'boolean') {
|
|
20238
|
+
return cookiesAcceptedOverride;
|
|
20239
|
+
}
|
|
20240
|
+
|
|
20241
|
+
const myCookie = getCookie(cookieName);
|
|
20242
|
+
if (myCookie !== null) {
|
|
20243
|
+
return myCookie.includes('"cookiesAccepted":true');
|
|
20244
|
+
}
|
|
20245
|
+
|
|
20246
|
+
return false;
|
|
20247
|
+
};
|
|
20248
|
+
|
|
20249
|
+
const Container$B = styled.div`
|
|
20250
|
+
border: solid 4px;
|
|
20251
|
+
border-radius: ${(props) => props.theme.theme_vars.border_radius};
|
|
20252
|
+
border-color: ${(props) =>
|
|
20253
|
+
props.alertType === 'alert'
|
|
20254
|
+
? props.theme.theme_vars.colours.negative
|
|
20255
|
+
: props.alertType === 'warning'
|
|
20256
|
+
? props.theme.theme_vars.colours.focus
|
|
20257
|
+
: props.alertType === 'positive'
|
|
20258
|
+
? props.theme.theme_vars.colours.positive
|
|
20259
|
+
: props.alertType === 'london_bridge'
|
|
20260
|
+
? props.theme.theme_vars.colours.black
|
|
20261
|
+
: props.theme.theme_vars.colours.negative};
|
|
20262
|
+
|
|
20263
|
+
padding: 15px;
|
|
20264
|
+
margin-bottom: 25px;
|
|
20265
|
+
display: flex;
|
|
20266
|
+
justify-content: center;
|
|
20267
|
+
margin-top: ${(props) => (props.hasTopSpacing ? `25px` : `0`)};
|
|
20268
|
+
|
|
20269
|
+
@media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.s}) {
|
|
20270
|
+
padding: 20px;
|
|
20271
|
+
border-width: 6px;
|
|
20272
|
+
}
|
|
20273
|
+
`;
|
|
20274
|
+
|
|
20275
|
+
const InnerContainer$2 = styled.div`
|
|
20276
|
+
width: 100%;
|
|
20277
|
+
|
|
20278
|
+
p {
|
|
20279
|
+
margin-bottom: 15px;
|
|
20280
|
+
|
|
20281
|
+
&:last-of-type {
|
|
20282
|
+
margin-bottom: 0;
|
|
20283
|
+
}
|
|
20284
|
+
@media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.l}) {
|
|
20285
|
+
min-width: 100%;
|
|
20286
|
+
}
|
|
20287
|
+
}
|
|
20288
|
+
|
|
20289
|
+
h2 {
|
|
20290
|
+
margin-top: 0;
|
|
20291
|
+
@media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.l}) {
|
|
20292
|
+
min-width: 100%;
|
|
20293
|
+
}
|
|
20294
|
+
}
|
|
20295
|
+
`;
|
|
20296
|
+
|
|
20297
|
+
/**
|
|
20298
|
+
* A banner to be displayed at the top of a page before the main content
|
|
20299
|
+
* to draw the viewer's attention to an alert notice
|
|
20300
|
+
*/
|
|
20301
|
+
var AlertBannerService = function (_a) {
|
|
20302
|
+
var title = _a.title, _b = _a.hasTopSpacing, hasTopSpacing = _b === void 0 ? false : _b, _c = _a.alertType, alertType = _c === void 0 ? 'alert' : _c, children = _a.children;
|
|
20303
|
+
return (React.createElement(Container$B, { alertType: alertType, "data-testid": "AlertBannerService", hasTopSpacing: hasTopSpacing },
|
|
20304
|
+
React.createElement(InnerContainer$2, { "data-testid": "AlertBannerServiceInner" },
|
|
20305
|
+
(title === null || title === void 0 ? void 0 : title.trim()) && React.createElement(Heading, { text: title }),
|
|
20306
|
+
children)));
|
|
20307
|
+
};
|
|
20308
|
+
|
|
20151
20309
|
/**
|
|
20152
20310
|
* A responsive Google Maps embed
|
|
20153
20311
|
*/
|
|
@@ -20189,7 +20347,7 @@ var GoogleMap = function (_a) {
|
|
|
20189
20347
|
React.createElement(MapLink, { href: link_url }, link_title ? link_title : 'Google Maps link')))));
|
|
20190
20348
|
};
|
|
20191
20349
|
|
|
20192
|
-
const Container$
|
|
20350
|
+
const Container$A = styled.figure`
|
|
20193
20351
|
display: block;
|
|
20194
20352
|
background: ${(props) =>
|
|
20195
20353
|
props.theme.cardinal_name === 'north'
|
|
@@ -20197,6 +20355,16 @@ const Container$C = styled.figure`
|
|
|
20197
20355
|
: props.theme.theme_vars.colours.grey_light};
|
|
20198
20356
|
border-bottom: 1px solid ${(props) => props.theme.theme_vars.colours.grey};
|
|
20199
20357
|
margin-bottom: 15px;
|
|
20358
|
+
float: ${(props) => (props.wrapText === true ? 'left' : 'none')};
|
|
20359
|
+
width: ${(props) => (props.wrapText === true ? '30%' : '100%')};
|
|
20360
|
+
margin-top: 1rem;
|
|
20361
|
+
margin-right: ${(props) => (props.wrapText === true ? '1.5rem' : '0')};
|
|
20362
|
+
|
|
20363
|
+
@media screen and (max-width: ${props => props.theme.theme_vars.breakpoints.s}){
|
|
20364
|
+
float: none;
|
|
20365
|
+
width: 100%;
|
|
20366
|
+
margin-right: 0;
|
|
20367
|
+
}
|
|
20200
20368
|
`;
|
|
20201
20369
|
|
|
20202
20370
|
const ImageContainer$4 = styled.div`
|
|
@@ -20212,7 +20380,7 @@ const Image$3 = styled.img`
|
|
|
20212
20380
|
left: 0;
|
|
20213
20381
|
width: 100%;
|
|
20214
20382
|
height: 100%;
|
|
20215
|
-
|
|
20383
|
+
`;
|
|
20216
20384
|
|
|
20217
20385
|
const Caption = styled.figcaption`
|
|
20218
20386
|
${(props) => props.theme.fontStyles};
|
|
@@ -20820,8 +20988,8 @@ var LazyImage = /*@__PURE__*/getDefaultExportFromCjs(lib);
|
|
|
20820
20988
|
* with an optional caption.
|
|
20821
20989
|
*/
|
|
20822
20990
|
var Image$2 = function (_a) {
|
|
20823
|
-
var imageSmall = _a.imageSmall, imageLarge = _a.imageLarge, imageAltText = _a.imageAltText, _b = _a.ratio, ratio = _b === void 0 ? '4by3' : _b, caption = _a.caption;
|
|
20824
|
-
return (React.createElement(Container$
|
|
20991
|
+
var imageSmall = _a.imageSmall, imageLarge = _a.imageLarge, imageAltText = _a.imageAltText, _b = _a.ratio, ratio = _b === void 0 ? '4by3' : _b, caption = _a.caption, _c = _a.wrapText, wrapText = _c === void 0 ? false : _c;
|
|
20992
|
+
return (React.createElement(Container$A, { "data-testid": "Image", wrapText: wrapText },
|
|
20825
20993
|
React.createElement(ImageContainer$4, { "data-testid": "ImageContainer", ratio: ratio },
|
|
20826
20994
|
React.createElement(LazyImage, { placeholder: imageSmall, src: imageLarge, visibilitySensorProps: {
|
|
20827
20995
|
partialVisibility: true,
|
|
@@ -20829,7 +20997,7 @@ var Image$2 = function (_a) {
|
|
|
20829
20997
|
(caption === null || caption === void 0 ? void 0 : caption.trim()) && React.createElement(Caption, null, caption)));
|
|
20830
20998
|
};
|
|
20831
20999
|
|
|
20832
|
-
const Container$
|
|
21000
|
+
const Container$z = styled.div`
|
|
20833
21001
|
${(props) => props.theme.fontStyles};
|
|
20834
21002
|
overflow: hidden;
|
|
20835
21003
|
margin: 40px auto 5px auto;
|
|
@@ -20913,7 +21081,7 @@ const CTA = styled.a`
|
|
|
20913
21081
|
*/
|
|
20914
21082
|
var PromoBanner = function (_a) {
|
|
20915
21083
|
var title = _a.title, image1440x810 = _a.image1440x810, image144x81 = _a.image144x81, ctaText = _a.ctaText, ctaUrl = _a.ctaUrl, children = _a.children;
|
|
20916
|
-
return (React.createElement(Container$
|
|
21084
|
+
return (React.createElement(Container$z, null,
|
|
20917
21085
|
React.createElement(LazyImage, { src: image1440x810, placeholder: image144x81, visibilitySensorProps: {
|
|
20918
21086
|
partialVisibility: true,
|
|
20919
21087
|
} }, function (src) { return React.createElement(ImageLink, { img: src, href: ctaUrl, title: ctaText }); }),
|
|
@@ -21337,7 +21505,7 @@ var AccessibleLink = function (_a) {
|
|
|
21337
21505
|
})));
|
|
21338
21506
|
};
|
|
21339
21507
|
|
|
21340
|
-
const Container$
|
|
21508
|
+
const Container$y = styled.div`
|
|
21341
21509
|
padding: ${(props) => props.theme.theme_vars.spacingSizes.medium} 0;
|
|
21342
21510
|
background: ${(props) =>
|
|
21343
21511
|
props.alertType === 'alert'
|
|
@@ -21468,7 +21636,7 @@ const handleContainerPadding = (noBackground, noPadding) => {
|
|
|
21468
21636
|
}
|
|
21469
21637
|
};
|
|
21470
21638
|
|
|
21471
|
-
const Container$
|
|
21639
|
+
const Container$x = styled.div`
|
|
21472
21640
|
background: ${props => props.noBackground ? "transparent" :
|
|
21473
21641
|
props.theme.cardinal_name === "north" ? (props.theme.theme_vars.colours.grey_light+"7a") : props.theme.theme_vars.colours.white};
|
|
21474
21642
|
overflow: ${props => props.noPadding ? "hidden" : "visible"};
|
|
@@ -21502,7 +21670,7 @@ const MaxWidth = styled.div`
|
|
|
21502
21670
|
*/
|
|
21503
21671
|
var MaxWidthContainer = function (_a) {
|
|
21504
21672
|
var children = _a.children, classes = _a.classes, _b = _a.noBackground, noBackground = _b === void 0 ? false : _b, _c = _a.noPadding, noPadding = _c === void 0 ? false : _c, _d = _a.overflowVisible, overflowVisible = _d === void 0 ? false : _d, props = __rest(_a, ["children", "classes", "noBackground", "noPadding", "overflowVisible"]);
|
|
21505
|
-
return (React.createElement(Container$
|
|
21673
|
+
return (React.createElement(Container$x, { noBackground: noBackground, noPadding: noPadding },
|
|
21506
21674
|
React.createElement(MaxWidth, __assign$2({ className: classes, overflowVisible: overflowVisible }, props), children)));
|
|
21507
21675
|
};
|
|
21508
21676
|
|
|
@@ -21531,7 +21699,7 @@ var AlertBanner = function (_a) {
|
|
|
21531
21699
|
/* Stop flash of banner on page load when previously dismissed */
|
|
21532
21700
|
var notServer = typeof window !== 'undefined';
|
|
21533
21701
|
return (showAlert &&
|
|
21534
|
-
notServer && (React.createElement(Container$
|
|
21702
|
+
notServer && (React.createElement(Container$y, { alertType: alertType, "data-testid": "AlertBanner" },
|
|
21535
21703
|
React.createElement(MaxWidthContainer, { noBackground: true },
|
|
21536
21704
|
React.createElement(InnerContainer$1, null,
|
|
21537
21705
|
React.createElement(BannerContentContainer, null,
|
|
@@ -21583,7 +21751,7 @@ function useLocalStorage$1(key, initialValue) {
|
|
|
21583
21751
|
return [storedValue, setValue];
|
|
21584
21752
|
}
|
|
21585
21753
|
|
|
21586
|
-
const Container$
|
|
21754
|
+
const Container$w = styled.div`
|
|
21587
21755
|
padding-top: 20px;
|
|
21588
21756
|
border-bottom: 1px solid ${(props) => props.theme.theme_vars.colours.grey}80;
|
|
21589
21757
|
margin-bottom: ${(props) => (props.hasMargin ? props.theme.theme_vars.spacingSizes.large : 0)};
|
|
@@ -21592,6 +21760,7 @@ const Container$y = styled.div`
|
|
|
21592
21760
|
const List$2 = styled.ol`
|
|
21593
21761
|
list-style: none;
|
|
21594
21762
|
padding-left: 0px;
|
|
21763
|
+
margin-left: 0;
|
|
21595
21764
|
margin-top: 0;
|
|
21596
21765
|
display: block;
|
|
21597
21766
|
margin-bottom: ${(props) => props.theme.theme_vars.spacingSizes.small};
|
|
@@ -21601,6 +21770,8 @@ const Crumb = styled.li`
|
|
|
21601
21770
|
margin-right: ${(props) => props.theme.theme_vars.spacingSizes.small};
|
|
21602
21771
|
margin-bottom: ${(props) => props.theme.theme_vars.spacingSizes.small};
|
|
21603
21772
|
display: none;
|
|
21773
|
+
left: 0;
|
|
21774
|
+
padding-right: 0;
|
|
21604
21775
|
|
|
21605
21776
|
&:first-of-type,
|
|
21606
21777
|
&:last-of-type {
|
|
@@ -21670,14 +21841,14 @@ var ChevronIcon = function (_a) {
|
|
|
21670
21841
|
|
|
21671
21842
|
var Breadcrumbs = function (_a) {
|
|
21672
21843
|
var breadcrumbsArray = _a.breadcrumbsArray, _b = _a.hasMargin, hasMargin = _b === void 0 ? false : _b;
|
|
21673
|
-
return (React.createElement(Container$
|
|
21844
|
+
return (React.createElement(Container$w, { hasMargin: hasMargin, "data-testid": "Breadcrumbs" },
|
|
21674
21845
|
React.createElement(List$2, null, breadcrumbsArray.map(function (crumb) { return (React.createElement(Crumb, { key: crumb.title }, React.createElement(React.Fragment, null,
|
|
21675
21846
|
React.createElement(BreadcrumbLink$1, { href: crumb.url, title: crumb.title }, crumb.title),
|
|
21676
21847
|
React.createElement(IconWrapper$4, null,
|
|
21677
21848
|
React.createElement(ChevronIcon, { direction: 'right', colourFill: "#C6C6C6" }))))); }))));
|
|
21678
21849
|
};
|
|
21679
21850
|
|
|
21680
|
-
const Container$
|
|
21851
|
+
const Container$v = styled.div`
|
|
21681
21852
|
display: block;
|
|
21682
21853
|
margin-bottom: ${(props) => props.theme.theme_vars.spacingSizes.large};
|
|
21683
21854
|
padding-bottom: ${(props) => props.theme.theme_vars.spacingSizes.large};
|
|
@@ -21686,11 +21857,9 @@ const Container$x = styled.div`
|
|
|
21686
21857
|
|
|
21687
21858
|
const List$1 = styled.ul`
|
|
21688
21859
|
list-style-type: '-';
|
|
21689
|
-
margin: 0 0 0 ${(props) => props.theme.theme_vars.spacingSizes.small} !important;
|
|
21690
21860
|
`;
|
|
21691
21861
|
|
|
21692
21862
|
const ListItem$1 = styled.li`
|
|
21693
|
-
padding-left: ${(props) => props.theme.theme_vars.spacingSizes.small} !important;
|
|
21694
21863
|
margin-bottom: 0px !important;
|
|
21695
21864
|
|
|
21696
21865
|
&::marker {
|
|
@@ -21705,6 +21874,7 @@ const ListItem$1 = styled.li`
|
|
|
21705
21874
|
const Link$2 = styled.a`
|
|
21706
21875
|
${(props) => props.theme.fontStyles};
|
|
21707
21876
|
${(props) => props.theme.linkStyles};
|
|
21877
|
+
margin-left: ${(props) => props.theme.theme_vars.spacingSizes.small};
|
|
21708
21878
|
|
|
21709
21879
|
&:hover {
|
|
21710
21880
|
${(props) => props.theme.linkStylesHover};
|
|
@@ -21721,16 +21891,17 @@ const Link$2 = styled.a`
|
|
|
21721
21891
|
|
|
21722
21892
|
const CurrentPage = styled.span`
|
|
21723
21893
|
${(props) => props.theme.fontStyles};
|
|
21894
|
+
margin-left: ${(props) => props.theme.theme_vars.spacingSizes.small};
|
|
21724
21895
|
`;
|
|
21725
21896
|
|
|
21726
21897
|
var Contents$1 = function (_a) {
|
|
21727
21898
|
var contents = _a.contents, _b = _a.currentPath, currentPath = _b === void 0 ? undefined : _b, _c = _a.title, title = _c === void 0 ? 'Contents' : _c;
|
|
21728
|
-
return (React.createElement(Container$
|
|
21899
|
+
return (React.createElement(Container$v, { "data-testid": "Contents" },
|
|
21729
21900
|
React.createElement(Heading, { text: title, level: 2 }),
|
|
21730
21901
|
React.createElement(List$1, null, contents.map(function (content, index) { return (React.createElement(ListItem$1, { key: index }, content.url === currentPath ? (React.createElement(CurrentPage, null, content.title)) : (React.createElement(Link$2, { href: content.url, active: content.url === currentPath }, content.title)))); }))));
|
|
21731
21902
|
};
|
|
21732
21903
|
|
|
21733
|
-
const Container$
|
|
21904
|
+
const Container$u = styled.div`
|
|
21734
21905
|
display: block;
|
|
21735
21906
|
border-top: 1px solid ${(props) => props.theme.theme_vars.colours.grey}80;
|
|
21736
21907
|
margin: ${(props) => props.theme.theme_vars.spacingSizes.medium} 0;
|
|
@@ -21780,7 +21951,7 @@ var ContentsNavigation = function (_a) {
|
|
|
21780
21951
|
};
|
|
21781
21952
|
var nextPage = currentPage() < contents.length - 1 ? contents[currentPage() + 1] : undefined;
|
|
21782
21953
|
var previousPage = currentPage() !== 0 ? contents[currentPage() - 1] : undefined;
|
|
21783
|
-
return (React.createElement(Container$
|
|
21954
|
+
return (React.createElement(Container$u, { "data-testid": "ContentsNavigation" },
|
|
21784
21955
|
previousPage && (React.createElement(NavigationLink, { href: previousPage.url },
|
|
21785
21956
|
React.createElement(Arrow, null, "\u2190"),
|
|
21786
21957
|
React.createElement(LinkText, null,
|
|
@@ -21795,7 +21966,7 @@ var ContentsNavigation = function (_a) {
|
|
|
21795
21966
|
React.createElement(PageTitle$1, null, nextPage.title))))));
|
|
21796
21967
|
};
|
|
21797
21968
|
|
|
21798
|
-
const Container$
|
|
21969
|
+
const Container$t = styled.div`
|
|
21799
21970
|
${props => props.theme.fontStyles}
|
|
21800
21971
|
background-color: ${props => props.theme.theme_vars.colours.grey_light};
|
|
21801
21972
|
padding: ${props => props.theme.theme_vars.spacingSizes.medium} 0;
|
|
@@ -22088,18 +22259,18 @@ var CookieBanner = function (_a) {
|
|
|
22088
22259
|
hideCookiesAcceptedConfirmationBanner();
|
|
22089
22260
|
};
|
|
22090
22261
|
return (React.createElement(React.Fragment, null,
|
|
22091
|
-
showCookieBanner && (React.createElement(Container$
|
|
22262
|
+
showCookieBanner && (React.createElement(Container$t, { "data-testid": "CookieBanner" },
|
|
22092
22263
|
React.createElement(CookieMessage, null,
|
|
22093
22264
|
React.createElement(CookieHeading, null, title),
|
|
22094
22265
|
React.createElement(CookieParagraph, null, paragraph),
|
|
22095
22266
|
React.createElement(ButtonsContainer, null,
|
|
22096
22267
|
React.createElement(FormButton, { primary: true, text: acceptButtonText, isDisabled: true, onClick: acceptCookies }),
|
|
22097
22268
|
React.createElement(FormButton, { primary: true, text: rejectButtonText, isDisabled: true, onClick: rejectCookies }))))),
|
|
22098
|
-
showCookiesRejectedBanner && (React.createElement(Container$
|
|
22269
|
+
showCookiesRejectedBanner && (React.createElement(Container$t, { "data-testid": "CookieBannerRejected", id: "CookieBannerRejected" },
|
|
22099
22270
|
React.createElement(CookieMessage, { isInline: true },
|
|
22100
22271
|
React.createElement(CookieParagraph, null, rejectConfirmationText),
|
|
22101
22272
|
React.createElement(CookieHide, { onClick: hideCookiesConfirmationBanner, "aria-controls": "CookieBannerRejected", "aria-hidden": "false" }, "Hide")))),
|
|
22102
|
-
showCookiesAcceptedBanner && (React.createElement(Container$
|
|
22273
|
+
showCookiesAcceptedBanner && (React.createElement(Container$t, { "data-testid": "CookieBannerAccepted", id: "CookieBannerAccepted" },
|
|
22103
22274
|
React.createElement(CookieMessage, { isInline: true },
|
|
22104
22275
|
React.createElement(CookieParagraph, null, acceptConfirmationText),
|
|
22105
22276
|
React.createElement(CookieHide, { onClick: hideCookiesConfirmationBanner, "aria-controls": "CookieBannerAccepted", "aria-hidden": "false" }, "Hide"))))));
|
|
@@ -22145,35 +22316,41 @@ var DisplayDate = function (_a) {
|
|
|
22145
22316
|
postText));
|
|
22146
22317
|
};
|
|
22147
22318
|
|
|
22148
|
-
const Container$
|
|
22149
|
-
background-color: ${props => props.theme.theme_vars.colours.black};
|
|
22319
|
+
const Container$s = styled.footer`
|
|
22320
|
+
background-color: ${(props) => props.theme.theme_vars.colours.black};
|
|
22150
22321
|
padding: 25px 0;
|
|
22151
22322
|
`;
|
|
22323
|
+
|
|
22152
22324
|
const StyledMaxWidthContainer$3 = styled(MaxWidthContainer)`
|
|
22153
|
-
color: ${props => props.theme.theme_vars.colours.white};
|
|
22325
|
+
color: ${(props) => props.theme.theme_vars.colours.white};
|
|
22154
22326
|
`;
|
|
22327
|
+
|
|
22155
22328
|
const FooterList = styled.ul`
|
|
22156
22329
|
padding: 0px;
|
|
22330
|
+
margin-left: 0;
|
|
22157
22331
|
margin-bottom: 25px;
|
|
22158
22332
|
list-style-type: none;
|
|
22159
22333
|
|
|
22160
22334
|
li:last-of-type {
|
|
22161
|
-
|
|
22335
|
+
margin-bottom: 0;
|
|
22162
22336
|
}
|
|
22163
22337
|
|
|
22164
|
-
@media screen and (min-width: ${props => props.theme.theme_vars.breakpoints.s}){
|
|
22338
|
+
@media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.s}) {
|
|
22165
22339
|
margin-bottom: 0px;
|
|
22166
22340
|
}
|
|
22167
22341
|
`;
|
|
22342
|
+
|
|
22168
22343
|
const FooterListItem = styled.li`
|
|
22169
22344
|
display: inline-block;
|
|
22170
22345
|
margin-right: 25px;
|
|
22171
22346
|
margin-bottom: 15px;
|
|
22172
22347
|
`;
|
|
22348
|
+
|
|
22173
22349
|
const SocialLinks = styled.div`
|
|
22174
22350
|
margin-bottom: 15px;
|
|
22175
22351
|
margin-top: 5px;
|
|
22176
22352
|
`;
|
|
22353
|
+
|
|
22177
22354
|
const SocialLinkSingle = styled.a`
|
|
22178
22355
|
display: inline-block;
|
|
22179
22356
|
margin-right: 15px;
|
|
@@ -22187,46 +22364,47 @@ const SocialLinkSingle = styled.a`
|
|
|
22187
22364
|
|
|
22188
22365
|
svg {
|
|
22189
22366
|
path {
|
|
22190
|
-
fill: ${props => props.theme.theme_vars.colours.focus} !important;
|
|
22367
|
+
fill: ${(props) => props.theme.theme_vars.colours.focus} !important;
|
|
22191
22368
|
}
|
|
22192
22369
|
}
|
|
22193
22370
|
}
|
|
22194
|
-
&:active{
|
|
22371
|
+
&:active {
|
|
22195
22372
|
opacity: 1;
|
|
22196
22373
|
|
|
22197
22374
|
svg {
|
|
22198
22375
|
path {
|
|
22199
|
-
fill: ${props => props.theme.theme_vars.colours.focus} !important;
|
|
22376
|
+
fill: ${(props) => props.theme.theme_vars.colours.focus} !important;
|
|
22200
22377
|
}
|
|
22201
22378
|
}
|
|
22202
22379
|
}
|
|
22203
22380
|
`;
|
|
22381
|
+
|
|
22204
22382
|
const FooterLink = styled.a`
|
|
22205
|
-
${props => props.theme.linkStyles}
|
|
22206
|
-
color: ${props => props.theme.theme_vars.colours.white};
|
|
22383
|
+
${(props) => props.theme.linkStyles}
|
|
22384
|
+
color: ${(props) => props.theme.theme_vars.colours.white};
|
|
22207
22385
|
font-weight: 400;
|
|
22208
22386
|
|
|
22209
|
-
&:hover{
|
|
22210
|
-
|
|
22211
|
-
|
|
22212
|
-
|
|
22213
|
-
}
|
|
22214
|
-
&:focus{
|
|
22215
|
-
${props => props.theme.linkStylesFocus}
|
|
22216
|
-
box-shadow: 0px -2px 0px 0px ${props => props.theme.theme_vars.colours.white} inset;
|
|
22217
|
-
-webkit-box-shadow: 0px -2px 0px 0px ${props => props.theme.theme_vars.colours.white} inset;
|
|
22218
|
-
-moz-box-shadow: 0px -2px 0px 0px ${props => props.theme.theme_vars.colours.white} inset;
|
|
22387
|
+
&:hover {
|
|
22388
|
+
${(props) => props.theme.linkStylesHover}
|
|
22389
|
+
color: ${(props) => props.theme.theme_vars.colours.white};
|
|
22390
|
+
opacity: 0.8;
|
|
22219
22391
|
}
|
|
22220
|
-
&:
|
|
22221
|
-
${props => props.theme.
|
|
22222
|
-
box-shadow: 0px -
|
|
22223
|
-
-webkit-box-shadow: 0px -
|
|
22224
|
-
-moz-box-shadow: 0px -
|
|
22392
|
+
&:focus {
|
|
22393
|
+
${(props) => props.theme.linkStylesFocus}
|
|
22394
|
+
box-shadow: 0px -2px 0px 0px ${(props) => props.theme.theme_vars.colours.white} inset;
|
|
22395
|
+
-webkit-box-shadow: 0px -2px 0px 0px ${(props) => props.theme.theme_vars.colours.white} inset;
|
|
22396
|
+
-moz-box-shadow: 0px -2px 0px 0px ${(props) => props.theme.theme_vars.colours.white} inset;
|
|
22397
|
+
}
|
|
22398
|
+
&:active {
|
|
22399
|
+
${(props) => props.theme.linkStylesActive}
|
|
22400
|
+
box-shadow: 0px -1px 0px 0px ${(props) => props.theme.theme_vars.colours.white} inset;
|
|
22401
|
+
-webkit-box-shadow: 0px -1px 0px 0px ${(props) => props.theme.theme_vars.colours.white} inset;
|
|
22402
|
+
-moz-box-shadow: 0px -1px 0px 0px ${(props) => props.theme.theme_vars.colours.white} inset;
|
|
22225
22403
|
}
|
|
22226
22404
|
`;
|
|
22227
|
-
|
|
22228
|
-
|
|
22229
|
-
|
|
22405
|
+
|
|
22406
|
+
const FooterCopy = styled.p``;
|
|
22407
|
+
|
|
22230
22408
|
const FooterAlignment = styled.div`
|
|
22231
22409
|
display: flex;
|
|
22232
22410
|
-webkit-flex-direction: row;
|
|
@@ -22237,6 +22415,7 @@ const FooterAlignment = styled.div`
|
|
|
22237
22415
|
align-items: center;
|
|
22238
22416
|
flex-wrap: wrap;
|
|
22239
22417
|
`;
|
|
22418
|
+
|
|
22240
22419
|
const LogoWhite$1 = styled.div`
|
|
22241
22420
|
svg {
|
|
22242
22421
|
width: 240px;
|
|
@@ -22300,7 +22479,7 @@ var ServiceIcon = function (_a) {
|
|
|
22300
22479
|
var Footer = function (_a) {
|
|
22301
22480
|
var _b = _a.footerLinksArray, footerLinksArray = _b === void 0 ? null : _b, _c = _a.year, year = _c === void 0 ? new Date().getFullYear() : _c;
|
|
22302
22481
|
var themeContext = useContext(ThemeContext);
|
|
22303
|
-
return (React.createElement(Container$
|
|
22482
|
+
return (React.createElement(Container$s, null,
|
|
22304
22483
|
React.createElement(StyledMaxWidthContainer$3, { noBackground: true },
|
|
22305
22484
|
React.createElement(FooterAlignment, null,
|
|
22306
22485
|
React.createElement("div", null,
|
|
@@ -22328,7 +22507,7 @@ var Footer = function (_a) {
|
|
|
22328
22507
|
: '' }, themeContext.cardinal_name === 'north' ? (React.createElement(NorthWhiteLogo, null)) : themeContext.cardinal_name === 'west' ? (React.createElement(WestWhiteLogo, null)) : (React.createElement(GDSLogo, null)))))));
|
|
22329
22508
|
};
|
|
22330
22509
|
|
|
22331
|
-
const Container$
|
|
22510
|
+
const Container$r = styled.div`
|
|
22332
22511
|
background: ${(props) => (props.hasBackground ? props.theme.theme_vars.colours.grey_light : 'transparent')};
|
|
22333
22512
|
padding: ${(props) => (props.hasPadding ? '50px 0 20px' : '0')};
|
|
22334
22513
|
`;
|
|
@@ -22338,7 +22517,7 @@ const Container$t = styled.div`
|
|
|
22338
22517
|
*/
|
|
22339
22518
|
var FullWidthContainer = function (_a) {
|
|
22340
22519
|
var children = _a.children, _b = _a.hasBackground, hasBackground = _b === void 0 ? false : _b, _c = _a.hasPadding, hasPadding = _c === void 0 ? false : _c;
|
|
22341
|
-
return (React.createElement(Container$
|
|
22520
|
+
return (React.createElement(Container$r, { hasBackground: hasBackground, hasPadding: hasPadding, "data-testid": "FullWidthContainer" }, children));
|
|
22342
22521
|
};
|
|
22343
22522
|
|
|
22344
22523
|
/**
|
|
@@ -22370,7 +22549,7 @@ const headerThemeStyles = (props) => {
|
|
|
22370
22549
|
}
|
|
22371
22550
|
};
|
|
22372
22551
|
|
|
22373
|
-
const Container$
|
|
22552
|
+
const Container$q = styled.header`
|
|
22374
22553
|
font-family: ${(props) => props.theme.theme_vars.fontstack};
|
|
22375
22554
|
padding: 3px 0;
|
|
22376
22555
|
${headerThemeStyles}
|
|
@@ -22528,7 +22707,7 @@ var NorthColouredLogo = function () {
|
|
|
22528
22707
|
React.createElement("path", { fill: "#fff", d: "M0 0H974V327H0z" })))));
|
|
22529
22708
|
};
|
|
22530
22709
|
|
|
22531
|
-
const Container$
|
|
22710
|
+
const Container$p = styled.div`
|
|
22532
22711
|
${props => props.theme.fontStyles}
|
|
22533
22712
|
width: calc(100% - ${ props => props.isLarge ? "5rem" : "3rem"});
|
|
22534
22713
|
`;
|
|
@@ -22674,7 +22853,7 @@ var Searchbar = function (_a) {
|
|
|
22674
22853
|
/**
|
|
22675
22854
|
* Render the component
|
|
22676
22855
|
*/
|
|
22677
|
-
return (React.createElement(Container$
|
|
22856
|
+
return (React.createElement(Container$p, { "data-testid": "Searchbar", isLarge: isLarge },
|
|
22678
22857
|
React.createElement("form", { onSubmit: handleSubmit },
|
|
22679
22858
|
React.createElement("div", { role: "search" },
|
|
22680
22859
|
React.createElement(InputWrapper, null,
|
|
@@ -22729,7 +22908,7 @@ var Header = function (_a) {
|
|
|
22729
22908
|
}
|
|
22730
22909
|
};
|
|
22731
22910
|
return (React.createElement(React.Fragment, null,
|
|
22732
|
-
React.createElement(Container$
|
|
22911
|
+
React.createElement(Container$q, __assign$2({}, props, { "data-testid": "Header" }),
|
|
22733
22912
|
React.createElement(StyledMaxWidthContainer$2, { noBackground: true },
|
|
22734
22913
|
React.createElement(LogoWrapper, null,
|
|
22735
22914
|
React.createElement(HomeLink, { href: homeLink, title: "Home", id: "logo" }, themeLogos(themeContext.cardinal_name, themeContext.is_memorial))),
|
|
@@ -22749,7 +22928,7 @@ var Header = function (_a) {
|
|
|
22749
22928
|
* Hero image container with optional dark gradient for non-box mode
|
|
22750
22929
|
* Optimised for an image in 16:5 ratio on all but small width screens
|
|
22751
22930
|
*/
|
|
22752
|
-
const Container$
|
|
22931
|
+
const Container$o = styled.div`
|
|
22753
22932
|
background-image: ${(props) =>
|
|
22754
22933
|
!props.backgroundBox ? `linear-gradient(to bottom left, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.75)),` : ``}
|
|
22755
22934
|
url('${(props) => props.image}');
|
|
@@ -22909,7 +23088,7 @@ var HeroImage = function (_a) {
|
|
|
22909
23088
|
return (React.createElement(React.Fragment, null,
|
|
22910
23089
|
React.createElement(LazyImage, { src: imageLarge, placeholder: imageSmall, visibilitySensorProps: {
|
|
22911
23090
|
partialVisibility: true,
|
|
22912
|
-
} }, function (src, loading) { return (React.createElement(Container$
|
|
23091
|
+
} }, function (src, loading) { return (React.createElement(Container$o, { image: src, loading: loading.toString(), backgroundBox: backgroundBox, "data-testid": "HeroImage" },
|
|
22913
23092
|
React.createElement(InnerContainer, null,
|
|
22914
23093
|
React.createElement(Overlay, { backgroundBox: backgroundBox, "data-testid": "HeroImageOverlay" },
|
|
22915
23094
|
breadcrumb && (React.createElement(BreadcrumbLink, { href: breadcrumb.url, backgroundBox: backgroundBox }, breadcrumb.title)),
|
|
@@ -22930,7 +23109,7 @@ const Wrapper$3 = styled.header`
|
|
|
22930
23109
|
: props.theme.theme_vars.colours.white};
|
|
22931
23110
|
`;
|
|
22932
23111
|
|
|
22933
|
-
const Container$
|
|
23112
|
+
const Container$n = styled.div`
|
|
22934
23113
|
font-family: ${(props) => props.theme.theme_vars.fontstack};
|
|
22935
23114
|
overflow: hidden;
|
|
22936
23115
|
background: ${(props) => props.theme.theme_vars.colours.action}5A;
|
|
@@ -23074,7 +23253,7 @@ var HomeHero = function (_a) {
|
|
|
23074
23253
|
React.createElement(Wrapper$3, null,
|
|
23075
23254
|
React.createElement(LazyImage, { src: random !== 999 && imagesArray[random].image1440x810 ? imagesArray[random].image1440x810 : '', placeholder: random !== 999 && imagesArray[random].image144x81 ? imagesArray[random].image144x81 : '', visibilitySensorProps: {
|
|
23076
23255
|
partialVisibility: true,
|
|
23077
|
-
} }, function (src) { return (React.createElement(Container$
|
|
23256
|
+
} }, function (src) { return (React.createElement(Container$n, { className: random !== 999 ? 'loaded' : 'loading', image: src, title: random !== 999 && imagesArray[random].imageAltText ? imagesArray[random].imageAltText : '' },
|
|
23078
23257
|
React.createElement(StyledMaxWidthContainer$1, null,
|
|
23079
23258
|
React.createElement(MainBox, null,
|
|
23080
23259
|
topline && React.createElement(Topline, null, topline),
|
|
@@ -23094,7 +23273,7 @@ var HomeHero = function (_a) {
|
|
|
23094
23273
|
promotedLinksArray.length > 0 && React.createElement(PromotedLinks, { promotedLinksArray: promotedLinksArray })))); }))));
|
|
23095
23274
|
};
|
|
23096
23275
|
|
|
23097
|
-
const Container$
|
|
23276
|
+
const Container$m = styled.div`
|
|
23098
23277
|
h2 {
|
|
23099
23278
|
border-bottom: 1px solid ${props => props.theme.theme_vars.colours.grey_dark};
|
|
23100
23279
|
max-width: none;
|
|
@@ -29219,7 +29398,7 @@ axios$2.exports.default = axios$1;
|
|
|
29219
29398
|
|
|
29220
29399
|
var axios = /*@__PURE__*/getDefaultExportFromCjs(axios$3.exports);
|
|
29221
29400
|
|
|
29222
|
-
const Container$
|
|
29401
|
+
const Container$l = styled.div`
|
|
29223
29402
|
strong {
|
|
29224
29403
|
font-weight: bold;
|
|
29225
29404
|
}
|
|
@@ -29360,7 +29539,7 @@ var HintText = function (_a) {
|
|
|
29360
29539
|
return (React.createElement(HintText$1, null, text));
|
|
29361
29540
|
};
|
|
29362
29541
|
|
|
29363
|
-
const Container$
|
|
29542
|
+
const Container$k = styled.div`
|
|
29364
29543
|
display: flex;
|
|
29365
29544
|
-webkit-flex-direction: row;
|
|
29366
29545
|
-moz-flex-direction: row;
|
|
@@ -29395,7 +29574,7 @@ const ErrorSummary = styled.div`
|
|
|
29395
29574
|
*/
|
|
29396
29575
|
var FormWithLine = function (_a) {
|
|
29397
29576
|
var _b = _a.lineColour, lineColour = _b === void 0 ? '#C6C6C6' : _b, _c = _a.hideLine, hideLine = _c === void 0 ? false : _c, formRole = _a.formRole, formMethod = _a.formMethod, formURL = _a.formURL, _d = _a.isError, isError = _d === void 0 ? false : _d, errorSummary = _a.errorSummary, onSubmit = _a.onSubmit, children = _a.children;
|
|
29398
|
-
return (React.createElement(Container$
|
|
29577
|
+
return (React.createElement(Container$k, null,
|
|
29399
29578
|
React.createElement(Line, { lineColour: lineColour, hideLine: hideLine, isError: isError }),
|
|
29400
29579
|
React.createElement(Form, { onSubmit: onSubmit, hideLine: hideLine, role: formRole, method: formMethod, url: formURL, "data-testid": "FormWithLine" },
|
|
29401
29580
|
errorSummary && React.createElement(ErrorSummary, null, errorSummary),
|
|
@@ -29575,7 +29754,7 @@ var PostCodeSearch = function (_a) {
|
|
|
29575
29754
|
setCurrentPostcode(currentPostcode + ' (' + singleAddress.title + ')');
|
|
29576
29755
|
}
|
|
29577
29756
|
}
|
|
29578
|
-
return (React.createElement(Container$
|
|
29757
|
+
return (React.createElement(Container$l, { "data-testid": "PostCodeSearch" },
|
|
29579
29758
|
React.createElement(DropDownButton, { onClick: function () { return setOpen(open ? false : true); } },
|
|
29580
29759
|
React.createElement(IconWrapper$3, null,
|
|
29581
29760
|
React.createElement(ChevronIcon, { direction: open ? 'down' : 'right', colourFill: themeContext.theme_vars.colours.black })),
|
|
@@ -29756,7 +29935,7 @@ var HomeUnitarySection = function (_a) {
|
|
|
29756
29935
|
var westLink = themeContext.cardinal_name === 'west'
|
|
29757
29936
|
? themeContext.theme_vars.council_link
|
|
29758
29937
|
: themeContext.theme_vars.other_council_link;
|
|
29759
|
-
return (React.createElement(Container$
|
|
29938
|
+
return (React.createElement(Container$m, { "data-testid": "HomeUnitarySection" },
|
|
29760
29939
|
React.createElement(Heading, { text: title }),
|
|
29761
29940
|
React.createElement("p", null, firstLine),
|
|
29762
29941
|
React.createElement(PostCodeSearch, { isUnitary: true, title: postcodeText }),
|
|
@@ -29783,7 +29962,7 @@ const Wrapper$2 = styled.section`
|
|
|
29783
29962
|
padding-bottom: 0px;
|
|
29784
29963
|
`;
|
|
29785
29964
|
|
|
29786
|
-
const Container$
|
|
29965
|
+
const Container$j = styled.div`
|
|
29787
29966
|
font-family: ${(props) => props.theme.theme_vars.fontstack};
|
|
29788
29967
|
display: flex;
|
|
29789
29968
|
flex-wrap: wrap;
|
|
@@ -29923,7 +30102,7 @@ var MemorialHero = function (_a) {
|
|
|
29923
30102
|
React.createElement(HiddenH1, null,
|
|
29924
30103
|
themeContext.full_name,
|
|
29925
30104
|
" Council"),
|
|
29926
|
-
React.createElement(Container$
|
|
30105
|
+
React.createElement(Container$j, null,
|
|
29927
30106
|
React.createElement(Left, null,
|
|
29928
30107
|
children,
|
|
29929
30108
|
React.createElement(ThemeProvider, { theme: theme }, councilServices)),
|
|
@@ -29953,7 +30132,7 @@ var NewsArticleDate = function (_a) {
|
|
|
29953
30132
|
const imageHeightMobile = 150;
|
|
29954
30133
|
const imageHeightDesktop = 200;
|
|
29955
30134
|
|
|
29956
|
-
const Container$
|
|
30135
|
+
const Container$i = styled.div`
|
|
29957
30136
|
${(props) => props.theme.fontStyles};
|
|
29958
30137
|
padding: 15px 0;
|
|
29959
30138
|
|
|
@@ -30125,7 +30304,7 @@ var NewsArticleFeaturedBlock = function (_a) {
|
|
|
30125
30304
|
if (articles && articles.length > 0) {
|
|
30126
30305
|
return (React.createElement(React.Fragment, null,
|
|
30127
30306
|
!withoutTitle && React.createElement(Heading, { text: "News articles and press releases" }),
|
|
30128
|
-
React.createElement(Container$
|
|
30307
|
+
React.createElement(Container$i, null, articles.map(function (article) { return (React.createElement(ArticleContainer$1, { key: article.id, href: article.url },
|
|
30129
30308
|
article.image720x405 && (React.createElement(LazyImage, { src: article.image720x405, placeholder: article.image72x41, visibilitySensorProps: {
|
|
30130
30309
|
partialVisibility: true,
|
|
30131
30310
|
} }, function (src) { return (React.createElement(ImageContainer$3, { background: src, role: "img", "aria-label": article.imageAltText ? article.imageAltText : '' })); })),
|
|
@@ -30141,7 +30320,7 @@ var NewsArticleFeaturedBlock = function (_a) {
|
|
|
30141
30320
|
}
|
|
30142
30321
|
};
|
|
30143
30322
|
|
|
30144
|
-
const Container$
|
|
30323
|
+
const Container$h = styled.div`
|
|
30145
30324
|
/* margin-top: 50px; */
|
|
30146
30325
|
/* border: 1px solid red; */
|
|
30147
30326
|
|
|
@@ -30243,7 +30422,7 @@ const FilterHeading = styled.h2`
|
|
|
30243
30422
|
// display: block;
|
|
30244
30423
|
// overflow: hidden;
|
|
30245
30424
|
|
|
30246
|
-
const Container$
|
|
30425
|
+
const Container$g = styled.a`
|
|
30247
30426
|
${props => props.theme.linkStyles}
|
|
30248
30427
|
color: ${props => props.theme.theme_vars.colours.negative} !important;
|
|
30249
30428
|
font-weight: normal;
|
|
@@ -30272,7 +30451,7 @@ var RemoveAllFilters = function (_a) {
|
|
|
30272
30451
|
e.preventDefault();
|
|
30273
30452
|
removeParams(__spreadArray(__spreadArray([], NewsArticleFilterFields.removeFiltersList, true), ['page'], false));
|
|
30274
30453
|
};
|
|
30275
|
-
return (React.createElement(Container$
|
|
30454
|
+
return (React.createElement(Container$g, { "data-testid": "RemoveAllFilters", href: "#", onClick: removeAllFilters },
|
|
30276
30455
|
"Clear ",
|
|
30277
30456
|
searchValue.length > 0 && 'search term and ',
|
|
30278
30457
|
"filters",
|
|
@@ -30319,7 +30498,7 @@ var NewsArticleFilterAccordion = function (_a) {
|
|
|
30319
30498
|
section.isExpanded = false;
|
|
30320
30499
|
}
|
|
30321
30500
|
});
|
|
30322
|
-
return (React.createElement(Container$
|
|
30501
|
+
return (React.createElement(Container$h, { "data-testid": "NewsArticleFilterAccordion" },
|
|
30323
30502
|
React.createElement(ShowFiltersButton, { onClick: showFullscreenFilters, "aria-expanded": !!isFullScreen, "aria-controls": "PageFilters" },
|
|
30324
30503
|
"Show Search and filters",
|
|
30325
30504
|
count > 0 && " (".concat(count, ")")),
|
|
@@ -30386,7 +30565,7 @@ var NewsArticleImage = function (_a) {
|
|
|
30386
30565
|
})));
|
|
30387
30566
|
};
|
|
30388
30567
|
|
|
30389
|
-
const Container$
|
|
30568
|
+
const Container$f = styled.div`
|
|
30390
30569
|
${(props) => props.theme.fontStyles};
|
|
30391
30570
|
padding: 15px 0;
|
|
30392
30571
|
`;
|
|
@@ -30508,7 +30687,7 @@ var NewsArticleList = function (_a) {
|
|
|
30508
30687
|
var results = _a.results;
|
|
30509
30688
|
var extractLength = 140;
|
|
30510
30689
|
if (results && results.length > 0) {
|
|
30511
|
-
return (React.createElement(Container$
|
|
30690
|
+
return (React.createElement(Container$f, { "data-testid": "NewsArticleList" }, results.map(function (article) { return (React.createElement(ArticleContainer, { href: article.url, title: article.title, key: article.id },
|
|
30512
30691
|
article.image720x405 && (React.createElement(LazyImage, { src: article.image720x405, placeholder: article.image72x41, visibilitySensorProps: {
|
|
30513
30692
|
partialVisibility: true,
|
|
30514
30693
|
} }, function (src) { return (React.createElement(ImageContainer$1, { className: "news-article-list__image", background: src, role: "img", "aria-label": article.imageAltText ? article.imageAltText : 'News article' })); })),
|
|
@@ -30521,12 +30700,12 @@ var NewsArticleList = function (_a) {
|
|
|
30521
30700
|
React.createElement(NewsArticleDate, { text: article.date.toString(), format: "X" }))))); })));
|
|
30522
30701
|
}
|
|
30523
30702
|
else {
|
|
30524
|
-
return (React.createElement(Container$
|
|
30703
|
+
return (React.createElement(Container$f, { "data-testid": "NewsArticleList" },
|
|
30525
30704
|
React.createElement(ResultInfo$1, null, "No results found")));
|
|
30526
30705
|
}
|
|
30527
30706
|
};
|
|
30528
30707
|
|
|
30529
|
-
const Container$
|
|
30708
|
+
const Container$e = styled.div`
|
|
30530
30709
|
${props => props.theme.fontStyles};
|
|
30531
30710
|
padding-bottom: 20px;
|
|
30532
30711
|
border-bottom: 1px solid ${props => props.theme.theme_vars.colours.grey};
|
|
@@ -30600,7 +30779,7 @@ const Preposition = styled.div`
|
|
|
30600
30779
|
font-size: 80%;
|
|
30601
30780
|
`;
|
|
30602
30781
|
|
|
30603
|
-
const Container$
|
|
30782
|
+
const Container$d = styled.span`
|
|
30604
30783
|
margin: 0 5px;
|
|
30605
30784
|
display: inline-block;
|
|
30606
30785
|
position: relative;
|
|
@@ -30661,7 +30840,7 @@ var RemovableTag = function (_a) {
|
|
|
30661
30840
|
var index = _a.index, preposition = _a.preposition, label = _a.label; _a.value; _a.param; var clickHandler = _a.clickHandler;
|
|
30662
30841
|
return (React.createElement(Wrapper$1, { "data-testid": "RemovableTag" },
|
|
30663
30842
|
index > 0 && preposition && React.createElement(Preposition, null, preposition),
|
|
30664
|
-
React.createElement(Container$
|
|
30843
|
+
React.createElement(Container$d, null,
|
|
30665
30844
|
React.createElement(Text, null, label),
|
|
30666
30845
|
React.createElement(Button, { "aria-label": "Remove filter ".concat(label), onClick: clickHandler }, "x"))));
|
|
30667
30846
|
};
|
|
@@ -30681,7 +30860,7 @@ var NewsArticleListHeader = function (_a) {
|
|
|
30681
30860
|
var removeFilterValue = function (param, value) {
|
|
30682
30861
|
removeValueFromParam(param, value);
|
|
30683
30862
|
};
|
|
30684
|
-
return (React.createElement(Container$
|
|
30863
|
+
return (React.createElement(Container$e, { "data-testid": "NewsArticleListHeader" },
|
|
30685
30864
|
React.createElement(LeftCol, null,
|
|
30686
30865
|
totalResults,
|
|
30687
30866
|
" article",
|
|
@@ -30735,7 +30914,7 @@ var NewsArticleOldBanner = function (_a) {
|
|
|
30735
30914
|
React.createElement("strong", null, "1 year old")));
|
|
30736
30915
|
};
|
|
30737
30916
|
|
|
30738
|
-
const Container$
|
|
30917
|
+
const Container$c = styled.main`
|
|
30739
30918
|
padding-top: 30px;
|
|
30740
30919
|
|
|
30741
30920
|
a {
|
|
@@ -30762,35 +30941,6 @@ const Container$e = styled.main`
|
|
|
30762
30941
|
font-style: italic;
|
|
30763
30942
|
}
|
|
30764
30943
|
|
|
30765
|
-
ul, ol {
|
|
30766
|
-
margin: 20px 0 20px 20px;
|
|
30767
|
-
|
|
30768
|
-
li {
|
|
30769
|
-
margin-bottom: 5px;
|
|
30770
|
-
}
|
|
30771
|
-
}
|
|
30772
|
-
ul li {
|
|
30773
|
-
padding-left: 25px;
|
|
30774
|
-
position: relative;
|
|
30775
|
-
&:before {
|
|
30776
|
-
content: "";
|
|
30777
|
-
width: 7px;
|
|
30778
|
-
height: 7px;
|
|
30779
|
-
background: ${props => props.theme.theme_vars.colours.black};
|
|
30780
|
-
border-radius: 100%;
|
|
30781
|
-
position: absolute;
|
|
30782
|
-
left: 0;
|
|
30783
|
-
top: 10px;
|
|
30784
|
-
}
|
|
30785
|
-
}
|
|
30786
|
-
ol {
|
|
30787
|
-
list-style-type: decimal;
|
|
30788
|
-
padding-left: 10px;
|
|
30789
|
-
li {
|
|
30790
|
-
padding-left: 10px;
|
|
30791
|
-
}
|
|
30792
|
-
}
|
|
30793
|
-
|
|
30794
30944
|
sub, sup {
|
|
30795
30945
|
font-size: 75%;
|
|
30796
30946
|
line-height: 0;
|
|
@@ -30866,10 +31016,10 @@ const Container$e = styled.main`
|
|
|
30866
31016
|
*/
|
|
30867
31017
|
var PageMain = function (_a) {
|
|
30868
31018
|
var children = _a.children, classes = _a.classes, props = __rest(_a, ["children", "classes"]);
|
|
30869
|
-
return (React.createElement(Container$
|
|
31019
|
+
return (React.createElement(Container$c, __assign$2({ id: "main", className: classes }, props), children));
|
|
30870
31020
|
};
|
|
30871
31021
|
|
|
30872
|
-
const Container$
|
|
31022
|
+
const Container$b = styled.aside`
|
|
30873
31023
|
padding-top: 30px;
|
|
30874
31024
|
`;
|
|
30875
31025
|
|
|
@@ -30878,10 +31028,10 @@ const Container$d = styled.aside`
|
|
|
30878
31028
|
*/
|
|
30879
31029
|
var PageSidebar = function (_a) {
|
|
30880
31030
|
var children = _a.children;
|
|
30881
|
-
return (React.createElement(Container$
|
|
31031
|
+
return (React.createElement(Container$b, { className: "sidebar" }, children));
|
|
30882
31032
|
};
|
|
30883
31033
|
|
|
30884
|
-
const Container$
|
|
31034
|
+
const Container$a = styled.div`
|
|
30885
31035
|
padding-top: 30px;
|
|
30886
31036
|
|
|
30887
31037
|
h1 {
|
|
@@ -30894,10 +31044,10 @@ const Container$c = styled.div`
|
|
|
30894
31044
|
*/
|
|
30895
31045
|
var PageTitle = function (_a) {
|
|
30896
31046
|
var children = _a.children, classes = _a.classes, props = __rest(_a, ["children", "classes"]);
|
|
30897
|
-
return (React.createElement(Container$
|
|
31047
|
+
return (React.createElement(Container$a, __assign$2({ "data-testid": "title", className: classes }, props), children));
|
|
30898
31048
|
};
|
|
30899
31049
|
|
|
30900
|
-
const Container$
|
|
31050
|
+
const Container$9 = styled.div`
|
|
30901
31051
|
@media screen and (min-width: ${props => props.theme.theme_vars.breakpoints.m}){
|
|
30902
31052
|
display: flex;
|
|
30903
31053
|
flex-wrap: wrap;
|
|
@@ -30939,7 +31089,7 @@ const Container$b = styled.div`
|
|
|
30939
31089
|
*/
|
|
30940
31090
|
var PageWithSidebarContainer = function (_a) {
|
|
30941
31091
|
var _b = _a.sidebarLeft, sidebarLeft = _b === void 0 ? false : _b, children = _a.children;
|
|
30942
|
-
return (React.createElement(Container$
|
|
31092
|
+
return (React.createElement(Container$9, { sidebarLeft: sidebarLeft }, children));
|
|
30943
31093
|
};
|
|
30944
31094
|
|
|
30945
31095
|
const backgroundDecider = props => {
|
|
@@ -30958,14 +31108,14 @@ const backgroundDecider = props => {
|
|
|
30958
31108
|
};
|
|
30959
31109
|
|
|
30960
31110
|
|
|
30961
|
-
const Container$
|
|
31111
|
+
const Container$8 = styled.div`
|
|
30962
31112
|
${backgroundDecider};
|
|
30963
31113
|
padding-top: 1.5em;
|
|
30964
31114
|
`;
|
|
30965
31115
|
|
|
30966
31116
|
var PageWrapper = function (_a) {
|
|
30967
31117
|
var colour = _a.colour, children = _a.children;
|
|
30968
|
-
return (React.createElement(Container$
|
|
31118
|
+
return (React.createElement(Container$8, { "data-testid": "PageWrapper", colour: colour }, children));
|
|
30969
31119
|
};
|
|
30970
31120
|
|
|
30971
31121
|
const Wrapper = styled.div`
|
|
@@ -31031,7 +31181,7 @@ var PhaseBanner = function (_a) {
|
|
|
31031
31181
|
React.createElement(PhaseText, null, "This site is new and we are improving it every day."))));
|
|
31032
31182
|
};
|
|
31033
31183
|
|
|
31034
|
-
const Container$
|
|
31184
|
+
const Container$7 = styled.div`
|
|
31035
31185
|
${props => props.theme.fontStyles};
|
|
31036
31186
|
`;
|
|
31037
31187
|
|
|
@@ -31185,11 +31335,11 @@ var SignpostLinksList = function (_a) {
|
|
|
31185
31335
|
var SearchResultsList = function (_a) {
|
|
31186
31336
|
var searchTerm = _a.searchTerm, results = _a.results, _b = _a.totalResults, totalResults = _b === void 0 ? 0 : _b, _c = _a.pageNumber, pageNumber = _c === void 0 ? 0 : _c;
|
|
31187
31337
|
if (totalResults === 0) {
|
|
31188
|
-
return (React.createElement(Container$
|
|
31338
|
+
return (React.createElement(Container$7, { "data-testid": "SearchResultsList" },
|
|
31189
31339
|
React.createElement(ResultInfo, null, "No results found")));
|
|
31190
31340
|
}
|
|
31191
31341
|
else {
|
|
31192
|
-
return (React.createElement(Container$
|
|
31342
|
+
return (React.createElement(Container$7, { "data-testid": "SearchResultsList" },
|
|
31193
31343
|
React.createElement(ResultInfo, null,
|
|
31194
31344
|
(pageNumber) > 1 && ("Page " + (pageNumber) + " of "),
|
|
31195
31345
|
totalResults,
|
|
@@ -31218,7 +31368,7 @@ var SearchResultsList = function (_a) {
|
|
|
31218
31368
|
}
|
|
31219
31369
|
};
|
|
31220
31370
|
|
|
31221
|
-
const Container$
|
|
31371
|
+
const Container$6 = styled.div``;
|
|
31222
31372
|
|
|
31223
31373
|
const SectionTitle$1 = styled(Heading)`
|
|
31224
31374
|
background: ${(props) =>
|
|
@@ -31342,7 +31492,7 @@ styled.img`
|
|
|
31342
31492
|
*/
|
|
31343
31493
|
var SectionLinks = function (_a) {
|
|
31344
31494
|
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;
|
|
31345
|
-
return (React.createElement(Container$
|
|
31495
|
+
return (React.createElement(Container$6, { id: sectionSlug, "data-testid": "SectionLinks" },
|
|
31346
31496
|
displayTitle ? React.createElement(SectionTitle$1, { text: sectionTitle }) : React.createElement("br", null),
|
|
31347
31497
|
React.createElement(LinksList$1, null,
|
|
31348
31498
|
pageLinksArray.map(function (link, i) {
|
|
@@ -31357,7 +31507,7 @@ var SectionLinks = function (_a) {
|
|
|
31357
31507
|
pageLinksArray.length > 1 && (pageLinksArray.length + 1) % 3 === 0 && React.createElement(PagelinkBlank$1, null))));
|
|
31358
31508
|
};
|
|
31359
31509
|
|
|
31360
|
-
const Container$
|
|
31510
|
+
const Container$5 = styled.aside`
|
|
31361
31511
|
padding-top: 20px;
|
|
31362
31512
|
display: block;
|
|
31363
31513
|
|
|
@@ -31441,7 +31591,7 @@ const InlineLink = styled.a`
|
|
|
31441
31591
|
|
|
31442
31592
|
var SectionLinksMobileContents = function (_a) {
|
|
31443
31593
|
var sectionLinksArray = _a.sectionLinksArray;
|
|
31444
|
-
return (React.createElement(Container$
|
|
31594
|
+
return (React.createElement(Container$5, null,
|
|
31445
31595
|
React.createElement(Contents, null,
|
|
31446
31596
|
React.createElement(ContentsTitle, null, "Contents"),
|
|
31447
31597
|
React.createElement(ContentsList, null, sectionLinksArray.map(function (link) {
|
|
@@ -31450,7 +31600,7 @@ var SectionLinksMobileContents = function (_a) {
|
|
|
31450
31600
|
})))));
|
|
31451
31601
|
};
|
|
31452
31602
|
|
|
31453
|
-
const Container$
|
|
31603
|
+
const Container$4 = styled.div`
|
|
31454
31604
|
${props => props.theme.fontStyles}
|
|
31455
31605
|
background-color: ${props => props.theme.theme_vars.colours.action_light};
|
|
31456
31606
|
border-radius: ${props => props.theme.theme_vars.border_radius};
|
|
@@ -31605,7 +31755,7 @@ const ListItemLink = styled.a`
|
|
|
31605
31755
|
var SectionLinksSidebar = function (_a) {
|
|
31606
31756
|
var Title = _a.Title, Sections = _a.Sections;
|
|
31607
31757
|
var _b = useState(false), open = _b[0], setOpen = _b[1];
|
|
31608
|
-
return (React.createElement(Container$
|
|
31758
|
+
return (React.createElement(Container$4, { "data-testid": "SectionLinksSidebar" },
|
|
31609
31759
|
React.createElement(MobileTitleButton, { onClick: function () { return open ? setOpen(false) : setOpen(true); } },
|
|
31610
31760
|
Title,
|
|
31611
31761
|
React.createElement(IconWrapper$1, null,
|
|
@@ -31622,7 +31772,7 @@ var SectionLinksSidebar = function (_a) {
|
|
|
31622
31772
|
}))));
|
|
31623
31773
|
};
|
|
31624
31774
|
|
|
31625
|
-
const Container$
|
|
31775
|
+
const Container$3 = styled.div`
|
|
31626
31776
|
position: relative;
|
|
31627
31777
|
`;
|
|
31628
31778
|
|
|
@@ -31752,78 +31902,6 @@ const Separator = styled.div`
|
|
|
31752
31902
|
padding-bottom: ${(props) => (props.margin ? props.theme.theme_vars.spacingSizes.medium : 0)};
|
|
31753
31903
|
`;
|
|
31754
31904
|
|
|
31755
|
-
const Container$4 = styled.div`
|
|
31756
|
-
box-sizing: border-box;
|
|
31757
|
-
display: flex;
|
|
31758
|
-
flex-wrap: wrap;
|
|
31759
|
-
flex-direction: row;
|
|
31760
|
-
justify-content: start;
|
|
31761
|
-
align-items: stretch;
|
|
31762
|
-
margin: 0;
|
|
31763
|
-
border: ${(props) => (props.hasBorder ? `1px solid ${props.theme.theme_vars.colours.grey}` : 'none')};
|
|
31764
|
-
`;
|
|
31765
|
-
|
|
31766
|
-
var Row = function (_a) {
|
|
31767
|
-
var _b = _a.hasBorder, hasBorder = _b === void 0 ? false : _b, children = _a.children;
|
|
31768
|
-
return (React.createElement(Container$4, { "data-testid": "Row", hasBorder: hasBorder }, children));
|
|
31769
|
-
};
|
|
31770
|
-
|
|
31771
|
-
const calculateWidth = (size) => {
|
|
31772
|
-
switch (size) {
|
|
31773
|
-
case 'full':
|
|
31774
|
-
return css`
|
|
31775
|
-
width: 100%;
|
|
31776
|
-
`;
|
|
31777
|
-
case 'one-half':
|
|
31778
|
-
return css`
|
|
31779
|
-
width: 50%;
|
|
31780
|
-
`;
|
|
31781
|
-
case 'one-third':
|
|
31782
|
-
return css`
|
|
31783
|
-
width: 33.333%;
|
|
31784
|
-
`;
|
|
31785
|
-
case 'two-thirds':
|
|
31786
|
-
return css`
|
|
31787
|
-
width: 66.666%;
|
|
31788
|
-
`;
|
|
31789
|
-
case 'one-quarter':
|
|
31790
|
-
return css`
|
|
31791
|
-
width: 25%;
|
|
31792
|
-
`;
|
|
31793
|
-
case 'three-quarters':
|
|
31794
|
-
return css`
|
|
31795
|
-
width: 75%;
|
|
31796
|
-
`;
|
|
31797
|
-
}
|
|
31798
|
-
};
|
|
31799
|
-
|
|
31800
|
-
const widths = (props) => {
|
|
31801
|
-
return css`
|
|
31802
|
-
${calculateWidth(props.small)};
|
|
31803
|
-
|
|
31804
|
-
@media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.m}) {
|
|
31805
|
-
${calculateWidth(props.medium)};
|
|
31806
|
-
}
|
|
31807
|
-
|
|
31808
|
-
@media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.l}) {
|
|
31809
|
-
${calculateWidth(props.large)};
|
|
31810
|
-
}
|
|
31811
|
-
`;
|
|
31812
|
-
};
|
|
31813
|
-
|
|
31814
|
-
const Container$3 = styled.div`
|
|
31815
|
-
box-sizing: border-box;
|
|
31816
|
-
display: block;
|
|
31817
|
-
padding: ${(props) => (props.hasPadding ? props.theme.theme_vars.spacingSizes.small : `0`)};
|
|
31818
|
-
border: ${(props) => (props.hasBorder ? `1px solid ${props.theme.theme_vars.colours.negative}` : 'none')};
|
|
31819
|
-
${widths};
|
|
31820
|
-
`;
|
|
31821
|
-
|
|
31822
|
-
var Column = function (_a) {
|
|
31823
|
-
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;
|
|
31824
|
-
return (React.createElement(Container$3, { "data-testid": "Column", small: small, medium: medium, large: large, hasPadding: hasPadding, hasBorder: hasBorder }, children));
|
|
31825
|
-
};
|
|
31826
|
-
|
|
31827
31905
|
var ServiceLinksBoxed = function (_a) {
|
|
31828
31906
|
var serviceLinksArray = _a.serviceLinksArray; _a.serviceId;
|
|
31829
31907
|
var _b = useState(null), activeServiceLink = _b[0], setActiveServiceLink = _b[1];
|
|
@@ -31845,7 +31923,7 @@ var ServiceLinksBoxed = function (_a) {
|
|
|
31845
31923
|
var _a;
|
|
31846
31924
|
return (_a = refs.current[index]) !== null && _a !== void 0 ? _a : React.createRef();
|
|
31847
31925
|
});
|
|
31848
|
-
return (React.createElement(Container$
|
|
31926
|
+
return (React.createElement(Container$3, { "data-testid": "ServiceLinksBoxed" },
|
|
31849
31927
|
React.createElement(Row, null, serviceLinksArray.map(function (serviceLink, index) {
|
|
31850
31928
|
var _a;
|
|
31851
31929
|
return (React.createElement(Column, { small: "full", medium: "one-half", large: "one-third", key: index },
|
|
@@ -31919,6 +31997,7 @@ const PagelinkBlank = styled.div`
|
|
|
31919
31997
|
const PagelinkInner = styled.div`
|
|
31920
31998
|
padding-left: 76px;
|
|
31921
31999
|
`;
|
|
32000
|
+
|
|
31922
32001
|
const PromotedLink = css`
|
|
31923
32002
|
// display: block;
|
|
31924
32003
|
background: ${(props) => props.theme.theme_vars.colours.white};
|
|
@@ -32038,6 +32117,7 @@ const QuicklinkList = styled.ul`
|
|
|
32038
32117
|
display: none;
|
|
32039
32118
|
margin: 0 !important;
|
|
32040
32119
|
padding: 0 !important;
|
|
32120
|
+
list-style-type: none;
|
|
32041
32121
|
|
|
32042
32122
|
@media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.s}) {
|
|
32043
32123
|
display: block;
|
|
@@ -32085,6 +32165,7 @@ const Quicklink = styled.a`
|
|
|
32085
32165
|
${(props) => props.theme.linkStylesActive}
|
|
32086
32166
|
}
|
|
32087
32167
|
`;
|
|
32168
|
+
|
|
32088
32169
|
const ViewMoreButtonContainer = styled.div`
|
|
32089
32170
|
text-align: center;
|
|
32090
32171
|
margin-top: 30px;
|
|
@@ -32150,6 +32231,7 @@ const ReorderControl = styled.div`
|
|
|
32150
32231
|
text-align: right;
|
|
32151
32232
|
}
|
|
32152
32233
|
`;
|
|
32234
|
+
|
|
32153
32235
|
const ReorderButton = styled.button`
|
|
32154
32236
|
background: transparent;
|
|
32155
32237
|
border: 2px solid ${(props) => props.theme.theme_vars.colours.action};
|
|
@@ -33185,5 +33267,155 @@ const north_theme = generate_theme(north_vars);
|
|
|
33185
33267
|
const lb_theme_north = generate_theme(lb_vars_north);
|
|
33186
33268
|
const lb_theme_west = generate_theme(lb_vars_west);
|
|
33187
33269
|
|
|
33188
|
-
|
|
33270
|
+
/**
|
|
33271
|
+
* Global style reset
|
|
33272
|
+
* Based upon http://meyerweb.com/eric/tools/css/reset/ with additions to return
|
|
33273
|
+
* lists to sane settings. Use for styles common to all themes.
|
|
33274
|
+
*/
|
|
33275
|
+
const GlobalStyleReset = createGlobalStyle`
|
|
33276
|
+
html {
|
|
33277
|
+
box-sizing: border-box;
|
|
33278
|
+
}
|
|
33279
|
+
*,
|
|
33280
|
+
*:before,
|
|
33281
|
+
*:after {
|
|
33282
|
+
box-sizing: inherit;
|
|
33283
|
+
}
|
|
33284
|
+
|
|
33285
|
+
html,
|
|
33286
|
+
body,
|
|
33287
|
+
div,
|
|
33288
|
+
span,
|
|
33289
|
+
applet,
|
|
33290
|
+
object,
|
|
33291
|
+
iframe,
|
|
33292
|
+
h1,
|
|
33293
|
+
h2,
|
|
33294
|
+
h3,
|
|
33295
|
+
h4,
|
|
33296
|
+
h5,
|
|
33297
|
+
h6,
|
|
33298
|
+
p,
|
|
33299
|
+
blockquote,
|
|
33300
|
+
pre,
|
|
33301
|
+
a,
|
|
33302
|
+
abbr,
|
|
33303
|
+
acronym,
|
|
33304
|
+
address,
|
|
33305
|
+
big,
|
|
33306
|
+
cite,
|
|
33307
|
+
code,
|
|
33308
|
+
del,
|
|
33309
|
+
dfn,
|
|
33310
|
+
em,
|
|
33311
|
+
img,
|
|
33312
|
+
ins,
|
|
33313
|
+
kbd,
|
|
33314
|
+
q,
|
|
33315
|
+
s,
|
|
33316
|
+
samp,
|
|
33317
|
+
small,
|
|
33318
|
+
strike,
|
|
33319
|
+
strong,
|
|
33320
|
+
sub,
|
|
33321
|
+
sup,
|
|
33322
|
+
tt,
|
|
33323
|
+
var,
|
|
33324
|
+
b,
|
|
33325
|
+
u,
|
|
33326
|
+
i,
|
|
33327
|
+
center,
|
|
33328
|
+
dl,
|
|
33329
|
+
dt,
|
|
33330
|
+
dd,
|
|
33331
|
+
ol,
|
|
33332
|
+
ul,
|
|
33333
|
+
li,
|
|
33334
|
+
fieldset,
|
|
33335
|
+
form,
|
|
33336
|
+
label,
|
|
33337
|
+
legend,
|
|
33338
|
+
table,
|
|
33339
|
+
caption,
|
|
33340
|
+
tbody,
|
|
33341
|
+
tfoot,
|
|
33342
|
+
thead,
|
|
33343
|
+
tr,
|
|
33344
|
+
th,
|
|
33345
|
+
td,
|
|
33346
|
+
article,
|
|
33347
|
+
aside,
|
|
33348
|
+
canvas,
|
|
33349
|
+
details,
|
|
33350
|
+
embed,
|
|
33351
|
+
figure,
|
|
33352
|
+
figcaption,
|
|
33353
|
+
footer,
|
|
33354
|
+
header,
|
|
33355
|
+
hgroup,
|
|
33356
|
+
menu,
|
|
33357
|
+
nav,
|
|
33358
|
+
output,
|
|
33359
|
+
ruby,
|
|
33360
|
+
section,
|
|
33361
|
+
summary,
|
|
33362
|
+
time,
|
|
33363
|
+
mark,
|
|
33364
|
+
audio,
|
|
33365
|
+
video {
|
|
33366
|
+
margin: 0;
|
|
33367
|
+
padding: 0;
|
|
33368
|
+
border: 0;
|
|
33369
|
+
font-size: 100%;
|
|
33370
|
+
font: inherit;
|
|
33371
|
+
vertical-align: baseline;
|
|
33372
|
+
}
|
|
33373
|
+
/* HTML5 display-role reset for older browsers */
|
|
33374
|
+
article,
|
|
33375
|
+
aside,
|
|
33376
|
+
details,
|
|
33377
|
+
figcaption,
|
|
33378
|
+
figure,
|
|
33379
|
+
footer,
|
|
33380
|
+
header,
|
|
33381
|
+
hgroup,
|
|
33382
|
+
menu,
|
|
33383
|
+
nav,
|
|
33384
|
+
section {
|
|
33385
|
+
display: block;
|
|
33386
|
+
}
|
|
33387
|
+
body {
|
|
33388
|
+
line-height: 1;
|
|
33389
|
+
}
|
|
33390
|
+
ol {
|
|
33391
|
+
list-style: decimal outside;
|
|
33392
|
+
margin: 1rem 0rem 1rem 1.25rem;
|
|
33393
|
+
}
|
|
33394
|
+
ul {
|
|
33395
|
+
list-style: disc outside;
|
|
33396
|
+
margin: 1rem 0rem 1rem 1.25rem;
|
|
33397
|
+
}
|
|
33398
|
+
li {
|
|
33399
|
+
position: relative;
|
|
33400
|
+
left: 1.25rem;
|
|
33401
|
+
padding-right: 1.25rem;
|
|
33402
|
+
}
|
|
33403
|
+
blockquote,
|
|
33404
|
+
q {
|
|
33405
|
+
quotes: none;
|
|
33406
|
+
}
|
|
33407
|
+
blockquote:before,
|
|
33408
|
+
blockquote:after,
|
|
33409
|
+
q:before,
|
|
33410
|
+
q:after {
|
|
33411
|
+
content: '';
|
|
33412
|
+
content: none;
|
|
33413
|
+
}
|
|
33414
|
+
table {
|
|
33415
|
+
border-collapse: collapse;
|
|
33416
|
+
border-spacing: 0;
|
|
33417
|
+
}
|
|
33418
|
+
`;
|
|
33419
|
+
|
|
33420
|
+
export { AccessibleLink as AccessibleLinks, Accordion, AlertBanner, AlertBannerService, Autocomplete, BlockQuote, Breadcrumbs, Button$2 as Button, CallToAction, Cards, CheckboxListFilter, Contents$1 as Contents, ContentsNavigation, CookieBanner, DisplayDate, Divider, DownloadableFiles, DropDownFilter, DynamicIcon, Footer, FullWidthContainer, GDS_theme, GlobalStyleReset, GoogleMap, Header, Heading, HeadingWithIcon, HeroImage, HomeHero, HomeUnitarySection, Image$2 as Image, MaxWidthContainer, MemorialHero, NewsArticleDate, NewsArticleFeaturedBlock, NewsArticleFilterAccordion, NewsArticleImage, NewsArticleList, NewsArticleListHeader, NewsArticleOldBanner, PageMain, PageSidebar, PageTitle, PageWithSidebarContainer, PageWrapper, Pagination, PhaseBanner, PromoBanner, PromoBlock, PromotedLinks, Promotions, SearchResultsList, Searchbar, SectionLinks, SectionLinksMobileContents, SectionLinksSidebar, ServiceLinksBoxed, ServicesLinksList, SignpostLinks, SkipToMainContent, Summary, TextInput, Video, WarningText, WarningTextDisclaimer, lb_theme_north, lb_theme_west, north_theme, west_theme };
|
|
33189
33421
|
//# sourceMappingURL=index.esm.js.map
|