northants-design-system 0.2.2 → 0.2.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.
@@ -6246,7 +6246,7 @@ var AccordionSection = function (_a) {
6246
6246
  };
6247
6247
 
6248
6248
  var Accordion = function (_a) {
6249
- var sections = _a.sections, _b = _a.isFilter, isFilter = _b === void 0 ? false : _b, _c = _a.withReadMore, withReadMore = _c === void 0 ? true : _c;
6249
+ var sections = _a.sections, _b = _a.isFilter, isFilter = _b === void 0 ? false : _b, _c = _a.withReadMore, withReadMore = _c === void 0 ? false : _c;
6250
6250
  sections.map(function (section, i) {
6251
6251
  section.accordionSectionId = i;
6252
6252
  });
@@ -6282,7 +6282,7 @@ var Accordion = function (_a) {
6282
6282
  return (React.createElement(Container$B, { "data-testid": "Accordion", id: accordionId },
6283
6283
  showControls && sections.length > 1 && (React.createElement(AccordionControls, null,
6284
6284
  React.createElement(OpenAllButton, { onClick: toggleAll, type: "button", "aria-expanded": !openAll },
6285
- openAll ? "Open all" : "Close all",
6285
+ openAll ? 'Open all' : 'Close all',
6286
6286
  React.createElement(VisuallyHidden, null, " sections")))),
6287
6287
  accordionStates.map(function (section, i) { return (React.createElement(AccordionSection, __assign({}, section, { key: i, onToggle: updateAccordionState, isFilter: isFilter, withReadMore: withReadMore }))); })));
6288
6288
  };
@@ -6903,6 +6903,7 @@ const Container$w = styled.div`
6903
6903
  margin-bottom: 25px;
6904
6904
  display: flex;
6905
6905
  justify-content: center;
6906
+ margin-top: ${(props) => (props.hasTopSpacing ? `25px` : `0`)};
6906
6907
 
6907
6908
  @media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.s}) {
6908
6909
  padding: 20px;
@@ -6933,11 +6934,12 @@ const InnerContainer = styled.div`
6933
6934
  `;
6934
6935
 
6935
6936
  /**
6936
- * A container for holding the main content of a page
6937
+ * A banner to be displayed at the top of a page before the main content
6938
+ * to draw the viewer's attention to an alert notice
6937
6939
  */
6938
6940
  var AlertBannerService = function (_a) {
6939
- var title = _a.title, _b = _a.alertType, alertType = _b === void 0 ? 'alert' : _b, children = _a.children;
6940
- return (React.createElement(Container$w, { alertType: alertType, "data-testid": "AlertBannerService" },
6941
+ var title = _a.title, _b = _a.hasTopSpacing, hasTopSpacing = _b === void 0 ? false : _b, _c = _a.alertType, alertType = _c === void 0 ? 'alert' : _c, children = _a.children;
6942
+ return (React.createElement(Container$w, { alertType: alertType, "data-testid": "AlertBannerService", hasTopSpacing: hasTopSpacing },
6941
6943
  React.createElement(InnerContainer, { "data-testid": "AlertBannerServiceInner" },
6942
6944
  (title === null || title === void 0 ? void 0 : title.trim()) && React.createElement(Heading, { text: title }),
6943
6945
  children)));
@@ -7574,7 +7576,7 @@ var Footer = function (_a) {
7574
7576
 
7575
7577
  const Container$s = styled.div`
7576
7578
  background: ${(props) => (props.hasBackground ? props.theme.theme_vars.colours.grey_light : 'transparent')};
7577
- padding: ${(props) => (props.hasPadding ? '50px 0' : '0')};
7579
+ padding: ${(props) => (props.hasPadding ? '50px 0 20px' : '0')};
7578
7580
  `;
7579
7581
 
7580
7582
  /**
@@ -29136,42 +29138,28 @@ var followRedirects = wrap({ http: http, https: https });
29136
29138
  var wrap_1 = wrap;
29137
29139
  followRedirects.wrap = wrap_1;
29138
29140
 
29139
- const _from="axios@^0.21.4";const _id="axios@0.21.4";const _inBundle=false;const _integrity="sha512-ut5vewkiu8jjGBdqpM44XxjuCjq9LAKeHVmoVfHVzy8eHgxxq8SbAVQNovDA8mVi05kP0Ea/n/UzcSHcTJQfNg==";const _location="/axios";const _phantomChildren={};const _requested={type:"range",registry:true,raw:"axios@^0.21.4",name:"axios",escapedName:"axios",rawSpec:"^0.21.4",saveSpec:null,fetchSpec:"^0.21.4"};const _requiredBy=["/"];const _resolved="https://registry.npmjs.org/axios/-/axios-0.21.4.tgz";const _shasum="c67b90dc0568e5c1cf2b0b858c43ba28e2eda575";const _spec="axios@^0.21.4";const _where="/Users/chrisrhymes/code/design-system";const author={name:"Matt Zabriskie"};const browser={"./lib/adapters/http.js":"./lib/adapters/xhr.js"};const bugs={url:"https://github.com/axios/axios/issues"};const bundleDependencies=false;const bundlesize=[{path:"./dist/axios.min.js",threshold:"5kB"}];const dependencies={"follow-redirects":"^1.14.0"};const deprecated=false;const description="Promise based HTTP client for the browser and node.js";const devDependencies={coveralls:"^3.0.0","es6-promise":"^4.2.4",grunt:"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1",karma:"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2",minimist:"^1.2.0",mocha:"^8.2.1",sinon:"^4.5.0","terser-webpack-plugin":"^4.2.3",typescript:"^4.0.5","url-search-params":"^0.10.0",webpack:"^4.44.2","webpack-dev-server":"^3.11.0"};const homepage="https://axios-http.com";const jsdelivr="dist/axios.min.js";const keywords=["xhr","http","ajax","promise","node"];const license="MIT";const main="index.js";const name="axios";const repository={type:"git",url:"git+https://github.com/axios/axios.git"};const scripts={build:"NODE_ENV=production grunt build",coveralls:"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",examples:"node ./examples/server.js",fix:"eslint --fix lib/**/*.js",postversion:"git push && git push --tags",preversion:"npm test",start:"node ./sandbox/server.js",test:"grunt test",version:"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json"};const typings="./index.d.ts";const unpkg="dist/axios.min.js";const version="0.21.4";var _package = {_from:_from,_id:_id,_inBundle:_inBundle,_integrity:_integrity,_location:_location,_phantomChildren:_phantomChildren,_requested:_requested,_requiredBy:_requiredBy,_resolved:_resolved,_shasum:_shasum,_spec:_spec,_where:_where,author:author,browser:browser,bugs:bugs,bundleDependencies:bundleDependencies,bundlesize:bundlesize,dependencies:dependencies,deprecated:deprecated,description:description,devDependencies:devDependencies,homepage:homepage,jsdelivr:jsdelivr,keywords:keywords,license:license,main:main,name:name,repository:repository,scripts:scripts,typings:typings,unpkg:unpkg,version:version};
29141
+ const name="axios";const version="0.21.4";const description="Promise based HTTP client for the browser and node.js";const main="index.js";const scripts={test:"grunt test",start:"node ./sandbox/server.js",build:"NODE_ENV=production grunt build",preversion:"npm test",version:"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json",postversion:"git push && git push --tags",examples:"node ./examples/server.js",coveralls:"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",fix:"eslint --fix lib/**/*.js"};const repository={type:"git",url:"https://github.com/axios/axios.git"};const keywords=["xhr","http","ajax","promise","node"];const author="Matt Zabriskie";const license="MIT";const bugs={url:"https://github.com/axios/axios/issues"};const homepage="https://axios-http.com";const devDependencies={coveralls:"^3.0.0","es6-promise":"^4.2.4",grunt:"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1",karma:"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2",minimist:"^1.2.0",mocha:"^8.2.1",sinon:"^4.5.0","terser-webpack-plugin":"^4.2.3",typescript:"^4.0.5","url-search-params":"^0.10.0",webpack:"^4.44.2","webpack-dev-server":"^3.11.0"};const browser={"./lib/adapters/http.js":"./lib/adapters/xhr.js"};const jsdelivr="dist/axios.min.js";const unpkg="dist/axios.min.js";const typings="./index.d.ts";const dependencies={"follow-redirects":"^1.14.0"};const bundlesize=[{path:"./dist/axios.min.js",threshold:"5kB"}];var _package = {name:name,version:version,description:description,main:main,scripts:scripts,repository:repository,keywords:keywords,author:author,license:license,bugs:bugs,homepage:homepage,devDependencies:devDependencies,browser:browser,jsdelivr:jsdelivr,unpkg:unpkg,typings:typings,dependencies:dependencies,bundlesize:bundlesize};
29140
29142
 
29141
29143
  var _package$1 = /*#__PURE__*/Object.freeze({
29142
29144
  __proto__: null,
29143
- _from: _from,
29144
- _id: _id,
29145
- _inBundle: _inBundle,
29146
- _integrity: _integrity,
29147
- _location: _location,
29148
- _phantomChildren: _phantomChildren,
29149
- _requested: _requested,
29150
- _requiredBy: _requiredBy,
29151
- _resolved: _resolved,
29152
- _shasum: _shasum,
29153
- _spec: _spec,
29154
- _where: _where,
29145
+ name: name,
29146
+ version: version,
29147
+ description: description,
29148
+ main: main,
29149
+ scripts: scripts,
29150
+ repository: repository,
29151
+ keywords: keywords,
29155
29152
  author: author,
29156
- browser: browser,
29153
+ license: license,
29157
29154
  bugs: bugs,
29158
- bundleDependencies: bundleDependencies,
29159
- bundlesize: bundlesize,
29160
- dependencies: dependencies,
29161
- deprecated: deprecated,
29162
- description: description,
29163
- devDependencies: devDependencies,
29164
29155
  homepage: homepage,
29156
+ devDependencies: devDependencies,
29157
+ browser: browser,
29165
29158
  jsdelivr: jsdelivr,
29166
- keywords: keywords,
29167
- license: license,
29168
- main: main,
29169
- name: name,
29170
- repository: repository,
29171
- scripts: scripts,
29172
- typings: typings,
29173
29159
  unpkg: unpkg,
29174
- version: version,
29160
+ typings: typings,
29161
+ dependencies: dependencies,
29162
+ bundlesize: bundlesize,
29175
29163
  'default': _package
29176
29164
  });
29177
29165
 
@@ -33534,7 +33522,7 @@ const summaryStyles = (props) => {
33534
33522
  return css`
33535
33523
  background-color: ${(props) =>
33536
33524
  props.hasBackground ? props.theme.theme_vars.colours.grey_light : 'transparent'};
33537
- color: ${(props) => props.theme.theme_vars.colours.action};
33525
+ color: ${(props) => props.theme.theme_vars.colours.action_dark};
33538
33526
  `;
33539
33527
  }
33540
33528
  };