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.
- package/build/index.esm.js +23 -35
- package/build/index.esm.js.map +1 -1
- package/build/index.js +23 -35
- package/build/index.js.map +1 -1
- package/build/library/slices/Accordion/Accordion.d.ts +2 -2
- package/build/library/structure/AlertBannerService/AlertBannerService.d.ts +2 -1
- package/build/library/structure/AlertBannerService/AlertBannerService.types.d.ts +7 -3
- package/package.json +1 -1
package/build/index.esm.js
CHANGED
|
@@ -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 ?
|
|
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 ?
|
|
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
|
|
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 =
|
|
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
|
|
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
|
-
|
|
29144
|
-
|
|
29145
|
-
|
|
29146
|
-
|
|
29147
|
-
|
|
29148
|
-
|
|
29149
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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.
|
|
33525
|
+
color: ${(props) => props.theme.theme_vars.colours.action_dark};
|
|
33538
33526
|
`;
|
|
33539
33527
|
}
|
|
33540
33528
|
};
|