northants-design-system 1.6.5 → 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 +82 -42
- package/build/index.js.map +1 -1
- package/build/index.mjs.js +82 -42
- 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.test.d.ts +1 -0
- package/build/library/structure/PhaseBanner/PhaseBanner.types.d.ts +12 -0
- package/package.json +1 -1
package/build/index.js
CHANGED
|
@@ -28985,66 +28985,106 @@ var PageWrapper = function (_a) {
|
|
|
28985
28985
|
};
|
|
28986
28986
|
|
|
28987
28987
|
const Wrapper = styled__default.default.div`
|
|
28988
|
-
|
|
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'};
|
|
28989
28995
|
`;
|
|
28990
28996
|
|
|
28991
28997
|
const StyledMaxWidthContainer = styled__default.default(MaxWidthContainer)`
|
|
28992
|
-
|
|
28993
|
-
|
|
28994
|
-
|
|
28995
|
-
|
|
28996
|
-
|
|
28997
|
-
|
|
28998
|
-
|
|
28999
|
-
|
|
29000
|
-
|
|
29001
|
-
|
|
29002
|
-
|
|
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)};
|
|
29003
29010
|
`;
|
|
29004
29011
|
|
|
29005
|
-
|
|
29006
|
-
|
|
29007
|
-
|
|
29012
|
+
styled__default.default.span`
|
|
29013
|
+
padding: ${(props) => props.theme.theme_vars.spacingSizes.extra_small};
|
|
29014
|
+
cursor: default;
|
|
29015
|
+
`;
|
|
29008
29016
|
|
|
29009
|
-
|
|
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}
|
|
29010
29026
|
|
|
29027
|
+
color: ${(props) =>
|
|
29028
|
+
props.$isHome ? props.theme.theme_vars.colours.white : props.theme.theme_vars.colours.black} !important;
|
|
29011
29029
|
}
|
|
29012
|
-
`;
|
|
29013
29030
|
|
|
29014
|
-
|
|
29015
|
-
|
|
29031
|
+
&:focus {
|
|
29032
|
+
${(props) => props.theme.linkStylesFocus}
|
|
29016
29033
|
|
|
29017
|
-
|
|
29018
|
-
|
|
29034
|
+
color: ${(props) =>
|
|
29035
|
+
props.$isHome ? props.theme.theme_vars.colours.white : props.theme.theme_vars.colours.black} !important;
|
|
29019
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;
|
|
29020
29057
|
`;
|
|
29021
29058
|
|
|
29022
29059
|
const Phase = styled__default.default.div`
|
|
29023
|
-
|
|
29024
|
-
padding: 2px 7px;
|
|
29025
|
-
margin-right: 5px;
|
|
29026
|
-
background: ${props => props.isHome ? props.theme.theme_vars.colours.white : props.theme.theme_vars.colours.action+"1A"};
|
|
29027
|
-
float: left;
|
|
29028
|
-
vertical-align: middle;
|
|
29029
|
-
color: ${props => props.theme.theme_vars.colours.black};
|
|
29030
|
-
border-radius: 4px;
|
|
29060
|
+
font-weight: bold;
|
|
29031
29061
|
|
|
29032
|
-
|
|
29033
|
-
|
|
29034
|
-
|
|
29035
|
-
|
|
29036
|
-
|
|
29037
|
-
|
|
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;
|
|
29038
29075
|
`;
|
|
29039
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
|
+
*/
|
|
29040
29081
|
var PhaseBanner = function (_a) {
|
|
29041
|
-
var _b = _a.isHome, isHome = _b === void 0 ? false : _b;
|
|
29042
|
-
|
|
29043
|
-
|
|
29044
|
-
|
|
29045
|
-
|
|
29046
|
-
|
|
29047
|
-
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))));
|
|
29048
29088
|
};
|
|
29049
29089
|
|
|
29050
29090
|
const Container$j = styled__default.default.div`
|