northants-design-system 1.6.3 → 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
CHANGED
|
@@ -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,
|