northants-design-system 1.6.4 → 1.6.6
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 +91 -53
- package/build/index.js.map +1 -1
- package/build/index.mjs.js +91 -53
- package/build/index.mjs.js.map +1 -1
- package/build/library/pages/SearchResultsPageExample/SearchResultsPageExample.d.ts +1 -0
- package/build/library/structure/PhaseBanner/PhaseBanner.d.ts +6 -2
- package/build/library/structure/PhaseBanner/PhaseBanner.types.d.ts +12 -0
- package/package.json +1 -1
- package/build/index.mjs +0 -32799
- package/build/index.mjs.map +0 -1
- package/build/library/structure/NewsArticleFeaturedBlock/NewsArticleFeaturedBlock.storydata.d.ts +0 -5
- package/build/library/structure/WebChatForm/WebChatForm.d.ts +0 -4
- package/build/library/structure/WebChatForm/WebChatForm.types.d.ts +0 -10
- /package/build/library/structure/{WebChatForm/WebChatForm.test.d.ts → PhaseBanner/PhaseBanner.test.d.ts} +0 -0
package/build/index.js
CHANGED
|
@@ -28192,8 +28192,11 @@ const ShowFiltersButton = styled__default.default.button`
|
|
|
28192
28192
|
padding: 0;
|
|
28193
28193
|
margin: 0;
|
|
28194
28194
|
${(props) => props.theme.linkStyles}
|
|
28195
|
-
font-size: 1.
|
|
28196
|
-
margin-
|
|
28195
|
+
font-size: 1.1em;
|
|
28196
|
+
margin-top: ${(props) => props.theme.theme_vars.spacingSizes.extra_small};
|
|
28197
|
+
margin-bottom: ${(props) => props.theme.theme_vars.spacingSizes.extra_small};
|
|
28198
|
+
padding-top: ${(props) => props.theme.theme_vars.spacingSizes.small};
|
|
28199
|
+
padding-bottom: ${(props) => props.theme.theme_vars.spacingSizes.small};
|
|
28197
28200
|
display: block;
|
|
28198
28201
|
|
|
28199
28202
|
&:hover {
|
|
@@ -28226,7 +28229,7 @@ const handleFullScreen = (props) => {
|
|
|
28226
28229
|
position: fixed;
|
|
28227
28230
|
top: 0;
|
|
28228
28231
|
left: 0;
|
|
28229
|
-
z-index:
|
|
28232
|
+
z-index: 30;
|
|
28230
28233
|
padding: 20px;
|
|
28231
28234
|
box-sizing: border-box;
|
|
28232
28235
|
overflow: auto;
|
|
@@ -28250,8 +28253,8 @@ const FilterHeader = styled__default.default.div`
|
|
|
28250
28253
|
display: flex;
|
|
28251
28254
|
flex-direction: row;
|
|
28252
28255
|
justify-content: space-between;
|
|
28253
|
-
margin-bottom:
|
|
28254
|
-
padding-bottom:
|
|
28256
|
+
margin-bottom: ${(props) => props.theme.theme_vars.spacingSizes.small};
|
|
28257
|
+
padding-bottom: ${(props) => props.theme.theme_vars.spacingSizes.small};
|
|
28255
28258
|
|
|
28256
28259
|
@media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.m}) {
|
|
28257
28260
|
display: block;
|
|
@@ -28269,11 +28272,6 @@ const FilterHeading = styled__default.default.h2`
|
|
|
28269
28272
|
}
|
|
28270
28273
|
`;
|
|
28271
28274
|
|
|
28272
|
-
// margin: 0;
|
|
28273
|
-
// padding: 0;
|
|
28274
|
-
// display: block;
|
|
28275
|
-
// overflow: hidden;
|
|
28276
|
-
|
|
28277
28275
|
const Container$s = styled__default.default.a`
|
|
28278
28276
|
${props => props.theme.linkStyles}
|
|
28279
28277
|
color: ${props => props.theme.theme_vars.colours.negative} !important;
|
|
@@ -28367,7 +28365,7 @@ var NewsArticleFilterAccordion = function (_a) {
|
|
|
28367
28365
|
React__default.default.createElement(Filters$1, { "$isFullScreen": isFullScreen, id: "PageFilters", "aria-labelledby": "PageFiltersLabel" },
|
|
28368
28366
|
React__default.default.createElement(FilterHeader, null,
|
|
28369
28367
|
React__default.default.createElement(FilterHeading, { id: "PageFiltersLabel" }, "Search and filters"),
|
|
28370
|
-
React__default.default.createElement(ShowFiltersButton, { onClick: hideFullscreenFilters }, "
|
|
28368
|
+
React__default.default.createElement(ShowFiltersButton, { onClick: hideFullscreenFilters }, "Hide search and filters")),
|
|
28371
28369
|
React__default.default.createElement(Accordion$1, { isFilter: true, sections: sections, withReadMore: false }),
|
|
28372
28370
|
count > 0 && React__default.default.createElement(RemoveAllFilters, { count: count }))));
|
|
28373
28371
|
};
|
|
@@ -28987,66 +28985,106 @@ var PageWrapper = function (_a) {
|
|
|
28987
28985
|
};
|
|
28988
28986
|
|
|
28989
28987
|
const Wrapper = styled__default.default.div`
|
|
28990
|
-
|
|
28988
|
+
background: ${(props) =>
|
|
28989
|
+
props.$isHome
|
|
28990
|
+
? props.theme.theme_vars.theme_name === 'Memorial theme North' ||
|
|
28991
|
+
props.theme.theme_vars.theme_name === 'Memorial theme West'
|
|
28992
|
+
? props.theme.theme_vars.colours.grey_dark
|
|
28993
|
+
: props.theme.theme_vars.colours.action
|
|
28994
|
+
: 'transparent'};
|
|
28991
28995
|
`;
|
|
28992
28996
|
|
|
28993
28997
|
const StyledMaxWidthContainer = styled__default.default(MaxWidthContainer)`
|
|
28994
|
-
|
|
28995
|
-
|
|
28996
|
-
|
|
28997
|
-
|
|
28998
|
-
|
|
28999
|
-
|
|
29000
|
-
|
|
29001
|
-
|
|
29002
|
-
|
|
29003
|
-
|
|
29004
|
-
|
|
28998
|
+
padding-top: ${(props) =>
|
|
28999
|
+
props.$isHome ? props.theme.theme_vars.spacingSizes.extra_small : props.theme.theme_vars.spacingSizes.small};
|
|
29000
|
+
padding-bottom: ${(props) =>
|
|
29001
|
+
props.$isHome ? props.theme.theme_vars.spacingSizes.extra_small : props.theme.theme_vars.spacingSizes.small};
|
|
29002
|
+
border-bottom: ${(props) => (props.$isHome ? 'none' : '1px solid ' + props.theme.theme_vars.colours.grey + '80')};
|
|
29003
|
+
display: flex;
|
|
29004
|
+
flex-direction: row;
|
|
29005
|
+
align-items: flex-start;
|
|
29006
|
+
margin: auto;
|
|
29007
|
+
margin-left: ${(props) => props.theme.theme_vars.spacingSizes.large};
|
|
29008
|
+
margin-right: ${(props) => props.theme.theme_vars.spacingSizes.large};
|
|
29009
|
+
color: ${(props) => (props.$isHome ? props.theme.theme_vars.colours.white : props.theme.theme_vars.colours.black)};
|
|
29005
29010
|
`;
|
|
29006
29011
|
|
|
29007
|
-
|
|
29008
|
-
|
|
29009
|
-
|
|
29012
|
+
styled__default.default.span`
|
|
29013
|
+
padding: ${(props) => props.theme.theme_vars.spacingSizes.extra_small};
|
|
29014
|
+
cursor: default;
|
|
29015
|
+
`;
|
|
29010
29016
|
|
|
29011
|
-
|
|
29017
|
+
const PhaseContentContainer = styled__default.default.div`
|
|
29018
|
+
margin: 0 0 0 ${(props) => props.theme.theme_vars.spacingSizes.medium};
|
|
29019
|
+
padding: 0;
|
|
29020
|
+
|
|
29021
|
+
a {
|
|
29022
|
+
color: ${(props) =>
|
|
29023
|
+
props.$isHome ? props.theme.theme_vars.colours.white : props.theme.theme_vars.colours.black} !important;
|
|
29024
|
+
&:hover {
|
|
29025
|
+
${(props) => props.theme.linkStylesHover}
|
|
29012
29026
|
|
|
29027
|
+
color: ${(props) =>
|
|
29028
|
+
props.$isHome ? props.theme.theme_vars.colours.white : props.theme.theme_vars.colours.black} !important;
|
|
29013
29029
|
}
|
|
29014
|
-
`;
|
|
29015
29030
|
|
|
29016
|
-
|
|
29017
|
-
|
|
29031
|
+
&:focus {
|
|
29032
|
+
${(props) => props.theme.linkStylesFocus}
|
|
29018
29033
|
|
|
29019
|
-
|
|
29020
|
-
|
|
29034
|
+
color: ${(props) =>
|
|
29035
|
+
props.$isHome ? props.theme.theme_vars.colours.white : props.theme.theme_vars.colours.black} !important;
|
|
29021
29036
|
}
|
|
29037
|
+
|
|
29038
|
+
&:visited {
|
|
29039
|
+
color: ${(props) =>
|
|
29040
|
+
props.$isHome ? props.theme.theme_vars.colours.white : props.theme.theme_vars.colours.black} !important;
|
|
29041
|
+
}
|
|
29042
|
+
}
|
|
29043
|
+
|
|
29044
|
+
p {
|
|
29045
|
+
margin-top: auto;
|
|
29046
|
+
margin-bottom: auto;
|
|
29047
|
+
padding-top: ${(props) => props.theme.theme_vars.spacingSizes.small};
|
|
29048
|
+
padding-bottom: ${(props) => `calc(${props.theme.theme_vars.spacingSizes.small} - 3px)`};
|
|
29049
|
+
padding-left: ${(props) => props.theme.theme_vars.spacingSizes.medium};
|
|
29050
|
+
}
|
|
29051
|
+
`;
|
|
29052
|
+
|
|
29053
|
+
const PhaseContainer = styled__default.default.div`
|
|
29054
|
+
padding: ${(props) => props.theme.theme_vars.spacingSizes.extra_small} 0;
|
|
29055
|
+
margin-top: auto;
|
|
29056
|
+
margin-bottom: auto;
|
|
29022
29057
|
`;
|
|
29023
29058
|
|
|
29024
29059
|
const Phase = styled__default.default.div`
|
|
29025
|
-
|
|
29026
|
-
padding: 2px 7px;
|
|
29027
|
-
margin-right: 5px;
|
|
29028
|
-
background: ${props => props.isHome ? props.theme.theme_vars.colours.white : props.theme.theme_vars.colours.action+"1A"};
|
|
29029
|
-
float: left;
|
|
29030
|
-
vertical-align: middle;
|
|
29031
|
-
color: ${props => props.theme.theme_vars.colours.black};
|
|
29032
|
-
border-radius: 4px;
|
|
29060
|
+
font-weight: bold;
|
|
29033
29061
|
|
|
29034
|
-
|
|
29035
|
-
|
|
29036
|
-
|
|
29037
|
-
|
|
29038
|
-
|
|
29039
|
-
|
|
29062
|
+
padding: ${(props) =>
|
|
29063
|
+
props.$isHome
|
|
29064
|
+
? `${props.theme.theme_vars.spacingSizes.extra_small} ${props.theme.theme_vars.spacingSizes.small}`
|
|
29065
|
+
: `calc(${props.theme.theme_vars.spacingSizes.extra_small} + 2px) calc(${props.theme.theme_vars.spacingSizes.small} + 2px)`};
|
|
29066
|
+
|
|
29067
|
+
margin-right: ${(props) => props.theme.theme_vars.spacingSizes.extra_small};
|
|
29068
|
+
background: ${(props) =>
|
|
29069
|
+
props.$isHome ? props.theme.theme_vars.colours.white : props.theme.theme_vars.colours.action + '1A'};
|
|
29070
|
+
float: left;
|
|
29071
|
+
text-align: center;
|
|
29072
|
+
color: ${(props) => props.theme.theme_vars.colours.black};
|
|
29073
|
+
border-radius: ${(props) => props.theme.theme_vars.border_radius_large};
|
|
29074
|
+
cursor: default;
|
|
29040
29075
|
`;
|
|
29041
29076
|
|
|
29077
|
+
/**
|
|
29078
|
+
* A Phase Banner notifying the customer that the website (or one of it's features) is a new one
|
|
29079
|
+
* and potentially allowing feedback to be collected via a Microsoft O365 link
|
|
29080
|
+
*/
|
|
29042
29081
|
var PhaseBanner = function (_a) {
|
|
29043
|
-
var _b = _a.isHome, isHome = _b === void 0 ? false : _b;
|
|
29044
|
-
|
|
29045
|
-
|
|
29046
|
-
|
|
29047
|
-
|
|
29048
|
-
|
|
29049
|
-
React__default.default.createElement(PhaseText, null, "This site is new and we are improving it every day."))));
|
|
29082
|
+
var _b = _a.isHome, isHome = _b === void 0 ? false : _b, _c = _a.phaseTitle, phaseTitle = _c === void 0 ? 'New website' : _c, _d = _a.children, children = _d === void 0 ? React__default.default.createElement("p", null, "This site is new and we are improving it every day.") : _d;
|
|
29083
|
+
return (React__default.default.createElement(Wrapper, { "data-testid": "PhaseBanner", "$isHome": isHome },
|
|
29084
|
+
React__default.default.createElement(StyledMaxWidthContainer, { noPadding: true, noBackground: true, "$isHome": isHome },
|
|
29085
|
+
React__default.default.createElement(PhaseContainer, { "data-testid": "wrapper" },
|
|
29086
|
+
React__default.default.createElement(Phase, { "data-testid": "PhaseBannerHeading", "$isHome": isHome }, phaseTitle)),
|
|
29087
|
+
React__default.default.createElement(PhaseContentContainer, { "$isHome": isHome }, children))));
|
|
29050
29088
|
};
|
|
29051
29089
|
|
|
29052
29090
|
const Container$j = styled__default.default.div`
|