northants-design-system 1.6.2 → 1.6.4
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 +31 -28
- package/build/index.js.map +1 -1
- package/build/index.mjs.js +31 -28
- package/build/index.mjs.js.map +1 -1
- package/build/library/structure/Header/Header.types.d.ts +4 -0
- package/package.json +1 -1
package/build/index.js
CHANGED
|
@@ -251,7 +251,7 @@ const AutocompleteLabel = styled__default.default.label`
|
|
|
251
251
|
const AutocompleteSuggestionList = styled__default.default.ul`
|
|
252
252
|
position: absolute;
|
|
253
253
|
display: block;
|
|
254
|
-
z-index:
|
|
254
|
+
z-index: 50;
|
|
255
255
|
width: auto;
|
|
256
256
|
font-family: ${(props) => props.theme.theme_vars.fontstack};
|
|
257
257
|
border-radius: ${(props) =>
|
|
@@ -3643,7 +3643,7 @@ const BackToTopButton = styled__default.default.button`
|
|
|
3643
3643
|
position: fixed;
|
|
3644
3644
|
bottom: ${(props) => props.theme.theme_vars.spacingSizes.medium};
|
|
3645
3645
|
right: ${(props) => props.theme.theme_vars.spacingSizes.medium};
|
|
3646
|
-
z-index:
|
|
3646
|
+
z-index: 20;
|
|
3647
3647
|
background-color: ${(props) => props.theme.theme_vars.colours.action};
|
|
3648
3648
|
color: ${(props) => props.theme.theme_vars.white};
|
|
3649
3649
|
padding: ${(props) => props.theme.theme_vars.spacingSizes.medium};
|
|
@@ -7204,7 +7204,7 @@ const Checkbox = styled__default.default.div`
|
|
|
7204
7204
|
const CheckboxInput = styled__default.default.input`
|
|
7205
7205
|
cursor: pointer;
|
|
7206
7206
|
position: absolute;
|
|
7207
|
-
z-index:
|
|
7207
|
+
z-index: 10;
|
|
7208
7208
|
top: -2px;
|
|
7209
7209
|
left: -2px;
|
|
7210
7210
|
width: 44px;
|
|
@@ -22206,7 +22206,7 @@ const Container$16 = styled__default.default.div`
|
|
|
22206
22206
|
position: fixed;
|
|
22207
22207
|
top: ${(props) => props.theme.theme_vars.spacingSizes.medium};
|
|
22208
22208
|
right: ${(props) => props.theme.theme_vars.spacingSizes.small};
|
|
22209
|
-
z-index:
|
|
22209
|
+
z-index: 20;
|
|
22210
22210
|
`;
|
|
22211
22211
|
|
|
22212
22212
|
const QuickExitButton = styled__default.default.button`
|
|
@@ -22325,7 +22325,7 @@ const AccordionControls$1 = styled__default.default.div`
|
|
|
22325
22325
|
const OpenAllButton = styled__default.default.button`
|
|
22326
22326
|
font-size: ${(props) => props.theme.theme_vars.fontSizes.extra_small};
|
|
22327
22327
|
position: relative;
|
|
22328
|
-
z-index:
|
|
22328
|
+
z-index: 10;
|
|
22329
22329
|
margin: 0;
|
|
22330
22330
|
margin-bottom: 5px;
|
|
22331
22331
|
padding-top: ${(props) => props.theme.theme_vars.spacingSizes.medium};
|
|
@@ -24451,7 +24451,7 @@ const LinkContainer = styled__default.default.div`
|
|
|
24451
24451
|
`;
|
|
24452
24452
|
|
|
24453
24453
|
const Inner = styled__default.default.div`
|
|
24454
|
-
z-index:
|
|
24454
|
+
z-index: 20;
|
|
24455
24455
|
position: relative;
|
|
24456
24456
|
background-color: ${(props) =>
|
|
24457
24457
|
props.theme.cardinal_name === 'west'
|
|
@@ -25686,7 +25686,7 @@ const AutocompleteList = styled__default.default.ul`
|
|
|
25686
25686
|
margin-left: 0 !important;
|
|
25687
25687
|
|
|
25688
25688
|
position: absolute;
|
|
25689
|
-
z-index:
|
|
25689
|
+
z-index: 20;
|
|
25690
25690
|
background: ${(props) => props.theme.theme_vars.colours.white};
|
|
25691
25691
|
|
|
25692
25692
|
li {
|
|
@@ -26645,7 +26645,7 @@ const headerThemeStyles = (props) => {
|
|
|
26645
26645
|
const Container$B = styled__default.default.header`
|
|
26646
26646
|
box-shadow: 1px 1px 5px 1px rgba(0, 0, 0, 0.2);
|
|
26647
26647
|
position: relative;
|
|
26648
|
-
z-index:
|
|
26648
|
+
z-index: 20;
|
|
26649
26649
|
`;
|
|
26650
26650
|
|
|
26651
26651
|
const SearchContainer = styled__default.default.div`
|
|
@@ -27222,10 +27222,10 @@ var CludoSearchBar = function (_a) {
|
|
|
27222
27222
|
* The header that should appear at the top of every page.
|
|
27223
27223
|
*/
|
|
27224
27224
|
var Header = function (_a) {
|
|
27225
|
-
_a.children; var _b = _a.hideSearchBar, hideSearchBar = _b === void 0 ? false : _b, _c = _a.homeLink, homeLink = _c === void 0 ? '/' : _c, _d = _a.hasNewsLink, hasNewsLink = _d === void 0 ? false : _d, _e = _a.hasDirectoryLink, hasDirectoryLink = _e === void 0 ? false : _e, accessibilityLink = _a.accessibilityLink, _f = _a.allServicesLink, allServicesLink =
|
|
27225
|
+
_a.children; var _b = _a.hideSearchBar, hideSearchBar = _b === void 0 ? false : _b, _c = _a.homeLink, homeLink = _c === void 0 ? '/' : _c, _d = _a.hasNewsLink, hasNewsLink = _d === void 0 ? false : _d, _e = _a.hasDirectoryLink, hasDirectoryLink = _e === void 0 ? false : _e, accessibilityLink = _a.accessibilityLink, _f = _a.hasEventsLink, hasEventsLink = _f === void 0 ? false : _f, _g = _a.allServicesLink, allServicesLink = _g === void 0 ? '/' : _g, _h = _a.isHomepage, isHomepage = _h === void 0 ? false : _h, _j = _a.searchSuggestions, searchSuggestions = _j === void 0 ? [] : _j, _k = _a.hasTranslate, hasTranslate = _k === void 0 ? false : _k, _l = _a.hasCludo, hasCludo = _l === void 0 ? false : _l, engineId = _a.engineId, customerId = _a.customerId, props = __rest(_a, ["children", "hideSearchBar", "homeLink", "hasNewsLink", "hasDirectoryLink", "accessibilityLink", "hasEventsLink", "allServicesLink", "isHomepage", "searchSuggestions", "hasTranslate", "hasCludo", "engineId", "customerId"]);
|
|
27226
27226
|
var themeContext = React.useContext(styled.ThemeContext);
|
|
27227
|
-
var
|
|
27228
|
-
var
|
|
27227
|
+
var _m = React.useState(false), showMenu = _m[0], setShowMenu = _m[1];
|
|
27228
|
+
var _o = React.useState(false), showTranslate = _o[0], setShowTranslate = _o[1];
|
|
27229
27229
|
/*
|
|
27230
27230
|
north homepage - no header
|
|
27231
27231
|
north subpage - white search bar / white nav / colour logo / has search
|
|
@@ -27295,8 +27295,10 @@ var Header = function (_a) {
|
|
|
27295
27295
|
React__default.default.createElement(LinksList$1, null,
|
|
27296
27296
|
hasNewsLink && (React__default.default.createElement(LinksItem, null,
|
|
27297
27297
|
React__default.default.createElement(Link$1, { href: "/news" }, "News"))),
|
|
27298
|
+
hasEventsLink && (React__default.default.createElement(LinksItem, null,
|
|
27299
|
+
React__default.default.createElement(Link$1, { href: "/events" }, "Events"))),
|
|
27298
27300
|
allServicesLink && (React__default.default.createElement(LinksItem, null,
|
|
27299
|
-
React__default.default.createElement(Link$1, { href: isHomepage ? '#all-services' : allServicesLink + '#all-services' }, "
|
|
27301
|
+
React__default.default.createElement(Link$1, { href: isHomepage ? '#all-services' : allServicesLink + '#all-services' }, "Services"))),
|
|
27300
27302
|
hasDirectoryLink && (React__default.default.createElement(LinksItem, null,
|
|
27301
27303
|
React__default.default.createElement(Link$1, { href: "/directory" }, "Directories"))),
|
|
27302
27304
|
accessibilityLink && (React__default.default.createElement(LinksItem, null,
|
|
@@ -27351,7 +27353,7 @@ const ImageContainer$4 = styled__default.default.div`
|
|
|
27351
27353
|
content: '';
|
|
27352
27354
|
background: ${(props) =>
|
|
27353
27355
|
!props.$backgroundBox ? `linear-gradient(to bottom left, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.75))` : ``};
|
|
27354
|
-
z-index:
|
|
27356
|
+
z-index: 20;
|
|
27355
27357
|
position: absolute;
|
|
27356
27358
|
top: 0;
|
|
27357
27359
|
left: 0;
|
|
@@ -27367,7 +27369,7 @@ const InnerContainer = styled__default.default.div`
|
|
|
27367
27369
|
margin-left: auto;
|
|
27368
27370
|
flex-grow: 1;
|
|
27369
27371
|
position: relative;
|
|
27370
|
-
z-index:
|
|
27372
|
+
z-index: 30;
|
|
27371
27373
|
|
|
27372
27374
|
@media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.l}) {
|
|
27373
27375
|
max-width: ${(props) => props.theme.theme_vars.breakpoints.l};
|
|
@@ -27520,8 +27522,8 @@ const Wrapper$3 = styled__default.default.header`
|
|
|
27520
27522
|
props.noBackground
|
|
27521
27523
|
? 'transparent'
|
|
27522
27524
|
: props.theme.cardinal_name === 'north'
|
|
27523
|
-
|
|
27524
|
-
|
|
27525
|
+
? props.theme.theme_vars.colours.grey_light + '7a'
|
|
27526
|
+
: props.theme.theme_vars.colours.white};
|
|
27525
27527
|
position: relative;
|
|
27526
27528
|
`;
|
|
27527
27529
|
|
|
@@ -27547,7 +27549,7 @@ const StyledMaxWidthContainer$1 = styled__default.default.div`
|
|
|
27547
27549
|
${(props) => props.theme.fontStyles}
|
|
27548
27550
|
margin-right: 15px;
|
|
27549
27551
|
margin-left: 15px;
|
|
27550
|
-
z-index:
|
|
27552
|
+
z-index: 10;
|
|
27551
27553
|
position: relative;
|
|
27552
27554
|
|
|
27553
27555
|
@media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.m}) {
|
|
@@ -27721,7 +27723,7 @@ const TabMobile = styled__default.default.button`
|
|
|
27721
27723
|
${(props) => props.theme.linkStylesFocus};
|
|
27722
27724
|
background: ${(props) => props.theme.theme_vars.colours.focus};
|
|
27723
27725
|
position: relative;
|
|
27724
|
-
z-index:
|
|
27726
|
+
z-index: 10;
|
|
27725
27727
|
}
|
|
27726
27728
|
|
|
27727
27729
|
&:active {
|
|
@@ -28217,14 +28219,14 @@ const handleFullScreen = (props) => {
|
|
|
28217
28219
|
props.noBackground
|
|
28218
28220
|
? 'transparent'
|
|
28219
28221
|
: props.theme.cardinal_name === 'north'
|
|
28220
|
-
|
|
28221
|
-
|
|
28222
|
+
? props.theme.theme_vars.colours.grey_light
|
|
28223
|
+
: props.theme.theme_vars.colours.white};
|
|
28222
28224
|
width: 100%;
|
|
28223
28225
|
height: 100%;
|
|
28224
28226
|
position: fixed;
|
|
28225
28227
|
top: 0;
|
|
28226
28228
|
left: 0;
|
|
28227
|
-
z-index:
|
|
28229
|
+
z-index: 10;
|
|
28228
28230
|
padding: 20px;
|
|
28229
28231
|
box-sizing: border-box;
|
|
28230
28232
|
overflow: auto;
|
|
@@ -29099,11 +29101,11 @@ const TitleButton = styled__default.default.button`
|
|
|
29099
29101
|
}
|
|
29100
29102
|
&:focus {
|
|
29101
29103
|
${(props) => props.theme.linkStylesFocus};
|
|
29102
|
-
z-index:
|
|
29104
|
+
z-index: 20;
|
|
29103
29105
|
}
|
|
29104
29106
|
&:active {
|
|
29105
29107
|
${(props) => props.theme.linkStylesActive};
|
|
29106
|
-
z-index:
|
|
29108
|
+
z-index: 20;
|
|
29107
29109
|
}
|
|
29108
29110
|
`;
|
|
29109
29111
|
|
|
@@ -29329,7 +29331,7 @@ const Category$2 = styled__default.default.div`
|
|
|
29329
29331
|
const CategoryInput = styled__default.default.input`
|
|
29330
29332
|
cursor: pointer;
|
|
29331
29333
|
position: absolute;
|
|
29332
|
-
z-index:
|
|
29334
|
+
z-index: 10;
|
|
29333
29335
|
top: -2px;
|
|
29334
29336
|
left: -2px;
|
|
29335
29337
|
width: 44px;
|
|
@@ -30339,6 +30341,7 @@ var SectionLinksSidebar = function (_a) {
|
|
|
30339
30341
|
|
|
30340
30342
|
const Container$b = styled__default.default.div`
|
|
30341
30343
|
position: relative;
|
|
30344
|
+
isolation: isolate;
|
|
30342
30345
|
`;
|
|
30343
30346
|
|
|
30344
30347
|
const ServiceLink$2 = styled__default.default.button`
|
|
@@ -30409,7 +30412,7 @@ const ServiceHeading = styled__default.default.span`
|
|
|
30409
30412
|
line-height: 1.25;
|
|
30410
30413
|
${(props) => props.theme.theme_vars.h3}
|
|
30411
30414
|
margin-top: 0;
|
|
30412
|
-
margin-bottom:0;
|
|
30415
|
+
margin-bottom: 0;
|
|
30413
30416
|
`;
|
|
30414
30417
|
|
|
30415
30418
|
const QuickLinksContainer = styled__default.default.div`
|
|
@@ -30418,7 +30421,7 @@ const QuickLinksContainer = styled__default.default.div`
|
|
|
30418
30421
|
overflow: hidden;
|
|
30419
30422
|
top: auto;
|
|
30420
30423
|
margin-top: ${(props) => props.theme.theme_vars.spacingSizes.medium};
|
|
30421
|
-
z-index:
|
|
30424
|
+
z-index: 40;
|
|
30422
30425
|
left: 0;
|
|
30423
30426
|
right: 0;
|
|
30424
30427
|
background: ${(props) => props.theme.theme_vars.colours.white};
|
|
@@ -32634,7 +32637,7 @@ const ClearFilter$1 = styled__default.default.div`
|
|
|
32634
32637
|
const TextLink$1 = styled__default.default.button`
|
|
32635
32638
|
font-size: ${(props) => props.theme.theme_vars.fontSizes.extra_small};
|
|
32636
32639
|
position: relative;
|
|
32637
|
-
z-index:
|
|
32640
|
+
z-index: 10;
|
|
32638
32641
|
margin: 0;
|
|
32639
32642
|
padding: 12.5px 0;
|
|
32640
32643
|
margin-bottom: ${(props) => props.theme.theme_vars.spacingSizes.extra_small};
|
|
@@ -34718,7 +34721,7 @@ const ClearFilter = styled__default.default.div`
|
|
|
34718
34721
|
const TextLink = styled__default.default.button`
|
|
34719
34722
|
font-size: ${(props) => props.theme.theme_vars.fontSizes.extra_small};
|
|
34720
34723
|
position: relative;
|
|
34721
|
-
z-index:
|
|
34724
|
+
z-index: 10;
|
|
34722
34725
|
margin: 0;
|
|
34723
34726
|
margin-bottom: 15px;
|
|
34724
34727
|
padding: 0;
|