nhsuk-tools-chart-components-react 2.2.0-beta.0 → 2.3.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/README.md +1 -1
- package/dist/cjs/bundle.css +236 -236
- package/dist/esm/bundle.css +242 -242
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -56,7 +56,7 @@ A `storybook` instance for the components can be found in `https://red-water-0aa
|
|
|
56
56
|
|
|
57
57
|
## Installation
|
|
58
58
|
|
|
59
|
-
Ensure you have Node.js
|
|
59
|
+
Ensure you have Node.js 24x.x. installed. Usage of NVM is recommended, to allow for easily switching between versions on different projects.
|
|
60
60
|
|
|
61
61
|
`npm install` will install dependencies.
|
|
62
62
|
|
package/dist/cjs/bundle.css
CHANGED
|
@@ -1,3 +1,65 @@
|
|
|
1
|
+
|
|
2
|
+
.nhsuk-bar-slider-graph {
|
|
3
|
+
position: relative;
|
|
4
|
+
outline: 1px solid black;
|
|
5
|
+
margin-top: 20px;
|
|
6
|
+
display: flex;
|
|
7
|
+
height: 28px;
|
|
8
|
+
}
|
|
9
|
+
@media (min-width: 320px) and (max-width: 641px) {
|
|
10
|
+
.nhsuk-bar-slider-graph {
|
|
11
|
+
height: 24px;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
.nhsuk-bmi-legend-key-classification-underweight, .nhsuk-bmi-classification-underweight {
|
|
17
|
+
background: #330072;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.nhsuk-bmi-legend-key-classification-healthy, .nhsuk-bmi-classification-healthy {
|
|
21
|
+
background: repeating-linear-gradient(-45deg, #30b4ab, #30b4ab 4.5px, #00a499 4.5px, #00a499 9px);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.nhsuk-bmi-legend-key-classification-overweight, .nhsuk-bmi-classification-overweight {
|
|
25
|
+
background: #ffb81c;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.nhsuk-bmi-legend-key-classification-obese, .nhsuk-bmi-classification-obese {
|
|
29
|
+
background: repeating-linear-gradient(45deg, #da5147, #da5147 4.5px, #d5281b 4.5px, #d5281b 9px);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.nhsuk-bmi-classification-obese, .nhsuk-bmi-classification-overweight, .nhsuk-bmi-classification-healthy, .nhsuk-bmi-classification-underweight {
|
|
33
|
+
position: absolute;
|
|
34
|
+
bottom: 0%;
|
|
35
|
+
outline: 1px solid black;
|
|
36
|
+
border-right: 1px solid black;
|
|
37
|
+
box-shadow: -1px 0px white inset, 2px 0px white, 0px -2px white;
|
|
38
|
+
height: 28px;
|
|
39
|
+
}
|
|
40
|
+
@media (min-width: 320px) and (max-width: 641px) {
|
|
41
|
+
.nhsuk-bmi-classification-obese, .nhsuk-bmi-classification-overweight, .nhsuk-bmi-classification-healthy, .nhsuk-bmi-classification-underweight {
|
|
42
|
+
height: 24px;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.nhsuk-bmi-classification-underweight {
|
|
47
|
+
z-index: 3;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.nhsuk-bmi-classification-healthy {
|
|
51
|
+
z-index: 2;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.nhsuk-bmi-classification-overweight {
|
|
55
|
+
z-index: 1;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.nhsuk-bmi-classification-obese {
|
|
59
|
+
border-right: none;
|
|
60
|
+
box-shadow: none;
|
|
61
|
+
}
|
|
62
|
+
|
|
1
63
|
.nhsuk-chart-legend-card {
|
|
2
64
|
max-width: 250px;
|
|
3
65
|
}
|
|
@@ -16,19 +78,61 @@
|
|
|
16
78
|
}
|
|
17
79
|
|
|
18
80
|
|
|
19
|
-
.nhsuk-
|
|
81
|
+
.nhsuk-bmi-legend-key-classification-underweight, .nhsuk-bmi-classification-underweight {
|
|
82
|
+
background: #330072;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.nhsuk-bmi-legend-key-classification-healthy, .nhsuk-bmi-classification-healthy {
|
|
86
|
+
background: repeating-linear-gradient(-45deg, #30b4ab, #30b4ab 4.5px, #00a499 4.5px, #00a499 9px);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.nhsuk-bmi-legend-key-classification-overweight, .nhsuk-bmi-classification-overweight {
|
|
90
|
+
background: #ffb81c;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.nhsuk-bmi-legend-key-classification-obese, .nhsuk-bmi-classification-obese {
|
|
94
|
+
background: repeating-linear-gradient(45deg, #da5147, #da5147 4.5px, #d5281b 4.5px, #d5281b 9px);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.nhsuk-bmi-graph {
|
|
20
98
|
position: relative;
|
|
21
99
|
outline: 1px solid black;
|
|
22
|
-
margin-top: 20px;
|
|
23
100
|
display: flex;
|
|
24
101
|
height: 28px;
|
|
102
|
+
margin-bottom: nhsuk-spacing(4);
|
|
25
103
|
}
|
|
26
104
|
@media (min-width: 320px) and (max-width: 641px) {
|
|
27
|
-
.nhsuk-
|
|
105
|
+
.nhsuk-bmi-graph {
|
|
28
106
|
height: 24px;
|
|
29
107
|
}
|
|
30
108
|
}
|
|
31
109
|
|
|
110
|
+
.nhsuk-bmi-legend-key-classification-underweight, .nhsuk-bmi-classification-underweight {
|
|
111
|
+
background: #330072;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.nhsuk-bmi-legend-key-classification-healthy, .nhsuk-bmi-classification-healthy {
|
|
115
|
+
background: repeating-linear-gradient(-45deg, #30b4ab, #30b4ab 4.5px, #00a499 4.5px, #00a499 9px);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.nhsuk-bmi-legend-key-classification-overweight, .nhsuk-bmi-classification-overweight {
|
|
119
|
+
background: #ffb81c;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.nhsuk-bmi-legend-key-classification-obese, .nhsuk-bmi-classification-obese {
|
|
123
|
+
background: repeating-linear-gradient(45deg, #da5147, #da5147 4.5px, #d5281b 4.5px, #d5281b 9px);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.nhsuk-bmi-legend-key-classification-obese {
|
|
127
|
+
border-bottom: none;
|
|
128
|
+
box-shadow: none;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.nhsuk-bmi-legend-key-marker {
|
|
132
|
+
border-bottom: none;
|
|
133
|
+
box-shadow: none;
|
|
134
|
+
}
|
|
135
|
+
|
|
32
136
|
|
|
33
137
|
.nhsuk-bar-slider-arrow-marker {
|
|
34
138
|
position: absolute;
|
|
@@ -74,48 +178,6 @@
|
|
|
74
178
|
margin-right: 2px;
|
|
75
179
|
}
|
|
76
180
|
|
|
77
|
-
.nhsuk-bmi-classification-underweight, .nhsuk-bmi-legend-key-classification-underweight {
|
|
78
|
-
background: #330072;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
.nhsuk-bmi-classification-healthy, .nhsuk-bmi-legend-key-classification-healthy {
|
|
82
|
-
background: repeating-linear-gradient(-45deg, #30b4ab, #30b4ab 4.5px, #00a499 4.5px, #00a499 9px);
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
.nhsuk-bmi-classification-overweight, .nhsuk-bmi-legend-key-classification-overweight {
|
|
86
|
-
background: #ffb81c;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
.nhsuk-bmi-classification-obese, .nhsuk-bmi-legend-key-classification-obese {
|
|
90
|
-
background: repeating-linear-gradient(45deg, #da5147, #da5147 4.5px, #d5281b 4.5px, #d5281b 9px);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
.nhsuk-bmi-legend-key-classification-obese {
|
|
94
|
-
border-bottom: none;
|
|
95
|
-
box-shadow: none;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
.nhsuk-bmi-legend-key-marker {
|
|
99
|
-
border-bottom: none;
|
|
100
|
-
box-shadow: none;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
.nhsuk-bmi-chart-marker {
|
|
105
|
-
position: absolute;
|
|
106
|
-
z-index: 4;
|
|
107
|
-
height: 24px;
|
|
108
|
-
width: 24px;
|
|
109
|
-
margin: 2px 0 -12px -12px;
|
|
110
|
-
}
|
|
111
|
-
@media (min-width: 320px) and (max-width: 641px) {
|
|
112
|
-
.nhsuk-bmi-chart-marker {
|
|
113
|
-
height: 20px;
|
|
114
|
-
width: 20px;
|
|
115
|
-
margin: 2px 0 -10px -10px;
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
|
|
119
181
|
.nhsuk-bmi-axis-marker {
|
|
120
182
|
position: absolute;
|
|
121
183
|
outline: 0.5px solid black;
|
|
@@ -132,80 +194,18 @@
|
|
|
132
194
|
}
|
|
133
195
|
|
|
134
196
|
|
|
135
|
-
.nhsuk-bmi-
|
|
136
|
-
background: #330072;
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
.nhsuk-bmi-classification-healthy, .nhsuk-bmi-legend-key-classification-healthy {
|
|
140
|
-
background: repeating-linear-gradient(-45deg, #30b4ab, #30b4ab 4.5px, #00a499 4.5px, #00a499 9px);
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
.nhsuk-bmi-classification-overweight, .nhsuk-bmi-legend-key-classification-overweight {
|
|
144
|
-
background: #ffb81c;
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
.nhsuk-bmi-classification-obese, .nhsuk-bmi-legend-key-classification-obese {
|
|
148
|
-
background: repeating-linear-gradient(45deg, #da5147, #da5147 4.5px, #d5281b 4.5px, #d5281b 9px);
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
.nhsuk-bmi-classification-obese, .nhsuk-bmi-classification-overweight, .nhsuk-bmi-classification-healthy, .nhsuk-bmi-classification-underweight {
|
|
197
|
+
.nhsuk-bmi-chart-marker {
|
|
152
198
|
position: absolute;
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
height: 28px;
|
|
158
|
-
}
|
|
159
|
-
@media (min-width: 320px) and (max-width: 641px) {
|
|
160
|
-
.nhsuk-bmi-classification-obese, .nhsuk-bmi-classification-overweight, .nhsuk-bmi-classification-healthy, .nhsuk-bmi-classification-underweight {
|
|
161
|
-
height: 24px;
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
.nhsuk-bmi-classification-underweight {
|
|
166
|
-
z-index: 3;
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
.nhsuk-bmi-classification-healthy {
|
|
170
|
-
z-index: 2;
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
.nhsuk-bmi-classification-overweight {
|
|
174
|
-
z-index: 1;
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
.nhsuk-bmi-classification-obese {
|
|
178
|
-
border-right: none;
|
|
179
|
-
box-shadow: none;
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
.nhsuk-bmi-legend-key-classification-underweight, .nhsuk-bmi-classification-underweight {
|
|
184
|
-
background: #330072;
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
.nhsuk-bmi-legend-key-classification-healthy, .nhsuk-bmi-classification-healthy {
|
|
188
|
-
background: repeating-linear-gradient(-45deg, #30b4ab, #30b4ab 4.5px, #00a499 4.5px, #00a499 9px);
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
.nhsuk-bmi-legend-key-classification-overweight, .nhsuk-bmi-classification-overweight {
|
|
192
|
-
background: #ffb81c;
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
.nhsuk-bmi-legend-key-classification-obese, .nhsuk-bmi-classification-obese {
|
|
196
|
-
background: repeating-linear-gradient(45deg, #da5147, #da5147 4.5px, #d5281b 4.5px, #d5281b 9px);
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
.nhsuk-bmi-graph {
|
|
200
|
-
position: relative;
|
|
201
|
-
outline: 1px solid black;
|
|
202
|
-
display: flex;
|
|
203
|
-
height: 28px;
|
|
204
|
-
margin-bottom: nhsuk-spacing(4);
|
|
199
|
+
z-index: 4;
|
|
200
|
+
height: 24px;
|
|
201
|
+
width: 24px;
|
|
202
|
+
margin: 2px 0 -12px -12px;
|
|
205
203
|
}
|
|
206
204
|
@media (min-width: 320px) and (max-width: 641px) {
|
|
207
|
-
.nhsuk-bmi-
|
|
208
|
-
height:
|
|
205
|
+
.nhsuk-bmi-chart-marker {
|
|
206
|
+
height: 20px;
|
|
207
|
+
width: 20px;
|
|
208
|
+
margin: 2px 0 -10px -10px;
|
|
209
209
|
}
|
|
210
210
|
}
|
|
211
211
|
|
|
@@ -264,67 +264,6 @@
|
|
|
264
264
|
border-bottom: 2px solid black;
|
|
265
265
|
}
|
|
266
266
|
|
|
267
|
-
|
|
268
|
-
.nhsuk-bp-diastolic-axis-marker, .nhsuk-bp-systolic-axis-marker {
|
|
269
|
-
position: absolute;
|
|
270
|
-
outline: 0.5px solid black;
|
|
271
|
-
}
|
|
272
|
-
|
|
273
|
-
.nhsuk-bp-diastolic-axis-label, .nhsuk-bp-systolic-axis-label {
|
|
274
|
-
position: absolute;
|
|
275
|
-
}
|
|
276
|
-
|
|
277
|
-
.nhsuk-bp-systolic-axis-marker {
|
|
278
|
-
width: 5px;
|
|
279
|
-
left: -5px;
|
|
280
|
-
}
|
|
281
|
-
.nhsuk-bp-systolic-axis-marker:first-child {
|
|
282
|
-
bottom: -1px !important;
|
|
283
|
-
}
|
|
284
|
-
.nhsuk-bp-systolic-axis-marker:last-child {
|
|
285
|
-
bottom: calc(100% + 1px) !important;
|
|
286
|
-
}
|
|
287
|
-
|
|
288
|
-
.nhsuk-bp-diastolic-axis-marker {
|
|
289
|
-
height: 5px;
|
|
290
|
-
bottom: -5px;
|
|
291
|
-
}
|
|
292
|
-
.nhsuk-bp-diastolic-axis-marker:first-child {
|
|
293
|
-
left: -1px !important;
|
|
294
|
-
}
|
|
295
|
-
.nhsuk-bp-diastolic-axis-marker:last-child {
|
|
296
|
-
left: calc(100% + 1px) !important;
|
|
297
|
-
}
|
|
298
|
-
|
|
299
|
-
@media (max-width: 450px) {
|
|
300
|
-
.nhsuk-bp-diastolic-axis-marker-85 {
|
|
301
|
-
display: none;
|
|
302
|
-
}
|
|
303
|
-
}
|
|
304
|
-
|
|
305
|
-
.nhsuk-bp-diastolic-axis-marker-90 {
|
|
306
|
-
display: none;
|
|
307
|
-
}
|
|
308
|
-
@media (max-width: 450px) {
|
|
309
|
-
.nhsuk-bp-diastolic-axis-marker-90 {
|
|
310
|
-
display: block;
|
|
311
|
-
}
|
|
312
|
-
}
|
|
313
|
-
|
|
314
|
-
.nhsuk-bp-systolic-axis-label {
|
|
315
|
-
left: -30px;
|
|
316
|
-
top: -10px;
|
|
317
|
-
width: 26px;
|
|
318
|
-
text-align: end;
|
|
319
|
-
}
|
|
320
|
-
|
|
321
|
-
.nhsuk-bp-diastolic-axis-label {
|
|
322
|
-
bottom: -25px;
|
|
323
|
-
left: -10px;
|
|
324
|
-
width: 20px;
|
|
325
|
-
text-align: center;
|
|
326
|
-
}
|
|
327
|
-
|
|
328
267
|
.nhsuk-bp-classification-low, .nhsuk-bp-legend-key-classification-low {
|
|
329
268
|
background: #330072;
|
|
330
269
|
}
|
|
@@ -367,6 +306,22 @@
|
|
|
367
306
|
box-shadow: none;
|
|
368
307
|
}
|
|
369
308
|
|
|
309
|
+
.nhsuk-bp-graph-cell {
|
|
310
|
+
flex-grow: 1;
|
|
311
|
+
border-bottom: 1px solid white;
|
|
312
|
+
border-left: 1px solid white;
|
|
313
|
+
background: transparent;
|
|
314
|
+
z-index: 4;
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
.nhsuk-bp-first-in-column {
|
|
318
|
+
border-bottom: none;
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
.nhsuk-bp-first-in-row {
|
|
322
|
+
border-left: none;
|
|
323
|
+
}
|
|
324
|
+
|
|
370
325
|
.nhsuk-bp-classification-low, .nhsuk-bp-legend-key-classification-low {
|
|
371
326
|
background: #330072;
|
|
372
327
|
}
|
|
@@ -418,46 +373,42 @@
|
|
|
418
373
|
z-index: 0;
|
|
419
374
|
}
|
|
420
375
|
|
|
421
|
-
.nhsuk-
|
|
422
|
-
|
|
423
|
-
border-bottom: 1px solid white;
|
|
424
|
-
border-left: 1px solid white;
|
|
425
|
-
background: transparent;
|
|
426
|
-
z-index: 4;
|
|
376
|
+
.nhsuk-cbmi-classification-healthy, .nhsuk-cbmi-legend-key-classification-healthy {
|
|
377
|
+
background: repeating-linear-gradient(-45deg, #30b4ab, #30b4ab 4.5px, #00a499 4.5px, #00a499 9px);
|
|
427
378
|
}
|
|
428
379
|
|
|
429
|
-
.nhsuk-
|
|
430
|
-
|
|
380
|
+
.nhsuk-cbmi-classification-overweight, .nhsuk-cbmi-legend-key-classification-overweight {
|
|
381
|
+
background: #ffb81c;
|
|
431
382
|
}
|
|
432
383
|
|
|
433
|
-
.nhsuk-
|
|
434
|
-
|
|
384
|
+
.nhsuk-cbmi-classification-underweight, .nhsuk-cbmi-legend-key-classification-underweight {
|
|
385
|
+
background: #330072;
|
|
435
386
|
}
|
|
436
387
|
|
|
388
|
+
.nhsuk-cbmi-legend-key-classification-overweight {
|
|
389
|
+
border-bottom: none;
|
|
390
|
+
box-shadow: none;
|
|
391
|
+
}
|
|
437
392
|
|
|
438
|
-
.nhsuk-cbmi-classification-
|
|
439
|
-
|
|
393
|
+
.nhsuk-cbmi-legend-key, .nhsuk-cbmi-legend-key-classification-underweight, .nhsuk-cbmi-legend-key-classification-healthy, .nhsuk-cbmi-legend-key-classification-overweight {
|
|
394
|
+
border-bottom: 2px solid white;
|
|
395
|
+
margin-bottom: 2px;
|
|
440
396
|
}
|
|
441
397
|
|
|
442
|
-
.nhsuk-cbmi-
|
|
443
|
-
|
|
398
|
+
.nhsuk-cbmi-legend-marker {
|
|
399
|
+
margin-bottom: 2px;
|
|
444
400
|
}
|
|
445
401
|
|
|
446
|
-
.nhsuk-cbmi-classification-underweight
|
|
447
|
-
|
|
402
|
+
.nhsuk-cbmi-classification-underweight-heading {
|
|
403
|
+
border-left: 8px solid #330072;
|
|
448
404
|
}
|
|
449
405
|
|
|
450
|
-
.nhsuk-cbmi-
|
|
451
|
-
|
|
452
|
-
outline: 1px solid black;
|
|
453
|
-
margin-top: 20px;
|
|
454
|
-
display: flex;
|
|
455
|
-
height: 28px;
|
|
406
|
+
.nhsuk-cbmi-classification-healthy-heading {
|
|
407
|
+
border-left: 8px solid #30b4ab;
|
|
456
408
|
}
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
}
|
|
409
|
+
|
|
410
|
+
.nhsuk-cbmi-classification-overweight-heading {
|
|
411
|
+
border-left: 8px solid #ffb81c;
|
|
461
412
|
}
|
|
462
413
|
|
|
463
414
|
|
|
@@ -483,42 +434,68 @@
|
|
|
483
434
|
}
|
|
484
435
|
}
|
|
485
436
|
|
|
486
|
-
.nhsuk-cbmi-classification-healthy, .nhsuk-cbmi-legend-key-classification-healthy {
|
|
487
|
-
background: repeating-linear-gradient(-45deg, #30b4ab, #30b4ab 4.5px, #00a499 4.5px, #00a499 9px);
|
|
488
|
-
}
|
|
489
437
|
|
|
490
|
-
.nhsuk-
|
|
491
|
-
|
|
438
|
+
.nhsuk-bp-diastolic-axis-marker, .nhsuk-bp-systolic-axis-marker {
|
|
439
|
+
position: absolute;
|
|
440
|
+
outline: 0.5px solid black;
|
|
492
441
|
}
|
|
493
442
|
|
|
494
|
-
.nhsuk-
|
|
495
|
-
|
|
443
|
+
.nhsuk-bp-diastolic-axis-label, .nhsuk-bp-systolic-axis-label {
|
|
444
|
+
position: absolute;
|
|
496
445
|
}
|
|
497
446
|
|
|
447
|
+
.nhsuk-bp-systolic-axis-marker {
|
|
448
|
+
width: 5px;
|
|
449
|
+
left: -5px;
|
|
450
|
+
}
|
|
451
|
+
.nhsuk-bp-systolic-axis-marker:first-child {
|
|
452
|
+
bottom: -1px !important;
|
|
453
|
+
}
|
|
454
|
+
.nhsuk-bp-systolic-axis-marker:last-child {
|
|
455
|
+
bottom: calc(100% + 1px) !important;
|
|
456
|
+
}
|
|
498
457
|
|
|
499
|
-
.nhsuk-
|
|
500
|
-
|
|
501
|
-
position: absolute;
|
|
458
|
+
.nhsuk-bp-diastolic-axis-marker {
|
|
459
|
+
height: 5px;
|
|
502
460
|
bottom: -5px;
|
|
503
|
-
margin-left: -0.5px;
|
|
504
|
-
box-shadow: 0px 0px white inset, 1px 0px white, -1px 0px white;
|
|
505
|
-
z-index: 100;
|
|
506
|
-
height: 33px;
|
|
507
461
|
}
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
462
|
+
.nhsuk-bp-diastolic-axis-marker:first-child {
|
|
463
|
+
left: -1px !important;
|
|
464
|
+
}
|
|
465
|
+
.nhsuk-bp-diastolic-axis-marker:last-child {
|
|
466
|
+
left: calc(100% + 1px) !important;
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
@media (max-width: 450px) {
|
|
470
|
+
.nhsuk-bp-diastolic-axis-marker-85 {
|
|
471
|
+
display: none;
|
|
511
472
|
}
|
|
512
473
|
}
|
|
513
474
|
|
|
514
|
-
.nhsuk-
|
|
515
|
-
|
|
475
|
+
.nhsuk-bp-diastolic-axis-marker-90 {
|
|
476
|
+
display: none;
|
|
477
|
+
}
|
|
478
|
+
@media (max-width: 450px) {
|
|
479
|
+
.nhsuk-bp-diastolic-axis-marker-90 {
|
|
480
|
+
display: block;
|
|
481
|
+
}
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
.nhsuk-bp-systolic-axis-label {
|
|
485
|
+
left: -30px;
|
|
486
|
+
top: -10px;
|
|
487
|
+
width: 26px;
|
|
488
|
+
text-align: end;
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
.nhsuk-bp-diastolic-axis-label {
|
|
516
492
|
bottom: -25px;
|
|
517
493
|
left: -10px;
|
|
518
494
|
width: 20px;
|
|
519
495
|
text-align: center;
|
|
520
496
|
}
|
|
521
497
|
|
|
498
|
+
|
|
522
499
|
.nhsuk-cbmi-classification-healthy, .nhsuk-cbmi-legend-key-classification-healthy {
|
|
523
500
|
background: repeating-linear-gradient(-45deg, #30b4ab, #30b4ab 4.5px, #00a499 4.5px, #00a499 9px);
|
|
524
501
|
}
|
|
@@ -531,30 +508,53 @@
|
|
|
531
508
|
background: #330072;
|
|
532
509
|
}
|
|
533
510
|
|
|
534
|
-
.nhsuk-cbmi-
|
|
535
|
-
|
|
536
|
-
|
|
511
|
+
.nhsuk-cbmi-graph {
|
|
512
|
+
position: relative;
|
|
513
|
+
outline: 1px solid black;
|
|
514
|
+
margin-top: 20px;
|
|
515
|
+
display: flex;
|
|
516
|
+
height: 28px;
|
|
517
|
+
}
|
|
518
|
+
@media (min-width: 320px) and (max-width: 641px) {
|
|
519
|
+
.nhsuk-cbmi-graph {
|
|
520
|
+
height: 24px;
|
|
521
|
+
}
|
|
537
522
|
}
|
|
538
523
|
|
|
539
|
-
.nhsuk-cbmi-
|
|
540
|
-
|
|
541
|
-
margin-bottom: 2px;
|
|
524
|
+
.nhsuk-cbmi-classification-healthy, .nhsuk-cbmi-legend-key-classification-healthy {
|
|
525
|
+
background: repeating-linear-gradient(-45deg, #30b4ab, #30b4ab 4.5px, #00a499 4.5px, #00a499 9px);
|
|
542
526
|
}
|
|
543
527
|
|
|
544
|
-
.nhsuk-cbmi-legend-
|
|
545
|
-
|
|
528
|
+
.nhsuk-cbmi-classification-overweight, .nhsuk-cbmi-legend-key-classification-overweight {
|
|
529
|
+
background: #ffb81c;
|
|
546
530
|
}
|
|
547
531
|
|
|
548
|
-
.nhsuk-cbmi-classification-underweight-
|
|
549
|
-
|
|
532
|
+
.nhsuk-cbmi-classification-underweight, .nhsuk-cbmi-legend-key-classification-underweight {
|
|
533
|
+
background: #330072;
|
|
550
534
|
}
|
|
551
535
|
|
|
552
|
-
|
|
553
|
-
|
|
536
|
+
|
|
537
|
+
.nhsuk-cbmi-axis-marker {
|
|
538
|
+
border: 1px solid black;
|
|
539
|
+
position: absolute;
|
|
540
|
+
bottom: -5px;
|
|
541
|
+
margin-left: -0.5px;
|
|
542
|
+
box-shadow: 0px 0px white inset, 1px 0px white, -1px 0px white;
|
|
543
|
+
z-index: 100;
|
|
544
|
+
height: 33px;
|
|
545
|
+
}
|
|
546
|
+
@media (min-width: 320px) and (max-width: 641px) {
|
|
547
|
+
.nhsuk-cbmi-axis-marker {
|
|
548
|
+
height: 29px;
|
|
549
|
+
}
|
|
554
550
|
}
|
|
555
551
|
|
|
556
|
-
.nhsuk-cbmi-
|
|
557
|
-
|
|
552
|
+
.nhsuk-cbmi-axis-marker-label {
|
|
553
|
+
position: absolute;
|
|
554
|
+
bottom: -25px;
|
|
555
|
+
left: -10px;
|
|
556
|
+
width: 20px;
|
|
557
|
+
text-align: center;
|
|
558
558
|
}
|
|
559
559
|
|
|
560
560
|
|
package/dist/esm/bundle.css
CHANGED
|
@@ -16,48 +16,59 @@
|
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
.nhsuk-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
19
|
+
.nhsuk-bmi-classification-underweight, .nhsuk-bmi-legend-key-classification-underweight {
|
|
20
|
+
background: #330072;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.nhsuk-bmi-classification-healthy, .nhsuk-bmi-legend-key-classification-healthy {
|
|
24
|
+
background: repeating-linear-gradient(-45deg, #30b4ab, #30b4ab 4.5px, #00a499 4.5px, #00a499 9px);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.nhsuk-bmi-classification-overweight, .nhsuk-bmi-legend-key-classification-overweight {
|
|
28
|
+
background: #ffb81c;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.nhsuk-bmi-classification-obese, .nhsuk-bmi-legend-key-classification-obese {
|
|
32
|
+
background: repeating-linear-gradient(45deg, #da5147, #da5147 4.5px, #d5281b 4.5px, #d5281b 9px);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.nhsuk-bmi-graph {
|
|
36
|
+
position: relative;
|
|
37
|
+
outline: 1px solid black;
|
|
38
|
+
display: flex;
|
|
39
|
+
height: 28px;
|
|
40
|
+
margin-bottom: nhsuk-spacing(4);
|
|
24
41
|
}
|
|
25
42
|
@media (min-width: 320px) and (max-width: 641px) {
|
|
26
|
-
.nhsuk-
|
|
27
|
-
height:
|
|
28
|
-
width: 12px;
|
|
29
|
-
margin: -9px 0 -6px -6px;
|
|
43
|
+
.nhsuk-bmi-graph {
|
|
44
|
+
height: 24px;
|
|
30
45
|
}
|
|
31
46
|
}
|
|
32
47
|
|
|
33
|
-
.nhsuk-
|
|
34
|
-
|
|
35
|
-
justify-content: left;
|
|
48
|
+
.nhsuk-bmi-classification-underweight, .nhsuk-bmi-legend-key-classification-underweight {
|
|
49
|
+
background: #330072;
|
|
36
50
|
}
|
|
37
51
|
|
|
38
|
-
.nhsuk-
|
|
39
|
-
|
|
40
|
-
justify-content: center;
|
|
52
|
+
.nhsuk-bmi-classification-healthy, .nhsuk-bmi-legend-key-classification-healthy {
|
|
53
|
+
background: repeating-linear-gradient(-45deg, #30b4ab, #30b4ab 4.5px, #00a499 4.5px, #00a499 9px);
|
|
41
54
|
}
|
|
42
55
|
|
|
43
|
-
.nhsuk-
|
|
44
|
-
|
|
45
|
-
justify-content: right;
|
|
56
|
+
.nhsuk-bmi-classification-overweight, .nhsuk-bmi-legend-key-classification-overweight {
|
|
57
|
+
background: #ffb81c;
|
|
46
58
|
}
|
|
47
59
|
|
|
48
|
-
.nhsuk-
|
|
49
|
-
|
|
50
|
-
height: 25px;
|
|
51
|
-
width: auto;
|
|
52
|
-
white-space: nowrap;
|
|
53
|
-
margin-top: -30px;
|
|
60
|
+
.nhsuk-bmi-classification-obese, .nhsuk-bmi-legend-key-classification-obese {
|
|
61
|
+
background: repeating-linear-gradient(45deg, #da5147, #da5147 4.5px, #d5281b 4.5px, #d5281b 9px);
|
|
54
62
|
}
|
|
55
63
|
|
|
56
|
-
.nhsuk-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
64
|
+
.nhsuk-bmi-legend-key-classification-obese {
|
|
65
|
+
border-bottom: none;
|
|
66
|
+
box-shadow: none;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.nhsuk-bmi-legend-key-marker {
|
|
70
|
+
border-bottom: none;
|
|
71
|
+
box-shadow: none;
|
|
61
72
|
}
|
|
62
73
|
|
|
63
74
|
.nhsuk-bp-classification-low, .nhsuk-bp-legend-key-classification-low {
|
|
@@ -102,6 +113,21 @@
|
|
|
102
113
|
box-shadow: none;
|
|
103
114
|
}
|
|
104
115
|
|
|
116
|
+
.nhsuk-bmi-axis-marker {
|
|
117
|
+
position: absolute;
|
|
118
|
+
outline: 0.5px solid black;
|
|
119
|
+
height: 5px;
|
|
120
|
+
bottom: -5px;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.nhsuk-bmi-axis-marker-label {
|
|
124
|
+
position: absolute;
|
|
125
|
+
bottom: -25px;
|
|
126
|
+
left: -10px;
|
|
127
|
+
width: 20px;
|
|
128
|
+
text-align: center;
|
|
129
|
+
}
|
|
130
|
+
|
|
105
131
|
|
|
106
132
|
.nhsuk-bp-diastolic-axis-marker, .nhsuk-bp-systolic-axis-marker {
|
|
107
133
|
position: absolute;
|
|
@@ -163,86 +189,22 @@
|
|
|
163
189
|
text-align: center;
|
|
164
190
|
}
|
|
165
191
|
|
|
166
|
-
.nhsuk-bp-classification-low, .nhsuk-bp-legend-key-classification-low {
|
|
167
|
-
background: #330072;
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
.nhsuk-bp-classification-healthy, .nhsuk-bp-legend-key-classification-healthy {
|
|
171
|
-
background: repeating-linear-gradient(-45deg, #59c3bc, #59c3bc 4.5px, #33b6ad 4.5px, #33b6ad 9px);
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
.nhsuk-bp-classification-slightlyraised, .nhsuk-bp-legend-key-classification-slightlyraised {
|
|
175
|
-
background: #ffb81c;
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
.nhsuk-bp-classification-high, .nhsuk-bp-legend-key-classification-high {
|
|
179
|
-
background: repeating-linear-gradient(45deg, #e1746b, #e1746b 4.5px, #dd5349 4.5px, #dd5349 9px);
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
.nhsuk-bp-region-boundary {
|
|
183
|
-
position: absolute;
|
|
184
|
-
bottom: 0%;
|
|
185
|
-
outline: 1px solid black;
|
|
186
|
-
border-top: 1px solid black;
|
|
187
|
-
border-right: 1px solid black;
|
|
188
|
-
box-shadow: -1px 1px white inset, 2px 0px white, 0px -2px white, 2px -2px white;
|
|
189
|
-
z-index: 5;
|
|
190
|
-
background: transparent;
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
.nhsuk-bp-classification-low {
|
|
194
|
-
position: absolute;
|
|
195
|
-
bottom: 0%;
|
|
196
|
-
z-index: 3;
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
.nhsuk-bp-classification-healthy {
|
|
200
|
-
position: absolute;
|
|
201
|
-
bottom: 0%;
|
|
202
|
-
z-index: 2;
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
.nhsuk-bp-classification-slightlyraised {
|
|
206
|
-
position: absolute;
|
|
207
|
-
bottom: 0%;
|
|
208
|
-
z-index: 1;
|
|
209
|
-
}
|
|
210
192
|
|
|
211
|
-
.nhsuk-
|
|
193
|
+
.nhsuk-bmi-chart-marker {
|
|
212
194
|
position: absolute;
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
.nhsuk-bar-slider-graph {
|
|
219
|
-
position: relative;
|
|
220
|
-
outline: 1px solid black;
|
|
221
|
-
margin-top: 20px;
|
|
222
|
-
display: flex;
|
|
223
|
-
height: 28px;
|
|
195
|
+
z-index: 4;
|
|
196
|
+
height: 24px;
|
|
197
|
+
width: 24px;
|
|
198
|
+
margin: 2px 0 -12px -12px;
|
|
224
199
|
}
|
|
225
200
|
@media (min-width: 320px) and (max-width: 641px) {
|
|
226
|
-
.nhsuk-
|
|
227
|
-
height:
|
|
201
|
+
.nhsuk-bmi-chart-marker {
|
|
202
|
+
height: 20px;
|
|
203
|
+
width: 20px;
|
|
204
|
+
margin: 2px 0 -10px -10px;
|
|
228
205
|
}
|
|
229
206
|
}
|
|
230
207
|
|
|
231
|
-
.nhsuk-bmi-axis-marker {
|
|
232
|
-
position: absolute;
|
|
233
|
-
outline: 0.5px solid black;
|
|
234
|
-
height: 5px;
|
|
235
|
-
bottom: -5px;
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
.nhsuk-bmi-axis-marker-label {
|
|
239
|
-
position: absolute;
|
|
240
|
-
bottom: -25px;
|
|
241
|
-
left: -10px;
|
|
242
|
-
width: 20px;
|
|
243
|
-
text-align: center;
|
|
244
|
-
}
|
|
245
|
-
|
|
246
208
|
|
|
247
209
|
.nhsuk-bp-graph {
|
|
248
210
|
position: relative;
|
|
@@ -298,56 +260,71 @@
|
|
|
298
260
|
border-bottom: 2px solid black;
|
|
299
261
|
}
|
|
300
262
|
|
|
301
|
-
.nhsuk-
|
|
302
|
-
background:
|
|
263
|
+
.nhsuk-bp-classification-low, .nhsuk-bp-legend-key-classification-low {
|
|
264
|
+
background: #330072;
|
|
303
265
|
}
|
|
304
266
|
|
|
305
|
-
.nhsuk-
|
|
267
|
+
.nhsuk-bp-classification-healthy, .nhsuk-bp-legend-key-classification-healthy {
|
|
268
|
+
background: repeating-linear-gradient(-45deg, #59c3bc, #59c3bc 4.5px, #33b6ad 4.5px, #33b6ad 9px);
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
.nhsuk-bp-classification-slightlyraised, .nhsuk-bp-legend-key-classification-slightlyraised {
|
|
306
272
|
background: #ffb81c;
|
|
307
273
|
}
|
|
308
274
|
|
|
309
|
-
.nhsuk-
|
|
310
|
-
background: #
|
|
275
|
+
.nhsuk-bp-classification-high, .nhsuk-bp-legend-key-classification-high {
|
|
276
|
+
background: repeating-linear-gradient(45deg, #e1746b, #e1746b 4.5px, #dd5349 4.5px, #dd5349 9px);
|
|
311
277
|
}
|
|
312
278
|
|
|
279
|
+
.nhsuk-bp-region-boundary {
|
|
280
|
+
position: absolute;
|
|
281
|
+
bottom: 0%;
|
|
282
|
+
outline: 1px solid black;
|
|
283
|
+
border-top: 1px solid black;
|
|
284
|
+
border-right: 1px solid black;
|
|
285
|
+
box-shadow: -1px 1px white inset, 2px 0px white, 0px -2px white, 2px -2px white;
|
|
286
|
+
z-index: 5;
|
|
287
|
+
background: transparent;
|
|
288
|
+
}
|
|
313
289
|
|
|
314
|
-
.nhsuk-
|
|
315
|
-
border: 1px solid black;
|
|
290
|
+
.nhsuk-bp-classification-low {
|
|
316
291
|
position: absolute;
|
|
317
|
-
bottom:
|
|
318
|
-
|
|
319
|
-
box-shadow: 0px 0px white inset, 1px 0px white, -1px 0px white;
|
|
320
|
-
z-index: 100;
|
|
321
|
-
height: 33px;
|
|
292
|
+
bottom: 0%;
|
|
293
|
+
z-index: 3;
|
|
322
294
|
}
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
295
|
+
|
|
296
|
+
.nhsuk-bp-classification-healthy {
|
|
297
|
+
position: absolute;
|
|
298
|
+
bottom: 0%;
|
|
299
|
+
z-index: 2;
|
|
327
300
|
}
|
|
328
301
|
|
|
329
|
-
.nhsuk-
|
|
302
|
+
.nhsuk-bp-classification-slightlyraised {
|
|
330
303
|
position: absolute;
|
|
331
|
-
bottom:
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
304
|
+
bottom: 0%;
|
|
305
|
+
z-index: 1;
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
.nhsuk-bp-classification-high {
|
|
309
|
+
position: absolute;
|
|
310
|
+
bottom: 0%;
|
|
311
|
+
z-index: 0;
|
|
335
312
|
}
|
|
336
313
|
|
|
337
314
|
|
|
338
|
-
.nhsuk-bmi-
|
|
315
|
+
.nhsuk-bmi-classification-underweight, .nhsuk-bmi-legend-key-classification-underweight {
|
|
339
316
|
background: #330072;
|
|
340
317
|
}
|
|
341
318
|
|
|
342
|
-
.nhsuk-bmi-
|
|
319
|
+
.nhsuk-bmi-classification-healthy, .nhsuk-bmi-legend-key-classification-healthy {
|
|
343
320
|
background: repeating-linear-gradient(-45deg, #30b4ab, #30b4ab 4.5px, #00a499 4.5px, #00a499 9px);
|
|
344
321
|
}
|
|
345
322
|
|
|
346
|
-
.nhsuk-bmi-
|
|
323
|
+
.nhsuk-bmi-classification-overweight, .nhsuk-bmi-legend-key-classification-overweight {
|
|
347
324
|
background: #ffb81c;
|
|
348
325
|
}
|
|
349
326
|
|
|
350
|
-
.nhsuk-bmi-
|
|
327
|
+
.nhsuk-bmi-classification-obese, .nhsuk-bmi-legend-key-classification-obese {
|
|
351
328
|
background: repeating-linear-gradient(45deg, #da5147, #da5147 4.5px, #d5281b 4.5px, #d5281b 9px);
|
|
352
329
|
}
|
|
353
330
|
|
|
@@ -382,54 +359,52 @@
|
|
|
382
359
|
box-shadow: none;
|
|
383
360
|
}
|
|
384
361
|
|
|
385
|
-
.nhsuk-cbmi-classification-healthy, .nhsuk-cbmi-
|
|
362
|
+
.nhsuk-cbmi-legend-key-classification-healthy, .nhsuk-cbmi-classification-healthy {
|
|
386
363
|
background: repeating-linear-gradient(-45deg, #30b4ab, #30b4ab 4.5px, #00a499 4.5px, #00a499 9px);
|
|
387
364
|
}
|
|
388
365
|
|
|
389
|
-
.nhsuk-cbmi-classification-overweight, .nhsuk-cbmi-
|
|
366
|
+
.nhsuk-cbmi-legend-key-classification-overweight, .nhsuk-cbmi-classification-overweight {
|
|
390
367
|
background: #ffb81c;
|
|
391
368
|
}
|
|
392
369
|
|
|
393
|
-
.nhsuk-cbmi-classification-underweight, .nhsuk-cbmi-
|
|
370
|
+
.nhsuk-cbmi-legend-key-classification-underweight, .nhsuk-cbmi-classification-underweight {
|
|
394
371
|
background: #330072;
|
|
395
372
|
}
|
|
396
373
|
|
|
397
|
-
.nhsuk-cbmi-legend-key-classification-overweight {
|
|
398
|
-
border-bottom: none;
|
|
399
|
-
box-shadow: none;
|
|
400
|
-
}
|
|
401
|
-
|
|
402
|
-
.nhsuk-cbmi-legend-key, .nhsuk-cbmi-legend-key-classification-underweight, .nhsuk-cbmi-legend-key-classification-healthy, .nhsuk-cbmi-legend-key-classification-overweight {
|
|
403
|
-
border-bottom: 2px solid white;
|
|
404
|
-
margin-bottom: 2px;
|
|
405
|
-
}
|
|
406
|
-
|
|
407
|
-
.nhsuk-cbmi-legend-marker {
|
|
408
|
-
margin-bottom: 2px;
|
|
409
|
-
}
|
|
410
374
|
|
|
411
|
-
.nhsuk-cbmi-
|
|
412
|
-
border
|
|
375
|
+
.nhsuk-cbmi-axis-marker {
|
|
376
|
+
border: 1px solid black;
|
|
377
|
+
position: absolute;
|
|
378
|
+
bottom: -5px;
|
|
379
|
+
margin-left: -0.5px;
|
|
380
|
+
box-shadow: 0px 0px white inset, 1px 0px white, -1px 0px white;
|
|
381
|
+
z-index: 100;
|
|
382
|
+
height: 33px;
|
|
413
383
|
}
|
|
414
|
-
|
|
415
|
-
.nhsuk-cbmi-
|
|
416
|
-
|
|
384
|
+
@media (min-width: 320px) and (max-width: 641px) {
|
|
385
|
+
.nhsuk-cbmi-axis-marker {
|
|
386
|
+
height: 29px;
|
|
387
|
+
}
|
|
417
388
|
}
|
|
418
389
|
|
|
419
|
-
.nhsuk-cbmi-
|
|
420
|
-
|
|
390
|
+
.nhsuk-cbmi-axis-marker-label {
|
|
391
|
+
position: absolute;
|
|
392
|
+
bottom: -25px;
|
|
393
|
+
left: -10px;
|
|
394
|
+
width: 20px;
|
|
395
|
+
text-align: center;
|
|
421
396
|
}
|
|
422
397
|
|
|
423
398
|
|
|
424
|
-
.nhsuk-cbmi-classification-healthy, .nhsuk-cbmi-
|
|
399
|
+
.nhsuk-cbmi-legend-key-classification-healthy, .nhsuk-cbmi-classification-healthy {
|
|
425
400
|
background: repeating-linear-gradient(-45deg, #30b4ab, #30b4ab 4.5px, #00a499 4.5px, #00a499 9px);
|
|
426
401
|
}
|
|
427
402
|
|
|
428
|
-
.nhsuk-cbmi-classification-overweight, .nhsuk-cbmi-
|
|
403
|
+
.nhsuk-cbmi-legend-key-classification-overweight, .nhsuk-cbmi-classification-overweight {
|
|
429
404
|
background: #ffb81c;
|
|
430
405
|
}
|
|
431
406
|
|
|
432
|
-
.nhsuk-cbmi-classification-underweight, .nhsuk-cbmi-
|
|
407
|
+
.nhsuk-cbmi-legend-key-classification-underweight, .nhsuk-cbmi-classification-underweight {
|
|
433
408
|
background: #330072;
|
|
434
409
|
}
|
|
435
410
|
|
|
@@ -446,34 +421,20 @@
|
|
|
446
421
|
}
|
|
447
422
|
}
|
|
448
423
|
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
background: repeating-linear-gradient(-45deg, #30b4ab, #30b4ab 4.5px, #00a499 4.5px, #00a499 9px);
|
|
456
|
-
}
|
|
457
|
-
|
|
458
|
-
.nhsuk-bmi-legend-key-classification-overweight, .nhsuk-bmi-classification-overweight {
|
|
459
|
-
background: #ffb81c;
|
|
424
|
+
.nhsuk-bp-graph-cell {
|
|
425
|
+
flex-grow: 1;
|
|
426
|
+
border-bottom: 1px solid white;
|
|
427
|
+
border-left: 1px solid white;
|
|
428
|
+
background: transparent;
|
|
429
|
+
z-index: 4;
|
|
460
430
|
}
|
|
461
431
|
|
|
462
|
-
.nhsuk-
|
|
463
|
-
|
|
432
|
+
.nhsuk-bp-first-in-column {
|
|
433
|
+
border-bottom: none;
|
|
464
434
|
}
|
|
465
435
|
|
|
466
|
-
.nhsuk-
|
|
467
|
-
|
|
468
|
-
outline: 1px solid black;
|
|
469
|
-
display: flex;
|
|
470
|
-
height: 28px;
|
|
471
|
-
margin-bottom: nhsuk-spacing(4);
|
|
472
|
-
}
|
|
473
|
-
@media (min-width: 320px) and (max-width: 641px) {
|
|
474
|
-
.nhsuk-bmi-graph {
|
|
475
|
-
height: 24px;
|
|
476
|
-
}
|
|
436
|
+
.nhsuk-bp-first-in-row {
|
|
437
|
+
border-left: none;
|
|
477
438
|
}
|
|
478
439
|
|
|
479
440
|
|
|
@@ -499,64 +460,140 @@
|
|
|
499
460
|
}
|
|
500
461
|
}
|
|
501
462
|
|
|
502
|
-
|
|
463
|
+
|
|
464
|
+
.nhsuk-cbmi-legend-key-classification-healthy, .nhsuk-cbmi-classification-healthy {
|
|
465
|
+
background: repeating-linear-gradient(-45deg, #30b4ab, #30b4ab 4.5px, #00a499 4.5px, #00a499 9px);
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
.nhsuk-cbmi-legend-key-classification-overweight, .nhsuk-cbmi-classification-overweight {
|
|
469
|
+
background: #ffb81c;
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
.nhsuk-cbmi-legend-key-classification-underweight, .nhsuk-cbmi-classification-underweight {
|
|
503
473
|
background: #330072;
|
|
504
474
|
}
|
|
505
475
|
|
|
506
|
-
.nhsuk-
|
|
476
|
+
.nhsuk-cbmi-classification-overweight, .nhsuk-cbmi-classification-healthy, .nhsuk-cbmi-classification-underweight {
|
|
477
|
+
position: absolute;
|
|
478
|
+
bottom: 0%;
|
|
479
|
+
outline: 1px solid black;
|
|
480
|
+
height: 28px;
|
|
481
|
+
}
|
|
482
|
+
@media (min-width: 320px) and (max-width: 641px) {
|
|
483
|
+
.nhsuk-cbmi-classification-overweight, .nhsuk-cbmi-classification-healthy, .nhsuk-cbmi-classification-underweight {
|
|
484
|
+
height: 24px;
|
|
485
|
+
}
|
|
486
|
+
}
|
|
487
|
+
|
|
488
|
+
.nhsuk-cbmi-classification-underweight {
|
|
489
|
+
z-index: 3;
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
.nhsuk-cbmi-classification-healthy {
|
|
493
|
+
z-index: 2;
|
|
494
|
+
}
|
|
495
|
+
|
|
496
|
+
.nhsuk-cbmi-classification-overweight {
|
|
497
|
+
z-index: 1;
|
|
498
|
+
}
|
|
499
|
+
|
|
500
|
+
.nhsuk-cbmi-legend-key-classification-healthy, .nhsuk-cbmi-classification-healthy {
|
|
507
501
|
background: repeating-linear-gradient(-45deg, #30b4ab, #30b4ab 4.5px, #00a499 4.5px, #00a499 9px);
|
|
508
502
|
}
|
|
509
503
|
|
|
510
|
-
.nhsuk-
|
|
504
|
+
.nhsuk-cbmi-legend-key-classification-overweight, .nhsuk-cbmi-classification-overweight {
|
|
511
505
|
background: #ffb81c;
|
|
512
506
|
}
|
|
513
507
|
|
|
514
|
-
.nhsuk-
|
|
515
|
-
background:
|
|
508
|
+
.nhsuk-cbmi-legend-key-classification-underweight, .nhsuk-cbmi-classification-underweight {
|
|
509
|
+
background: #330072;
|
|
516
510
|
}
|
|
517
511
|
|
|
518
|
-
.nhsuk-
|
|
512
|
+
.nhsuk-cbmi-legend-key-classification-overweight {
|
|
519
513
|
border-bottom: none;
|
|
520
514
|
box-shadow: none;
|
|
521
515
|
}
|
|
522
516
|
|
|
523
|
-
.nhsuk-
|
|
524
|
-
border-bottom:
|
|
525
|
-
|
|
517
|
+
.nhsuk-cbmi-legend-key, .nhsuk-cbmi-legend-key-classification-underweight, .nhsuk-cbmi-legend-key-classification-healthy, .nhsuk-cbmi-legend-key-classification-overweight {
|
|
518
|
+
border-bottom: 2px solid white;
|
|
519
|
+
margin-bottom: 2px;
|
|
526
520
|
}
|
|
527
521
|
|
|
528
|
-
.nhsuk-
|
|
529
|
-
|
|
530
|
-
border-bottom: 1px solid white;
|
|
531
|
-
border-left: 1px solid white;
|
|
532
|
-
background: transparent;
|
|
533
|
-
z-index: 4;
|
|
522
|
+
.nhsuk-cbmi-legend-marker {
|
|
523
|
+
margin-bottom: 2px;
|
|
534
524
|
}
|
|
535
525
|
|
|
536
|
-
.nhsuk-
|
|
537
|
-
border-
|
|
526
|
+
.nhsuk-cbmi-classification-underweight-heading {
|
|
527
|
+
border-left: 8px solid #330072;
|
|
538
528
|
}
|
|
539
529
|
|
|
540
|
-
.nhsuk-
|
|
541
|
-
border-left:
|
|
530
|
+
.nhsuk-cbmi-classification-healthy-heading {
|
|
531
|
+
border-left: 8px solid #30b4ab;
|
|
542
532
|
}
|
|
543
533
|
|
|
534
|
+
.nhsuk-cbmi-classification-overweight-heading {
|
|
535
|
+
border-left: 8px solid #ffb81c;
|
|
536
|
+
}
|
|
544
537
|
|
|
545
|
-
|
|
538
|
+
|
|
539
|
+
.nhsuk-bar-slider-graph {
|
|
540
|
+
position: relative;
|
|
541
|
+
outline: 1px solid black;
|
|
542
|
+
margin-top: 20px;
|
|
543
|
+
display: flex;
|
|
544
|
+
height: 28px;
|
|
545
|
+
}
|
|
546
|
+
@media (min-width: 320px) and (max-width: 641px) {
|
|
547
|
+
.nhsuk-bar-slider-graph {
|
|
548
|
+
height: 24px;
|
|
549
|
+
}
|
|
550
|
+
}
|
|
551
|
+
|
|
552
|
+
|
|
553
|
+
.nhsuk-bar-slider-arrow-marker {
|
|
546
554
|
position: absolute;
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
margin: 2px 0 -12px -12px;
|
|
555
|
+
height: 16px;
|
|
556
|
+
width: 16px;
|
|
557
|
+
margin: -9px 0 -8px -8px;
|
|
551
558
|
}
|
|
552
559
|
@media (min-width: 320px) and (max-width: 641px) {
|
|
553
|
-
.nhsuk-
|
|
554
|
-
height:
|
|
555
|
-
width:
|
|
556
|
-
margin:
|
|
560
|
+
.nhsuk-bar-slider-arrow-marker {
|
|
561
|
+
height: 12px;
|
|
562
|
+
width: 12px;
|
|
563
|
+
margin: -9px 0 -6px -6px;
|
|
557
564
|
}
|
|
558
565
|
}
|
|
559
566
|
|
|
567
|
+
.nhsuk-bar-slider-label-align-left {
|
|
568
|
+
display: flex;
|
|
569
|
+
justify-content: left;
|
|
570
|
+
}
|
|
571
|
+
|
|
572
|
+
.nhsuk-bar-slider-label-align-center {
|
|
573
|
+
display: flex;
|
|
574
|
+
justify-content: center;
|
|
575
|
+
}
|
|
576
|
+
|
|
577
|
+
.nhsuk-bar-slider-label-align-right {
|
|
578
|
+
display: flex;
|
|
579
|
+
justify-content: right;
|
|
580
|
+
}
|
|
581
|
+
|
|
582
|
+
.nhsuk-bar-slider-label-marker {
|
|
583
|
+
position: relative;
|
|
584
|
+
height: 25px;
|
|
585
|
+
width: auto;
|
|
586
|
+
white-space: nowrap;
|
|
587
|
+
margin-top: -30px;
|
|
588
|
+
}
|
|
589
|
+
|
|
590
|
+
.nhsuk-bar-slider-value-marker {
|
|
591
|
+
position: relative;
|
|
592
|
+
font-weight: bold;
|
|
593
|
+
margin-left: 5px;
|
|
594
|
+
margin-right: 2px;
|
|
595
|
+
}
|
|
596
|
+
|
|
560
597
|
|
|
561
598
|
.nhsuk-cbmi-classification-healthy, .nhsuk-cbmi-legend-key-classification-healthy {
|
|
562
599
|
background: repeating-linear-gradient(-45deg, #30b4ab, #30b4ab 4.5px, #00a499 4.5px, #00a499 9px);
|
|
@@ -627,41 +664,4 @@
|
|
|
627
664
|
.nhsuk-cbmi-chart-axis-marker {
|
|
628
665
|
height: 24px;
|
|
629
666
|
}
|
|
630
|
-
}
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
.nhsuk-cbmi-classification-healthy, .nhsuk-cbmi-legend-key-classification-healthy {
|
|
634
|
-
background: repeating-linear-gradient(-45deg, #30b4ab, #30b4ab 4.5px, #00a499 4.5px, #00a499 9px);
|
|
635
|
-
}
|
|
636
|
-
|
|
637
|
-
.nhsuk-cbmi-classification-overweight, .nhsuk-cbmi-legend-key-classification-overweight {
|
|
638
|
-
background: #ffb81c;
|
|
639
|
-
}
|
|
640
|
-
|
|
641
|
-
.nhsuk-cbmi-classification-underweight, .nhsuk-cbmi-legend-key-classification-underweight {
|
|
642
|
-
background: #330072;
|
|
643
|
-
}
|
|
644
|
-
|
|
645
|
-
.nhsuk-cbmi-classification-overweight, .nhsuk-cbmi-classification-healthy, .nhsuk-cbmi-classification-underweight {
|
|
646
|
-
position: absolute;
|
|
647
|
-
bottom: 0%;
|
|
648
|
-
outline: 1px solid black;
|
|
649
|
-
height: 28px;
|
|
650
|
-
}
|
|
651
|
-
@media (min-width: 320px) and (max-width: 641px) {
|
|
652
|
-
.nhsuk-cbmi-classification-overweight, .nhsuk-cbmi-classification-healthy, .nhsuk-cbmi-classification-underweight {
|
|
653
|
-
height: 24px;
|
|
654
|
-
}
|
|
655
|
-
}
|
|
656
|
-
|
|
657
|
-
.nhsuk-cbmi-classification-underweight {
|
|
658
|
-
z-index: 3;
|
|
659
|
-
}
|
|
660
|
-
|
|
661
|
-
.nhsuk-cbmi-classification-healthy {
|
|
662
|
-
z-index: 2;
|
|
663
|
-
}
|
|
664
|
-
|
|
665
|
-
.nhsuk-cbmi-classification-overweight {
|
|
666
|
-
z-index: 1;
|
|
667
667
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nhsuk-tools-chart-components-react",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.3.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./dist/cjs/index.js",
|
|
6
6
|
"module": "./dist/esm/index.js",
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
"peerDependencies": {
|
|
83
83
|
"big.js": "^6.2.2",
|
|
84
84
|
"nhsuk-frontend": ">=10.0.0 <11.0.0",
|
|
85
|
-
"nhsuk-react-components": ">=6.0.0
|
|
85
|
+
"nhsuk-react-components": ">=6.0.0 <7.0.0",
|
|
86
86
|
"react": "^18.2.0",
|
|
87
87
|
"react-dom": "^18.2.0"
|
|
88
88
|
},
|