northants-design-system 1.6.3 → 1.6.5

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 = _f === void 0 ? '/' : _f, _g = _a.isHomepage, isHomepage = _g === void 0 ? false : _g, _h = _a.searchSuggestions, searchSuggestions = _h === void 0 ? [] : _h, _j = _a.hasTranslate, hasTranslate = _j === void 0 ? false : _j, _k = _a.hasCludo, hasCludo = _k === void 0 ? false : _k, engineId = _a.engineId, customerId = _a.customerId, props = __rest(_a, ["children", "hideSearchBar", "homeLink", "hasNewsLink", "hasDirectoryLink", "accessibilityLink", "allServicesLink", "isHomepage", "searchSuggestions", "hasTranslate", "hasCludo", "engineId", "customerId"]);
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 _l = React.useState(false), showMenu = _l[0], setShowMenu = _l[1];
27228
- var _m = React.useState(false), showTranslate = _m[0], setShowTranslate = _m[1];
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' }, "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,
@@ -28190,8 +28192,11 @@ const ShowFiltersButton = styled__default.default.button`
28190
28192
  padding: 0;
28191
28193
  margin: 0;
28192
28194
  ${(props) => props.theme.linkStyles}
28193
- font-size: 1.2em;
28194
- margin-bottom: 5px;
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};
28195
28200
  display: block;
28196
28201
 
28197
28202
  &:hover {
@@ -28224,7 +28229,7 @@ const handleFullScreen = (props) => {
28224
28229
  position: fixed;
28225
28230
  top: 0;
28226
28231
  left: 0;
28227
- z-index: 10;
28232
+ z-index: 30;
28228
28233
  padding: 20px;
28229
28234
  box-sizing: border-box;
28230
28235
  overflow: auto;
@@ -28248,8 +28253,8 @@ const FilterHeader = styled__default.default.div`
28248
28253
  display: flex;
28249
28254
  flex-direction: row;
28250
28255
  justify-content: space-between;
28251
- margin-bottom: 40px;
28252
- padding-bottom: 10px;
28256
+ margin-bottom: ${(props) => props.theme.theme_vars.spacingSizes.small};
28257
+ padding-bottom: ${(props) => props.theme.theme_vars.spacingSizes.small};
28253
28258
 
28254
28259
  @media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.m}) {
28255
28260
  display: block;
@@ -28267,11 +28272,6 @@ const FilterHeading = styled__default.default.h2`
28267
28272
  }
28268
28273
  `;
28269
28274
 
28270
- // margin: 0;
28271
- // padding: 0;
28272
- // display: block;
28273
- // overflow: hidden;
28274
-
28275
28275
  const Container$s = styled__default.default.a`
28276
28276
  ${props => props.theme.linkStyles}
28277
28277
  color: ${props => props.theme.theme_vars.colours.negative} !important;
@@ -28365,7 +28365,7 @@ var NewsArticleFilterAccordion = function (_a) {
28365
28365
  React__default.default.createElement(Filters$1, { "$isFullScreen": isFullScreen, id: "PageFilters", "aria-labelledby": "PageFiltersLabel" },
28366
28366
  React__default.default.createElement(FilterHeader, null,
28367
28367
  React__default.default.createElement(FilterHeading, { id: "PageFiltersLabel" }, "Search and filters"),
28368
- React__default.default.createElement(ShowFiltersButton, { onClick: hideFullscreenFilters }, "Close window")),
28368
+ React__default.default.createElement(ShowFiltersButton, { onClick: hideFullscreenFilters }, "Hide search and filters")),
28369
28369
  React__default.default.createElement(Accordion$1, { isFilter: true, sections: sections, withReadMore: false }),
28370
28370
  count > 0 && React__default.default.createElement(RemoveAllFilters, { count: count }))));
28371
28371
  };