@govuk-pay/pay-js-commons 3.4.0 → 3.5.0
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/.idea/codeStyles/Project.xml +27 -0
- package/.idea/codeStyles/codeStyleConfig.xml +5 -0
- package/.idea/inspectionProfiles/Project_Default.xml +6 -0
- package/.idea/misc.xml +6 -0
- package/.idea/modules.xml +8 -0
- package/.idea/pay-js-commons.iml +9 -0
- package/.idea/sonarlint/issuestore/index.pb +0 -0
- package/.idea/vcs.xml +6 -0
- package/images/custom/scottish-government-planning.svg +1 -0
- package/package.json +2 -2
- package/sass/custom/scottish-government-planning.scss +55 -0
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
<component name="ProjectCodeStyleConfiguration">
|
|
2
|
+
<code_scheme name="Project" version="173">
|
|
3
|
+
<JSCodeStyleSettings version="0">
|
|
4
|
+
<option name="USE_SEMICOLON_AFTER_STATEMENT" value="false" />
|
|
5
|
+
<option name="FORCE_SEMICOLON_STYLE" value="true" />
|
|
6
|
+
<option name="SPACE_BEFORE_GENERATOR_MULT" value="true" />
|
|
7
|
+
<option name="USE_DOUBLE_QUOTES" value="false" />
|
|
8
|
+
<option name="FORCE_QUOTE_STYlE" value="true" />
|
|
9
|
+
<option name="SPACES_WITHIN_OBJECT_LITERAL_BRACES" value="true" />
|
|
10
|
+
<option name="SPACES_WITHIN_IMPORTS" value="true" />
|
|
11
|
+
</JSCodeStyleSettings>
|
|
12
|
+
<codeStyleSettings language="JavaScript">
|
|
13
|
+
<option name="KEEP_BLANK_LINES_IN_CODE" value="1" />
|
|
14
|
+
<option name="ALIGN_MULTILINE_PARAMETERS" value="false" />
|
|
15
|
+
<option name="ALIGN_MULTILINE_FOR" value="false" />
|
|
16
|
+
<option name="SPACE_BEFORE_METHOD_PARENTHESES" value="true" />
|
|
17
|
+
<option name="TERNARY_OPERATION_SIGNS_ON_NEXT_LINE" value="true" />
|
|
18
|
+
<option name="KEEP_SIMPLE_BLOCKS_IN_ONE_LINE" value="true" />
|
|
19
|
+
<option name="KEEP_SIMPLE_METHODS_IN_ONE_LINE" value="true" />
|
|
20
|
+
<indentOptions>
|
|
21
|
+
<option name="INDENT_SIZE" value="2" />
|
|
22
|
+
<option name="CONTINUATION_INDENT_SIZE" value="2" />
|
|
23
|
+
<option name="TAB_SIZE" value="2" />
|
|
24
|
+
</indentOptions>
|
|
25
|
+
</codeStyleSettings>
|
|
26
|
+
</code_scheme>
|
|
27
|
+
</component>
|
package/.idea/misc.xml
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<project version="4">
|
|
3
|
+
<component name="ProjectModuleManager">
|
|
4
|
+
<modules>
|
|
5
|
+
<module fileurl="file://$PROJECT_DIR$/.idea/pay-js-commons.iml" filepath="$PROJECT_DIR$/.idea/pay-js-commons.iml" />
|
|
6
|
+
</modules>
|
|
7
|
+
</component>
|
|
8
|
+
</project>
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<module type="JAVA_MODULE" version="4">
|
|
3
|
+
<component name="NewModuleRootManager" inherit-compiler-output="true">
|
|
4
|
+
<exclude-output />
|
|
5
|
+
<content url="file://$MODULE_DIR$" />
|
|
6
|
+
<orderEntry type="inheritedJdk" />
|
|
7
|
+
<orderEntry type="sourceFolder" forTests="false" />
|
|
8
|
+
</component>
|
|
9
|
+
</module>
|
|
File without changes
|
package/.idea/vcs.xml
ADDED
|
@@ -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-.6 1.8 0 3.2.4 4.2 1.3s1.5 2.1 1.5 3.7v6.2c0 1.4.2 2.4.6 3.1v.3h-4zm-3.2-2.6c.6 0 1.1-.1 1.6-.4.5-.3.8-.6 1.1-1v-2.5h-1.4c-1.9 0-2.9.7-3 2v.2c0 .5.2.9.5 1.2s.7.5 1.2.5zm12.8-11.6l.1 1.6c1-1.3 2.4-1.9 4.1-1.9 1.5 0 2.6.4 3.4 1.3.7.9 1.1 2.2 1.1 4V27h-3.8v-9.1c0-.8-.2-1.4-.5-1.8-.4-.4-.9-.5-1.8-.5-1.1 0-1.9.5-2.4 1.4v10h-3.8V12.8h3.6zm15 0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3.5.0",
|
|
4
4
|
"description": "Reusable js scripts for GOV.UK Pay Node.js projects",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": "^16.14.0"
|
|
@@ -128,7 +128,7 @@
|
|
|
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",
|
|
@@ -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: #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
|
+
|
|
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
|
+
}
|