northants-design-system 0.2.3 → 0.2.4
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 +80 -67
- package/build/index.esm.js.map +1 -1
- package/build/index.js +80 -67
- package/build/index.js.map +1 -1
- package/build/library/pages/ServiceLandingPageExample/ServiceLandingPageExample.storydata.d.ts +2 -0
- package/build/library/pages/ServiceLandingPageExample/ServiceLandingPageExample.types.d.ts +10 -1
- package/build/library/structure/Breadcrumbs/Breadcrumbs.d.ts +3 -3
- package/build/library/structure/Breadcrumbs/Breadcrumbs.types.d.ts +10 -6
- package/package.json +1 -1
package/build/index.esm.js
CHANGED
|
@@ -6946,68 +6946,69 @@ var AlertBannerService = function (_a) {
|
|
|
6946
6946
|
};
|
|
6947
6947
|
|
|
6948
6948
|
const Container$v = styled.div`
|
|
6949
|
-
|
|
6950
|
-
|
|
6949
|
+
padding-top: 20px;
|
|
6950
|
+
border-bottom: 1px solid ${(props) => props.theme.theme_vars.colours.grey}80;
|
|
6951
|
+
margin-bottom: ${(props) => (props.hasMargin ? '30px' : 0)};
|
|
6951
6952
|
`;
|
|
6952
6953
|
|
|
6953
6954
|
const List$1 = styled.ol`
|
|
6954
|
-
|
|
6955
|
-
|
|
6956
|
-
|
|
6957
|
-
|
|
6958
|
-
|
|
6955
|
+
list-style: none;
|
|
6956
|
+
padding-left: 0px;
|
|
6957
|
+
margin-top: 0;
|
|
6958
|
+
display: none;
|
|
6959
|
+
margin-bottom: 20px;
|
|
6959
6960
|
|
|
6960
|
-
|
|
6961
|
-
|
|
6962
|
-
|
|
6961
|
+
@media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.m}) {
|
|
6962
|
+
display: block;
|
|
6963
|
+
}
|
|
6963
6964
|
`;
|
|
6964
6965
|
|
|
6965
6966
|
const Crumb = styled.li`
|
|
6966
|
-
|
|
6967
|
-
|
|
6968
|
-
|
|
6969
|
-
|
|
6970
|
-
|
|
6967
|
+
display: inline;
|
|
6968
|
+
margin-right: 10px;
|
|
6969
|
+
&:last-of-type svg {
|
|
6970
|
+
display: none;
|
|
6971
|
+
}
|
|
6971
6972
|
`;
|
|
6972
6973
|
const IconWrapper$4 = styled.div`
|
|
6973
|
-
|
|
6974
|
-
|
|
6975
|
-
|
|
6974
|
+
display: inline-block;
|
|
6975
|
+
margin-left: 10px;
|
|
6976
|
+
vertical-align: middle;
|
|
6976
6977
|
`;
|
|
6977
6978
|
const MobileCrumb = styled.div`
|
|
6978
|
-
|
|
6979
|
-
|
|
6980
|
-
|
|
6979
|
+
display: block;
|
|
6980
|
+
padding: 15px 0;
|
|
6981
|
+
margin-top: -15px;
|
|
6981
6982
|
|
|
6982
|
-
|
|
6983
|
-
|
|
6984
|
-
|
|
6983
|
+
@media screen and (min-width: ${(props) => props.theme.theme_vars.breakpoints.m}) {
|
|
6984
|
+
display: none;
|
|
6985
|
+
}
|
|
6985
6986
|
`;
|
|
6986
6987
|
const BackIconWrapper = styled.div`
|
|
6987
|
-
|
|
6988
|
-
|
|
6989
|
-
|
|
6988
|
+
display: inline-block;
|
|
6989
|
+
margin-right: 10px;
|
|
6990
|
+
vertical-align: middle;
|
|
6990
6991
|
`;
|
|
6991
6992
|
const BreadcrumbLink = styled.a`
|
|
6992
|
-
|
|
6993
|
-
|
|
6993
|
+
${(props) => props.theme.linkStyles}
|
|
6994
|
+
font-weight: 400;
|
|
6994
6995
|
|
|
6995
|
-
|
|
6996
|
-
|
|
6997
|
-
|
|
6996
|
+
svg {
|
|
6997
|
+
fill: ${(props) => props.theme.theme_vars.colours.action};
|
|
6998
|
+
}
|
|
6998
6999
|
|
|
6999
|
-
|
|
7000
|
-
|
|
7001
|
-
|
|
7002
|
-
|
|
7003
|
-
|
|
7004
|
-
|
|
7005
|
-
|
|
7006
|
-
}
|
|
7007
|
-
}
|
|
7008
|
-
&:active{
|
|
7009
|
-
${props => props.theme.linkStylesActive}
|
|
7000
|
+
&:hover {
|
|
7001
|
+
${(props) => props.theme.linkStylesHover}
|
|
7002
|
+
}
|
|
7003
|
+
&:focus {
|
|
7004
|
+
${(props) => props.theme.linkStylesFocus}
|
|
7005
|
+
svg {
|
|
7006
|
+
fill: ${(props) => props.theme.theme_vars.colours.black};
|
|
7010
7007
|
}
|
|
7008
|
+
}
|
|
7009
|
+
&:active {
|
|
7010
|
+
${(props) => props.theme.linkStylesActive}
|
|
7011
|
+
}
|
|
7011
7012
|
`;
|
|
7012
7013
|
|
|
7013
7014
|
const StyledSVG = styled.svg`
|
|
@@ -7034,18 +7035,16 @@ var ChevronIcon = function (_a) {
|
|
|
7034
7035
|
};
|
|
7035
7036
|
|
|
7036
7037
|
var Breadcrumbs = function (_a) {
|
|
7037
|
-
var breadcrumbsArray = _a.breadcrumbsArray;
|
|
7038
|
-
return (React.createElement(Container$v,
|
|
7039
|
-
React.createElement(List$1, null, breadcrumbsArray.map(function (crumb) {
|
|
7040
|
-
|
|
7041
|
-
|
|
7042
|
-
React.createElement(
|
|
7043
|
-
React.createElement(ChevronIcon, { direction: "right", colourFill: "#C6C6C6" }))));
|
|
7044
|
-
})),
|
|
7038
|
+
var breadcrumbsArray = _a.breadcrumbsArray, _b = _a.hasMargin, hasMargin = _b === void 0 ? false : _b;
|
|
7039
|
+
return (React.createElement(Container$v, { hasMargin: hasMargin, "data-testid": "Breadcrumbs" },
|
|
7040
|
+
React.createElement(List$1, null, breadcrumbsArray.map(function (crumb) { return (React.createElement(Crumb, { key: crumb.title }, React.createElement(React.Fragment, null,
|
|
7041
|
+
React.createElement(BreadcrumbLink, { href: crumb.url, title: crumb.title }, crumb.title),
|
|
7042
|
+
React.createElement(IconWrapper$4, null,
|
|
7043
|
+
React.createElement(ChevronIcon, { direction: 'right', colourFill: "#C6C6C6" }))))); })),
|
|
7045
7044
|
React.createElement(MobileCrumb, null,
|
|
7046
|
-
React.createElement(BreadcrumbLink, { href: breadcrumbsArray[breadcrumbsArray.length - 1].url, title:
|
|
7045
|
+
React.createElement(BreadcrumbLink, { href: breadcrumbsArray[breadcrumbsArray.length - 1].url, title: 'Go back to previous page' },
|
|
7047
7046
|
React.createElement(BackIconWrapper, null,
|
|
7048
|
-
React.createElement(ChevronIcon, { direction:
|
|
7047
|
+
React.createElement(ChevronIcon, { direction: 'left' })),
|
|
7049
7048
|
"Back"))));
|
|
7050
7049
|
};
|
|
7051
7050
|
|
|
@@ -29138,28 +29137,42 @@ var followRedirects = wrap({ http: http, https: https });
|
|
|
29138
29137
|
var wrap_1 = wrap;
|
|
29139
29138
|
followRedirects.wrap = wrap_1;
|
|
29140
29139
|
|
|
29141
|
-
const
|
|
29140
|
+
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};
|
|
29142
29141
|
|
|
29143
29142
|
var _package$1 = /*#__PURE__*/Object.freeze({
|
|
29144
29143
|
__proto__: null,
|
|
29145
|
-
|
|
29146
|
-
|
|
29147
|
-
|
|
29148
|
-
|
|
29149
|
-
|
|
29150
|
-
|
|
29151
|
-
|
|
29144
|
+
_from: _from,
|
|
29145
|
+
_id: _id,
|
|
29146
|
+
_inBundle: _inBundle,
|
|
29147
|
+
_integrity: _integrity,
|
|
29148
|
+
_location: _location,
|
|
29149
|
+
_phantomChildren: _phantomChildren,
|
|
29150
|
+
_requested: _requested,
|
|
29151
|
+
_requiredBy: _requiredBy,
|
|
29152
|
+
_resolved: _resolved,
|
|
29153
|
+
_shasum: _shasum,
|
|
29154
|
+
_spec: _spec,
|
|
29155
|
+
_where: _where,
|
|
29152
29156
|
author: author,
|
|
29153
|
-
|
|
29157
|
+
browser: browser,
|
|
29154
29158
|
bugs: bugs,
|
|
29155
|
-
|
|
29159
|
+
bundleDependencies: bundleDependencies,
|
|
29160
|
+
bundlesize: bundlesize,
|
|
29161
|
+
dependencies: dependencies,
|
|
29162
|
+
deprecated: deprecated,
|
|
29163
|
+
description: description,
|
|
29156
29164
|
devDependencies: devDependencies,
|
|
29157
|
-
|
|
29165
|
+
homepage: homepage,
|
|
29158
29166
|
jsdelivr: jsdelivr,
|
|
29159
|
-
|
|
29167
|
+
keywords: keywords,
|
|
29168
|
+
license: license,
|
|
29169
|
+
main: main,
|
|
29170
|
+
name: name,
|
|
29171
|
+
repository: repository,
|
|
29172
|
+
scripts: scripts,
|
|
29160
29173
|
typings: typings,
|
|
29161
|
-
|
|
29162
|
-
|
|
29174
|
+
unpkg: unpkg,
|
|
29175
|
+
version: version,
|
|
29163
29176
|
'default': _package
|
|
29164
29177
|
});
|
|
29165
29178
|
|