northants-design-system 1.0.6 → 1.0.7
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.js +305 -227
- package/build/index.js.map +1 -1
- package/build/index.mjs.js +305 -227
- package/build/index.mjs.js.map +1 -1
- package/build/library/components/Button/Button.d.ts +1 -1
- package/build/library/slices/CallToAction/CallToAction.d.ts +3 -3
- package/build/library/structure/AccessibleLinks/AccessibleLinks.d.ts +2 -2
- package/build/library/structure/SectionLinksMobileContents/SectionLinksMobileContents.d.ts +3 -3
- package/package.json +18 -24
package/build/index.js
CHANGED
|
@@ -4052,7 +4052,7 @@ const StyledButton$1 = styled__default.default.a`
|
|
|
4052
4052
|
}
|
|
4053
4053
|
&.button--large {
|
|
4054
4054
|
font-size: 16px;
|
|
4055
|
-
padding:
|
|
4055
|
+
padding: 14px 24px;
|
|
4056
4056
|
}
|
|
4057
4057
|
`;
|
|
4058
4058
|
|
|
@@ -7473,8 +7473,8 @@ const Select = styled__default.default.select`
|
|
|
7473
7473
|
border-radius: ${(props) => props.theme.theme_vars.border_radius};
|
|
7474
7474
|
box-sizing: border-box;
|
|
7475
7475
|
max-width: 100%;
|
|
7476
|
-
height:
|
|
7477
|
-
height: 2.
|
|
7476
|
+
height: 44px;
|
|
7477
|
+
height: 2.75rem;
|
|
7478
7478
|
padding: 5px;
|
|
7479
7479
|
border: 2px solid
|
|
7480
7480
|
${(props) => (props.$isErrored ? props.theme.theme_vars.colours.negative : props.theme.theme_vars.colours.black)};
|
|
@@ -7767,9 +7767,9 @@ const Cookies = styled__default.default.button`
|
|
|
7767
7767
|
`;
|
|
7768
7768
|
|
|
7769
7769
|
const Container$12 = styled__default.default.div`
|
|
7770
|
-
${props => props.theme.fontStyles}
|
|
7771
|
-
background-color: ${props => props.theme.theme_vars.colours.grey_light};
|
|
7772
|
-
padding: ${props => props.theme.theme_vars.spacingSizes.medium} 0;
|
|
7770
|
+
${(props) => props.theme.fontStyles}
|
|
7771
|
+
background-color: ${(props) => props.theme.theme_vars.colours.grey_light};
|
|
7772
|
+
padding: ${(props) => props.theme.theme_vars.spacingSizes.medium} 0;
|
|
7773
7773
|
padding-bottom: 25px;
|
|
7774
7774
|
width: 100%;
|
|
7775
7775
|
display: block;
|
|
@@ -7777,61 +7777,62 @@ const Container$12 = styled__default.default.div`
|
|
|
7777
7777
|
`;
|
|
7778
7778
|
|
|
7779
7779
|
const CookieHide = styled__default.default.button`
|
|
7780
|
-
|
|
7781
|
-
|
|
7780
|
+
border: 0;
|
|
7781
|
+
background: transparent;
|
|
7782
|
+
padding: ${(props) => `${props.theme.theme_vars.spacingSizes.medium} ${props.theme.theme_vars.spacingSizes.small}`};
|
|
7783
|
+
cursor: pointer;
|
|
7782
7784
|
|
|
7783
|
-
${props => props.theme.fontStyles}
|
|
7784
|
-
|
|
7785
|
-
&:hover{
|
|
7786
|
-
|
|
7787
|
-
|
|
7788
|
-
|
|
7789
|
-
|
|
7790
|
-
|
|
7791
|
-
|
|
7792
|
-
|
|
7793
|
-
|
|
7785
|
+
${(props) => props.theme.fontStyles}
|
|
7786
|
+
${(props) => props.theme.linkStyles}
|
|
7787
|
+
&:hover {
|
|
7788
|
+
${(props) => props.theme.linkStylesHover}
|
|
7789
|
+
}
|
|
7790
|
+
&:focus {
|
|
7791
|
+
${(props) => props.theme.linkStylesFocus}
|
|
7792
|
+
}
|
|
7793
|
+
&:active {
|
|
7794
|
+
${(props) => props.theme.linkStylesActive}
|
|
7795
|
+
}
|
|
7794
7796
|
`;
|
|
7795
7797
|
|
|
7796
7798
|
const CookieMessage = styled__default.default.div`
|
|
7797
|
-
|
|
7798
|
-
|
|
7799
|
-
|
|
7800
|
-
|
|
7801
|
-
|
|
7799
|
+
display: ${(props) => (props.isInline ? 'grid' : 'block')};
|
|
7800
|
+
grid-template-columns: 1fr auto;
|
|
7801
|
+
align-items: baseline;
|
|
7802
|
+
margin-right: 15px;
|
|
7803
|
+
margin-left: 15px;
|
|
7802
7804
|
|
|
7803
|
-
|
|
7804
|
-
|
|
7805
|
-
|
|
7806
|
-
|
|
7805
|
+
@media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.m}) {
|
|
7806
|
+
margin-right: 30px;
|
|
7807
|
+
margin-left: 30px;
|
|
7808
|
+
}
|
|
7807
7809
|
|
|
7808
|
-
|
|
7809
|
-
|
|
7810
|
-
|
|
7811
|
-
|
|
7812
|
-
|
|
7810
|
+
@media screen and (min-width: calc(${(props) => props.theme.theme_vars.breakpoints.l} + 60px)) {
|
|
7811
|
+
margin-right: auto;
|
|
7812
|
+
margin-left: auto;
|
|
7813
|
+
max-width: ${(props) => props.theme.theme_vars.breakpoints.l};
|
|
7814
|
+
}
|
|
7813
7815
|
`;
|
|
7814
7816
|
|
|
7815
7817
|
const CookieHeading = styled__default.default.p`
|
|
7816
|
-
${props => props.theme.theme_vars.h3}
|
|
7817
|
-
|
|
7818
|
+
${(props) => props.theme.theme_vars.h3}
|
|
7818
7819
|
`;
|
|
7819
7820
|
|
|
7820
7821
|
const CookieParagraph = styled__default.default.div`
|
|
7821
|
-
|
|
7822
|
+
margin: ${(props) => props.theme.theme_vars.spacingSizes.medium} 0;
|
|
7822
7823
|
|
|
7823
|
-
|
|
7824
|
-
|
|
7825
|
-
|
|
7826
|
-
|
|
7827
|
-
|
|
7828
|
-
|
|
7829
|
-
|
|
7830
|
-
}
|
|
7831
|
-
&:active{
|
|
7832
|
-
${props => props.theme.linkStylesActive}
|
|
7833
|
-
}
|
|
7824
|
+
a {
|
|
7825
|
+
${(props) => props.theme.linkStyles}
|
|
7826
|
+
&:hover {
|
|
7827
|
+
${(props) => props.theme.linkStylesHover}
|
|
7828
|
+
}
|
|
7829
|
+
&:focus {
|
|
7830
|
+
${(props) => props.theme.linkStylesFocus}
|
|
7834
7831
|
}
|
|
7832
|
+
&:active {
|
|
7833
|
+
${(props) => props.theme.linkStylesActive}
|
|
7834
|
+
}
|
|
7835
|
+
}
|
|
7835
7836
|
`;
|
|
7836
7837
|
const ButtonsContainer = styled__default.default.div`
|
|
7837
7838
|
display: flex;
|
|
@@ -7852,91 +7853,89 @@ const ButtonsContainer = styled__default.default.div`
|
|
|
7852
7853
|
}
|
|
7853
7854
|
}
|
|
7854
7855
|
|
|
7855
|
-
@media screen and (min-width: ${props => props.theme.theme_vars.breakpoints.s}){
|
|
7856
|
+
@media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.s}) {
|
|
7856
7857
|
display: block;
|
|
7857
7858
|
|
|
7858
7859
|
.button--primary {
|
|
7859
7860
|
width: auto;
|
|
7860
7861
|
&:last-of-type {
|
|
7861
7862
|
line-height: 1.3;
|
|
7862
|
-
|
|
7863
7863
|
}
|
|
7864
7864
|
}
|
|
7865
7865
|
}
|
|
7866
7866
|
|
|
7867
|
-
@media screen and (min-width: ${props => props.theme.theme_vars.breakpoints.m}){
|
|
7867
|
+
@media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.m}) {
|
|
7868
7868
|
display: block;
|
|
7869
7869
|
|
|
7870
7870
|
.button--primary {
|
|
7871
7871
|
width: auto;
|
|
7872
7872
|
&:last-of-type {
|
|
7873
7873
|
line-height: 1.3;
|
|
7874
|
-
|
|
7875
7874
|
}
|
|
7876
7875
|
}
|
|
7877
7876
|
}
|
|
7878
7877
|
`;
|
|
7879
7878
|
|
|
7880
7879
|
const StyledButton = styled__default.default.button`
|
|
7881
|
-
|
|
7882
|
-
|
|
7883
|
-
|
|
7884
|
-
|
|
7885
|
-
|
|
7886
|
-
|
|
7887
|
-
|
|
7888
|
-
|
|
7880
|
+
font-weight: 700;
|
|
7881
|
+
border: none;
|
|
7882
|
+
cursor: pointer;
|
|
7883
|
+
display: inline-block;
|
|
7884
|
+
line-height: 1;
|
|
7885
|
+
font-family: ${(props) => props.theme.theme_vars.fontstack};
|
|
7886
|
+
border-radius: ${(props) => props.theme.theme_vars.border_radius};
|
|
7887
|
+
text-decoration: none;
|
|
7889
7888
|
|
|
7890
|
-
|
|
7891
|
-
|
|
7892
|
-
|
|
7889
|
+
&.button--primary {
|
|
7890
|
+
color: white;
|
|
7891
|
+
background-color: ${(props) => props.theme.theme_vars.colours.action};
|
|
7893
7892
|
|
|
7894
|
-
|
|
7895
|
-
|
|
7896
|
-
}
|
|
7897
|
-
&:focus {
|
|
7898
|
-
outline: none;
|
|
7899
|
-
color: ${props => props.theme.theme_vars.colours.black} !important;
|
|
7900
|
-
background-color: ${props => props.theme.theme_vars.colours.focus};
|
|
7901
|
-
box-shadow: 0px -3px 0px 0px ${props => props.theme.theme_vars.colours.black} inset;
|
|
7902
|
-
-webkit-box-shadow: 0px -3px 0px 0px ${props => props.theme.theme_vars.colours.black} inset;
|
|
7903
|
-
-moz-box-shadow: 0px -3px 0px 0px ${props => props.theme.theme_vars.colours.black} inset;
|
|
7904
|
-
}
|
|
7905
|
-
&:active {
|
|
7906
|
-
transform: translateY(2px);
|
|
7907
|
-
color: ${props => props.theme.theme_vars.colours.black} !important;
|
|
7908
|
-
background-color: ${props => props.theme.theme_vars.colours.focus};
|
|
7909
|
-
box-shadow: 0px -1px 0px 0px ${props => props.theme.theme_vars.colours.black} inset;
|
|
7910
|
-
-webkit-box-shadow: 0px -1px 0px 0px ${props => props.theme.theme_vars.colours.black} inset;
|
|
7911
|
-
-moz-box-shadow: 0px -1px 0px 0px ${props => props.theme.theme_vars.colours.black} inset;
|
|
7912
|
-
}
|
|
7893
|
+
&:hover {
|
|
7894
|
+
background-color: ${(props) => props.theme.theme_vars.colours.action_dark};
|
|
7913
7895
|
}
|
|
7914
|
-
|
|
7915
|
-
|
|
7916
|
-
|
|
7917
|
-
|
|
7918
|
-
|
|
7919
|
-
|
|
7920
|
-
|
|
7921
|
-
}
|
|
7922
|
-
&:focus {
|
|
7923
|
-
outline: none;
|
|
7924
|
-
border: 2px solid ${props => props.theme.theme_vars.colours.focus};
|
|
7925
|
-
background-color: ${props => props.theme.theme_vars.colours.action}1A;
|
|
7926
|
-
}
|
|
7896
|
+
&:focus {
|
|
7897
|
+
outline: none;
|
|
7898
|
+
color: ${(props) => props.theme.theme_vars.colours.black} !important;
|
|
7899
|
+
background-color: ${(props) => props.theme.theme_vars.colours.focus};
|
|
7900
|
+
box-shadow: 0px -3px 0px 0px ${(props) => props.theme.theme_vars.colours.black} inset;
|
|
7901
|
+
-webkit-box-shadow: 0px -3px 0px 0px ${(props) => props.theme.theme_vars.colours.black} inset;
|
|
7902
|
+
-moz-box-shadow: 0px -3px 0px 0px ${(props) => props.theme.theme_vars.colours.black} inset;
|
|
7927
7903
|
}
|
|
7928
|
-
|
|
7929
|
-
|
|
7930
|
-
|
|
7904
|
+
&:active {
|
|
7905
|
+
transform: translateY(2px);
|
|
7906
|
+
color: ${(props) => props.theme.theme_vars.colours.black} !important;
|
|
7907
|
+
background-color: ${(props) => props.theme.theme_vars.colours.focus};
|
|
7908
|
+
box-shadow: 0px -1px 0px 0px ${(props) => props.theme.theme_vars.colours.black} inset;
|
|
7909
|
+
-webkit-box-shadow: 0px -1px 0px 0px ${(props) => props.theme.theme_vars.colours.black} inset;
|
|
7910
|
+
-moz-box-shadow: 0px -1px 0px 0px ${(props) => props.theme.theme_vars.colours.black} inset;
|
|
7931
7911
|
}
|
|
7932
|
-
|
|
7933
|
-
|
|
7934
|
-
|
|
7912
|
+
}
|
|
7913
|
+
&.button--secondary {
|
|
7914
|
+
color: ${(props) => props.theme.theme_vars.colours.action};
|
|
7915
|
+
background-color: transparent;
|
|
7916
|
+
border: 2px solid ${(props) => props.theme.theme_vars.colours.action};
|
|
7917
|
+
|
|
7918
|
+
&:hover {
|
|
7919
|
+
background-color: ${(props) => props.theme.theme_vars.colours.action}1A;
|
|
7935
7920
|
}
|
|
7936
|
-
|
|
7937
|
-
|
|
7938
|
-
|
|
7921
|
+
&:focus {
|
|
7922
|
+
outline: none;
|
|
7923
|
+
border: 2px solid ${(props) => props.theme.theme_vars.colours.focus};
|
|
7924
|
+
background-color: ${(props) => props.theme.theme_vars.colours.action}1A;
|
|
7939
7925
|
}
|
|
7926
|
+
}
|
|
7927
|
+
&.button--small {
|
|
7928
|
+
font-size: 12px;
|
|
7929
|
+
padding: 10px 16px;
|
|
7930
|
+
}
|
|
7931
|
+
&.button--medium {
|
|
7932
|
+
font-size: 14px;
|
|
7933
|
+
padding: 11px 20px;
|
|
7934
|
+
}
|
|
7935
|
+
&.button--large {
|
|
7936
|
+
font-size: 16px;
|
|
7937
|
+
padding: 14px 24px;
|
|
7938
|
+
}
|
|
7940
7939
|
`;
|
|
7941
7940
|
|
|
7942
7941
|
/**
|
|
@@ -8109,8 +8108,8 @@ var CookieBanner = function (_a) {
|
|
|
8109
8108
|
React__default.default.createElement(CookieHeading, null, title),
|
|
8110
8109
|
React__default.default.createElement(CookieParagraph, null, paragraph),
|
|
8111
8110
|
React__default.default.createElement(ButtonsContainer, null,
|
|
8112
|
-
React__default.default.createElement(FormButton, { primary: true, text: acceptButtonText, isDisabled: true, onClick: acceptCookies }),
|
|
8113
|
-
React__default.default.createElement(FormButton, { primary: true, text: rejectButtonText, isDisabled: true, onClick: rejectCookies }))))),
|
|
8111
|
+
React__default.default.createElement(FormButton, { primary: true, text: acceptButtonText, isDisabled: true, onClick: acceptCookies, size: "large" }),
|
|
8112
|
+
React__default.default.createElement(FormButton, { primary: true, text: rejectButtonText, isDisabled: true, onClick: rejectCookies, size: "large" }))))),
|
|
8114
8113
|
showCookiesRejectedBanner && (React__default.default.createElement(Container$12, { "data-testid": "CookieBannerRejected", id: "CookieBannerRejected" },
|
|
8115
8114
|
React__default.default.createElement(CookieMessage, { isInline: true },
|
|
8116
8115
|
React__default.default.createElement(CookieParagraph, null, rejectConfirmationText),
|
|
@@ -8177,8 +8176,9 @@ const OpenAllButton = styled__default.default.button`
|
|
|
8177
8176
|
position: relative;
|
|
8178
8177
|
z-index: 1;
|
|
8179
8178
|
margin: 0;
|
|
8180
|
-
margin-bottom:
|
|
8181
|
-
padding:
|
|
8179
|
+
margin-bottom: 5px;
|
|
8180
|
+
padding-top: ${(props) => props.theme.theme_vars.spacingSizes.medium};
|
|
8181
|
+
padding-bottom: ${(props) => props.theme.theme_vars.spacingSizes.small};
|
|
8182
8182
|
border-width: 0;
|
|
8183
8183
|
color: ${(props) => props.theme.theme_vars.colours.action};
|
|
8184
8184
|
background: none;
|
|
@@ -8211,7 +8211,7 @@ const SectionHeader = styled__default.default.div`
|
|
|
8211
8211
|
border-top: 1px solid ${(props) => props.theme.theme_vars.colours.grey};
|
|
8212
8212
|
color: ${(props) => props.theme.theme_vars.colours.action};
|
|
8213
8213
|
cursor: pointer;
|
|
8214
|
-
padding-bottom:
|
|
8214
|
+
padding-bottom: 10px;
|
|
8215
8215
|
|
|
8216
8216
|
&:hover {
|
|
8217
8217
|
border-top-color: ${(props) => props.theme.theme_vars.colours.action};
|
|
@@ -8220,19 +8220,20 @@ const SectionHeader = styled__default.default.div`
|
|
|
8220
8220
|
}
|
|
8221
8221
|
`;
|
|
8222
8222
|
|
|
8223
|
-
const SectionHeading = styled__default.default.div
|
|
8224
|
-
margin-top: 10px;
|
|
8225
|
-
margin-bottom: 5px;
|
|
8226
|
-
`;
|
|
8223
|
+
const SectionHeading = styled__default.default.div``;
|
|
8227
8224
|
|
|
8228
8225
|
const SectionButtonIsFilteredStyles = (props) => {
|
|
8229
8226
|
if (props.$isFilter) {
|
|
8230
8227
|
return styled.css`
|
|
8231
8228
|
${(props) => props.theme.theme_vars.h4}
|
|
8229
|
+
padding-top: 15px;
|
|
8230
|
+
padding-bottom: 15px;
|
|
8232
8231
|
`;
|
|
8233
8232
|
} else {
|
|
8234
8233
|
return styled.css`
|
|
8235
8234
|
${(props) => props.theme.theme_vars.h3}
|
|
8235
|
+
padding-top: ${(props) => props.theme.theme_vars.spacingSizes.small};
|
|
8236
|
+
padding-bottom: ${(props) => props.theme.theme_vars.spacingSizes.small};
|
|
8236
8237
|
`;
|
|
8237
8238
|
}
|
|
8238
8239
|
};
|
|
@@ -15050,7 +15051,7 @@ let Node$4 = class Node {
|
|
|
15050
15051
|
column: opts.end.column,
|
|
15051
15052
|
line: opts.end.line
|
|
15052
15053
|
};
|
|
15053
|
-
} else if (opts.endIndex) {
|
|
15054
|
+
} else if (typeof opts.endIndex === 'number') {
|
|
15054
15055
|
end = this.positionInside(opts.endIndex);
|
|
15055
15056
|
} else if (opts.index) {
|
|
15056
15057
|
end = this.positionInside(opts.index + 1);
|
|
@@ -16267,6 +16268,7 @@ function SourceMapGenerator$4(aArgs) {
|
|
|
16267
16268
|
this._file = util$4.getArg(aArgs, 'file', null);
|
|
16268
16269
|
this._sourceRoot = util$4.getArg(aArgs, 'sourceRoot', null);
|
|
16269
16270
|
this._skipValidation = util$4.getArg(aArgs, 'skipValidation', false);
|
|
16271
|
+
this._ignoreInvalidMapping = util$4.getArg(aArgs, 'ignoreInvalidMapping', false);
|
|
16270
16272
|
this._sources = new ArraySet$1();
|
|
16271
16273
|
this._names = new ArraySet$1();
|
|
16272
16274
|
this._mappings = new MappingList();
|
|
@@ -16281,12 +16283,12 @@ SourceMapGenerator$4.prototype._version = 3;
|
|
|
16281
16283
|
* @param aSourceMapConsumer The SourceMap.
|
|
16282
16284
|
*/
|
|
16283
16285
|
SourceMapGenerator$4.fromSourceMap =
|
|
16284
|
-
function SourceMapGenerator_fromSourceMap(aSourceMapConsumer) {
|
|
16286
|
+
function SourceMapGenerator_fromSourceMap(aSourceMapConsumer, generatorOps) {
|
|
16285
16287
|
var sourceRoot = aSourceMapConsumer.sourceRoot;
|
|
16286
|
-
var generator = new SourceMapGenerator$4({
|
|
16288
|
+
var generator = new SourceMapGenerator$4(Object.assign(generatorOps || {}, {
|
|
16287
16289
|
file: aSourceMapConsumer.file,
|
|
16288
16290
|
sourceRoot: sourceRoot
|
|
16289
|
-
});
|
|
16291
|
+
}));
|
|
16290
16292
|
aSourceMapConsumer.eachMapping(function (mapping) {
|
|
16291
16293
|
var newMapping = {
|
|
16292
16294
|
generated: {
|
|
@@ -16349,7 +16351,9 @@ SourceMapGenerator$4.prototype.addMapping =
|
|
|
16349
16351
|
var name = util$4.getArg(aArgs, 'name', null);
|
|
16350
16352
|
|
|
16351
16353
|
if (!this._skipValidation) {
|
|
16352
|
-
this._validateMapping(generated, original, source, name)
|
|
16354
|
+
if (this._validateMapping(generated, original, source, name) === false) {
|
|
16355
|
+
return;
|
|
16356
|
+
}
|
|
16353
16357
|
}
|
|
16354
16358
|
|
|
16355
16359
|
if (source != null) {
|
|
@@ -16515,11 +16519,18 @@ SourceMapGenerator$4.prototype._validateMapping =
|
|
|
16515
16519
|
// specific error message to try to guide them the right way.
|
|
16516
16520
|
// For example: https://github.com/Polymer/polymer-bundler/pull/519
|
|
16517
16521
|
if (aOriginal && typeof aOriginal.line !== 'number' && typeof aOriginal.column !== 'number') {
|
|
16518
|
-
|
|
16519
|
-
|
|
16520
|
-
|
|
16521
|
-
|
|
16522
|
-
|
|
16522
|
+
var message = 'original.line and original.column are not numbers -- you probably meant to omit ' +
|
|
16523
|
+
'the original mapping entirely and only map the generated position. If so, pass ' +
|
|
16524
|
+
'null for the original mapping instead of an object with empty or null values.';
|
|
16525
|
+
|
|
16526
|
+
if (this._ignoreInvalidMapping) {
|
|
16527
|
+
if (typeof console !== 'undefined' && console.warn) {
|
|
16528
|
+
console.warn(message);
|
|
16529
|
+
}
|
|
16530
|
+
return false;
|
|
16531
|
+
} else {
|
|
16532
|
+
throw new Error(message);
|
|
16533
|
+
}
|
|
16523
16534
|
}
|
|
16524
16535
|
|
|
16525
16536
|
if (aGenerated && 'line' in aGenerated && 'column' in aGenerated
|
|
@@ -16537,12 +16548,21 @@ SourceMapGenerator$4.prototype._validateMapping =
|
|
|
16537
16548
|
return;
|
|
16538
16549
|
}
|
|
16539
16550
|
else {
|
|
16540
|
-
|
|
16551
|
+
var message = 'Invalid mapping: ' + JSON.stringify({
|
|
16541
16552
|
generated: aGenerated,
|
|
16542
16553
|
source: aSource,
|
|
16543
16554
|
original: aOriginal,
|
|
16544
16555
|
name: aName
|
|
16545
|
-
})
|
|
16556
|
+
});
|
|
16557
|
+
|
|
16558
|
+
if (this._ignoreInvalidMapping) {
|
|
16559
|
+
if (typeof console !== 'undefined' && console.warn) {
|
|
16560
|
+
console.warn(message);
|
|
16561
|
+
}
|
|
16562
|
+
return false;
|
|
16563
|
+
} else {
|
|
16564
|
+
throw new Error(message)
|
|
16565
|
+
}
|
|
16546
16566
|
}
|
|
16547
16567
|
};
|
|
16548
16568
|
|
|
@@ -17989,7 +18009,7 @@ IndexedSourceMapConsumer.prototype.sourceContentFor =
|
|
|
17989
18009
|
var section = this._sections[i];
|
|
17990
18010
|
|
|
17991
18011
|
var content = section.consumer.sourceContentFor(aSource, true);
|
|
17992
|
-
if (content) {
|
|
18012
|
+
if (content || content === '') {
|
|
17993
18013
|
return content;
|
|
17994
18014
|
}
|
|
17995
18015
|
}
|
|
@@ -18959,6 +18979,7 @@ let MapGenerator$2 = class MapGenerator {
|
|
|
18959
18979
|
this.root = root;
|
|
18960
18980
|
this.opts = opts;
|
|
18961
18981
|
this.css = cssString;
|
|
18982
|
+
this.originalCSS = cssString;
|
|
18962
18983
|
this.usesFileUrls = !this.mapOpts.from && this.mapOpts.absolute;
|
|
18963
18984
|
|
|
18964
18985
|
this.memoizedFileURLs = new Map();
|
|
@@ -18994,7 +19015,7 @@ let MapGenerator$2 = class MapGenerator {
|
|
|
18994
19015
|
if (this.mapOpts.sourcesContent === false) {
|
|
18995
19016
|
map = new SourceMapConsumer(prev.text);
|
|
18996
19017
|
if (map.sourcesContent) {
|
|
18997
|
-
map.sourcesContent =
|
|
19018
|
+
map.sourcesContent = null;
|
|
18998
19019
|
}
|
|
18999
19020
|
} else {
|
|
19000
19021
|
map = prev.consumer();
|
|
@@ -19017,7 +19038,7 @@ let MapGenerator$2 = class MapGenerator {
|
|
|
19017
19038
|
}
|
|
19018
19039
|
}
|
|
19019
19040
|
} else if (this.css) {
|
|
19020
|
-
this.css = this.css.replace(
|
|
19041
|
+
this.css = this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm, '');
|
|
19021
19042
|
}
|
|
19022
19043
|
}
|
|
19023
19044
|
|
|
@@ -19040,9 +19061,14 @@ let MapGenerator$2 = class MapGenerator {
|
|
|
19040
19061
|
} else if (this.previous().length === 1) {
|
|
19041
19062
|
let prev = this.previous()[0].consumer();
|
|
19042
19063
|
prev.file = this.outputFile();
|
|
19043
|
-
this.map = SourceMapGenerator.fromSourceMap(prev
|
|
19064
|
+
this.map = SourceMapGenerator.fromSourceMap(prev, {
|
|
19065
|
+
ignoreInvalidMapping: true
|
|
19066
|
+
});
|
|
19044
19067
|
} else {
|
|
19045
|
-
this.map = new SourceMapGenerator({
|
|
19068
|
+
this.map = new SourceMapGenerator({
|
|
19069
|
+
file: this.outputFile(),
|
|
19070
|
+
ignoreInvalidMapping: true
|
|
19071
|
+
});
|
|
19046
19072
|
this.map.addMapping({
|
|
19047
19073
|
generated: { column: 0, line: 1 },
|
|
19048
19074
|
original: { column: 0, line: 1 },
|
|
@@ -19065,7 +19091,10 @@ let MapGenerator$2 = class MapGenerator {
|
|
|
19065
19091
|
|
|
19066
19092
|
generateString() {
|
|
19067
19093
|
this.css = '';
|
|
19068
|
-
this.map = new SourceMapGenerator({
|
|
19094
|
+
this.map = new SourceMapGenerator({
|
|
19095
|
+
file: this.outputFile(),
|
|
19096
|
+
ignoreInvalidMapping: true
|
|
19097
|
+
});
|
|
19069
19098
|
|
|
19070
19099
|
let line = 1;
|
|
19071
19100
|
let column = 1;
|
|
@@ -19219,7 +19248,7 @@ let MapGenerator$2 = class MapGenerator {
|
|
|
19219
19248
|
}
|
|
19220
19249
|
});
|
|
19221
19250
|
} else {
|
|
19222
|
-
let input = new Input$3(this.
|
|
19251
|
+
let input = new Input$3(this.originalCSS, this.opts);
|
|
19223
19252
|
if (input.map) this.previousMaps.push(input.map);
|
|
19224
19253
|
}
|
|
19225
19254
|
}
|
|
@@ -19486,6 +19515,8 @@ let Container$Z = class Container extends Node$1 {
|
|
|
19486
19515
|
normalize(nodes, sample) {
|
|
19487
19516
|
if (typeof nodes === 'string') {
|
|
19488
19517
|
nodes = cleanSource(parse$4(nodes).nodes);
|
|
19518
|
+
} else if (typeof nodes === 'undefined') {
|
|
19519
|
+
nodes = [];
|
|
19489
19520
|
} else if (Array.isArray(nodes)) {
|
|
19490
19521
|
nodes = nodes.slice(0);
|
|
19491
19522
|
for (let i of nodes) {
|
|
@@ -20067,7 +20098,6 @@ let Parser$1 = class Parser {
|
|
|
20067
20098
|
this.current = this.root;
|
|
20068
20099
|
this.spaces = '';
|
|
20069
20100
|
this.semicolon = false;
|
|
20070
|
-
this.customProperty = false;
|
|
20071
20101
|
|
|
20072
20102
|
this.createTokenizer();
|
|
20073
20103
|
this.root.source = { input, start: { column: 1, line: 1, offset: 0 } };
|
|
@@ -21275,6 +21305,9 @@ let NoWorkResult$1 = class NoWorkResult {
|
|
|
21275
21305
|
if (generatedMap) {
|
|
21276
21306
|
this.result.map = generatedMap;
|
|
21277
21307
|
}
|
|
21308
|
+
} else {
|
|
21309
|
+
map.clearAnnotation();
|
|
21310
|
+
this.result.css = map.css;
|
|
21278
21311
|
}
|
|
21279
21312
|
}
|
|
21280
21313
|
|
|
@@ -21379,7 +21412,7 @@ let Root$2 = root;
|
|
|
21379
21412
|
|
|
21380
21413
|
let Processor$1 = class Processor {
|
|
21381
21414
|
constructor(plugins = []) {
|
|
21382
|
-
this.version = '8.4.
|
|
21415
|
+
this.version = '8.4.38';
|
|
21383
21416
|
this.plugins = this.normalize(plugins);
|
|
21384
21417
|
}
|
|
21385
21418
|
|
|
@@ -21415,10 +21448,10 @@ let Processor$1 = class Processor {
|
|
|
21415
21448
|
|
|
21416
21449
|
process(css, opts = {}) {
|
|
21417
21450
|
if (
|
|
21418
|
-
this.plugins.length
|
|
21419
|
-
|
|
21420
|
-
|
|
21421
|
-
|
|
21451
|
+
!this.plugins.length &&
|
|
21452
|
+
!opts.parser &&
|
|
21453
|
+
!opts.stringifier &&
|
|
21454
|
+
!opts.syntax
|
|
21422
21455
|
) {
|
|
21423
21456
|
return new NoWorkResult(this, css, opts)
|
|
21424
21457
|
} else {
|
|
@@ -21855,7 +21888,7 @@ function sanitizeHtml(html, options, _recursing) {
|
|
|
21855
21888
|
if (!tagAllowed(name) || (options.disallowedTagsMode === 'recursiveEscape' && !isEmptyObject(skipMap)) || (options.nestingLimit != null && depth >= options.nestingLimit)) {
|
|
21856
21889
|
skip = true;
|
|
21857
21890
|
skipMap[depth] = true;
|
|
21858
|
-
if (options.disallowedTagsMode === 'discard') {
|
|
21891
|
+
if (options.disallowedTagsMode === 'discard' || options.disallowedTagsMode === 'completelyDiscard') {
|
|
21859
21892
|
if (nonTextTagsArray.indexOf(name) !== -1) {
|
|
21860
21893
|
skipText = true;
|
|
21861
21894
|
skipTextDepth = 1;
|
|
@@ -21865,7 +21898,7 @@ function sanitizeHtml(html, options, _recursing) {
|
|
|
21865
21898
|
}
|
|
21866
21899
|
depth++;
|
|
21867
21900
|
if (skip) {
|
|
21868
|
-
if (options.disallowedTagsMode === 'discard') {
|
|
21901
|
+
if (options.disallowedTagsMode === 'discard' || options.disallowedTagsMode === 'completelyDiscard') {
|
|
21869
21902
|
// We want the contents but not this tag
|
|
21870
21903
|
return;
|
|
21871
21904
|
}
|
|
@@ -21888,9 +21921,11 @@ function sanitizeHtml(html, options, _recursing) {
|
|
|
21888
21921
|
delete frame.attribs[a];
|
|
21889
21922
|
return;
|
|
21890
21923
|
}
|
|
21891
|
-
// If the value is empty,
|
|
21924
|
+
// If the value is empty, check if the attribute is in the allowedEmptyAttributes array.
|
|
21925
|
+
// If it is not in the allowedEmptyAttributes array, and it is a known non-boolean attribute, delete it
|
|
21892
21926
|
// List taken from https://html.spec.whatwg.org/multipage/indices.html#attributes-3
|
|
21893
|
-
if (value === '' && (options.
|
|
21927
|
+
if (value === '' && (!options.allowedEmptyAttributes.includes(a)) &&
|
|
21928
|
+
(options.nonBooleanAttributes.includes(a) || options.nonBooleanAttributes.includes('*'))) {
|
|
21894
21929
|
delete frame.attribs[a];
|
|
21895
21930
|
return;
|
|
21896
21931
|
}
|
|
@@ -22044,7 +22079,7 @@ function sanitizeHtml(html, options, _recursing) {
|
|
|
22044
22079
|
if (a === 'style') {
|
|
22045
22080
|
if (options.parseStyleAttributes) {
|
|
22046
22081
|
try {
|
|
22047
|
-
const abstractSyntaxTree = postcssParse(name + ' {' + value + '}');
|
|
22082
|
+
const abstractSyntaxTree = postcssParse(name + ' {' + value + '}', { map: false });
|
|
22048
22083
|
const filteredAST = filterCss(abstractSyntaxTree, options.allowedStyles);
|
|
22049
22084
|
|
|
22050
22085
|
value = stringifyStyleAttributes(filteredAST);
|
|
@@ -22067,6 +22102,8 @@ function sanitizeHtml(html, options, _recursing) {
|
|
|
22067
22102
|
result += ' ' + a;
|
|
22068
22103
|
if (value && value.length) {
|
|
22069
22104
|
result += '="' + escapeHtml(value, true) + '"';
|
|
22105
|
+
} else if (options.allowedEmptyAttributes.includes(a)) {
|
|
22106
|
+
result += '=""';
|
|
22070
22107
|
}
|
|
22071
22108
|
} else {
|
|
22072
22109
|
delete frame.attribs[a];
|
|
@@ -22100,7 +22137,9 @@ function sanitizeHtml(html, options, _recursing) {
|
|
|
22100
22137
|
text = lastFrame.innerText !== undefined ? lastFrame.innerText : text;
|
|
22101
22138
|
}
|
|
22102
22139
|
|
|
22103
|
-
if (options.disallowedTagsMode === '
|
|
22140
|
+
if (options.disallowedTagsMode === 'completelyDiscard' && !tagAllowed(tag)) {
|
|
22141
|
+
text = '';
|
|
22142
|
+
} else if ((options.disallowedTagsMode === 'discard' || options.disallowedTagsMode === 'completelyDiscard') && ((tag === 'script') || (tag === 'style'))) {
|
|
22104
22143
|
// htmlparser2 gives us these as-is. Escaping them ruins the content. Allowing
|
|
22105
22144
|
// script tags is, by definition, game over for XSS protection, so if that's
|
|
22106
22145
|
// your concern, don't allow them. The same is essentially true for style tags
|
|
@@ -22148,7 +22187,7 @@ function sanitizeHtml(html, options, _recursing) {
|
|
|
22148
22187
|
const skip = skipMap[depth];
|
|
22149
22188
|
if (skip) {
|
|
22150
22189
|
delete skipMap[depth];
|
|
22151
|
-
if (options.disallowedTagsMode === 'discard') {
|
|
22190
|
+
if (options.disallowedTagsMode === 'discard' || options.disallowedTagsMode === 'completelyDiscard') {
|
|
22152
22191
|
frame.updateParentNodeText();
|
|
22153
22192
|
return;
|
|
22154
22193
|
}
|
|
@@ -22469,6 +22508,9 @@ sanitizeHtml.defaults = {
|
|
|
22469
22508
|
// these attributes would make sense if we did.
|
|
22470
22509
|
img: [ 'src', 'srcset', 'alt', 'title', 'width', 'height', 'loading' ]
|
|
22471
22510
|
},
|
|
22511
|
+
allowedEmptyAttributes: [
|
|
22512
|
+
'alt'
|
|
22513
|
+
],
|
|
22472
22514
|
// Lots of these won't come up by default because we don't allow them
|
|
22473
22515
|
selfClosing: [ 'img', 'br', 'hr', 'area', 'base', 'basefont', 'input', 'link', 'meta' ],
|
|
22474
22516
|
// URL schemes we permit
|
|
@@ -22522,8 +22564,31 @@ var BinFinder = function (_a) {
|
|
|
22522
22564
|
houseNumber: '',
|
|
22523
22565
|
},
|
|
22524
22566
|
}); _m.register; var handleSubmit = _m.handleSubmit; _m.watch; var control = _m.control, errors = _m.formState.errors, getValues = _m.getValues, setValue = _m.setValue, setError = _m.setError;
|
|
22567
|
+
var uprnCookieName = 'uprn-cookie';
|
|
22568
|
+
// Try and retrieve uprn and address stored in cookie if cookies accepted
|
|
22569
|
+
React.useEffect(function () {
|
|
22570
|
+
var _a, _b;
|
|
22571
|
+
if (wereCookiesAccepted()) {
|
|
22572
|
+
var addressCookie = getCookie(uprnCookieName);
|
|
22573
|
+
if (addressCookie !== null) {
|
|
22574
|
+
var parsedCookie = JSON.parse(addressCookie);
|
|
22575
|
+
setUprn((_a = parsedCookie.uprn) !== null && _a !== void 0 ? _a : '');
|
|
22576
|
+
setAddress((_b = parsedCookie.address) !== null && _b !== void 0 ? _b : '');
|
|
22577
|
+
}
|
|
22578
|
+
}
|
|
22579
|
+
}, []);
|
|
22525
22580
|
React.useEffect(function () {
|
|
22526
22581
|
if (uprn) {
|
|
22582
|
+
// Store uprn and address in cookie if cookies accepted
|
|
22583
|
+
if (wereCookiesAccepted()) {
|
|
22584
|
+
var date = new Date();
|
|
22585
|
+
date.setTime(date.getTime() + 365 * 24 * 60 * 60 * 1000);
|
|
22586
|
+
var cookie = {
|
|
22587
|
+
uprn: uprn,
|
|
22588
|
+
address: address,
|
|
22589
|
+
};
|
|
22590
|
+
document.cookie = "".concat(uprnCookieName, "=").concat(JSON.stringify(cookie), ";expires=").concat(date.toUTCString(), ";path=/");
|
|
22591
|
+
}
|
|
22527
22592
|
getBinCollections();
|
|
22528
22593
|
}
|
|
22529
22594
|
}, [uprn]);
|
|
@@ -23490,9 +23555,9 @@ const Wrapper$4 = styled__default.default.div`
|
|
|
23490
23555
|
const Content$4 = styled__default.default.div``;
|
|
23491
23556
|
|
|
23492
23557
|
const CTA = styled__default.default.a`
|
|
23493
|
-
margin-top:
|
|
23558
|
+
margin-top: ${(props) => props.theme.theme_vars.spacingSizes.extra_small};
|
|
23494
23559
|
display: inline-block;
|
|
23495
|
-
padding:
|
|
23560
|
+
padding: ${(props) => props.theme.theme_vars.spacingSizes.small} 7px;
|
|
23496
23561
|
margin-left: -7px;
|
|
23497
23562
|
${(props) => props.theme.linkStyles};
|
|
23498
23563
|
:hover {
|
|
@@ -23998,7 +24063,7 @@ var WarningTextDisclaimer = function () {
|
|
|
23998
24063
|
"."));
|
|
23999
24064
|
};
|
|
24000
24065
|
|
|
24001
|
-
const AccessibleLinks = styled__default.default.a`
|
|
24066
|
+
const AccessibleLinks$1 = styled__default.default.a`
|
|
24002
24067
|
${props => props.theme.fontStyles}
|
|
24003
24068
|
|
|
24004
24069
|
position: absolute;
|
|
@@ -24054,10 +24119,10 @@ const AccessibleLinks = styled__default.default.a`
|
|
|
24054
24119
|
|
|
24055
24120
|
`;
|
|
24056
24121
|
|
|
24057
|
-
var
|
|
24122
|
+
var AccessibleLinks = function (_a) {
|
|
24058
24123
|
var _b = _a.AccessibleLinksArray, AccessibleLinksArray = _b === void 0 ? null : _b;
|
|
24059
24124
|
return (React__default.default.createElement(React__default.default.Fragment, null, AccessibleLinksArray && AccessibleLinksArray.map(function (link, i) {
|
|
24060
|
-
return React__default.default.createElement(AccessibleLinks, { key: 'accessible-link-' + i, href: link.url }, link.title);
|
|
24125
|
+
return React__default.default.createElement(AccessibleLinks$1, { key: 'accessible-link-' + i, href: link.url }, link.title);
|
|
24061
24126
|
})));
|
|
24062
24127
|
};
|
|
24063
24128
|
|
|
@@ -24468,7 +24533,7 @@ const List$1 = styled__default.default.ul`
|
|
|
24468
24533
|
`;
|
|
24469
24534
|
|
|
24470
24535
|
const ListItem$1 = styled__default.default.li`
|
|
24471
|
-
margin-bottom:
|
|
24536
|
+
margin-bottom: 5px !important;
|
|
24472
24537
|
|
|
24473
24538
|
&::marker {
|
|
24474
24539
|
font-size: ${(props) => props.theme.theme_vars.spacingSizes.medium};
|
|
@@ -24480,6 +24545,8 @@ const ListItem$1 = styled__default.default.li`
|
|
|
24480
24545
|
`;
|
|
24481
24546
|
|
|
24482
24547
|
const Link$2 = styled__default.default.a`
|
|
24548
|
+
display: inline-block;
|
|
24549
|
+
padding: ${(props) => props.theme.theme_vars.spacingSizes.extra_small} 0;
|
|
24483
24550
|
${(props) => props.theme.fontStyles};
|
|
24484
24551
|
${(props) => props.theme.linkStyles};
|
|
24485
24552
|
margin-left: ${(props) => props.theme.theme_vars.spacingSizes.small};
|
|
@@ -25086,9 +25153,9 @@ const Button$3 = styled__default.default.button`
|
|
|
25086
25153
|
|
|
25087
25154
|
width: ${(props) => (props.$isLarge ? '5rem' : '3rem')};
|
|
25088
25155
|
text-align: center;
|
|
25089
|
-
height: ${(props) => (props.$isLarge ? '2.9rem' : '2.28rem')};
|
|
25156
|
+
/* height: ${(props) => (props.$isLarge ? '2.9rem' : '2.28rem')}; */
|
|
25157
|
+
height: ${(props) => (props.$isLarge ? '3.22rem' : '2.6rem')};
|
|
25090
25158
|
@media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.m}) {
|
|
25091
|
-
height: ${(props) => (props.$isLarge ? '3.22rem' : '2.6rem')};
|
|
25092
25159
|
margin-top: ${(props) => (props.$isErrored ? (props.$isLarge ? '26px' : '26px') : 0)};
|
|
25093
25160
|
}
|
|
25094
25161
|
|
|
@@ -26845,7 +26912,19 @@ const Title$3 = styled__default.default.a`
|
|
|
26845
26912
|
${(props) => props.theme.linkStyles};
|
|
26846
26913
|
font-size: 1.2em;
|
|
26847
26914
|
display: block;
|
|
26848
|
-
|
|
26915
|
+
padding: 6px 0;
|
|
26916
|
+
|
|
26917
|
+
&:hover {
|
|
26918
|
+
${(props) => props.theme.linkStylesHover};
|
|
26919
|
+
}
|
|
26920
|
+
|
|
26921
|
+
&:focus {
|
|
26922
|
+
${(props) => props.theme.linkStylesFocus};
|
|
26923
|
+
}
|
|
26924
|
+
|
|
26925
|
+
&:active {
|
|
26926
|
+
${(props) => props.theme.linkStylesActive};
|
|
26927
|
+
}
|
|
26849
26928
|
`;
|
|
26850
26929
|
|
|
26851
26930
|
const ServiceArea = styled__default.default.p`
|
|
@@ -27115,85 +27194,86 @@ var SectionLinks = function (_a) {
|
|
|
27115
27194
|
};
|
|
27116
27195
|
|
|
27117
27196
|
const Container$e = styled__default.default.aside`
|
|
27118
|
-
|
|
27119
|
-
|
|
27197
|
+
padding-top: 20px;
|
|
27198
|
+
display: block;
|
|
27120
27199
|
|
|
27121
|
-
|
|
27122
|
-
|
|
27123
|
-
|
|
27124
|
-
|
|
27125
|
-
|
|
27126
|
-
|
|
27127
|
-
|
|
27128
|
-
|
|
27129
|
-
|
|
27130
|
-
|
|
27131
|
-
|
|
27132
|
-
|
|
27133
|
-
|
|
27134
|
-
|
|
27135
|
-
|
|
27136
|
-
|
|
27137
|
-
|
|
27138
|
-
|
|
27139
|
-
|
|
27140
|
-
|
|
27141
|
-
}
|
|
27200
|
+
@media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.m}) {
|
|
27201
|
+
position: absolute;
|
|
27202
|
+
width: 1px;
|
|
27203
|
+
height: 1px;
|
|
27204
|
+
margin: 0;
|
|
27205
|
+
overflow: hidden;
|
|
27206
|
+
clip: rect(0 0 0 0);
|
|
27207
|
+
clip-path: inset(50%);
|
|
27208
|
+
white-space: nowrap;
|
|
27209
|
+
|
|
27210
|
+
&:focus-within {
|
|
27211
|
+
position: static;
|
|
27212
|
+
width: auto;
|
|
27213
|
+
height: auto;
|
|
27214
|
+
margin: inherit;
|
|
27215
|
+
overflow: visible;
|
|
27216
|
+
clip: auto;
|
|
27217
|
+
-webkit-clip-path: none;
|
|
27218
|
+
clip-path: none;
|
|
27219
|
+
white-space: inherit;
|
|
27142
27220
|
}
|
|
27221
|
+
}
|
|
27143
27222
|
`;
|
|
27144
|
-
const Contents = styled__default.default.nav
|
|
27145
|
-
`;
|
|
27223
|
+
const Contents = styled__default.default.nav``;
|
|
27146
27224
|
const ContentsList = styled__default.default.ul`
|
|
27147
|
-
|
|
27148
|
-
|
|
27149
|
-
|
|
27150
|
-
|
|
27225
|
+
margin-top: 10px !important;
|
|
27226
|
+
margin-left: 0 !important;
|
|
27227
|
+
margin-bottom: 20px;
|
|
27228
|
+
list-style-type: none;
|
|
27151
27229
|
|
|
27152
|
-
|
|
27153
|
-
|
|
27154
|
-
|
|
27230
|
+
font-weight: 400;
|
|
27231
|
+
/* font-size: 14px; */
|
|
27232
|
+
line-height: 1.5;
|
|
27155
27233
|
`;
|
|
27156
27234
|
const ContentsTitle = styled__default.default.h2`
|
|
27157
|
-
|
|
27158
|
-
|
|
27159
|
-
|
|
27160
|
-
|
|
27235
|
+
font-weight: 400;
|
|
27236
|
+
font-size: 14px;
|
|
27237
|
+
line-height: 1.5;
|
|
27238
|
+
margin: 0;
|
|
27161
27239
|
`;
|
|
27162
27240
|
|
|
27163
27241
|
const ContentsItem = styled__default.default.li`
|
|
27164
|
-
|
|
27165
|
-
|
|
27166
|
-
|
|
27167
|
-
|
|
27168
|
-
|
|
27169
|
-
|
|
27170
|
-
|
|
27171
|
-
|
|
27172
|
-
|
|
27173
|
-
|
|
27174
|
-
|
|
27175
|
-
|
|
27176
|
-
|
|
27177
|
-
|
|
27178
|
-
|
|
27179
|
-
|
|
27242
|
+
position: relative;
|
|
27243
|
+
margin-bottom: 5px !important;
|
|
27244
|
+
padding-left: 25px;
|
|
27245
|
+
|
|
27246
|
+
&:before {
|
|
27247
|
+
content: '—' !important;
|
|
27248
|
+
position: absolute !important;
|
|
27249
|
+
left: 0 !important;
|
|
27250
|
+
width: 20px !important;
|
|
27251
|
+
overflow: hidden !important;
|
|
27252
|
+
background: transparent !important;
|
|
27253
|
+
height: auto !important;
|
|
27254
|
+
width: auto !important;
|
|
27255
|
+
border-radius: 0 !important;
|
|
27256
|
+
top: 10px !important;
|
|
27257
|
+
}
|
|
27180
27258
|
`;
|
|
27181
27259
|
const InlineLink = styled__default.default.a`
|
|
27182
|
-
|
|
27183
|
-
|
|
27260
|
+
${(props) => props.theme.linkStyles}
|
|
27261
|
+
padding: ${(props) => props.theme.theme_vars.spacingSizes.small} 0;
|
|
27262
|
+
font-weight: 400;
|
|
27263
|
+
display: inline-block;
|
|
27184
27264
|
|
|
27185
|
-
|
|
27186
|
-
|
|
27187
|
-
|
|
27188
|
-
|
|
27189
|
-
|
|
27190
|
-
|
|
27191
|
-
|
|
27192
|
-
}
|
|
27193
|
-
}
|
|
27194
|
-
&:active{
|
|
27195
|
-
${props => props.theme.linkStylesActive}
|
|
27265
|
+
&:hover {
|
|
27266
|
+
${(props) => props.theme.linkStylesHover}
|
|
27267
|
+
}
|
|
27268
|
+
&:focus {
|
|
27269
|
+
${(props) => props.theme.linkStylesFocus}
|
|
27270
|
+
svg {
|
|
27271
|
+
fill: ${(props) => props.theme.theme_vars.colours.black};
|
|
27196
27272
|
}
|
|
27273
|
+
}
|
|
27274
|
+
&:active {
|
|
27275
|
+
${(props) => props.theme.linkStylesActive}
|
|
27276
|
+
}
|
|
27197
27277
|
`;
|
|
27198
27278
|
|
|
27199
27279
|
var SectionLinksMobileContents = function (_a) {
|
|
@@ -27201,10 +27281,8 @@ var SectionLinksMobileContents = function (_a) {
|
|
|
27201
27281
|
return (React__default.default.createElement(Container$e, null,
|
|
27202
27282
|
React__default.default.createElement(Contents, null,
|
|
27203
27283
|
React__default.default.createElement(ContentsTitle, null, "Contents"),
|
|
27204
|
-
React__default.default.createElement(ContentsList, null, sectionLinksArray.map(function (link) {
|
|
27205
|
-
|
|
27206
|
-
React__default.default.createElement(InlineLink, { href: "#" + link.id, title: link.title }, link.title));
|
|
27207
|
-
})))));
|
|
27284
|
+
React__default.default.createElement(ContentsList, null, sectionLinksArray.map(function (link) { return (React__default.default.createElement(ContentsItem, { key: link.title },
|
|
27285
|
+
React__default.default.createElement(InlineLink, { href: '#' + link.id, title: link.title }, link.title))); })))));
|
|
27208
27286
|
};
|
|
27209
27287
|
|
|
27210
27288
|
const Container$d = styled__default.default.div`
|
|
@@ -27224,7 +27302,7 @@ const MobileTitleButton = styled__default.default.button`
|
|
|
27224
27302
|
border: none;
|
|
27225
27303
|
text-align: left;
|
|
27226
27304
|
border-bottom: 2px solid ${(props) => props.theme.theme_vars.colours.action};
|
|
27227
|
-
padding: ${(props) => props.theme.theme_vars.spacingSizes.small};
|
|
27305
|
+
padding: ${(props) => `${props.theme.theme_vars.spacingSizes.medium} ${props.theme.theme_vars.spacingSizes.small}`};
|
|
27228
27306
|
font-size: 1em;
|
|
27229
27307
|
|
|
27230
27308
|
svg {
|
|
@@ -27331,7 +27409,7 @@ const ListItem = styled__default.default.li`
|
|
|
27331
27409
|
const ListItemLink = styled__default.default.a`
|
|
27332
27410
|
display: block;
|
|
27333
27411
|
color: ${(props) => props.theme.theme_vars.colours.action};
|
|
27334
|
-
padding:
|
|
27412
|
+
padding: ${(props) => props.theme.theme_vars.spacingSizes.small};
|
|
27335
27413
|
text-decoration: none;
|
|
27336
27414
|
|
|
27337
27415
|
&:hover {
|
|
@@ -27842,7 +27920,7 @@ const ReorderButton = styled__default.default.button`
|
|
|
27842
27920
|
border-radius: ${(props) => props.theme.theme_vars.border_radius};
|
|
27843
27921
|
margin-top: 10px;
|
|
27844
27922
|
margin-right: 10px;
|
|
27845
|
-
padding:
|
|
27923
|
+
padding: ${(props) => props.theme.theme_vars.spacingSizes.small};
|
|
27846
27924
|
line-height: 1.5;
|
|
27847
27925
|
font-size: 0.9em;
|
|
27848
27926
|
cursor: pointer;
|
|
@@ -28863,7 +28941,7 @@ var generate_theme = function (theme_vars) {
|
|
|
28863
28941
|
cardinal_name: theme_vars.cardinal_name,
|
|
28864
28942
|
is_memorial: theme_vars.is_memorial,
|
|
28865
28943
|
theme_vars: theme_vars,
|
|
28866
|
-
fontStyles: "\n font-family: ".concat(theme_vars.fontstack, ";\n color: ").concat(theme_vars.colours.black, ";\n font-size:
|
|
28944
|
+
fontStyles: "\n font-family: ".concat(theme_vars.fontstack, ";\n color: ").concat(theme_vars.colours.black, ";\n font-size: 19px;\n font-size: 1.1875rem;\n line-height: 1.45;\n -webkit-font-smoothing: antialiased;\n \n @media screen and (min-width: ").concat(theme_vars.breakpoints.m, "){\n font-size: 19px;\n font-size: 1.1875rem;\n line-height: 1.45;\n\n p, h2, h3, h4, ul, ol {\n max-width: 750px;\n }\n }\n "),
|
|
28867
28945
|
headingStyles: "\n h1 {\n ".concat(theme_vars.h1, "\n }\n h2 {\n ").concat(theme_vars.h2, "\n }\n h3 {\n ").concat(theme_vars.h3, "\n }\n h4 {\n ").concat(theme_vars.h4, "\n }\n "),
|
|
28868
28946
|
linkStyles: "\n color: ".concat(theme_vars.colours.action, ";\n font-weight: 700;\n text-decoration: underline;\n "),
|
|
28869
28947
|
linkStylesHover: "\n color: ".concat(theme_vars.colours.action_dark, ";\n text-decoration: underline;\n text-decoration-style: dotted;\n "),
|
|
@@ -32225,7 +32303,7 @@ var DirectoryDocumentList = function (_a) {
|
|
|
32225
32303
|
React__default.default.createElement(Column, { small: "full", medium: "full", large: "full" }, !isLoading && (React__default.default.createElement(Pagination, { currentPage: pageNumber, totalResults: totalResults, resultsPerPage: perPage, postTo: directoryPath, buttonClickOverride: setPageNumber }))))))));
|
|
32226
32304
|
};
|
|
32227
32305
|
|
|
32228
|
-
exports.AccessibleLinks =
|
|
32306
|
+
exports.AccessibleLinks = AccessibleLinks;
|
|
32229
32307
|
exports.Accordion = Accordion$1;
|
|
32230
32308
|
exports.AlertBanner = AlertBanner;
|
|
32231
32309
|
exports.AlertBannerService = AlertBannerService;
|