nhsuk-tools-chart-components-react 1.1.11 → 1.1.13

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 CHANGED
@@ -52,7 +52,7 @@ The Blood Pressure (BP) chart component can be used to visualise systolic and di
52
52
  />
53
53
  ```
54
54
 
55
- A `storybook` instance for the components can be found in `https://tools-graph-components.nhswebsite-dev.nhs.uk/?path=/docs/welcome--docs`
55
+ A `storybook` instance for the components can be found in `https://red-water-0aa7dfb03.6.azurestaticapps.net/?path=/docs/welcome--docs`
56
56
 
57
57
  ## Installation
58
58
 
@@ -258,48 +258,6 @@
258
258
  border-bottom: 2px solid black;
259
259
  }
260
260
 
261
- .nhsuk-bp-classification-low, .nhsuk-bp-legend-key-classification-low {
262
- background: #330072;
263
- }
264
-
265
- .nhsuk-bp-classification-healthy, .nhsuk-bp-legend-key-classification-healthy {
266
- background: repeating-linear-gradient(-45deg, #59c3bc, #59c3bc 4.5px, #33b6ad 4.5px, #33b6ad 9px);
267
- }
268
-
269
- .nhsuk-bp-classification-slightlyraised, .nhsuk-bp-legend-key-classification-slightlyraised {
270
- background: #ffb81c;
271
- }
272
-
273
- .nhsuk-bp-classification-high, .nhsuk-bp-legend-key-classification-high {
274
- background: repeating-linear-gradient(45deg, #e1746b, #e1746b 4.5px, #dd5349 4.5px, #dd5349 9px);
275
- }
276
-
277
- #nhsuk-bp-chart > figure {
278
- margin: 0;
279
- }
280
-
281
- .nhsuk-bp-legend-key-wrapper {
282
- display: flex;
283
- }
284
- .nhsuk-bp-legend-key-wrapper:last-child {
285
- margin-top: 5px;
286
- }
287
-
288
- .nhsuk-bp-legend-display-card {
289
- margin-top: 50px;
290
- max-width: 300px;
291
- }
292
-
293
- .nhsuk-bp-legend-key-classification-low {
294
- border-bottom: none;
295
- box-shadow: none;
296
- }
297
-
298
- .nhsuk-bp-legend-key-marker {
299
- border-bottom: none;
300
- box-shadow: none;
301
- }
302
-
303
261
  .nhsuk-bp-diastolic-axis-marker, .nhsuk-bp-systolic-axis-marker {
304
262
  position: absolute;
305
263
  outline: 0.5px solid black;
@@ -360,26 +318,46 @@
360
318
  text-align: center;
361
319
  }
362
320
 
363
- .nhsuk-bp-graph-marker {
364
- position: absolute;
365
- z-index: 6;
366
- height: 24px;
367
- width: 24px;
368
- margin: 0 0 -12px -12px;
321
+ .nhsuk-bp-classification-low, .nhsuk-bp-legend-key-classification-low {
322
+ background: #330072;
369
323
  }
370
- @media (max-width: 320px) {
371
- .nhsuk-bp-graph-marker {
372
- height: 20px;
373
- width: 20px;
374
- margin: 0 0 -10px -10px;
375
- }
324
+
325
+ .nhsuk-bp-classification-healthy, .nhsuk-bp-legend-key-classification-healthy {
326
+ background: repeating-linear-gradient(-45deg, #59c3bc, #59c3bc 4.5px, #33b6ad 4.5px, #33b6ad 9px);
376
327
  }
377
- @media (min-width: 320px) and (max-width: 641px) {
378
- .nhsuk-bp-graph-marker {
379
- height: 22px;
380
- width: 22px;
381
- margin: 0 0 -11px -11px;
382
- }
328
+
329
+ .nhsuk-bp-classification-slightlyraised, .nhsuk-bp-legend-key-classification-slightlyraised {
330
+ background: #ffb81c;
331
+ }
332
+
333
+ .nhsuk-bp-classification-high, .nhsuk-bp-legend-key-classification-high {
334
+ background: repeating-linear-gradient(45deg, #e1746b, #e1746b 4.5px, #dd5349 4.5px, #dd5349 9px);
335
+ }
336
+
337
+ #nhsuk-bp-chart > figure {
338
+ margin: 0;
339
+ }
340
+
341
+ .nhsuk-bp-legend-key-wrapper {
342
+ display: flex;
343
+ }
344
+ .nhsuk-bp-legend-key-wrapper:last-child {
345
+ margin-top: 5px;
346
+ }
347
+
348
+ .nhsuk-bp-legend-display-card {
349
+ margin-top: 50px;
350
+ max-width: 300px;
351
+ }
352
+
353
+ .nhsuk-bp-legend-key-classification-low {
354
+ border-bottom: none;
355
+ box-shadow: none;
356
+ }
357
+
358
+ .nhsuk-bp-legend-key-marker {
359
+ border-bottom: none;
360
+ box-shadow: none;
383
361
  }
384
362
 
385
363
  .nhsuk-bp-classification-low, .nhsuk-bp-legend-key-classification-low {
@@ -449,6 +427,28 @@
449
427
  border-left: none;
450
428
  }
451
429
 
430
+ .nhsuk-bp-graph-marker {
431
+ position: absolute;
432
+ z-index: 6;
433
+ height: 24px;
434
+ width: 24px;
435
+ margin: 0 0 -12px -12px;
436
+ }
437
+ @media (max-width: 320px) {
438
+ .nhsuk-bp-graph-marker {
439
+ height: 20px;
440
+ width: 20px;
441
+ margin: 0 0 -10px -10px;
442
+ }
443
+ }
444
+ @media (min-width: 320px) and (max-width: 641px) {
445
+ .nhsuk-bp-graph-marker {
446
+ height: 22px;
447
+ width: 22px;
448
+ margin: 0 0 -11px -11px;
449
+ }
450
+ }
451
+
452
452
  .nhsuk-cbmi-classification-healthy, .nhsuk-cbmi-legend-key-classification-healthy {
453
453
  background: repeating-linear-gradient(-45deg, #30b4ab, #30b4ab 4.5px, #00a499 4.5px, #00a499 9px);
454
454
  }
@@ -101,6 +101,21 @@
101
101
  }
102
102
  }
103
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
+
104
119
  .nhsuk-bmi-classification-underweight, .nhsuk-bmi-legend-key-classification-underweight {
105
120
  background: #330072;
106
121
  }
@@ -127,19 +142,19 @@
127
142
  box-shadow: none;
128
143
  }
129
144
 
130
- .nhsuk-bmi-chart-marker {
145
+ .nhsuk-bmi-axis-marker {
131
146
  position: absolute;
132
- z-index: 4;
133
- height: 24px;
134
- width: 24px;
135
- margin: 2px 0 -12px -12px;
147
+ outline: 0.5px solid black;
148
+ height: 5px;
149
+ bottom: -5px;
136
150
  }
137
- @media (min-width: 320px) and (max-width: 641px) {
138
- .nhsuk-bmi-chart-marker {
139
- height: 20px;
140
- width: 20px;
141
- margin: 2px 0 -10px -10px;
142
- }
151
+
152
+ .nhsuk-bmi-axis-marker-label {
153
+ position: absolute;
154
+ bottom: -25px;
155
+ left: -10px;
156
+ width: 20px;
157
+ text-align: center;
143
158
  }
144
159
 
145
160
  .nhsuk-bmi-classification-underweight, .nhsuk-bmi-legend-key-classification-underweight {
@@ -189,75 +204,6 @@
189
204
  box-shadow: none;
190
205
  }
191
206
 
192
- .nhsuk-bmi-axis-marker {
193
- position: absolute;
194
- outline: 0.5px solid black;
195
- height: 5px;
196
- bottom: -5px;
197
- }
198
-
199
- .nhsuk-bmi-axis-marker-label {
200
- position: absolute;
201
- bottom: -25px;
202
- left: -10px;
203
- width: 20px;
204
- text-align: center;
205
- }
206
-
207
- .nhsuk-bp-graph {
208
- position: relative;
209
- margin-left: 20px;
210
- margin-right: 20px;
211
- outline: 2px solid black;
212
- display: flex;
213
- flex-direction: column;
214
- height: 350px;
215
- }
216
- @media (max-width: 320px) {
217
- .nhsuk-bp-graph {
218
- height: 225px;
219
- }
220
- }
221
- @media (min-width: 320px) and (max-width: 641px) {
222
- .nhsuk-bp-graph {
223
- height: 275px;
224
- }
225
- }
226
-
227
- .nhsuk-bp-graph-row {
228
- flex-grow: 1;
229
- display: flex;
230
- }
231
-
232
- .nhsuk-bp-systolic-legend-wrapper {
233
- display: flex;
234
- align-items: flex-end;
235
- margin-bottom: 10px;
236
- }
237
-
238
- .nhsuk-bp-diastolic-legend-wrapper {
239
- display: flex;
240
- align-items: flex-start;
241
- margin-top: 30px;
242
- padding-left: 18px;
243
- }
244
-
245
- .nhsuk-bp-diastolic-legend-marker, .nhsuk-bp-systolic-legend-marker {
246
- height: 16px;
247
- margin-right: 5px;
248
- border-left: 2px solid black;
249
- }
250
-
251
- .nhsuk-bp-systolic-legend-marker {
252
- width: 40px;
253
- border-top: 2px solid black;
254
- }
255
-
256
- .nhsuk-bp-diastolic-legend-marker {
257
- width: 20px;
258
- border-bottom: 2px solid black;
259
- }
260
-
261
207
  .nhsuk-bp-classification-low, .nhsuk-bp-legend-key-classification-low {
262
208
  background: #330072;
263
209
  }
@@ -360,28 +306,60 @@
360
306
  text-align: center;
361
307
  }
362
308
 
363
- .nhsuk-bp-graph-marker {
364
- position: absolute;
365
- z-index: 6;
366
- height: 24px;
367
- width: 24px;
368
- margin: 0 0 -12px -12px;
309
+ .nhsuk-bp-graph {
310
+ position: relative;
311
+ margin-left: 20px;
312
+ margin-right: 20px;
313
+ outline: 2px solid black;
314
+ display: flex;
315
+ flex-direction: column;
316
+ height: 350px;
369
317
  }
370
318
  @media (max-width: 320px) {
371
- .nhsuk-bp-graph-marker {
372
- height: 20px;
373
- width: 20px;
374
- margin: 0 0 -10px -10px;
319
+ .nhsuk-bp-graph {
320
+ height: 225px;
375
321
  }
376
322
  }
377
323
  @media (min-width: 320px) and (max-width: 641px) {
378
- .nhsuk-bp-graph-marker {
379
- height: 22px;
380
- width: 22px;
381
- margin: 0 0 -11px -11px;
324
+ .nhsuk-bp-graph {
325
+ height: 275px;
382
326
  }
383
327
  }
384
328
 
329
+ .nhsuk-bp-graph-row {
330
+ flex-grow: 1;
331
+ display: flex;
332
+ }
333
+
334
+ .nhsuk-bp-systolic-legend-wrapper {
335
+ display: flex;
336
+ align-items: flex-end;
337
+ margin-bottom: 10px;
338
+ }
339
+
340
+ .nhsuk-bp-diastolic-legend-wrapper {
341
+ display: flex;
342
+ align-items: flex-start;
343
+ margin-top: 30px;
344
+ padding-left: 18px;
345
+ }
346
+
347
+ .nhsuk-bp-diastolic-legend-marker, .nhsuk-bp-systolic-legend-marker {
348
+ height: 16px;
349
+ margin-right: 5px;
350
+ border-left: 2px solid black;
351
+ }
352
+
353
+ .nhsuk-bp-systolic-legend-marker {
354
+ width: 40px;
355
+ border-top: 2px solid black;
356
+ }
357
+
358
+ .nhsuk-bp-diastolic-legend-marker {
359
+ width: 20px;
360
+ border-bottom: 2px solid black;
361
+ }
362
+
385
363
  .nhsuk-bp-classification-low, .nhsuk-bp-legend-key-classification-low {
386
364
  background: #330072;
387
365
  }
@@ -433,6 +411,28 @@
433
411
  z-index: 0;
434
412
  }
435
413
 
414
+ .nhsuk-bp-graph-marker {
415
+ position: absolute;
416
+ z-index: 6;
417
+ height: 24px;
418
+ width: 24px;
419
+ margin: 0 0 -12px -12px;
420
+ }
421
+ @media (max-width: 320px) {
422
+ .nhsuk-bp-graph-marker {
423
+ height: 20px;
424
+ width: 20px;
425
+ margin: 0 0 -10px -10px;
426
+ }
427
+ }
428
+ @media (min-width: 320px) and (max-width: 641px) {
429
+ .nhsuk-bp-graph-marker {
430
+ height: 22px;
431
+ width: 22px;
432
+ margin: 0 0 -11px -11px;
433
+ }
434
+ }
435
+
436
436
  .nhsuk-bp-graph-cell {
437
437
  flex-grow: 1;
438
438
  border-bottom: 1px solid white;
@@ -461,31 +461,6 @@
461
461
  background: #330072;
462
462
  }
463
463
 
464
- .nhsuk-cbmi-graph {
465
- position: relative;
466
- outline: 1px solid black;
467
- margin-top: 20px;
468
- display: flex;
469
- height: 28px;
470
- }
471
- @media (min-width: 320px) and (max-width: 641px) {
472
- .nhsuk-cbmi-graph {
473
- height: 24px;
474
- }
475
- }
476
-
477
- .nhsuk-cbmi-classification-healthy, .nhsuk-cbmi-legend-key-classification-healthy {
478
- background: repeating-linear-gradient(-45deg, #30b4ab, #30b4ab 4.5px, #00a499 4.5px, #00a499 9px);
479
- }
480
-
481
- .nhsuk-cbmi-classification-overweight, .nhsuk-cbmi-legend-key-classification-overweight {
482
- background: #ffb81c;
483
- }
484
-
485
- .nhsuk-cbmi-classification-underweight, .nhsuk-cbmi-legend-key-classification-underweight {
486
- background: #330072;
487
- }
488
-
489
464
  .nhsuk-cbmi-legend-key-classification-overweight {
490
465
  border-bottom: none;
491
466
  box-shadow: none;
@@ -524,29 +499,19 @@
524
499
  background: #330072;
525
500
  }
526
501
 
527
- .nhsuk-cbmi-axis-marker {
528
- border: 1px solid black;
529
- position: absolute;
530
- bottom: -5px;
531
- margin-left: -0.5px;
532
- box-shadow: 0px 0px white inset, 1px 0px white, -1px 0px white;
533
- z-index: 100;
534
- height: 33px;
502
+ .nhsuk-cbmi-graph {
503
+ position: relative;
504
+ outline: 1px solid black;
505
+ margin-top: 20px;
506
+ display: flex;
507
+ height: 28px;
535
508
  }
536
509
  @media (min-width: 320px) and (max-width: 641px) {
537
- .nhsuk-cbmi-axis-marker {
538
- height: 29px;
510
+ .nhsuk-cbmi-graph {
511
+ height: 24px;
539
512
  }
540
513
  }
541
514
 
542
- .nhsuk-cbmi-axis-marker-label {
543
- position: absolute;
544
- bottom: -25px;
545
- left: -10px;
546
- width: 20px;
547
- text-align: center;
548
- }
549
-
550
515
  .nhsuk-cbmi-classification-healthy, .nhsuk-cbmi-legend-key-classification-healthy {
551
516
  background: repeating-linear-gradient(-45deg, #30b4ab, #30b4ab 4.5px, #00a499 4.5px, #00a499 9px);
552
517
  }
@@ -559,6 +524,42 @@
559
524
  background: #330072;
560
525
  }
561
526
 
527
+ .nhsuk-cbmi-classification-overweight, .nhsuk-cbmi-classification-healthy, .nhsuk-cbmi-classification-underweight {
528
+ position: absolute;
529
+ bottom: 0%;
530
+ outline: 1px solid black;
531
+ height: 28px;
532
+ }
533
+ @media (min-width: 320px) and (max-width: 641px) {
534
+ .nhsuk-cbmi-classification-overweight, .nhsuk-cbmi-classification-healthy, .nhsuk-cbmi-classification-underweight {
535
+ height: 24px;
536
+ }
537
+ }
538
+
539
+ .nhsuk-cbmi-classification-underweight {
540
+ z-index: 3;
541
+ }
542
+
543
+ .nhsuk-cbmi-classification-healthy {
544
+ z-index: 2;
545
+ }
546
+
547
+ .nhsuk-cbmi-classification-overweight {
548
+ z-index: 1;
549
+ }
550
+
551
+ .nhsuk-cbmi-legend-key-classification-healthy, .nhsuk-cbmi-classification-healthy {
552
+ background: repeating-linear-gradient(-45deg, #30b4ab, #30b4ab 4.5px, #00a499 4.5px, #00a499 9px);
553
+ }
554
+
555
+ .nhsuk-cbmi-legend-key-classification-overweight, .nhsuk-cbmi-classification-overweight {
556
+ background: #ffb81c;
557
+ }
558
+
559
+ .nhsuk-cbmi-legend-key-classification-underweight, .nhsuk-cbmi-classification-underweight {
560
+ background: #330072;
561
+ }
562
+
562
563
  .nhsuk-cbmi-chart-arrow-marker {
563
564
  position: absolute;
564
565
  z-index: 4;
@@ -618,38 +619,37 @@
618
619
  }
619
620
  }
620
621
 
621
- .nhsuk-cbmi-classification-healthy, .nhsuk-cbmi-legend-key-classification-healthy {
622
+ .nhsuk-cbmi-legend-key-classification-healthy, .nhsuk-cbmi-classification-healthy {
622
623
  background: repeating-linear-gradient(-45deg, #30b4ab, #30b4ab 4.5px, #00a499 4.5px, #00a499 9px);
623
624
  }
624
625
 
625
- .nhsuk-cbmi-classification-overweight, .nhsuk-cbmi-legend-key-classification-overweight {
626
+ .nhsuk-cbmi-legend-key-classification-overweight, .nhsuk-cbmi-classification-overweight {
626
627
  background: #ffb81c;
627
628
  }
628
629
 
629
- .nhsuk-cbmi-classification-underweight, .nhsuk-cbmi-legend-key-classification-underweight {
630
+ .nhsuk-cbmi-legend-key-classification-underweight, .nhsuk-cbmi-classification-underweight {
630
631
  background: #330072;
631
632
  }
632
633
 
633
- .nhsuk-cbmi-classification-overweight, .nhsuk-cbmi-classification-healthy, .nhsuk-cbmi-classification-underweight {
634
+ .nhsuk-cbmi-axis-marker {
635
+ border: 1px solid black;
634
636
  position: absolute;
635
- bottom: 0%;
636
- outline: 1px solid black;
637
- height: 28px;
637
+ bottom: -5px;
638
+ margin-left: -0.5px;
639
+ box-shadow: 0px 0px white inset, 1px 0px white, -1px 0px white;
640
+ z-index: 100;
641
+ height: 33px;
638
642
  }
639
643
  @media (min-width: 320px) and (max-width: 641px) {
640
- .nhsuk-cbmi-classification-overweight, .nhsuk-cbmi-classification-healthy, .nhsuk-cbmi-classification-underweight {
641
- height: 24px;
644
+ .nhsuk-cbmi-axis-marker {
645
+ height: 29px;
642
646
  }
643
647
  }
644
648
 
645
- .nhsuk-cbmi-classification-underweight {
646
- z-index: 3;
647
- }
648
-
649
- .nhsuk-cbmi-classification-healthy {
650
- z-index: 2;
651
- }
652
-
653
- .nhsuk-cbmi-classification-overweight {
654
- z-index: 1;
649
+ .nhsuk-cbmi-axis-marker-label {
650
+ position: absolute;
651
+ bottom: -25px;
652
+ left: -10px;
653
+ width: 20px;
654
+ text-align: center;
655
655
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nhsuk-tools-chart-components-react",
3
- "version": "1.1.11",
3
+ "version": "1.1.13",
4
4
  "description": "",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/esm/index.js",