@nice-digital/global-nav 4.1.784 → 4.1.787
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/lib/Footer/Services/Services.js +3 -1
- package/lib/Footer/Services/__mocks__/services.json +23 -0
- package/lib/Header/Nav/Dropdown/Components/index.js +2 -6
- package/lib/Header/Nav/Nav.module.scss +1 -1
- package/lib/Header/Nav/NavLinks/NavLinks.module.scss +2 -1
- package/lib/services.json +16 -53
- package/package.json +1 -1
- package/lib/Header/Nav/Dropdown/Components/More.js +0 -29
|
@@ -42,7 +42,9 @@ var Services = /*#__PURE__*/function (_Component) {
|
|
|
42
42
|
"aria-label": "Our services"
|
|
43
43
|
}, /*#__PURE__*/_react["default"].createElement("ul", {
|
|
44
44
|
className: _ServicesModule["default"].list
|
|
45
|
-
}, _services["default"].external.
|
|
45
|
+
}, _services["default"].external.filter(function (item) {
|
|
46
|
+
return item.footer;
|
|
47
|
+
}).map(function (link) {
|
|
46
48
|
var _this = this;
|
|
47
49
|
|
|
48
50
|
if (link.nestedLinks) {
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"rootUrl": "https://rootUrl.org.uk",
|
|
3
|
+
"external": [
|
|
4
|
+
{
|
|
5
|
+
"href": "https://url1/",
|
|
6
|
+
"text": "First link",
|
|
7
|
+
"id": "link1",
|
|
8
|
+
"footer": true
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"href": "https://url2/",
|
|
12
|
+
"text": "Second link",
|
|
13
|
+
"id": "link2",
|
|
14
|
+
"footer": false
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"href": "https://url3/",
|
|
18
|
+
"text": "Third link",
|
|
19
|
+
"id": "link3",
|
|
20
|
+
"footer": true
|
|
21
|
+
}
|
|
22
|
+
]
|
|
23
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
|
-
exports.StandardsAndIndicators = exports.
|
|
4
|
+
exports.StandardsAndIndicators = exports.LifeSciences = exports.Guidance = exports.CKS = exports.BNFc = exports.BNF = exports.AboutUs = void 0;
|
|
5
5
|
|
|
6
6
|
var _AboutUs = require("./AboutUs");
|
|
7
7
|
|
|
@@ -29,8 +29,4 @@ exports.LifeSciences = _LifeSciences.LifeSciences;
|
|
|
29
29
|
|
|
30
30
|
var _StandardsAndIndicators = require("./StandardsAndIndicators");
|
|
31
31
|
|
|
32
|
-
exports.StandardsAndIndicators = _StandardsAndIndicators.StandardsAndIndicators;
|
|
33
|
-
|
|
34
|
-
var _More = require("./More");
|
|
35
|
-
|
|
36
|
-
exports.More = _More.More;
|
|
32
|
+
exports.StandardsAndIndicators = _StandardsAndIndicators.StandardsAndIndicators;
|
package/lib/services.json
CHANGED
|
@@ -6,54 +6,34 @@
|
|
|
6
6
|
"text": "Guidance",
|
|
7
7
|
"id": "guidance",
|
|
8
8
|
"dropdown": true,
|
|
9
|
-
"dropdownComponent": "Guidance"
|
|
10
|
-
|
|
11
|
-
{
|
|
12
|
-
"href": "https://pathways.nice.org.uk",
|
|
13
|
-
"text": "NICE Pathways",
|
|
14
|
-
"id": "pathways",
|
|
15
|
-
"dropdown": false,
|
|
16
|
-
"links": [
|
|
17
|
-
{
|
|
18
|
-
"text": "Browse",
|
|
19
|
-
"href": "/#browse"
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
"text": "Recently viewed",
|
|
23
|
-
"href": "/#recently-viewed"
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
"text": "Help",
|
|
27
|
-
"href": "/#help"
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
"text": "Leave feedback",
|
|
31
|
-
"href": "https://www.nice.org.uk/NICE-Pathways-feedback"
|
|
32
|
-
}
|
|
33
|
-
]
|
|
9
|
+
"dropdownComponent": "Guidance",
|
|
10
|
+
"footer": true
|
|
34
11
|
},
|
|
35
12
|
{
|
|
36
13
|
"href": "https://www.nice.org.uk/standards-and-indicators",
|
|
37
|
-
"text": "Standards
|
|
14
|
+
"text": "Standards and indicators",
|
|
38
15
|
"id": "standards-and-indicators",
|
|
39
16
|
"dropdown": true,
|
|
40
|
-
"dropdownComponent": "StandardsAndIndicators"
|
|
17
|
+
"dropdownComponent": "StandardsAndIndicators",
|
|
18
|
+
"footer": true
|
|
41
19
|
},
|
|
42
20
|
{
|
|
43
21
|
"href": "https://www.nice.org.uk/about/what-we-do/life-sciences",
|
|
44
22
|
"text": "Life sciences",
|
|
45
23
|
"id": "life-sciences",
|
|
46
24
|
"dropdown": true,
|
|
47
|
-
"dropdownComponent": "LifeSciences"
|
|
25
|
+
"dropdownComponent": "LifeSciences",
|
|
26
|
+
"footer": true
|
|
48
27
|
},
|
|
49
28
|
{
|
|
50
29
|
"href": "https://bnf.nice.org.uk",
|
|
51
|
-
"text": "BNF",
|
|
52
|
-
"abbreviation":
|
|
30
|
+
"text": "British National Formulary (BNF)",
|
|
31
|
+
"abbreviation": false,
|
|
53
32
|
"title": "British National Formulary",
|
|
54
33
|
"id": "bnf",
|
|
55
34
|
"dropdown": true,
|
|
56
35
|
"dropdownComponent": "BNF",
|
|
36
|
+
"footer": true,
|
|
57
37
|
"links": [
|
|
58
38
|
{
|
|
59
39
|
"text": "Drugs",
|
|
@@ -79,12 +59,13 @@
|
|
|
79
59
|
},
|
|
80
60
|
{
|
|
81
61
|
"href": "https://bnfc.nice.org.uk",
|
|
82
|
-
"text": "BNFC",
|
|
83
|
-
"abbreviation":
|
|
62
|
+
"text": "British National Formulary for Children (BNFC)",
|
|
63
|
+
"abbreviation": false,
|
|
84
64
|
"title": "British National Formulary for Children",
|
|
85
65
|
"id": "bnfc",
|
|
86
66
|
"dropdown": true,
|
|
87
67
|
"dropdownComponent": "BNFc",
|
|
68
|
+
"footer": true,
|
|
88
69
|
"links": [
|
|
89
70
|
{
|
|
90
71
|
"text": "Drugs",
|
|
@@ -110,12 +91,13 @@
|
|
|
110
91
|
},
|
|
111
92
|
{
|
|
112
93
|
"href": "https://cks.nice.org.uk",
|
|
113
|
-
"text": "CKS",
|
|
114
|
-
"abbreviation":
|
|
94
|
+
"text": "Clinical Knowledge Summaries (CKS)",
|
|
95
|
+
"abbreviation": false,
|
|
115
96
|
"title": "Clinical Knowledge Summaries",
|
|
116
97
|
"id": "cks",
|
|
117
98
|
"dropdown": true,
|
|
118
99
|
"dropdownComponent": "CKS",
|
|
100
|
+
"footer": true,
|
|
119
101
|
"links": [
|
|
120
102
|
{
|
|
121
103
|
"image": "cks",
|
|
@@ -146,25 +128,6 @@
|
|
|
146
128
|
"id": "about",
|
|
147
129
|
"dropdown": true,
|
|
148
130
|
"dropdownComponent": "AboutUs"
|
|
149
|
-
},
|
|
150
|
-
{
|
|
151
|
-
"href": "#more",
|
|
152
|
-
"text": "More",
|
|
153
|
-
"id": "more",
|
|
154
|
-
"dropdown": true,
|
|
155
|
-
"dropdownComponent": "More",
|
|
156
|
-
"nestedLinks": [
|
|
157
|
-
{
|
|
158
|
-
"href": "https://www.evidence.nhs.uk",
|
|
159
|
-
"text": "Evidence search",
|
|
160
|
-
"id": "evidence-search"
|
|
161
|
-
},
|
|
162
|
-
{
|
|
163
|
-
"href": "https://www.nice.org.uk/about/what-we-do/evidence-services/journals-and-databases",
|
|
164
|
-
"text": "Journals and databases",
|
|
165
|
-
"id": "journals-and-databases"
|
|
166
|
-
}
|
|
167
|
-
]
|
|
168
131
|
}
|
|
169
132
|
],
|
|
170
133
|
|
package/package.json
CHANGED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
|
-
exports.__esModule = true;
|
|
6
|
-
exports.More = More;
|
|
7
|
-
|
|
8
|
-
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
|
|
10
|
-
var _Button = require("./Button");
|
|
11
|
-
|
|
12
|
-
var _Grid = require("./Grid");
|
|
13
|
-
|
|
14
|
-
var _services = _interopRequireDefault(require("../../../../services.json"));
|
|
15
|
-
|
|
16
|
-
function More() {
|
|
17
|
-
var rootUrl = _services["default"].rootUrl;
|
|
18
|
-
return /*#__PURE__*/_react["default"].createElement("section", {
|
|
19
|
-
"aria-label": "More NICE services"
|
|
20
|
-
}, /*#__PURE__*/_react["default"].createElement(_Grid.Grid, {
|
|
21
|
-
gutter: "loose"
|
|
22
|
-
}, /*#__PURE__*/_react["default"].createElement(_Grid.GridItem, null, /*#__PURE__*/_react["default"].createElement("h2", null, "Evidence search"), /*#__PURE__*/_react["default"].createElement("p", null, "Evidence search helps you make better, faster evidence-based decisions. It includes high quality resources from over 800 organisations - like searching your trusted work favourites in one go."), /*#__PURE__*/_react["default"].createElement("p", null, /*#__PURE__*/_react["default"].createElement(_Button.Button, {
|
|
23
|
-
variant: "primary",
|
|
24
|
-
to: "https://www.evidence.nhs.uk/"
|
|
25
|
-
}, "Evidence search"))), /*#__PURE__*/_react["default"].createElement(_Grid.GridItem, null, /*#__PURE__*/_react["default"].createElement("h2", null, "Journals and databases"), /*#__PURE__*/_react["default"].createElement("p", null, "Quick access to a range of journals and other evidence-based resources for health and social care staff in England."), /*#__PURE__*/_react["default"].createElement("p", null, "These resources are provided in partnership with Health Education England and NICE."), /*#__PURE__*/_react["default"].createElement("p", null, "You'll need an NHS OpenAthens account to access most of these resources."), /*#__PURE__*/_react["default"].createElement("p", null, /*#__PURE__*/_react["default"].createElement(_Button.Button, {
|
|
26
|
-
variant: "primary",
|
|
27
|
-
to: rootUrl + "/about/what-we-do/evidence-services/journals-and-databases"
|
|
28
|
-
}, "Journals and databases")))));
|
|
29
|
-
}
|