hmrc-frontend 6.89.0 → 6.91.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/hmrc/VERSION.txt +1 -1
- package/hmrc/accessible-autocomplete-6.91.0.css +2 -0
- package/hmrc/accessible-autocomplete-6.91.0.js +2962 -0
- package/hmrc/all-govuk-and-hmrc.js +1 -1
- package/hmrc/all.js +12 -14
- package/hmrc/components/internal-header/_internal-header.scss +53 -21
- package/hmrc/components/internal-header/template.njk +2 -2
- package/hmrc/components/language-select/template.njk +1 -1
- package/hmrc/components/service-navigation-language-select/template.njk +1 -1
- package/hmrc/hmrc-frontend-6.91.0.min.css +3 -0
- package/hmrc/{hmrc-frontend-6.89.0.min.js → hmrc-frontend-6.91.0.min.js} +2 -2
- package/hmrc/maps/accessible-autocomplete-6.91.0.css.map +1 -0
- package/hmrc/maps/hmrc-frontend-6.91.0.min.css.map +1 -0
- package/hmrc/maps/hmrc-frontend-6.91.0.min.js.map +1 -0
- package/package.json +1 -1
- package/hmrc/accessible-autocomplete-6.89.0.css +0 -2
- package/hmrc/accessible-autocomplete-6.89.0.js +0 -2953
- package/hmrc/hmrc-frontend-6.89.0.min.css +0 -3
- package/hmrc/maps/accessible-autocomplete-6.89.0.css.map +0 -1
- package/hmrc/maps/hmrc-frontend-6.89.0.min.css.map +0 -1
- package/hmrc/maps/hmrc-frontend-6.89.0.min.js.map +0 -1
package/hmrc/all.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
2
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
|
3
3
|
typeof define === 'function' && define.amd ? define('HMRCFrontend', factory) :
|
|
4
|
-
(global = global || self, global.HMRCFrontend = factory());
|
|
5
|
-
}(this, (function () { 'use strict';
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.HMRCFrontend = factory());
|
|
5
|
+
})(this, (function () { 'use strict';
|
|
6
6
|
|
|
7
7
|
// Returns a function, that, as long as it continues to be invoked, will not
|
|
8
8
|
// be triggered. The function will be called after it stops being called for
|
|
@@ -20,12 +20,10 @@
|
|
|
20
20
|
var context = _this;
|
|
21
21
|
var later = function later() {
|
|
22
22
|
timeout = null;
|
|
23
|
-
|
|
23
|
+
func.apply(context, theParams);
|
|
24
24
|
};
|
|
25
|
-
var callNow = immediate && !timeout;
|
|
26
25
|
clearTimeout(timeout);
|
|
27
26
|
timeout = setTimeout(later, wait);
|
|
28
|
-
if (callNow) func.apply(context, theParams);
|
|
29
27
|
};
|
|
30
28
|
}
|
|
31
29
|
|
|
@@ -141,20 +139,20 @@
|
|
|
141
139
|
function _defineProperties(e, r) {
|
|
142
140
|
for (var t = 0; t < r.length; t++) {
|
|
143
141
|
var o = r[t];
|
|
144
|
-
o.enumerable = o.enumerable ||
|
|
142
|
+
o.enumerable = o.enumerable || false, o.configurable = true, "value" in o && (o.writable = true), Object.defineProperty(e, _toPropertyKey(o.key), o);
|
|
145
143
|
}
|
|
146
144
|
}
|
|
147
145
|
function _createClass(e, r, t) {
|
|
148
|
-
return r && _defineProperties(e.prototype, r),
|
|
149
|
-
writable:
|
|
146
|
+
return r && _defineProperties(e.prototype, r), Object.defineProperty(e, "prototype", {
|
|
147
|
+
writable: false
|
|
150
148
|
}), e;
|
|
151
149
|
}
|
|
152
150
|
function _defineProperty(e, r, t) {
|
|
153
151
|
return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
154
152
|
value: t,
|
|
155
|
-
enumerable:
|
|
156
|
-
configurable:
|
|
157
|
-
writable:
|
|
153
|
+
enumerable: true,
|
|
154
|
+
configurable: true,
|
|
155
|
+
writable: true
|
|
158
156
|
}) : e[r] = t, e;
|
|
159
157
|
}
|
|
160
158
|
function ownKeys(e, r) {
|
|
@@ -170,7 +168,7 @@
|
|
|
170
168
|
function _objectSpread2(e) {
|
|
171
169
|
for (var r = 1; r < arguments.length; r++) {
|
|
172
170
|
var t = null != arguments[r] ? arguments[r] : {};
|
|
173
|
-
r % 2 ? ownKeys(Object(t),
|
|
171
|
+
r % 2 ? ownKeys(Object(t), true).forEach(function (r) {
|
|
174
172
|
_defineProperty(e, r, t[r]);
|
|
175
173
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
|
|
176
174
|
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
|
|
@@ -182,7 +180,7 @@
|
|
|
182
180
|
if ("object" != typeof t || !t) return t;
|
|
183
181
|
var e = t[Symbol.toPrimitive];
|
|
184
182
|
if (void 0 !== e) {
|
|
185
|
-
var i = e.call(t, r
|
|
183
|
+
var i = e.call(t, r);
|
|
186
184
|
if ("object" != typeof i) return i;
|
|
187
185
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
188
186
|
}
|
|
@@ -765,4 +763,4 @@
|
|
|
765
763
|
|
|
766
764
|
return all;
|
|
767
765
|
|
|
768
|
-
}))
|
|
766
|
+
}));
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
-webkit-box-sizing: border-box;
|
|
5
5
|
|
|
6
6
|
box-sizing: border-box;
|
|
7
|
-
padding: govuk-spacing(4) 0;
|
|
7
|
+
padding: govuk-spacing(4) 0 govuk-spacing(3);
|
|
8
8
|
border-bottom: 10px solid govuk-organisation-colour("hm-revenue-customs");
|
|
9
9
|
|
|
10
10
|
@include govuk-media-query(desktop) {
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
|
|
32
32
|
.hmrc-internal-header__logo {
|
|
33
33
|
margin-bottom: govuk-spacing(2);
|
|
34
|
-
|
|
34
|
+
position: relative;
|
|
35
35
|
|
|
36
36
|
@include govuk-media-query(desktop) {
|
|
37
37
|
width: 33.33%;
|
|
@@ -39,19 +39,55 @@
|
|
|
39
39
|
vertical-align: top;
|
|
40
40
|
margin-bottom: 0;
|
|
41
41
|
}
|
|
42
|
+
|
|
43
|
+
&::before {
|
|
44
|
+
content: "";
|
|
45
|
+
border-left: 2px solid govuk-organisation-colour("hm-revenue-customs");
|
|
46
|
+
position: absolute;
|
|
47
|
+
top: 0;
|
|
48
|
+
left: 0;
|
|
49
|
+
height: 32px;
|
|
50
|
+
}
|
|
42
51
|
}
|
|
43
52
|
|
|
44
53
|
.hmrc-internal-header__logo-link {
|
|
45
|
-
@include govuk-link-common;
|
|
46
|
-
@include govuk-link-style-default;
|
|
47
54
|
@include govuk-link-print-friendly;
|
|
48
55
|
|
|
56
|
+
font-size: 1.25em;
|
|
57
|
+
line-height: 32px;
|
|
58
|
+
text-decoration: none;
|
|
49
59
|
display: table;
|
|
60
|
+
margin-left: 12px;
|
|
61
|
+
padding-bottom: 3px;
|
|
62
|
+
|
|
63
|
+
@include govuk-media-query ($from: tablet) {
|
|
64
|
+
font-size: 1.0526em;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
&:link,
|
|
68
|
+
&:visited {
|
|
69
|
+
color: govuk-colour("black");
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
&:hover,
|
|
73
|
+
&:active {
|
|
74
|
+
// Negate added border
|
|
75
|
+
margin-bottom: $govuk-header-link-underline-thickness * -1;
|
|
76
|
+
border-bottom: $govuk-header-link-underline-thickness solid;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
&:focus {
|
|
80
|
+
@include govuk-focused-text;
|
|
81
|
+
|
|
82
|
+
margin-bottom: 0;
|
|
83
|
+
border-bottom: 0;
|
|
84
|
+
}
|
|
50
85
|
|
|
51
86
|
svg {
|
|
52
87
|
float: left;
|
|
53
88
|
vertical-align: top;
|
|
54
89
|
fill: currentcolor;
|
|
90
|
+
margin-right: 10px;
|
|
55
91
|
}
|
|
56
92
|
|
|
57
93
|
img {
|
|
@@ -61,14 +97,6 @@
|
|
|
61
97
|
height: 32px;
|
|
62
98
|
padding: 0 10px;
|
|
63
99
|
}
|
|
64
|
-
|
|
65
|
-
&:link,
|
|
66
|
-
&:visited {
|
|
67
|
-
color: govuk-colour("black");
|
|
68
|
-
font-size: 20px;
|
|
69
|
-
line-height: 32px;
|
|
70
|
-
text-decoration: none;
|
|
71
|
-
}
|
|
72
100
|
}
|
|
73
101
|
|
|
74
102
|
.hmrc-internal-header__logo-text {
|
|
@@ -80,13 +108,9 @@
|
|
|
80
108
|
}
|
|
81
109
|
|
|
82
110
|
.hmrc-internal-header__service-name {
|
|
83
|
-
@include govuk-
|
|
84
|
-
|
|
85
|
-
font-size: 20px;
|
|
86
|
-
font-weight: bold;
|
|
111
|
+
@include govuk-font($size: 24, $weight: 'bold', $line-height: 1.25);
|
|
87
112
|
|
|
88
113
|
@include govuk-media-query ($from: desktop) {
|
|
89
|
-
font-size: 24px;
|
|
90
114
|
width: 66.66%;
|
|
91
115
|
padding-left: $govuk-gutter-half;
|
|
92
116
|
float: left;
|
|
@@ -98,8 +122,6 @@
|
|
|
98
122
|
@include govuk-link-style-default;
|
|
99
123
|
@include govuk-link-print-friendly;
|
|
100
124
|
|
|
101
|
-
font-size: 20px;
|
|
102
|
-
font-weight: bold;
|
|
103
125
|
text-decoration: none;
|
|
104
126
|
|
|
105
127
|
&:link,
|
|
@@ -107,7 +129,17 @@
|
|
|
107
129
|
color: govuk-colour("black");
|
|
108
130
|
}
|
|
109
131
|
|
|
110
|
-
|
|
111
|
-
|
|
132
|
+
&:hover,
|
|
133
|
+
&:active {
|
|
134
|
+
// Negate added border
|
|
135
|
+
margin-bottom: $govuk-header-link-underline-thickness * -1;
|
|
136
|
+
border-bottom: $govuk-header-link-underline-thickness solid;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
&:focus {
|
|
140
|
+
@include govuk-focused-text;
|
|
141
|
+
|
|
142
|
+
margin-bottom: 0;
|
|
143
|
+
border-bottom: 0;
|
|
112
144
|
}
|
|
113
145
|
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<div class="hmrc-internal-header__logo">
|
|
4
4
|
<a href="{{ params.homepageUrl | default('/') }}" class="hmrc-internal-header__logo-link">
|
|
5
5
|
{% if params.useTudorCrown | default(true) %}
|
|
6
|
-
<svg data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" width="
|
|
6
|
+
<svg data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" width="32px" height="32px" viewBox="0 0 45.35 45.35" focusable="false" aria-hidden="true">
|
|
7
7
|
<path class="cls-1" d="m28.5,16.6c.82-.34,1.22-1.29.88-2.12-.34-.83-1.3-1.24-2.12-.9-.84.34-1.23,1.31-.89,2.14.34.83,1.3,1.23,2.14.88Z"/>
|
|
8
8
|
<path class="cls-1" d="m22.06,19.36c-.84.34-1.23,1.31-.89,2.14.34.83,1.3,1.23,2.14.88.82-.34,1.22-1.29.88-2.12-.34-.83-1.3-1.24-2.12-.9Z"/>
|
|
9
9
|
<path class="cls-1" d="m32.86,19.2c.82-.34,1.22-1.29.88-2.12-.34-.83-1.3-1.24-2.12-.9-.84.34-1.23,1.31-.89,2.14.34.83,1.3,1.23,2.14.88Z"/>
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
<path class="cls-1" d="m22.68.57C10.47.57.57,10.47.57,22.68s9.9,22.11,22.11,22.11,22.11-9.9,22.11-22.11S34.89.57,22.68.57Zm0,41.69c-10.81,0-19.58-8.77-19.58-19.58S11.86,3.1,22.68,3.1s19.58,8.77,19.58,19.58-8.77,19.58-19.58,19.58Z"/>
|
|
17
17
|
</svg>
|
|
18
18
|
{% else %}
|
|
19
|
-
<svg data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" width="
|
|
19
|
+
<svg data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" width="32px" height="32px" viewBox="0 0 134.94 134.94" focusable="false" aria-hidden="true">
|
|
20
20
|
<path d="M104.32,73.72,101,73.29c.94-2,1.51-3.22,1.51-3.22,0-.38,1.11-2.22,1.53-3.73a19.94,19.94,0,0,0,.61-3.89,15.05,15.05,0,0,0-3.68-10.06,12.21,12.21,0,0,0-9.18-4.18,17.46,17.46,0,0,0-3.68.44c-2.09.52-3.08.81-4.93,1.29a51.13,51.13,0,0,0-8.85,3.61,1.37,1.37,0,0,0-.73.91,2,2,0,0,0-.07.53L73.31,71.6H70.53V53.46a4.05,4.05,0,0,1,.18-1.14,3.37,3.37,0,0,1,1.43-1.71c.6-.39,1.21-.75,1.82-1.08a2.49,2.49,0,1,1,3.87-2.07c0,.12,0,.25,0,.37l.16-.06c.55-.19,1.16-.37,1.75-.55a2.49,2.49,0,1,1,3.71-2.16,2.66,2.66,0,0,1-.3,1.16l2.06-.56.36-.08a2.49,2.49,0,1,1,3.87-2.07A2.42,2.42,0,0,1,89,44.82h.06a16.43,16.43,0,0,1,2.72-.18,2.45,2.45,0,0,1-.48-1.45,2.49,2.49,0,1,1,5,0,2.46,2.46,0,0,1-.89,1.89A16.46,16.46,0,0,1,98.1,46a2.41,2.41,0,0,1-.12-.72,2.5,2.5,0,1,1,3,2.44,16.7,16.7,0,0,1,2.12,1.91v-.08a2.49,2.49,0,1,1,2.49,2.49,2.15,2.15,0,0,1-.68-.11,18.34,18.34,0,0,1,1.25,2.26,2.49,2.49,0,0,1,4.55,1.4,2.5,2.5,0,0,1-2.49,2.5,2.64,2.64,0,0,1-.8-.15,20.9,20.9,0,0,1,.35,2.1,2.52,2.52,0,0,1,1-.19,2.49,2.49,0,1,1,0,5,2.59,2.59,0,0,1-1.07-.25c0,.26-.08.54-.11.82s-.14.55-.21.78a2.49,2.49,0,0,1-.32,5,2.39,2.39,0,0,1-1.39-.43c-.34.8-.78,1.83-1.27,3" />
|
|
21
21
|
<path d="M67.45,71.79a2.39,2.39,0,1,1,0-4.78h0a2.39,2.39,0,0,1,0,4.78Z" />
|
|
22
22
|
<path d="M67.47,66a2.28,2.28,0,1,0,0-4.56h0a2.28,2.28,0,0,0,0,4.56Z" />
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
rel="alternate"
|
|
12
12
|
class="govuk-link"
|
|
13
13
|
data-journey-click="link - click:lang-select:Cymraeg">
|
|
14
|
-
<span class="govuk-visually-hidden">Newid yr iaith
|
|
14
|
+
<span class="govuk-visually-hidden">Newid yr iaith i’r Gymraeg</span>
|
|
15
15
|
<span aria-hidden="true">Cymraeg</span>
|
|
16
16
|
</a>
|
|
17
17
|
</li>
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
rel="alternate"
|
|
12
12
|
class="govuk-link govuk-service-navigation__link"
|
|
13
13
|
data-journey-click="link - click:lang-select:Cymraeg">
|
|
14
|
-
CYM<span class="govuk-visually-hidden"> – Newid yr iaith
|
|
14
|
+
CYM<span class="govuk-visually-hidden"> – Newid yr iaith i’r Gymraeg</span>
|
|
15
15
|
</a>
|
|
16
16
|
</li>
|
|
17
17
|
</ul>
|