@nnc-digital/nnc-design-system 0.4.22 → 0.4.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/index.esm.js
CHANGED
|
@@ -4400,7 +4400,7 @@ var BinCollection = function (_a) {
|
|
|
4400
4400
|
var selectedUPRN = e.target.value;
|
|
4401
4401
|
if (selectedUPRN) {
|
|
4402
4402
|
var startDate = getFormattedDate();
|
|
4403
|
-
var endDate = getFormattedDate(
|
|
4403
|
+
var endDate = getFormattedDate(28);
|
|
4404
4404
|
// Fetch calendar events for the selected UPRN
|
|
4405
4405
|
axios.get("".concat(CalendarEventsApiUrl).concat(selectedUPRN, "/").concat(startDate, "/").concat(endDate))
|
|
4406
4406
|
.then(function (response) {
|
|
@@ -23251,12 +23251,79 @@ const AccessibleLinks = styled.a`
|
|
|
23251
23251
|
|
|
23252
23252
|
`;
|
|
23253
23253
|
|
|
23254
|
+
const SkipToMainContent$1 = styled.a`
|
|
23255
|
+
${props => props.theme.fontStyles}
|
|
23256
|
+
|
|
23257
|
+
position: absolute;
|
|
23258
|
+
width: 1px;
|
|
23259
|
+
height: 1px;
|
|
23260
|
+
margin: 0;
|
|
23261
|
+
overflow: hidden;
|
|
23262
|
+
clip: rect(0 0 0 0);
|
|
23263
|
+
clip-path: inset(50%);
|
|
23264
|
+
white-space: nowrap;
|
|
23265
|
+
display: block;
|
|
23266
|
+
padding: 10px 15px;
|
|
23267
|
+
|
|
23268
|
+
&:active,
|
|
23269
|
+
&:focus {
|
|
23270
|
+
position: static;
|
|
23271
|
+
width: auto;
|
|
23272
|
+
height: auto;
|
|
23273
|
+
margin: inherit;
|
|
23274
|
+
overflow: visible;
|
|
23275
|
+
clip: auto;
|
|
23276
|
+
-webkit-clip-path: none;
|
|
23277
|
+
clip-path: none;
|
|
23278
|
+
white-space: inherit
|
|
23279
|
+
}
|
|
23280
|
+
|
|
23281
|
+
&:link,
|
|
23282
|
+
&:visited,
|
|
23283
|
+
&:hover,
|
|
23284
|
+
&:active,
|
|
23285
|
+
&:focus {
|
|
23286
|
+
color: ${props => props.theme.theme_vars.colours.black};
|
|
23287
|
+
}
|
|
23288
|
+
|
|
23289
|
+
|
|
23290
|
+
|
|
23291
|
+
@media (min-width: 40.0625em) {
|
|
23292
|
+
font-size: 16px;
|
|
23293
|
+
font-size: 1rem;
|
|
23294
|
+
line-height: 1.25
|
|
23295
|
+
}
|
|
23296
|
+
|
|
23297
|
+
|
|
23298
|
+
|
|
23299
|
+
&:focus {
|
|
23300
|
+
outline: 3px solid ${props => props.theme.theme_vars.colours.focus};
|
|
23301
|
+
outline-offset: 0;
|
|
23302
|
+
background-color: ${props => props.theme.theme_vars.colours.focus};
|
|
23303
|
+
}
|
|
23304
|
+
|
|
23305
|
+
|
|
23306
|
+
|
|
23307
|
+
|
|
23308
|
+
`;
|
|
23309
|
+
|
|
23310
|
+
var SkipToMainContent = function () { return (React.createElement(SkipToMainContent$1, { "data-testid": "SkipToMainContent", href: "#main" }, "Skip to main content")); };
|
|
23311
|
+
|
|
23254
23312
|
var AccessibleLink = function (_a) {
|
|
23255
|
-
var _b = _a.AccessibleLinksArray, AccessibleLinksArray = _b === void 0 ? null : _b;
|
|
23256
|
-
|
|
23257
|
-
|
|
23258
|
-
|
|
23259
|
-
}
|
|
23313
|
+
var _b = _a.AccessibleLinksArray, AccessibleLinksArray = _b === void 0 ? null : _b, _c = _a.includeSkipToMainContent, includeSkipToMainContent = _c === void 0 ? false : _c, _d = _a.listItem, listItem = _d === void 0 ? true : _d;
|
|
23314
|
+
var ListItemWrapper = function (_a) {
|
|
23315
|
+
var children = _a.children;
|
|
23316
|
+
return listItem ? React.createElement(AccessibleListItem, null, children) : React.createElement(React.Fragment, null, children);
|
|
23317
|
+
};
|
|
23318
|
+
var ListWrapper = function (_a) {
|
|
23319
|
+
var children = _a.children;
|
|
23320
|
+
return listItem ? React.createElement(AccessibleList, null, children) : React.createElement(React.Fragment, null, children);
|
|
23321
|
+
};
|
|
23322
|
+
return (React.createElement(ListWrapper, null,
|
|
23323
|
+
includeSkipToMainContent && (React.createElement(ListItemWrapper, null,
|
|
23324
|
+
React.createElement(SkipToMainContent, null))),
|
|
23325
|
+
AccessibleLinksArray && AccessibleLinksArray.map(function (link, i) { return (React.createElement(ListItemWrapper, { key: 'accessible-link-li-' + i },
|
|
23326
|
+
React.createElement(AccessibleLinks, { key: 'accessible-link-' + i, href: link.url }, link.title))); })));
|
|
23260
23327
|
};
|
|
23261
23328
|
|
|
23262
23329
|
const Container$F = styled.div`
|
|
@@ -27848,64 +27915,6 @@ var SignpostLinks = function (_a) {
|
|
|
27848
27915
|
signpostLinksArray[0].areaName))));
|
|
27849
27916
|
};
|
|
27850
27917
|
|
|
27851
|
-
const SkipToMainContent$1 = styled.a`
|
|
27852
|
-
${props => props.theme.fontStyles}
|
|
27853
|
-
|
|
27854
|
-
position: absolute;
|
|
27855
|
-
width: 1px;
|
|
27856
|
-
height: 1px;
|
|
27857
|
-
margin: 0;
|
|
27858
|
-
overflow: hidden;
|
|
27859
|
-
clip: rect(0 0 0 0);
|
|
27860
|
-
clip-path: inset(50%);
|
|
27861
|
-
white-space: nowrap;
|
|
27862
|
-
display: block;
|
|
27863
|
-
padding: 10px 15px;
|
|
27864
|
-
|
|
27865
|
-
&:active,
|
|
27866
|
-
&:focus {
|
|
27867
|
-
position: static;
|
|
27868
|
-
width: auto;
|
|
27869
|
-
height: auto;
|
|
27870
|
-
margin: inherit;
|
|
27871
|
-
overflow: visible;
|
|
27872
|
-
clip: auto;
|
|
27873
|
-
-webkit-clip-path: none;
|
|
27874
|
-
clip-path: none;
|
|
27875
|
-
white-space: inherit
|
|
27876
|
-
}
|
|
27877
|
-
|
|
27878
|
-
&:link,
|
|
27879
|
-
&:visited,
|
|
27880
|
-
&:hover,
|
|
27881
|
-
&:active,
|
|
27882
|
-
&:focus {
|
|
27883
|
-
color: ${props => props.theme.theme_vars.colours.black};
|
|
27884
|
-
}
|
|
27885
|
-
|
|
27886
|
-
|
|
27887
|
-
|
|
27888
|
-
@media (min-width: 40.0625em) {
|
|
27889
|
-
font-size: 16px;
|
|
27890
|
-
font-size: 1rem;
|
|
27891
|
-
line-height: 1.25
|
|
27892
|
-
}
|
|
27893
|
-
|
|
27894
|
-
|
|
27895
|
-
|
|
27896
|
-
&:focus {
|
|
27897
|
-
outline: 3px solid ${props => props.theme.theme_vars.colours.focus};
|
|
27898
|
-
outline-offset: 0;
|
|
27899
|
-
background-color: ${props => props.theme.theme_vars.colours.focus};
|
|
27900
|
-
}
|
|
27901
|
-
|
|
27902
|
-
|
|
27903
|
-
|
|
27904
|
-
|
|
27905
|
-
`;
|
|
27906
|
-
|
|
27907
|
-
var SkipToMainContent = function () { return (React.createElement(SkipToMainContent$1, { "data-testid": "SkipToMainContent", href: "#main" }, "Skip to main content")); };
|
|
27908
|
-
|
|
27909
27918
|
const summaryStyles = (props) => {
|
|
27910
27919
|
if (props.theme.is_memorial === true) {
|
|
27911
27920
|
return css`
|