@govuk-pay/pay-js-commons 3.4.0 → 3.5.2
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.
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" x="0" y="0" viewBox="0 0 204 38.8" xml:space="preserve"><style>.st0{fill:#0065bd}.st1{fill:#333}</style><g id="Logo" transform="translate(0 .961)"><g id="Group_10868"><g id="Group_10868-2" transform="translate(0 .185)"><path id="Path_10094" class="st0" d="M0 4.2v28.9l23.6-14.3L0 4.2z"/><path id="Path_10095" class="st0" d="M63.5 4.2v28.9L39.9 18.8 63.5 4.2z"/><path id="Path_10096" class="st0" d="M7.8 0h47.4L31.3 13.9 7.8 0z"/><path id="Path_10097" class="st0" d="M7.8 37.6h47.4l-23.9-14-23.5 14z"/></g><path id="Rectangle_1435" class="st1" d="M79.3 0h2v37.8h-2z"/><path class="st1" d="M100.2 20.3V27h-4V7.8h7.5c1.4 0 2.7.3 3.8.8 1.1.5 1.9 1.3 2.5 2.2.6 1 .9 2.1.9 3.3 0 1.9-.6 3.4-1.9 4.4-1.3 1.1-3.1 1.6-5.3 1.6h-3.5zm0-3.2h3.5c1 0 1.8-.2 2.4-.7.5-.5.8-1.2.8-2.1 0-.9-.3-1.7-.8-2.3s-1.3-.9-2.3-.9h-3.6v6zm17.1 9.9h-3.8V6.8h3.8V27zm11.3 0c-.2-.3-.3-.8-.4-1.3-.9 1-2.1 1.5-3.6 1.5-1.4 0-2.6-.4-3.5-1.2-.9-.8-1.4-1.8-1.4-3.1 0-1.5.6-2.7 1.7-3.5 1.1-.8 2.7-1.2 4.9-1.2h1.8v-.8c0-.7-.2-1.2-.5-1.6-.3-.4-.9-.6-1.6-.6-.6 0-1.1.2-1.5.5-.4.3-.5.7-.5 1.3h-3.8c0-.8.3-1.6.8-2.3s1.2-1.3 2.2-1.7c.9-.4 2-.6 3.1-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.4-.8.6-.5.8-1.3.8-2.3v-.8c-.9 1-2 1.5-3.5 1.5-1.7 0-3.1-.7-4.2-2s-1.6-3.1-1.6-5.3v-.3zm3.8.3c0 1.3.3 2.3.8 3 .5.7 1.2 1.1 2.1 1.1 1.2 0 2-.4 2.5-1.3v-6c-.5-.9-1.3-1.3-2.5-1.3-.9 0-1.6.4-2.2 1.1-.4.8-.7 1.9-.7 3.4z"/></g></g></svg>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@govuk-pay/pay-js-commons",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.5.2",
|
|
4
4
|
"description": "Reusable js scripts for GOV.UK Pay Node.js projects",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": "^16.14.0"
|
|
@@ -128,13 +128,13 @@
|
|
|
128
128
|
"karma-mocha": "^2.0.0",
|
|
129
129
|
"karma-mocha-reporter": "^2.2.5",
|
|
130
130
|
"karma-source-map-support": "^1.2.0",
|
|
131
|
-
"lint-staged": "^
|
|
131
|
+
"lint-staged": "^13.0.1",
|
|
132
132
|
"mocha": "^9.1.0",
|
|
133
133
|
"sinon": "^14.0.0",
|
|
134
134
|
"standard": "^16.0.3",
|
|
135
135
|
"uglify-js": "^3.6.0",
|
|
136
136
|
"watchify": "^4.0.0",
|
|
137
|
-
"xo": "^0.
|
|
137
|
+
"xo": "^0.50.0"
|
|
138
138
|
},
|
|
139
139
|
"directories": {
|
|
140
140
|
"lib": "lib"
|
|
@@ -144,6 +144,6 @@
|
|
|
144
144
|
"moment-timezone": "0.5.34",
|
|
145
145
|
"rfc822-validate": "1.0.0",
|
|
146
146
|
"slugify": "1.6.5",
|
|
147
|
-
"winston": "3.
|
|
147
|
+
"winston": "3.8.1"
|
|
148
148
|
}
|
|
149
149
|
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
$govuk-font-family: -apple-system,BlinkMacSystemFont,helvetica neue,helvetica,ubuntu,roboto,noto,segoe ui,arial,sans-serif; // Override font as so not to use New Transport
|
|
2
|
+
@import "application";
|
|
3
|
+
|
|
4
|
+
// CUSTOM BRANDING
|
|
5
|
+
// Use the variables below to control the style
|
|
6
|
+
// Make sure banner colours meet minimum colour contrast levels
|
|
7
|
+
|
|
8
|
+
$custom-banner-colour: #0b0c0c;
|
|
9
|
+
$custom-banner-border-colour: #1d70b8;
|
|
10
|
+
$custom-text-colour: #ffffff;
|
|
11
|
+
$logo-image-height: 2em;
|
|
12
|
+
|
|
13
|
+
.custom-branding {
|
|
14
|
+
@if $logo-image-height != null {
|
|
15
|
+
.custom-branding-image {
|
|
16
|
+
max-height: $logo-image-height;
|
|
17
|
+
|
|
18
|
+
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
|
|
19
|
+
width: 100%;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.govuk-header {
|
|
25
|
+
background-color: $custom-banner-colour;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.govuk-header__link{
|
|
29
|
+
&:link,
|
|
30
|
+
&:visited {
|
|
31
|
+
color: $custom-text-colour;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.govuk-header__link--service-name {
|
|
36
|
+
color: $custom-text-colour;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.govuk-header__container {
|
|
40
|
+
border-bottom-color: $custom-banner-border-colour;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
@include govuk-media-query($from: tablet) {
|
|
44
|
+
.govuk-header__content {
|
|
45
|
+
width: 66%;
|
|
46
|
+
vertical-align: bottom;
|
|
47
|
+
margin-bottom: 7px;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.govuk-button {
|
|
52
|
+
padding: 7px 15px 6px;
|
|
53
|
+
padding: .368421053em .842105263em .315789474em;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
$govuk-font-family: -apple-system,BlinkMacSystemFont,helvetica neue,helvetica,ubuntu,roboto,noto,segoe ui,arial,sans-serif; // Override font as so not to use New Transport
|
|
2
|
+
@import "application";
|
|
3
|
+
|
|
4
|
+
// CUSTOM BRANDING
|
|
5
|
+
// Use the variables below to control the style
|
|
6
|
+
// Make sure banner colours meet minimum colour contrast levels
|
|
7
|
+
|
|
8
|
+
$custom-banner-colour: #ffffff;
|
|
9
|
+
$custom-banner-border-colour: #cccccc;
|
|
10
|
+
$custom-text-colour: #0b0c0c;
|
|
11
|
+
$logo-image-height: 2em;
|
|
12
|
+
|
|
13
|
+
.custom-branding {
|
|
14
|
+
@if $logo-image-height != null {
|
|
15
|
+
.custom-branding-image {
|
|
16
|
+
max-height: $logo-image-height;
|
|
17
|
+
min-width: 204px;
|
|
18
|
+
|
|
19
|
+
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
|
|
20
|
+
width: 100%;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.govuk-header {
|
|
26
|
+
background-color: $custom-banner-colour;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.govuk-header__link{
|
|
30
|
+
&:link,
|
|
31
|
+
&:visited {
|
|
32
|
+
color: $custom-text-colour;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.govuk-header__link--service-name {
|
|
37
|
+
color: $custom-text-colour;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.govuk-header__container {
|
|
41
|
+
border-bottom-color: $custom-banner-border-colour;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
@include govuk-media-query($from: tablet) {
|
|
45
|
+
.govuk-header__content {
|
|
46
|
+
width: 66%;
|
|
47
|
+
vertical-align: bottom;
|
|
48
|
+
margin-bottom: 7px;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.govuk-button {
|
|
53
|
+
padding: 7px 15px 6px;
|
|
54
|
+
padding: .368421053em .842105263em .315789474em;
|
|
55
|
+
}
|
|
56
|
+
}
|