northants-design-system 1.6.1 → 1.6.3

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
@@ -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: 1;
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: 2;
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: 1;
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: 2;
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: 1;
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: 2;
24454
+ z-index: 20;
24455
24455
  position: relative;
24456
24456
  background-color: ${(props) =>
24457
24457
  props.theme.cardinal_name === 'west'
@@ -25429,7 +25429,17 @@ const Container$I = styled__default.default.div`
25429
25429
  cursor: pointer;
25430
25430
 
25431
25431
  &:hover {
25432
- background-color: ${(props) => props.theme.theme_vars.action_dark};
25432
+ background-color: ${(props) => props.theme.theme_vars.colours.action_dark};
25433
+ }
25434
+ &:focus,
25435
+ &:active {
25436
+ outline: none;
25437
+ background-color: ${(props) => props.theme.theme_vars.colours.focus};
25438
+ box-shadow: 0 0 0 2px ${(props) => props.theme.theme_vars.colours.focus},
25439
+ 0 0 0 4px ${(props) => props.theme.theme_vars.colours.black};
25440
+ svg path {
25441
+ fill: ${(props) => props.theme.theme_vars.colours.black} !important;
25442
+ }
25433
25443
  }
25434
25444
 
25435
25445
  svg {
@@ -25444,7 +25454,10 @@ const Container$I = styled__default.default.div`
25444
25454
  }
25445
25455
 
25446
25456
  .wnc-cludo-facet-list {
25447
- margin-bottom: ${(props) => props.theme.theme_vars.spacingSizes.medium};
25457
+ margin-bottom: ${(props) => props.theme.theme_vars.spacingSizes.small};
25458
+ @media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.m}) {
25459
+ margin-bottom: 0;
25460
+ }
25448
25461
 
25449
25462
  h3 {
25450
25463
  ${(props) => props.theme.theme_vars.h3};
@@ -25494,6 +25507,31 @@ const Container$I = styled__default.default.div`
25494
25507
  }
25495
25508
  }
25496
25509
 
25510
+ .wnc-cludo-clear-facets {
25511
+ border: 2px solid ${(props) => props.theme.theme_vars.colours.action};
25512
+ border-radius: ${(props) => props.theme.theme_vars.border_radius};
25513
+ padding: ${(props) =>
25514
+ `${props.theme.theme_vars.spacingSizes.extra_small} ${props.theme.theme_vars.spacingSizes.small}`};
25515
+ color: ${(props) => props.theme.theme_vars.colours.action};
25516
+ font-size: ${(props) => props.theme.theme_vars.fontSizes.extra_small};
25517
+ cursor: pointer;
25518
+ background-color: ${(props) => props.theme.theme_vars.colours.white};
25519
+ line-height: 1.5;
25520
+
25521
+ &:hover {
25522
+ text-decoration: underline !important;
25523
+ text-decoration-style: dotted !important;
25524
+ }
25525
+
25526
+ &:focus {
25527
+ ${(props) => props.theme.linkStylesFocus};
25528
+ }
25529
+
25530
+ &:active {
25531
+ ${(props) => props.theme.linkStylesActive};
25532
+ }
25533
+ }
25534
+
25497
25535
  .cludo_results-list {
25498
25536
  list-style: none;
25499
25537
  }
@@ -25594,6 +25632,7 @@ const Container$I = styled__default.default.div`
25594
25632
 
25595
25633
  .wnc-cludo-result-link {
25596
25634
  font-size: ${(props) => props.theme.theme_vars.fontSizes.extra_small};
25635
+ word-break: break-all;
25597
25636
  }
25598
25637
 
25599
25638
  .wnc-cludo-pagination ul {
@@ -25647,7 +25686,7 @@ const AutocompleteList = styled__default.default.ul`
25647
25686
  margin-left: 0 !important;
25648
25687
 
25649
25688
  position: absolute;
25650
- z-index: 2;
25689
+ z-index: 20;
25651
25690
  background: ${(props) => props.theme.theme_vars.colours.white};
25652
25691
 
25653
25692
  li {
@@ -25683,6 +25722,12 @@ const DesktopFacets = styled__default.default.div`
25683
25722
  }
25684
25723
  `;
25685
25724
 
25725
+ var IconDownload = function (_a) {
25726
+ var colourFill = _a.colourFill;
25727
+ return (React__default.default.createElement("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
25728
+ React__default.default.createElement("path", { d: "M15.7345 14.4865L12.8629 11.6364C15.1051 8.76659 14.8691 4.67813 12.2926 2.10319C10.9355 0.746929 9.126 0 7.19852 0C5.27105 0 3.46159 0.746929 2.10449 2.10319C0.747388 3.45946 0 5.26781 0 7.1941C0 9.12039 0.747388 10.9287 2.10449 12.285C3.46159 13.6413 5.27105 14.3882 7.19852 14.3882C8.79164 14.3882 10.3651 13.8575 11.6238 12.855L14.4757 15.7445C14.6527 15.9214 14.8691 16 15.1051 16C15.3411 16 15.5575 15.9017 15.7345 15.7445C16.0885 15.4103 16.0885 14.8403 15.7345 14.4865ZM12.6269 7.1941C12.6269 8.64865 12.0565 10.0049 11.0338 11.027C10.0111 12.0491 8.6343 12.6192 7.19852 12.6192C5.76275 12.6192 4.38599 12.0491 3.36325 11.027C2.3405 10.0049 1.77013 8.62899 1.77013 7.1941C1.77013 5.73956 2.3405 4.38329 3.36325 3.36118C4.38599 2.33907 5.76275 1.76904 7.19852 1.76904C8.65396 1.76904 10.0111 2.33907 11.0338 3.36118C12.0565 4.38329 12.6269 5.73956 12.6269 7.1941Z", fill: colourFill })));
25729
+ };
25730
+
25686
25731
  var CludoAutoComplete = function (_a) {
25687
25732
  var _b = _a.hasMargin, hasMargin = _b === void 0 ? true : _b;
25688
25733
  var _c = ssr.useAutocomplete(), autocompleteState = _c[0], autocompleteDispatchers = _c[1];
@@ -25699,7 +25744,14 @@ var CludoAutoComplete = function (_a) {
25699
25744
  ssr.autocompleteHandleInputKeyDown(e, autocompleteDispatchers);
25700
25745
  };
25701
25746
  return (React__default.default.createElement(AutocompleteContainer, { "$hasMargin": hasMargin },
25702
- React__default.default.createElement(ssr.SearchInput, { className: "wnc-cludo-input", formId: "search", ariaLabel: "Search the website", onChange: handleChange, onSubmit: handleSubmit, onBlur: handleBlur, onKeyDown: handleKeyDown }),
25747
+ React__default.default.createElement(ssr.SearchInput, { className: "wnc-cludo-input", formId: "search", attributes: {
25748
+ submitButton: {
25749
+ 'aria-label': 'Submit button',
25750
+ },
25751
+ input: {
25752
+ 'aria-label': 'Search the website',
25753
+ },
25754
+ }, submitIcon: React__default.default.createElement(IconDownload, { colourFill: "#fff" }), onChange: handleChange, onSubmit: handleSubmit, onBlur: handleBlur, onKeyDown: handleKeyDown }),
25703
25755
  React__default.default.createElement(AutocompleteList, null, autocompleteState.suggestions.map(function (suggestion, index) {
25704
25756
  return (React__default.default.createElement(ssr.SaytSuggestion, { disableTheme: true, key: suggestion.title + index, suggestion: suggestion, isSelected: autocompleteState.selectedSuggestion === index, suggestionIndex: index }));
25705
25757
  }))));
@@ -25734,6 +25786,8 @@ var CludoSearch = function (_a) {
25734
25786
  "Northamptonshire Children's Trust",
25735
25787
  '*',
25736
25788
  ];
25789
+ var Facets = function () { return (React__default.default.createElement(ssr.FacetGroup, null,
25790
+ React__default.default.createElement(ssr.StandardFacet, { field: "Category", label: "Show results from", hideClear: true, hideCount: false, hideSearchBar: true, hideShowMore: true, className: "wnc-cludo-facet-list", exclude: ['Documents'], order: filterOrder, includeAllResultsOption: true, allResultsOptionLabel: "All services" }))); };
25737
25791
  return (React__default.default.createElement(Container$I, { "data-testid": "CludoSearch" },
25738
25792
  React__default.default.createElement(ssr.CludoWrapper, { config: cludoSearchConfig },
25739
25793
  React__default.default.createElement(CludoAutoComplete, null),
@@ -25742,8 +25796,7 @@ var CludoSearch = function (_a) {
25742
25796
  React__default.default.createElement(Row$1, null,
25743
25797
  React__default.default.createElement(Column, { small: "full", medium: "two-thirds", large: "three-quarters" },
25744
25798
  React__default.default.createElement(MobileFacets, null,
25745
- React__default.default.createElement(ssr.FacetGroup, null,
25746
- React__default.default.createElement(ssr.StandardFacet, { field: "Category", label: "Show results from", hideClear: true, hideCount: false, hideSearchBar: true, hideShowMore: true, className: "wnc-cludo-facet-list", exclude: ['Documents'], order: filterOrder }))),
25799
+ React__default.default.createElement(Facets, null)),
25747
25800
  React__default.default.createElement(ssr.ResultsList, { template: function (currResult) { return (React__default.default.createElement(ssr.CustomResult, { result: currResult, wrapWithLink: true, className: "wnc-cludo-result" },
25748
25801
  React__default.default.createElement(Row$1, null,
25749
25802
  React__default.default.createElement(Column, { small: "full", medium: "one-third", large: "one-quarter" },
@@ -25757,8 +25810,7 @@ var CludoSearch = function (_a) {
25757
25810
  React__default.default.createElement(ssr.Pagination, { className: "wnc-cludo-pagination", previousButtonIcon: "Previous", nextButtonIcon: "Next" })),
25758
25811
  React__default.default.createElement(Column, { small: "full", medium: "one-third", large: "one-quarter" },
25759
25812
  React__default.default.createElement(DesktopFacets, null,
25760
- React__default.default.createElement(ssr.FacetGroup, null,
25761
- React__default.default.createElement(ssr.StandardFacet, { field: "Category", label: "Show results from", hideClear: true, hideCount: false, hideSearchBar: true, hideShowMore: true, className: "wnc-cludo-facet-list", exclude: ['Documents'], order: filterOrder }))))))));
25813
+ React__default.default.createElement(Facets, null)))))));
25762
25814
  };
25763
25815
 
25764
25816
  const Container$H = styled__default.default.div`
@@ -26593,7 +26645,7 @@ const headerThemeStyles = (props) => {
26593
26645
  const Container$B = styled__default.default.header`
26594
26646
  box-shadow: 1px 1px 5px 1px rgba(0, 0, 0, 0.2);
26595
26647
  position: relative;
26596
- z-index: 2;
26648
+ z-index: 20;
26597
26649
  `;
26598
26650
 
26599
26651
  const SearchContainer = styled__default.default.div`
@@ -26984,12 +27036,6 @@ const ButtonText$2 = styled__default.default.span`
26984
27036
  white-space: nowrap !important;
26985
27037
  `;
26986
27038
 
26987
- var IconDownload = function (_a) {
26988
- var colourFill = _a.colourFill;
26989
- return (React__default.default.createElement("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
26990
- React__default.default.createElement("path", { d: "M15.7345 14.4865L12.8629 11.6364C15.1051 8.76659 14.8691 4.67813 12.2926 2.10319C10.9355 0.746929 9.126 0 7.19852 0C5.27105 0 3.46159 0.746929 2.10449 2.10319C0.747388 3.45946 0 5.26781 0 7.1941C0 9.12039 0.747388 10.9287 2.10449 12.285C3.46159 13.6413 5.27105 14.3882 7.19852 14.3882C8.79164 14.3882 10.3651 13.8575 11.6238 12.855L14.4757 15.7445C14.6527 15.9214 14.8691 16 15.1051 16C15.3411 16 15.5575 15.9017 15.7345 15.7445C16.0885 15.4103 16.0885 14.8403 15.7345 14.4865ZM12.6269 7.1941C12.6269 8.64865 12.0565 10.0049 11.0338 11.027C10.0111 12.0491 8.6343 12.6192 7.19852 12.6192C5.76275 12.6192 4.38599 12.0491 3.36325 11.027C2.3405 10.0049 1.77013 8.62899 1.77013 7.1941C1.77013 5.73956 2.3405 4.38329 3.36325 3.36118C4.38599 2.33907 5.76275 1.76904 7.19852 1.76904C8.65396 1.76904 10.0111 2.33907 11.0338 3.36118C12.0565 4.38329 12.6269 5.73956 12.6269 7.1941Z", fill: colourFill })));
26991
- };
26992
-
26993
27039
  var Searchbar = function (_a) {
26994
27040
  var _b = _a.placeholder, placeholder = _b === void 0 ? 'Search' : _b, isLight = _a.isLight, isLarge = _a.isLarge, _c = _a.searchTerm, searchTerm = _c === void 0 ? '' : _c, submitInfo = _a.submitInfo, _d = _a.id, id = _d === void 0 ? 'search' : _d, _e = _a.suggestions, suggestions = _e === void 0 ? [] : _e, _f = _a.minimumMatchLength, minimumMatchLength = _f === void 0 ? 2 : _f, _g = _a.maximumMatchesShown, maximumMatchesShown = _g === void 0 ? 5 : _g;
26995
27041
  var initialSearchTerm = searchTerm;
@@ -27305,7 +27351,7 @@ const ImageContainer$4 = styled__default.default.div`
27305
27351
  content: '';
27306
27352
  background: ${(props) =>
27307
27353
  !props.$backgroundBox ? `linear-gradient(to bottom left, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.75))` : ``};
27308
- z-index: 2;
27354
+ z-index: 20;
27309
27355
  position: absolute;
27310
27356
  top: 0;
27311
27357
  left: 0;
@@ -27321,7 +27367,7 @@ const InnerContainer = styled__default.default.div`
27321
27367
  margin-left: auto;
27322
27368
  flex-grow: 1;
27323
27369
  position: relative;
27324
- z-index: 3;
27370
+ z-index: 30;
27325
27371
 
27326
27372
  @media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.l}) {
27327
27373
  max-width: ${(props) => props.theme.theme_vars.breakpoints.l};
@@ -27474,8 +27520,8 @@ const Wrapper$3 = styled__default.default.header`
27474
27520
  props.noBackground
27475
27521
  ? 'transparent'
27476
27522
  : props.theme.cardinal_name === 'north'
27477
- ? props.theme.theme_vars.colours.grey_light + '7a'
27478
- : props.theme.theme_vars.colours.white};
27523
+ ? props.theme.theme_vars.colours.grey_light + '7a'
27524
+ : props.theme.theme_vars.colours.white};
27479
27525
  position: relative;
27480
27526
  `;
27481
27527
 
@@ -27501,7 +27547,7 @@ const StyledMaxWidthContainer$1 = styled__default.default.div`
27501
27547
  ${(props) => props.theme.fontStyles}
27502
27548
  margin-right: 15px;
27503
27549
  margin-left: 15px;
27504
- z-index: 2;
27550
+ z-index: 10;
27505
27551
  position: relative;
27506
27552
 
27507
27553
  @media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.m}) {
@@ -27675,7 +27721,7 @@ const TabMobile = styled__default.default.button`
27675
27721
  ${(props) => props.theme.linkStylesFocus};
27676
27722
  background: ${(props) => props.theme.theme_vars.colours.focus};
27677
27723
  position: relative;
27678
- z-index: 1;
27724
+ z-index: 10;
27679
27725
  }
27680
27726
 
27681
27727
  &:active {
@@ -28171,14 +28217,14 @@ const handleFullScreen = (props) => {
28171
28217
  props.noBackground
28172
28218
  ? 'transparent'
28173
28219
  : props.theme.cardinal_name === 'north'
28174
- ? props.theme.theme_vars.colours.grey_light
28175
- : props.theme.theme_vars.colours.white};
28220
+ ? props.theme.theme_vars.colours.grey_light
28221
+ : props.theme.theme_vars.colours.white};
28176
28222
  width: 100%;
28177
28223
  height: 100%;
28178
28224
  position: fixed;
28179
28225
  top: 0;
28180
28226
  left: 0;
28181
- z-index: 1;
28227
+ z-index: 10;
28182
28228
  padding: 20px;
28183
28229
  box-sizing: border-box;
28184
28230
  overflow: auto;
@@ -29053,11 +29099,11 @@ const TitleButton = styled__default.default.button`
29053
29099
  }
29054
29100
  &:focus {
29055
29101
  ${(props) => props.theme.linkStylesFocus};
29056
- z-index: 2;
29102
+ z-index: 20;
29057
29103
  }
29058
29104
  &:active {
29059
29105
  ${(props) => props.theme.linkStylesActive};
29060
- z-index: 2;
29106
+ z-index: 20;
29061
29107
  }
29062
29108
  `;
29063
29109
 
@@ -29283,7 +29329,7 @@ const Category$2 = styled__default.default.div`
29283
29329
  const CategoryInput = styled__default.default.input`
29284
29330
  cursor: pointer;
29285
29331
  position: absolute;
29286
- z-index: 1;
29332
+ z-index: 10;
29287
29333
  top: -2px;
29288
29334
  left: -2px;
29289
29335
  width: 44px;
@@ -30293,6 +30339,7 @@ var SectionLinksSidebar = function (_a) {
30293
30339
 
30294
30340
  const Container$b = styled__default.default.div`
30295
30341
  position: relative;
30342
+ isolation: isolate;
30296
30343
  `;
30297
30344
 
30298
30345
  const ServiceLink$2 = styled__default.default.button`
@@ -30363,7 +30410,7 @@ const ServiceHeading = styled__default.default.span`
30363
30410
  line-height: 1.25;
30364
30411
  ${(props) => props.theme.theme_vars.h3}
30365
30412
  margin-top: 0;
30366
- margin-bottom:0;
30413
+ margin-bottom: 0;
30367
30414
  `;
30368
30415
 
30369
30416
  const QuickLinksContainer = styled__default.default.div`
@@ -30372,7 +30419,7 @@ const QuickLinksContainer = styled__default.default.div`
30372
30419
  overflow: hidden;
30373
30420
  top: auto;
30374
30421
  margin-top: ${(props) => props.theme.theme_vars.spacingSizes.medium};
30375
- z-index: 9;
30422
+ z-index: 40;
30376
30423
  left: 0;
30377
30424
  right: 0;
30378
30425
  background: ${(props) => props.theme.theme_vars.colours.white};
@@ -32588,7 +32635,7 @@ const ClearFilter$1 = styled__default.default.div`
32588
32635
  const TextLink$1 = styled__default.default.button`
32589
32636
  font-size: ${(props) => props.theme.theme_vars.fontSizes.extra_small};
32590
32637
  position: relative;
32591
- z-index: 1;
32638
+ z-index: 10;
32592
32639
  margin: 0;
32593
32640
  padding: 12.5px 0;
32594
32641
  margin-bottom: ${(props) => props.theme.theme_vars.spacingSizes.extra_small};
@@ -34672,7 +34719,7 @@ const ClearFilter = styled__default.default.div`
34672
34719
  const TextLink = styled__default.default.button`
34673
34720
  font-size: ${(props) => props.theme.theme_vars.fontSizes.extra_small};
34674
34721
  position: relative;
34675
- z-index: 1;
34722
+ z-index: 10;
34676
34723
  margin: 0;
34677
34724
  margin-bottom: 15px;
34678
34725
  padding: 0;