northants-design-system 1.0.5 → 1.0.7

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
@@ -4052,7 +4052,7 @@ const StyledButton$1 = styled__default.default.a`
4052
4052
  }
4053
4053
  &.button--large {
4054
4054
  font-size: 16px;
4055
- padding: 12px 24px;
4055
+ padding: 14px 24px;
4056
4056
  }
4057
4057
  `;
4058
4058
 
@@ -7473,8 +7473,8 @@ const Select = styled__default.default.select`
7473
7473
  border-radius: ${(props) => props.theme.theme_vars.border_radius};
7474
7474
  box-sizing: border-box;
7475
7475
  max-width: 100%;
7476
- height: 40px;
7477
- height: 2.5rem;
7476
+ height: 44px;
7477
+ height: 2.75rem;
7478
7478
  padding: 5px;
7479
7479
  border: 2px solid
7480
7480
  ${(props) => (props.$isErrored ? props.theme.theme_vars.colours.negative : props.theme.theme_vars.colours.black)};
@@ -7767,9 +7767,9 @@ const Cookies = styled__default.default.button`
7767
7767
  `;
7768
7768
 
7769
7769
  const Container$12 = styled__default.default.div`
7770
- ${props => props.theme.fontStyles}
7771
- background-color: ${props => props.theme.theme_vars.colours.grey_light};
7772
- padding: ${props => props.theme.theme_vars.spacingSizes.medium} 0;
7770
+ ${(props) => props.theme.fontStyles}
7771
+ background-color: ${(props) => props.theme.theme_vars.colours.grey_light};
7772
+ padding: ${(props) => props.theme.theme_vars.spacingSizes.medium} 0;
7773
7773
  padding-bottom: 25px;
7774
7774
  width: 100%;
7775
7775
  display: block;
@@ -7777,61 +7777,62 @@ const Container$12 = styled__default.default.div`
7777
7777
  `;
7778
7778
 
7779
7779
  const CookieHide = styled__default.default.button`
7780
- border: 0;
7781
- background: transparent;
7780
+ border: 0;
7781
+ background: transparent;
7782
+ padding: ${(props) => `${props.theme.theme_vars.spacingSizes.medium} ${props.theme.theme_vars.spacingSizes.small}`};
7783
+ cursor: pointer;
7782
7784
 
7783
- ${props => props.theme.fontStyles}
7784
- ${props => props.theme.linkStyles}
7785
- &:hover{
7786
- ${props => props.theme.linkStylesHover}
7787
- }
7788
- &:focus{
7789
- ${props => props.theme.linkStylesFocus}
7790
- }
7791
- &:active{
7792
- ${props => props.theme.linkStylesActive}
7793
- }
7785
+ ${(props) => props.theme.fontStyles}
7786
+ ${(props) => props.theme.linkStyles}
7787
+ &:hover {
7788
+ ${(props) => props.theme.linkStylesHover}
7789
+ }
7790
+ &:focus {
7791
+ ${(props) => props.theme.linkStylesFocus}
7792
+ }
7793
+ &:active {
7794
+ ${(props) => props.theme.linkStylesActive}
7795
+ }
7794
7796
  `;
7795
7797
 
7796
7798
  const CookieMessage = styled__default.default.div`
7797
- display: ${props => props.isInline ? 'grid' : 'block'};
7798
- grid-template-columns: 1fr auto;
7799
- align-items: baseline;
7800
- margin-right: 15px;
7801
- margin-left: 15px;
7799
+ display: ${(props) => (props.isInline ? 'grid' : 'block')};
7800
+ grid-template-columns: 1fr auto;
7801
+ align-items: baseline;
7802
+ margin-right: 15px;
7803
+ margin-left: 15px;
7802
7804
 
7803
- @media screen and (min-width: ${props => props.theme.theme_vars.breakpoints.m}){
7804
- margin-right: 30px;
7805
- margin-left: 30px;
7806
- }
7805
+ @media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.m}) {
7806
+ margin-right: 30px;
7807
+ margin-left: 30px;
7808
+ }
7807
7809
 
7808
- @media screen and (min-width: calc(${props => props.theme.theme_vars.breakpoints.l} + 60px)){
7809
- margin-right: auto;
7810
- margin-left: auto;
7811
- max-width: ${props => props.theme.theme_vars.breakpoints.l};
7812
- }
7810
+ @media screen and (min-width: calc(${(props) => props.theme.theme_vars.breakpoints.l} + 60px)) {
7811
+ margin-right: auto;
7812
+ margin-left: auto;
7813
+ max-width: ${(props) => props.theme.theme_vars.breakpoints.l};
7814
+ }
7813
7815
  `;
7814
7816
 
7815
7817
  const CookieHeading = styled__default.default.p`
7816
- ${props => props.theme.theme_vars.h3}
7817
-
7818
+ ${(props) => props.theme.theme_vars.h3}
7818
7819
  `;
7819
7820
 
7820
7821
  const CookieParagraph = styled__default.default.div`
7821
- margin: ${props => props.theme.theme_vars.spacingSizes.medium} 0;
7822
+ margin: ${(props) => props.theme.theme_vars.spacingSizes.medium} 0;
7822
7823
 
7823
- a {
7824
- ${props => props.theme.linkStyles}
7825
- &:hover{
7826
- ${props => props.theme.linkStylesHover}
7827
- }
7828
- &:focus{
7829
- ${props => props.theme.linkStylesFocus}
7830
- }
7831
- &:active{
7832
- ${props => props.theme.linkStylesActive}
7833
- }
7824
+ a {
7825
+ ${(props) => props.theme.linkStyles}
7826
+ &:hover {
7827
+ ${(props) => props.theme.linkStylesHover}
7834
7828
  }
7829
+ &:focus {
7830
+ ${(props) => props.theme.linkStylesFocus}
7831
+ }
7832
+ &:active {
7833
+ ${(props) => props.theme.linkStylesActive}
7834
+ }
7835
+ }
7835
7836
  `;
7836
7837
  const ButtonsContainer = styled__default.default.div`
7837
7838
  display: flex;
@@ -7852,91 +7853,89 @@ const ButtonsContainer = styled__default.default.div`
7852
7853
  }
7853
7854
  }
7854
7855
 
7855
- @media screen and (min-width: ${props => props.theme.theme_vars.breakpoints.s}){
7856
+ @media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.s}) {
7856
7857
  display: block;
7857
7858
 
7858
7859
  .button--primary {
7859
7860
  width: auto;
7860
7861
  &:last-of-type {
7861
7862
  line-height: 1.3;
7862
-
7863
7863
  }
7864
7864
  }
7865
7865
  }
7866
7866
 
7867
- @media screen and (min-width: ${props => props.theme.theme_vars.breakpoints.m}){
7867
+ @media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.m}) {
7868
7868
  display: block;
7869
7869
 
7870
7870
  .button--primary {
7871
7871
  width: auto;
7872
7872
  &:last-of-type {
7873
7873
  line-height: 1.3;
7874
-
7875
7874
  }
7876
7875
  }
7877
7876
  }
7878
7877
  `;
7879
7878
 
7880
7879
  const StyledButton = styled__default.default.button`
7881
- font-weight: 700;
7882
- border: none;
7883
- cursor: pointer;
7884
- display: inline-block;
7885
- line-height: 1;
7886
- font-family: ${props => props.theme.theme_vars.fontstack};
7887
- border-radius: ${props => props.theme.theme_vars.border_radius};
7888
- text-decoration: none;
7880
+ font-weight: 700;
7881
+ border: none;
7882
+ cursor: pointer;
7883
+ display: inline-block;
7884
+ line-height: 1;
7885
+ font-family: ${(props) => props.theme.theme_vars.fontstack};
7886
+ border-radius: ${(props) => props.theme.theme_vars.border_radius};
7887
+ text-decoration: none;
7889
7888
 
7890
- &.button--primary {
7891
- color: white;
7892
- background-color: ${props => props.theme.theme_vars.colours.action};
7889
+ &.button--primary {
7890
+ color: white;
7891
+ background-color: ${(props) => props.theme.theme_vars.colours.action};
7893
7892
 
7894
- &:hover {
7895
- background-color: ${props => props.theme.theme_vars.colours.action_dark};
7896
- }
7897
- &:focus {
7898
- outline: none;
7899
- color: ${props => props.theme.theme_vars.colours.black} !important;
7900
- background-color: ${props => props.theme.theme_vars.colours.focus};
7901
- box-shadow: 0px -3px 0px 0px ${props => props.theme.theme_vars.colours.black} inset;
7902
- -webkit-box-shadow: 0px -3px 0px 0px ${props => props.theme.theme_vars.colours.black} inset;
7903
- -moz-box-shadow: 0px -3px 0px 0px ${props => props.theme.theme_vars.colours.black} inset;
7904
- }
7905
- &:active {
7906
- transform: translateY(2px);
7907
- color: ${props => props.theme.theme_vars.colours.black} !important;
7908
- background-color: ${props => props.theme.theme_vars.colours.focus};
7909
- box-shadow: 0px -1px 0px 0px ${props => props.theme.theme_vars.colours.black} inset;
7910
- -webkit-box-shadow: 0px -1px 0px 0px ${props => props.theme.theme_vars.colours.black} inset;
7911
- -moz-box-shadow: 0px -1px 0px 0px ${props => props.theme.theme_vars.colours.black} inset;
7912
- }
7893
+ &:hover {
7894
+ background-color: ${(props) => props.theme.theme_vars.colours.action_dark};
7913
7895
  }
7914
- &.button--secondary {
7915
- color: ${props => props.theme.theme_vars.colours.action};
7916
- background-color: transparent;
7917
- border: 2px solid ${props => props.theme.theme_vars.colours.action};
7918
-
7919
- &:hover {
7920
- background-color: ${props => props.theme.theme_vars.colours.action}1A;
7921
- }
7922
- &:focus {
7923
- outline: none;
7924
- border: 2px solid ${props => props.theme.theme_vars.colours.focus};
7925
- background-color: ${props => props.theme.theme_vars.colours.action}1A;
7926
- }
7896
+ &:focus {
7897
+ outline: none;
7898
+ color: ${(props) => props.theme.theme_vars.colours.black} !important;
7899
+ background-color: ${(props) => props.theme.theme_vars.colours.focus};
7900
+ box-shadow: 0px -3px 0px 0px ${(props) => props.theme.theme_vars.colours.black} inset;
7901
+ -webkit-box-shadow: 0px -3px 0px 0px ${(props) => props.theme.theme_vars.colours.black} inset;
7902
+ -moz-box-shadow: 0px -3px 0px 0px ${(props) => props.theme.theme_vars.colours.black} inset;
7927
7903
  }
7928
- &.button--small {
7929
- font-size: 12px;
7930
- padding: 10px 16px;
7904
+ &:active {
7905
+ transform: translateY(2px);
7906
+ color: ${(props) => props.theme.theme_vars.colours.black} !important;
7907
+ background-color: ${(props) => props.theme.theme_vars.colours.focus};
7908
+ box-shadow: 0px -1px 0px 0px ${(props) => props.theme.theme_vars.colours.black} inset;
7909
+ -webkit-box-shadow: 0px -1px 0px 0px ${(props) => props.theme.theme_vars.colours.black} inset;
7910
+ -moz-box-shadow: 0px -1px 0px 0px ${(props) => props.theme.theme_vars.colours.black} inset;
7931
7911
  }
7932
- &.button--medium {
7933
- font-size: 14px;
7934
- padding: 11px 20px;
7912
+ }
7913
+ &.button--secondary {
7914
+ color: ${(props) => props.theme.theme_vars.colours.action};
7915
+ background-color: transparent;
7916
+ border: 2px solid ${(props) => props.theme.theme_vars.colours.action};
7917
+
7918
+ &:hover {
7919
+ background-color: ${(props) => props.theme.theme_vars.colours.action}1A;
7935
7920
  }
7936
- &.button--large {
7937
- font-size: 16px;
7938
- padding: 12px 24px;
7921
+ &:focus {
7922
+ outline: none;
7923
+ border: 2px solid ${(props) => props.theme.theme_vars.colours.focus};
7924
+ background-color: ${(props) => props.theme.theme_vars.colours.action}1A;
7939
7925
  }
7926
+ }
7927
+ &.button--small {
7928
+ font-size: 12px;
7929
+ padding: 10px 16px;
7930
+ }
7931
+ &.button--medium {
7932
+ font-size: 14px;
7933
+ padding: 11px 20px;
7934
+ }
7935
+ &.button--large {
7936
+ font-size: 16px;
7937
+ padding: 14px 24px;
7938
+ }
7940
7939
  `;
7941
7940
 
7942
7941
  /**
@@ -8109,8 +8108,8 @@ var CookieBanner = function (_a) {
8109
8108
  React__default.default.createElement(CookieHeading, null, title),
8110
8109
  React__default.default.createElement(CookieParagraph, null, paragraph),
8111
8110
  React__default.default.createElement(ButtonsContainer, null,
8112
- React__default.default.createElement(FormButton, { primary: true, text: acceptButtonText, isDisabled: true, onClick: acceptCookies }),
8113
- React__default.default.createElement(FormButton, { primary: true, text: rejectButtonText, isDisabled: true, onClick: rejectCookies }))))),
8111
+ React__default.default.createElement(FormButton, { primary: true, text: acceptButtonText, isDisabled: true, onClick: acceptCookies, size: "large" }),
8112
+ React__default.default.createElement(FormButton, { primary: true, text: rejectButtonText, isDisabled: true, onClick: rejectCookies, size: "large" }))))),
8114
8113
  showCookiesRejectedBanner && (React__default.default.createElement(Container$12, { "data-testid": "CookieBannerRejected", id: "CookieBannerRejected" },
8115
8114
  React__default.default.createElement(CookieMessage, { isInline: true },
8116
8115
  React__default.default.createElement(CookieParagraph, null, rejectConfirmationText),
@@ -8177,8 +8176,9 @@ const OpenAllButton = styled__default.default.button`
8177
8176
  position: relative;
8178
8177
  z-index: 1;
8179
8178
  margin: 0;
8180
- margin-bottom: 15px;
8181
- padding: 0;
8179
+ margin-bottom: 5px;
8180
+ padding-top: ${(props) => props.theme.theme_vars.spacingSizes.medium};
8181
+ padding-bottom: ${(props) => props.theme.theme_vars.spacingSizes.small};
8182
8182
  border-width: 0;
8183
8183
  color: ${(props) => props.theme.theme_vars.colours.action};
8184
8184
  background: none;
@@ -8211,7 +8211,7 @@ const SectionHeader = styled__default.default.div`
8211
8211
  border-top: 1px solid ${(props) => props.theme.theme_vars.colours.grey};
8212
8212
  color: ${(props) => props.theme.theme_vars.colours.action};
8213
8213
  cursor: pointer;
8214
- padding-bottom: 15px;
8214
+ padding-bottom: 10px;
8215
8215
 
8216
8216
  &:hover {
8217
8217
  border-top-color: ${(props) => props.theme.theme_vars.colours.action};
@@ -8220,19 +8220,20 @@ const SectionHeader = styled__default.default.div`
8220
8220
  }
8221
8221
  `;
8222
8222
 
8223
- const SectionHeading = styled__default.default.div`
8224
- margin-top: 10px;
8225
- margin-bottom: 5px;
8226
- `;
8223
+ const SectionHeading = styled__default.default.div``;
8227
8224
 
8228
8225
  const SectionButtonIsFilteredStyles = (props) => {
8229
8226
  if (props.$isFilter) {
8230
8227
  return styled.css`
8231
8228
  ${(props) => props.theme.theme_vars.h4}
8229
+ padding-top: 15px;
8230
+ padding-bottom: 15px;
8232
8231
  `;
8233
8232
  } else {
8234
8233
  return styled.css`
8235
8234
  ${(props) => props.theme.theme_vars.h3}
8235
+ padding-top: ${(props) => props.theme.theme_vars.spacingSizes.small};
8236
+ padding-bottom: ${(props) => props.theme.theme_vars.spacingSizes.small};
8236
8237
  `;
8237
8238
  }
8238
8239
  };
@@ -8576,10 +8577,10 @@ var LoadingSpinner = function () {
8576
8577
  * If value is set then treat as controlled component
8577
8578
  */
8578
8579
  var Input$6 = function (_a) {
8579
- var _b = _a.type, type = _b === void 0 ? 'text' : _b, _c = _a.placeholder, placeholder = _c === void 0 ? '' : _c, _d = _a.isErrored, isErrored = _d === void 0 ? false : _d, errorText = _a.errorText, name = _a.name, maxLength = _a.maxLength, defaultValue = _a.defaultValue, onChange = _a.onChange, id = _a.id, value = _a.value, _e = _a.isFullWidth, isFullWidth = _e === void 0 ? false : _e;
8580
+ var _b = _a.type, type = _b === void 0 ? 'text' : _b, _c = _a.placeholder, placeholder = _c === void 0 ? '' : _c, _d = _a.isErrored, isErrored = _d === void 0 ? false : _d, errorText = _a.errorText, name = _a.name, maxLength = _a.maxLength, defaultValue = _a.defaultValue, onChange = _a.onChange, id = _a.id, value = _a.value, autocomplete = _a.autocomplete, _e = _a.isFullWidth, isFullWidth = _e === void 0 ? false : _e;
8580
8581
  return (React__default.default.createElement(React__default.default.Fragment, null,
8581
8582
  errorText && React__default.default.createElement(ErrorText$2, null, errorText),
8582
- typeof value !== 'undefined' ? (React__default.default.createElement(StyledInput, { onChange: onChange, type: type, placeholder: placeholder, name: name, "$isErrored": isErrored, maxLength: maxLength, value: value, id: id, "$isFullWidth": isFullWidth })) : (React__default.default.createElement(StyledInput, { onChange: onChange, type: type, placeholder: placeholder, name: name, "$isErrored": isErrored, maxLength: maxLength, defaultValue: defaultValue, id: id, "$isFullWidth": isFullWidth }))));
8583
+ typeof value !== 'undefined' ? (React__default.default.createElement(StyledInput, { onChange: onChange, type: type, placeholder: placeholder, name: name, "$isErrored": isErrored, maxLength: maxLength, value: value, id: id, autoComplete: autocomplete, "$isFullWidth": isFullWidth })) : (React__default.default.createElement(StyledInput, { onChange: onChange, type: type, placeholder: placeholder, name: name, "$isErrored": isErrored, maxLength: maxLength, defaultValue: defaultValue, id: id, autoComplete: autocomplete, "$isFullWidth": isFullWidth }))));
8583
8584
  };
8584
8585
 
8585
8586
  const Container$_ = styled__default.default.div`
@@ -15050,7 +15051,7 @@ let Node$4 = class Node {
15050
15051
  column: opts.end.column,
15051
15052
  line: opts.end.line
15052
15053
  };
15053
- } else if (opts.endIndex) {
15054
+ } else if (typeof opts.endIndex === 'number') {
15054
15055
  end = this.positionInside(opts.endIndex);
15055
15056
  } else if (opts.index) {
15056
15057
  end = this.positionInside(opts.index + 1);
@@ -16267,6 +16268,7 @@ function SourceMapGenerator$4(aArgs) {
16267
16268
  this._file = util$4.getArg(aArgs, 'file', null);
16268
16269
  this._sourceRoot = util$4.getArg(aArgs, 'sourceRoot', null);
16269
16270
  this._skipValidation = util$4.getArg(aArgs, 'skipValidation', false);
16271
+ this._ignoreInvalidMapping = util$4.getArg(aArgs, 'ignoreInvalidMapping', false);
16270
16272
  this._sources = new ArraySet$1();
16271
16273
  this._names = new ArraySet$1();
16272
16274
  this._mappings = new MappingList();
@@ -16281,12 +16283,12 @@ SourceMapGenerator$4.prototype._version = 3;
16281
16283
  * @param aSourceMapConsumer The SourceMap.
16282
16284
  */
16283
16285
  SourceMapGenerator$4.fromSourceMap =
16284
- function SourceMapGenerator_fromSourceMap(aSourceMapConsumer) {
16286
+ function SourceMapGenerator_fromSourceMap(aSourceMapConsumer, generatorOps) {
16285
16287
  var sourceRoot = aSourceMapConsumer.sourceRoot;
16286
- var generator = new SourceMapGenerator$4({
16288
+ var generator = new SourceMapGenerator$4(Object.assign(generatorOps || {}, {
16287
16289
  file: aSourceMapConsumer.file,
16288
16290
  sourceRoot: sourceRoot
16289
- });
16291
+ }));
16290
16292
  aSourceMapConsumer.eachMapping(function (mapping) {
16291
16293
  var newMapping = {
16292
16294
  generated: {
@@ -16349,7 +16351,9 @@ SourceMapGenerator$4.prototype.addMapping =
16349
16351
  var name = util$4.getArg(aArgs, 'name', null);
16350
16352
 
16351
16353
  if (!this._skipValidation) {
16352
- this._validateMapping(generated, original, source, name);
16354
+ if (this._validateMapping(generated, original, source, name) === false) {
16355
+ return;
16356
+ }
16353
16357
  }
16354
16358
 
16355
16359
  if (source != null) {
@@ -16515,11 +16519,18 @@ SourceMapGenerator$4.prototype._validateMapping =
16515
16519
  // specific error message to try to guide them the right way.
16516
16520
  // For example: https://github.com/Polymer/polymer-bundler/pull/519
16517
16521
  if (aOriginal && typeof aOriginal.line !== 'number' && typeof aOriginal.column !== 'number') {
16518
- throw new Error(
16519
- 'original.line and original.column are not numbers -- you probably meant to omit ' +
16520
- 'the original mapping entirely and only map the generated position. If so, pass ' +
16521
- 'null for the original mapping instead of an object with empty or null values.'
16522
- );
16522
+ var message = 'original.line and original.column are not numbers -- you probably meant to omit ' +
16523
+ 'the original mapping entirely and only map the generated position. If so, pass ' +
16524
+ 'null for the original mapping instead of an object with empty or null values.';
16525
+
16526
+ if (this._ignoreInvalidMapping) {
16527
+ if (typeof console !== 'undefined' && console.warn) {
16528
+ console.warn(message);
16529
+ }
16530
+ return false;
16531
+ } else {
16532
+ throw new Error(message);
16533
+ }
16523
16534
  }
16524
16535
 
16525
16536
  if (aGenerated && 'line' in aGenerated && 'column' in aGenerated
@@ -16537,12 +16548,21 @@ SourceMapGenerator$4.prototype._validateMapping =
16537
16548
  return;
16538
16549
  }
16539
16550
  else {
16540
- throw new Error('Invalid mapping: ' + JSON.stringify({
16551
+ var message = 'Invalid mapping: ' + JSON.stringify({
16541
16552
  generated: aGenerated,
16542
16553
  source: aSource,
16543
16554
  original: aOriginal,
16544
16555
  name: aName
16545
- }));
16556
+ });
16557
+
16558
+ if (this._ignoreInvalidMapping) {
16559
+ if (typeof console !== 'undefined' && console.warn) {
16560
+ console.warn(message);
16561
+ }
16562
+ return false;
16563
+ } else {
16564
+ throw new Error(message)
16565
+ }
16546
16566
  }
16547
16567
  };
16548
16568
 
@@ -17989,7 +18009,7 @@ IndexedSourceMapConsumer.prototype.sourceContentFor =
17989
18009
  var section = this._sections[i];
17990
18010
 
17991
18011
  var content = section.consumer.sourceContentFor(aSource, true);
17992
- if (content) {
18012
+ if (content || content === '') {
17993
18013
  return content;
17994
18014
  }
17995
18015
  }
@@ -18959,6 +18979,7 @@ let MapGenerator$2 = class MapGenerator {
18959
18979
  this.root = root;
18960
18980
  this.opts = opts;
18961
18981
  this.css = cssString;
18982
+ this.originalCSS = cssString;
18962
18983
  this.usesFileUrls = !this.mapOpts.from && this.mapOpts.absolute;
18963
18984
 
18964
18985
  this.memoizedFileURLs = new Map();
@@ -18994,7 +19015,7 @@ let MapGenerator$2 = class MapGenerator {
18994
19015
  if (this.mapOpts.sourcesContent === false) {
18995
19016
  map = new SourceMapConsumer(prev.text);
18996
19017
  if (map.sourcesContent) {
18997
- map.sourcesContent = map.sourcesContent.map(() => null);
19018
+ map.sourcesContent = null;
18998
19019
  }
18999
19020
  } else {
19000
19021
  map = prev.consumer();
@@ -19017,7 +19038,7 @@ let MapGenerator$2 = class MapGenerator {
19017
19038
  }
19018
19039
  }
19019
19040
  } else if (this.css) {
19020
- this.css = this.css.replace(/(\n)?\/\*#[\S\s]*?\*\/$/gm, '');
19041
+ this.css = this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm, '');
19021
19042
  }
19022
19043
  }
19023
19044
 
@@ -19040,9 +19061,14 @@ let MapGenerator$2 = class MapGenerator {
19040
19061
  } else if (this.previous().length === 1) {
19041
19062
  let prev = this.previous()[0].consumer();
19042
19063
  prev.file = this.outputFile();
19043
- this.map = SourceMapGenerator.fromSourceMap(prev);
19064
+ this.map = SourceMapGenerator.fromSourceMap(prev, {
19065
+ ignoreInvalidMapping: true
19066
+ });
19044
19067
  } else {
19045
- this.map = new SourceMapGenerator({ file: this.outputFile() });
19068
+ this.map = new SourceMapGenerator({
19069
+ file: this.outputFile(),
19070
+ ignoreInvalidMapping: true
19071
+ });
19046
19072
  this.map.addMapping({
19047
19073
  generated: { column: 0, line: 1 },
19048
19074
  original: { column: 0, line: 1 },
@@ -19065,7 +19091,10 @@ let MapGenerator$2 = class MapGenerator {
19065
19091
 
19066
19092
  generateString() {
19067
19093
  this.css = '';
19068
- this.map = new SourceMapGenerator({ file: this.outputFile() });
19094
+ this.map = new SourceMapGenerator({
19095
+ file: this.outputFile(),
19096
+ ignoreInvalidMapping: true
19097
+ });
19069
19098
 
19070
19099
  let line = 1;
19071
19100
  let column = 1;
@@ -19219,7 +19248,7 @@ let MapGenerator$2 = class MapGenerator {
19219
19248
  }
19220
19249
  });
19221
19250
  } else {
19222
- let input = new Input$3(this.css, this.opts);
19251
+ let input = new Input$3(this.originalCSS, this.opts);
19223
19252
  if (input.map) this.previousMaps.push(input.map);
19224
19253
  }
19225
19254
  }
@@ -19486,6 +19515,8 @@ let Container$Z = class Container extends Node$1 {
19486
19515
  normalize(nodes, sample) {
19487
19516
  if (typeof nodes === 'string') {
19488
19517
  nodes = cleanSource(parse$4(nodes).nodes);
19518
+ } else if (typeof nodes === 'undefined') {
19519
+ nodes = [];
19489
19520
  } else if (Array.isArray(nodes)) {
19490
19521
  nodes = nodes.slice(0);
19491
19522
  for (let i of nodes) {
@@ -20067,7 +20098,6 @@ let Parser$1 = class Parser {
20067
20098
  this.current = this.root;
20068
20099
  this.spaces = '';
20069
20100
  this.semicolon = false;
20070
- this.customProperty = false;
20071
20101
 
20072
20102
  this.createTokenizer();
20073
20103
  this.root.source = { input, start: { column: 1, line: 1, offset: 0 } };
@@ -21275,6 +21305,9 @@ let NoWorkResult$1 = class NoWorkResult {
21275
21305
  if (generatedMap) {
21276
21306
  this.result.map = generatedMap;
21277
21307
  }
21308
+ } else {
21309
+ map.clearAnnotation();
21310
+ this.result.css = map.css;
21278
21311
  }
21279
21312
  }
21280
21313
 
@@ -21379,7 +21412,7 @@ let Root$2 = root;
21379
21412
 
21380
21413
  let Processor$1 = class Processor {
21381
21414
  constructor(plugins = []) {
21382
- this.version = '8.4.31';
21415
+ this.version = '8.4.38';
21383
21416
  this.plugins = this.normalize(plugins);
21384
21417
  }
21385
21418
 
@@ -21415,10 +21448,10 @@ let Processor$1 = class Processor {
21415
21448
 
21416
21449
  process(css, opts = {}) {
21417
21450
  if (
21418
- this.plugins.length === 0 &&
21419
- typeof opts.parser === 'undefined' &&
21420
- typeof opts.stringifier === 'undefined' &&
21421
- typeof opts.syntax === 'undefined'
21451
+ !this.plugins.length &&
21452
+ !opts.parser &&
21453
+ !opts.stringifier &&
21454
+ !opts.syntax
21422
21455
  ) {
21423
21456
  return new NoWorkResult(this, css, opts)
21424
21457
  } else {
@@ -21855,7 +21888,7 @@ function sanitizeHtml(html, options, _recursing) {
21855
21888
  if (!tagAllowed(name) || (options.disallowedTagsMode === 'recursiveEscape' && !isEmptyObject(skipMap)) || (options.nestingLimit != null && depth >= options.nestingLimit)) {
21856
21889
  skip = true;
21857
21890
  skipMap[depth] = true;
21858
- if (options.disallowedTagsMode === 'discard') {
21891
+ if (options.disallowedTagsMode === 'discard' || options.disallowedTagsMode === 'completelyDiscard') {
21859
21892
  if (nonTextTagsArray.indexOf(name) !== -1) {
21860
21893
  skipText = true;
21861
21894
  skipTextDepth = 1;
@@ -21865,7 +21898,7 @@ function sanitizeHtml(html, options, _recursing) {
21865
21898
  }
21866
21899
  depth++;
21867
21900
  if (skip) {
21868
- if (options.disallowedTagsMode === 'discard') {
21901
+ if (options.disallowedTagsMode === 'discard' || options.disallowedTagsMode === 'completelyDiscard') {
21869
21902
  // We want the contents but not this tag
21870
21903
  return;
21871
21904
  }
@@ -21888,9 +21921,11 @@ function sanitizeHtml(html, options, _recursing) {
21888
21921
  delete frame.attribs[a];
21889
21922
  return;
21890
21923
  }
21891
- // If the value is empty, and this is a known non-boolean attribute, delete it
21924
+ // If the value is empty, check if the attribute is in the allowedEmptyAttributes array.
21925
+ // If it is not in the allowedEmptyAttributes array, and it is a known non-boolean attribute, delete it
21892
21926
  // List taken from https://html.spec.whatwg.org/multipage/indices.html#attributes-3
21893
- if (value === '' && (options.nonBooleanAttributes.includes(a) || options.nonBooleanAttributes.includes('*'))) {
21927
+ if (value === '' && (!options.allowedEmptyAttributes.includes(a)) &&
21928
+ (options.nonBooleanAttributes.includes(a) || options.nonBooleanAttributes.includes('*'))) {
21894
21929
  delete frame.attribs[a];
21895
21930
  return;
21896
21931
  }
@@ -22044,7 +22079,7 @@ function sanitizeHtml(html, options, _recursing) {
22044
22079
  if (a === 'style') {
22045
22080
  if (options.parseStyleAttributes) {
22046
22081
  try {
22047
- const abstractSyntaxTree = postcssParse(name + ' {' + value + '}');
22082
+ const abstractSyntaxTree = postcssParse(name + ' {' + value + '}', { map: false });
22048
22083
  const filteredAST = filterCss(abstractSyntaxTree, options.allowedStyles);
22049
22084
 
22050
22085
  value = stringifyStyleAttributes(filteredAST);
@@ -22067,6 +22102,8 @@ function sanitizeHtml(html, options, _recursing) {
22067
22102
  result += ' ' + a;
22068
22103
  if (value && value.length) {
22069
22104
  result += '="' + escapeHtml(value, true) + '"';
22105
+ } else if (options.allowedEmptyAttributes.includes(a)) {
22106
+ result += '=""';
22070
22107
  }
22071
22108
  } else {
22072
22109
  delete frame.attribs[a];
@@ -22100,7 +22137,9 @@ function sanitizeHtml(html, options, _recursing) {
22100
22137
  text = lastFrame.innerText !== undefined ? lastFrame.innerText : text;
22101
22138
  }
22102
22139
 
22103
- if (options.disallowedTagsMode === 'discard' && ((tag === 'script') || (tag === 'style'))) {
22140
+ if (options.disallowedTagsMode === 'completelyDiscard' && !tagAllowed(tag)) {
22141
+ text = '';
22142
+ } else if ((options.disallowedTagsMode === 'discard' || options.disallowedTagsMode === 'completelyDiscard') && ((tag === 'script') || (tag === 'style'))) {
22104
22143
  // htmlparser2 gives us these as-is. Escaping them ruins the content. Allowing
22105
22144
  // script tags is, by definition, game over for XSS protection, so if that's
22106
22145
  // your concern, don't allow them. The same is essentially true for style tags
@@ -22148,7 +22187,7 @@ function sanitizeHtml(html, options, _recursing) {
22148
22187
  const skip = skipMap[depth];
22149
22188
  if (skip) {
22150
22189
  delete skipMap[depth];
22151
- if (options.disallowedTagsMode === 'discard') {
22190
+ if (options.disallowedTagsMode === 'discard' || options.disallowedTagsMode === 'completelyDiscard') {
22152
22191
  frame.updateParentNodeText();
22153
22192
  return;
22154
22193
  }
@@ -22469,6 +22508,9 @@ sanitizeHtml.defaults = {
22469
22508
  // these attributes would make sense if we did.
22470
22509
  img: [ 'src', 'srcset', 'alt', 'title', 'width', 'height', 'loading' ]
22471
22510
  },
22511
+ allowedEmptyAttributes: [
22512
+ 'alt'
22513
+ ],
22472
22514
  // Lots of these won't come up by default because we don't allow them
22473
22515
  selfClosing: [ 'img', 'br', 'hr', 'area', 'base', 'basefont', 'input', 'link', 'meta' ],
22474
22516
  // URL schemes we permit
@@ -22522,16 +22564,41 @@ var BinFinder = function (_a) {
22522
22564
  houseNumber: '',
22523
22565
  },
22524
22566
  }); _m.register; var handleSubmit = _m.handleSubmit; _m.watch; var control = _m.control, errors = _m.formState.errors, getValues = _m.getValues, setValue = _m.setValue, setError = _m.setError;
22567
+ var uprnCookieName = 'uprn-cookie';
22568
+ // Try and retrieve uprn and address stored in cookie if cookies accepted
22569
+ React.useEffect(function () {
22570
+ var _a, _b;
22571
+ if (wereCookiesAccepted()) {
22572
+ var addressCookie = getCookie(uprnCookieName);
22573
+ if (addressCookie !== null) {
22574
+ var parsedCookie = JSON.parse(addressCookie);
22575
+ setUprn((_a = parsedCookie.uprn) !== null && _a !== void 0 ? _a : '');
22576
+ setAddress((_b = parsedCookie.address) !== null && _b !== void 0 ? _b : '');
22577
+ }
22578
+ }
22579
+ }, []);
22525
22580
  React.useEffect(function () {
22526
22581
  if (uprn) {
22582
+ // Store uprn and address in cookie if cookies accepted
22583
+ if (wereCookiesAccepted()) {
22584
+ var date = new Date();
22585
+ date.setTime(date.getTime() + 365 * 24 * 60 * 60 * 1000);
22586
+ var cookie = {
22587
+ uprn: uprn,
22588
+ address: address,
22589
+ };
22590
+ document.cookie = "".concat(uprnCookieName, "=").concat(JSON.stringify(cookie), ";expires=").concat(date.toUTCString(), ";path=/");
22591
+ }
22527
22592
  getBinCollections();
22528
22593
  }
22529
22594
  }, [uprn]);
22530
22595
  var onSubmit = function (data) {
22531
22596
  setIsLoading(true);
22532
22597
  setIsError(undefined);
22598
+ var formattedPostcode = data.postcode.replace(/ /g, '').substring(0, 10);
22599
+ var formattedHouseNumber = data.houseNumber.trim();
22533
22600
  axios__default.default
22534
- .get("".concat(PostcodeSearchApiUrl).concat(data.postcode.replace(/ /g, '').substring(0, 10), "?address=").concat(data.houseNumber))
22601
+ .get("".concat(PostcodeSearchApiUrl).concat(formattedPostcode, "?address=").concat(formattedHouseNumber))
22535
22602
  .then(function (response) {
22536
22603
  var _a, _b, _c, _d;
22537
22604
  setIsLoading(false);
@@ -22552,6 +22619,12 @@ var BinFinder = function (_a) {
22552
22619
  setAddress(response.data.addresses[0].single_line_address);
22553
22620
  }
22554
22621
  else if (response.data.total_pages > 1) {
22622
+ if (showFirstLine) {
22623
+ setError('houseNumber', {
22624
+ type: 'custom',
22625
+ message: 'This address could not be found based on the information given. Please try entering further information.',
22626
+ });
22627
+ }
22555
22628
  setShowFirstLine(true);
22556
22629
  }
22557
22630
  else {
@@ -22654,9 +22727,9 @@ var BinFinder = function (_a) {
22654
22727
  } })),
22655
22728
  showFirstLine && (React__default.default.createElement(React__default.default.Fragment, null,
22656
22729
  React__default.default.createElement(Column, { small: "full", medium: "full", large: "full" },
22657
- React__default.default.createElement("p", null, "There are several addresses for this postcode. Please enter the first line of your address.")),
22730
+ React__default.default.createElement("p", null, "There are several addresses for this postcode. Please enter the full first line of your address.")),
22658
22731
  React__default.default.createElement(Column, { small: "full", medium: "full", large: "full" },
22659
- React__default.default.createElement(Label$4, { htmlFor: "houseNumber" }, "First line of address"),
22732
+ React__default.default.createElement(Label$4, { htmlFor: "houseNumber" }, "Full first line of address"),
22660
22733
  React__default.default.createElement(reactHookForm.Controller, { name: "houseNumber", control: control, rules: { maxLength: 50 }, render: function (_a) {
22661
22734
  var _b;
22662
22735
  var _c = _a.field, onChange = _c.onChange, value = _c.value;
@@ -23482,9 +23555,9 @@ const Wrapper$4 = styled__default.default.div`
23482
23555
  const Content$4 = styled__default.default.div``;
23483
23556
 
23484
23557
  const CTA = styled__default.default.a`
23485
- margin-top: 10px;
23558
+ margin-top: ${(props) => props.theme.theme_vars.spacingSizes.extra_small};
23486
23559
  display: inline-block;
23487
- padding: 3px 7px;
23560
+ padding: ${(props) => props.theme.theme_vars.spacingSizes.small} 7px;
23488
23561
  margin-left: -7px;
23489
23562
  ${(props) => props.theme.linkStyles};
23490
23563
  :hover {
@@ -23919,7 +23992,7 @@ var Video = function (_a) {
23919
23992
  var defineLinks = function () {
23920
23993
  if (provider == VideoProvider.YouTube) {
23921
23994
  watchLink = "https://www.youtube.com/watch?v=".concat(video_id);
23922
- embedLink = "https://www.youtube.com/embed/".concat(video_id, "?rel=0");
23995
+ embedLink = "https://www.youtube.com/embed/".concat(video_id, "?rel=0&cc_load_policy=1");
23923
23996
  }
23924
23997
  if (provider == VideoProvider.Vimeo) {
23925
23998
  watchLink = "https://vimeo.com/".concat(video_id);
@@ -23990,7 +24063,7 @@ var WarningTextDisclaimer = function () {
23990
24063
  "."));
23991
24064
  };
23992
24065
 
23993
- const AccessibleLinks = styled__default.default.a`
24066
+ const AccessibleLinks$1 = styled__default.default.a`
23994
24067
  ${props => props.theme.fontStyles}
23995
24068
 
23996
24069
  position: absolute;
@@ -24046,10 +24119,10 @@ const AccessibleLinks = styled__default.default.a`
24046
24119
 
24047
24120
  `;
24048
24121
 
24049
- var AccessibleLink = function (_a) {
24122
+ var AccessibleLinks = function (_a) {
24050
24123
  var _b = _a.AccessibleLinksArray, AccessibleLinksArray = _b === void 0 ? null : _b;
24051
24124
  return (React__default.default.createElement(React__default.default.Fragment, null, AccessibleLinksArray && AccessibleLinksArray.map(function (link, i) {
24052
- return React__default.default.createElement(AccessibleLinks, { key: 'accessible-link-' + i, href: link.url }, link.title);
24125
+ return React__default.default.createElement(AccessibleLinks$1, { key: 'accessible-link-' + i, href: link.url }, link.title);
24053
24126
  })));
24054
24127
  };
24055
24128
 
@@ -24314,8 +24387,8 @@ var AlertBanner = function (_a) {
24314
24387
  const Container$C = styled__default.default.a`
24315
24388
  display: inline-block;
24316
24389
  position: relative;
24317
- margin-top: 15px;
24318
- margin-bottom: 15px;
24390
+ padding-top: 15px;
24391
+ padding-bottom: 15px;
24319
24392
  padding-left: 14px;
24320
24393
  border: none;
24321
24394
  background: transparent;
@@ -24460,7 +24533,7 @@ const List$1 = styled__default.default.ul`
24460
24533
  `;
24461
24534
 
24462
24535
  const ListItem$1 = styled__default.default.li`
24463
- margin-bottom: 0px !important;
24536
+ margin-bottom: 5px !important;
24464
24537
 
24465
24538
  &::marker {
24466
24539
  font-size: ${(props) => props.theme.theme_vars.spacingSizes.medium};
@@ -24472,6 +24545,8 @@ const ListItem$1 = styled__default.default.li`
24472
24545
  `;
24473
24546
 
24474
24547
  const Link$2 = styled__default.default.a`
24548
+ display: inline-block;
24549
+ padding: ${(props) => props.theme.theme_vars.spacingSizes.extra_small} 0;
24475
24550
  ${(props) => props.theme.fontStyles};
24476
24551
  ${(props) => props.theme.linkStyles};
24477
24552
  margin-left: ${(props) => props.theme.theme_vars.spacingSizes.small};
@@ -25078,9 +25153,9 @@ const Button$3 = styled__default.default.button`
25078
25153
 
25079
25154
  width: ${(props) => (props.$isLarge ? '5rem' : '3rem')};
25080
25155
  text-align: center;
25081
- height: ${(props) => (props.$isLarge ? '2.9rem' : '2.28rem')};
25156
+ /* height: ${(props) => (props.$isLarge ? '2.9rem' : '2.28rem')}; */
25157
+ height: ${(props) => (props.$isLarge ? '3.22rem' : '2.6rem')};
25082
25158
  @media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.m}) {
25083
- height: ${(props) => (props.$isLarge ? '3.22rem' : '2.6rem')};
25084
25159
  margin-top: ${(props) => (props.$isErrored ? (props.$isLarge ? '26px' : '26px') : 0)};
25085
25160
  }
25086
25161
 
@@ -26837,7 +26912,19 @@ const Title$3 = styled__default.default.a`
26837
26912
  ${(props) => props.theme.linkStyles};
26838
26913
  font-size: 1.2em;
26839
26914
  display: block;
26840
- margin-bottom: 5px;
26915
+ padding: 6px 0;
26916
+
26917
+ &:hover {
26918
+ ${(props) => props.theme.linkStylesHover};
26919
+ }
26920
+
26921
+ &:focus {
26922
+ ${(props) => props.theme.linkStylesFocus};
26923
+ }
26924
+
26925
+ &:active {
26926
+ ${(props) => props.theme.linkStylesActive};
26927
+ }
26841
26928
  `;
26842
26929
 
26843
26930
  const ServiceArea = styled__default.default.p`
@@ -27107,85 +27194,86 @@ var SectionLinks = function (_a) {
27107
27194
  };
27108
27195
 
27109
27196
  const Container$e = styled__default.default.aside`
27110
- padding-top: 20px;
27111
- display: block;
27197
+ padding-top: 20px;
27198
+ display: block;
27112
27199
 
27113
- @media screen and (min-width: ${props => props.theme.theme_vars.breakpoints.m}){
27114
- position: absolute;
27115
- width: 1px;
27116
- height: 1px;
27117
- margin: 0;
27118
- overflow: hidden;
27119
- clip: rect(0 0 0 0);
27120
- clip-path: inset(50%);
27121
- white-space: nowrap;
27122
-
27123
- &:focus-within {
27124
- position: static;
27125
- width: auto;
27126
- height: auto;
27127
- margin: inherit;
27128
- overflow: visible;
27129
- clip: auto;
27130
- -webkit-clip-path: none;
27131
- clip-path: none;
27132
- white-space: inherit
27133
- }
27200
+ @media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.m}) {
27201
+ position: absolute;
27202
+ width: 1px;
27203
+ height: 1px;
27204
+ margin: 0;
27205
+ overflow: hidden;
27206
+ clip: rect(0 0 0 0);
27207
+ clip-path: inset(50%);
27208
+ white-space: nowrap;
27209
+
27210
+ &:focus-within {
27211
+ position: static;
27212
+ width: auto;
27213
+ height: auto;
27214
+ margin: inherit;
27215
+ overflow: visible;
27216
+ clip: auto;
27217
+ -webkit-clip-path: none;
27218
+ clip-path: none;
27219
+ white-space: inherit;
27134
27220
  }
27221
+ }
27135
27222
  `;
27136
- const Contents = styled__default.default.nav`
27137
- `;
27223
+ const Contents = styled__default.default.nav``;
27138
27224
  const ContentsList = styled__default.default.ul`
27139
- margin-top: 10px !important;
27140
- margin-left: 0 !important;
27141
- margin-bottom: 20px;
27142
- list-style-type: none;
27225
+ margin-top: 10px !important;
27226
+ margin-left: 0 !important;
27227
+ margin-bottom: 20px;
27228
+ list-style-type: none;
27143
27229
 
27144
- font-weight: 400;
27145
- font-size: 14px;
27146
- line-height: 1.5;
27230
+ font-weight: 400;
27231
+ /* font-size: 14px; */
27232
+ line-height: 1.5;
27147
27233
  `;
27148
27234
  const ContentsTitle = styled__default.default.h2`
27149
- font-weight: 400;
27150
- font-size: 14px;
27151
- line-height: 1.5;
27152
- margin: 0;
27235
+ font-weight: 400;
27236
+ font-size: 14px;
27237
+ line-height: 1.5;
27238
+ margin: 0;
27153
27239
  `;
27154
27240
 
27155
27241
  const ContentsItem = styled__default.default.li`
27156
- position: relative;
27157
- margin-bottom: 10px !important;
27158
- padding-left: 25px;
27159
-
27160
- &:before {
27161
- content: "—" !important;
27162
- position: absolute !important;
27163
- left: 0 !important;
27164
- width: 20px !important;
27165
- overflow: hidden !important;
27166
- background: transparent !important;
27167
- height: auto !important;
27168
- width: auto !important;
27169
- border-radius: 0 !important;
27170
- top: 0 !important;
27171
- }
27242
+ position: relative;
27243
+ margin-bottom: 5px !important;
27244
+ padding-left: 25px;
27245
+
27246
+ &:before {
27247
+ content: '—' !important;
27248
+ position: absolute !important;
27249
+ left: 0 !important;
27250
+ width: 20px !important;
27251
+ overflow: hidden !important;
27252
+ background: transparent !important;
27253
+ height: auto !important;
27254
+ width: auto !important;
27255
+ border-radius: 0 !important;
27256
+ top: 10px !important;
27257
+ }
27172
27258
  `;
27173
27259
  const InlineLink = styled__default.default.a`
27174
- ${props => props.theme.linkStyles}
27175
- font-weight: 400;
27260
+ ${(props) => props.theme.linkStyles}
27261
+ padding: ${(props) => props.theme.theme_vars.spacingSizes.small} 0;
27262
+ font-weight: 400;
27263
+ display: inline-block;
27176
27264
 
27177
- &:hover{
27178
- ${props => props.theme.linkStylesHover}
27179
- }
27180
- &:focus{
27181
- ${props => props.theme.linkStylesFocus}
27182
- svg {
27183
- fill: ${props => props.theme.theme_vars.colours.black};
27184
- }
27185
- }
27186
- &:active{
27187
- ${props => props.theme.linkStylesActive}
27265
+ &:hover {
27266
+ ${(props) => props.theme.linkStylesHover}
27267
+ }
27268
+ &:focus {
27269
+ ${(props) => props.theme.linkStylesFocus}
27270
+ svg {
27271
+ fill: ${(props) => props.theme.theme_vars.colours.black};
27188
27272
  }
27273
+ }
27274
+ &:active {
27275
+ ${(props) => props.theme.linkStylesActive}
27276
+ }
27189
27277
  `;
27190
27278
 
27191
27279
  var SectionLinksMobileContents = function (_a) {
@@ -27193,10 +27281,8 @@ var SectionLinksMobileContents = function (_a) {
27193
27281
  return (React__default.default.createElement(Container$e, null,
27194
27282
  React__default.default.createElement(Contents, null,
27195
27283
  React__default.default.createElement(ContentsTitle, null, "Contents"),
27196
- React__default.default.createElement(ContentsList, null, sectionLinksArray.map(function (link) {
27197
- return React__default.default.createElement(ContentsItem, { key: link.title },
27198
- React__default.default.createElement(InlineLink, { href: "#" + link.id, title: link.title }, link.title));
27199
- })))));
27284
+ React__default.default.createElement(ContentsList, null, sectionLinksArray.map(function (link) { return (React__default.default.createElement(ContentsItem, { key: link.title },
27285
+ React__default.default.createElement(InlineLink, { href: '#' + link.id, title: link.title }, link.title))); })))));
27200
27286
  };
27201
27287
 
27202
27288
  const Container$d = styled__default.default.div`
@@ -27216,7 +27302,7 @@ const MobileTitleButton = styled__default.default.button`
27216
27302
  border: none;
27217
27303
  text-align: left;
27218
27304
  border-bottom: 2px solid ${(props) => props.theme.theme_vars.colours.action};
27219
- padding: ${(props) => props.theme.theme_vars.spacingSizes.small};
27305
+ padding: ${(props) => `${props.theme.theme_vars.spacingSizes.medium} ${props.theme.theme_vars.spacingSizes.small}`};
27220
27306
  font-size: 1em;
27221
27307
 
27222
27308
  svg {
@@ -27323,7 +27409,7 @@ const ListItem = styled__default.default.li`
27323
27409
  const ListItemLink = styled__default.default.a`
27324
27410
  display: block;
27325
27411
  color: ${(props) => props.theme.theme_vars.colours.action};
27326
- padding: 5px 10px;
27412
+ padding: ${(props) => props.theme.theme_vars.spacingSizes.small};
27327
27413
  text-decoration: none;
27328
27414
 
27329
27415
  &:hover {
@@ -27834,7 +27920,7 @@ const ReorderButton = styled__default.default.button`
27834
27920
  border-radius: ${(props) => props.theme.theme_vars.border_radius};
27835
27921
  margin-top: 10px;
27836
27922
  margin-right: 10px;
27837
- padding: 5px 12px;
27923
+ padding: ${(props) => props.theme.theme_vars.spacingSizes.small};
27838
27924
  line-height: 1.5;
27839
27925
  font-size: 0.9em;
27840
27926
  cursor: pointer;
@@ -28855,7 +28941,7 @@ var generate_theme = function (theme_vars) {
28855
28941
  cardinal_name: theme_vars.cardinal_name,
28856
28942
  is_memorial: theme_vars.is_memorial,
28857
28943
  theme_vars: theme_vars,
28858
- fontStyles: "\n font-family: ".concat(theme_vars.fontstack, ";\n color: ").concat(theme_vars.colours.black, ";\n font-size: 16px;\n font-size: 1rem;\n line-height: 1.4;\n -webkit-font-smoothing: antialiased;\n \n @media screen and (min-width: ").concat(theme_vars.breakpoints.m, "){\n font-size: 19px;\n font-size: 1.1875rem;\n line-height: 1.45;\n\n p, h2, h3, h4, ul, ol {\n max-width: 750px;\n }\n }\n "),
28944
+ fontStyles: "\n font-family: ".concat(theme_vars.fontstack, ";\n color: ").concat(theme_vars.colours.black, ";\n font-size: 19px;\n font-size: 1.1875rem;\n line-height: 1.45;\n -webkit-font-smoothing: antialiased;\n \n @media screen and (min-width: ").concat(theme_vars.breakpoints.m, "){\n font-size: 19px;\n font-size: 1.1875rem;\n line-height: 1.45;\n\n p, h2, h3, h4, ul, ol {\n max-width: 750px;\n }\n }\n "),
28859
28945
  headingStyles: "\n h1 {\n ".concat(theme_vars.h1, "\n }\n h2 {\n ").concat(theme_vars.h2, "\n }\n h3 {\n ").concat(theme_vars.h3, "\n }\n h4 {\n ").concat(theme_vars.h4, "\n }\n "),
28860
28946
  linkStyles: "\n color: ".concat(theme_vars.colours.action, ";\n font-weight: 700;\n text-decoration: underline;\n "),
28861
28947
  linkStylesHover: "\n color: ".concat(theme_vars.colours.action_dark, ";\n text-decoration: underline;\n text-decoration-style: dotted;\n "),
@@ -28931,6 +29017,7 @@ styled__default.default.img`
28931
29017
 
28932
29018
  const MapLink = styled__default.default.a`
28933
29019
  display: block;
29020
+ padding: ${(props) => props.theme.theme_vars.spacingSizes.small};
28934
29021
  `;
28935
29022
 
28936
29023
  styled__default.default.div`
@@ -29046,6 +29133,7 @@ const ContactName = styled__default.default.div`
29046
29133
 
29047
29134
  const ContactLink = styled__default.default.a`
29048
29135
  display: block;
29136
+ padding: ${(props) => props.theme.theme_vars.spacingSizes.small} 0;
29049
29137
  margin-bottom: ${(props) => props.theme.theme_vars.spacingSizes.small};
29050
29138
  text-align: center;
29051
29139
  `;
@@ -29054,12 +29142,14 @@ const WebLink$1 = styled__default.default.a`
29054
29142
  word-break: break-all;
29055
29143
  display: block;
29056
29144
  text-align: center;
29145
+ padding: ${(props) => props.theme.theme_vars.spacingSizes.small} 0;
29057
29146
  `;
29058
29147
 
29059
29148
  const EmailLink = styled__default.default.a`
29060
29149
  word-break: break-all;
29061
29150
  display: block;
29062
29151
  text-align: center;
29152
+ padding: ${(props) => props.theme.theme_vars.spacingSizes.small} 0;
29063
29153
  `;
29064
29154
 
29065
29155
  var WebsiteIcon = function (_a) {
@@ -29739,7 +29829,10 @@ const ServiceContainer = styled__default.default.div`
29739
29829
  transition: box-shadow 0.3s ease;
29740
29830
  border-bottom: 5px solid ${(props) => props.theme.theme_vars.colours.action};
29741
29831
  border-radius: ${(props) => props.theme.theme_vars.border_radius};
29742
- padding: ${(props) => props.theme.theme_vars.spacingSizes.medium};
29832
+ padding-top: ${(props) => props.theme.theme_vars.spacingSizes.small};
29833
+ padding-bottom: ${(props) => props.theme.theme_vars.spacingSizes.small};
29834
+ padding-left: ${(props) => props.theme.theme_vars.spacingSizes.medium};
29835
+ padding-right: ${(props) => props.theme.theme_vars.spacingSizes.medium};
29743
29836
  `;
29744
29837
 
29745
29838
  styled__default.default.span`
@@ -29804,6 +29897,8 @@ const LegendButton = styled__default.default.button`
29804
29897
  cursor: pointer;
29805
29898
  text-align: left;
29806
29899
  padding-right: 30px;
29900
+ padding-top: ${(props) => props.theme.theme_vars.spacingSizes.small};
29901
+ padding-bottom: ${(props) => props.theme.theme_vars.spacingSizes.small};
29807
29902
  ${(props) => props.theme.theme_vars.h4}
29808
29903
  ${(props) => props.theme.linkStyles}
29809
29904
  &:hover {
@@ -29834,7 +29929,7 @@ const AccordionIcon = styled__default.default.span`
29834
29929
  vertical-align: top;
29835
29930
  width: 12px;
29836
29931
  border-color: ${(props) => props.theme.theme_vars.colours.black};
29837
- top: ${(props) => (props.$isOpen ? `5px` : `0`)};
29932
+ top: ${(props) => (props.$isOpen ? `15px` : `10px`)};
29838
29933
  left: 6px;
29839
29934
  transform: ${(props) => (props.$isOpen ? `rotate(-45deg)` : `rotate(135deg)`)};
29840
29935
  }
@@ -29872,8 +29967,8 @@ const TextLink$1 = styled__default.default.button`
29872
29967
  position: relative;
29873
29968
  z-index: 1;
29874
29969
  margin: 0;
29875
- margin-bottom: 15px;
29876
- padding: 0;
29970
+ padding: ${(props) => props.theme.theme_vars.spacingSizes.small} 0;
29971
+ margin-bottom: ${(props) => props.theme.theme_vars.spacingSizes.extra_small};
29877
29972
  border-width: 0;
29878
29973
  color: ${(props) => props.theme.theme_vars.colours.action};
29879
29974
  background: none;
@@ -29950,7 +30045,7 @@ const Favourites = styled__default.default.a`
29950
30045
 
29951
30046
  const ServiceLink$1 = styled__default.default.a`
29952
30047
  display: block;
29953
- margin-bottom: ${(props) => props.theme.theme_vars.spacingSizes.small};
30048
+ padding: ${(props) => props.theme.theme_vars.spacingSizes.small} 0;
29954
30049
  flex-grow: 1;
29955
30050
  ${(props) => props.theme.theme_vars.h4}
29956
30051
  ${(props) => props.theme.linkStyles}
@@ -30265,7 +30360,7 @@ var DirectoryServiceList = function (_a) {
30265
30360
  React__default.default.createElement(Column, { small: "full", medium: "one-half", large: "one-third" },
30266
30361
  React__default.default.createElement(Label$1, { htmlFor: "postcode" }, "Postcode (optional)"),
30267
30362
  React__default.default.createElement(HintText, { text: "Enter a postcode to see results within 2 miles" }),
30268
- React__default.default.createElement(Input$6, { name: "postcode", type: "text", defaultValue: postcodeSearch, id: "postcode", onChange: function (e) { return setPostcodeSearch(e.target.value); } })),
30363
+ React__default.default.createElement(Input$6, { name: "postcode", type: "text", defaultValue: postcodeSearch, id: "postcode", onChange: function (e) { return setPostcodeSearch(e.target.value); }, autocomplete: "postal-code" })),
30269
30364
  React__default.default.createElement(Column, { small: "full", medium: "one-half", large: "one-third" },
30270
30365
  React__default.default.createElement(ButtonContainer$2, null,
30271
30366
  React__default.default.createElement(Button$1, { onClick: submitSearch, type: "submit" },
@@ -32208,7 +32303,7 @@ var DirectoryDocumentList = function (_a) {
32208
32303
  React__default.default.createElement(Column, { small: "full", medium: "full", large: "full" }, !isLoading && (React__default.default.createElement(Pagination, { currentPage: pageNumber, totalResults: totalResults, resultsPerPage: perPage, postTo: directoryPath, buttonClickOverride: setPageNumber }))))))));
32209
32304
  };
32210
32305
 
32211
- exports.AccessibleLinks = AccessibleLink;
32306
+ exports.AccessibleLinks = AccessibleLinks;
32212
32307
  exports.Accordion = Accordion$1;
32213
32308
  exports.AlertBanner = AlertBanner;
32214
32309
  exports.AlertBannerService = AlertBannerService;