hmrc-frontend 7.3.0 → 7.4.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.
@@ -10,7 +10,7 @@
10
10
  "pluginDependencies": [
11
11
  {
12
12
  "packageName": "govuk-frontend",
13
- "minVersion": "6.0.0"
13
+ "minVersion": "6.1.0"
14
14
  }
15
15
  ],
16
16
  "assets": [
@@ -23,10 +23,10 @@
23
23
  "scripts": [
24
24
  "/hmrc/all.js",
25
25
  "/hmrc/init-all.js",
26
- "/hmrc/accessible-autocomplete-7.3.0.js"
26
+ "/hmrc/accessible-autocomplete-7.4.0.js"
27
27
  ],
28
28
  "stylesheets": [
29
- "/hmrc/accessible-autocomplete-7.3.0.css"
29
+ "/hmrc/accessible-autocomplete-7.4.0.css"
30
30
  ],
31
31
  "nunjucksPaths": [
32
32
  "/"
@@ -40,6 +40,10 @@
40
40
  "macroName": "hmrcBanner",
41
41
  "importFrom": "hmrc/components/banner/macro.njk"
42
42
  },
43
+ {
44
+ "macroName": "hmrcCaseworkerBanner",
45
+ "importFrom": "hmrc/components/caseworker-banner/macro.njk"
46
+ },
43
47
  {
44
48
  "macroName": "hmrcCharacterCount",
45
49
  "importFrom": "hmrc/components/character-count/macro.njk"
@@ -93,4 +97,4 @@
93
97
  "importFrom": "hmrc/components/user-research-banner/macro.njk"
94
98
  }
95
99
  ]
96
- }
100
+ }
package/hmrc/VERSION.txt CHANGED
@@ -1 +1 @@
1
- 7.3.0
1
+ 7.4.0
@@ -1,2 +1,2 @@
1
1
  .autocomplete__wrapper{position:relative}.autocomplete__hint,.autocomplete__input{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:2px solid #0b0c0c;border-radius:0;-webkit-box-sizing:border-box;box-sizing:border-box;height:2.5rem;line-height:1.25;margin-bottom:0;width:100%}.autocomplete__input{background-color:transparent;position:relative}.autocomplete__hint{color:#505a5f;position:absolute}.autocomplete__input--default{padding:5px}.autocomplete__input--focused{-webkit-box-shadow:inset 0 0 0 2px;box-shadow:inset 0 0 0 2px;outline:3px solid #fd0;outline-offset:0}.autocomplete__input--show-all-values{cursor:pointer;padding:5px 35px 5px 5px}.autocomplete__dropdown-arrow-down{display:inline-block;height:24px;position:absolute;right:8px;top:10px;width:24px;z-index:-1}.autocomplete__menu{background-color:#fff;border:2px solid #0b0c0c;border-top:0;color:#0b0c0c;margin:0;max-height:342px;overflow-x:hidden;padding:0;width:100%;width:calc(100% - 4px)}.autocomplete__menu--visible{display:block}.autocomplete__menu--hidden{display:none}.autocomplete__menu--overlay{-webkit-box-shadow:0 2px 6px rgba(0,0,0,.257);box-shadow:0 2px 6px rgba(0,0,0,.257);left:0;position:absolute;top:100%;z-index:100}.autocomplete__menu--inline{position:relative}.autocomplete__option{border-bottom:1px solid #b1b4b6;border-left-width:0;border-right-width:0;border-top-width:1px;cursor:pointer;display:block;position:relative}.autocomplete__option>*{pointer-events:none}.autocomplete__option:first-of-type{border-top-width:0}.autocomplete__option:last-of-type{border-bottom-width:0}.autocomplete__option--odd{background-color:#f3f2f1}.autocomplete__option--focused,.autocomplete__option:hover{background-color:#1d70b8;border-color:#1d70b8;color:#fff;outline:none}@media (-ms-high-contrast:active),(forced-colors:active){.autocomplete__menu{border-color:FieldText}.autocomplete__option{background-color:Field;color:FieldText}.autocomplete__option--focused,.autocomplete__option:hover{background-color:Highlight;background-color:SelectedItem;border-color:SelectedItem;color:HighlightText;color:SelectedItemText;forced-color-adjust:none;outline-color:SelectedItemText}}.autocomplete__option--no-results{background-color:#f3f2f1;color:#505a5f;cursor:not-allowed}.autocomplete__hint,.autocomplete__input,.autocomplete__option{font-size:1rem;font-weight:400}.autocomplete__hint,.autocomplete__option{padding:5px}@media (min-width:641px){.autocomplete__hint,.autocomplete__input,.autocomplete__option{font-size:1.1875rem;line-height:1.3157894737}}.autocomplete__hint,.autocomplete__input,.autocomplete__option,.autocomplete__wrapper{font-family:GDS Transport,arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-size:1.1875rem;font-weight:400;line-height:1.3157894737}@media print{.autocomplete__hint,.autocomplete__input,.autocomplete__option,.autocomplete__wrapper{font-family:sans-serif;font-size:14pt;line-height:1.15}}.govuk-form-group--error div:has(+.govuk-select--error[data-module=hmrc-accessible-autocomplete])>.autocomplete__wrapper .autocomplete__input{border-color:#d4351c}.autocomplete__dropdown-arrow-down{pointer-events:none;z-index:0}
2
- /*# sourceMappingURL=maps/accessible-autocomplete-7.3.0.css.map */
2
+ /*# sourceMappingURL=maps/accessible-autocomplete-7.4.0.css.map */
@@ -1,15 +1,16 @@
1
1
  @import "add-to-a-list/add-to-a-list";
2
- @import "banner/banner";
3
2
  @import "back-link-helper/back-link-helper";
4
- @import "notification-badge/notification-badge";
5
- @import "page-heading/page-heading";
3
+ @import "banner/banner";
4
+ @import "caseworker-banner/caseworker-banner";
6
5
  @import "header/header";
7
6
  @import "internal-header/internal-header";
7
+ @import "js-visible/js-visible";
8
8
  @import "list-with-actions/list-with-actions";
9
- @import "timeout-dialog/timeout-dialog";
9
+ @import "notification-badge/notification-badge";
10
+ @import "page-heading/page-heading";
10
11
  @import "service-navigation-language-select/service-navigation-language-select";
11
12
  @import "status-tags-in-task-list-pages/status-tags-in-task-list-pages";
12
- @import "user-research-banner/user-research-banner";
13
- @import "timeline/timeline";
14
13
  @import "summary-list/summary-list";
15
- @import "js-visible/js-visible";
14
+ @import "timeline/timeline";
15
+ @import "timeout-dialog/timeout-dialog";
16
+ @import "user-research-banner/user-research-banner";
@@ -0,0 +1,5 @@
1
+ # Caseworker banner
2
+ This pattern provides concise, essential instructions for caseworkers in internal HMRC services.
3
+
4
+ ## License
5
+ This code is open source software licensed under the [Apache 2.0 License]("http://www.apache.org/licenses/LICENSE-2.0.html").
@@ -0,0 +1,4 @@
1
+ .hmrc-caseworker-banner {
2
+ border-color: govuk-colour("black");
3
+ background-color: govuk-colour("black");
4
+ }
@@ -0,0 +1,3 @@
1
+ {% macro hmrcCaseworkerBanner(params) %}
2
+ {%- include "./template.njk" -%}
3
+ {% endmacro %}
@@ -0,0 +1,28 @@
1
+ {% from "govuk/components/notification-banner/macro.njk" import govukNotificationBanner %}
2
+
3
+ {% set titleText = "Arweiniad Gweithiwr Achos" if params.language === "cy" else "Caseworker guidance" %}
4
+
5
+ {% set content %}
6
+ {% if params.html %}
7
+ {{ params.html | safe }}
8
+ {% else %}
9
+ <p class="govuk-body">{{ params.text }}</p>
10
+ {% endif %}
11
+ {% endset %}
12
+
13
+ {# explicit nulls here are to show that caseworker banner is only intended to use a subset of notification banner options #}
14
+
15
+ {{ govukNotificationBanner({
16
+ attributes: params.attributes,
17
+ classes: "hmrc-caseworker-banner" + (" " + params.classes if params.classes),
18
+ disableAutoFocus: true,
19
+ html: content,
20
+ role: null,
21
+ text: null,
22
+ titleHeadingLevel: 2,
23
+ titleHtml: null,
24
+ titleId : params.titleId,
25
+ titleText: titleText,
26
+ type: null
27
+ }) }}
28
+