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.js
CHANGED
|
@@ -6267,7 +6267,7 @@ var AccordionSection = function (_a) {
|
|
|
6267
6267
|
};
|
|
6268
6268
|
|
|
6269
6269
|
var Accordion = function (_a) {
|
|
6270
|
-
var sections = _a.sections, _b = _a.isFilter, isFilter = _b === void 0 ? false : _b, _c = _a.withReadMore, withReadMore = _c === void 0 ?
|
|
6270
|
+
var sections = _a.sections, _b = _a.isFilter, isFilter = _b === void 0 ? false : _b, _c = _a.withReadMore, withReadMore = _c === void 0 ? false : _c;
|
|
6271
6271
|
sections.map(function (section, i) {
|
|
6272
6272
|
section.accordionSectionId = i;
|
|
6273
6273
|
});
|
|
@@ -6303,7 +6303,7 @@ var Accordion = function (_a) {
|
|
|
6303
6303
|
return (React__default["default"].createElement(Container$B, { "data-testid": "Accordion", id: accordionId },
|
|
6304
6304
|
showControls && sections.length > 1 && (React__default["default"].createElement(AccordionControls, null,
|
|
6305
6305
|
React__default["default"].createElement(OpenAllButton, { onClick: toggleAll, type: "button", "aria-expanded": !openAll },
|
|
6306
|
-
openAll ?
|
|
6306
|
+
openAll ? 'Open all' : 'Close all',
|
|
6307
6307
|
React__default["default"].createElement(VisuallyHidden, null, " sections")))),
|
|
6308
6308
|
accordionStates.map(function (section, i) { return (React__default["default"].createElement(AccordionSection, __assign({}, section, { key: i, onToggle: updateAccordionState, isFilter: isFilter, withReadMore: withReadMore }))); })));
|
|
6309
6309
|
};
|
|
@@ -6924,6 +6924,7 @@ const Container$w = styled__default["default"].div`
|
|
|
6924
6924
|
margin-bottom: 25px;
|
|
6925
6925
|
display: flex;
|
|
6926
6926
|
justify-content: center;
|
|
6927
|
+
margin-top: ${(props) => (props.hasTopSpacing ? `25px` : `0`)};
|
|
6927
6928
|
|
|
6928
6929
|
@media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.s}) {
|
|
6929
6930
|
padding: 20px;
|
|
@@ -6954,11 +6955,12 @@ const InnerContainer = styled__default["default"].div`
|
|
|
6954
6955
|
`;
|
|
6955
6956
|
|
|
6956
6957
|
/**
|
|
6957
|
-
* A
|
|
6958
|
+
* A banner to be displayed at the top of a page before the main content
|
|
6959
|
+
* to draw the viewer's attention to an alert notice
|
|
6958
6960
|
*/
|
|
6959
6961
|
var AlertBannerService = function (_a) {
|
|
6960
|
-
var title = _a.title, _b = _a.alertType, alertType =
|
|
6961
|
-
return (React__default["default"].createElement(Container$w, { alertType: alertType, "data-testid": "AlertBannerService" },
|
|
6962
|
+
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;
|
|
6963
|
+
return (React__default["default"].createElement(Container$w, { alertType: alertType, "data-testid": "AlertBannerService", hasTopSpacing: hasTopSpacing },
|
|
6962
6964
|
React__default["default"].createElement(InnerContainer, { "data-testid": "AlertBannerServiceInner" },
|
|
6963
6965
|
(title === null || title === void 0 ? void 0 : title.trim()) && React__default["default"].createElement(Heading, { text: title }),
|
|
6964
6966
|
children)));
|
|
@@ -7595,7 +7597,7 @@ var Footer = function (_a) {
|
|
|
7595
7597
|
|
|
7596
7598
|
const Container$s = styled__default["default"].div`
|
|
7597
7599
|
background: ${(props) => (props.hasBackground ? props.theme.theme_vars.colours.grey_light : 'transparent')};
|
|
7598
|
-
padding: ${(props) => (props.hasPadding ? '50px 0' : '0')};
|
|
7600
|
+
padding: ${(props) => (props.hasPadding ? '50px 0 20px' : '0')};
|
|
7599
7601
|
`;
|
|
7600
7602
|
|
|
7601
7603
|
/**
|
|
@@ -29157,42 +29159,28 @@ var followRedirects = wrap({ http: http__default["default"], https: https__defau
|
|
|
29157
29159
|
var wrap_1 = wrap;
|
|
29158
29160
|
followRedirects.wrap = wrap_1;
|
|
29159
29161
|
|
|
29160
|
-
const
|
|
29162
|
+
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};
|
|
29161
29163
|
|
|
29162
29164
|
var _package$1 = /*#__PURE__*/Object.freeze({
|
|
29163
29165
|
__proto__: null,
|
|
29164
|
-
|
|
29165
|
-
|
|
29166
|
-
|
|
29167
|
-
|
|
29168
|
-
|
|
29169
|
-
|
|
29170
|
-
|
|
29171
|
-
_requiredBy: _requiredBy,
|
|
29172
|
-
_resolved: _resolved,
|
|
29173
|
-
_shasum: _shasum,
|
|
29174
|
-
_spec: _spec,
|
|
29175
|
-
_where: _where,
|
|
29166
|
+
name: name,
|
|
29167
|
+
version: version,
|
|
29168
|
+
description: description,
|
|
29169
|
+
main: main,
|
|
29170
|
+
scripts: scripts,
|
|
29171
|
+
repository: repository,
|
|
29172
|
+
keywords: keywords,
|
|
29176
29173
|
author: author,
|
|
29177
|
-
|
|
29174
|
+
license: license,
|
|
29178
29175
|
bugs: bugs,
|
|
29179
|
-
bundleDependencies: bundleDependencies,
|
|
29180
|
-
bundlesize: bundlesize,
|
|
29181
|
-
dependencies: dependencies,
|
|
29182
|
-
deprecated: deprecated,
|
|
29183
|
-
description: description,
|
|
29184
|
-
devDependencies: devDependencies,
|
|
29185
29176
|
homepage: homepage,
|
|
29177
|
+
devDependencies: devDependencies,
|
|
29178
|
+
browser: browser,
|
|
29186
29179
|
jsdelivr: jsdelivr,
|
|
29187
|
-
keywords: keywords,
|
|
29188
|
-
license: license,
|
|
29189
|
-
main: main,
|
|
29190
|
-
name: name,
|
|
29191
|
-
repository: repository,
|
|
29192
|
-
scripts: scripts,
|
|
29193
|
-
typings: typings,
|
|
29194
29180
|
unpkg: unpkg,
|
|
29195
|
-
|
|
29181
|
+
typings: typings,
|
|
29182
|
+
dependencies: dependencies,
|
|
29183
|
+
bundlesize: bundlesize,
|
|
29196
29184
|
'default': _package
|
|
29197
29185
|
});
|
|
29198
29186
|
|
|
@@ -33555,7 +33543,7 @@ const summaryStyles = (props) => {
|
|
|
33555
33543
|
return styled.css`
|
|
33556
33544
|
background-color: ${(props) =>
|
|
33557
33545
|
props.hasBackground ? props.theme.theme_vars.colours.grey_light : 'transparent'};
|
|
33558
|
-
color: ${(props) => props.theme.theme_vars.colours.
|
|
33546
|
+
color: ${(props) => props.theme.theme_vars.colours.action_dark};
|
|
33559
33547
|
`;
|
|
33560
33548
|
}
|
|
33561
33549
|
};
|