northants-design-system 0.2.18 → 0.2.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/index.esm.js +316 -183
- package/build/index.esm.js.map +1 -1
- package/build/index.js +316 -181
- package/build/index.js.map +1 -1
- package/build/library/pages/ServicePageExample/ServicePageExample.d.ts +3 -1
- package/build/library/structure/Contents/Contents.storydata.d.ts +1 -1
- package/build/library/structure/Header/Header.types.d.ts +4 -0
- package/build/library/structure/PageStructures.d.ts +3 -1
- package/package.json +1 -1
package/build/index.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { cloneElement, Component, useState, useContext, useEffect } from 'react';
|
|
1
|
+
import React, { cloneElement, Component, useState, useContext, useEffect, useRef } from 'react';
|
|
2
2
|
import styled, { css, ThemeContext, ThemeProvider } from 'styled-components';
|
|
3
3
|
import require$$0$3 from 'tty';
|
|
4
4
|
import require$$2 from 'path';
|
|
@@ -5422,7 +5422,7 @@ var Heading = function (_a) {
|
|
|
5422
5422
|
return null;
|
|
5423
5423
|
};
|
|
5424
5424
|
|
|
5425
|
-
const HeadingWrapper = styled.
|
|
5425
|
+
const HeadingWrapper = styled.div`
|
|
5426
5426
|
display: flex;
|
|
5427
5427
|
-webkit-flex-direction: row;
|
|
5428
5428
|
-moz-flex-direction: row;
|
|
@@ -5469,7 +5469,7 @@ var HeadingWithIcon = function (_a) {
|
|
|
5469
5469
|
React.createElement(Heading, { text: text, level: level })));
|
|
5470
5470
|
};
|
|
5471
5471
|
|
|
5472
|
-
const Container$
|
|
5472
|
+
const Container$R = styled.div`
|
|
5473
5473
|
${props => props.theme.fontStyles};
|
|
5474
5474
|
display: block;
|
|
5475
5475
|
border-top: 1px solid ${props => props.theme.theme_vars.colours.grey};
|
|
@@ -6228,7 +6228,7 @@ var Pagination = function (_a) {
|
|
|
6228
6228
|
handleParams(postTo, [{ key: 'page', value: pageNo }]);
|
|
6229
6229
|
};
|
|
6230
6230
|
if (numbers.length > 1) {
|
|
6231
|
-
return (React.createElement(Container$
|
|
6231
|
+
return (React.createElement(Container$R, { "data-testid": "Pagination", role: "navigation", "aria-label": "Pagination" },
|
|
6232
6232
|
currentPage !== 1 &&
|
|
6233
6233
|
React.createElement(Previous, { onClick: function () { return buttonClick(currentPage - 1); }, title: "Go back a page" }, "Previous"),
|
|
6234
6234
|
React.createElement(NumbersContainer, null, numbers.map(function (v, i) {
|
|
@@ -6243,7 +6243,7 @@ var Pagination = function (_a) {
|
|
|
6243
6243
|
return null;
|
|
6244
6244
|
};
|
|
6245
6245
|
|
|
6246
|
-
const Container$
|
|
6246
|
+
const Container$Q = styled.div`
|
|
6247
6247
|
${props => props.theme.fontStyles};
|
|
6248
6248
|
margin-bottom: 30px;
|
|
6249
6249
|
`;
|
|
@@ -6417,7 +6417,7 @@ var CheckboxListFilter = function (_a) {
|
|
|
6417
6417
|
handleParams('news', [{ key: NewsArticleFilterFields.articleType.queryParamKey, value: articleTypes }], ["page"]);
|
|
6418
6418
|
};
|
|
6419
6419
|
var backupLabel = Math.random().toString(36).substring(7);
|
|
6420
|
-
return (React.createElement(Container$
|
|
6420
|
+
return (React.createElement(Container$Q, { "data-testid": "CheckboxListFilter" },
|
|
6421
6421
|
React.createElement(Fieldset, { "aria-describedby": "waste-hint" },
|
|
6422
6422
|
React.createElement(Legend, { labelHidden: labelHidden }, label),
|
|
6423
6423
|
React.createElement(Hint, { id: "waste-hint", hintHidden: hintHidden }, hint),
|
|
@@ -6428,7 +6428,7 @@ var CheckboxListFilter = function (_a) {
|
|
|
6428
6428
|
})))));
|
|
6429
6429
|
};
|
|
6430
6430
|
|
|
6431
|
-
const Container$
|
|
6431
|
+
const Container$P = styled.div`
|
|
6432
6432
|
${props => props.theme.fontStyles};
|
|
6433
6433
|
`;
|
|
6434
6434
|
|
|
@@ -6473,7 +6473,7 @@ const Option = styled.option`
|
|
|
6473
6473
|
|
|
6474
6474
|
var DropDownSelect = function (_a) {
|
|
6475
6475
|
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;
|
|
6476
|
-
return (React.createElement(Container$
|
|
6476
|
+
return (React.createElement(Container$P, null,
|
|
6477
6477
|
React.createElement(Label$1, { htmlFor: id, hideLabel: hideLabel }, label),
|
|
6478
6478
|
React.createElement(Select, { id: id, name: id, onChange: onChange && onChange, defaultValue: selected && selected }, options.map(function (option, i) {
|
|
6479
6479
|
return React.createElement(Option, { key: i, value: option.value }, option.title);
|
|
@@ -6605,7 +6605,7 @@ var TextInput = function (_a) {
|
|
|
6605
6605
|
|
|
6606
6606
|
// Accordion
|
|
6607
6607
|
|
|
6608
|
-
const Container$
|
|
6608
|
+
const Container$O = styled.div`
|
|
6609
6609
|
${(props) => props.theme.fontStyles}
|
|
6610
6610
|
margin-bottom: 20px;
|
|
6611
6611
|
border-bottom: 1px solid ${(props) => props.theme.theme_vars.colours.grey};
|
|
@@ -6887,7 +6887,7 @@ var Accordion = function (_a) {
|
|
|
6887
6887
|
setAccordionStates(newStatus);
|
|
6888
6888
|
};
|
|
6889
6889
|
var accordionId = "accordion".concat(uniqueID());
|
|
6890
|
-
return (React.createElement(Container$
|
|
6890
|
+
return (React.createElement(Container$O, { "data-testid": "Accordion", id: accordionId },
|
|
6891
6891
|
showControls && sections.length > 1 && (React.createElement(AccordionControls, null,
|
|
6892
6892
|
React.createElement(OpenAllButton, { onClick: toggleAll, type: "button", "aria-expanded": !openAll },
|
|
6893
6893
|
openAll ? 'Open all' : 'Close all',
|
|
@@ -6938,7 +6938,7 @@ var BlockQuote = function (_a) {
|
|
|
6938
6938
|
citation && React.createElement(Citation, null, citation)));
|
|
6939
6939
|
};
|
|
6940
6940
|
|
|
6941
|
-
const Container$
|
|
6941
|
+
const Container$N = styled.div`
|
|
6942
6942
|
margin-bottom: 30px;
|
|
6943
6943
|
display: block;
|
|
6944
6944
|
|
|
@@ -6953,11 +6953,11 @@ const Container$L = styled.div`
|
|
|
6953
6953
|
*/
|
|
6954
6954
|
var CallToAction = function (_a) {
|
|
6955
6955
|
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"]);
|
|
6956
|
-
return (React.createElement(Container$
|
|
6956
|
+
return (React.createElement(Container$N, null,
|
|
6957
6957
|
React.createElement(Button$2, { primary: primary, size: "large", text: text, url: url, isExternal: isExternal, isDisabled: isDisabled })));
|
|
6958
6958
|
};
|
|
6959
6959
|
|
|
6960
|
-
const Container$
|
|
6960
|
+
const Container$M = styled.div`
|
|
6961
6961
|
margin: 25px 0;
|
|
6962
6962
|
`;
|
|
6963
6963
|
|
|
@@ -6979,7 +6979,7 @@ const Outer = styled.div`
|
|
|
6979
6979
|
}
|
|
6980
6980
|
}
|
|
6981
6981
|
`;
|
|
6982
|
-
const Link$
|
|
6982
|
+
const Link$3 = styled.a`
|
|
6983
6983
|
margin-bottom: 15px;
|
|
6984
6984
|
display: block;
|
|
6985
6985
|
width: fit-content;
|
|
@@ -7066,7 +7066,7 @@ var FileDownload = function (_a) {
|
|
|
7066
7066
|
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"]);
|
|
7067
7067
|
var _c = useState(false); _c[0]; var setIsHovered = _c[1];
|
|
7068
7068
|
return (React.createElement(Outer, { "data-testid": "FileDownload" },
|
|
7069
|
-
React.createElement(Link$
|
|
7069
|
+
React.createElement(Link$3, { href: url, download: true, onMouseEnter: function () { return setIsHovered(true); }, onMouseLeave: function () { return setIsHovered(false); }, rel: archived ? 'archived' : '' },
|
|
7070
7070
|
React.createElement(IconDownload$2, null),
|
|
7071
7071
|
React.createElement(FileDetails, { className: "file-details" },
|
|
7072
7072
|
React.createElement(Title$7, { className: "file-title" }, title),
|
|
@@ -7080,7 +7080,7 @@ var FileDownload = function (_a) {
|
|
|
7080
7080
|
|
|
7081
7081
|
var DownloadableFiles = function (_a) {
|
|
7082
7082
|
var files = _a.files;
|
|
7083
|
-
return (React.createElement(Container$
|
|
7083
|
+
return (React.createElement(Container$M, { "data-testid": "DownloadableFiles" }, files.length > 0 ?
|
|
7084
7084
|
files.map(function (file) { return React.createElement(FileDownload, __assign$2({ key: file.title }, file)); })
|
|
7085
7085
|
:
|
|
7086
7086
|
React.createElement("i", null, "No file to show")));
|
|
@@ -7216,7 +7216,7 @@ const wereCookiesAccepted = (cookiesAcceptedOverride) => {
|
|
|
7216
7216
|
return false;
|
|
7217
7217
|
};
|
|
7218
7218
|
|
|
7219
|
-
const Container$
|
|
7219
|
+
const Container$L = styled.div`
|
|
7220
7220
|
border: solid 4px;
|
|
7221
7221
|
border-radius: ${(props) => props.theme.theme_vars.border_radius};
|
|
7222
7222
|
border-color: ${(props) =>
|
|
@@ -7270,7 +7270,7 @@ const InnerContainer$2 = styled.div`
|
|
|
7270
7270
|
*/
|
|
7271
7271
|
var AlertBannerService = function (_a) {
|
|
7272
7272
|
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;
|
|
7273
|
-
return (React.createElement(Container$
|
|
7273
|
+
return (React.createElement(Container$L, { alertType: alertType, "data-testid": "AlertBannerService", hasTopSpacing: hasTopSpacing },
|
|
7274
7274
|
React.createElement(InnerContainer$2, { "data-testid": "AlertBannerServiceInner" },
|
|
7275
7275
|
(title === null || title === void 0 ? void 0 : title.trim()) && React.createElement(Heading, { text: title }),
|
|
7276
7276
|
children)));
|
|
@@ -17003,7 +17003,7 @@ function markDirtyUp(node) {
|
|
|
17003
17003
|
}
|
|
17004
17004
|
}
|
|
17005
17005
|
|
|
17006
|
-
class Container$
|
|
17006
|
+
class Container$K extends Node$1 {
|
|
17007
17007
|
push(child) {
|
|
17008
17008
|
child.parent = this;
|
|
17009
17009
|
this.proxyOf.nodes.push(child);
|
|
@@ -17296,7 +17296,7 @@ class Container$I extends Node$1 {
|
|
|
17296
17296
|
|
|
17297
17297
|
let processed = nodes.map(i => {
|
|
17298
17298
|
/* c8 ignore next */
|
|
17299
|
-
if (!i[my$1]) Container$
|
|
17299
|
+
if (!i[my$1]) Container$K.rebuild(i);
|
|
17300
17300
|
i = i.proxyOf;
|
|
17301
17301
|
if (i.parent) i.parent.removeChild(i);
|
|
17302
17302
|
if (i[isClean$1]) markDirtyUp(i);
|
|
@@ -17374,23 +17374,23 @@ class Container$I extends Node$1 {
|
|
|
17374
17374
|
}
|
|
17375
17375
|
}
|
|
17376
17376
|
|
|
17377
|
-
Container$
|
|
17377
|
+
Container$K.registerParse = dependant => {
|
|
17378
17378
|
parse$4 = dependant;
|
|
17379
17379
|
};
|
|
17380
17380
|
|
|
17381
|
-
Container$
|
|
17381
|
+
Container$K.registerRule = dependant => {
|
|
17382
17382
|
Rule$4 = dependant;
|
|
17383
17383
|
};
|
|
17384
17384
|
|
|
17385
|
-
Container$
|
|
17385
|
+
Container$K.registerAtRule = dependant => {
|
|
17386
17386
|
AtRule$4 = dependant;
|
|
17387
17387
|
};
|
|
17388
17388
|
|
|
17389
|
-
var container = Container$
|
|
17390
|
-
Container$
|
|
17389
|
+
var container = Container$K;
|
|
17390
|
+
Container$K.default = Container$K;
|
|
17391
17391
|
|
|
17392
17392
|
/* c8 ignore start */
|
|
17393
|
-
Container$
|
|
17393
|
+
Container$K.rebuild = node => {
|
|
17394
17394
|
if (node.type === 'atrule') {
|
|
17395
17395
|
Object.setPrototypeOf(node, AtRule$4.prototype);
|
|
17396
17396
|
} else if (node.type === 'rule') {
|
|
@@ -17405,16 +17405,16 @@ Container$I.rebuild = node => {
|
|
|
17405
17405
|
|
|
17406
17406
|
if (node.nodes) {
|
|
17407
17407
|
node.nodes.forEach(child => {
|
|
17408
|
-
Container$
|
|
17408
|
+
Container$K.rebuild(child);
|
|
17409
17409
|
});
|
|
17410
17410
|
}
|
|
17411
17411
|
};
|
|
17412
17412
|
|
|
17413
|
-
let Container$
|
|
17413
|
+
let Container$J = container;
|
|
17414
17414
|
|
|
17415
17415
|
let LazyResult$4, Processor$3;
|
|
17416
17416
|
|
|
17417
|
-
class Document$3 extends Container$
|
|
17417
|
+
class Document$3 extends Container$J {
|
|
17418
17418
|
constructor(defaults) {
|
|
17419
17419
|
// type needs to be passed to super, otherwise child roots won't be normalized correctly
|
|
17420
17420
|
super({ type: 'document', ...defaults });
|
|
@@ -17532,9 +17532,9 @@ class Result$4 {
|
|
|
17532
17532
|
var result = Result$4;
|
|
17533
17533
|
Result$4.default = Result$4;
|
|
17534
17534
|
|
|
17535
|
-
let Container$
|
|
17535
|
+
let Container$I = container;
|
|
17536
17536
|
|
|
17537
|
-
class AtRule$3 extends Container$
|
|
17537
|
+
class AtRule$3 extends Container$I {
|
|
17538
17538
|
constructor(defaults) {
|
|
17539
17539
|
super(defaults);
|
|
17540
17540
|
this.type = 'atrule';
|
|
@@ -17554,13 +17554,13 @@ class AtRule$3 extends Container$G {
|
|
|
17554
17554
|
var atRule = AtRule$3;
|
|
17555
17555
|
AtRule$3.default = AtRule$3;
|
|
17556
17556
|
|
|
17557
|
-
Container$
|
|
17557
|
+
Container$I.registerAtRule(AtRule$3);
|
|
17558
17558
|
|
|
17559
|
-
let Container$
|
|
17559
|
+
let Container$H = container;
|
|
17560
17560
|
|
|
17561
17561
|
let LazyResult$3, Processor$2;
|
|
17562
17562
|
|
|
17563
|
-
class Root$5 extends Container$
|
|
17563
|
+
class Root$5 extends Container$H {
|
|
17564
17564
|
constructor(defaults) {
|
|
17565
17565
|
super(defaults);
|
|
17566
17566
|
this.type = 'root';
|
|
@@ -17669,10 +17669,10 @@ let list$2 = {
|
|
|
17669
17669
|
var list_1 = list$2;
|
|
17670
17670
|
list$2.default = list$2;
|
|
17671
17671
|
|
|
17672
|
-
let Container$
|
|
17672
|
+
let Container$G = container;
|
|
17673
17673
|
let list$1 = list_1;
|
|
17674
17674
|
|
|
17675
|
-
class Rule$3 extends Container$
|
|
17675
|
+
class Rule$3 extends Container$G {
|
|
17676
17676
|
constructor(defaults) {
|
|
17677
17677
|
super(defaults);
|
|
17678
17678
|
this.type = 'rule';
|
|
@@ -17693,7 +17693,7 @@ class Rule$3 extends Container$E {
|
|
|
17693
17693
|
var rule = Rule$3;
|
|
17694
17694
|
Rule$3.default = Rule$3;
|
|
17695
17695
|
|
|
17696
|
-
Container$
|
|
17696
|
+
Container$G.registerRule(Rule$3);
|
|
17697
17697
|
|
|
17698
17698
|
let Declaration$2 = declaration;
|
|
17699
17699
|
let tokenizer = tokenize;
|
|
@@ -18297,7 +18297,7 @@ class Parser$1 {
|
|
|
18297
18297
|
|
|
18298
18298
|
var parser = Parser$1;
|
|
18299
18299
|
|
|
18300
|
-
let Container$
|
|
18300
|
+
let Container$F = container;
|
|
18301
18301
|
let Parser = parser;
|
|
18302
18302
|
let Input$3 = input;
|
|
18303
18303
|
|
|
@@ -18336,12 +18336,12 @@ function parse$3(css, opts) {
|
|
|
18336
18336
|
var parse_1 = parse$3;
|
|
18337
18337
|
parse$3.default = parse$3;
|
|
18338
18338
|
|
|
18339
|
-
Container$
|
|
18339
|
+
Container$F.registerParse(parse$3);
|
|
18340
18340
|
|
|
18341
18341
|
let { isClean, my } = symbols;
|
|
18342
18342
|
let MapGenerator$1 = mapGenerator;
|
|
18343
18343
|
let stringify$2 = stringify_1;
|
|
18344
|
-
let Container$
|
|
18344
|
+
let Container$E = container;
|
|
18345
18345
|
let Document$2 = document$1;
|
|
18346
18346
|
let warnOnce$1 = warnOnce$2;
|
|
18347
18347
|
let Result$3 = result;
|
|
@@ -18476,7 +18476,7 @@ class LazyResult$2 {
|
|
|
18476
18476
|
|
|
18477
18477
|
if (root && !root[my]) {
|
|
18478
18478
|
/* c8 ignore next 2 */
|
|
18479
|
-
Container$
|
|
18479
|
+
Container$E.rebuild(root);
|
|
18480
18480
|
}
|
|
18481
18481
|
}
|
|
18482
18482
|
|
|
@@ -19143,7 +19143,7 @@ fromJSON$1.default = fromJSON$1;
|
|
|
19143
19143
|
let CssSyntaxError = cssSyntaxError;
|
|
19144
19144
|
let Declaration = declaration;
|
|
19145
19145
|
let LazyResult = lazyResult;
|
|
19146
|
-
let Container$
|
|
19146
|
+
let Container$D = container;
|
|
19147
19147
|
let Processor = processor;
|
|
19148
19148
|
let stringify = stringify_1;
|
|
19149
19149
|
let fromJSON = fromJSON_1;
|
|
@@ -19221,7 +19221,7 @@ postcss.document = defaults => new Document(defaults);
|
|
|
19221
19221
|
|
|
19222
19222
|
postcss.CssSyntaxError = CssSyntaxError;
|
|
19223
19223
|
postcss.Declaration = Declaration;
|
|
19224
|
-
postcss.Container = Container$
|
|
19224
|
+
postcss.Container = Container$D;
|
|
19225
19225
|
postcss.Processor = Processor;
|
|
19226
19226
|
postcss.Document = Document;
|
|
19227
19227
|
postcss.Comment = Comment;
|
|
@@ -20098,7 +20098,7 @@ var GoogleMap = function (_a) {
|
|
|
20098
20098
|
React.createElement(MapLink, { href: link_url }, link_title ? link_title : 'Google Maps link')))));
|
|
20099
20099
|
};
|
|
20100
20100
|
|
|
20101
|
-
const Container$
|
|
20101
|
+
const Container$C = styled.figure`
|
|
20102
20102
|
display: block;
|
|
20103
20103
|
background: ${(props) =>
|
|
20104
20104
|
props.theme.cardinal_name === 'north'
|
|
@@ -20730,7 +20730,7 @@ var LazyImage = /*@__PURE__*/getDefaultExportFromCjs(lib);
|
|
|
20730
20730
|
*/
|
|
20731
20731
|
var Image$2 = function (_a) {
|
|
20732
20732
|
var imageSmall = _a.imageSmall, imageLarge = _a.imageLarge, imageAltText = _a.imageAltText, _b = _a.ratio, ratio = _b === void 0 ? '4by3' : _b, caption = _a.caption;
|
|
20733
|
-
return (React.createElement(Container$
|
|
20733
|
+
return (React.createElement(Container$C, { "data-testid": "Image" },
|
|
20734
20734
|
React.createElement(ImageContainer$4, { "data-testid": "ImageContainer", ratio: ratio },
|
|
20735
20735
|
React.createElement(LazyImage, { placeholder: imageSmall, src: imageLarge, visibilitySensorProps: {
|
|
20736
20736
|
partialVisibility: true,
|
|
@@ -20738,7 +20738,7 @@ var Image$2 = function (_a) {
|
|
|
20738
20738
|
(caption === null || caption === void 0 ? void 0 : caption.trim()) && React.createElement(Caption, null, caption)));
|
|
20739
20739
|
};
|
|
20740
20740
|
|
|
20741
|
-
const Container$
|
|
20741
|
+
const Container$B = styled.div`
|
|
20742
20742
|
${(props) => props.theme.fontStyles};
|
|
20743
20743
|
overflow: hidden;
|
|
20744
20744
|
margin: 40px auto 5px auto;
|
|
@@ -20822,7 +20822,7 @@ const CTA = styled.a`
|
|
|
20822
20822
|
*/
|
|
20823
20823
|
var PromoBanner = function (_a) {
|
|
20824
20824
|
var title = _a.title, image1440x810 = _a.image1440x810, image144x81 = _a.image144x81, ctaText = _a.ctaText, ctaUrl = _a.ctaUrl, children = _a.children;
|
|
20825
|
-
return (React.createElement(Container$
|
|
20825
|
+
return (React.createElement(Container$B, null,
|
|
20826
20826
|
React.createElement(LazyImage, { src: image1440x810, placeholder: image144x81, visibilitySensorProps: {
|
|
20827
20827
|
partialVisibility: true,
|
|
20828
20828
|
} }, function (src) { return React.createElement(ImageLink, { img: src, href: ctaUrl, title: ctaText }); }),
|
|
@@ -21246,7 +21246,7 @@ var AccessibleLink = function (_a) {
|
|
|
21246
21246
|
})));
|
|
21247
21247
|
};
|
|
21248
21248
|
|
|
21249
|
-
const Container$
|
|
21249
|
+
const Container$A = styled.div`
|
|
21250
21250
|
padding: ${(props) => props.theme.theme_vars.spacingSizes.medium} 0;
|
|
21251
21251
|
background: ${(props) =>
|
|
21252
21252
|
props.alertType === 'alert'
|
|
@@ -21377,7 +21377,7 @@ const handleContainerPadding = (noBackground, noPadding) => {
|
|
|
21377
21377
|
}
|
|
21378
21378
|
};
|
|
21379
21379
|
|
|
21380
|
-
const Container$
|
|
21380
|
+
const Container$z = styled.div`
|
|
21381
21381
|
background: ${props => props.noBackground ? "transparent" :
|
|
21382
21382
|
props.theme.cardinal_name === "north" ? (props.theme.theme_vars.colours.grey_light+"7a") : props.theme.theme_vars.colours.white};
|
|
21383
21383
|
overflow: ${props => props.noPadding ? "hidden" : "visible"};
|
|
@@ -21411,7 +21411,7 @@ const MaxWidth = styled.div`
|
|
|
21411
21411
|
*/
|
|
21412
21412
|
var MaxWidthContainer = function (_a) {
|
|
21413
21413
|
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"]);
|
|
21414
|
-
return (React.createElement(Container$
|
|
21414
|
+
return (React.createElement(Container$z, { noBackground: noBackground, noPadding: noPadding },
|
|
21415
21415
|
React.createElement(MaxWidth, __assign$2({ className: classes, overflowVisible: overflowVisible }, props), children)));
|
|
21416
21416
|
};
|
|
21417
21417
|
|
|
@@ -21421,16 +21421,31 @@ var MaxWidthContainer = function (_a) {
|
|
|
21421
21421
|
var AlertBanner = function (_a) {
|
|
21422
21422
|
var uid = _a.uid, title = _a.title, _b = _a.alertType, alertType = _b === void 0 ? 'alert' : _b, children = _a.children;
|
|
21423
21423
|
var themeContext = useContext(ThemeContext);
|
|
21424
|
-
var
|
|
21424
|
+
var elementRef = useRef(null);
|
|
21425
|
+
var _c = useLocalStorage$1('alert_' + uid, true), showAlert = _c[0], setShowAlert = _c[1];
|
|
21426
|
+
useEffect(function () {
|
|
21427
|
+
var _a;
|
|
21428
|
+
(_a = elementRef === null || elementRef === void 0 ? void 0 : elementRef.current) === null || _a === void 0 ? void 0 : _a.addEventListener('click', embeddedLinkCLickHandler);
|
|
21429
|
+
}, [elementRef]);
|
|
21430
|
+
/* A click on any link within the alert text dismisses the banner too */
|
|
21431
|
+
var embeddedLinkCLickHandler = function (event) {
|
|
21432
|
+
var _a;
|
|
21433
|
+
if (((_a = event === null || event === void 0 ? void 0 : event.target) === null || _a === void 0 ? void 0 : _a.tagName) === 'A') {
|
|
21434
|
+
hideClickHandler();
|
|
21435
|
+
}
|
|
21436
|
+
};
|
|
21425
21437
|
var hideClickHandler = function () {
|
|
21426
|
-
|
|
21438
|
+
setShowAlert(false);
|
|
21427
21439
|
};
|
|
21428
|
-
|
|
21440
|
+
/* Stop flash of banner on page load when previously dismissed */
|
|
21441
|
+
var notServer = typeof window !== 'undefined';
|
|
21442
|
+
return (showAlert &&
|
|
21443
|
+
notServer && (React.createElement(Container$A, { alertType: alertType, "data-testid": "AlertBanner" },
|
|
21429
21444
|
React.createElement(MaxWidthContainer, { noBackground: true },
|
|
21430
21445
|
React.createElement(InnerContainer$1, null,
|
|
21431
21446
|
React.createElement(BannerContentContainer, null,
|
|
21432
21447
|
React.createElement(BannerTitle, null, title),
|
|
21433
|
-
React.createElement(BannerContent,
|
|
21448
|
+
React.createElement(BannerContent, { ref: elementRef }, children)),
|
|
21434
21449
|
React.createElement(HideLink, { title: "Click to dismiss this alert banner", onClick: hideClickHandler, alertType: alertType },
|
|
21435
21450
|
React.createElement(IconDownload$1, { colourFill: alertType === 'warning'
|
|
21436
21451
|
? themeContext.theme_vars.colours.black
|
|
@@ -21477,13 +21492,13 @@ function useLocalStorage$1(key, initialValue) {
|
|
|
21477
21492
|
return [storedValue, setValue];
|
|
21478
21493
|
}
|
|
21479
21494
|
|
|
21480
|
-
const Container$
|
|
21495
|
+
const Container$y = styled.div`
|
|
21481
21496
|
padding-top: 20px;
|
|
21482
21497
|
border-bottom: 1px solid ${(props) => props.theme.theme_vars.colours.grey}80;
|
|
21483
21498
|
margin-bottom: ${(props) => (props.hasMargin ? props.theme.theme_vars.spacingSizes.large : 0)};
|
|
21484
21499
|
`;
|
|
21485
21500
|
|
|
21486
|
-
const List$
|
|
21501
|
+
const List$2 = styled.ol`
|
|
21487
21502
|
list-style: none;
|
|
21488
21503
|
padding-left: 0px;
|
|
21489
21504
|
margin-top: 0;
|
|
@@ -21564,13 +21579,131 @@ var ChevronIcon = function (_a) {
|
|
|
21564
21579
|
|
|
21565
21580
|
var Breadcrumbs = function (_a) {
|
|
21566
21581
|
var breadcrumbsArray = _a.breadcrumbsArray, _b = _a.hasMargin, hasMargin = _b === void 0 ? false : _b;
|
|
21567
|
-
return (React.createElement(Container$
|
|
21568
|
-
React.createElement(List$
|
|
21582
|
+
return (React.createElement(Container$y, { hasMargin: hasMargin, "data-testid": "Breadcrumbs" },
|
|
21583
|
+
React.createElement(List$2, null, breadcrumbsArray.map(function (crumb) { return (React.createElement(Crumb, { key: crumb.title }, React.createElement(React.Fragment, null,
|
|
21569
21584
|
React.createElement(BreadcrumbLink$1, { href: crumb.url, title: crumb.title }, crumb.title),
|
|
21570
21585
|
React.createElement(IconWrapper$4, null,
|
|
21571
21586
|
React.createElement(ChevronIcon, { direction: 'right', colourFill: "#C6C6C6" }))))); }))));
|
|
21572
21587
|
};
|
|
21573
21588
|
|
|
21589
|
+
const Container$x = styled.div`
|
|
21590
|
+
display: block;
|
|
21591
|
+
margin-bottom: ${(props) => props.theme.theme_vars.spacingSizes.large};
|
|
21592
|
+
padding-bottom: ${(props) => props.theme.theme_vars.spacingSizes.large};
|
|
21593
|
+
border-bottom: 1px solid ${(props) => props.theme.theme_vars.colours.grey}80;
|
|
21594
|
+
`;
|
|
21595
|
+
|
|
21596
|
+
const List$1 = styled.ul`
|
|
21597
|
+
list-style-type: '-';
|
|
21598
|
+
margin: 0 0 0 ${(props) => props.theme.theme_vars.spacingSizes.small} !important;
|
|
21599
|
+
`;
|
|
21600
|
+
|
|
21601
|
+
const ListItem$1 = styled.li`
|
|
21602
|
+
padding-left: ${(props) => props.theme.theme_vars.spacingSizes.small} !important;
|
|
21603
|
+
margin-bottom: 0px !important;
|
|
21604
|
+
|
|
21605
|
+
&::marker {
|
|
21606
|
+
font-size: ${(props) => props.theme.theme_vars.spacingSizes.medium};
|
|
21607
|
+
}
|
|
21608
|
+
|
|
21609
|
+
&::before {
|
|
21610
|
+
display: none;
|
|
21611
|
+
}
|
|
21612
|
+
`;
|
|
21613
|
+
|
|
21614
|
+
const Link$2 = styled.a`
|
|
21615
|
+
${(props) => props.theme.fontStyles};
|
|
21616
|
+
${(props) => props.theme.linkStyles};
|
|
21617
|
+
|
|
21618
|
+
&:hover {
|
|
21619
|
+
${(props) => props.theme.linkStylesHover};
|
|
21620
|
+
}
|
|
21621
|
+
|
|
21622
|
+
&:focus {
|
|
21623
|
+
${(props) => props.theme.linkStylesFocus};
|
|
21624
|
+
}
|
|
21625
|
+
|
|
21626
|
+
&:active {
|
|
21627
|
+
${(props) => props.theme.linkStylesActive};
|
|
21628
|
+
}
|
|
21629
|
+
`;
|
|
21630
|
+
|
|
21631
|
+
const CurrentPage = styled.span`
|
|
21632
|
+
${(props) => props.theme.fontStyles};
|
|
21633
|
+
`;
|
|
21634
|
+
|
|
21635
|
+
var Contents$1 = function (_a) {
|
|
21636
|
+
var contents = _a.contents, _b = _a.currentPath, currentPath = _b === void 0 ? undefined : _b, _c = _a.title, title = _c === void 0 ? 'Contents' : _c;
|
|
21637
|
+
return (React.createElement(Container$x, { "data-testid": "Contents" },
|
|
21638
|
+
React.createElement(Heading, { text: title, level: 4 }),
|
|
21639
|
+
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)))); }))));
|
|
21640
|
+
};
|
|
21641
|
+
|
|
21642
|
+
const Container$w = styled.div`
|
|
21643
|
+
display: block;
|
|
21644
|
+
border-top: 1px solid ${(props) => props.theme.theme_vars.colours.grey}80;
|
|
21645
|
+
margin: ${(props) => props.theme.theme_vars.spacingSizes.medium} 0;
|
|
21646
|
+
`;
|
|
21647
|
+
|
|
21648
|
+
const NavigationLink = styled.a`
|
|
21649
|
+
display: flex;
|
|
21650
|
+
padding: ${(props) => props.theme.theme_vars.spacingSizes.medium} 0;
|
|
21651
|
+
border-bottom: 1px solid ${(props) => props.theme.theme_vars.colours.grey}80;
|
|
21652
|
+
${(props) => props.theme.fontStyles};
|
|
21653
|
+
${(props) => props.theme.linkStyles};
|
|
21654
|
+
text-decoration: none !important;
|
|
21655
|
+
|
|
21656
|
+
&:hover {
|
|
21657
|
+
${(props) => props.theme.linkStylesHover};
|
|
21658
|
+
text-decoration: underline !important;
|
|
21659
|
+
text-decoration-style: dashed !important;
|
|
21660
|
+
}
|
|
21661
|
+
|
|
21662
|
+
&:focus {
|
|
21663
|
+
${(props) => props.theme.linkStylesFocus};
|
|
21664
|
+
}
|
|
21665
|
+
|
|
21666
|
+
&:active {
|
|
21667
|
+
${(props) => props.theme.linkStylesActive};
|
|
21668
|
+
}
|
|
21669
|
+
`;
|
|
21670
|
+
|
|
21671
|
+
const PageTitle$1 = styled.span`
|
|
21672
|
+
font-size: 0.9rem;
|
|
21673
|
+
text-decoration: underline;
|
|
21674
|
+
`;
|
|
21675
|
+
|
|
21676
|
+
const Arrow = styled.div`
|
|
21677
|
+
margin-right: ${(props) => props.theme.theme_vars.spacingSizes.small};
|
|
21678
|
+
text-decoration: none;
|
|
21679
|
+
`;
|
|
21680
|
+
|
|
21681
|
+
const LinkText = styled.div`
|
|
21682
|
+
flex-grow: 1;
|
|
21683
|
+
`;
|
|
21684
|
+
|
|
21685
|
+
var ContentsNavigation = function (_a) {
|
|
21686
|
+
var contents = _a.contents, currentPath = _a.currentPath;
|
|
21687
|
+
var currentPage = function () {
|
|
21688
|
+
return contents.findIndex(function (item) { return item.url === currentPath; });
|
|
21689
|
+
};
|
|
21690
|
+
var nextPage = currentPage() < contents.length - 1 ? contents[currentPage() + 1] : undefined;
|
|
21691
|
+
var previousPage = currentPage() !== 0 ? contents[currentPage() - 1] : undefined;
|
|
21692
|
+
return (React.createElement(Container$w, { "data-testid": "ContentsNavigation" },
|
|
21693
|
+
previousPage && (React.createElement(NavigationLink, { href: previousPage.url },
|
|
21694
|
+
React.createElement(Arrow, null, "\u2190"),
|
|
21695
|
+
React.createElement(LinkText, null,
|
|
21696
|
+
"Previous",
|
|
21697
|
+
React.createElement("br", null),
|
|
21698
|
+
React.createElement(PageTitle$1, null, previousPage.title)))),
|
|
21699
|
+
nextPage && (React.createElement(NavigationLink, { href: nextPage.url },
|
|
21700
|
+
React.createElement(Arrow, null, "\u2192"),
|
|
21701
|
+
React.createElement(LinkText, null,
|
|
21702
|
+
"Next",
|
|
21703
|
+
React.createElement("br", null),
|
|
21704
|
+
React.createElement(PageTitle$1, null, nextPage.title))))));
|
|
21705
|
+
};
|
|
21706
|
+
|
|
21574
21707
|
const Container$v = styled.div`
|
|
21575
21708
|
${props => props.theme.fontStyles}
|
|
21576
21709
|
background-color: ${props => props.theme.theme_vars.colours.grey_light};
|
|
@@ -22119,49 +22252,54 @@ var FullWidthContainer = function (_a) {
|
|
|
22119
22252
|
|
|
22120
22253
|
/**
|
|
22121
22254
|
* See header.tsx for colour rules
|
|
22122
|
-
* @param {*} props
|
|
22123
|
-
* @returns
|
|
22255
|
+
* @param {*} props
|
|
22256
|
+
* @returns
|
|
22124
22257
|
*/
|
|
22125
|
-
const headerThemeStyles = props => {
|
|
22126
|
-
|
|
22127
|
-
|
|
22128
|
-
|
|
22129
|
-
|
|
22130
|
-
|
|
22131
|
-
|
|
22132
|
-
|
|
22133
|
-
|
|
22134
|
-
|
|
22135
|
-
|
|
22136
|
-
|
|
22137
|
-
|
|
22138
|
-
|
|
22139
|
-
|
|
22140
|
-
|
|
22141
|
-
|
|
22142
|
-
|
|
22143
|
-
|
|
22144
|
-
|
|
22145
|
-
|
|
22146
|
-
|
|
22258
|
+
const headerThemeStyles = (props) => {
|
|
22259
|
+
if (props.theme.is_memorial === true) {
|
|
22260
|
+
return css`
|
|
22261
|
+
background-color: ${props.theme.theme_vars.colours.grey_darkest};
|
|
22262
|
+
border-bottom: none;
|
|
22263
|
+
color: ${props.theme.theme_vars.colours.white};
|
|
22264
|
+
`;
|
|
22265
|
+
}
|
|
22266
|
+
switch (props.theme.cardinal_name) {
|
|
22267
|
+
case 'north':
|
|
22268
|
+
return css`
|
|
22269
|
+
background-color: ${props.theme.theme_vars.colours.white};
|
|
22270
|
+
border-bottom: 5px solid ${props.theme.theme_vars.colours.action};
|
|
22271
|
+
color: ${props.theme.theme_vars.colours.black};
|
|
22272
|
+
`;
|
|
22273
|
+
case 'west':
|
|
22274
|
+
return css`
|
|
22275
|
+
background-color: ${props.theme.theme_vars.colours.action};
|
|
22276
|
+
border-bottom: none;
|
|
22277
|
+
color: ${props.theme.theme_vars.colours.white};
|
|
22278
|
+
`;
|
|
22279
|
+
}
|
|
22147
22280
|
};
|
|
22148
22281
|
|
|
22149
22282
|
const Container$s = styled.header`
|
|
22150
|
-
|
|
22151
|
-
|
|
22152
|
-
|
|
22283
|
+
font-family: ${(props) => props.theme.theme_vars.fontstack};
|
|
22284
|
+
padding: 3px 0;
|
|
22285
|
+
${headerThemeStyles}
|
|
22153
22286
|
`;
|
|
22154
22287
|
|
|
22155
22288
|
const StyledMaxWidthContainer$2 = styled(MaxWidthContainer)`
|
|
22156
|
-
|
|
22157
|
-
|
|
22158
|
-
|
|
22159
|
-
|
|
22160
|
-
|
|
22161
|
-
|
|
22162
|
-
|
|
22163
|
-
|
|
22164
|
-
|
|
22289
|
+
display: grid;
|
|
22290
|
+
align-items: center;
|
|
22291
|
+
grid-template-areas: 'headerlogo headerlinks headersearch';
|
|
22292
|
+
@media screen and (max-width: ${(props) => props.theme.theme_vars.breakpoints.m}) {
|
|
22293
|
+
grid-template-areas:
|
|
22294
|
+
'headerlogo headerlinks'
|
|
22295
|
+
'headersearch headersearch';
|
|
22296
|
+
}
|
|
22297
|
+
@media screen and (max-width: ${(props) => props.theme.theme_vars.breakpoints.s}) {
|
|
22298
|
+
grid-template-areas:
|
|
22299
|
+
'headerlogo'
|
|
22300
|
+
'headerlinks'
|
|
22301
|
+
'headersearch';
|
|
22302
|
+
}
|
|
22165
22303
|
`;
|
|
22166
22304
|
|
|
22167
22305
|
const LogoStyles = `
|
|
@@ -22179,112 +22317,105 @@ const LogoStyles = `
|
|
|
22179
22317
|
}
|
|
22180
22318
|
}
|
|
22181
22319
|
`;
|
|
22320
|
+
|
|
22182
22321
|
const LogoColoured$1 = styled.div`
|
|
22183
|
-
|
|
22322
|
+
${LogoStyles}
|
|
22184
22323
|
`;
|
|
22324
|
+
|
|
22185
22325
|
const LogoWhite = styled.div`
|
|
22186
|
-
|
|
22326
|
+
${LogoStyles}
|
|
22187
22327
|
`;
|
|
22328
|
+
|
|
22188
22329
|
const LogoWrapper = styled.div`
|
|
22189
|
-
|
|
22190
|
-
|
|
22191
|
-
@media screen and (min-width: ${props => props.theme.theme_vars.breakpoints.s}){
|
|
22192
|
-
flex-grow: 1;
|
|
22193
|
-
display: block;
|
|
22194
|
-
}
|
|
22330
|
+
grid-area: headerlogo;
|
|
22195
22331
|
`;
|
|
22332
|
+
|
|
22196
22333
|
const HomeLink = styled.a`
|
|
22197
|
-
|
|
22334
|
+
display: inline-block;
|
|
22198
22335
|
|
|
22199
|
-
|
|
22200
|
-
|
|
22336
|
+
&:hover {
|
|
22337
|
+
opacity: 0.8;
|
|
22201
22338
|
|
|
22202
|
-
|
|
22203
|
-
|
|
22204
|
-
}
|
|
22205
|
-
}
|
|
22206
|
-
&:focus {
|
|
22207
|
-
outline: none;
|
|
22208
|
-
box-shadow: ${props => props.theme.theme_vars.colours.focus} 0 0 0 3px;
|
|
22209
|
-
transition: box-shadow 0.3s ease 0s;
|
|
22339
|
+
svg {
|
|
22340
|
+
opacity: 0.8;
|
|
22210
22341
|
}
|
|
22342
|
+
}
|
|
22343
|
+
&:focus {
|
|
22344
|
+
outline: none;
|
|
22345
|
+
box-shadow: ${(props) => props.theme.theme_vars.colours.focus} 0 0 0 3px;
|
|
22346
|
+
transition: box-shadow 0.3s ease 0s;
|
|
22347
|
+
}
|
|
22211
22348
|
`;
|
|
22212
22349
|
|
|
22213
|
-
|
|
22214
|
-
|
|
22215
|
-
|
|
22216
|
-
|
|
22217
|
-
|
|
22218
|
-
|
|
22219
|
-
|
|
22220
|
-
|
|
22221
|
-
|
|
22222
|
-
|
|
22223
|
-
|
|
22224
|
-
|
|
22225
|
-
|
|
22226
|
-
|
|
22227
|
-
|
|
22228
|
-
|
|
22229
|
-
|
|
22230
|
-
|
|
22231
|
-
|
|
22232
|
-
|
|
22233
|
-
|
|
22234
|
-
|
|
22235
|
-
|
|
22236
|
-
|
|
22237
|
-
|
|
22238
|
-
|
|
22239
|
-
|
|
22240
|
-
|
|
22241
|
-
`
|
|
22242
|
-
}
|
|
22350
|
+
const commonLinkStyles = (props) => {
|
|
22351
|
+
if (props.theme.is_memorial === true) {
|
|
22352
|
+
return css`
|
|
22353
|
+
color: ${props.theme.theme_vars.colours.white};
|
|
22354
|
+
&:hover {
|
|
22355
|
+
color: ${props.theme.theme_vars.colours.white};
|
|
22356
|
+
opacity: 0.8;
|
|
22357
|
+
}
|
|
22358
|
+
`;
|
|
22359
|
+
}
|
|
22360
|
+
switch (props.theme.cardinal_name) {
|
|
22361
|
+
case 'north':
|
|
22362
|
+
return css`
|
|
22363
|
+
color: ${props.theme.theme_vars.colours.action};
|
|
22364
|
+
&:hover {
|
|
22365
|
+
color: ${props.theme.theme_vars.colours.action_dark};
|
|
22366
|
+
opacity: 1;
|
|
22367
|
+
}
|
|
22368
|
+
`;
|
|
22369
|
+
case 'west':
|
|
22370
|
+
return css`
|
|
22371
|
+
color: ${props.theme.theme_vars.colours.white};
|
|
22372
|
+
&:hover {
|
|
22373
|
+
color: ${props.theme.theme_vars.colours.white};
|
|
22374
|
+
opacity: 0.8;
|
|
22375
|
+
}
|
|
22376
|
+
`;
|
|
22377
|
+
}
|
|
22243
22378
|
};
|
|
22244
|
-
const AllServicesLink = styled.a`
|
|
22245
|
-
${props => props.theme.linkStyles};
|
|
22246
|
-
padding: 0 ${props => props.theme.theme_vars.spacingSizes.small};
|
|
22247
|
-
vertical-align: middle;
|
|
22248
|
-
margin-top: -10px;
|
|
22249
22379
|
|
|
22250
|
-
|
|
22251
|
-
|
|
22252
|
-
|
|
22253
|
-
|
|
22254
|
-
|
|
22255
|
-
|
|
22256
|
-
|
|
22257
|
-
|
|
22258
|
-
|
|
22380
|
+
const LinksWrapper = styled.div`
|
|
22381
|
+
grid-area: headerlinks;
|
|
22382
|
+
text-align: right;
|
|
22383
|
+
padding-right: 1em;
|
|
22384
|
+
@media screen and (max-width: ${(props) => props.theme.theme_vars.breakpoints.m}) {
|
|
22385
|
+
padding-right: 0;
|
|
22386
|
+
}
|
|
22387
|
+
@media screen and (max-width: ${(props) => props.theme.theme_vars.breakpoints.s}) {
|
|
22388
|
+
padding-right: 0;
|
|
22389
|
+
text-align: center;
|
|
22390
|
+
}
|
|
22391
|
+
`;
|
|
22259
22392
|
|
|
22260
|
-
|
|
22261
|
-
|
|
22262
|
-
|
|
22393
|
+
const Link$1 = styled.a`
|
|
22394
|
+
${(props) => props.theme.linkStyles};
|
|
22395
|
+
padding: 0 ${(props) => props.theme.theme_vars.spacingSizes.small};
|
|
22396
|
+
vertical-align: middle;
|
|
22397
|
+
margin-top: -10px;
|
|
22263
22398
|
|
|
22264
|
-
|
|
22265
|
-
|
|
22266
|
-
|
|
22267
|
-
|
|
22268
|
-
|
|
22269
|
-
|
|
22270
|
-
|
|
22271
|
-
|
|
22272
|
-
|
|
22399
|
+
&:hover {
|
|
22400
|
+
${(props) => props.theme.linkStylesHover};
|
|
22401
|
+
}
|
|
22402
|
+
&:focus {
|
|
22403
|
+
${(props) => props.theme.linkStylesFocus};
|
|
22404
|
+
}
|
|
22405
|
+
&:active {
|
|
22406
|
+
${(props) => props.theme.linkStylesActive}
|
|
22407
|
+
}
|
|
22273
22408
|
|
|
22274
|
-
|
|
22275
|
-
|
|
22409
|
+
display: inline-block;
|
|
22410
|
+
padding-bottom: 15px;
|
|
22411
|
+
padding-top: 15px;
|
|
22412
|
+
|
|
22413
|
+
${commonLinkStyles}
|
|
22276
22414
|
`;
|
|
22277
22415
|
|
|
22278
22416
|
const SearchWrapper = styled.div`
|
|
22279
|
-
|
|
22280
|
-
|
|
22281
|
-
|
|
22282
|
-
@media screen and (min-width: ${props => props.theme.theme_vars.breakpoints.s}){
|
|
22283
|
-
flex: auto;
|
|
22284
|
-
max-width: 320px;
|
|
22285
|
-
margin-left: 15px;
|
|
22286
|
-
padding: ${props => props.theme.theme_vars.spacingSizes.small} 2px;
|
|
22287
|
-
}
|
|
22417
|
+
grid-area: headersearch;
|
|
22418
|
+
padding-bottom: ${(props) => props.theme.theme_vars.spacingSizes.small};
|
|
22288
22419
|
`;
|
|
22289
22420
|
|
|
22290
22421
|
var NorthColouredLogo = function () {
|
|
@@ -22465,7 +22596,7 @@ var Searchbar = function (_a) {
|
|
|
22465
22596
|
* The header that should appear at the top of every page.
|
|
22466
22597
|
*/
|
|
22467
22598
|
var Header = function (_a) {
|
|
22468
|
-
_a.children; var _b = _a.hideSearchBar, hideSearchBar = _b === void 0 ? false : _b, _c = _a.homeLink, homeLink = _c === void 0 ? '/' : _c, _d = _a.allServicesLink, allServicesLink =
|
|
22599
|
+
_a.children; var _b = _a.hideSearchBar, hideSearchBar = _b === void 0 ? false : _b, _c = _a.homeLink, homeLink = _c === void 0 ? '/' : _c, _d = _a.hasNewsLink, hasNewsLink = _d === void 0 ? false : _d, _e = _a.allServicesLink, allServicesLink = _e === void 0 ? '/' : _e, _f = _a.isHomepage, isHomepage = _f === void 0 ? false : _f, _g = _a.searchSuggestions, searchSuggestions = _g === void 0 ? [] : _g, props = __rest(_a, ["children", "hideSearchBar", "homeLink", "hasNewsLink", "allServicesLink", "isHomepage", "searchSuggestions"]);
|
|
22469
22600
|
var themeContext = useContext(ThemeContext);
|
|
22470
22601
|
/*
|
|
22471
22602
|
north homepage - no header
|
|
@@ -22510,7 +22641,9 @@ var Header = function (_a) {
|
|
|
22510
22641
|
React.createElement(StyledMaxWidthContainer$2, { noBackground: true },
|
|
22511
22642
|
React.createElement(LogoWrapper, null,
|
|
22512
22643
|
React.createElement(HomeLink, { href: homeLink, title: "Home", id: "logo" }, themeLogos(themeContext.cardinal_name, themeContext.is_memorial))),
|
|
22513
|
-
allServicesLink && (React.createElement(
|
|
22644
|
+
(hasNewsLink || allServicesLink) && (React.createElement(LinksWrapper, null,
|
|
22645
|
+
hasNewsLink && (React.createElement(Link$1, { href: "/news" }, "News")),
|
|
22646
|
+
allServicesLink && (React.createElement(Link$1, { href: isHomepage ? '#all-services' : allServicesLink + '#all-services' }, "All services")))),
|
|
22514
22647
|
!hideSearchBar && (React.createElement(SearchWrapper, null,
|
|
22515
22648
|
React.createElement(Searchbar, { isLight: themeContext.cardinal_name === 'north' ? true : false, submitInfo: {
|
|
22516
22649
|
postTo: '/search',
|
|
@@ -31479,5 +31612,5 @@ const north_theme = generate_theme(north_vars);
|
|
|
31479
31612
|
const lb_theme_north = generate_theme(lb_vars_north);
|
|
31480
31613
|
const lb_theme_west = generate_theme(lb_vars_west);
|
|
31481
31614
|
|
|
31482
|
-
export { AccessibleLink as AccessibleLinks, Accordion, AlertBanner, AlertBannerService, Autocomplete, BlockQuote, Breadcrumbs, Button$2 as Button, CallToAction, CheckboxListFilter, CookieBanner, DisplayDate, Divider, DownloadableFiles, DropDownFilter, DynamicIcon, Footer, FullWidthContainer, GDS_theme, GoogleMap, Header, Heading, HeadingWithIcon, HeroImage, HomeHero, HomeUnitarySection, Image$2 as Image, MaxWidthContainer, MemorialHero, NewsArticleDate, NewsArticleFeaturedBlock, NewsArticleFilterAccordion, NewsArticleImage, NewsArticleList, NewsArticleListHeader, NewsArticleOldBanner, PageMain, PageSidebar, PageTitle, PageWithSidebarContainer, PageWrapper, Pagination, PhaseBanner, PromoBanner, PromoBlock, PromotedLinks, Promotions, SearchResultsList, Searchbar, SectionLinks, SectionLinksMobileContents, SectionLinksSidebar, ServiceLinksBoxed, ServicesLinksList, SignpostLinks, SkipToMainContent, Summary, TextInput, Video, WarningText, WarningTextDisclaimer, lb_theme_north, lb_theme_west, north_theme, west_theme };
|
|
31615
|
+
export { AccessibleLink as AccessibleLinks, Accordion, AlertBanner, AlertBannerService, Autocomplete, BlockQuote, Breadcrumbs, Button$2 as Button, CallToAction, CheckboxListFilter, Contents$1 as Contents, ContentsNavigation, CookieBanner, DisplayDate, Divider, DownloadableFiles, DropDownFilter, DynamicIcon, Footer, FullWidthContainer, GDS_theme, GoogleMap, Header, Heading, HeadingWithIcon, HeroImage, HomeHero, HomeUnitarySection, Image$2 as Image, MaxWidthContainer, MemorialHero, NewsArticleDate, NewsArticleFeaturedBlock, NewsArticleFilterAccordion, NewsArticleImage, NewsArticleList, NewsArticleListHeader, NewsArticleOldBanner, PageMain, PageSidebar, PageTitle, PageWithSidebarContainer, PageWrapper, Pagination, PhaseBanner, PromoBanner, PromoBlock, PromotedLinks, Promotions, SearchResultsList, Searchbar, SectionLinks, SectionLinksMobileContents, SectionLinksSidebar, ServiceLinksBoxed, ServicesLinksList, SignpostLinks, SkipToMainContent, Summary, TextInput, Video, WarningText, WarningTextDisclaimer, lb_theme_north, lb_theme_west, north_theme, west_theme };
|
|
31483
31616
|
//# sourceMappingURL=index.esm.js.map
|