northants-design-system 3.1.3 → 3.2.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 +2 -1
- package/build/index.js +109 -46
- package/build/index.js.map +1 -1
- package/build/index.mjs.js +109 -47
- package/build/index.mjs.js.map +1 -1
- package/build/library/pages/ContentPage/ContentPage.storydata.d.ts +2 -0
- package/package.json +1 -1
package/build/index.d.ts
CHANGED
|
@@ -22,6 +22,7 @@ import QuickExit from './library/components/QuickExit/QuickExit';
|
|
|
22
22
|
export { Autocomplete, BackToTop, Button, ConsultationStatus, DynamicIcon, EventDetails, Heading, HeadingWithIcon, Map, MapMarker, Pagination, CheckboxListFilter, DropDownFilter, PromotedLinks, RelatedEvents, ResponsiveImage, QuickExit, StaticMap, SummaryList, TextInput, ToggleButtons, };
|
|
23
23
|
import Accordion from './library/slices/Accordion/Accordion';
|
|
24
24
|
import BinFinder from './library/slices/BinFinder/BinFinder';
|
|
25
|
+
import BlockLinks from './library/slices/BlockLinks/BlockLinks';
|
|
25
26
|
import BlockQuote from './library/slices/BlockQuote/BlockQuote';
|
|
26
27
|
import BudgetGame from './library/slices/BudgetGame/BudgetGame';
|
|
27
28
|
import CallToAction from './library/slices/CallToAction/CallToAction';
|
|
@@ -43,7 +44,7 @@ import Video from './library/slices/Video/Video';
|
|
|
43
44
|
import WarningText from './library/slices/WarningText/WarningText';
|
|
44
45
|
import WarningTextDisclaimer from './library/slices/WarningTextDisclaimer/WarningTextDisclaimer';
|
|
45
46
|
import WebChat from './library/slices/WebChat/WebChat';
|
|
46
|
-
export { Accordion, BinFinder, BlockQuote, BudgetGame, CallToAction, Cards, CouncilTaxAlphabeticalDirectory, DirectoryDocuments, Divider, DownloadableFiles, GoogleMap, Image, ImageAndText, InquestSchedule, Promotions, Quiz, RecyclingInformation, RoadworksList, SearchBox, Video, WarningText, WarningTextDisclaimer, WebChat, };
|
|
47
|
+
export { Accordion, BinFinder, BlockLinks, BlockQuote, BudgetGame, CallToAction, Cards, CouncilTaxAlphabeticalDirectory, DirectoryDocuments, Divider, DownloadableFiles, GoogleMap, Image, ImageAndText, InquestSchedule, Promotions, Quiz, RecyclingInformation, RoadworksList, SearchBox, Video, WarningText, WarningTextDisclaimer, WebChat, };
|
|
47
48
|
export * from './library/structure/PageStructures';
|
|
48
49
|
export { GDS_theme, north_theme, west_theme, lb_theme_north, lb_theme_west } from './themes/theme_generator';
|
|
49
50
|
export { GlobalStyleReset } from './themes/GlobalStyleReset';
|
package/build/index.js
CHANGED
|
@@ -3641,7 +3641,7 @@ var Autocomplete = function (_a) {
|
|
|
3641
3641
|
})));
|
|
3642
3642
|
};
|
|
3643
3643
|
|
|
3644
|
-
const Container$
|
|
3644
|
+
const Container$1v = styled__default.default.div`
|
|
3645
3645
|
display: block;
|
|
3646
3646
|
`;
|
|
3647
3647
|
|
|
@@ -3727,7 +3727,7 @@ var BackToTop = function (_a) {
|
|
|
3727
3727
|
React.useEffect(function () {
|
|
3728
3728
|
window.addEventListener('scroll', toggleVisible);
|
|
3729
3729
|
});
|
|
3730
|
-
return (React__namespace.default.createElement(Container$
|
|
3730
|
+
return (React__namespace.default.createElement(Container$1v, { "data-testid": "BackToTop" }, isActive && (React__namespace.default.createElement(BackToTopButton, { onClick: scrollToTop, "$visible": visible, "data-testid": "BackToTopButton", type: "button", "aria-label": "Go to the top of the page" },
|
|
3731
3731
|
React__namespace.default.createElement(ChevronIcon, { colourFill: theme.theme_vars.colours.white, direction: "up" })))));
|
|
3732
3732
|
};
|
|
3733
3733
|
|
|
@@ -3820,7 +3820,7 @@ var Button$5 = function (_a) {
|
|
|
3820
3820
|
return (React__namespace.default.createElement(StyledButton$1, __assign({ className: ["button--".concat(size), mode].join(' ') }, href, { title: title ? title : text, "$colourOverride": colourOverride && colourOverride }, props), text ? text : children));
|
|
3821
3821
|
};
|
|
3822
3822
|
|
|
3823
|
-
const Container$
|
|
3823
|
+
const Container$1u = styled__default.default.div`
|
|
3824
3824
|
display: block;
|
|
3825
3825
|
background-color: ${(props) =>
|
|
3826
3826
|
props.$isOpen ? props.theme.theme_vars.colours.positive : props.theme.theme_vars.colours.negative}16;
|
|
@@ -20243,7 +20243,7 @@ var ConsultationStatus = function (_a) {
|
|
|
20243
20243
|
detail: new Date(closeDate).toLocaleDateString('en-GB'),
|
|
20244
20244
|
},
|
|
20245
20245
|
];
|
|
20246
|
-
return (React__namespace.default.createElement(Container$
|
|
20246
|
+
return (React__namespace.default.createElement(Container$1u, { "data-testid": "ConsultationStatus", "$isOpen": isOpen },
|
|
20247
20247
|
React__namespace.default.createElement(SummaryList, { terms: terms, hasBorders: false, hasMargin: false, hasWrapOnMobile: false })));
|
|
20248
20248
|
};
|
|
20249
20249
|
|
|
@@ -22456,7 +22456,7 @@ var DynamicIcon = function (_a) {
|
|
|
22456
22456
|
React__namespace.default.createElement(DynamicComponent, { name: icon, isHover: true }))))));
|
|
22457
22457
|
};
|
|
22458
22458
|
|
|
22459
|
-
const Container$
|
|
22459
|
+
const Container$1t = styled__default.default.div`
|
|
22460
22460
|
display: block;
|
|
22461
22461
|
padding: ${(props) => props.theme.theme_vars.spacingSizes.small};
|
|
22462
22462
|
border-bottom: ${(props) => (props.$hasBorder ? `1px solid ${props.theme.theme_vars.colours.grey}` : 'none')};
|
|
@@ -22628,14 +22628,14 @@ var formatDateRange = function (startDate, endDate) {
|
|
|
22628
22628
|
|
|
22629
22629
|
var EventDetails = function (_a) {
|
|
22630
22630
|
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;
|
|
22631
|
-
return (React__namespace.default.createElement(Container$
|
|
22631
|
+
return (React__namespace.default.createElement(Container$1t, { "data-testid": "EventDetails", "$hasBorder": hasBorder, "$hasMargin": hasMargin },
|
|
22632
22632
|
React__namespace.default.createElement(EventRow, null,
|
|
22633
22633
|
React__namespace.default.createElement(HeadingWithIcon, { icon: "events", level: 4, text: formatDateRange(startTime, endTime), hasHover: false })),
|
|
22634
22634
|
React__namespace.default.createElement(EventRow, null,
|
|
22635
22635
|
React__namespace.default.createElement(HeadingWithIcon, { icon: "address", level: 4, text: location, hasHover: false }))));
|
|
22636
22636
|
};
|
|
22637
22637
|
|
|
22638
|
-
const Container$
|
|
22638
|
+
const Container$1s = styled__default.default.div`
|
|
22639
22639
|
display: flex;
|
|
22640
22640
|
width: 100%;
|
|
22641
22641
|
min-height: 400px;
|
|
@@ -22659,7 +22659,7 @@ var Map$1 = function (_a) {
|
|
|
22659
22659
|
setMap(new window.google.maps.Map(ref.current, { center: center, zoom: zoom }));
|
|
22660
22660
|
}
|
|
22661
22661
|
}, [ref, map]);
|
|
22662
|
-
return (React__namespace.default.createElement(Container$
|
|
22662
|
+
return (React__namespace.default.createElement(Container$1s, { "data-testid": "Map" },
|
|
22663
22663
|
React__namespace.default.createElement("div", { ref: ref }),
|
|
22664
22664
|
React__namespace.default.Children.map(children, function (child) {
|
|
22665
22665
|
if (React__namespace.default.isValidElement(child)) {
|
|
@@ -22716,7 +22716,7 @@ var MapMarker = function (options) {
|
|
|
22716
22716
|
return null;
|
|
22717
22717
|
};
|
|
22718
22718
|
|
|
22719
|
-
const Container$
|
|
22719
|
+
const Container$1r = styled__default.default.div`
|
|
22720
22720
|
${(props) => props.theme.fontStyles};
|
|
22721
22721
|
display: block;
|
|
22722
22722
|
border-top: 1px solid ${(props) => props.theme.theme_vars.colours.grey};
|
|
@@ -23502,7 +23502,7 @@ var Pagination = function (_a) {
|
|
|
23502
23502
|
}
|
|
23503
23503
|
};
|
|
23504
23504
|
if (numbers.length > 1) {
|
|
23505
|
-
return (React__namespace.default.createElement(Container$
|
|
23505
|
+
return (React__namespace.default.createElement(Container$1r, { "data-testid": "Pagination", role: "navigation", "aria-label": "Pagination" },
|
|
23506
23506
|
currentPage > 1 && (React__namespace.default.createElement(Previous, { onClick: function () { return buttonClick(currentPage - 1); }, title: "Go back a page" }, "Previous")),
|
|
23507
23507
|
React__namespace.default.createElement(NumbersContainer, null, numbers.map(function (v, i) { return (React__namespace.default.createElement(NumberContainer, { key: i },
|
|
23508
23508
|
v === '...' && React__namespace.default.createElement(Ellipsis, null, "..."),
|
|
@@ -23514,7 +23514,7 @@ var Pagination = function (_a) {
|
|
|
23514
23514
|
return null;
|
|
23515
23515
|
};
|
|
23516
23516
|
|
|
23517
|
-
const Container$
|
|
23517
|
+
const Container$1q = styled__default.default.div`
|
|
23518
23518
|
${(props) => props.theme.fontStyles};
|
|
23519
23519
|
margin-bottom: 30px;
|
|
23520
23520
|
`;
|
|
@@ -23698,7 +23698,7 @@ var CheckboxListFilter = function (_a) {
|
|
|
23698
23698
|
}
|
|
23699
23699
|
};
|
|
23700
23700
|
var backupLabel = React.useId();
|
|
23701
|
-
return (React__namespace.default.createElement(Container$
|
|
23701
|
+
return (React__namespace.default.createElement(Container$1q, { "data-testid": "CheckboxListFilter" },
|
|
23702
23702
|
React__namespace.default.createElement(Fieldset$2, { "aria-describedby": hintId },
|
|
23703
23703
|
React__namespace.default.createElement(Legend$4, { "$labelHidden": labelHidden, "data-testid": "CheckboxListFilterLegend" }, label),
|
|
23704
23704
|
React__namespace.default.createElement(Hint$1, { id: hintId, "$hintHidden": hintHidden, "data-testid": "CheckboxListFilterHint" }, hint),
|
|
@@ -23707,11 +23707,11 @@ var CheckboxListFilter = function (_a) {
|
|
|
23707
23707
|
React__namespace.default.createElement(CheckboxLabel, { "$isChecked": option.checked, htmlFor: option.value }, option.title))); })))));
|
|
23708
23708
|
};
|
|
23709
23709
|
|
|
23710
|
-
const Container$
|
|
23710
|
+
const Container$1p = styled__default.default.div`
|
|
23711
23711
|
margin-bottom: ${(props) => (props.$hasMargin ? props.theme.theme_vars.spacingSizes.small : 0)};
|
|
23712
23712
|
`;
|
|
23713
23713
|
|
|
23714
|
-
const Container$
|
|
23714
|
+
const Container$1o = styled__default.default.div`
|
|
23715
23715
|
${(props) => props.theme.fontStyles};
|
|
23716
23716
|
width: ${(props) => (props.$isFullWidth ? '100%' : 'auto')};
|
|
23717
23717
|
`;
|
|
@@ -23778,7 +23778,7 @@ const ErrorText$2 = styled__default.default.p`
|
|
|
23778
23778
|
|
|
23779
23779
|
var DropDownSelect = function (_a) {
|
|
23780
23780
|
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;
|
|
23781
|
-
return (React__namespace.default.createElement(Container$
|
|
23781
|
+
return (React__namespace.default.createElement(Container$1o, { "$isFullWidth": isFullWidth },
|
|
23782
23782
|
React__namespace.default.createElement(Label$a, { htmlFor: id, "$hideLabel": hideLabel, "$hasBoldLabel": hasBoldLabel }, label),
|
|
23783
23783
|
errorText && React__namespace.default.createElement(ErrorText$2, { id: "".concat(id, "Error") }, errorText),
|
|
23784
23784
|
typeof value !== 'undefined' ? (React__namespace.default.createElement(Select, { id: id, name: id, onChange: onChange && onChange, value: value, "$isErrored": isErrored, "$hasBottomMargin": hasBottomMargin, "$isFullWidth": isFullWidth }, options.map(function (option, i) { return (React__namespace.default.createElement(Option, { key: i, value: option.value }, option.title)); }))) : (React__namespace.default.createElement(Select, { id: id, name: id, onChange: onChange && onChange, defaultValue: selected && selected, "$isErrored": isErrored, "$isFullWidth": isFullWidth }, options.map(function (option, i) { return (React__namespace.default.createElement(Option, { key: i, value: option.value }, option.title)); })))));
|
|
@@ -23791,7 +23791,7 @@ var DropDownFilter = function (_a) {
|
|
|
23791
23791
|
setValue(e.target.value);
|
|
23792
23792
|
handleParams('news', [{ key: NewsArticleFilterFields[filterKey].queryParamKey, value: e.target.value }], ['page']);
|
|
23793
23793
|
};
|
|
23794
|
-
return (React__namespace.default.createElement(Container$
|
|
23794
|
+
return (React__namespace.default.createElement(Container$1p, { "$hasMargin": hasMargin },
|
|
23795
23795
|
React__namespace.default.createElement(DropDownSelect, { id: id, label: label, options: options, onChange: optionPicked, selected: value, hideLabel: hideLabel })));
|
|
23796
23796
|
};
|
|
23797
23797
|
|
|
@@ -23936,7 +23936,7 @@ const ListItem$3 = styled__default.default.li`
|
|
|
23936
23936
|
}
|
|
23937
23937
|
`;
|
|
23938
23938
|
|
|
23939
|
-
const Container$
|
|
23939
|
+
const Container$1n = styled__default.default.div`
|
|
23940
23940
|
box-sizing: border-box;
|
|
23941
23941
|
display: flex;
|
|
23942
23942
|
flex-wrap: wrap;
|
|
@@ -23962,7 +23962,7 @@ const Container$1m = styled__default.default.div`
|
|
|
23962
23962
|
|
|
23963
23963
|
var Row$1 = function (_a) {
|
|
23964
23964
|
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;
|
|
23965
|
-
return (React__namespace.default.createElement(Container$
|
|
23965
|
+
return (React__namespace.default.createElement(Container$1n, { "data-testid": "Row", "$hasBorder": hasBorder, "$hasWrap": hasWrap, as: isList ? 'ul' : 'div', className: classes }, children));
|
|
23966
23966
|
};
|
|
23967
23967
|
|
|
23968
23968
|
const calculateWidth = (size) => {
|
|
@@ -24012,7 +24012,7 @@ const widths = (props) => {
|
|
|
24012
24012
|
`;
|
|
24013
24013
|
};
|
|
24014
24014
|
|
|
24015
|
-
const Container$
|
|
24015
|
+
const Container$1m = styled__default.default.div`
|
|
24016
24016
|
box-sizing: border-box;
|
|
24017
24017
|
display: block;
|
|
24018
24018
|
padding: ${(props) => (props.$hasPadding ? props.theme.theme_vars.spacingSizes.small : `0`)};
|
|
@@ -24024,7 +24024,7 @@ const Container$1l = styled__default.default.div`
|
|
|
24024
24024
|
|
|
24025
24025
|
var Column = function (_a) {
|
|
24026
24026
|
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;
|
|
24027
|
-
return (React__namespace.default.createElement(Container$
|
|
24027
|
+
return (React__namespace.default.createElement(Container$1m, { "data-testid": "Column", "$small": small, "$medium": medium, "$large": large, "$hasPadding": hasPadding, "$hasBorder": hasBorder, as: isList ? 'li' : 'div', className: classes, role: role, id: id }, children));
|
|
24028
24028
|
};
|
|
24029
24029
|
|
|
24030
24030
|
var PromotedLinks = function (_a) {
|
|
@@ -24041,7 +24041,7 @@ var PromotedLinks = function (_a) {
|
|
|
24041
24041
|
}
|
|
24042
24042
|
};
|
|
24043
24043
|
|
|
24044
|
-
const Container$
|
|
24044
|
+
const Container$1l = styled__default.default.div`
|
|
24045
24045
|
display: block;
|
|
24046
24046
|
`;
|
|
24047
24047
|
|
|
@@ -24091,7 +24091,7 @@ const promotedStyles = (props) => {
|
|
|
24091
24091
|
}
|
|
24092
24092
|
};
|
|
24093
24093
|
|
|
24094
|
-
const Container$
|
|
24094
|
+
const Container$1k = styled__default.default.a`
|
|
24095
24095
|
display: flex;
|
|
24096
24096
|
flex-direction: row;
|
|
24097
24097
|
flex-wrap: wrap;
|
|
@@ -24228,7 +24228,7 @@ const imageRatio = (props) => {
|
|
|
24228
24228
|
}
|
|
24229
24229
|
};
|
|
24230
24230
|
|
|
24231
|
-
const Container$
|
|
24231
|
+
const Container$1j = styled__default.default.div`
|
|
24232
24232
|
display: block;
|
|
24233
24233
|
position: ${(props) => (props.$ratio === 'auto' ? 'absolute' : 'relative')};
|
|
24234
24234
|
${imageRatio}
|
|
@@ -24246,13 +24246,13 @@ const Image$3 = styled__default.default.img`
|
|
|
24246
24246
|
|
|
24247
24247
|
var ResponsiveImage = function (_a) {
|
|
24248
24248
|
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;
|
|
24249
|
-
return (React__namespace.default.createElement(Container$
|
|
24249
|
+
return (React__namespace.default.createElement(Container$1j, { "data-testid": "ResponsiveImage", "$ratio": ratio },
|
|
24250
24250
|
React__namespace.default.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 })));
|
|
24251
24251
|
};
|
|
24252
24252
|
|
|
24253
24253
|
var EventLink = function (_a) {
|
|
24254
24254
|
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;
|
|
24255
|
-
return (React__namespace.default.createElement(Container$
|
|
24255
|
+
return (React__namespace.default.createElement(Container$1k, { "data-testid": "EventLink", href: url, "$isPromoted": isPromoted },
|
|
24256
24256
|
React__namespace.default.createElement(Row$1, null,
|
|
24257
24257
|
React__namespace.default.createElement(Column, { small: "full", medium: imageLarge ? 'two-thirds' : 'full', large: imageLarge ? 'two-thirds' : 'full', hasPadding: false },
|
|
24258
24258
|
React__namespace.default.createElement(EventContent, { "$hasPadding": hasPadding },
|
|
@@ -24268,13 +24268,13 @@ var EventLink = function (_a) {
|
|
|
24268
24268
|
// A list of related events
|
|
24269
24269
|
var RelatedEvents = function (_a) {
|
|
24270
24270
|
var title = _a.title, events = _a.events;
|
|
24271
|
-
return (React__namespace.default.createElement(Container$
|
|
24271
|
+
return (React__namespace.default.createElement(Container$1l, { "data-testid": "RelatedEvents" },
|
|
24272
24272
|
React__namespace.default.createElement(Title$a, null, title),
|
|
24273
24273
|
React__namespace.default.createElement(List$3, null, events.map(function (event, index) { return (React__namespace.default.createElement(ListItem$2, { key: index },
|
|
24274
24274
|
React__namespace.default.createElement(EventLink, { title: event.title, startTime: event.startTime, endTime: event.endTime, showSummary: false, url: event.url, location: event.location, hasPadding: false }))); }))));
|
|
24275
24275
|
};
|
|
24276
24276
|
|
|
24277
|
-
const Container$
|
|
24277
|
+
const Container$1i = styled__default.default.div`
|
|
24278
24278
|
display: block;
|
|
24279
24279
|
`;
|
|
24280
24280
|
|
|
@@ -24310,7 +24310,7 @@ const Cookies = styled__default.default.button`
|
|
|
24310
24310
|
}
|
|
24311
24311
|
`;
|
|
24312
24312
|
|
|
24313
|
-
const Container$
|
|
24313
|
+
const Container$1h = styled__default.default.div`
|
|
24314
24314
|
${(props) => props.theme.fontStyles}
|
|
24315
24315
|
background-color: ${(props) => props.theme.theme_vars.colours.grey_light};
|
|
24316
24316
|
padding: ${(props) => props.theme.theme_vars.spacingSizes.medium} 0;
|
|
@@ -24656,18 +24656,18 @@ var CookieBanner = function (_a) {
|
|
|
24656
24656
|
hideCookiesAcceptedConfirmationBanner();
|
|
24657
24657
|
};
|
|
24658
24658
|
return (React__namespace.default.createElement(React__namespace.default.Fragment, null,
|
|
24659
|
-
showCookieBanner && (React__namespace.default.createElement(Container$
|
|
24659
|
+
showCookieBanner && (React__namespace.default.createElement(Container$1h, { "data-testid": "CookieBanner" },
|
|
24660
24660
|
React__namespace.default.createElement(CookieMessage, null,
|
|
24661
24661
|
React__namespace.default.createElement(CookieHeading, null, title),
|
|
24662
24662
|
React__namespace.default.createElement(CookieParagraph, null, paragraph),
|
|
24663
24663
|
React__namespace.default.createElement(ButtonsContainer, null,
|
|
24664
24664
|
React__namespace.default.createElement(FormButton, { primary: true, text: acceptButtonText, isDisabled: false, type: "button", onClick: acceptCookies, size: "large" }),
|
|
24665
24665
|
React__namespace.default.createElement(FormButton, { primary: true, text: rejectButtonText, isDisabled: false, type: "button", onClick: rejectCookies, size: "large" }))))),
|
|
24666
|
-
showCookiesRejectedBanner && (React__namespace.default.createElement(Container$
|
|
24666
|
+
showCookiesRejectedBanner && (React__namespace.default.createElement(Container$1h, { "data-testid": "CookieBannerRejected", id: "CookieBannerRejected" },
|
|
24667
24667
|
React__namespace.default.createElement(CookieMessage, { isInline: true },
|
|
24668
24668
|
React__namespace.default.createElement(CookieParagraph, null, rejectConfirmationText),
|
|
24669
24669
|
React__namespace.default.createElement(CookieHide, { onClick: hideCookiesConfirmationBanner, "aria-controls": "CookieBannerRejected", "aria-hidden": "false" }, "Hide")))),
|
|
24670
|
-
showCookiesAcceptedBanner && (React__namespace.default.createElement(Container$
|
|
24670
|
+
showCookiesAcceptedBanner && (React__namespace.default.createElement(Container$1h, { "data-testid": "CookieBannerAccepted", id: "CookieBannerAccepted" },
|
|
24671
24671
|
React__namespace.default.createElement(CookieMessage, { isInline: true },
|
|
24672
24672
|
React__namespace.default.createElement(CookieParagraph, null, acceptConfirmationText),
|
|
24673
24673
|
React__namespace.default.createElement(CookieHide, { onClick: hideCookiesConfirmationBanner, "aria-controls": "CookieBannerAccepted", "aria-hidden": "false" }, "Hide"))))));
|
|
@@ -24689,7 +24689,7 @@ var StaticMap = function (_a) {
|
|
|
24689
24689
|
return "&markers=size:".concat(size, "%7Ccolor:").concat(colour).concat(label, "%7C").concat(mapMarker.lat, ",").concat(mapMarker.lng);
|
|
24690
24690
|
})
|
|
24691
24691
|
.join('');
|
|
24692
|
-
return (React__namespace.default.createElement(Container$
|
|
24692
|
+
return (React__namespace.default.createElement(Container$1i, { "data-testid": "StaticMap" },
|
|
24693
24693
|
React__namespace.default.createElement(Message$1, null,
|
|
24694
24694
|
React__namespace.default.createElement("span", null,
|
|
24695
24695
|
"To interact with the map, you need to ",
|
|
@@ -24708,7 +24708,7 @@ var TextInput = function (_a) {
|
|
|
24708
24708
|
React__namespace.default.createElement(StyledTextInput, { type: "text", id: id, name: name, defaultValue: value, "$size": size, placeholder: placeholder, "$isErrored": isErrored, "$isLarge": isLarge })));
|
|
24709
24709
|
};
|
|
24710
24710
|
|
|
24711
|
-
const Container$
|
|
24711
|
+
const Container$1g = styled__default.default.div`
|
|
24712
24712
|
display: block;
|
|
24713
24713
|
padding-bottom: ${(props) => props.theme.theme_vars.spacingSizes.extra_small};
|
|
24714
24714
|
margin-top: ${(props) => props.theme.theme_vars.spacingSizes.medium};
|
|
@@ -24756,11 +24756,11 @@ var ToggleButtons = function (_a) {
|
|
|
24756
24756
|
setActiveButton(index);
|
|
24757
24757
|
onClick();
|
|
24758
24758
|
};
|
|
24759
|
-
return (React__namespace.default.createElement(Container$
|
|
24759
|
+
return (React__namespace.default.createElement(Container$1g, { "data-testid": "ToggleButtons", "$hasTopMargin": hasTopMargin },
|
|
24760
24760
|
React__namespace.default.createElement(React__namespace.default.Fragment, null, buttons.map(function (button, index) { return (React__namespace.default.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)); }))));
|
|
24761
24761
|
};
|
|
24762
24762
|
|
|
24763
|
-
const Container$
|
|
24763
|
+
const Container$1f = styled__default.default.div`
|
|
24764
24764
|
display: block;
|
|
24765
24765
|
position: fixed;
|
|
24766
24766
|
margin-top: ${(props) => props.theme.theme_vars.spacingSizes.large};
|
|
@@ -24860,14 +24860,14 @@ var QuickExit = function (_a) {
|
|
|
24860
24860
|
window.location.replace(url);
|
|
24861
24861
|
};
|
|
24862
24862
|
return (React__namespace.default.createElement(React__namespace.default.Fragment, null,
|
|
24863
|
-
React__namespace.default.createElement(Container$
|
|
24863
|
+
React__namespace.default.createElement(Container$1f, { "data-testid": "QuickExit" },
|
|
24864
24864
|
React__namespace.default.createElement(QuickExitButton, { onClick: function (e) { return handleClick(e); } },
|
|
24865
24865
|
React__namespace.default.createElement(HeadingWithIcon, { icon: "quickExit", level: 3, text: label, hasHover: false })))));
|
|
24866
24866
|
};
|
|
24867
24867
|
|
|
24868
24868
|
// Accordion
|
|
24869
24869
|
|
|
24870
|
-
const Container$
|
|
24870
|
+
const Container$1e = styled__default.default.div`
|
|
24871
24871
|
${(props) => props.theme.fontStyles}
|
|
24872
24872
|
margin-bottom: 20px;
|
|
24873
24873
|
border-bottom: 1px solid ${(props) => props.theme.theme_vars.colours.grey};
|
|
@@ -25157,7 +25157,7 @@ var Accordion$1 = function (_a) {
|
|
|
25157
25157
|
setAccordionStates(newStatus);
|
|
25158
25158
|
};
|
|
25159
25159
|
var accordionId = "accordion".concat(React.useId());
|
|
25160
|
-
return (React__namespace.default.createElement(Container$
|
|
25160
|
+
return (React__namespace.default.createElement(Container$1e, { "data-testid": "Accordion", id: accordionId },
|
|
25161
25161
|
showControls && sections.length > 1 && (React__namespace.default.createElement(AccordionControls$1, null,
|
|
25162
25162
|
React__namespace.default.createElement(OpenAllButton, { onClick: toggleAll, type: "button", "aria-expanded": !openAll },
|
|
25163
25163
|
openAll ? 'Open all' : 'Close all',
|
|
@@ -25165,7 +25165,7 @@ var Accordion$1 = function (_a) {
|
|
|
25165
25165
|
accordionStates.map(function (section, i) { return (React__namespace.default.createElement(AccordionSection, __assign({}, section, { key: i, onToggle: updateAccordionState, isFilter: isFilter, withReadMore: withReadMore }))); })));
|
|
25166
25166
|
};
|
|
25167
25167
|
|
|
25168
|
-
const Container$
|
|
25168
|
+
const Container$1d = styled__default.default.div`
|
|
25169
25169
|
display: block;
|
|
25170
25170
|
background-color: ${(props) => props.theme.theme_vars.colours.grey_light};
|
|
25171
25171
|
padding: ${(props) => props.theme.theme_vars.spacingSizes.small};
|
|
@@ -25219,7 +25219,7 @@ var _a, _b;
|
|
|
25219
25219
|
var PostcodeSearchApiUrl = (_a = process.env.NEXT_PUBLIC_POSTCODE_SEARCH_API_URL) !== null && _a !== void 0 ? _a : '';
|
|
25220
25220
|
var BinFinderApiUrl = (_b = process.env.NEXT_PUBLIC_BIN_FINDER_API_URL) !== null && _b !== void 0 ? _b : '';
|
|
25221
25221
|
|
|
25222
|
-
const Container$
|
|
25222
|
+
const Container$1c = styled__default.default.div`
|
|
25223
25223
|
display: flex;
|
|
25224
25224
|
-webkit-flex-direction: row;
|
|
25225
25225
|
-moz-flex-direction: row;
|
|
@@ -25256,7 +25256,7 @@ const ErrorSummary$1 = styled__default.default.div`
|
|
|
25256
25256
|
*/
|
|
25257
25257
|
var FormWithLine = function (_a) {
|
|
25258
25258
|
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;
|
|
25259
|
-
return (React__namespace.default.createElement(Container$
|
|
25259
|
+
return (React__namespace.default.createElement(Container$1c, null,
|
|
25260
25260
|
React__namespace.default.createElement(Line$1, { "$lineColour": lineColour, "$hideLine": hideLine, "$isError": isError }),
|
|
25261
25261
|
React__namespace.default.createElement(Form, { onSubmit: onSubmit, "$hideLine": hideLine, role: formRole, method: formMethod, url: formURL, "data-testid": "FormWithLine" },
|
|
25262
25262
|
errorSummary && React__namespace.default.createElement(ErrorSummary$1, null, errorSummary),
|
|
@@ -25306,7 +25306,7 @@ var Input = function (_a) {
|
|
|
25306
25306
|
typeof value !== 'undefined' ? (React__namespace.default.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__namespace.default.createElement(StyledInput, { onChange: onChange, type: type, placeholder: placeholder, name: name, "$isErrored": isErrored, maxLength: maxLength, defaultValue: defaultValue, id: id, autoComplete: autocomplete, "$isFullWidth": isFullWidth, min: minValue }))));
|
|
25307
25307
|
};
|
|
25308
25308
|
|
|
25309
|
-
const Container$
|
|
25309
|
+
const Container$1b = styled__default.default.div`
|
|
25310
25310
|
display: block;
|
|
25311
25311
|
`;
|
|
25312
25312
|
|
|
@@ -25346,7 +25346,7 @@ const Outer$1 = styled__default.default.div`
|
|
|
25346
25346
|
}
|
|
25347
25347
|
}
|
|
25348
25348
|
`;
|
|
25349
|
-
const Link$
|
|
25349
|
+
const Link$5 = styled__default.default.a`
|
|
25350
25350
|
margin-bottom: 15px;
|
|
25351
25351
|
display: block;
|
|
25352
25352
|
width: 100%;
|
|
@@ -25438,7 +25438,7 @@ var FileDownload = function (_a) {
|
|
|
25438
25438
|
var title = _a.title, type = _a.type, url = _a.url, size = _a.size, _b = _a.archived, archived = _b === void 0 ? false : _b; __rest(_a, ["title", "type", "url", "size", "archived"]);
|
|
25439
25439
|
var _c = React.useState(false); _c[0]; var setIsHovered = _c[1];
|
|
25440
25440
|
return (React__namespace.default.createElement(Outer$1, { "data-testid": "FileDownload" },
|
|
25441
|
-
React__namespace.default.createElement(Link$
|
|
25441
|
+
React__namespace.default.createElement(Link$5, { href: url, download: true, onMouseEnter: function () { return setIsHovered(true); }, onMouseLeave: function () { return setIsHovered(false); }, rel: archived ? 'archived' : '' },
|
|
25442
25442
|
React__namespace.default.createElement(IconDownload$2, null),
|
|
25443
25443
|
React__namespace.default.createElement(FileDetails, { className: "file-details" },
|
|
25444
25444
|
React__namespace.default.createElement(Title$8, { className: "file-title" }, title),
|
|
@@ -25503,7 +25503,7 @@ var BinCollection = function (_a) {
|
|
|
25503
25503
|
}
|
|
25504
25504
|
return acc;
|
|
25505
25505
|
}, {});
|
|
25506
|
-
return (React__namespace.default.createElement(Container$
|
|
25506
|
+
return (React__namespace.default.createElement(Container$1b, { "data-testid": "BinCollection" },
|
|
25507
25507
|
React__namespace.default.createElement(Heading$1, { text: "Bin collections for:", level: 3 }),
|
|
25508
25508
|
React__namespace.default.createElement("p", null, address),
|
|
25509
25509
|
Object.keys(binCollectionsGrouped).map(function (day) {
|
|
@@ -25692,7 +25692,7 @@ var BinFinder = function (_a) {
|
|
|
25692
25692
|
return [2 /*return*/];
|
|
25693
25693
|
});
|
|
25694
25694
|
}); };
|
|
25695
|
-
return (React__namespace.default.createElement(Container$
|
|
25695
|
+
return (React__namespace.default.createElement(Container$1d, { "data-testid": "BinFinder" },
|
|
25696
25696
|
title && (React__namespace.default.createElement(TitleContainer, null,
|
|
25697
25697
|
React__namespace.default.createElement(Heading$1, { level: 2, text: title }))),
|
|
25698
25698
|
uprn === '' ? (React__namespace.default.createElement(React__namespace.default.Fragment, null,
|
|
@@ -25746,6 +25746,68 @@ var BinFinder = function (_a) {
|
|
|
25746
25746
|
React__namespace.default.createElement(Error$1, null, isError))))));
|
|
25747
25747
|
};
|
|
25748
25748
|
|
|
25749
|
+
const Container$1a = styled__default.default.div`
|
|
25750
|
+
display: block;
|
|
25751
|
+
margin-bottom: ${(props) => props.theme.theme_vars.spacingSizes.medium};
|
|
25752
|
+
`;
|
|
25753
|
+
|
|
25754
|
+
const LinkContainer$1 = styled__default.default.div`
|
|
25755
|
+
position: relative;
|
|
25756
|
+
border-bottom: 1px solid ${(props) => props.theme.theme_vars.colours.grey};
|
|
25757
|
+
padding-bottom: ${(props) => props.theme.theme_vars.spacingSizes.medium};
|
|
25758
|
+
`;
|
|
25759
|
+
|
|
25760
|
+
const ImageContainer$6 = styled__default.default.div`
|
|
25761
|
+
margin-right: 15px;
|
|
25762
|
+
`;
|
|
25763
|
+
|
|
25764
|
+
const Link$4 = styled__default.default.a`
|
|
25765
|
+
${(props) => props.theme.linkStyles};
|
|
25766
|
+
min-height: 44px;
|
|
25767
|
+
display: block;
|
|
25768
|
+
|
|
25769
|
+
&:hover {
|
|
25770
|
+
${(props) => props.theme.linkStylesHover};
|
|
25771
|
+
}
|
|
25772
|
+
&:focus {
|
|
25773
|
+
${(props) => props.theme.linkStylesFocus};
|
|
25774
|
+
}
|
|
25775
|
+
&:active {
|
|
25776
|
+
${(props) => props.theme.linkStylesActive};
|
|
25777
|
+
}
|
|
25778
|
+
`;
|
|
25779
|
+
|
|
25780
|
+
const BlockLink = styled__default.default.span`
|
|
25781
|
+
position: absolute;
|
|
25782
|
+
width: 100%;
|
|
25783
|
+
top: 0;
|
|
25784
|
+
left: 0;
|
|
25785
|
+
right: 0;
|
|
25786
|
+
bottom: 0;
|
|
25787
|
+
`;
|
|
25788
|
+
|
|
25789
|
+
const LinkSummary = styled__default.default.span`
|
|
25790
|
+
display: block;
|
|
25791
|
+
line-height: 1.3;
|
|
25792
|
+
`;
|
|
25793
|
+
|
|
25794
|
+
var BlockLinks = function (_a) {
|
|
25795
|
+
var title = _a.title, links = _a.links, imageAltText = _a.imageAltText, imageLarge = _a.imageLarge, imageSmall = _a.imageSmall;
|
|
25796
|
+
return (React__namespace.default.createElement(Container$1a, { "data-testid": "BlockLinks" },
|
|
25797
|
+
title && React__namespace.default.createElement(Heading$1, { text: title, level: 2 }),
|
|
25798
|
+
React__namespace.default.createElement(Row$1, null,
|
|
25799
|
+
imageLarge && imageSmall && (React__namespace.default.createElement(Column, { small: "full", medium: "one-third", large: "one-quarter" },
|
|
25800
|
+
React__namespace.default.createElement(ImageContainer$6, null,
|
|
25801
|
+
React__namespace.default.createElement(ResponsiveImage, { imageAltText: imageAltText !== null && imageAltText !== void 0 ? imageAltText : '', imageLarge: imageLarge, imageSmall: imageSmall, ratio: "4by3", smallWidth: "400", largeWidth: "800" })))),
|
|
25802
|
+
React__namespace.default.createElement(Column, { small: "full", medium: imageLarge && imageSmall ? 'two-thirds' : 'full', large: imageLarge && imageSmall ? 'three-quarters' : 'full' },
|
|
25803
|
+
React__namespace.default.createElement(Row$1, { isList: true }, links.map(function (link) { return (React__namespace.default.createElement(Column, { isList: true, key: link.id, small: "full", medium: "full", large: "full" },
|
|
25804
|
+
React__namespace.default.createElement(LinkContainer$1, null,
|
|
25805
|
+
React__namespace.default.createElement(Link$4, { href: link.url },
|
|
25806
|
+
React__namespace.default.createElement("span", null, link.title),
|
|
25807
|
+
React__namespace.default.createElement(BlockLink, null)),
|
|
25808
|
+
link.summary && React__namespace.default.createElement(LinkSummary, null, link.summary)))); }))))));
|
|
25809
|
+
};
|
|
25810
|
+
|
|
25749
25811
|
const Blockquote = styled__default.default.blockquote `
|
|
25750
25812
|
${props => props.theme.fontStyles}
|
|
25751
25813
|
margin: 20px 0px;
|
|
@@ -40258,6 +40320,7 @@ exports.Autocomplete = Autocomplete;
|
|
|
40258
40320
|
exports.BackLink = BackLink;
|
|
40259
40321
|
exports.BackToTop = BackToTop;
|
|
40260
40322
|
exports.BinFinder = BinFinder;
|
|
40323
|
+
exports.BlockLinks = BlockLinks;
|
|
40261
40324
|
exports.BlockQuote = BlockQuote;
|
|
40262
40325
|
exports.Breadcrumbs = Breadcrumbs;
|
|
40263
40326
|
exports.BudgetGame = BudgetGame;
|