northants-design-system 2.1.0 → 2.3.0
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.js +934 -230
- package/build/index.js.map +1 -1
- package/build/index.mjs.js +932 -230
- package/build/index.mjs.js.map +1 -1
- package/build/library/components/BudgetSlider/BudgetSlider.d.ts +4 -0
- package/build/library/components/BudgetSlider/BudgetSlider.test.d.ts +1 -0
- package/build/library/components/BudgetSlider/BudgetSlider.types.d.ts +56 -0
- package/build/library/components/QuestionAndAnswer/QuestionAndAnswer.d.ts +4 -0
- package/build/library/components/QuestionAndAnswer/QuestionAndAnswer.test.d.ts +1 -0
- package/build/library/components/QuestionAndAnswer/QuestionAndAnswer.types.d.ts +17 -0
- package/build/library/components/RadioCheckboxInput/RadioCheckboxInput.types.d.ts +4 -0
- package/build/library/components/logos/WestColouredLogo/logo.d.ts +2 -2
- package/build/library/pages/BudgetGameExample/BudgetGameExample.d.ts +4 -0
- package/build/library/pages/BudgetQuizExample/BudgetQuizExample.d.ts +4 -0
- package/build/library/slices/BudgetGame/BudgetGame.d.ts +7 -0
- package/build/library/slices/BudgetGame/BudgetGame.storydata.d.ts +2 -0
- package/build/library/slices/BudgetGame/BudgetGame.test.d.ts +1 -0
- package/build/library/slices/BudgetGame/BudgetGame.types.d.ts +20 -0
- package/build/library/slices/Quiz/Quiz.d.ts +4 -0
- package/build/library/slices/Quiz/Quiz.storydata.d.ts +2 -0
- package/build/library/slices/Quiz/Quiz.test.d.ts +1 -0
- package/build/library/slices/Quiz/Quiz.types.d.ts +11 -0
- package/package.json +3 -1
package/build/index.mjs.js
CHANGED
|
@@ -3635,7 +3635,7 @@ var Autocomplete = function (_a) {
|
|
|
3635
3635
|
})));
|
|
3636
3636
|
};
|
|
3637
3637
|
|
|
3638
|
-
const Container$
|
|
3638
|
+
const Container$1t = styled.div`
|
|
3639
3639
|
display: block;
|
|
3640
3640
|
`;
|
|
3641
3641
|
|
|
@@ -3721,7 +3721,7 @@ var BackToTop = function (_a) {
|
|
|
3721
3721
|
useEffect(function () {
|
|
3722
3722
|
window.addEventListener('scroll', toggleVisible);
|
|
3723
3723
|
});
|
|
3724
|
-
return (React.createElement(Container$
|
|
3724
|
+
return (React.createElement(Container$1t, { "data-testid": "BackToTop" }, isActive && (React.createElement(BackToTopButton, { onClick: scrollToTop, "$visible": visible, "data-testid": "BackToTopButton", type: "button", "aria-label": "Go to the top of the page" },
|
|
3725
3725
|
React.createElement(ChevronIcon, { colourFill: theme.theme_vars.colours.white, direction: "up" })))));
|
|
3726
3726
|
};
|
|
3727
3727
|
|
|
@@ -3786,8 +3786,9 @@ const StyledButton$1 = styled.a`
|
|
|
3786
3786
|
}
|
|
3787
3787
|
}
|
|
3788
3788
|
&.button--small {
|
|
3789
|
-
font-size:
|
|
3789
|
+
font-size: 13px;
|
|
3790
3790
|
padding: 10px 16px;
|
|
3791
|
+
font-weight: 600;
|
|
3791
3792
|
}
|
|
3792
3793
|
&.button--medium {
|
|
3793
3794
|
font-size: 14px;
|
|
@@ -3806,14 +3807,14 @@ const StyledButton$1 = styled.a`
|
|
|
3806
3807
|
/**
|
|
3807
3808
|
* Primary UI component for user interaction
|
|
3808
3809
|
*/
|
|
3809
|
-
var Button$
|
|
3810
|
+
var Button$5 = function (_a) {
|
|
3810
3811
|
var _b = _a.primary, primary = _b === void 0 ? true : _b, _c = _a.size, size = _c === void 0 ? 'medium' : _c, text = _a.text, title = _a.title, url = _a.url, colourOverride = _a.colourOverride; _a.isExternal; var _e = _a.isDisabled, isDisabled = _e === void 0 ? false : _e, children = _a.children, props = __rest(_a, ["primary", "size", "text", "title", "url", "colourOverride", "isExternal", "isDisabled", "children"]);
|
|
3811
3812
|
var mode = primary ? 'button--primary' : 'button--secondary';
|
|
3812
3813
|
var href = isDisabled ? null : { href: url };
|
|
3813
3814
|
return (React.createElement(StyledButton$1, __assign({ className: ["button--".concat(size), mode].join(' ') }, href, { title: title ? title : text, "$colourOverride": colourOverride && colourOverride }, props), text ? text : children));
|
|
3814
3815
|
};
|
|
3815
3816
|
|
|
3816
|
-
const Container$
|
|
3817
|
+
const Container$1s = styled.div`
|
|
3817
3818
|
display: block;
|
|
3818
3819
|
background-color: ${(props) =>
|
|
3819
3820
|
props.$isOpen ? props.theme.theme_vars.colours.positive : props.theme.theme_vars.colours.negative}16;
|
|
@@ -19083,7 +19084,7 @@ var sanitizeHtml = /*@__PURE__*/getDefaultExportFromCjs(sanitizeHtmlExports);
|
|
|
19083
19084
|
const H1 = styled.h1`
|
|
19084
19085
|
color: ${(props) => props.theme.theme_vars.colours.black};
|
|
19085
19086
|
margin-left: 0;
|
|
19086
|
-
font-weight:
|
|
19087
|
+
font-weight: 600;
|
|
19087
19088
|
font-family: ${(props) => props.theme.theme_vars.fontstack};
|
|
19088
19089
|
margin-bottom: 20px;
|
|
19089
19090
|
|
|
@@ -19100,12 +19101,11 @@ const H1 = styled.h1`
|
|
|
19100
19101
|
`;
|
|
19101
19102
|
const H2 = styled.h2`
|
|
19102
19103
|
color: ${(props) => props.theme.theme_vars.colours.black};
|
|
19103
|
-
font-weight:
|
|
19104
|
+
font-weight: 600;
|
|
19104
19105
|
line-height: 1;
|
|
19105
19106
|
font-family: ${(props) => props.theme.theme_vars.fontstack};
|
|
19106
19107
|
margin-top: 25px;
|
|
19107
19108
|
margin-bottom: 15px;
|
|
19108
|
-
|
|
19109
19109
|
font-size: 24px;
|
|
19110
19110
|
font-size: 1.5rem;
|
|
19111
19111
|
line-height: 1.25;
|
|
@@ -19118,7 +19118,7 @@ const H2 = styled.h2`
|
|
|
19118
19118
|
`;
|
|
19119
19119
|
const H3 = styled.h3`
|
|
19120
19120
|
color: ${(props) => props.theme.theme_vars.colours.black};
|
|
19121
|
-
font-weight:
|
|
19121
|
+
font-weight: 500;
|
|
19122
19122
|
line-height: 1;
|
|
19123
19123
|
font-family: ${(props) => props.theme.theme_vars.fontstack};
|
|
19124
19124
|
margin-top: 25px;
|
|
@@ -19141,7 +19141,8 @@ const H4 = styled.h4`
|
|
|
19141
19141
|
margin-top: 25px;
|
|
19142
19142
|
margin-bottom: 15px;
|
|
19143
19143
|
|
|
19144
|
-
font-
|
|
19144
|
+
font-size: 17px;
|
|
19145
|
+
font-weight: 500;
|
|
19145
19146
|
line-height: 1;
|
|
19146
19147
|
font-family: ${(props) => props.theme.theme_vars.fontstack};
|
|
19147
19148
|
`;
|
|
@@ -19185,7 +19186,7 @@ var ConsultationStatus = function (_a) {
|
|
|
19185
19186
|
detail: new Date(closeDate).toLocaleDateString('en-GB'),
|
|
19186
19187
|
},
|
|
19187
19188
|
];
|
|
19188
|
-
return (React.createElement(Container$
|
|
19189
|
+
return (React.createElement(Container$1s, { "data-testid": "ConsultationStatus", "$isOpen": isOpen },
|
|
19189
19190
|
React.createElement(SummaryList, { terms: terms, hasBorders: false, hasMargin: false })));
|
|
19190
19191
|
};
|
|
19191
19192
|
|
|
@@ -21398,7 +21399,7 @@ var DynamicIcon = function (_a) {
|
|
|
21398
21399
|
React.createElement(DynamicComponent, { name: icon, isHover: true }))))));
|
|
21399
21400
|
};
|
|
21400
21401
|
|
|
21401
|
-
const Container$
|
|
21402
|
+
const Container$1r = styled.div`
|
|
21402
21403
|
display: block;
|
|
21403
21404
|
padding: ${(props) => props.theme.theme_vars.spacingSizes.small};
|
|
21404
21405
|
border-bottom: ${(props) => (props.$hasBorder ? `1px solid ${props.theme.theme_vars.colours.grey}` : 'none')};
|
|
@@ -21413,6 +21414,8 @@ const EventRow = styled.div`
|
|
|
21413
21414
|
& > div > div > h4,
|
|
21414
21415
|
& > div > span {
|
|
21415
21416
|
cursor: default;
|
|
21417
|
+
font-size: 20px;
|
|
21418
|
+
font-weight: 600;
|
|
21416
21419
|
}
|
|
21417
21420
|
|
|
21418
21421
|
/* when the parent Span containing a 'service icon' is hovered over... */
|
|
@@ -21583,14 +21586,14 @@ var formatDateRange = function (startDate, endDate) {
|
|
|
21583
21586
|
|
|
21584
21587
|
var EventDetails = function (_a) {
|
|
21585
21588
|
var startTime = _a.startTime, endTime = _a.endTime, location = _a.location, _b = _a.hasBorder, hasBorder = _b === void 0 ? true : _b, _c = _a.hasMargin, hasMargin = _c === void 0 ? true : _c;
|
|
21586
|
-
return (React.createElement(Container$
|
|
21589
|
+
return (React.createElement(Container$1r, { "data-testid": "EventDetails", "$hasBorder": hasBorder, "$hasMargin": hasMargin },
|
|
21587
21590
|
React.createElement(EventRow, null,
|
|
21588
21591
|
React.createElement(HeadingWithIcon, { icon: "events", level: 4, text: formatDateRange(startTime, endTime), hasHover: false })),
|
|
21589
21592
|
React.createElement(EventRow, null,
|
|
21590
21593
|
React.createElement(HeadingWithIcon, { icon: "address", level: 4, text: location, hasHover: false }))));
|
|
21591
21594
|
};
|
|
21592
21595
|
|
|
21593
|
-
const Container$
|
|
21596
|
+
const Container$1q = styled.div`
|
|
21594
21597
|
display: flex;
|
|
21595
21598
|
width: 100%;
|
|
21596
21599
|
min-height: 400px;
|
|
@@ -21614,7 +21617,7 @@ var Map$1 = function (_a) {
|
|
|
21614
21617
|
setMap(new window.google.maps.Map(ref.current, { center: center, zoom: zoom }));
|
|
21615
21618
|
}
|
|
21616
21619
|
}, [ref, map]);
|
|
21617
|
-
return (React.createElement(Container$
|
|
21620
|
+
return (React.createElement(Container$1q, { "data-testid": "Map" },
|
|
21618
21621
|
React.createElement("div", { ref: ref }),
|
|
21619
21622
|
React.Children.map(children, function (child) {
|
|
21620
21623
|
if (React.isValidElement(child)) {
|
|
@@ -21671,7 +21674,7 @@ var MapMarker = function (options) {
|
|
|
21671
21674
|
return null;
|
|
21672
21675
|
};
|
|
21673
21676
|
|
|
21674
|
-
const Container$
|
|
21677
|
+
const Container$1p = styled.div`
|
|
21675
21678
|
${(props) => props.theme.fontStyles};
|
|
21676
21679
|
display: block;
|
|
21677
21680
|
border-top: 1px solid ${(props) => props.theme.theme_vars.colours.grey};
|
|
@@ -22457,7 +22460,7 @@ var Pagination = function (_a) {
|
|
|
22457
22460
|
}
|
|
22458
22461
|
};
|
|
22459
22462
|
if (numbers.length > 1) {
|
|
22460
|
-
return (React.createElement(Container$
|
|
22463
|
+
return (React.createElement(Container$1p, { "data-testid": "Pagination", role: "navigation", "aria-label": "Pagination" },
|
|
22461
22464
|
currentPage > 1 && (React.createElement(Previous, { onClick: function () { return buttonClick(currentPage - 1); }, title: "Go back a page" }, "Previous")),
|
|
22462
22465
|
React.createElement(NumbersContainer, null, numbers.map(function (v, i) { return (React.createElement(NumberContainer, { key: i },
|
|
22463
22466
|
v === '...' && React.createElement(Ellipsis, null, "..."),
|
|
@@ -22469,7 +22472,7 @@ var Pagination = function (_a) {
|
|
|
22469
22472
|
return null;
|
|
22470
22473
|
};
|
|
22471
22474
|
|
|
22472
|
-
const Container$
|
|
22475
|
+
const Container$1o = styled.div`
|
|
22473
22476
|
${(props) => props.theme.fontStyles};
|
|
22474
22477
|
margin-bottom: 30px;
|
|
22475
22478
|
`;
|
|
@@ -22493,7 +22496,7 @@ const hideLabel$1 = (props) => {
|
|
|
22493
22496
|
}
|
|
22494
22497
|
};
|
|
22495
22498
|
|
|
22496
|
-
const Legend$
|
|
22499
|
+
const Legend$4 = styled.legend`
|
|
22497
22500
|
color: #0b0c0c;
|
|
22498
22501
|
-webkit-box-sizing: border-box;
|
|
22499
22502
|
box-sizing: border-box;
|
|
@@ -22653,20 +22656,20 @@ var CheckboxListFilter = function (_a) {
|
|
|
22653
22656
|
}
|
|
22654
22657
|
};
|
|
22655
22658
|
var backupLabel = Math.random().toString(36).substring(7);
|
|
22656
|
-
return (React.createElement(Container$
|
|
22659
|
+
return (React.createElement(Container$1o, { "data-testid": "CheckboxListFilter" },
|
|
22657
22660
|
React.createElement(Fieldset$2, { "aria-describedby": hintId },
|
|
22658
|
-
React.createElement(Legend$
|
|
22661
|
+
React.createElement(Legend$4, { "$labelHidden": labelHidden, "data-testid": "CheckboxListFilterLegend" }, label),
|
|
22659
22662
|
React.createElement(Hint$1, { id: hintId, "$hintHidden": hintHidden, "data-testid": "CheckboxListFilterHint" }, hint),
|
|
22660
22663
|
React.createElement(Checkboxes, null, checkboxState.map(function (option, i) { return (React.createElement(Checkbox, { key: i },
|
|
22661
22664
|
React.createElement(CheckboxInput, { id: option.value, name: labelHidden ? backupLabel : label, type: "checkbox", onChange: optionChecked, value: option.value, checked: option.checked }),
|
|
22662
22665
|
React.createElement(CheckboxLabel, { "$isChecked": option.checked, htmlFor: option.value }, option.title))); })))));
|
|
22663
22666
|
};
|
|
22664
22667
|
|
|
22665
|
-
const Container$
|
|
22668
|
+
const Container$1n = styled.div`
|
|
22666
22669
|
margin-bottom: ${(props) => (props.$hasMargin ? props.theme.theme_vars.spacingSizes.small : 0)};
|
|
22667
22670
|
`;
|
|
22668
22671
|
|
|
22669
|
-
const Container$
|
|
22672
|
+
const Container$1m = styled.div`
|
|
22670
22673
|
${(props) => props.theme.fontStyles};
|
|
22671
22674
|
width: ${(props) => (props.$isFullWidth ? '100%' : 'auto')};
|
|
22672
22675
|
`;
|
|
@@ -22733,7 +22736,7 @@ const ErrorText$2 = styled.p`
|
|
|
22733
22736
|
|
|
22734
22737
|
var DropDownSelect = function (_a) {
|
|
22735
22738
|
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, _c = _a.isErrored, isErrored = _c === void 0 ? false : _c, errorText = _a.errorText, _d = _a.value, value = _d === void 0 ? undefined : _d, _e = _a.hasBottomMargin, hasBottomMargin = _e === void 0 ? false : _e, _f = _a.hasBoldLabel, hasBoldLabel = _f === void 0 ? false : _f, _g = _a.isFullWidth, isFullWidth = _g === void 0 ? false : _g;
|
|
22736
|
-
return (React.createElement(Container$
|
|
22739
|
+
return (React.createElement(Container$1m, { "$isFullWidth": isFullWidth },
|
|
22737
22740
|
React.createElement(Label$a, { htmlFor: id, "$hideLabel": hideLabel, "$hasBoldLabel": hasBoldLabel }, label),
|
|
22738
22741
|
errorText && React.createElement(ErrorText$2, { id: "".concat(id, "Error") }, errorText),
|
|
22739
22742
|
typeof value !== 'undefined' ? (React.createElement(Select, { id: id, name: id, onChange: onChange && onChange, value: value, "$isErrored": isErrored, "$hasBottomMargin": hasBottomMargin, "$isFullWidth": isFullWidth }, options.map(function (option, i) { return (React.createElement(Option, { key: i, value: option.value }, option.title)); }))) : (React.createElement(Select, { id: id, name: id, onChange: onChange && onChange, defaultValue: selected && selected, "$isErrored": isErrored, "$isFullWidth": isFullWidth }, options.map(function (option, i) { return (React.createElement(Option, { key: i, value: option.value }, option.title)); })))));
|
|
@@ -22746,7 +22749,7 @@ var DropDownFilter = function (_a) {
|
|
|
22746
22749
|
setValue(e.target.value);
|
|
22747
22750
|
handleParams('news', [{ key: NewsArticleFilterFields[filterKey].queryParamKey, value: e.target.value }], ['page']);
|
|
22748
22751
|
};
|
|
22749
|
-
return (React.createElement(Container$
|
|
22752
|
+
return (React.createElement(Container$1n, { "$hasMargin": hasMargin },
|
|
22750
22753
|
React.createElement(DropDownSelect, { id: id, label: label, options: options, onChange: optionPicked, selected: value, hideLabel: hideLabel })));
|
|
22751
22754
|
};
|
|
22752
22755
|
|
|
@@ -22891,7 +22894,7 @@ const ListItem$3 = styled.li`
|
|
|
22891
22894
|
}
|
|
22892
22895
|
`;
|
|
22893
22896
|
|
|
22894
|
-
const Container$
|
|
22897
|
+
const Container$1l = styled.div`
|
|
22895
22898
|
box-sizing: border-box;
|
|
22896
22899
|
display: flex;
|
|
22897
22900
|
flex-wrap: wrap;
|
|
@@ -22902,6 +22905,9 @@ const Container$1h = styled.div`
|
|
|
22902
22905
|
border: ${(props) => (props.$hasBorder ? `1px solid ${props.theme.theme_vars.colours.grey}` : 'none')};
|
|
22903
22906
|
list-style: none;
|
|
22904
22907
|
max-width: none !important;
|
|
22908
|
+
|
|
22909
|
+
font-family: ${(props) => props.theme.theme_vars.fontstack};
|
|
22910
|
+
|
|
22905
22911
|
min-width: calc(
|
|
22906
22912
|
100% + ${(props) => props.theme.theme_vars.spacingSizes.small} +
|
|
22907
22913
|
${(props) => props.theme.theme_vars.spacingSizes.small}
|
|
@@ -22914,7 +22920,7 @@ const Container$1h = styled.div`
|
|
|
22914
22920
|
|
|
22915
22921
|
var Row$1 = function (_a) {
|
|
22916
22922
|
var _b = _a.hasBorder, hasBorder = _b === void 0 ? false : _b, _c = _a.isList, isList = _c === void 0 ? false : _c, _d = _a.hasWrap, hasWrap = _d === void 0 ? true : _d, children = _a.children, classes = _a.classes;
|
|
22917
|
-
return (React.createElement(Container$
|
|
22923
|
+
return (React.createElement(Container$1l, { "data-testid": "Row", "$hasBorder": hasBorder, "$hasWrap": hasWrap, as: isList ? 'ul' : 'div', className: classes }, children));
|
|
22918
22924
|
};
|
|
22919
22925
|
|
|
22920
22926
|
const calculateWidth = (size) => {
|
|
@@ -22964,18 +22970,19 @@ const widths = (props) => {
|
|
|
22964
22970
|
`;
|
|
22965
22971
|
};
|
|
22966
22972
|
|
|
22967
|
-
const Container$
|
|
22973
|
+
const Container$1k = styled.div`
|
|
22968
22974
|
box-sizing: border-box;
|
|
22969
22975
|
display: block;
|
|
22970
22976
|
padding: ${(props) => (props.$hasPadding ? props.theme.theme_vars.spacingSizes.small : `0`)};
|
|
22971
22977
|
border: ${(props) => (props.$hasBorder ? `1px solid ${props.theme.theme_vars.colours.negative}` : 'none')};
|
|
22972
22978
|
left: 0;
|
|
22973
22979
|
${widths};
|
|
22980
|
+
font-family: ${(props) => props.theme.theme_vars.fontstack};
|
|
22974
22981
|
`;
|
|
22975
22982
|
|
|
22976
22983
|
var Column = function (_a) {
|
|
22977
22984
|
var _b = _a.small, small = _b === void 0 ? 'full' : _b, _c = _a.medium, medium = _c === void 0 ? 'one-half' : _c, _d = _a.large, large = _d === void 0 ? 'one-third' : _d, _e = _a.hasPadding, hasPadding = _e === void 0 ? true : _e, _f = _a.hasBorder, hasBorder = _f === void 0 ? false : _f, _g = _a.isList, isList = _g === void 0 ? false : _g, classes = _a.classes, id = _a.id, children = _a.children, role = _a.role;
|
|
22978
|
-
return (React.createElement(Container$
|
|
22985
|
+
return (React.createElement(Container$1k, { "data-testid": "Column", "$small": small, "$medium": medium, "$large": large, "$hasPadding": hasPadding, "$hasBorder": hasBorder, as: isList ? 'li' : 'div', className: classes, role: role, id: id }, children));
|
|
22979
22986
|
};
|
|
22980
22987
|
|
|
22981
22988
|
var PromotedLinks = function (_a) {
|
|
@@ -22992,7 +22999,7 @@ var PromotedLinks = function (_a) {
|
|
|
22992
22999
|
}
|
|
22993
23000
|
};
|
|
22994
23001
|
|
|
22995
|
-
const Container$
|
|
23002
|
+
const Container$1j = styled.div`
|
|
22996
23003
|
display: block;
|
|
22997
23004
|
`;
|
|
22998
23005
|
|
|
@@ -23042,7 +23049,7 @@ const promotedStyles = (props) => {
|
|
|
23042
23049
|
}
|
|
23043
23050
|
};
|
|
23044
23051
|
|
|
23045
|
-
const Container$
|
|
23052
|
+
const Container$1i = styled.a`
|
|
23046
23053
|
display: flex;
|
|
23047
23054
|
flex-direction: row;
|
|
23048
23055
|
flex-wrap: wrap;
|
|
@@ -23054,6 +23061,7 @@ const Container$1e = styled.a`
|
|
|
23054
23061
|
border-radius: ${(props) => props.theme.theme_vars.border_radius};
|
|
23055
23062
|
overflow: hidden;
|
|
23056
23063
|
text-decoration: none !important;
|
|
23064
|
+
font-size: 21px;
|
|
23057
23065
|
font-weight: normal !important;
|
|
23058
23066
|
margin-bottom: ${(props) => props.theme.theme_vars.spacingSizes.medium};
|
|
23059
23067
|
|
|
@@ -23178,7 +23186,7 @@ const imageRatio = (props) => {
|
|
|
23178
23186
|
}
|
|
23179
23187
|
};
|
|
23180
23188
|
|
|
23181
|
-
const Container$
|
|
23189
|
+
const Container$1h = styled.div`
|
|
23182
23190
|
display: block;
|
|
23183
23191
|
position: ${(props) => (props.$ratio === 'auto' ? 'absolute' : 'relative')};
|
|
23184
23192
|
${imageRatio}
|
|
@@ -23196,13 +23204,13 @@ const Image$3 = styled.img`
|
|
|
23196
23204
|
|
|
23197
23205
|
var ResponsiveImage = function (_a) {
|
|
23198
23206
|
var imageSmall = _a.imageSmall, imageLarge = _a.imageLarge, imageAltText = _a.imageAltText, _b = _a.smallWidth, smallWidth = _b === void 0 ? '400' : _b, _c = _a.largeWidth, largeWidth = _c === void 0 ? '1200' : _c, ratio = _a.ratio, _d = _a.objectFit, objectFit = _d === void 0 ? 'cover' : _d;
|
|
23199
|
-
return (React.createElement(Container$
|
|
23207
|
+
return (React.createElement(Container$1h, { "data-testid": "ResponsiveImage", "$ratio": ratio },
|
|
23200
23208
|
React.createElement(Image$3, { alt: imageAltText, loading: "lazy", srcSet: "".concat(imageSmall, " ").concat(smallWidth, "w, ").concat(imageLarge, " ").concat(largeWidth, "w"), sizes: "(max-width: 550px) 550px, ".concat(largeWidth, "px"), src: imageLarge, "$objectFit": objectFit })));
|
|
23201
23209
|
};
|
|
23202
23210
|
|
|
23203
23211
|
var EventLink = function (_a) {
|
|
23204
23212
|
var title = _a.title, summary = _a.summary, startTime = _a.startTime, endTime = _a.endTime, location = _a.location, url = _a.url, imageLarge = _a.imageLarge, imageSmall = _a.imageSmall, imageAltText = _a.imageAltText, _b = _a.showSummary, showSummary = _b === void 0 ? false : _b, _c = _a.hasPadding, hasPadding = _c === void 0 ? true : _c, _d = _a.isPromoted, isPromoted = _d === void 0 ? false : _d, parentTitle = _a.parentTitle;
|
|
23205
|
-
return (React.createElement(Container$
|
|
23213
|
+
return (React.createElement(Container$1i, { "data-testid": "EventLink", href: url, "$isPromoted": isPromoted },
|
|
23206
23214
|
React.createElement(Row$1, null,
|
|
23207
23215
|
React.createElement(Column, { small: "full", medium: imageLarge ? 'two-thirds' : 'full', large: imageLarge ? 'two-thirds' : 'full', hasPadding: false },
|
|
23208
23216
|
React.createElement(EventContent, { "$hasPadding": hasPadding },
|
|
@@ -23218,13 +23226,13 @@ var EventLink = function (_a) {
|
|
|
23218
23226
|
// A list of related events
|
|
23219
23227
|
var RelatedEvents = function (_a) {
|
|
23220
23228
|
var title = _a.title, events = _a.events;
|
|
23221
|
-
return (React.createElement(Container$
|
|
23229
|
+
return (React.createElement(Container$1j, { "data-testid": "RelatedEvents" },
|
|
23222
23230
|
React.createElement(Title$a, null, title),
|
|
23223
23231
|
React.createElement(List$3, null, events.map(function (event, index) { return (React.createElement(ListItem$2, { key: index },
|
|
23224
23232
|
React.createElement(EventLink, { title: event.title, startTime: event.startTime, endTime: event.endTime, showSummary: false, url: event.url, location: event.location, hasPadding: false }))); }))));
|
|
23225
23233
|
};
|
|
23226
23234
|
|
|
23227
|
-
const Container$
|
|
23235
|
+
const Container$1g = styled.div`
|
|
23228
23236
|
display: block;
|
|
23229
23237
|
`;
|
|
23230
23238
|
|
|
@@ -23260,7 +23268,7 @@ const Cookies = styled.button`
|
|
|
23260
23268
|
}
|
|
23261
23269
|
`;
|
|
23262
23270
|
|
|
23263
|
-
const Container$
|
|
23271
|
+
const Container$1f = styled.div`
|
|
23264
23272
|
${(props) => props.theme.fontStyles}
|
|
23265
23273
|
background-color: ${(props) => props.theme.theme_vars.colours.grey_light};
|
|
23266
23274
|
padding: ${(props) => props.theme.theme_vars.spacingSizes.medium} 0;
|
|
@@ -23409,6 +23417,7 @@ const StyledButton = styled.button`
|
|
|
23409
23417
|
color: ${(props) => props.theme.theme_vars.colours.action};
|
|
23410
23418
|
background-color: transparent;
|
|
23411
23419
|
border: 2px solid ${(props) => props.theme.theme_vars.colours.action};
|
|
23420
|
+
font-weight: 600;
|
|
23412
23421
|
|
|
23413
23422
|
&:hover {
|
|
23414
23423
|
background-color: ${(props) => props.theme.theme_vars.colours.action}1A;
|
|
@@ -23426,11 +23435,12 @@ const StyledButton = styled.button`
|
|
|
23426
23435
|
}
|
|
23427
23436
|
}
|
|
23428
23437
|
&.button--small {
|
|
23429
|
-
font-size:
|
|
23438
|
+
font-size: 13px;
|
|
23439
|
+
font-weight: 600;
|
|
23430
23440
|
padding: 10px 16px;
|
|
23431
23441
|
}
|
|
23432
23442
|
&.button--medium {
|
|
23433
|
-
font-size:
|
|
23443
|
+
font-size: 15px;
|
|
23434
23444
|
padding: 11px 20px;
|
|
23435
23445
|
}
|
|
23436
23446
|
&.button--large {
|
|
@@ -23604,18 +23614,18 @@ var CookieBanner = function (_a) {
|
|
|
23604
23614
|
hideCookiesAcceptedConfirmationBanner();
|
|
23605
23615
|
};
|
|
23606
23616
|
return (React.createElement(React.Fragment, null,
|
|
23607
|
-
showCookieBanner && (React.createElement(Container$
|
|
23617
|
+
showCookieBanner && (React.createElement(Container$1f, { "data-testid": "CookieBanner" },
|
|
23608
23618
|
React.createElement(CookieMessage, null,
|
|
23609
23619
|
React.createElement(CookieHeading, null, title),
|
|
23610
23620
|
React.createElement(CookieParagraph, null, paragraph),
|
|
23611
23621
|
React.createElement(ButtonsContainer, null,
|
|
23612
23622
|
React.createElement(FormButton, { primary: true, text: acceptButtonText, isDisabled: false, type: "button", onClick: acceptCookies, size: "large" }),
|
|
23613
23623
|
React.createElement(FormButton, { primary: true, text: rejectButtonText, isDisabled: false, type: "button", onClick: rejectCookies, size: "large" }))))),
|
|
23614
|
-
showCookiesRejectedBanner && (React.createElement(Container$
|
|
23624
|
+
showCookiesRejectedBanner && (React.createElement(Container$1f, { "data-testid": "CookieBannerRejected", id: "CookieBannerRejected" },
|
|
23615
23625
|
React.createElement(CookieMessage, { isInline: true },
|
|
23616
23626
|
React.createElement(CookieParagraph, null, rejectConfirmationText),
|
|
23617
23627
|
React.createElement(CookieHide, { onClick: hideCookiesConfirmationBanner, "aria-controls": "CookieBannerRejected", "aria-hidden": "false" }, "Hide")))),
|
|
23618
|
-
showCookiesAcceptedBanner && (React.createElement(Container$
|
|
23628
|
+
showCookiesAcceptedBanner && (React.createElement(Container$1f, { "data-testid": "CookieBannerAccepted", id: "CookieBannerAccepted" },
|
|
23619
23629
|
React.createElement(CookieMessage, { isInline: true },
|
|
23620
23630
|
React.createElement(CookieParagraph, null, acceptConfirmationText),
|
|
23621
23631
|
React.createElement(CookieHide, { onClick: hideCookiesConfirmationBanner, "aria-controls": "CookieBannerAccepted", "aria-hidden": "false" }, "Hide"))))));
|
|
@@ -23637,7 +23647,7 @@ var StaticMap = function (_a) {
|
|
|
23637
23647
|
return "&markers=size:".concat(size, "%7Ccolor:").concat(colour).concat(label, "%7C").concat(mapMarker.lat, ",").concat(mapMarker.lng);
|
|
23638
23648
|
})
|
|
23639
23649
|
.join('');
|
|
23640
|
-
return (React.createElement(Container$
|
|
23650
|
+
return (React.createElement(Container$1g, { "data-testid": "StaticMap" },
|
|
23641
23651
|
React.createElement(Message, null,
|
|
23642
23652
|
React.createElement("span", null,
|
|
23643
23653
|
"To interact with the map, you need to ",
|
|
@@ -23656,7 +23666,7 @@ var TextInput = function (_a) {
|
|
|
23656
23666
|
React.createElement(StyledTextInput, { type: "text", id: id, name: name, defaultValue: value, "$size": size, placeholder: placeholder, "$isErrored": isErrored, "$isLarge": isLarge })));
|
|
23657
23667
|
};
|
|
23658
23668
|
|
|
23659
|
-
const Container$
|
|
23669
|
+
const Container$1e = styled.div`
|
|
23660
23670
|
display: block;
|
|
23661
23671
|
padding-bottom: ${(props) => props.theme.theme_vars.spacingSizes.extra_small};
|
|
23662
23672
|
margin-top: ${(props) => props.theme.theme_vars.spacingSizes.medium};
|
|
@@ -23678,6 +23688,7 @@ const ToggleButton = styled.button`
|
|
|
23678
23688
|
font-size: 1rem;
|
|
23679
23689
|
cursor: ${(props) => (props.$isActive ? 'auto' : 'pointer')};
|
|
23680
23690
|
outline: none;
|
|
23691
|
+
font-family: ${(props) => props.theme.theme_vars.fontstack};
|
|
23681
23692
|
|
|
23682
23693
|
&:hover {
|
|
23683
23694
|
background: ${(props) =>
|
|
@@ -23703,11 +23714,11 @@ var ToggleButtons = function (_a) {
|
|
|
23703
23714
|
setActiveButton(index);
|
|
23704
23715
|
onClick();
|
|
23705
23716
|
};
|
|
23706
|
-
return (React.createElement(Container$
|
|
23717
|
+
return (React.createElement(Container$1e, { "data-testid": "ToggleButtons", "$hasTopMargin": hasTopMargin },
|
|
23707
23718
|
React.createElement(React.Fragment, null, buttons.map(function (button, index) { return (React.createElement(ToggleButton, { type: "button", title: button.title, "aria-label": button.ariaLabel, key: index, onClick: function () { return handleClick(index, button.onClick); }, "$isActive": activeButton == index }, button.label)); }))));
|
|
23708
23719
|
};
|
|
23709
23720
|
|
|
23710
|
-
const Container$
|
|
23721
|
+
const Container$1d = styled.div`
|
|
23711
23722
|
display: block;
|
|
23712
23723
|
position: fixed;
|
|
23713
23724
|
top: ${(props) => props.theme.theme_vars.spacingSizes.xxx_large};
|
|
@@ -23807,14 +23818,14 @@ var QuickExit = function (_a) {
|
|
|
23807
23818
|
window.location.replace(url);
|
|
23808
23819
|
};
|
|
23809
23820
|
return (React.createElement(React.Fragment, null,
|
|
23810
|
-
React.createElement(Container$
|
|
23821
|
+
React.createElement(Container$1d, { "data-testid": "QuickExit" },
|
|
23811
23822
|
React.createElement(QuickExitButton, { onClick: function (e) { return handleClick(e); } },
|
|
23812
23823
|
React.createElement(HeadingWithIcon, { icon: "quickExit", level: 3, text: label, hasHover: false })))));
|
|
23813
23824
|
};
|
|
23814
23825
|
|
|
23815
23826
|
// Accordion
|
|
23816
23827
|
|
|
23817
|
-
const Container$
|
|
23828
|
+
const Container$1c = styled.div`
|
|
23818
23829
|
${(props) => props.theme.fontStyles}
|
|
23819
23830
|
margin-bottom: 20px;
|
|
23820
23831
|
border-bottom: 1px solid ${(props) => props.theme.theme_vars.colours.grey};
|
|
@@ -23830,6 +23841,9 @@ const AccordionControls$1 = styled.div`
|
|
|
23830
23841
|
|
|
23831
23842
|
const OpenAllButton = styled.button`
|
|
23832
23843
|
font-size: ${(props) => props.theme.theme_vars.fontSizes.extra_small};
|
|
23844
|
+
font-family: ${(props) => props.theme.theme_vars.fontstack};
|
|
23845
|
+
font-weight: 500 !important;
|
|
23846
|
+
|
|
23833
23847
|
position: relative;
|
|
23834
23848
|
z-index: 10;
|
|
23835
23849
|
margin: 0;
|
|
@@ -23918,6 +23932,8 @@ const SectionButton = styled.button`
|
|
|
23918
23932
|
-webkit-appearance: none;
|
|
23919
23933
|
text-decoration: underline;
|
|
23920
23934
|
min-width: ${(props) => props.theme.theme_vars.spacingSizes.x_large};
|
|
23935
|
+
font-family: ${(props) => props.theme.theme_vars.fontstack};
|
|
23936
|
+
font-weight: 600 !important;
|
|
23921
23937
|
|
|
23922
23938
|
${SectionButtonIsFilteredStyles}
|
|
23923
23939
|
|
|
@@ -24099,7 +24115,7 @@ var Accordion$1 = function (_a) {
|
|
|
24099
24115
|
setAccordionStates(newStatus);
|
|
24100
24116
|
};
|
|
24101
24117
|
var accordionId = "accordion".concat(useId());
|
|
24102
|
-
return (React.createElement(Container$
|
|
24118
|
+
return (React.createElement(Container$1c, { "data-testid": "Accordion", id: accordionId },
|
|
24103
24119
|
showControls && sections.length > 1 && (React.createElement(AccordionControls$1, null,
|
|
24104
24120
|
React.createElement(OpenAllButton, { onClick: toggleAll, type: "button", "aria-expanded": !openAll },
|
|
24105
24121
|
openAll ? 'Open all' : 'Close all',
|
|
@@ -24107,7 +24123,7 @@ var Accordion$1 = function (_a) {
|
|
|
24107
24123
|
accordionStates.map(function (section, i) { return (React.createElement(AccordionSection, __assign({}, section, { key: i, onToggle: updateAccordionState, isFilter: isFilter, withReadMore: withReadMore }))); })));
|
|
24108
24124
|
};
|
|
24109
24125
|
|
|
24110
|
-
const Container$
|
|
24126
|
+
const Container$1b = styled.div`
|
|
24111
24127
|
display: block;
|
|
24112
24128
|
background-color: ${(props) => props.theme.theme_vars.colours.grey_light};
|
|
24113
24129
|
padding: ${(props) => props.theme.theme_vars.spacingSizes.small};
|
|
@@ -24161,7 +24177,7 @@ var _a, _b;
|
|
|
24161
24177
|
var PostcodeSearchApiUrl = (_a = process.env.NEXT_PUBLIC_POSTCODE_SEARCH_API_URL) !== null && _a !== void 0 ? _a : '';
|
|
24162
24178
|
var BinFinderApiUrl = (_b = process.env.NEXT_PUBLIC_BIN_FINDER_API_URL) !== null && _b !== void 0 ? _b : '';
|
|
24163
24179
|
|
|
24164
|
-
const Container$
|
|
24180
|
+
const Container$1a = styled.div`
|
|
24165
24181
|
display: flex;
|
|
24166
24182
|
-webkit-flex-direction: row;
|
|
24167
24183
|
-moz-flex-direction: row;
|
|
@@ -24186,7 +24202,7 @@ const Line$1 = styled.div`
|
|
|
24186
24202
|
|
|
24187
24203
|
const ErrorSummary$1 = styled.div`
|
|
24188
24204
|
color: ${(props) => props.theme.theme_vars.colours.negative};
|
|
24189
|
-
font-weight:
|
|
24205
|
+
font-weight: 700;
|
|
24190
24206
|
border-radius: ${(props) => props.theme.theme_vars.border_radius};
|
|
24191
24207
|
border: 3px solid ${(props) => props.theme.theme_vars.colours.negative};
|
|
24192
24208
|
margin-bottom: 15px;
|
|
@@ -24198,7 +24214,7 @@ const ErrorSummary$1 = styled.div`
|
|
|
24198
24214
|
*/
|
|
24199
24215
|
var FormWithLine = function (_a) {
|
|
24200
24216
|
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;
|
|
24201
|
-
return (React.createElement(Container$
|
|
24217
|
+
return (React.createElement(Container$1a, null,
|
|
24202
24218
|
React.createElement(Line$1, { "$lineColour": lineColour, "$hideLine": hideLine, "$isError": isError }),
|
|
24203
24219
|
React.createElement(Form, { onSubmit: onSubmit, "$hideLine": hideLine, role: formRole, method: formMethod, url: formURL, "data-testid": "FormWithLine" },
|
|
24204
24220
|
errorSummary && React.createElement(ErrorSummary$1, null, errorSummary),
|
|
@@ -24248,7 +24264,7 @@ var Input = function (_a) {
|
|
|
24248
24264
|
typeof value !== 'undefined' ? (React.createElement(StyledInput, { onChange: onChange, type: type, placeholder: placeholder, name: name, "$isErrored": isErrored, maxLength: maxLength, value: value, id: id, autoComplete: autocomplete, "$isFullWidth": isFullWidth, min: minValue })) : (React.createElement(StyledInput, { onChange: onChange, type: type, placeholder: placeholder, name: name, "$isErrored": isErrored, maxLength: maxLength, defaultValue: defaultValue, id: id, autoComplete: autocomplete, "$isFullWidth": isFullWidth, min: minValue }))));
|
|
24249
24265
|
};
|
|
24250
24266
|
|
|
24251
|
-
const Container$
|
|
24267
|
+
const Container$19 = styled.div`
|
|
24252
24268
|
display: block;
|
|
24253
24269
|
`;
|
|
24254
24270
|
|
|
@@ -24267,7 +24283,7 @@ const CollectionHeader = styled.div`
|
|
|
24267
24283
|
`;
|
|
24268
24284
|
|
|
24269
24285
|
const CollectionDay = styled.p`
|
|
24270
|
-
font-weight:
|
|
24286
|
+
font-weight: 700;
|
|
24271
24287
|
font-size: 1.5rem;
|
|
24272
24288
|
padding-top: ${(props) => props.theme.theme_vars.spacingSizes.small};
|
|
24273
24289
|
`;
|
|
@@ -24348,6 +24364,7 @@ const Title$8 = styled.p`
|
|
|
24348
24364
|
display: block;
|
|
24349
24365
|
color: ${(props) => props.theme.theme_vars.colours.action};
|
|
24350
24366
|
font-weight: 700;
|
|
24367
|
+
font-size: 20px;
|
|
24351
24368
|
margin-bottom: 0 !important;
|
|
24352
24369
|
`;
|
|
24353
24370
|
const Type = styled.span`
|
|
@@ -24441,7 +24458,7 @@ var BinCollection = function (_a) {
|
|
|
24441
24458
|
acc[collectionDay].push(binCollection);
|
|
24442
24459
|
return acc;
|
|
24443
24460
|
}, {});
|
|
24444
|
-
return (React.createElement(Container$
|
|
24461
|
+
return (React.createElement(Container$19, { "data-testid": "BinCollection" },
|
|
24445
24462
|
React.createElement(Heading$1, { text: "Bin collections for:", level: 3 }),
|
|
24446
24463
|
React.createElement("p", null, address),
|
|
24447
24464
|
Object.keys(binCollectionsGrouped).map(function (day) {
|
|
@@ -24626,7 +24643,7 @@ var BinFinder = function (_a) {
|
|
|
24626
24643
|
return [2 /*return*/];
|
|
24627
24644
|
});
|
|
24628
24645
|
}); };
|
|
24629
|
-
return (React.createElement(Container$
|
|
24646
|
+
return (React.createElement(Container$1b, { "data-testid": "BinFinder" },
|
|
24630
24647
|
title && (React.createElement(TitleContainer, null,
|
|
24631
24648
|
React.createElement(Heading$1, { level: 2, text: title }))),
|
|
24632
24649
|
uprn === '' ? (React.createElement(React.Fragment, null,
|
|
@@ -24723,7 +24740,468 @@ var BlockQuote = function (_a) {
|
|
|
24723
24740
|
citation && React.createElement(Citation, null, citation)));
|
|
24724
24741
|
};
|
|
24725
24742
|
|
|
24726
|
-
const Container$
|
|
24743
|
+
const Container$18 = styled.div`
|
|
24744
|
+
display: block;
|
|
24745
|
+
margin-bottom: ${(props) => props.theme.theme_vars.spacingSizes.large};
|
|
24746
|
+
`;
|
|
24747
|
+
|
|
24748
|
+
const Totalizer = styled.div`
|
|
24749
|
+
position: relative;
|
|
24750
|
+
display: flex;
|
|
24751
|
+
flex-direction: row;
|
|
24752
|
+
justify-content: start;
|
|
24753
|
+
width: 100%;
|
|
24754
|
+
margin-bottom: ${(props) => props.theme.theme_vars.spacingSizes.medium};
|
|
24755
|
+
`;
|
|
24756
|
+
|
|
24757
|
+
const TotalContainer = styled.div`
|
|
24758
|
+
width: 100%;
|
|
24759
|
+
display: flex;
|
|
24760
|
+
flex-direction: row;
|
|
24761
|
+
justify-content: space-between;
|
|
24762
|
+
align-items: center;
|
|
24763
|
+
flex-wrap: wrap;
|
|
24764
|
+
|
|
24765
|
+
@media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.m}) {
|
|
24766
|
+
flex-wrap: nowrap;
|
|
24767
|
+
}
|
|
24768
|
+
`;
|
|
24769
|
+
|
|
24770
|
+
const TotalAmount = styled.span`
|
|
24771
|
+
font-weight: bold;
|
|
24772
|
+
font-size: ${(props) => props.theme.theme_vars.fontSizes.large};
|
|
24773
|
+
margin-bottom: ${(props) => props.theme.theme_vars.spacingSizes.extra_small} !important;
|
|
24774
|
+
display: block;
|
|
24775
|
+
color: ${(props) =>
|
|
24776
|
+
props.$current > props.$target ? props.theme.theme_vars.colours.negative : props.theme.theme_vars.colours.positive};
|
|
24777
|
+
`;
|
|
24778
|
+
|
|
24779
|
+
const TargetAmount = styled.span`
|
|
24780
|
+
font-weight: normal;
|
|
24781
|
+
font-size: ${(props) => props.theme.theme_vars.fontSizes.medium};
|
|
24782
|
+
display: block;
|
|
24783
|
+
`;
|
|
24784
|
+
|
|
24785
|
+
const calculateTotal = (props) => {
|
|
24786
|
+
if (props.$current <= props.$target) {
|
|
24787
|
+
return css`
|
|
24788
|
+
background-color: ${(props) => props.theme.theme_vars.colours.positive};
|
|
24789
|
+
width: 100%;
|
|
24790
|
+
`;
|
|
24791
|
+
}
|
|
24792
|
+
const width = props.$current > 0 ? Math.floor((props.$target / props.$current) * 100) : 0;
|
|
24793
|
+
return css`
|
|
24794
|
+
background-color: ${(props) => props.theme.theme_vars.colours.action};
|
|
24795
|
+
width: ${width + '%'};
|
|
24796
|
+
border-right: 1px solid black;
|
|
24797
|
+
`;
|
|
24798
|
+
};
|
|
24799
|
+
|
|
24800
|
+
const Target = styled.div`
|
|
24801
|
+
height: ${(props) => props.theme.theme_vars.spacingSizes.medium};
|
|
24802
|
+
${calculateTotal}
|
|
24803
|
+
`;
|
|
24804
|
+
|
|
24805
|
+
const calculateOver = (props) => {
|
|
24806
|
+
if (props.$current < props.$target) {
|
|
24807
|
+
return css`
|
|
24808
|
+
display: none;
|
|
24809
|
+
`;
|
|
24810
|
+
}
|
|
24811
|
+
const width = props.$current > 0 ? Math.ceil(((props.$current - props.$target) / props.$current) * 100) : 0;
|
|
24812
|
+
return css`
|
|
24813
|
+
width: ${width + '%'};
|
|
24814
|
+
`;
|
|
24815
|
+
};
|
|
24816
|
+
const OverBudget = styled.div`
|
|
24817
|
+
height: ${(props) => props.theme.theme_vars.spacingSizes.medium};
|
|
24818
|
+
background-color: ${(props) => props.theme.theme_vars.colours.negative};
|
|
24819
|
+
${calculateOver}
|
|
24820
|
+
`;
|
|
24821
|
+
|
|
24822
|
+
const ButtonContainer$5 = styled.div`
|
|
24823
|
+
display: flex;
|
|
24824
|
+
flex-direction: column;
|
|
24825
|
+
justify-content: center;
|
|
24826
|
+
align-items: center;
|
|
24827
|
+
`;
|
|
24828
|
+
|
|
24829
|
+
const SubmitResults = styled.button`
|
|
24830
|
+
background-color: ${(props) => props.theme.theme_vars.colours.action};
|
|
24831
|
+
padding: ${(props) => `${props.theme.theme_vars.spacingSizes.medium}`};
|
|
24832
|
+
color: ${(props) => props.theme.theme_vars.colours.white};
|
|
24833
|
+
cursor: pointer;
|
|
24834
|
+
font-weight: bold;
|
|
24835
|
+
font-size: ${(props) => props.theme.theme_vars.fontSizes.small};
|
|
24836
|
+
min-width: 45px;
|
|
24837
|
+
outline: none;
|
|
24838
|
+
border: none;
|
|
24839
|
+
border-radius: ${(props) => props.theme.theme_vars.border_radius};
|
|
24840
|
+
`;
|
|
24841
|
+
|
|
24842
|
+
const ServiceSummary = styled.div`
|
|
24843
|
+
display: block;
|
|
24844
|
+
padding: ${(props) => props.theme.theme_vars.spacingSizes.medium};
|
|
24845
|
+
box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.08);
|
|
24846
|
+
border-radius: ${(props) => props.theme.theme_vars.border_radius_large};
|
|
24847
|
+
`;
|
|
24848
|
+
|
|
24849
|
+
const ServiceResult = styled.div`
|
|
24850
|
+
display: flex;
|
|
24851
|
+
flex-direction: row;
|
|
24852
|
+
justify-content: flex-start;
|
|
24853
|
+
align-items: center;
|
|
24854
|
+
`;
|
|
24855
|
+
|
|
24856
|
+
const ServiceValue = styled.div`
|
|
24857
|
+
color: ${(props) => props.theme.theme_vars.colours.action};
|
|
24858
|
+
font-size: ${(props) => props.theme.theme_vars.fontSizes.medium};
|
|
24859
|
+
font-weight: bold;
|
|
24860
|
+
padding-right: ${(props) => props.theme.theme_vars.spacingSizes.medium};
|
|
24861
|
+
`;
|
|
24862
|
+
|
|
24863
|
+
const ServiceChange = styled.div`
|
|
24864
|
+
color: ${(props) =>
|
|
24865
|
+
props.$change === 'positive' ? props.theme.theme_vars.colours.positive : props.theme.theme_vars.colours.negative};
|
|
24866
|
+
font-weight: bold;
|
|
24867
|
+
font-size: ${(props) => props.theme.theme_vars.fontSizes.small};
|
|
24868
|
+
`;
|
|
24869
|
+
|
|
24870
|
+
const Retry = styled.button`
|
|
24871
|
+
outline: none;
|
|
24872
|
+
border: none;
|
|
24873
|
+
cursor: pointer;
|
|
24874
|
+
font-size: ${(props) => props.theme.theme_vars.fontSizes.small};
|
|
24875
|
+
margin-top: ${(props) => props.theme.theme_vars.spacingSizes.medium};
|
|
24876
|
+
padding: ${(props) => props.theme.theme_vars.spacingSizes.medium};
|
|
24877
|
+
background: none;
|
|
24878
|
+
|
|
24879
|
+
${(props) => props.theme.linkStyles}
|
|
24880
|
+
|
|
24881
|
+
&:hover {
|
|
24882
|
+
${(props) => props.theme.linkStylesHover}
|
|
24883
|
+
}
|
|
24884
|
+
&:focus {
|
|
24885
|
+
${(props) => props.theme.linkStylesFocus}
|
|
24886
|
+
}
|
|
24887
|
+
&:active {
|
|
24888
|
+
${(props) => props.theme.linkStylesActive};
|
|
24889
|
+
}
|
|
24890
|
+
`;
|
|
24891
|
+
|
|
24892
|
+
const Container$17 = styled.div`
|
|
24893
|
+
display: block;
|
|
24894
|
+
padding: ${(props) => props.theme.theme_vars.spacingSizes.medium};
|
|
24895
|
+
box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.08);
|
|
24896
|
+
border-radius: ${(props) => props.theme.theme_vars.border_radius_large};
|
|
24897
|
+
`;
|
|
24898
|
+
|
|
24899
|
+
const RangeLabel = styled.label`
|
|
24900
|
+
${VisuallyHidden$3};
|
|
24901
|
+
`;
|
|
24902
|
+
|
|
24903
|
+
const RangeInput = styled.input`
|
|
24904
|
+
appearance: none;
|
|
24905
|
+
background: transparent;
|
|
24906
|
+
width: 100%;
|
|
24907
|
+
margin-bottom: ${(props) => props.theme.theme_vars.spacingSizes.small};
|
|
24908
|
+
padding: ${(props) => props.theme.theme_vars.spacingSizes.medium} 0;
|
|
24909
|
+
|
|
24910
|
+
&:focus {
|
|
24911
|
+
outline: none;
|
|
24912
|
+
}
|
|
24913
|
+
|
|
24914
|
+
&::-webkit-slider-runnable-track {
|
|
24915
|
+
background-color: ${(props) => props.theme.theme_vars.colours.grey};
|
|
24916
|
+
border-radius: ${(props) => props.theme.theme_vars.border_radius};
|
|
24917
|
+
height: ${(props) => props.theme.theme_vars.spacingSizes.small};
|
|
24918
|
+
}
|
|
24919
|
+
|
|
24920
|
+
&::-webkit-slider-thumb {
|
|
24921
|
+
appearance: none;
|
|
24922
|
+
width: 0px;
|
|
24923
|
+
height: 0px;
|
|
24924
|
+
border-style: solid;
|
|
24925
|
+
border-width: 0 15px 30px 15px;
|
|
24926
|
+
border-color: transparent transparent ${(props) => props.theme.theme_vars.colours.action} transparent;
|
|
24927
|
+
transform: rotate(0deg);
|
|
24928
|
+
margin-top: ${(props) => props.theme.theme_vars.spacingSizes.small};
|
|
24929
|
+
}
|
|
24930
|
+
|
|
24931
|
+
&:focus::-webkit-slider-thumb {
|
|
24932
|
+
outline: none;
|
|
24933
|
+
}
|
|
24934
|
+
|
|
24935
|
+
&::-moz-range-track {
|
|
24936
|
+
background-color: ${(props) => props.theme.theme_vars.colours.grey};
|
|
24937
|
+
border-radius: ${(props) => props.theme.theme_vars.border_radius};
|
|
24938
|
+
height: ${(props) => props.theme.theme_vars.spacingSizes.small};
|
|
24939
|
+
}
|
|
24940
|
+
|
|
24941
|
+
&::-moz-range-thumb {
|
|
24942
|
+
appearance: none;
|
|
24943
|
+
width: 0px;
|
|
24944
|
+
height: 0px;
|
|
24945
|
+
border-style: solid;
|
|
24946
|
+
border-width: ${(props) => `0 15px 30px 15px`};
|
|
24947
|
+
border-color: transparent transparent ${(props) => props.theme.theme_vars.colours.action} transparent;
|
|
24948
|
+
transform: rotate(0deg);
|
|
24949
|
+
margin-top: ${(props) => props.theme.theme_vars.spacingSizes.small};
|
|
24950
|
+
}
|
|
24951
|
+
|
|
24952
|
+
&:focus::-moz-range-thumb {
|
|
24953
|
+
outline: none;
|
|
24954
|
+
}
|
|
24955
|
+
`;
|
|
24956
|
+
|
|
24957
|
+
const MinMaxContainer = styled.div`
|
|
24958
|
+
display: flex;
|
|
24959
|
+
justify-content: space-between;
|
|
24960
|
+
`;
|
|
24961
|
+
|
|
24962
|
+
const MinMax = styled.div`
|
|
24963
|
+
font-weight: bold;
|
|
24964
|
+
font-size: ${(props) => props.theme.theme_vars.fontSizes.small};
|
|
24965
|
+
padding: ${(props) => `0 ${props.theme.theme_vars.spacingSizes.small}`};
|
|
24966
|
+
`;
|
|
24967
|
+
|
|
24968
|
+
const CurrentValue = styled.div`
|
|
24969
|
+
font-weight: bold;
|
|
24970
|
+
font-size: ${(props) => props.theme.theme_vars.fontSizes.medium};
|
|
24971
|
+
color: ${(props) => props.theme.theme_vars.colours.action_dark};
|
|
24972
|
+
width: 100%;
|
|
24973
|
+
text-align: center;
|
|
24974
|
+
`;
|
|
24975
|
+
|
|
24976
|
+
const ButtonContainer$4 = styled.div`
|
|
24977
|
+
width: 100%;
|
|
24978
|
+
display: flex;
|
|
24979
|
+
justify-content: end;
|
|
24980
|
+
`;
|
|
24981
|
+
|
|
24982
|
+
const RangeButton = styled.button`
|
|
24983
|
+
background-color: ${(props) => props.theme.theme_vars.colours.action};
|
|
24984
|
+
padding: ${(props) => props.theme.theme_vars.spacingSizes.medium};
|
|
24985
|
+
color: ${(props) => props.theme.theme_vars.colours.white};
|
|
24986
|
+
cursor: pointer;
|
|
24987
|
+
font-weight: bold;
|
|
24988
|
+
font-size: ${(props) => props.theme.theme_vars.fontSizes.medium};
|
|
24989
|
+
min-width: 45px;
|
|
24990
|
+
outline: none;
|
|
24991
|
+
border: none;
|
|
24992
|
+
border-radius: ${(props) => props.theme.theme_vars.border_radius};
|
|
24993
|
+
display: flex;
|
|
24994
|
+
justify-content: center;
|
|
24995
|
+
align-items: center;
|
|
24996
|
+
|
|
24997
|
+
svg {
|
|
24998
|
+
width: ${(props) => props.theme.theme_vars.spacingSizes.large};
|
|
24999
|
+
height: ${(props) => props.theme.theme_vars.spacingSizes.large};
|
|
25000
|
+
color: ${(props) => props.theme.theme_vars.colours.white};
|
|
25001
|
+
}
|
|
25002
|
+
|
|
25003
|
+
&:disabled {
|
|
25004
|
+
background-color: ${(props) => props.theme.theme_vars.colours.grey_dark} !important;
|
|
25005
|
+
color: ${(props) => props.theme.theme_vars.colours.white} !important;
|
|
25006
|
+
outline: none !important;
|
|
25007
|
+
cursor: not-allowed;
|
|
25008
|
+
}
|
|
25009
|
+
|
|
25010
|
+
&:hover {
|
|
25011
|
+
background-color: ${(props) => props.theme.theme_vars.colours.action_dark};
|
|
25012
|
+
}
|
|
25013
|
+
|
|
25014
|
+
&:focus {
|
|
25015
|
+
${(props) => props.theme.linkStylesFocus};
|
|
25016
|
+
svg {
|
|
25017
|
+
color: ${(props) => props.theme.theme_vars.colours.black} !important;
|
|
25018
|
+
}
|
|
25019
|
+
}
|
|
25020
|
+
|
|
25021
|
+
&:active {
|
|
25022
|
+
${(props) => props.theme.linkStylesActive};
|
|
25023
|
+
svg {
|
|
25024
|
+
color: ${(props) => props.theme.theme_vars.colours.black} !important;
|
|
25025
|
+
}
|
|
25026
|
+
}
|
|
25027
|
+
`;
|
|
25028
|
+
|
|
25029
|
+
const impactContainerHighlight = (props) => {
|
|
25030
|
+
switch (props.$title) {
|
|
25031
|
+
case 'low':
|
|
25032
|
+
return css`
|
|
25033
|
+
border-left: 5px solid ${(props) => props.theme.theme_vars.colours.negative};
|
|
25034
|
+
`;
|
|
25035
|
+
case 'medium':
|
|
25036
|
+
return css`
|
|
25037
|
+
border-left: 5px solid ${(props) => props.theme.theme_vars.colours.focus};
|
|
25038
|
+
`;
|
|
25039
|
+
default:
|
|
25040
|
+
return css`
|
|
25041
|
+
border-left: 5px solid ${(props) => props.theme.theme_vars.colours.positive};
|
|
25042
|
+
`;
|
|
25043
|
+
}
|
|
25044
|
+
};
|
|
25045
|
+
|
|
25046
|
+
const ImpactContainer = styled.div`
|
|
25047
|
+
width: 100%;
|
|
25048
|
+
padding: ${(props) => props.theme.theme_vars.spacingSizes.small};
|
|
25049
|
+
background-color: ${(props) => props.theme.theme_vars.colours.grey_light};
|
|
25050
|
+
${impactContainerHighlight};
|
|
25051
|
+
`;
|
|
25052
|
+
|
|
25053
|
+
const ImpactTitle = styled.p`
|
|
25054
|
+
font-weight: bold;
|
|
25055
|
+
font-size: ${(props) => props.theme.theme_vars.fontSizes.small};
|
|
25056
|
+
margin-bottom: 0 !important;
|
|
25057
|
+
text-transform: capitalize;
|
|
25058
|
+
`;
|
|
25059
|
+
|
|
25060
|
+
const ImpactSummary = styled.p`
|
|
25061
|
+
font-size: ${(props) => props.theme.theme_vars.fontSizes.small};
|
|
25062
|
+
margin-bottom: 0 !important;
|
|
25063
|
+
`;
|
|
25064
|
+
|
|
25065
|
+
var BudgetSlider = function (_a) {
|
|
25066
|
+
var title = _a.title, _b = _a.summary, summary = _b === void 0 ? '' : _b, icon = _a.icon, minimum = _a.minimum, maximum = _a.maximum, initialValue = _a.initialValue, impacts = _a.impacts, onChange = _a.onChange, _c = _a.index, index = _c === void 0 ? 0 : _c;
|
|
25067
|
+
var _d = useState(initialValue), value = _d[0], setValue = _d[1];
|
|
25068
|
+
var handleDecrement = function () {
|
|
25069
|
+
if (value > minimum) {
|
|
25070
|
+
var updatedValue = value - 1;
|
|
25071
|
+
setValue(updatedValue);
|
|
25072
|
+
if (onChange) {
|
|
25073
|
+
onChange(updatedValue, index);
|
|
25074
|
+
}
|
|
25075
|
+
}
|
|
25076
|
+
};
|
|
25077
|
+
var handleIncrement = function () {
|
|
25078
|
+
if (value < maximum) {
|
|
25079
|
+
var updatedValue = value + 1;
|
|
25080
|
+
setValue(updatedValue);
|
|
25081
|
+
if (onChange) {
|
|
25082
|
+
onChange(updatedValue, index);
|
|
25083
|
+
}
|
|
25084
|
+
}
|
|
25085
|
+
};
|
|
25086
|
+
/**
|
|
25087
|
+
* Transform a title into a string suitable for a html id
|
|
25088
|
+
*/
|
|
25089
|
+
var createId = function (text) {
|
|
25090
|
+
return text
|
|
25091
|
+
.toLowerCase()
|
|
25092
|
+
.replace(/[^a-z0-9 -]/g, '')
|
|
25093
|
+
.replace(/\s+/g, '-') // replace spaces with hyphens
|
|
25094
|
+
.replace(/-+/g, '-');
|
|
25095
|
+
};
|
|
25096
|
+
return (React.createElement(Container$17, { "data-testid": "BudgetSlider" },
|
|
25097
|
+
icon ? (React.createElement(HeadingWithIcon, { text: title, icon: icon, level: 3, subHeading: summary })) : (React.createElement(React.Fragment, null,
|
|
25098
|
+
React.createElement(Heading$1, { text: title, level: 3 }),
|
|
25099
|
+
React.createElement("p", null, summary))),
|
|
25100
|
+
React.createElement(Row$1, null,
|
|
25101
|
+
React.createElement(Column, { small: "full", medium: "full", large: "full" },
|
|
25102
|
+
React.createElement(MinMaxContainer, null,
|
|
25103
|
+
React.createElement(MinMax, null,
|
|
25104
|
+
minimum,
|
|
25105
|
+
"%"),
|
|
25106
|
+
React.createElement(MinMax, null,
|
|
25107
|
+
maximum,
|
|
25108
|
+
"%")),
|
|
25109
|
+
React.createElement(RangeLabel, { htmlFor: createId(title) }, "Range slider for ".concat(title)),
|
|
25110
|
+
React.createElement(RangeInput, { type: "range", min: minimum, max: maximum, value: value, id: createId(title), readOnly: true, tabIndex: "-1", "aria-valuetext": "".concat(title, " value is ").concat(value, " percent"), "aria-live": "polite", "aria-valuemin": minimum, "aria-valuemax": maximum })),
|
|
25111
|
+
React.createElement(Column, { small: "one-third", medium: "one-third", large: "one-third" },
|
|
25112
|
+
React.createElement(RangeButton, { onClick: handleDecrement, type: "button", "aria-label": "Lower the ".concat(title, " value"), disabled: value === minimum },
|
|
25113
|
+
React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", strokeWidth: 3, stroke: "currentColor" },
|
|
25114
|
+
React.createElement("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M5 12h14" })))),
|
|
25115
|
+
React.createElement(Column, { small: "one-third", medium: "one-third", large: "one-third" },
|
|
25116
|
+
React.createElement(CurrentValue, null,
|
|
25117
|
+
value,
|
|
25118
|
+
"%")),
|
|
25119
|
+
React.createElement(Column, { small: "one-third", medium: "one-third", large: "one-third" },
|
|
25120
|
+
React.createElement(ButtonContainer$4, null,
|
|
25121
|
+
React.createElement(RangeButton, { onClick: handleIncrement, type: "button", "aria-label": "Increase the ".concat(title, " value"), disabled: value === maximum },
|
|
25122
|
+
React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", strokeWidth: 3, stroke: "currentColor" },
|
|
25123
|
+
React.createElement("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M12 4.5v15m7.5-7.5h-15" }))))),
|
|
25124
|
+
impacts && (React.createElement(Column, { small: "full", medium: "full", large: "full" },
|
|
25125
|
+
React.createElement(React.Fragment, null, impacts.map(function (impact, index) { return (React.createElement(React.Fragment, { key: index }, value >= impact.minimum && value <= impact.maximum && (React.createElement(ImpactContainer, { "$title": impact.title },
|
|
25126
|
+
React.createElement(ImpactTitle, null, impact.title),
|
|
25127
|
+
React.createElement(ImpactSummary, null, impact.summary))))); })))))));
|
|
25128
|
+
};
|
|
25129
|
+
|
|
25130
|
+
/**
|
|
25131
|
+
* A budget game with sliders to set your own budget
|
|
25132
|
+
*/
|
|
25133
|
+
var BudgetGame = function (_a) {
|
|
25134
|
+
var _b = _a.budgetServices, budgetServices = _b === void 0 ? [] : _b, totalAllowed = _a.totalAllowed, onSubmitResults = _a.onSubmitResults, onTryAgain = _a.onTryAgain;
|
|
25135
|
+
var _c = useState(false), viewResults = _c[0], setViewResults = _c[1];
|
|
25136
|
+
var _d = useState(budgetServices.map(function (budgetService) { var _a; return (_a = budgetService.initialValue) !== null && _a !== void 0 ? _a : 0; })), budgetValues = _d[0], setBudgetValues = _d[1];
|
|
25137
|
+
var _e = useState(0), totalBudget = _e[0], setTotalBudget = _e[1];
|
|
25138
|
+
var calculateTotal = function () {
|
|
25139
|
+
return budgetValues.reduce(function (accumulator, currentValue) { return accumulator + currentValue; }, 0);
|
|
25140
|
+
};
|
|
25141
|
+
var handleValueChange = function (value, index) {
|
|
25142
|
+
var valuesToUpdate = budgetValues.map(function (budgetValue, valueIndex) {
|
|
25143
|
+
if (valueIndex === index) {
|
|
25144
|
+
return value;
|
|
25145
|
+
}
|
|
25146
|
+
else {
|
|
25147
|
+
return budgetValue;
|
|
25148
|
+
}
|
|
25149
|
+
});
|
|
25150
|
+
setBudgetValues(valuesToUpdate);
|
|
25151
|
+
};
|
|
25152
|
+
// Set the total each time the budgetValues changes
|
|
25153
|
+
useEffect(function () {
|
|
25154
|
+
var updatedTotal = calculateTotal();
|
|
25155
|
+
setTotalBudget(updatedTotal);
|
|
25156
|
+
}, [budgetValues]);
|
|
25157
|
+
var handleSubmitResults = function () {
|
|
25158
|
+
setViewResults(true);
|
|
25159
|
+
if (onSubmitResults) {
|
|
25160
|
+
onSubmitResults();
|
|
25161
|
+
}
|
|
25162
|
+
};
|
|
25163
|
+
var handleTryAgain = function () {
|
|
25164
|
+
setViewResults(false);
|
|
25165
|
+
if (onTryAgain) {
|
|
25166
|
+
onTryAgain();
|
|
25167
|
+
}
|
|
25168
|
+
};
|
|
25169
|
+
return (React.createElement(Container$18, { "data-testid": "BudgetGame" },
|
|
25170
|
+
React.createElement(Row$1, null,
|
|
25171
|
+
React.createElement(Column, { small: "full", medium: "full", large: "full" },
|
|
25172
|
+
React.createElement(TotalContainer, null,
|
|
25173
|
+
React.createElement(TargetAmount, null,
|
|
25174
|
+
"Target: ",
|
|
25175
|
+
totalAllowed,
|
|
25176
|
+
"%"),
|
|
25177
|
+
React.createElement(TotalAmount, { "$current": totalBudget, "$target": totalAllowed, "aria-live": "polite", "data-testid": "BudgetTotal" },
|
|
25178
|
+
"Total: ",
|
|
25179
|
+
totalBudget,
|
|
25180
|
+
"%"))),
|
|
25181
|
+
React.createElement(Column, { small: "full", medium: "full", large: "full" },
|
|
25182
|
+
React.createElement(Totalizer, { "$current": totalBudget, "$target": totalAllowed },
|
|
25183
|
+
React.createElement(Target, { "$current": totalBudget, "$target": totalAllowed }),
|
|
25184
|
+
React.createElement(OverBudget, { "$current": totalBudget, "$target": totalAllowed }))),
|
|
25185
|
+
totalBudget <= totalAllowed && (React.createElement(Column, { small: "full", medium: "full", large: "full" }, !viewResults ? (React.createElement(ButtonContainer$5, null,
|
|
25186
|
+
React.createElement(SubmitResults, { type: "button", onClick: handleSubmitResults }, "See your results"))) : (React.createElement(Row$1, null,
|
|
25187
|
+
budgetServices.map(function (budgetService, index) { return (React.createElement(Column, { key: index, small: "full", medium: "one-half", large: "one-half" },
|
|
25188
|
+
React.createElement(ServiceSummary, null,
|
|
25189
|
+
budgetService.icon ? (React.createElement(HeadingWithIcon, { text: budgetService.title, icon: budgetService.icon, level: 3 })) : (React.createElement(Heading$1, { level: 3, text: budgetService.title })),
|
|
25190
|
+
React.createElement(ServiceResult, null,
|
|
25191
|
+
React.createElement(ServiceValue, null,
|
|
25192
|
+
budgetValues[index],
|
|
25193
|
+
"%"),
|
|
25194
|
+
React.createElement(ServiceChange, { "$change": budgetValues[index] - budgetService.initialValue < 0 ? 'negative' : 'positive' },
|
|
25195
|
+
budgetValues[index] - budgetService.initialValue,
|
|
25196
|
+
"% change"))))); }),
|
|
25197
|
+
React.createElement(Column, { small: "full", medium: "full", large: "full" },
|
|
25198
|
+
React.createElement(ButtonContainer$5, null,
|
|
25199
|
+
React.createElement(Retry, { type: "button", onClick: handleTryAgain }, "Try again"))))))),
|
|
25200
|
+
!viewResults && (React.createElement(React.Fragment, null, budgetServices.map(function (budgetService, index) { return (React.createElement(Column, { small: "full", medium: "one-half", large: "one-half", key: index },
|
|
25201
|
+
React.createElement(BudgetSlider, __assign({}, budgetService, { onChange: handleValueChange, index: index })))); }))))));
|
|
25202
|
+
};
|
|
25203
|
+
|
|
25204
|
+
const Container$16 = styled.div`
|
|
24727
25205
|
margin-bottom: 30px;
|
|
24728
25206
|
display: block;
|
|
24729
25207
|
|
|
@@ -24738,11 +25216,11 @@ const Container$14 = styled.div`
|
|
|
24738
25216
|
*/
|
|
24739
25217
|
var CallToAction = function (_a) {
|
|
24740
25218
|
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"]);
|
|
24741
|
-
return (React.createElement(Container$
|
|
24742
|
-
React.createElement(Button$
|
|
25219
|
+
return (React.createElement(Container$16, null,
|
|
25220
|
+
React.createElement(Button$5, { primary: primary, size: "large", text: text, url: url, isExternal: isExternal, isDisabled: isDisabled })));
|
|
24743
25221
|
};
|
|
24744
25222
|
|
|
24745
|
-
const Container$
|
|
25223
|
+
const Container$15 = styled.div`
|
|
24746
25224
|
display: block;
|
|
24747
25225
|
${(props) => props.theme.fontStyles}
|
|
24748
25226
|
`;
|
|
@@ -24918,7 +25396,7 @@ var CouncilTaxAlphabeticalDirectory = function (_a) {
|
|
|
24918
25396
|
});
|
|
24919
25397
|
return letterData;
|
|
24920
25398
|
});
|
|
24921
|
-
return (React.createElement(Container$
|
|
25399
|
+
return (React.createElement(Container$15, { "data-testid": "AlphabeticalDirectory", ref: directoryRef },
|
|
24922
25400
|
React.createElement(React.Fragment, null,
|
|
24923
25401
|
parishes.length === 0 && (React.createElement(ErrorText$1, null, "There was an issue fetching the parish data. Please try again later.")),
|
|
24924
25402
|
parish === null ? (React.createElement(React.Fragment, null, sortedData.map(function (letter, i) { return (React.createElement(Row, { key: i },
|
|
@@ -24944,9 +25422,9 @@ var CouncilTaxAlphabeticalDirectory = function (_a) {
|
|
|
24944
25422
|
React.createElement("td", null, Number(parish.values[band]).toLocaleString('en-GB', { style: 'currency', currency: 'GBP' })))); })))))))));
|
|
24945
25423
|
};
|
|
24946
25424
|
|
|
24947
|
-
const Container$
|
|
25425
|
+
const Container$14 = styled.div``;
|
|
24948
25426
|
|
|
24949
|
-
const Container$
|
|
25427
|
+
const Container$13 = styled.div`
|
|
24950
25428
|
display: flex;
|
|
24951
25429
|
flex-direction: column;
|
|
24952
25430
|
justify-content: flex-start;
|
|
@@ -25022,7 +25500,7 @@ const FooterLink$1 = styled.a`
|
|
|
25022
25500
|
var Card = function (_a) {
|
|
25023
25501
|
var header = _a.header, content = _a.content, footerLink = _a.footerLink, imageLarge = _a.imageLarge, imageSmall = _a.imageSmall, imageAltText = _a.imageAltText;
|
|
25024
25502
|
var showContent = content || header;
|
|
25025
|
-
return (React.createElement(Container$
|
|
25503
|
+
return (React.createElement(Container$13, { "data-testid": "Card" },
|
|
25026
25504
|
imageLarge && imageSmall && (React.createElement(React.Fragment, null, footerLink ? (React.createElement(ImageLink$1, { href: footerLink.url },
|
|
25027
25505
|
React.createElement(Image$2, { src: imageLarge, alt: imageAltText, srcSet: "".concat(imageSmall, " 400w, ").concat(imageLarge, " 800w"), sizes: "(max-width: 550px) 400px, 800px", loading: "lazy" }))) : (React.createElement(Image$2, { src: imageLarge, alt: imageAltText, srcSet: "".concat(imageSmall, " 400w, ").concat(imageLarge, " 800w"), sizes: "(max-width: 550px) 400px, 800px", loading: "lazy" })))),
|
|
25028
25506
|
showContent && (React.createElement(Content$7, null,
|
|
@@ -25038,24 +25516,24 @@ var Card = function (_a) {
|
|
|
25038
25516
|
*/
|
|
25039
25517
|
var Cards = function (_a) {
|
|
25040
25518
|
var cards = _a.cards;
|
|
25041
|
-
return (React.createElement(Container$
|
|
25519
|
+
return (React.createElement(Container$14, { "data-testid": "Cards" },
|
|
25042
25520
|
React.createElement(Row$1, null, cards.map(function (card, index) { return (React.createElement(Column, { small: "full", medium: "one-half", large: "one-third", key: index },
|
|
25043
25521
|
React.createElement(Card, __assign({}, card)))); }))));
|
|
25044
25522
|
};
|
|
25045
25523
|
|
|
25046
|
-
const Container$
|
|
25524
|
+
const Container$12 = styled.div`
|
|
25047
25525
|
margin: 25px 0;
|
|
25048
25526
|
`;
|
|
25049
25527
|
|
|
25050
25528
|
var DownloadableFiles = function (_a) {
|
|
25051
25529
|
var files = _a.files;
|
|
25052
|
-
return (React.createElement(Container$
|
|
25530
|
+
return (React.createElement(Container$12, { "data-testid": "DownloadableFiles" }, files.length > 0 ?
|
|
25053
25531
|
files.map(function (file) { return React.createElement(FileDownload, __assign({ key: file.title }, file)); })
|
|
25054
25532
|
:
|
|
25055
25533
|
React.createElement("i", null, "No file to show")));
|
|
25056
25534
|
};
|
|
25057
25535
|
|
|
25058
|
-
const Container
|
|
25536
|
+
const Container$11 = styled.div`
|
|
25059
25537
|
display: block;
|
|
25060
25538
|
|
|
25061
25539
|
input {
|
|
@@ -25159,7 +25637,7 @@ var AccessibleLinks = function (_a) {
|
|
|
25159
25637
|
})));
|
|
25160
25638
|
};
|
|
25161
25639
|
|
|
25162
|
-
const Container$
|
|
25640
|
+
const Container$10 = styled.div`
|
|
25163
25641
|
padding: ${(props) => props.theme.theme_vars.spacingSizes.medium} 0;
|
|
25164
25642
|
background: ${(props) =>
|
|
25165
25643
|
props.$alertType === 'alert'
|
|
@@ -25290,7 +25768,7 @@ const handleContainerPadding = (noBackground, noPadding) => {
|
|
|
25290
25768
|
}
|
|
25291
25769
|
};
|
|
25292
25770
|
|
|
25293
|
-
const Container
|
|
25771
|
+
const Container$$ = styled.div`
|
|
25294
25772
|
background: ${(props) =>
|
|
25295
25773
|
props.$noBackground
|
|
25296
25774
|
? 'transparent'
|
|
@@ -25332,7 +25810,7 @@ const MaxWidth = styled.div`
|
|
|
25332
25810
|
*/
|
|
25333
25811
|
var MaxWidthContainer = function (_a) {
|
|
25334
25812
|
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"]);
|
|
25335
|
-
return (React.createElement(Container
|
|
25813
|
+
return (React.createElement(Container$$, { "$noBackground": noBackground, "$noPadding": noPadding, "$overflowVisible": overflowVisible },
|
|
25336
25814
|
React.createElement(MaxWidth, __assign({ className: classes, "$overflowVisible": overflowVisible }, props), children)));
|
|
25337
25815
|
};
|
|
25338
25816
|
|
|
@@ -25403,7 +25881,7 @@ var AlertBanner = function (_a) {
|
|
|
25403
25881
|
setShowAlert(false);
|
|
25404
25882
|
};
|
|
25405
25883
|
return (showAlert &&
|
|
25406
|
-
notServer && (React.createElement(Container$
|
|
25884
|
+
notServer && (React.createElement(Container$10, { "$alertType": alertType, "data-testid": "AlertBanner" },
|
|
25407
25885
|
React.createElement(MaxWidthContainer, { noBackground: true },
|
|
25408
25886
|
React.createElement(InnerContainer$2, null,
|
|
25409
25887
|
React.createElement(BannerContentContainer, null,
|
|
@@ -25417,7 +25895,7 @@ var AlertBanner = function (_a) {
|
|
|
25417
25895
|
"Dismiss"))))));
|
|
25418
25896
|
};
|
|
25419
25897
|
|
|
25420
|
-
const Container$
|
|
25898
|
+
const Container$_ = styled.div`
|
|
25421
25899
|
border: solid 4px;
|
|
25422
25900
|
border-radius: ${(props) => props.theme.theme_vars.border_radius};
|
|
25423
25901
|
border-color: ${(props) =>
|
|
@@ -25471,13 +25949,13 @@ const InnerContainer$1 = styled.div`
|
|
|
25471
25949
|
*/
|
|
25472
25950
|
var AlertBannerService = function (_a) {
|
|
25473
25951
|
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;
|
|
25474
|
-
return (React.createElement(Container$
|
|
25952
|
+
return (React.createElement(Container$_, { "$alertType": alertType, "data-testid": "AlertBannerService", "$hasTopSpacing": hasTopSpacing },
|
|
25475
25953
|
React.createElement(InnerContainer$1, { "data-testid": "AlertBannerServiceInner" },
|
|
25476
25954
|
(title === null || title === void 0 ? void 0 : title.trim()) && React.createElement(Heading$1, { text: title }),
|
|
25477
25955
|
children)));
|
|
25478
25956
|
};
|
|
25479
25957
|
|
|
25480
|
-
const Container$
|
|
25958
|
+
const Container$Z = styled.a`
|
|
25481
25959
|
display: inline-block;
|
|
25482
25960
|
position: relative;
|
|
25483
25961
|
padding-top: 15px;
|
|
@@ -25536,10 +26014,10 @@ const Container$X = styled.a`
|
|
|
25536
26014
|
*/
|
|
25537
26015
|
var BackLink = function (_a) {
|
|
25538
26016
|
var link = _a.link, _b = _a.useHistory, useHistory = _b === void 0 ? false : _b;
|
|
25539
|
-
return (React.createElement(React.Fragment, null, useHistory ? (React.createElement(Container$
|
|
26017
|
+
return (React.createElement(React.Fragment, null, useHistory ? (React.createElement(Container$Z, { onClick: function () { return history.back(); }, "data-testid": "BackLink", as: "button" }, "Back")) : (React.createElement(Container$Z, { href: link, "data-testid": "BackLink" }, "Back"))));
|
|
25540
26018
|
};
|
|
25541
26019
|
|
|
25542
|
-
const Container$
|
|
26020
|
+
const Container$Y = styled.div`
|
|
25543
26021
|
padding-top: 15px;
|
|
25544
26022
|
border-bottom: 1px solid ${(props) => props.theme.theme_vars.colours.grey}80;
|
|
25545
26023
|
margin-bottom: ${(props) => (props.$hasMargin ? props.theme.theme_vars.spacingSizes.large : 0)};
|
|
@@ -25607,14 +26085,14 @@ const BreadcrumbLink$1 = styled.a`
|
|
|
25607
26085
|
|
|
25608
26086
|
var Breadcrumbs = function (_a) {
|
|
25609
26087
|
var breadcrumbsArray = _a.breadcrumbsArray, _b = _a.hasMargin, hasMargin = _b === void 0 ? false : _b;
|
|
25610
|
-
return (React.createElement(Container$
|
|
26088
|
+
return (React.createElement(Container$Y, { "$hasMargin": hasMargin, "data-testid": "Breadcrumbs" },
|
|
25611
26089
|
React.createElement(List$2, { as: breadcrumbsArray.length === 1 ? 'div' : 'ol' }, breadcrumbsArray.map(function (crumb) { return (React.createElement(Crumb, { key: crumb.title, as: breadcrumbsArray.length === 1 ? 'span' : 'li' }, React.createElement(React.Fragment, null,
|
|
25612
26090
|
React.createElement(BreadcrumbLink$1, { href: crumb.url, title: crumb.title }, crumb.title),
|
|
25613
26091
|
React.createElement(IconWrapper$4, null,
|
|
25614
26092
|
React.createElement(ChevronIcon, { direction: 'right', colourFill: "#C6C6C6" }))))); }))));
|
|
25615
26093
|
};
|
|
25616
26094
|
|
|
25617
|
-
const Container$
|
|
26095
|
+
const Container$X = styled.div`
|
|
25618
26096
|
display: block;
|
|
25619
26097
|
|
|
25620
26098
|
a {
|
|
@@ -26043,7 +26521,7 @@ var CludoSearch = function (_a) {
|
|
|
26043
26521
|
];
|
|
26044
26522
|
var Facets = function () { return (React.createElement(FacetGroup, null,
|
|
26045
26523
|
React.createElement(StandardFacet, { field: "Category", label: "Show results from", hideClear: true, hideCount: false, hideSearchBar: true, hideShowMore: true, className: "wnc-cludo-facet-list", exclude: ['Documents'], order: filterOrder, includeAllResultsOption: true, allResultsOptionLabel: "All services" }))); };
|
|
26046
|
-
return (React.createElement(Container$
|
|
26524
|
+
return (React.createElement(Container$X, { "data-testid": "CludoSearch" },
|
|
26047
26525
|
React.createElement(CludoWrapper, { config: cludoSearchConfig },
|
|
26048
26526
|
React.createElement(CludoAutoComplete, null),
|
|
26049
26527
|
React.createElement(ResultCount, null),
|
|
@@ -26069,7 +26547,7 @@ var CludoSearch = function (_a) {
|
|
|
26069
26547
|
React.createElement(Facets, null)))))));
|
|
26070
26548
|
};
|
|
26071
26549
|
|
|
26072
|
-
const Container$
|
|
26550
|
+
const Container$W = styled.div`
|
|
26073
26551
|
display: block;
|
|
26074
26552
|
|
|
26075
26553
|
.consultation-list__results {
|
|
@@ -26169,7 +26647,7 @@ const ClearFilters$1 = styled.button`
|
|
|
26169
26647
|
}
|
|
26170
26648
|
`;
|
|
26171
26649
|
|
|
26172
|
-
const Container$
|
|
26650
|
+
const Container$V = styled.a`
|
|
26173
26651
|
display: flex;
|
|
26174
26652
|
flex-direction: row;
|
|
26175
26653
|
flex-wrap: wrap;
|
|
@@ -26314,7 +26792,7 @@ var ConsultationLink = function (_a) {
|
|
|
26314
26792
|
detail: new Date(closeDate).toLocaleDateString(),
|
|
26315
26793
|
},
|
|
26316
26794
|
];
|
|
26317
|
-
return (React.createElement(Container$
|
|
26795
|
+
return (React.createElement(Container$V, { "data-testid": "ConsultationLink", href: url },
|
|
26318
26796
|
React.createElement(Row$1, null,
|
|
26319
26797
|
React.createElement(Column, { small: "full", medium: imageLarge ? 'two-thirds' : 'full', large: imageLarge ? 'two-thirds' : 'full', hasPadding: false },
|
|
26320
26798
|
React.createElement(ConsultationContent, { "$hasPadding": hasPadding },
|
|
@@ -26360,7 +26838,7 @@ var ConsultationList = function (_a) {
|
|
|
26360
26838
|
event.preventDefault();
|
|
26361
26839
|
onSubmit();
|
|
26362
26840
|
};
|
|
26363
|
-
return (React.createElement(Container$
|
|
26841
|
+
return (React.createElement(Container$W, { "data-testid": "ConsultationList" },
|
|
26364
26842
|
React.createElement(Row$1, null,
|
|
26365
26843
|
React.createElement(Column, { small: "full", medium: "one-third", large: "one-third" },
|
|
26366
26844
|
React.createElement(ToggleFilters$1, { onClick: function () { return setShowFilters(!showFilters); } },
|
|
@@ -26402,7 +26880,7 @@ var ConsultationList = function (_a) {
|
|
|
26402
26880
|
React.createElement(Pagination, { currentPage: pageNumber, totalResults: totalResults, postTo: consultationsPagePath, resultsPerPage: 5 }))) : (React.createElement("p", null, "No results found"))))));
|
|
26403
26881
|
};
|
|
26404
26882
|
|
|
26405
|
-
const Container$
|
|
26883
|
+
const Container$U = styled.div`
|
|
26406
26884
|
display: block;
|
|
26407
26885
|
margin-bottom: ${(props) => props.theme.theme_vars.spacingSizes.large};
|
|
26408
26886
|
padding-bottom: ${(props) => props.theme.theme_vars.spacingSizes.large};
|
|
@@ -26452,12 +26930,12 @@ const CurrentPage = styled.span`
|
|
|
26452
26930
|
|
|
26453
26931
|
var Contents$1 = function (_a) {
|
|
26454
26932
|
var contents = _a.contents, _b = _a.currentPath, currentPath = _b === void 0 ? undefined : _b, _c = _a.title, title = _c === void 0 ? 'Contents' : _c;
|
|
26455
|
-
return (React.createElement(Container$
|
|
26933
|
+
return (React.createElement(Container$U, { "data-testid": "Contents" },
|
|
26456
26934
|
React.createElement(Heading$1, { text: title, level: 2 }),
|
|
26457
26935
|
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)))); }))));
|
|
26458
26936
|
};
|
|
26459
26937
|
|
|
26460
|
-
const Container$
|
|
26938
|
+
const Container$T = styled.div`
|
|
26461
26939
|
display: block;
|
|
26462
26940
|
border-top: 1px solid ${(props) => props.theme.theme_vars.colours.grey}80;
|
|
26463
26941
|
margin: ${(props) => props.theme.theme_vars.spacingSizes.medium} 0;
|
|
@@ -26507,7 +26985,7 @@ var ContentsNavigation = function (_a) {
|
|
|
26507
26985
|
};
|
|
26508
26986
|
var nextPage = currentPage() < contents.length - 1 ? contents[currentPage() + 1] : undefined;
|
|
26509
26987
|
var previousPage = currentPage() !== 0 ? contents[currentPage() - 1] : undefined;
|
|
26510
|
-
return (React.createElement(Container$
|
|
26988
|
+
return (React.createElement(Container$T, { "data-testid": "ContentsNavigation" },
|
|
26511
26989
|
previousPage && (React.createElement(NavigationLink, { href: previousPage.url },
|
|
26512
26990
|
React.createElement(Arrow, null, "\u2190"),
|
|
26513
26991
|
React.createElement(LinkText, null,
|
|
@@ -26582,7 +27060,7 @@ var DisplayDate = function (_a) {
|
|
|
26582
27060
|
postText));
|
|
26583
27061
|
};
|
|
26584
27062
|
|
|
26585
|
-
const Container$
|
|
27063
|
+
const Container$S = styled.div`
|
|
26586
27064
|
display: block;
|
|
26587
27065
|
|
|
26588
27066
|
.event-list__results {
|
|
@@ -26862,7 +27340,7 @@ var EventList = function (_a) {
|
|
|
26862
27340
|
event.preventDefault();
|
|
26863
27341
|
onSubmit();
|
|
26864
27342
|
};
|
|
26865
|
-
return (React.createElement(Container$
|
|
27343
|
+
return (React.createElement(Container$S, { "data-testid": "EventList" },
|
|
26866
27344
|
React.createElement(Row$1, null,
|
|
26867
27345
|
React.createElement(Column, { small: "full", medium: "one-third", large: "one-third" },
|
|
26868
27346
|
React.createElement(ToggleFilters, { onClick: function () { return setShowFilters(!showFilters); } },
|
|
@@ -26911,7 +27389,7 @@ var EventList = function (_a) {
|
|
|
26911
27389
|
React.createElement(Pagination, { currentPage: pageNumber, totalResults: totalResults, postTo: eventsPagePath, resultsPerPage: 5 }))) : (React.createElement(ResultInfo$4, null, "No results found"))))));
|
|
26912
27390
|
};
|
|
26913
27391
|
|
|
26914
|
-
const Container$
|
|
27392
|
+
const Container$R = styled.footer`
|
|
26915
27393
|
background-color: ${(props) => props.theme.theme_vars.colours.black};
|
|
26916
27394
|
padding: 25px 0;
|
|
26917
27395
|
`;
|
|
@@ -27093,7 +27571,7 @@ var ServiceIcon = function (_a) {
|
|
|
27093
27571
|
React.createElement("path", { d: "M15.0107 13.6688L22.6607 18.0161L15.0107 22.3634V13.6688ZM36 3.85714V32.1429C36 34.2723 34.2723 36 32.1429 36H3.85714C1.72768 36 0 34.2723 0 32.1429V3.85714C0 1.72768 1.72768 0 3.85714 0H32.1429C34.2723 0 36 1.72768 36 3.85714ZM32.625 18.0241C32.625 18.0241 32.625 13.2348 32.0143 10.9366C31.6768 9.66696 30.6884 8.67054 29.4268 8.33304C27.1527 7.71429 18 7.71429 18 7.71429C18 7.71429 8.84732 7.71429 6.57321 8.33304C5.31161 8.67054 4.32321 9.66696 3.98571 10.9366C3.375 13.2268 3.375 18.0241 3.375 18.0241C3.375 18.0241 3.375 22.8134 3.98571 25.1116C4.32321 26.3813 5.31161 27.3375 6.57321 27.675C8.84732 28.2857 18 28.2857 18 28.2857C18 28.2857 27.1527 28.2857 29.4268 27.667C30.6884 27.3295 31.6768 26.3732 32.0143 25.1036C32.625 22.8134 32.625 18.0241 32.625 18.0241Z", fill: colourFill })));
|
|
27094
27572
|
};
|
|
27095
27573
|
|
|
27096
|
-
const Container$
|
|
27574
|
+
const Container$Q = styled.div`
|
|
27097
27575
|
display: block;
|
|
27098
27576
|
|
|
27099
27577
|
.goog-te-combo {
|
|
@@ -27144,7 +27622,8 @@ const Container$O = styled.div`
|
|
|
27144
27622
|
`;
|
|
27145
27623
|
|
|
27146
27624
|
const Label$7 = styled.span`
|
|
27147
|
-
font-weight:
|
|
27625
|
+
font-weight: 600;
|
|
27626
|
+
font-size: 21px;
|
|
27148
27627
|
color: ${(props) =>
|
|
27149
27628
|
props.$hasDarkBackground ? props.theme.theme_vars.colours.white : props.theme.theme_vars.colours.black};
|
|
27150
27629
|
`;
|
|
@@ -27167,7 +27646,7 @@ var GoogleTranslate = function (_a) {
|
|
|
27167
27646
|
document.body.appendChild(addScript);
|
|
27168
27647
|
window.googleTranslateElementInit = googleTranslateElementInit;
|
|
27169
27648
|
}, []);
|
|
27170
|
-
return (React.createElement(Container$
|
|
27649
|
+
return (React.createElement(Container$Q, { "data-testid": "GoogleTranslate", "$hasDarkBackground": hasDarkBackground },
|
|
27171
27650
|
label && React.createElement(Label$7, { "$hasDarkBackground": hasDarkBackground }, label),
|
|
27172
27651
|
React.createElement("div", { id: "google_translate_element" })));
|
|
27173
27652
|
};
|
|
@@ -27175,7 +27654,7 @@ var GoogleTranslate = function (_a) {
|
|
|
27175
27654
|
var Footer = function (_a) {
|
|
27176
27655
|
var _b = _a.footerLinksArray, footerLinksArray = _b === void 0 ? null : _b, _c = _a.year, year = _c === void 0 ? new Date().getFullYear() : _c, _d = _a.hasTranslate, hasTranslate = _d === void 0 ? false : _d;
|
|
27177
27656
|
var themeContext = useContext(ThemeContext);
|
|
27178
|
-
return (React.createElement(Container$
|
|
27657
|
+
return (React.createElement(Container$R, { "data-testid": "Footer" },
|
|
27179
27658
|
React.createElement(StyledMaxWidthContainer$2, { noBackground: true },
|
|
27180
27659
|
React.createElement(FooterAlignment, null,
|
|
27181
27660
|
React.createElement("div", null,
|
|
@@ -27210,9 +27689,10 @@ var Footer = function (_a) {
|
|
|
27210
27689
|
: '' }, themeContext.cardinal_name === 'north' ? (React.createElement(NorthWhiteLogo, null)) : themeContext.cardinal_name === 'west' ? (React.createElement(WestWhiteLogo, null)) : (React.createElement(GDSLogo, null))))))));
|
|
27211
27690
|
};
|
|
27212
27691
|
|
|
27213
|
-
const Container$
|
|
27692
|
+
const Container$P = styled.div`
|
|
27214
27693
|
background: ${(props) => (props.$hasBackground ? props.theme.theme_vars.colours.grey_light : 'transparent')};
|
|
27215
27694
|
padding: ${(props) => (props.$hasPadding ? '50px 0 20px' : '0')};
|
|
27695
|
+
font-family: ${(props) => props.theme.theme_vars.fontstack};
|
|
27216
27696
|
`;
|
|
27217
27697
|
|
|
27218
27698
|
/**
|
|
@@ -27220,7 +27700,7 @@ const Container$N = styled.div`
|
|
|
27220
27700
|
*/
|
|
27221
27701
|
var FullWidthContainer = function (_a) {
|
|
27222
27702
|
var children = _a.children, _b = _a.hasBackground, hasBackground = _b === void 0 ? false : _b, _c = _a.hasPadding, hasPadding = _c === void 0 ? false : _c;
|
|
27223
|
-
return (React.createElement(Container$
|
|
27703
|
+
return (React.createElement(Container$P, { "$hasBackground": hasBackground, "$hasPadding": hasPadding, "data-testid": "FullWidthContainer" }, children));
|
|
27224
27704
|
};
|
|
27225
27705
|
|
|
27226
27706
|
/**
|
|
@@ -27252,7 +27732,7 @@ const headerThemeStyles = (props) => {
|
|
|
27252
27732
|
}
|
|
27253
27733
|
};
|
|
27254
27734
|
|
|
27255
|
-
const Container$
|
|
27735
|
+
const Container$O = styled.header`
|
|
27256
27736
|
box-shadow: 1px 1px 5px 1px rgba(0, 0, 0, 0.2);
|
|
27257
27737
|
position: relative;
|
|
27258
27738
|
z-index: 20;
|
|
@@ -27467,6 +27947,7 @@ const Link$1 = styled.a`
|
|
|
27467
27947
|
padding: ${(props) => props.theme.theme_vars.spacingSizes.small};
|
|
27468
27948
|
display: block;
|
|
27469
27949
|
width: 100%;
|
|
27950
|
+
|
|
27470
27951
|
${commonLinkStyles}
|
|
27471
27952
|
|
|
27472
27953
|
&:hover {
|
|
@@ -27488,6 +27969,7 @@ const LinkButton = styled(Link$1)`
|
|
|
27488
27969
|
font-size: 19px;
|
|
27489
27970
|
line-height: 1.45;
|
|
27490
27971
|
text-align: left;
|
|
27972
|
+
font-family: inherit;
|
|
27491
27973
|
|
|
27492
27974
|
span {
|
|
27493
27975
|
text-decoration: underline;
|
|
@@ -27558,7 +28040,7 @@ var NorthColouredLogo = function () {
|
|
|
27558
28040
|
React.createElement("path", { fill: "#fff", d: "M0 0H974V327H0z" })))));
|
|
27559
28041
|
};
|
|
27560
28042
|
|
|
27561
|
-
const Container$
|
|
28043
|
+
const Container$N = styled.div`
|
|
27562
28044
|
${(props) => props.theme.fontStyles}
|
|
27563
28045
|
width: calc(100% - ${(props) => (props.$isLarge ? '5rem' : '3rem')});
|
|
27564
28046
|
`;
|
|
@@ -27586,7 +28068,7 @@ const InputWrapper$1 = styled.div`
|
|
|
27586
28068
|
}
|
|
27587
28069
|
`;
|
|
27588
28070
|
|
|
27589
|
-
const Button$
|
|
28071
|
+
const Button$4 = styled.button`
|
|
27590
28072
|
position: absolute;
|
|
27591
28073
|
top: 0;
|
|
27592
28074
|
right: ${(props) => (props.$isLarge ? '-5rem' : '-3rem')};
|
|
@@ -27706,18 +28188,18 @@ var Searchbar = function (_a) {
|
|
|
27706
28188
|
/**
|
|
27707
28189
|
* Render the component
|
|
27708
28190
|
*/
|
|
27709
|
-
return (React.createElement(Container$
|
|
28191
|
+
return (React.createElement(Container$N, { "data-testid": "Searchbar", "$isLarge": isLarge },
|
|
27710
28192
|
React.createElement("form", { onSubmit: handleSubmit },
|
|
27711
28193
|
React.createElement("div", { role: "search" },
|
|
27712
28194
|
React.createElement(InputWrapper$1, null,
|
|
27713
28195
|
React.createElement(Autocomplete, { id: id, name: NewsArticleFilterFields.search.queryParamKey, placeholder: placeholder, onSelect: handleSelect, onChange: handleChange, value: inputSearchTerm, suggestions: suggestions, minimumMatchLength: minimumMatchLength, maximumMatchesShown: maximumMatchesShown, isLarge: isLarge, hasAdjacentButton: true, isErrored: isErrored, hasHiddenLabel: true, required: true, errorText: "The search field is required.", hasLightBackground: isLight }),
|
|
27714
|
-
React.createElement(Button$
|
|
28196
|
+
React.createElement(Button$4, { type: "submit", value: "Search", "$isLarge": isLarge, "$isLight": isLight, "$isErrored": isErrored, "data-testid": "SearchButton" },
|
|
27715
28197
|
React.createElement(IconDownload, { colourFill: "#fff" }),
|
|
27716
28198
|
React.createElement(ButtonText$2, null, "Search")))))));
|
|
27717
28199
|
};
|
|
27718
28200
|
|
|
27719
28201
|
var WestColouredLogo = function () {
|
|
27720
|
-
var randomId =
|
|
28202
|
+
var randomId = useId();
|
|
27721
28203
|
return (React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "974", height: "327", fill: "none", viewBox: "0 0 974 327" },
|
|
27722
28204
|
React.createElement("path", { fill: "url(#paint0_linear_".concat(randomId, ")"), d: "M104.506 216.165c.4.799.823 1.591 1.254 2.376 11.203-.577 21.323-6.329 27.497-15.541-.177-.33-.353-.669-.523-1.007-6.274-12.495-5.544-26.713.7-38.147a35.024 35.024 0 00-13.356-11.98c-4.422-2.269-9.136-3.553-14.034-3.83a73.7 73.7 0 00-5.575 12.673c-6.097 18.423-4.667 38.116 4.037 55.456z" }),
|
|
27723
28205
|
React.createElement("path", { fill: "url(#paint1_linear_".concat(randomId, ")"), d: "M234.358 150.981c-8.705-17.339-23.645-30.257-42.062-36.363-16.055-5.321-33.087-4.913-48.674 1.046 11.335 6.628 20.67 15.84 27.359 26.89 14.464.569 28.213 8.773 35.156 22.599 10.158 20.239 1.961 44.96-18.277 55.118a40.82 40.82 0 01-17.271 4.344c-6.882 11.135-16.309 20.231-27.528 26.652 1.153.446 2.322.869 3.514 1.261 18.416 6.106 38.117 4.675 55.456-4.029 17.34-8.705 30.258-23.645 36.364-42.061 6.105-18.424 4.675-38.117-4.037-55.457z" }),
|
|
@@ -27763,7 +28245,7 @@ var NorthBlackLogo = function () {
|
|
|
27763
28245
|
React.createElement("path", { fill: "#000", d: "M342.215 236.608c-114.072-17.17-228.119 17.17-342.191 0v-37.339c114.072 17.17 228.119-17.17 342.191 0v37.339zM411.838 122.367l-21.063-36.59v36.59h-9.335v-50.35h10.64l20.846 36.662V72.018h9.335v50.349h-10.423zM449.999 123.262c-11.051 0-20.047-8.851-20.047-19.758 0-10.834 8.996-19.758 19.975-19.758 11.39 0 20.169 8.779 20.169 20.024 0 10.616-9.117 19.492-20.097 19.492zm0-31.22c-5.924 0-10.906 5.102-10.906 11.317 0 6.481 4.837 11.584 10.979 11.584 5.997 0 10.907-5.103 10.907-11.439 0-6.288-4.91-11.463-10.98-11.463zM484.968 101.376v20.991h-9.069v-37.75h8.319v3.676c2.395-3.483 4.305-4.57 8.174-4.57h.677v8.73c-5.465.144-8.101 3.07-8.101 8.923zM509.829 92.863v29.504h-9.069V92.863h-4.425v-8.246h4.425v-12.6h9.069v12.6h5.441v8.246h-5.441zM545.595 122.367v-19.274c0-7.908-2.055-11.052-7.352-11.052-5.175 0-7.98 2.854-7.98 11.173v19.153h-9.069v-50.35h9.069v15.188c2.733-2.443 5.731-3.555 9.601-3.555 9.068 0 14.8 4.981 14.8 17.387v21.33h-9.069zM411.838 195.376l-21.063-36.59v36.59h-9.335v-50.35h10.64l20.846 36.662v-36.662h9.335v50.35h-10.423zM449.999 196.271c-11.051 0-20.047-8.851-20.047-19.758 0-10.834 8.996-19.758 19.975-19.758 11.39 0 20.169 8.779 20.169 20.024 0 10.641-9.117 19.492-20.097 19.492zm0-31.221c-5.924 0-10.906 5.103-10.906 11.318 0 6.481 4.837 11.584 10.979 11.584 5.997 0 10.907-5.103 10.907-11.439 0-6.288-4.91-11.463-10.98-11.463zM484.968 174.385v20.991h-9.069v-37.75h8.319v3.676c2.395-3.483 4.305-4.571 8.174-4.571h.677v8.73c-5.465.145-8.101 3.071-8.101 8.924zM509.829 165.872v29.504h-9.069v-29.504h-4.425v-8.246h4.425v-12.6h9.069v12.6h5.441v8.246h-5.441zM545.595 195.376v-19.274c0-7.908-2.055-11.052-7.352-11.052-5.175 0-7.98 2.853-7.98 11.172v19.154h-9.069v-50.35h9.069v15.187c2.733-2.442 5.731-3.555 9.601-3.555 9.068 0 14.8 4.982 14.8 17.388v21.33h-9.069zM592.705 195.376v-4.909c-3.604 4.086-7.231 5.803-12.527 5.803-11.052 0-19.008-8.246-19.008-19.636 0-11.511 8.029-19.903 19.226-19.903 5.441 0 9.189 1.765 12.333 5.925v-5.054h8.319v37.75h-8.343v.024zm-11.391-30.326c-6.481 0-11.051 4.909-11.051 11.777 0 6.602 4.57 11.1 11.172 11.1 6.893 0 10.98-4.909 10.98-11.172 0-6.868-4.619-11.705-11.101-11.705zM655.992 195.376v-20.725c0-7.57-2.854-9.601-7.086-9.601-5.03 0-7.641 2.733-7.641 11.729v18.597h-9.069v-20.725c0-7.424-2.588-9.601-7.352-9.601-5.248 0-7.352 2.805-7.352 11.729v18.597h-9.068v-37.75h8.319v3.531c2.66-3.193 5.393-4.426 9.818-4.426 5.175 0 8.513 1.765 11.1 5.852 3.072-4.087 6.82-5.852 12.14-5.852 9.939 0 15.26 5.514 15.26 16.832v21.813h-9.069zM694.516 196.27c-4.643 0-8.174-1.354-11.584-4.425v16.154h-9.069v-50.373h8.319v4.425c2.926-3.409 7.304-5.32 12.406-5.32 10.907 0 18.815 8.247 18.815 19.637-.024 11.463-8.005 19.902-18.887 19.902zm-1.113-31.22c-6.263 0-11.051 4.909-11.051 11.39 0 6.602 4.764 11.511 11.172 11.511 5.998 0 10.689-4.981 10.689-11.39.049-6.529-4.667-11.511-10.81-11.511zM729.944 165.872v29.504h-9.069v-29.504h-4.425v-8.246h4.425v-12.6h9.069v12.6h5.441v8.246h-5.441zM758.359 196.271c-11.051 0-20.047-8.851-20.047-19.758 0-10.834 8.996-19.758 19.975-19.758 11.39 0 20.168 8.779 20.168 20.024 0 10.641-9.117 19.492-20.096 19.492zm0-31.221c-5.925 0-10.906 5.103-10.906 11.318 0 6.481 4.836 11.584 10.979 11.584 5.997 0 10.906-5.103 10.906-11.439 0-6.288-4.909-11.463-10.979-11.463zM808.708 195.376V176.9c0-10.085-2.733-11.85-7.231-11.85-2.854 0-5.248 1.233-6.675 3.482-1.16 1.838-1.499 4.015-1.499 9.069v17.775h-9.069v-37.75h8.392v3.603c3.337-3.192 6.336-4.498 10.64-4.498 5.248 0 9.335 1.911 11.778 5.441 2.055 2.926 2.732 6.191 2.732 12.938v20.242h-9.068v.024zM837.268 196.271c-7.497 0-12.89-4.087-13.833-12.89h9.141c.895 3.192 2.394 4.571 5.055 4.571 2.321 0 4.086-1.572 4.086-3.676 0-2.177-.338-2.805-6.408-4.837-7.497-2.515-10.495-5.659-10.495-11.172 0-6.482 5.513-11.512 12.551-11.512 6.408 0 12.067 4.232 12.406 11.318h-8.852c-.411-1.983-1.644-2.999-3.554-2.999-1.983 0-3.483 1.355-3.483 3.193 0 1.983.194 2.103 6.409 4.086 7.908 2.443 10.495 5.442 10.495 11.052-.024 7.207-5.949 12.866-13.518 12.866zM880.894 195.376v-19.274c0-7.908-2.056-11.052-7.352-11.052-5.175 0-7.98 2.853-7.98 11.172v19.154h-9.069v-50.35h9.069v15.187c2.733-2.442 5.731-3.555 9.601-3.555 9.068 0 14.8 4.982 14.8 17.388v21.33h-9.069zM898.065 195.376v-37.75h9.069v37.75h-9.069zm.049-43.191v-9.069h9.068v9.069h-9.068zM924.159 174.385v20.991h-9.069v-37.75h8.319v3.676c2.394-3.483 4.305-4.571 8.174-4.571h.677v8.73c-5.441.145-8.101 3.071-8.101 8.924zM973.637 180.527H944.4c1.088 4.571 5.054 7.424 10.423 7.424 3.748 0 5.997-1.015 8.319-3.748h9.89c-2.515 7.763-10.35 12.067-17.992 12.067-11.511 0-20.435-8.585-20.435-19.636 0-11.1 8.803-19.903 19.903-19.903 11.245 0 19.492 8.585 19.492 20.314-.024 1.378-.097 2.176-.363 3.482zm-19.032-15.477c-5.393 0-9.069 2.66-10.496 7.497h20.919c-1.137-4.837-4.813-7.497-10.423-7.497zM405.358 269.279c-14.728 0-26.505-11.729-26.505-26.238 0-14.244 11.656-25.9 25.9-25.9 10.351 0 19.419 5.586 23.845 15.332h-10.423c-3.41-4.426-7.352-6.336-13.228-6.336-9.601 0-16.687 7.496-16.687 16.976 0 9.407 7.642 17.17 16.904 17.17 4.837 0 8.392-1.644 12.479-5.925h10.979c-3.966 9.19-12.962 14.921-23.264 14.921zM452.732 269.279c-11.052 0-20.048-8.851-20.048-19.757 0-10.834 8.996-19.758 19.975-19.758 11.391 0 20.169 8.779 20.169 20.048 0 10.616-9.141 19.467-20.096 19.467zm0-31.196c-5.925 0-10.907 5.103-10.907 11.318 0 6.481 4.837 11.584 10.979 11.584 5.998 0 10.907-5.103 10.907-11.439-.024-6.288-4.933-11.463-10.979-11.463zM503.831 268.409v-3.603c-3.409 3.337-6.263 4.498-10.834 4.498-8.802 0-14.389-5.103-14.389-18.404v-20.241h9.069v18.476c0 10.012 2.781 11.85 7.158 11.85 3.072 0 5.514-1.306 6.892-3.483 1.016-1.693 1.427-4.014 1.427-9.068v-17.775h9.069v37.75h-8.392zM544.653 268.409v-18.476c0-10.085-2.733-11.85-7.231-11.85-2.854 0-5.248 1.233-6.675 3.482-1.161 1.838-1.499 4.015-1.499 9.069v17.775h-9.069v-37.774h8.392v3.603c3.337-3.192 6.336-4.498 10.64-4.498 5.248 0 9.335 1.91 11.778 5.441 2.055 2.926 2.732 6.191 2.732 12.938v20.241h-9.068v.049zM580.299 269.279c-11.173 0-20.169-8.802-20.169-19.757 0-11.1 8.73-19.758 19.903-19.758 8.585 0 16.081 4.837 19.008 13.494h-10.23c-1.838-3.482-4.691-5.175-8.803-5.175-6.263 0-10.761 4.764-10.761 11.39 0 6.602 4.691 11.512 10.979 11.512 3.748 0 6.336-1.5 8.585-4.982h10.23c-3.144 8.44-9.964 13.276-18.742 13.276zM606.054 268.409v-37.774h9.068v37.749h-9.068v.025zm.072-43.216v-9.068h9.069v9.068h-9.069zM623.079 268.409v-50.374h9.068v50.35h-9.068v.024z" })));
|
|
27764
28246
|
};
|
|
27765
28247
|
|
|
27766
|
-
const Container$
|
|
28248
|
+
const Container$M = styled.div`
|
|
27767
28249
|
display: block;
|
|
27768
28250
|
min-height: 46px;
|
|
27769
28251
|
|
|
@@ -27824,7 +28306,7 @@ var CludoSearchBar = function (_a) {
|
|
|
27824
28306
|
autocomplete: CludoAutoComplete,
|
|
27825
28307
|
},
|
|
27826
28308
|
};
|
|
27827
|
-
return (React.createElement(Container$
|
|
28309
|
+
return (React.createElement(Container$M, { "data-testid": "CludoSearchBar" },
|
|
27828
28310
|
React.createElement(CludoWrapper, { config: cludoSearchConfig },
|
|
27829
28311
|
React.createElement(CludoAutoComplete, { hasMargin: false }))));
|
|
27830
28312
|
};
|
|
@@ -27883,7 +28365,7 @@ var Header = function (_a) {
|
|
|
27883
28365
|
var show = showTranslate;
|
|
27884
28366
|
setShowTranslate(!show);
|
|
27885
28367
|
};
|
|
27886
|
-
return (React.createElement(Container$
|
|
28368
|
+
return (React.createElement(Container$O, { "$isHomepage": isHomepage, "data-testid": "Header" },
|
|
27887
28369
|
!hideSearchBar && (React.createElement(SearchContainer, null,
|
|
27888
28370
|
React.createElement(MaxWidthContainer, { noPadding: true, noBackground: true, overflowVisible: true },
|
|
27889
28371
|
React.createElement(SearchWrapper, null,
|
|
@@ -27928,7 +28410,7 @@ var Header = function (_a) {
|
|
|
27928
28410
|
* Hero image container with optional dark gradient for non-box mode
|
|
27929
28411
|
* Optimised for an image in 16:5 ratio on all but small width screens
|
|
27930
28412
|
*/
|
|
27931
|
-
const Container$
|
|
28413
|
+
const Container$L = styled.div`
|
|
27932
28414
|
padding-bottom: 10px;
|
|
27933
28415
|
display: flex;
|
|
27934
28416
|
justify-content: center;
|
|
@@ -28108,7 +28590,7 @@ const Search = styled.div`
|
|
|
28108
28590
|
margin: ${(props) => props.theme.theme_vars.spacingSizes.medium} 0;
|
|
28109
28591
|
`;
|
|
28110
28592
|
|
|
28111
|
-
const Container$
|
|
28593
|
+
const Container$K = styled.div`
|
|
28112
28594
|
display: block;
|
|
28113
28595
|
|
|
28114
28596
|
input[type='text'] {
|
|
@@ -28148,6 +28630,13 @@ const SubmitButton = styled.input`
|
|
|
28148
28630
|
border-top-right-radius: calc(${(props) => props.theme.theme_vars.border_radius} * 2);
|
|
28149
28631
|
border-bottom-right-radius: calc(${(props) => props.theme.theme_vars.border_radius} * 2);
|
|
28150
28632
|
text-align: center;
|
|
28633
|
+
height: 2.28rem;
|
|
28634
|
+
font-family: ${(props) => props.theme.theme_vars.fontstack};
|
|
28635
|
+
font-size: 14px;
|
|
28636
|
+
margin: 0;
|
|
28637
|
+
@media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.m}) {
|
|
28638
|
+
height: 2.6rem;
|
|
28639
|
+
}
|
|
28151
28640
|
min-height: 44px;
|
|
28152
28641
|
|
|
28153
28642
|
&:hover {
|
|
@@ -28179,7 +28668,7 @@ var CustomSearch = function (_a) {
|
|
|
28179
28668
|
if (!id) {
|
|
28180
28669
|
id = useId();
|
|
28181
28670
|
}
|
|
28182
|
-
return (React.createElement(Container$
|
|
28671
|
+
return (React.createElement(Container$K, { "data-testid": "CustomSearch" },
|
|
28183
28672
|
React.createElement("form", { method: method, action: path, "aria-label": label },
|
|
28184
28673
|
React.createElement("div", { role: "search" },
|
|
28185
28674
|
React.createElement(Label$6, { htmlFor: id, "$hasHiddenLabel": hasHiddenLabel }, label),
|
|
@@ -28194,7 +28683,7 @@ var CustomSearch = function (_a) {
|
|
|
28194
28683
|
*/
|
|
28195
28684
|
var HeroImage = function (_a) {
|
|
28196
28685
|
var headline = _a.headline, content = _a.content, callToActionText = _a.callToActionText, callToActionURL = _a.callToActionURL, _b = _a.callToActionIsPrimary, callToActionIsPrimary = _b === void 0 ? true : _b, _c = _a.backgroundBox, backgroundBox = _c === void 0 ? true : _c, imageLarge = _a.imageLarge, imageSmall = _a.imageSmall, imageAltText = _a.imageAltText, breadcrumb = _a.breadcrumb, customSearch = _a.customSearch;
|
|
28197
|
-
return (React.createElement(Container$
|
|
28686
|
+
return (React.createElement(Container$L, { "data-testid": "HeroImage" },
|
|
28198
28687
|
React.createElement(ImageContainer$4, { "$backgroundBox": backgroundBox },
|
|
28199
28688
|
React.createElement(ResponsiveImage, { imageSmall: imageSmall, imageLarge: imageLarge, imageAltText: imageAltText, smallWidth: "144", largeWidth: "1440", ratio: "auto", objectFit: "cover" })),
|
|
28200
28689
|
React.createElement(InnerContainer, null,
|
|
@@ -28223,7 +28712,7 @@ const Wrapper$4 = styled.header`
|
|
|
28223
28712
|
position: relative;
|
|
28224
28713
|
`;
|
|
28225
28714
|
|
|
28226
|
-
const Container$
|
|
28715
|
+
const Container$J = styled.div`
|
|
28227
28716
|
font-family: ${(props) => props.theme.theme_vars.fontstack};
|
|
28228
28717
|
overflow: hidden;
|
|
28229
28718
|
background: ${(props) => props.theme.theme_vars.colours.action}5A;
|
|
@@ -28319,7 +28808,7 @@ const PromotedServicesTabContainer = styled.div`
|
|
|
28319
28808
|
width: 100%;
|
|
28320
28809
|
`;
|
|
28321
28810
|
|
|
28322
|
-
const Container$
|
|
28811
|
+
const Container$I = styled.div`
|
|
28323
28812
|
display: none;
|
|
28324
28813
|
|
|
28325
28814
|
@media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.m}) {
|
|
@@ -28471,7 +28960,7 @@ var PromotedServicesTabs = function (_a) {
|
|
|
28471
28960
|
var toggleTab = function (index) {
|
|
28472
28961
|
setActiveTab(index);
|
|
28473
28962
|
};
|
|
28474
|
-
return (React.createElement(Container$
|
|
28963
|
+
return (React.createElement(Container$I, { "data-testid": "PromotedServicesTabs", role: "tablist" },
|
|
28475
28964
|
React.createElement(Row$1, null, tabs.map(function (tab, index) { return (React.createElement(Column, { key: index, small: "full", medium: "one-quarter", large: "one-quarter", classes: "promoted-services-tab-column" },
|
|
28476
28965
|
React.createElement(Tab, { "$isActive": index === activeTab, onClick: function () { return toggleTab(index); }, "aria-label": index === activeTab ? "Hide ".concat(tab.title) : "Show ".concat(tab.title), "aria-selected": index === activeTab ? 'true' : 'false', "aria-controls": "promoted-services-tabpanel-".concat(index), id: "promoted-services-tab-".concat(index), role: "tab" }, tab.title))); }))));
|
|
28477
28966
|
};
|
|
@@ -28518,7 +29007,7 @@ var HomeHero = function (_a) {
|
|
|
28518
29007
|
}, []);
|
|
28519
29008
|
return (React.createElement(Outer, { "data-testid": "HomeHero" },
|
|
28520
29009
|
React.createElement(Wrapper$4, { as: showSearch ? 'header' : 'div' },
|
|
28521
|
-
React.createElement(Container$
|
|
29010
|
+
React.createElement(Container$J, { className: random !== 999 ? 'loaded' : 'loading', "$showSearch": showSearch },
|
|
28522
29011
|
random !== 999 && (React.createElement(ResponsiveImage, { imageSmall: (_b = imagesArray[random].image144x81) !== null && _b !== void 0 ? _b : '', imageLarge: (_c = imagesArray[random].image1440x810) !== null && _c !== void 0 ? _c : '', imageAltText: (_d = imagesArray[random].imageAltText) !== null && _d !== void 0 ? _d : '', smallWidth: "144", largeWidth: "1440", ratio: "auto", objectFit: "cover" })),
|
|
28523
29012
|
React.createElement(StyledMaxWidthContainer$1, null,
|
|
28524
29013
|
showSearch ? (React.createElement(MainBox, null,
|
|
@@ -28548,7 +29037,7 @@ const Wrapper$3 = styled.section`
|
|
|
28548
29037
|
padding-bottom: 0px;
|
|
28549
29038
|
`;
|
|
28550
29039
|
|
|
28551
|
-
const Container$
|
|
29040
|
+
const Container$H = styled.div`
|
|
28552
29041
|
font-family: ${(props) => props.theme.theme_vars.fontstack};
|
|
28553
29042
|
display: flex;
|
|
28554
29043
|
flex-wrap: wrap;
|
|
@@ -28679,7 +29168,7 @@ var MemorialHero = function (_a) {
|
|
|
28679
29168
|
React.createElement(HiddenH1, null,
|
|
28680
29169
|
themeContext.full_name,
|
|
28681
29170
|
" Council"),
|
|
28682
|
-
React.createElement(Container$
|
|
29171
|
+
React.createElement(Container$H, null,
|
|
28683
29172
|
React.createElement(Left, null,
|
|
28684
29173
|
children,
|
|
28685
29174
|
React.createElement(ThemeProvider, { theme: theme }, councilServices)),
|
|
@@ -28708,7 +29197,7 @@ var NewsArticleDate = function (_a) {
|
|
|
28708
29197
|
const imageHeightMobile$1 = 150;
|
|
28709
29198
|
const imageHeightDesktop$1 = 200;
|
|
28710
29199
|
|
|
28711
|
-
const Container$
|
|
29200
|
+
const Container$G = styled.div`
|
|
28712
29201
|
${(props) => props.theme.fontStyles};
|
|
28713
29202
|
padding: 15px 0;
|
|
28714
29203
|
|
|
@@ -28836,7 +29325,7 @@ var NewsArticleFeaturedBlock = function (_a) {
|
|
|
28836
29325
|
if (articles && articles.length > 0) {
|
|
28837
29326
|
return (React.createElement(React.Fragment, null,
|
|
28838
29327
|
!withoutTitle && React.createElement(Heading$1, { text: "News articles and press releases" }),
|
|
28839
|
-
React.createElement(Container$
|
|
29328
|
+
React.createElement(Container$G, null,
|
|
28840
29329
|
React.createElement(Row$1, { isList: true }, articles.map(function (article) {
|
|
28841
29330
|
var _a;
|
|
28842
29331
|
return (React.createElement(Column, { isList: true, small: "full", medium: "one-half", large: "one-third", key: article.id },
|
|
@@ -28851,14 +29340,14 @@ var NewsArticleFeaturedBlock = function (_a) {
|
|
|
28851
29340
|
React.createElement(NewsArticleDate, { text: article.date.toString(), format: "X" }))))))));
|
|
28852
29341
|
}))),
|
|
28853
29342
|
viewAllLink && (React.createElement(ViewAllContainer, null,
|
|
28854
|
-
React.createElement(Button$
|
|
29343
|
+
React.createElement(Button$5, { text: "View all news", primary: false, url: viewAllLink, size: "large" })))));
|
|
28855
29344
|
}
|
|
28856
29345
|
else {
|
|
28857
29346
|
return React.createElement(React.Fragment, null);
|
|
28858
29347
|
}
|
|
28859
29348
|
};
|
|
28860
29349
|
|
|
28861
|
-
const Container$
|
|
29350
|
+
const Container$F = styled.div`
|
|
28862
29351
|
/* margin-top: 50px; */
|
|
28863
29352
|
/* border: 1px solid red; */
|
|
28864
29353
|
|
|
@@ -28878,6 +29367,7 @@ const ShowFiltersButton = styled.button`
|
|
|
28878
29367
|
margin: 0;
|
|
28879
29368
|
${(props) => props.theme.linkStyles}
|
|
28880
29369
|
font-size: 1.1em;
|
|
29370
|
+
font-family: ${(props) => props.theme.theme_vars.fontstack};
|
|
28881
29371
|
margin-top: ${(props) => props.theme.theme_vars.spacingSizes.extra_small};
|
|
28882
29372
|
margin-bottom: ${(props) => props.theme.theme_vars.spacingSizes.extra_small};
|
|
28883
29373
|
padding-top: ${(props) => props.theme.theme_vars.spacingSizes.small};
|
|
@@ -28951,13 +29441,15 @@ const FilterHeader = styled.div`
|
|
|
28951
29441
|
|
|
28952
29442
|
const FilterHeading = styled.h2`
|
|
28953
29443
|
${(props) => props.theme.theme_vars.h2}
|
|
29444
|
+
font-family: ${(props) => props.theme.theme_vars.fontstack};
|
|
29445
|
+
font-weight: 500;
|
|
28954
29446
|
|
|
28955
29447
|
@media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.m}) {
|
|
28956
29448
|
${(props) => props.theme.theme_vars.h3}
|
|
28957
29449
|
}
|
|
28958
29450
|
`;
|
|
28959
29451
|
|
|
28960
|
-
const Container$
|
|
29452
|
+
const Container$E = styled.a`
|
|
28961
29453
|
${props => props.theme.linkStyles}
|
|
28962
29454
|
color: ${props => props.theme.theme_vars.colours.negative} !important;
|
|
28963
29455
|
font-weight: normal;
|
|
@@ -28986,7 +29478,7 @@ var RemoveAllFilters = function (_a) {
|
|
|
28986
29478
|
e.preventDefault();
|
|
28987
29479
|
removeParams(__spreadArray(__spreadArray([], NewsArticleFilterFields.removeFiltersList, true), ['page'], false));
|
|
28988
29480
|
};
|
|
28989
|
-
return (React.createElement(Container$
|
|
29481
|
+
return (React.createElement(Container$E, { "data-testid": "RemoveAllFilters", href: "#", onClick: removeAllFilters },
|
|
28990
29482
|
"Clear ",
|
|
28991
29483
|
searchValue.length > 0 && 'search term and ',
|
|
28992
29484
|
"filters",
|
|
@@ -29043,7 +29535,7 @@ var NewsArticleFilterAccordion = function (_a) {
|
|
|
29043
29535
|
section.isExpanded = false;
|
|
29044
29536
|
}
|
|
29045
29537
|
});
|
|
29046
|
-
return (React.createElement(Container$
|
|
29538
|
+
return (React.createElement(Container$F, { "data-testid": "NewsArticleFilterAccordion" },
|
|
29047
29539
|
React.createElement(ShowFiltersButton, { onClick: showFullscreenFilters, "aria-expanded": !!isFullScreen, "aria-controls": "PageFilters" },
|
|
29048
29540
|
"Show Search and filters",
|
|
29049
29541
|
count > 0 && " (".concat(count, ")")),
|
|
@@ -29103,7 +29595,7 @@ var NewsArticleImage = function (_a) {
|
|
|
29103
29595
|
imageCaption && React.createElement(Small, { itemprop: "copyrightHolder" }, imageCaption)));
|
|
29104
29596
|
};
|
|
29105
29597
|
|
|
29106
|
-
const Container$
|
|
29598
|
+
const Container$D = styled.div`
|
|
29107
29599
|
${(props) => props.theme.fontStyles};
|
|
29108
29600
|
`;
|
|
29109
29601
|
|
|
@@ -29223,7 +29715,7 @@ var NewsArticleList = function (_a) {
|
|
|
29223
29715
|
var results = _a.results;
|
|
29224
29716
|
var extractLength = 140;
|
|
29225
29717
|
if (results && results.length > 0) {
|
|
29226
|
-
return (React.createElement(Container$
|
|
29718
|
+
return (React.createElement(Container$D, { "data-testid": "NewsArticleList" },
|
|
29227
29719
|
React.createElement(Row$1, { isList: true }, results.map(function (article) {
|
|
29228
29720
|
var _a;
|
|
29229
29721
|
return (React.createElement(Column, { isList: true, small: "full", medium: "full", large: "full", key: article.id },
|
|
@@ -29240,12 +29732,12 @@ var NewsArticleList = function (_a) {
|
|
|
29240
29732
|
}))));
|
|
29241
29733
|
}
|
|
29242
29734
|
else {
|
|
29243
|
-
return (React.createElement(Container$
|
|
29735
|
+
return (React.createElement(Container$D, { "data-testid": "NewsArticleList" },
|
|
29244
29736
|
React.createElement(ResultInfo$3, null, "No results found")));
|
|
29245
29737
|
}
|
|
29246
29738
|
};
|
|
29247
29739
|
|
|
29248
|
-
const Container$
|
|
29740
|
+
const Container$C = styled.div`
|
|
29249
29741
|
${props => props.theme.fontStyles};
|
|
29250
29742
|
padding-bottom: 20px;
|
|
29251
29743
|
border-bottom: 1px solid ${props => props.theme.theme_vars.colours.grey};
|
|
@@ -29319,7 +29811,7 @@ const Preposition = styled.div`
|
|
|
29319
29811
|
font-size: 80%;
|
|
29320
29812
|
`;
|
|
29321
29813
|
|
|
29322
|
-
const Container$
|
|
29814
|
+
const Container$B = styled.span`
|
|
29323
29815
|
margin: 0 5px;
|
|
29324
29816
|
display: inline-block;
|
|
29325
29817
|
position: relative;
|
|
@@ -29342,7 +29834,7 @@ const Text = styled.span`
|
|
|
29342
29834
|
margin-left: 5px;
|
|
29343
29835
|
`;
|
|
29344
29836
|
|
|
29345
|
-
const Button$
|
|
29837
|
+
const Button$3 = styled.button`
|
|
29346
29838
|
display: none;
|
|
29347
29839
|
position: absolute;
|
|
29348
29840
|
top: 0;
|
|
@@ -29380,9 +29872,9 @@ var RemovableTag = function (_a) {
|
|
|
29380
29872
|
var index = _a.index, preposition = _a.preposition, label = _a.label; _a.value; _a.param; var clickHandler = _a.clickHandler;
|
|
29381
29873
|
return (React.createElement(Wrapper$2, { "data-testid": "RemovableTag" },
|
|
29382
29874
|
index > 0 && preposition && React.createElement(Preposition, null, preposition),
|
|
29383
|
-
React.createElement(Container$
|
|
29875
|
+
React.createElement(Container$B, null,
|
|
29384
29876
|
React.createElement(Text, null, label),
|
|
29385
|
-
React.createElement(Button$
|
|
29877
|
+
React.createElement(Button$3, { "aria-label": "Remove filter ".concat(label), onClick: clickHandler }, "x"))));
|
|
29386
29878
|
};
|
|
29387
29879
|
|
|
29388
29880
|
var NewsArticleListHeader = function (_a) {
|
|
@@ -29400,7 +29892,7 @@ var NewsArticleListHeader = function (_a) {
|
|
|
29400
29892
|
var removeFilterValue = function (param, value) {
|
|
29401
29893
|
removeValueFromParam(param, value);
|
|
29402
29894
|
};
|
|
29403
|
-
return (React.createElement(Container$
|
|
29895
|
+
return (React.createElement(Container$C, { "data-testid": "NewsArticleListHeader" },
|
|
29404
29896
|
React.createElement(LeftCol, null,
|
|
29405
29897
|
totalResults,
|
|
29406
29898
|
" article",
|
|
@@ -29454,8 +29946,13 @@ var NewsArticleOldBanner = function (_a) {
|
|
|
29454
29946
|
React.createElement("strong", null, "1 year old")));
|
|
29455
29947
|
};
|
|
29456
29948
|
|
|
29457
|
-
const Container$
|
|
29949
|
+
const Container$A = styled.main`
|
|
29458
29950
|
padding-top: 30px;
|
|
29951
|
+
font-family: ${(props) => props.theme.theme_vars.fontstack};
|
|
29952
|
+
|
|
29953
|
+
button {
|
|
29954
|
+
font-family: inherit;
|
|
29955
|
+
}
|
|
29459
29956
|
|
|
29460
29957
|
a {
|
|
29461
29958
|
${(props) => props.theme.linkStyles}
|
|
@@ -29571,10 +30068,10 @@ const Container$y = styled.main`
|
|
|
29571
30068
|
*/
|
|
29572
30069
|
var PageMain = function (_a) {
|
|
29573
30070
|
var children = _a.children, classes = _a.classes, _b = _a.fullWidthText, fullWidthText = _b === void 0 ? false : _b, props = __rest(_a, ["children", "classes", "fullWidthText"]);
|
|
29574
|
-
return (React.createElement(Container$
|
|
30071
|
+
return (React.createElement(Container$A, __assign({ id: "main", className: classes, "$fullWidthText": fullWidthText }, props, { "data-testid": "PageMain" }), children));
|
|
29575
30072
|
};
|
|
29576
30073
|
|
|
29577
|
-
const Container$
|
|
30074
|
+
const Container$z = styled.aside`
|
|
29578
30075
|
padding-top: 30px;
|
|
29579
30076
|
`;
|
|
29580
30077
|
|
|
@@ -29583,10 +30080,10 @@ const Container$x = styled.aside`
|
|
|
29583
30080
|
*/
|
|
29584
30081
|
var PageSidebar = function (_a) {
|
|
29585
30082
|
var children = _a.children;
|
|
29586
|
-
return (React.createElement(Container$
|
|
30083
|
+
return (React.createElement(Container$z, { className: "sidebar" }, children));
|
|
29587
30084
|
};
|
|
29588
30085
|
|
|
29589
|
-
const Container$
|
|
30086
|
+
const Container$y = styled.div`
|
|
29590
30087
|
padding-top: 30px;
|
|
29591
30088
|
|
|
29592
30089
|
h1 {
|
|
@@ -29599,10 +30096,10 @@ const Container$w = styled.div`
|
|
|
29599
30096
|
*/
|
|
29600
30097
|
var PageTitle = function (_a) {
|
|
29601
30098
|
var children = _a.children, classes = _a.classes, props = __rest(_a, ["children", "classes"]);
|
|
29602
|
-
return (React.createElement(Container$
|
|
30099
|
+
return (React.createElement(Container$y, __assign({ "data-testid": "title", className: classes }, props), children));
|
|
29603
30100
|
};
|
|
29604
30101
|
|
|
29605
|
-
const Container$
|
|
30102
|
+
const Container$x = styled.div`
|
|
29606
30103
|
@media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.m}) {
|
|
29607
30104
|
display: flex;
|
|
29608
30105
|
flex-wrap: wrap;
|
|
@@ -29644,7 +30141,7 @@ const Container$v = styled.div`
|
|
|
29644
30141
|
*/
|
|
29645
30142
|
var PageWithSidebarContainer = function (_a) {
|
|
29646
30143
|
var _b = _a.sidebarLeft, sidebarLeft = _b === void 0 ? false : _b, children = _a.children;
|
|
29647
|
-
return React.createElement(Container$
|
|
30144
|
+
return React.createElement(Container$x, { "$sidebarLeft": sidebarLeft }, children);
|
|
29648
30145
|
};
|
|
29649
30146
|
|
|
29650
30147
|
const backgroundDecider = (props) => {
|
|
@@ -29660,14 +30157,15 @@ const backgroundDecider = (props) => {
|
|
|
29660
30157
|
}
|
|
29661
30158
|
};
|
|
29662
30159
|
|
|
29663
|
-
const Container$
|
|
30160
|
+
const Container$w = styled.div`
|
|
29664
30161
|
${backgroundDecider};
|
|
29665
30162
|
padding-top: 1.5em;
|
|
30163
|
+
font-family: ${(props) => props.theme.theme_vars.fontstack};
|
|
29666
30164
|
`;
|
|
29667
30165
|
|
|
29668
30166
|
var PageWrapper = function (_a) {
|
|
29669
30167
|
var colour = _a.colour, children = _a.children;
|
|
29670
|
-
return (React.createElement(Container$
|
|
30168
|
+
return (React.createElement(Container$w, { "data-testid": "PageWrapper", "$colour": colour }, children));
|
|
29671
30169
|
};
|
|
29672
30170
|
|
|
29673
30171
|
const Wrapper$1 = styled.div`
|
|
@@ -29781,7 +30279,7 @@ var PhaseBanner = function (_a) {
|
|
|
29781
30279
|
React.createElement(PhaseContentContainer, { "$isHome": isHome }, children))));
|
|
29782
30280
|
};
|
|
29783
30281
|
|
|
29784
|
-
const Container$
|
|
30282
|
+
const Container$v = styled.div`
|
|
29785
30283
|
${(props) => props.theme.fontStyles};
|
|
29786
30284
|
overflow: hidden;
|
|
29787
30285
|
margin: 40px auto 5px auto;
|
|
@@ -29858,7 +30356,7 @@ const CTA = styled.a`
|
|
|
29858
30356
|
*/
|
|
29859
30357
|
var PromoBanner = function (_a) {
|
|
29860
30358
|
var title = _a.title, image1440x810 = _a.image1440x810, image144x81 = _a.image144x81, ctaText = _a.ctaText, ctaUrl = _a.ctaUrl, children = _a.children;
|
|
29861
|
-
return (React.createElement(Container$
|
|
30359
|
+
return (React.createElement(Container$v, null,
|
|
29862
30360
|
React.createElement(ImageLink, { href: ctaUrl, title: ctaText },
|
|
29863
30361
|
React.createElement(ResponsiveImage, { imageSmall: image144x81, imageLarge: image1440x810, imageAltText: ctaText, smallWidth: "144", largeWidth: "1440", ratio: "16by9", objectFit: "cover" })),
|
|
29864
30362
|
React.createElement(Wrapper, null,
|
|
@@ -30041,7 +30539,7 @@ var PromoBlock = function (_a) {
|
|
|
30041
30539
|
promos.length === 1 && React.createElement(Column, { small: "full", medium: "one-half", large: "one-half" }))))));
|
|
30042
30540
|
};
|
|
30043
30541
|
|
|
30044
|
-
const Container$
|
|
30542
|
+
const Container$u = styled.div`
|
|
30045
30543
|
display: block;
|
|
30046
30544
|
box-shadow: 1px 1px 5px 1px rgba(0, 0, 0, 0.2);
|
|
30047
30545
|
border-radius: ${(props) => props.theme.theme_vars.border_radius};
|
|
@@ -30158,7 +30656,7 @@ var PromoTabs = function (_a) {
|
|
|
30158
30656
|
var toggleTab = function (index) {
|
|
30159
30657
|
setActiveTab(index);
|
|
30160
30658
|
};
|
|
30161
|
-
return (React.createElement(Container$
|
|
30659
|
+
return (React.createElement(Container$u, { "data-testid": "PromoTabs" },
|
|
30162
30660
|
React.createElement(Row$1, null,
|
|
30163
30661
|
React.createElement(Column, { small: "full", medium: "one-third", large: "one-quarter", classes: "promo-tab-column" },
|
|
30164
30662
|
React.createElement("div", { role: "tablist" }, promos.map(function (promo, index) { return (React.createElement(TitleButton, { onClick: function () { return toggleTab(index); }, key: index, "$isActive": index === activeTab, role: "tab", id: "promo-tab-".concat(index), "aria-controls": "promo-tabpanel-".concat(index), "aria-selected": index === activeTab ? 'true' : 'false' }, promo.title)); }))),
|
|
@@ -30180,7 +30678,7 @@ var PromoTabs = function (_a) {
|
|
|
30180
30678
|
}))));
|
|
30181
30679
|
};
|
|
30182
30680
|
|
|
30183
|
-
const Container$
|
|
30681
|
+
const Container$t = styled.div`
|
|
30184
30682
|
display: block;
|
|
30185
30683
|
`;
|
|
30186
30684
|
|
|
@@ -30202,7 +30700,7 @@ const SmallScreen = styled.div`
|
|
|
30202
30700
|
|
|
30203
30701
|
var PromoTabsDisplay = function (_a) {
|
|
30204
30702
|
var promos = _a.promos;
|
|
30205
|
-
return (React.createElement(Container$
|
|
30703
|
+
return (React.createElement(Container$t, { "data-testid": "PromoTabsDisplay" },
|
|
30206
30704
|
React.createElement(LargeScreen, null,
|
|
30207
30705
|
React.createElement(PromoTabs, { promos: promos })),
|
|
30208
30706
|
React.createElement(SmallScreen, null,
|
|
@@ -30232,7 +30730,7 @@ var RatingValues = [
|
|
|
30232
30730
|
},
|
|
30233
30731
|
];
|
|
30234
30732
|
|
|
30235
|
-
const FormContainer$1 = styled(Container$
|
|
30733
|
+
const FormContainer$1 = styled(Container$A)`
|
|
30236
30734
|
display: block;
|
|
30237
30735
|
.grecaptcha-badge {
|
|
30238
30736
|
visibility: hidden;
|
|
@@ -30256,9 +30754,10 @@ const ShowFullForm = styled.div`
|
|
|
30256
30754
|
flex-direction: column;
|
|
30257
30755
|
`;
|
|
30258
30756
|
|
|
30259
|
-
const Legend$
|
|
30757
|
+
const Legend$3 = styled.legend`
|
|
30260
30758
|
margin-bottom: 5px;
|
|
30261
|
-
font-weight:
|
|
30759
|
+
font-weight: 600;
|
|
30760
|
+
font-size: 1.1em;
|
|
30262
30761
|
`;
|
|
30263
30762
|
|
|
30264
30763
|
const Label$5 = styled.label`
|
|
@@ -30268,9 +30767,9 @@ const Label$5 = styled.label`
|
|
|
30268
30767
|
|
|
30269
30768
|
const Hint = styled.p``;
|
|
30270
30769
|
|
|
30271
|
-
const FormErrorText = styled(ErrorText$3)``;
|
|
30770
|
+
const FormErrorText$1 = styled(ErrorText$3)``;
|
|
30272
30771
|
|
|
30273
|
-
const Hidden = styled.span`
|
|
30772
|
+
const Hidden$1 = styled.span`
|
|
30274
30773
|
${VisuallyHidden$3}
|
|
30275
30774
|
`;
|
|
30276
30775
|
|
|
@@ -30298,6 +30797,7 @@ const QuestionButton = styled.div`
|
|
|
30298
30797
|
flex-direction: row;
|
|
30299
30798
|
align-items: flex-end;
|
|
30300
30799
|
justify-content: center;
|
|
30800
|
+
font-size: 1.25em;
|
|
30301
30801
|
`;
|
|
30302
30802
|
|
|
30303
30803
|
const StyledTextarea = styled.textarea`
|
|
@@ -30335,7 +30835,7 @@ const ErrorText = styled.p`
|
|
|
30335
30835
|
}
|
|
30336
30836
|
`;
|
|
30337
30837
|
|
|
30338
|
-
const Container$
|
|
30838
|
+
const Container$s = styled.div`
|
|
30339
30839
|
display: block;
|
|
30340
30840
|
`;
|
|
30341
30841
|
|
|
@@ -30351,7 +30851,7 @@ var CharacterCount = function (_a) {
|
|
|
30351
30851
|
var calculatedRemaining = maxLength - input.length;
|
|
30352
30852
|
setRemaining(calculatedRemaining < 0 ? 0 : calculatedRemaining);
|
|
30353
30853
|
}, [input]);
|
|
30354
|
-
return (React.createElement(Container$
|
|
30854
|
+
return (React.createElement(Container$s, { "data-testid": "CharacterCount" },
|
|
30355
30855
|
React.createElement(Count, { "aria-live": "polite" },
|
|
30356
30856
|
"You have ",
|
|
30357
30857
|
remaining,
|
|
@@ -30371,14 +30871,15 @@ var Textarea = function (_a) {
|
|
|
30371
30871
|
maxLength && typeof value === 'string' && React.createElement(CharacterCount, { maxLength: maxLength, input: value }))) : (React.createElement(StyledTextarea, { onChange: onChange, placeholder: placeholder, name: name, "$isErrored": isErrored, maxLength: maxLength, defaultValue: defaultValue, id: id, "$isFullWidth": isFullWidth }))));
|
|
30372
30872
|
};
|
|
30373
30873
|
|
|
30374
|
-
const Container$
|
|
30874
|
+
const Container$r = styled.div`
|
|
30375
30875
|
display: block;
|
|
30376
30876
|
border-left: ${(props) =>
|
|
30377
30877
|
props.$isErrored
|
|
30378
|
-
? `${props.theme.theme_vars.
|
|
30878
|
+
? `${props.theme.theme_vars.border_width_error} solid ${props.theme.theme_vars.colours.negative}`
|
|
30379
30879
|
: 'none'};
|
|
30380
30880
|
padding-left: ${(props) => (props.$isErrored ? ` ${props.theme.theme_vars.spacingSizes.extra_small}` : '0')};
|
|
30381
|
-
padding-bottom:
|
|
30881
|
+
padding-bottom: ${(props) => props.theme.theme_vars.spacingSizes.small};
|
|
30882
|
+
padding-top: ${(props) => props.theme.theme_vars.spacingSizes.small};
|
|
30382
30883
|
`;
|
|
30383
30884
|
|
|
30384
30885
|
const Category$2 = styled.div`
|
|
@@ -30446,8 +30947,6 @@ const CategoryInputLabel = styled.label`
|
|
|
30446
30947
|
-ms-touch-action: manipulation;
|
|
30447
30948
|
touch-action: manipulation;
|
|
30448
30949
|
color: #0b0c0c;
|
|
30449
|
-
display: block;
|
|
30450
|
-
margin-bottom: 5px;
|
|
30451
30950
|
|
|
30452
30951
|
&:before {
|
|
30453
30952
|
content: '';
|
|
@@ -30474,11 +30973,11 @@ const CategoryInputLabel = styled.label`
|
|
|
30474
30973
|
`;
|
|
30475
30974
|
|
|
30476
30975
|
var RadioCheckboxInput = function (_a) {
|
|
30477
|
-
var singleSelection = _a.singleSelection, value = _a.value, name = _a.name, onChange = _a.onChange, checked = _a.checked, label = _a.label, _b = _a.isErrored, isErrored = _b === void 0 ? false : _b;
|
|
30976
|
+
var singleSelection = _a.singleSelection, value = _a.value, name = _a.name, onChange = _a.onChange, checked = _a.checked, label = _a.label, _b = _a.isErrored, isErrored = _b === void 0 ? false : _b, _c = _a.isDisabled, isDisabled = _c === void 0 ? false : _c;
|
|
30478
30977
|
var id = useId();
|
|
30479
|
-
return (React.createElement(Container$
|
|
30978
|
+
return (React.createElement(Container$r, { "data-testid": "RadioCheckboxInput", "$isErrored": isErrored },
|
|
30480
30979
|
React.createElement(Category$2, null,
|
|
30481
|
-
React.createElement(CategoryInput, { type: singleSelection ? 'radio' : 'checkbox', value: value, id: id, name: name, onClick: onChange, defaultChecked: checked }),
|
|
30980
|
+
React.createElement(CategoryInput, { type: singleSelection ? 'radio' : 'checkbox', value: value, id: id, name: name, onClick: onChange, defaultChecked: checked, disabled: isDisabled }),
|
|
30482
30981
|
React.createElement(CategoryInputLabel, { "$isChecked": checked, htmlFor: id, "$singleSelection": singleSelection }, label))));
|
|
30483
30982
|
};
|
|
30484
30983
|
|
|
@@ -30558,7 +31057,7 @@ function R({
|
|
|
30558
31057
|
};
|
|
30559
31058
|
}
|
|
30560
31059
|
|
|
30561
|
-
const Container$
|
|
31060
|
+
const Container$q = styled.div`
|
|
30562
31061
|
display: flex;
|
|
30563
31062
|
flex-direction: column;
|
|
30564
31063
|
justify-content: center;
|
|
@@ -30594,12 +31093,12 @@ const Content$4 = styled.div`
|
|
|
30594
31093
|
*/
|
|
30595
31094
|
var Panel = function (_a) {
|
|
30596
31095
|
var heading = _a.heading, children = _a.children;
|
|
30597
|
-
return (React.createElement(Container$
|
|
31096
|
+
return (React.createElement(Container$q, { "data-testid": "Panel" },
|
|
30598
31097
|
React.createElement(Heading, null, heading),
|
|
30599
31098
|
children && React.createElement(Content$4, null, children)));
|
|
30600
31099
|
};
|
|
30601
31100
|
|
|
30602
|
-
const Container$
|
|
31101
|
+
const Container$p = styled.div`
|
|
30603
31102
|
display: block;
|
|
30604
31103
|
width: 100%;
|
|
30605
31104
|
padding: 0 ${(props) => props.theme.theme_vars.spacingSizes.medium};
|
|
@@ -30625,7 +31124,7 @@ const ErrorLink = styled.a`
|
|
|
30625
31124
|
|
|
30626
31125
|
var ErrorSummary = function (_a) {
|
|
30627
31126
|
var errors = _a.errors;
|
|
30628
|
-
return (React.createElement(Container$
|
|
31127
|
+
return (React.createElement(Container$p, { "data-testid": "ErrorSummary" },
|
|
30629
31128
|
React.createElement(Heading$1, { level: 2, text: "There is a problem" }),
|
|
30630
31129
|
React.createElement(ErrorList, null, Object.keys(errors).map(function (field) { return (React.createElement(ErrorMessage, { key: field },
|
|
30631
31130
|
React.createElement(ErrorLink, { href: "#".concat(field, "Error") }, errors[field].message))); }))));
|
|
@@ -30730,12 +31229,12 @@ var RateThisPage = function (_a) {
|
|
|
30730
31229
|
errors && Object.keys(errors).length > 0 && React.createElement(ErrorSummary, { errors: errors }),
|
|
30731
31230
|
React.createElement(Column, { small: "full", medium: "full", large: "full" },
|
|
30732
31231
|
React.createElement("fieldset", { "aria-describedby": errors.IsHelpful ? 'IsHelpfulError' : 'IsHelpfulLegend' },
|
|
30733
|
-
React.createElement(Legend$
|
|
31232
|
+
React.createElement(Legend$3, { id: "IsHelpfulLegend" }, "Is this information helpful?"),
|
|
30734
31233
|
React.createElement(Controller, { name: "IsHelpful", control: control, rules: { required: { value: true, message: 'The field is this information helpful is required.' } }, render: function (_a) {
|
|
30735
31234
|
var _b = _a.field, onChange = _b.onChange, value = _b.value;
|
|
30736
31235
|
return (React.createElement(React.Fragment, null,
|
|
30737
|
-
errors.IsHelpful && (React.createElement(FormErrorText, { id: "IsHelpfulError" },
|
|
30738
|
-
React.createElement(Hidden, null, "Error:"),
|
|
31236
|
+
errors.IsHelpful && (React.createElement(FormErrorText$1, { id: "IsHelpfulError" },
|
|
31237
|
+
React.createElement(Hidden$1, null, "Error:"),
|
|
30739
31238
|
" ",
|
|
30740
31239
|
errors.IsHelpful.message)),
|
|
30741
31240
|
Object.entries(HelpfulEnum).map(function (_a) {
|
|
@@ -30766,11 +31265,11 @@ var RateThisPage = function (_a) {
|
|
|
30766
31265
|
React.createElement("li", null, "I don't think I have been treated fairly"),
|
|
30767
31266
|
React.createElement("li", null, "I feel as if I have been misled")),
|
|
30768
31267
|
React.createElement(QuestionButton, null,
|
|
30769
|
-
React.createElement(Button$
|
|
31268
|
+
React.createElement(Button$5, { url: complaintsFormLink }, "I have a comment or complaint about this service"))))),
|
|
30770
31269
|
React.createElement(ShowFullForm, { "$show": showFullForm },
|
|
30771
31270
|
React.createElement(Column, { small: "full", medium: "full", large: "full" },
|
|
30772
31271
|
React.createElement("fieldset", { "aria-describedby": "HowEasyToFindLegend" },
|
|
30773
|
-
React.createElement(Legend$
|
|
31272
|
+
React.createElement(Legend$3, { id: "HowEasyToFindLegend" }, "How easy was it to find what you were looking for?"),
|
|
30774
31273
|
React.createElement(Hint, null, "1 being very easy and 5 being extremely difficult."),
|
|
30775
31274
|
React.createElement(Controller, { name: "HowEasyToFind", control: control, rules: {
|
|
30776
31275
|
pattern: {
|
|
@@ -30784,15 +31283,15 @@ var RateThisPage = function (_a) {
|
|
|
30784
31283
|
}, render: function (_a) {
|
|
30785
31284
|
var _b = _a.field, onChange = _b.onChange, value = _b.value;
|
|
30786
31285
|
return (React.createElement(React.Fragment, null,
|
|
30787
|
-
errors.HowEasyToFind && (React.createElement(FormErrorText, { id: "HowEasyToFindError" },
|
|
30788
|
-
React.createElement(Hidden, null, "Error:"),
|
|
31286
|
+
errors.HowEasyToFind && (React.createElement(FormErrorText$1, { id: "HowEasyToFindError" },
|
|
31287
|
+
React.createElement(Hidden$1, null, "Error:"),
|
|
30789
31288
|
" ",
|
|
30790
31289
|
errors.HowEasyToFind.message)),
|
|
30791
31290
|
RatingValues.map(function (ratingValue, index) { return (React.createElement(RadioCheckboxInput, { key: index, value: ratingValue.value, label: ratingValue.label, checked: String(value) == ratingValue.value, name: "HowEasyToFind", singleSelection: true, onChange: onChange, isErrored: errors.HowEasyToFind ? true : false })); })));
|
|
30792
31291
|
} }))),
|
|
30793
31292
|
React.createElement(Column, { small: "full", medium: "full", large: "full" },
|
|
30794
31293
|
React.createElement("fieldset", { "aria-describedby": "HowEasyToUnderstandLegend" },
|
|
30795
|
-
React.createElement(Legend$
|
|
31294
|
+
React.createElement(Legend$3, { id: "HowEasyToUnderstandLegend" }, "How easy was this content to understand?"),
|
|
30796
31295
|
React.createElement(Hint, null, "1 being very easy and 5 being extremely difficult."),
|
|
30797
31296
|
React.createElement(Controller, { name: "HowEasyToUnderstand", control: control, rules: {
|
|
30798
31297
|
pattern: {
|
|
@@ -30806,8 +31305,8 @@ var RateThisPage = function (_a) {
|
|
|
30806
31305
|
}, render: function (_a) {
|
|
30807
31306
|
var _b = _a.field, onChange = _b.onChange, value = _b.value;
|
|
30808
31307
|
return (React.createElement(React.Fragment, null,
|
|
30809
|
-
errors.HowEasyToUnderstand && (React.createElement(FormErrorText, { id: "HowEasyToUnderstandError" },
|
|
30810
|
-
React.createElement(Hidden, null, "Error:"),
|
|
31308
|
+
errors.HowEasyToUnderstand && (React.createElement(FormErrorText$1, { id: "HowEasyToUnderstandError" },
|
|
31309
|
+
React.createElement(Hidden$1, null, "Error:"),
|
|
30811
31310
|
" ",
|
|
30812
31311
|
errors.HowEasyToUnderstand.message)),
|
|
30813
31312
|
RatingValues.map(function (ratingValue, index) { return (React.createElement(RadioCheckboxInput, { key: index, value: ratingValue.value, label: ratingValue.label, checked: String(value) == ratingValue.value, name: "HowEasyToUnderstand", singleSelection: true, onChange: onChange, isErrored: errors.HowEasyToUnderstand ? true : false })); })));
|
|
@@ -30869,7 +31368,7 @@ var RateThisPage = function (_a) {
|
|
|
30869
31368
|
React.createElement("div", { id: recaptchaContainerId, className: "g-recaptcha" })));
|
|
30870
31369
|
};
|
|
30871
31370
|
|
|
30872
|
-
const Container$
|
|
31371
|
+
const Container$o = styled.div`
|
|
30873
31372
|
${(props) => props.theme.fontStyles};
|
|
30874
31373
|
`;
|
|
30875
31374
|
|
|
@@ -30878,7 +31377,7 @@ const ResultInfo$2 = styled.div`
|
|
|
30878
31377
|
margin: ${(props) => props.theme.theme_vars.spacingSizes.large} 0;
|
|
30879
31378
|
`;
|
|
30880
31379
|
|
|
30881
|
-
const Result = styled.div`
|
|
31380
|
+
const Result$1 = styled.div`
|
|
30882
31381
|
margin-bottom: ${(props) => props.theme.theme_vars.spacingSizes.x_large};
|
|
30883
31382
|
|
|
30884
31383
|
&:first-of-type {
|
|
@@ -31043,18 +31542,18 @@ var SearchResultsList = function (_a) {
|
|
|
31043
31542
|
return Math.ceil(Math.abs(currentDate.getTime() - dateObject.getTime()) / (1000 * 60 * 60 * 24)) > 365;
|
|
31044
31543
|
};
|
|
31045
31544
|
if (totalResults === 0) {
|
|
31046
|
-
return (React.createElement(Container$
|
|
31545
|
+
return (React.createElement(Container$o, { "data-testid": "SearchResultsList" },
|
|
31047
31546
|
React.createElement(ResultInfo$2, null, "No results found")));
|
|
31048
31547
|
}
|
|
31049
31548
|
else {
|
|
31050
|
-
return (React.createElement(Container$
|
|
31549
|
+
return (React.createElement(Container$o, { "data-testid": "SearchResultsList" },
|
|
31051
31550
|
React.createElement(ResultInfo$2, null,
|
|
31052
31551
|
pageNumber > 1 && 'Page ' + pageNumber + ' of ',
|
|
31053
31552
|
totalResults,
|
|
31054
31553
|
" total results for '",
|
|
31055
31554
|
searchTerm,
|
|
31056
31555
|
"'"),
|
|
31057
|
-
results.map(function (result, i) { return (React.createElement(Result, { key: i },
|
|
31556
|
+
results.map(function (result, i) { return (React.createElement(Result$1, { key: i },
|
|
31058
31557
|
result.service && React.createElement(ServiceArea, null, result.service),
|
|
31059
31558
|
React.createElement(Title$4, { href: result.link }, result.title),
|
|
31060
31559
|
result.published && result.service === 'News' && isOld(result.published) && React.createElement(NewsArticleOldBanner, null),
|
|
@@ -31065,7 +31564,7 @@ var SearchResultsList = function (_a) {
|
|
|
31065
31564
|
}
|
|
31066
31565
|
};
|
|
31067
31566
|
|
|
31068
|
-
const Container$
|
|
31567
|
+
const Container$n = styled.div`
|
|
31069
31568
|
li {
|
|
31070
31569
|
line-height: 1.5;
|
|
31071
31570
|
}
|
|
@@ -31125,7 +31624,8 @@ const Title$3 = styled.p`
|
|
|
31125
31624
|
${(props) => props.theme.linkStyles}
|
|
31126
31625
|
margin-top: 0;
|
|
31127
31626
|
margin-bottom: 15px;
|
|
31128
|
-
|
|
31627
|
+
font-weight: 600 !important;
|
|
31628
|
+
font-size: 20px !important;
|
|
31129
31629
|
&:hover {
|
|
31130
31630
|
${(props) => props.theme.linkStylesHover}
|
|
31131
31631
|
}
|
|
@@ -31169,7 +31669,7 @@ styled.img`
|
|
|
31169
31669
|
*/
|
|
31170
31670
|
var SectionLinks = function (_a) {
|
|
31171
31671
|
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;
|
|
31172
|
-
return (React.createElement(Container$
|
|
31672
|
+
return (React.createElement(Container$n, { id: sectionSlug, "data-testid": "SectionLinks" },
|
|
31173
31673
|
displayTitle ? React.createElement(SectionTitle$1, { text: sectionTitle }) : React.createElement("br", null),
|
|
31174
31674
|
React.createElement(Row$1, { isList: true }, pageLinksArray.map(function (link, i) {
|
|
31175
31675
|
var _a;
|
|
@@ -31181,7 +31681,7 @@ var SectionLinks = function (_a) {
|
|
|
31181
31681
|
}))));
|
|
31182
31682
|
};
|
|
31183
31683
|
|
|
31184
|
-
const Container$
|
|
31684
|
+
const Container$m = styled.aside`
|
|
31185
31685
|
padding-top: 20px;
|
|
31186
31686
|
display: block;
|
|
31187
31687
|
|
|
@@ -31247,7 +31747,8 @@ const ContentsItem = styled.li`
|
|
|
31247
31747
|
const InlineLink = styled.a`
|
|
31248
31748
|
${(props) => props.theme.linkStyles}
|
|
31249
31749
|
padding: ${(props) => props.theme.theme_vars.spacingSizes.small} 0;
|
|
31250
|
-
font-weight:
|
|
31750
|
+
font-weight: 600 !important;
|
|
31751
|
+
font-size: 1.3rem;
|
|
31251
31752
|
display: inline-block;
|
|
31252
31753
|
|
|
31253
31754
|
&:hover {
|
|
@@ -31266,14 +31767,14 @@ const InlineLink = styled.a`
|
|
|
31266
31767
|
|
|
31267
31768
|
var SectionLinksMobileContents = function (_a) {
|
|
31268
31769
|
var sectionLinksArray = _a.sectionLinksArray;
|
|
31269
|
-
return (React.createElement(Container$
|
|
31770
|
+
return (React.createElement(Container$m, null,
|
|
31270
31771
|
React.createElement(Contents, null,
|
|
31271
31772
|
React.createElement(ContentsTitle, null, "Contents"),
|
|
31272
31773
|
React.createElement(ContentsList, null, sectionLinksArray.map(function (link) { return (React.createElement(ContentsItem, { key: link.title },
|
|
31273
31774
|
React.createElement(InlineLink, { href: '#' + link.id, title: link.title }, link.title))); })))));
|
|
31274
31775
|
};
|
|
31275
31776
|
|
|
31276
|
-
const Container$
|
|
31777
|
+
const Container$l = styled.div`
|
|
31277
31778
|
${(props) => props.theme.fontStyles}
|
|
31278
31779
|
background-color: ${(props) => props.theme.theme_vars.colours.action_light};
|
|
31279
31780
|
border-radius: ${(props) => props.theme.theme_vars.border_radius};
|
|
@@ -31422,7 +31923,7 @@ const ListItemLink = styled.a`
|
|
|
31422
31923
|
var SectionLinksSidebar = function (_a) {
|
|
31423
31924
|
var Title = _a.Title, Sections = _a.Sections;
|
|
31424
31925
|
var _b = useState(false), open = _b[0], setOpen = _b[1];
|
|
31425
|
-
return (React.createElement(Container$
|
|
31926
|
+
return (React.createElement(Container$l, { "data-testid": "SectionLinksSidebar" },
|
|
31426
31927
|
React.createElement(MobileTitleButton, { onClick: function () { return (open ? setOpen(false) : setOpen(true)); } },
|
|
31427
31928
|
Title,
|
|
31428
31929
|
React.createElement(IconWrapper$2, null,
|
|
@@ -31434,7 +31935,7 @@ var SectionLinksSidebar = function (_a) {
|
|
|
31434
31935
|
React.createElement(ListItemLink, { href: link.url }, link.title))); })))); }))));
|
|
31435
31936
|
};
|
|
31436
31937
|
|
|
31437
|
-
const Container$
|
|
31938
|
+
const Container$k = styled.div`
|
|
31438
31939
|
position: relative;
|
|
31439
31940
|
isolation: isolate;
|
|
31440
31941
|
`;
|
|
@@ -31508,6 +32009,8 @@ const ServiceHeading = styled.span`
|
|
|
31508
32009
|
${(props) => props.theme.theme_vars.h3}
|
|
31509
32010
|
margin-top: 0;
|
|
31510
32011
|
margin-bottom: 0;
|
|
32012
|
+
font-weight: 600;
|
|
32013
|
+
font-size: 1.2em;
|
|
31511
32014
|
`;
|
|
31512
32015
|
|
|
31513
32016
|
const QuickLinksContainer = styled.div`
|
|
@@ -31586,7 +32089,7 @@ var ServiceLinksBoxed = function (_a) {
|
|
|
31586
32089
|
var _a;
|
|
31587
32090
|
return (_a = refs.current[index]) !== null && _a !== void 0 ? _a : React.createRef();
|
|
31588
32091
|
});
|
|
31589
|
-
return (React.createElement(Container$
|
|
32092
|
+
return (React.createElement(Container$k, { "data-testid": "ServiceLinksBoxed" },
|
|
31590
32093
|
React.createElement(Row$1, null, serviceLinksArray.map(function (serviceLink, index) {
|
|
31591
32094
|
var _a;
|
|
31592
32095
|
return (React.createElement(Column, { small: "full", medium: "one-half", large: "one-third", key: index },
|
|
@@ -31623,7 +32126,7 @@ const containerMaxHeight = (props) => {
|
|
|
31623
32126
|
}
|
|
31624
32127
|
};
|
|
31625
32128
|
|
|
31626
|
-
const Container$
|
|
32129
|
+
const Container$j = styled.div`
|
|
31627
32130
|
${(props) => props.theme.fontStyles}
|
|
31628
32131
|
${containerMaxHeight}
|
|
31629
32132
|
|
|
@@ -31909,6 +32412,7 @@ const ReorderButton = styled.button`
|
|
|
31909
32412
|
padding: ${(props) => props.theme.theme_vars.spacingSizes.small};
|
|
31910
32413
|
line-height: 1.5;
|
|
31911
32414
|
font-size: 0.9em;
|
|
32415
|
+
font-family: ${(props) => props.theme.theme_vars.fontstack};
|
|
31912
32416
|
cursor: pointer;
|
|
31913
32417
|
|
|
31914
32418
|
@media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.m}) {
|
|
@@ -32026,7 +32530,7 @@ var ServicesLinksList = function (_a) {
|
|
|
32026
32530
|
}
|
|
32027
32531
|
}, [currentOrder]);
|
|
32028
32532
|
return (React.createElement(React.Fragment, null,
|
|
32029
|
-
React.createElement(Container$
|
|
32533
|
+
React.createElement(Container$j, { id: serviceId, className: open && 'open', "$hideHeader": hideHeader, "$isBoxed": isBoxed },
|
|
32030
32534
|
!hideHeader && (React.createElement(HomeTitle, { "data-testid": "servicesLinksListHeader" },
|
|
32031
32535
|
React.createElement(Heading$1, { text: "Council services" }),
|
|
32032
32536
|
React.createElement(ReorderControl, null,
|
|
@@ -32055,7 +32559,7 @@ var ServicesLinksList = function (_a) {
|
|
|
32055
32559
|
" services")))));
|
|
32056
32560
|
};
|
|
32057
32561
|
|
|
32058
|
-
const Container$
|
|
32562
|
+
const Container$i = styled.div`
|
|
32059
32563
|
${(props) => props.theme.fontStyles}
|
|
32060
32564
|
max-width: 500px;
|
|
32061
32565
|
border-radius: ${(props) => props.theme.theme_vars.border_radius};
|
|
@@ -32099,7 +32603,7 @@ const SingleButtonContainer = styled.div`
|
|
|
32099
32603
|
}
|
|
32100
32604
|
`;
|
|
32101
32605
|
|
|
32102
|
-
const Container$
|
|
32606
|
+
const Container$h = styled.div`
|
|
32103
32607
|
strong {
|
|
32104
32608
|
font-weight: bold;
|
|
32105
32609
|
}
|
|
@@ -32217,6 +32721,10 @@ const FormContainer = styled.div`
|
|
|
32217
32721
|
display: ${(props) => (props.$isLoading ? `none` : 'block')};
|
|
32218
32722
|
`;
|
|
32219
32723
|
|
|
32724
|
+
const ButtonLabel = styled.span`
|
|
32725
|
+
font-family: ${(props) => props.theme.theme_vars.fontstack};
|
|
32726
|
+
`;
|
|
32727
|
+
|
|
32220
32728
|
const HintText$1 = styled.p`
|
|
32221
32729
|
color: ${props => props.theme.theme_vars.colours.grey_darkest};
|
|
32222
32730
|
font-size: 14px;
|
|
@@ -32360,11 +32868,11 @@ var PostCodeSearch = function (_a) {
|
|
|
32360
32868
|
setCurrentPostcode(currentPostcode + ' (' + singleAddress.title + ')');
|
|
32361
32869
|
}
|
|
32362
32870
|
}
|
|
32363
|
-
return (React.createElement(Container$
|
|
32871
|
+
return (React.createElement(Container$h, { "data-testid": "PostCodeSearch" },
|
|
32364
32872
|
React.createElement(DropDownButton, { onClick: function () { return setOpen(open ? false : true); } },
|
|
32365
32873
|
React.createElement(IconWrapper, null,
|
|
32366
32874
|
React.createElement(ChevronIcon, { direction: open ? 'down' : 'right', colourFill: themeContext.theme_vars.colours.black })),
|
|
32367
|
-
title),
|
|
32875
|
+
React.createElement(ButtonLabel, null, title)),
|
|
32368
32876
|
open && (React.createElement(DropDownContent, null, responseData.unitaries.length === 0 ? (React.createElement(FormWithLine, { onSubmit: function (e) {
|
|
32369
32877
|
handleSubmit(e);
|
|
32370
32878
|
}, isError: isError, lineColour: themeContext.theme_vars.colours.grey_dark },
|
|
@@ -32427,7 +32935,7 @@ var PostCodeSearch = function (_a) {
|
|
|
32427
32935
|
" Northamptonshire website and find your local area (",
|
|
32428
32936
|
responseData[sovereignType][0].name,
|
|
32429
32937
|
") for this service."),
|
|
32430
|
-
React.createElement(Button$
|
|
32938
|
+
React.createElement(Button$5, { size: "large", colourOverride: themeContext.theme_vars.other_council_action, text: 'Go to ' + responseData.unitaries[0].name + " Northamptonshire's website", url: otherCouncilLink, isExternal: true }),
|
|
32431
32939
|
React.createElement("br", null))),
|
|
32432
32940
|
React.createElement(StartAgain, { onClick: function () { return clearData(); } }, "Check another postcode")))))))));
|
|
32433
32941
|
};
|
|
@@ -32436,7 +32944,7 @@ var SignpostLinks = function (_a) {
|
|
|
32436
32944
|
var signpostLinksArray = _a.signpostLinksArray, _b = _a.TopLineText, TopLineText = _b === void 0 ? 'Select your local area for more information:' : _b, otherCouncilLink = _a.otherCouncilLink, _c = _a.sovereignType, sovereignType = _c === void 0 ? 'sovereigns' : _c;
|
|
32437
32945
|
var themeContext = useContext(ThemeContext);
|
|
32438
32946
|
var councilLink = otherCouncilLink ? otherCouncilLink : themeContext.theme_vars.other_council_link;
|
|
32439
|
-
return (React.createElement(React.Fragment, null, signpostLinksArray.length > 1 ? (React.createElement(Container$
|
|
32947
|
+
return (React.createElement(React.Fragment, null, signpostLinksArray.length > 1 ? (React.createElement(Container$i, null,
|
|
32440
32948
|
React.createElement(Paragraph, null, TopLineText),
|
|
32441
32949
|
React.createElement(SignpostLinksList, { signpostLinksArray: signpostLinksArray }),
|
|
32442
32950
|
React.createElement(PostCodeSearch, { otherCouncilLink: councilLink, signPostLinks: signpostLinksArray, sovereignType: sovereignType }),
|
|
@@ -32444,7 +32952,7 @@ var SignpostLinks = function (_a) {
|
|
|
32444
32952
|
"If your area isn't listed, you may be a resident of\u00A0",
|
|
32445
32953
|
React.createElement(SignpostLink, { href: councilLink, title: themeContext.theme_vars.other_council_name + ' (this link will take you to an external website)' }, themeContext.theme_vars.other_council_name),
|
|
32446
32954
|
".")))) : (React.createElement(SingleButtonContainer, null,
|
|
32447
|
-
React.createElement(Button$
|
|
32955
|
+
React.createElement(Button$5, { url: signpostLinksArray[0].url, title: signpostLinksArray[0].areaName + ' (this link will take you to an external website)' },
|
|
32448
32956
|
React.createElement(LinkIcon, null),
|
|
32449
32957
|
signpostLinksArray[0].cta_text ? signpostLinksArray[0].cta_text : signpostLinksArray[0].areaName)))));
|
|
32450
32958
|
};
|
|
@@ -32530,7 +33038,7 @@ const summaryStyles = (props) => {
|
|
|
32530
33038
|
}
|
|
32531
33039
|
};
|
|
32532
33040
|
|
|
32533
|
-
const Container$
|
|
33041
|
+
const Container$g = styled.div`
|
|
32534
33042
|
padding: ${(props) => (props.$hasPadding ? '30px 20px' : '0')};
|
|
32535
33043
|
font-size: 1.2em;
|
|
32536
33044
|
margin-bottom: 15px;
|
|
@@ -32547,7 +33055,7 @@ const Container$e = styled.div`
|
|
|
32547
33055
|
|
|
32548
33056
|
var Summary = function (_a) {
|
|
32549
33057
|
var children = _a.children, _b = _a.hasBackground, hasBackground = _b === void 0 ? true : _b, _c = _a.hasPadding, hasPadding = _c === void 0 ? true : _c;
|
|
32550
|
-
return (React.createElement(Container$
|
|
33058
|
+
return (React.createElement(Container$g, { "data-testid": "Summary", "$hasBackground": hasBackground, "$hasPadding": hasPadding }, children));
|
|
32551
33059
|
};
|
|
32552
33060
|
|
|
32553
33061
|
/**
|
|
@@ -32563,7 +33071,7 @@ var DirectoryDocuments = function (_a) {
|
|
|
32563
33071
|
};
|
|
32564
33072
|
var from = pageNumber * perPage - (perPage - 1);
|
|
32565
33073
|
from + ((documents === null || documents === void 0 ? void 0 : documents.length) ? documents.length - 1 : 0);
|
|
32566
|
-
return (React.createElement(Container
|
|
33074
|
+
return (React.createElement(Container$11, { "data-testid": "DirectoryDocuments" },
|
|
32567
33075
|
React.createElement(FormWithLine, { onSubmit: submitSearch, hideLine: true },
|
|
32568
33076
|
React.createElement(Row$1, null,
|
|
32569
33077
|
React.createElement(Column, { small: "full", medium: "one-half", large: "one-half" },
|
|
@@ -32729,7 +33237,7 @@ var GoogleMap = function (_a) {
|
|
|
32729
33237
|
React.createElement(MapLink$1, { href: link_url }, link_title ? link_title : 'Google Maps link')))));
|
|
32730
33238
|
};
|
|
32731
33239
|
|
|
32732
|
-
const Container$
|
|
33240
|
+
const Container$f = styled.figure`
|
|
32733
33241
|
display: block;
|
|
32734
33242
|
background: ${(props) =>
|
|
32735
33243
|
props.theme.cardinal_name === 'north'
|
|
@@ -32762,12 +33270,12 @@ const Caption = styled.figcaption`
|
|
|
32762
33270
|
*/
|
|
32763
33271
|
var Image = function (_a) {
|
|
32764
33272
|
var imageSmall = _a.imageSmall, imageLarge = _a.imageLarge, imageAltText = _a.imageAltText, _b = _a.ratio, ratio = _b === void 0 ? '4by3' : _b, caption = _a.caption, wrapText = _a.wrapText;
|
|
32765
|
-
return (React.createElement(Container$
|
|
33273
|
+
return (React.createElement(Container$f, { "data-testid": "Image", "$wrapText": wrapText },
|
|
32766
33274
|
React.createElement(ResponsiveImage, { imageSmall: imageSmall, imageLarge: imageLarge, imageAltText: imageAltText, ratio: ratio, smallWidth: "400", largeWidth: "1200" }),
|
|
32767
33275
|
(caption === null || caption === void 0 ? void 0 : caption.trim()) && React.createElement(Caption, null, caption)));
|
|
32768
33276
|
};
|
|
32769
33277
|
|
|
32770
|
-
const Container$
|
|
33278
|
+
const Container$e = styled.div`
|
|
32771
33279
|
display: block;
|
|
32772
33280
|
`;
|
|
32773
33281
|
|
|
@@ -32788,7 +33296,7 @@ const Content$3 = styled.div`
|
|
|
32788
33296
|
*/
|
|
32789
33297
|
var ImageAndText = function (_a) {
|
|
32790
33298
|
var heading = _a.heading, textContent = _a.textContent, image = _a.image;
|
|
32791
|
-
return (React.createElement(Container$
|
|
33299
|
+
return (React.createElement(Container$e, { "data-testid": "ImageAndText" },
|
|
32792
33300
|
React.createElement(Row$1, null,
|
|
32793
33301
|
heading && (React.createElement(Column, { small: "full", medium: "full", large: "full" },
|
|
32794
33302
|
React.createElement(HeadingContainer, null,
|
|
@@ -32810,7 +33318,7 @@ var CaseAppointmentType;
|
|
|
32810
33318
|
CaseAppointmentType["Writing"] = "writing";
|
|
32811
33319
|
})(CaseAppointmentType || (CaseAppointmentType = {}));
|
|
32812
33320
|
|
|
32813
|
-
const Container$
|
|
33321
|
+
const Container$d = styled.div`
|
|
32814
33322
|
display: block;
|
|
32815
33323
|
box-sizing: border-box;
|
|
32816
33324
|
`;
|
|
@@ -32933,7 +33441,7 @@ var InquestSchedule = function (_a) {
|
|
|
32933
33441
|
};
|
|
32934
33442
|
});
|
|
32935
33443
|
};
|
|
32936
|
-
return (React.createElement(Container$
|
|
33444
|
+
return (React.createElement(Container$d, { "data-testid": "InquestSchedule" },
|
|
32937
33445
|
Object.keys(hearingDayGrouped).length > 0 && (React.createElement(GroupContainer, null,
|
|
32938
33446
|
React.createElement(Heading$1, { level: 2, text: title }),
|
|
32939
33447
|
React.createElement(Accordion$1, { sections: transformToSections(hearingDayGrouped) }))),
|
|
@@ -32968,6 +33476,183 @@ var Promotions = function (_a) {
|
|
|
32968
33476
|
numberOfPromos > 1 && React.createElement(PromoBlock, { promos: promos.slice(1, numberOfPromos) })));
|
|
32969
33477
|
};
|
|
32970
33478
|
|
|
33479
|
+
const Container$c = styled.div`
|
|
33480
|
+
display: block;
|
|
33481
|
+
margin-bottom: ${(props) => props.theme.theme_vars.spacingSizes.medium};
|
|
33482
|
+
`;
|
|
33483
|
+
|
|
33484
|
+
const Button$2 = styled.button`
|
|
33485
|
+
font-weight: 700;
|
|
33486
|
+
border: 0;
|
|
33487
|
+
cursor: pointer;
|
|
33488
|
+
display: inline-block;
|
|
33489
|
+
line-height: 1;
|
|
33490
|
+
font-family: ${(props) => props.theme.theme_vars.fontstack};
|
|
33491
|
+
border-radius: ${(props) => props.theme.theme_vars.border_radius};
|
|
33492
|
+
text-decoration: none !important;
|
|
33493
|
+
width: auto;
|
|
33494
|
+
text-align: center;
|
|
33495
|
+
color: white !important;
|
|
33496
|
+
font-size: 16px;
|
|
33497
|
+
padding: 16px 24px;
|
|
33498
|
+
background-color: ${(props) =>
|
|
33499
|
+
props.$colourOverride ? props.$colourOverride : props.theme.theme_vars.colours.action};
|
|
33500
|
+
|
|
33501
|
+
&:hover {
|
|
33502
|
+
background-color: ${(props) =>
|
|
33503
|
+
props.$colourOverride ? props.$colourOverride : props.theme.theme_vars.colours.action_dark};
|
|
33504
|
+
}
|
|
33505
|
+
&:focus {
|
|
33506
|
+
color: ${(props) => props.theme.theme_vars.colours.black} !important;
|
|
33507
|
+
border-color: ${(props) => props.theme.theme_vars.colours.focus};
|
|
33508
|
+
${(props) => props.theme.linkStylesFocus}
|
|
33509
|
+
}
|
|
33510
|
+
&:active {
|
|
33511
|
+
transform: translateY(2px);
|
|
33512
|
+
color: ${(props) => props.theme.theme_vars.colours.black} !important;
|
|
33513
|
+
border-color: ${(props) => props.theme.theme_vars.colours.focus};
|
|
33514
|
+
${(props) => props.theme.linkStylesActive}
|
|
33515
|
+
}
|
|
33516
|
+
`;
|
|
33517
|
+
|
|
33518
|
+
const Container$b = styled.div`
|
|
33519
|
+
display: block;
|
|
33520
|
+
`;
|
|
33521
|
+
|
|
33522
|
+
const CategoryContainer = styled.div`
|
|
33523
|
+
padding: ${(props) => props.theme.theme_vars.spacingSizes.medium};
|
|
33524
|
+
background-color: ${(props) => props.theme.theme_vars.colours.action_light};
|
|
33525
|
+
border-radius: ${(props) => props.theme.theme_vars.border_radius};
|
|
33526
|
+
margin-bottom: ${(props) => props.theme.theme_vars.spacingSizes.small};
|
|
33527
|
+
`;
|
|
33528
|
+
|
|
33529
|
+
const Legend$2 = styled.legend`
|
|
33530
|
+
font-weight: bold;
|
|
33531
|
+
margin-bottom: ${(props) => props.theme.theme_vars.spacingSizes.small};
|
|
33532
|
+
`;
|
|
33533
|
+
|
|
33534
|
+
const FormErrorText = styled(ErrorText$3)``;
|
|
33535
|
+
|
|
33536
|
+
const Hidden = styled.span`
|
|
33537
|
+
${VisuallyHidden$3}
|
|
33538
|
+
`;
|
|
33539
|
+
|
|
33540
|
+
const Answers = styled.div`
|
|
33541
|
+
margin-bottom: ${(props) => props.theme.theme_vars.spacingSizes.medium};
|
|
33542
|
+
`;
|
|
33543
|
+
|
|
33544
|
+
const Result = styled.div`
|
|
33545
|
+
display: flex;
|
|
33546
|
+
flex-direction: row;
|
|
33547
|
+
flex-wrap: nowrap;
|
|
33548
|
+
align-items: center;
|
|
33549
|
+
margin: ${(props) => props.theme.theme_vars.spacingSizes.small} 0;
|
|
33550
|
+
`;
|
|
33551
|
+
|
|
33552
|
+
const ResultIcon = styled.div`
|
|
33553
|
+
width: ${(props) => props.theme.theme_vars.spacingSizes.x_large};
|
|
33554
|
+
color: ${(props) =>
|
|
33555
|
+
props.$correct ? props.theme.theme_vars.colours.positive : props.theme.theme_vars.colours.negative};
|
|
33556
|
+
margin-right: ${(props) => props.theme.theme_vars.spacingSizes.small};
|
|
33557
|
+
`;
|
|
33558
|
+
|
|
33559
|
+
var QuestionAndAnswer = function (_a) {
|
|
33560
|
+
var questionText = _a.questionText, _b = _a.hintText, hintText = _b === void 0 ? '' : _b, answers = _a.answers, category = _a.category, icon = _a.icon, onSubmit = _a.onSubmit, _c = _a.index, index = _c === void 0 ? null : _c;
|
|
33561
|
+
var _d = useState(''), selectedAnswer = _d[0], setSelectedAnswer = _d[1];
|
|
33562
|
+
var _e = useState(false), hasError = _e[0], setHasError = _e[1];
|
|
33563
|
+
var _f = useState(null), correct = _f[0], setCorrect = _f[1];
|
|
33564
|
+
var _g = useState(null), summary = _g[0], setSummary = _g[1];
|
|
33565
|
+
var handleChange = function (e) {
|
|
33566
|
+
setSelectedAnswer(e.target.value);
|
|
33567
|
+
};
|
|
33568
|
+
var handleSubmit = function (e) {
|
|
33569
|
+
e.preventDefault();
|
|
33570
|
+
setHasError(false);
|
|
33571
|
+
if (selectedAnswer === '') {
|
|
33572
|
+
setHasError(true);
|
|
33573
|
+
return;
|
|
33574
|
+
}
|
|
33575
|
+
var selected = answers[selectedAnswer];
|
|
33576
|
+
setCorrect(selected.correctAnswer);
|
|
33577
|
+
setSummary(selected.answerSummary);
|
|
33578
|
+
if (onSubmit) {
|
|
33579
|
+
onSubmit(selected.correctAnswer, index);
|
|
33580
|
+
}
|
|
33581
|
+
};
|
|
33582
|
+
return (React.createElement(Container$b, { "data-testid": "QuestionAndAnswer" },
|
|
33583
|
+
category && (React.createElement(CategoryContainer, null,
|
|
33584
|
+
icon && category && React.createElement(HeadingWithIcon, { text: category, icon: icon, level: 3 }),
|
|
33585
|
+
category && !icon && React.createElement(Heading$1, { text: category, level: 3 }))),
|
|
33586
|
+
React.createElement(FormWithLine, { hideLine: true, onSubmit: handleSubmit },
|
|
33587
|
+
React.createElement("fieldset", null,
|
|
33588
|
+
React.createElement(Legend$2, null,
|
|
33589
|
+
index !== null && "".concat(index + 1, ". "),
|
|
33590
|
+
questionText),
|
|
33591
|
+
hintText && React.createElement(HintText, { text: hintText }),
|
|
33592
|
+
hasError && (React.createElement(FormErrorText, { id: "IsHelpfulError" },
|
|
33593
|
+
React.createElement(Hidden, null, "Error:"),
|
|
33594
|
+
" Please select an option")),
|
|
33595
|
+
React.createElement(Answers, null, answers.map(function (answer, index) { return (React.createElement(RadioCheckboxInput, { key: index, name: questionText, singleSelection: true, checked: selectedAnswer === index.toString(), value: index.toString(), label: answer.answerText, onChange: function (e) { return handleChange(e); }, isErrored: hasError, isDisabled: correct !== null })); }))),
|
|
33596
|
+
correct === null && React.createElement(FormButton, { text: "Submit", size: "large" })),
|
|
33597
|
+
correct !== null && (React.createElement(Result, null,
|
|
33598
|
+
React.createElement(ResultIcon, { "$correct": correct }, correct ? (React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor" },
|
|
33599
|
+
React.createElement("title", null, "Correct"),
|
|
33600
|
+
React.createElement("path", { fillRule: "evenodd", d: "M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12Zm13.36-1.814a.75.75 0 1 0-1.22-.872l-3.236 4.53L9.53 12.22a.75.75 0 0 0-1.06 1.06l2.25 2.25a.75.75 0 0 0 1.14-.094l3.75-5.25Z", clipRule: "evenodd" }))) : (React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor" },
|
|
33601
|
+
React.createElement("title", null, "Incorrect"),
|
|
33602
|
+
React.createElement("path", { fillRule: "evenodd", d: "M12 2.25c-5.385 0-9.75 4.365-9.75 9.75s4.365 9.75 9.75 9.75 9.75-4.365 9.75-9.75S17.385 2.25 12 2.25Zm-1.72 6.97a.75.75 0 1 0-1.06 1.06L10.94 12l-1.72 1.72a.75.75 0 1 0 1.06 1.06L12 13.06l1.72 1.72a.75.75 0 1 0 1.06-1.06L13.06 12l1.72-1.72a.75.75 0 1 0-1.06-1.06L12 10.94l-1.72-1.72Z", clipRule: "evenodd" })))),
|
|
33603
|
+
React.createElement("p", null, summary)))));
|
|
33604
|
+
};
|
|
33605
|
+
|
|
33606
|
+
var Quiz = function (_a) {
|
|
33607
|
+
var title = _a.title, questions = _a.questions;
|
|
33608
|
+
var _b = useState(0), activeQuestion = _b[0], setActiveQuestion = _b[1];
|
|
33609
|
+
var _c = useState([]), results = _c[0], setResults = _c[1];
|
|
33610
|
+
var _d = useState(false), showNextQuestion = _d[0], setShowNextQuestion = _d[1];
|
|
33611
|
+
var _e = useState(false), showResults = _e[0], setShowResults = _e[1];
|
|
33612
|
+
var _f = useState(false), finished = _f[0], setFinished = _f[1];
|
|
33613
|
+
var nextQuestion = function () {
|
|
33614
|
+
if (activeQuestion < questions.length - 1) {
|
|
33615
|
+
var next = activeQuestion + 1;
|
|
33616
|
+
setActiveQuestion(next);
|
|
33617
|
+
setShowNextQuestion(false);
|
|
33618
|
+
}
|
|
33619
|
+
};
|
|
33620
|
+
var handleSubmission = function (answer, index) {
|
|
33621
|
+
var updatedResults = results;
|
|
33622
|
+
results.splice(index, 1, answer);
|
|
33623
|
+
setResults(updatedResults);
|
|
33624
|
+
if (activeQuestion < questions.length - 1) {
|
|
33625
|
+
setShowNextQuestion(true);
|
|
33626
|
+
}
|
|
33627
|
+
else {
|
|
33628
|
+
setShowResults(true);
|
|
33629
|
+
}
|
|
33630
|
+
};
|
|
33631
|
+
var resetQuiz = function () {
|
|
33632
|
+
setResults([]);
|
|
33633
|
+
setShowNextQuestion(false);
|
|
33634
|
+
setActiveQuestion(0);
|
|
33635
|
+
setShowResults(false);
|
|
33636
|
+
setFinished(false);
|
|
33637
|
+
};
|
|
33638
|
+
return (React.createElement(Container$c, { "data-testid": "Quiz" },
|
|
33639
|
+
React.createElement(Heading$1, { text: title, level: 2 }),
|
|
33640
|
+
finished ? (React.createElement("div", null,
|
|
33641
|
+
React.createElement("p", null,
|
|
33642
|
+
"You got ",
|
|
33643
|
+
results.filter(function (result) { return result === true; }).length,
|
|
33644
|
+
" out of ",
|
|
33645
|
+
results.length,
|
|
33646
|
+
"."),
|
|
33647
|
+
React.createElement(Button$2, { type: "button", onClick: resetQuiz }, "Try again"))) : (React.createElement(Row$1, null,
|
|
33648
|
+
questions.map(function (question, index) { return (React.createElement(React.Fragment, { key: index }, activeQuestion === index && (React.createElement(Column, { small: "full", medium: "full", large: "full" },
|
|
33649
|
+
React.createElement(QuestionAndAnswer, __assign({}, question, { onSubmit: handleSubmission, index: index })))))); }),
|
|
33650
|
+
showNextQuestion && (React.createElement(Column, { small: "full", medium: "full", large: "full" },
|
|
33651
|
+
React.createElement(Button$2, { type: "button", onClick: nextQuestion }, "Next"))),
|
|
33652
|
+
showResults && (React.createElement(Column, { small: "full", medium: "full", large: "full" },
|
|
33653
|
+
React.createElement(Button$2, { type: "button", onClick: function () { return setFinished(true); } }, "Show results")))))));
|
|
33654
|
+
};
|
|
33655
|
+
|
|
32971
33656
|
const Container$a = styled.div`
|
|
32972
33657
|
display: block;
|
|
32973
33658
|
margin-bottom: ${(props) => props.theme.theme_vars.spacingSizes.medium};
|
|
@@ -33192,7 +33877,7 @@ var SearchBox = function (_a) {
|
|
|
33192
33877
|
React.createElement(CustomSearch, __assign({}, customSearch))),
|
|
33193
33878
|
searchBoxLink && (React.createElement(Column, { small: "full", medium: "full", large: "one-third" },
|
|
33194
33879
|
React.createElement(LinkContainer, null,
|
|
33195
|
-
React.createElement(Button$
|
|
33880
|
+
React.createElement(Button$5, { text: searchBoxLink.title, url: searchBoxLink.url, primary: searchBoxLinkIsPrimary, size: "large" })))))));
|
|
33196
33881
|
return (React.createElement(Container$8, { "data-testid": "SearchBox", "$hasImage": imageSmall && imageLarge },
|
|
33197
33882
|
imageSmall && imageLarge && (React.createElement(ResponsiveImage, { imageSmall: imageSmall, imageLarge: imageLarge, imageAltText: imageAltText, smallWidth: "400", largeWidth: "1200", ratio: "auto", objectFit: "cover" })),
|
|
33198
33883
|
searchInner));
|
|
@@ -33644,7 +34329,7 @@ var west_vars = {
|
|
|
33644
34329
|
placeholder: '#585656',
|
|
33645
34330
|
secondary: '#6CC7E1',
|
|
33646
34331
|
},
|
|
33647
|
-
fontstack: '
|
|
34332
|
+
fontstack: 'Asap, Helvetica, Arial, sans-serif',
|
|
33648
34333
|
fontSizes: {
|
|
33649
34334
|
extra_small: '.9em',
|
|
33650
34335
|
small: '1em',
|
|
@@ -33665,10 +34350,10 @@ var west_vars = {
|
|
|
33665
34350
|
xx_large: '90px',
|
|
33666
34351
|
xxx_large: '135px',
|
|
33667
34352
|
},
|
|
33668
|
-
h1: "\n font-size: 32px;\n font-size: 2rem;\n font-weight:
|
|
33669
|
-
h2: "\n font-size: 24px;\n font-size: 1.5rem;\n font-weight:
|
|
33670
|
-
h3: "\n font-size: 24px;\n font-size: 1.3rem;\n font-weight:
|
|
33671
|
-
h4: "\n font-size: 19px;\n font-size: 1.1875rem;\n font-weight:
|
|
34353
|
+
h1: "\n font-size: 32px;\n font-size: 2rem;\n font-weight: 600;\n margin-left: 0;\n margin-bottom: 20px;\n\n @media (min-width: 40.0625em) {\n font-size: 44px;\n font-size: 2.6rem;\n max-width: 960px;\n margin-bottom: 30px;\n }\n ",
|
|
34354
|
+
h2: "\n font-size: 24px;\n font-size: 1.5rem;\n font-weight: 600;\n margin-top: 25px;\n margin-bottom: 15px;\n \n @media (min-width: 40.0625em) {\n font-size: 36px;\n font-size: 1.75rem;\n max-width: 960px;\n }\n ",
|
|
34355
|
+
h3: "\n font-size: 24px;\n font-size: 1.3rem;\n font-weight: 500;\n margin-top: 25px;\n margin-bottom: 15px;\n \n @media (min-width: 40.0625em) {\n font-size: 24px;\n font-size: 1.5rem;\n max-width: 960px;\n }\n ",
|
|
34356
|
+
h4: "\n font-size: 19px;\n font-size: 1.1875rem;\n font-weight: 500;\n margin-top: 25px;\n margin-bottom: 15px;\n \n @media (min-width: 40.0625em) {\n font-size: 19px;\n font-size: 1.1875rem;\n }\n ",
|
|
33672
34357
|
};
|
|
33673
34358
|
|
|
33674
34359
|
var breakpointsVals$1 = {
|
|
@@ -33796,7 +34481,7 @@ var lb_vars_west = {
|
|
|
33796
34481
|
placeholder: '#585656',
|
|
33797
34482
|
secondary: '#6CC7E1',
|
|
33798
34483
|
},
|
|
33799
|
-
fontstack: '
|
|
34484
|
+
fontstack: 'Asap, Helvetica, Arial, sans-serif',
|
|
33800
34485
|
fontSizes: {
|
|
33801
34486
|
extra_small: '.9em',
|
|
33802
34487
|
small: '1em',
|
|
@@ -33817,10 +34502,10 @@ var lb_vars_west = {
|
|
|
33817
34502
|
xx_large: '90px',
|
|
33818
34503
|
xxx_large: '135px',
|
|
33819
34504
|
},
|
|
33820
|
-
h1: "\n font-size: 32px;\n font-size: 2rem;\n font-weight:
|
|
33821
|
-
h2: "\n font-size: 24px;\n font-size: 1.5rem;\n font-weight:
|
|
33822
|
-
h3: "\n font-size: 18px;\n font-size: 1.125rem;\n font-weight:
|
|
33823
|
-
h4: "\n font-size: 16px;\n font-size: 1rem;\n font-weight:
|
|
34505
|
+
h1: "\n font-size: 32px;\n font-size: 2rem;\n font-weight: 600;\n\n @media (min-width: 40.0625em) {\n font-size: 48px;\n font-size: 3rem;\n }\n ",
|
|
34506
|
+
h2: "\n font-size: 24px;\n font-size: 1.5rem;\n font-weight: 600;\n \n @media (min-width: 40.0625em) {\n font-size: 36px;\n font-size: 2.25rem;\n }\n ",
|
|
34507
|
+
h3: "\n font-size: 18px;\n font-size: 1.125rem;\n font-weight: 500;\n \n @media (min-width: 40.0625em) {\n font-size: 24px;\n font-size: 1.5rem;\n }\n ",
|
|
34508
|
+
h4: "\n font-size: 16px;\n font-size: 1rem;\n font-weight: 400;\n \n @media (min-width: 40.0625em) {\n font-size: 19px;\n font-size: 1.1875rem;\n }\n ",
|
|
33824
34509
|
};
|
|
33825
34510
|
|
|
33826
34511
|
var generate_theme = function (theme_vars) {
|
|
@@ -34015,7 +34700,8 @@ const Content$1 = styled.div`
|
|
|
34015
34700
|
const Contact = styled.div``;
|
|
34016
34701
|
|
|
34017
34702
|
const ContactName = styled.div`
|
|
34018
|
-
font-weight:
|
|
34703
|
+
font-weight: 600;
|
|
34704
|
+
font-size: 1.1em;
|
|
34019
34705
|
margin-bottom: ${(props) => props.theme.theme_vars.spacingSizes.small};
|
|
34020
34706
|
text-align: center;
|
|
34021
34707
|
`;
|
|
@@ -34025,12 +34711,16 @@ const ContactLink = styled.a`
|
|
|
34025
34711
|
padding: ${(props) => props.theme.theme_vars.spacingSizes.small} 0;
|
|
34026
34712
|
margin-bottom: ${(props) => props.theme.theme_vars.spacingSizes.small};
|
|
34027
34713
|
text-align: center;
|
|
34714
|
+
font-size: 1.3rem;
|
|
34715
|
+
font-weight: 600 !important;
|
|
34028
34716
|
`;
|
|
34029
34717
|
|
|
34030
34718
|
const WebLink$1 = styled.a`
|
|
34031
34719
|
word-break: break-all;
|
|
34032
34720
|
display: block;
|
|
34033
34721
|
text-align: center;
|
|
34722
|
+
font-size: 1.2rem;
|
|
34723
|
+
font-weight: 500;
|
|
34034
34724
|
padding: ${(props) => props.theme.theme_vars.spacingSizes.small} 0;
|
|
34035
34725
|
`;
|
|
34036
34726
|
|
|
@@ -34038,6 +34728,8 @@ const EmailLink = styled.a`
|
|
|
34038
34728
|
word-break: break-all;
|
|
34039
34729
|
display: block;
|
|
34040
34730
|
text-align: center;
|
|
34731
|
+
font-size: 1.2rem;
|
|
34732
|
+
font-weight: 500;
|
|
34041
34733
|
padding: ${(props) => props.theme.theme_vars.spacingSizes.small} 0;
|
|
34042
34734
|
`;
|
|
34043
34735
|
|
|
@@ -34130,11 +34822,14 @@ const AddToShortlist = styled.button`
|
|
|
34130
34822
|
props.$favourite ? props.theme.theme_vars.colours.negative : props.theme.theme_vars.colours.action};
|
|
34131
34823
|
cursor: pointer;
|
|
34132
34824
|
padding: ${(props) => `14px ${props.theme.theme_vars.spacingSizes.small}`};
|
|
34133
|
-
font-weight:
|
|
34825
|
+
font-weight: 500;
|
|
34826
|
+
font-family: ${(props) => `${props.theme.theme_vars.fontstack}`};
|
|
34827
|
+
font-size: 15px;
|
|
34134
34828
|
display: flex;
|
|
34135
34829
|
flex-direction: row;
|
|
34136
34830
|
justify-content: flex-start;
|
|
34137
34831
|
align-items: center;
|
|
34832
|
+
|
|
34138
34833
|
&:hover {
|
|
34139
34834
|
${(props) => props.theme.linkStylesHover}
|
|
34140
34835
|
background: ${(props) => props.theme.theme_vars.colours.action_light}
|
|
@@ -34324,7 +35019,7 @@ var DirectoryService = function (_a) {
|
|
|
34324
35019
|
.filter(function (item) { return item !== '' && item !== address.id; })
|
|
34325
35020
|
.join(' <br />'),
|
|
34326
35021
|
} }),
|
|
34327
|
-
location.latitude && location.longitude && (React.createElement(Button$
|
|
35022
|
+
location.latitude && location.longitude && (React.createElement(Button$5, { url: "https://google.com/maps/dir//".concat(location.latitude, ",").concat(location.longitude), text: "Get directions" })))); }),
|
|
34328
35023
|
(location === null || location === void 0 ? void 0 : location.accessibility_for_disabilities.length) > 0 && (React.createElement(React.Fragment, null,
|
|
34329
35024
|
React.createElement(Heading$1, { level: 3, text: "Other facilities on site" }),
|
|
34330
35025
|
React.createElement("ul", null, location.accessibility_for_disabilities.map(function (accessibility) { return (React.createElement("li", { key: accessibility.id }, accessibility.accessibility)); })))))); })),
|
|
@@ -34477,6 +35172,9 @@ const Button$1 = styled.button`
|
|
|
34477
35172
|
|
|
34478
35173
|
const ButtonText$1 = styled.span`
|
|
34479
35174
|
margin-right: ${(props) => props.theme.theme_vars.spacingSizes.small};
|
|
35175
|
+
font-family: ${(props) => props.theme.theme_vars.fontstack};
|
|
35176
|
+
font-size: 16px;
|
|
35177
|
+
font-weight: 500;
|
|
34480
35178
|
`;
|
|
34481
35179
|
|
|
34482
35180
|
const ResultInfo$1 = styled.div`
|
|
@@ -34929,7 +35627,7 @@ var DirectoryServiceList = function (_a) {
|
|
|
34929
35627
|
filtersActive && (React.createElement(Button$1, { onClick: clearSearch, type: "button", "$isWarning": true },
|
|
34930
35628
|
React.createElement(ButtonText$1, null, "Clear search"))))),
|
|
34931
35629
|
hasDocuments && (React.createElement(Column, { small: "full", medium: "full", large: "full" },
|
|
34932
|
-
React.createElement(Button$
|
|
35630
|
+
React.createElement(Button$5, { url: "".concat(directoryPath, "/documents?search=").concat(searchTerm), text: "View documents and resources", primary: false, size: "large" }))))))),
|
|
34933
35631
|
React.createElement(Column, { small: "full", medium: "one-third", large: "one-third" },
|
|
34934
35632
|
React.createElement(FilterToggle, { type: "button", onClick: function (e) { return setShowFilters(!showFilters); } }, showFilters ? "Hide Filters" : "Show Filters"),
|
|
34935
35633
|
React.createElement(FilterContainer, { "$showFilters": showFilters },
|
|
@@ -35134,7 +35832,8 @@ const ActionButton = styled.button`
|
|
|
35134
35832
|
color: ${(props) => props.theme.theme_vars.colours.white};
|
|
35135
35833
|
cursor: pointer;
|
|
35136
35834
|
padding: ${(props) => props.theme.theme_vars.spacingSizes.small};
|
|
35137
|
-
font-weight:
|
|
35835
|
+
font-weight: 500;
|
|
35836
|
+
font-family: ${(props) => props.theme.theme_vars.fontstack};
|
|
35138
35837
|
display: flex;
|
|
35139
35838
|
flex-direction: row;
|
|
35140
35839
|
justify-content: flex-start;
|
|
@@ -35175,7 +35874,8 @@ const ClearShortlistButton = styled.button`
|
|
|
35175
35874
|
cursor: pointer;
|
|
35176
35875
|
border-radius: ${(props) => props.theme.theme_vars.border_radius};
|
|
35177
35876
|
min-height: 42px;
|
|
35178
|
-
font-weight:
|
|
35877
|
+
font-weight: 500;
|
|
35878
|
+
font-family: ${(props) => props.theme.theme_vars.fontstack};
|
|
35179
35879
|
|
|
35180
35880
|
&:hover {
|
|
35181
35881
|
background: ${(props) => props.theme.theme_vars.colours.action_light};
|
|
@@ -36788,6 +37488,8 @@ const Button = styled.button`
|
|
|
36788
37488
|
|
|
36789
37489
|
const ButtonText = styled.span`
|
|
36790
37490
|
margin-right: ${(props) => props.theme.theme_vars.spacingSizes.small};
|
|
37491
|
+
font-family: ${(props) => props.theme.theme_vars.fontstack};
|
|
37492
|
+
font-size: 17px;
|
|
36791
37493
|
`;
|
|
36792
37494
|
|
|
36793
37495
|
const ResultInfo = styled.div`
|
|
@@ -36914,7 +37616,7 @@ var DirectoryDocumentList = function (_a) {
|
|
|
36914
37616
|
React.createElement(ButtonText, null, "Search"),
|
|
36915
37617
|
React.createElement(IconDownload, { colourFill: "#fff" })))),
|
|
36916
37618
|
React.createElement(Column, { small: "full", medium: "full", large: "full" },
|
|
36917
|
-
React.createElement(Button$
|
|
37619
|
+
React.createElement(Button$5, { url: "".concat(directoryPath, "?search=").concat(searchTerm), text: "View directory", primary: false })))))),
|
|
36918
37620
|
React.createElement(Column, { small: "full", medium: "one-third", large: "one-third" },
|
|
36919
37621
|
React.createElement(Row$1, null,
|
|
36920
37622
|
React.createElement(Column, { small: "full", medium: "full", large: "full" },
|
|
@@ -36947,5 +37649,5 @@ var DirectoryDocumentList = function (_a) {
|
|
|
36947
37649
|
React.createElement(Column, { small: "full", medium: "full", large: "full" }, !isLoading && (React.createElement(Pagination, { currentPage: pageNumber, totalResults: totalResults, resultsPerPage: perPage, postTo: directoryPath, buttonClickOverride: setPageNumber }))))))));
|
|
36948
37650
|
};
|
|
36949
37651
|
|
|
36950
|
-
export { AccessibleLinks, Accordion$1 as Accordion, AlertBanner, AlertBannerService, Autocomplete, BackLink, BackToTop, BinFinder, BlockQuote, Breadcrumbs, Button$
|
|
37652
|
+
export { AccessibleLinks, Accordion$1 as Accordion, AlertBanner, AlertBannerService, Autocomplete, BackLink, BackToTop, BinFinder, BlockQuote, Breadcrumbs, BudgetGame, Button$5 as Button, CallToAction, Cards, CheckboxListFilter, CludoSearch, ConsultationList, ConsultationStatus, Contents$1 as Contents, ContentsNavigation, CookieBanner, CouncilTaxAlphabeticalDirectory, DirectoryDocumentList, DirectoryDocuments, DirectoryService, DirectoryServiceList, DirectoryShortList, DirectoryShortListProvider, DisplayDate, Divider, DownloadableFiles, DropDownFilter, DynamicIcon, EventDetails, EventList, Footer, FullWidthContainer, GDS_theme, GlobalStyleReset, GoogleMap, Header, Heading$1 as Heading, HeadingWithIcon, HeroImage, HomeHero, Image, ImageAndText, InquestSchedule, Map$1 as Map, MapMarker, MaxWidthContainer, MemorialHero, NewsArticleDate, NewsArticleFeaturedBlock, NewsArticleFilterAccordion, NewsArticleImage, NewsArticleList, NewsArticleListHeader, NewsArticleOldBanner, PageMain, PageSidebar, PageTitle, PageWithSidebarContainer, PageWrapper, Pagination, PhaseBanner, PromoBanner, PromoBlock, PromoTabs, PromoTabsDisplay, PromotedLinks, PromotedServicesTabs, Promotions, QuickExit, Quiz, RateThisPage, RecyclingInformation, RelatedEvents, ResponsiveImage, RoadworksList, SearchBox, SearchResultsList, Searchbar, SectionLinks, SectionLinksMobileContents, SectionLinksSidebar, ServiceLinksBoxed, ServicesLinksList, SignpostLinks, SkipToMainContent, StaticMap, Summary, SummaryList, TextInput, ToggleButtons, Video, WarningText, WarningTextDisclaimer, WebChat, lb_theme_north, lb_theme_west, north_theme, useDirectoryShortListContext, west_theme };
|
|
36951
37653
|
//# sourceMappingURL=index.mjs.js.map
|