@guardian/interactive-component-library 0.1.0-alpha.24 → 0.1.0-alpha.26

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/dist/style.css CHANGED
@@ -299,8 +299,11 @@ button {
299
299
  .bg-color--dup {
300
300
  background-color: var(--dup) !important;
301
301
  }
302
- .bg-color--al {
303
- background-color: var(--al) !important;
302
+ .bg-color--alliance {
303
+ background-color: var(--alliance) !important;
304
+ }
305
+ .bg-color--alba {
306
+ background-color: var(--alba) !important;
304
307
  }
305
308
  .bg-color--uup {
306
309
  background-color: var(--uup) !important;
@@ -326,9 +329,6 @@ button {
326
329
  .bg-color--speaker {
327
330
  background-color: var(--speaker) !important;
328
331
  }
329
- .bg-color--tig {
330
- background-color: var(--tig) !important;
331
- }
332
332
  .bg-color--undeclared {
333
333
  background-color: var(--undeclared) !important;
334
334
  }
@@ -357,8 +357,11 @@ button {
357
357
  .fill-color--dup {
358
358
  fill: var(--dup) !important;
359
359
  }
360
- .fill-color--al {
361
- fill: var(--al) !important;
360
+ .fill-color--alliance {
361
+ fill: var(--alliance) !important;
362
+ }
363
+ .fill-color--alba {
364
+ fill: var(--alba) !important;
362
365
  }
363
366
  .fill-color--uup {
364
367
  fill: var(--uup) !important;
@@ -384,9 +387,6 @@ button {
384
387
  .fill-color--speaker {
385
388
  fill: var(--speaker) !important;
386
389
  }
387
- .fill-color--tig {
388
- fill: var(--tig) !important;
389
- }
390
390
  .fill-color--undeclared {
391
391
  fill: var(--undeclared) !important;
392
392
  }
@@ -415,8 +415,11 @@ button {
415
415
  .stop-color--dup {
416
416
  stop-color: var(--dup) !important;
417
417
  }
418
- .stop-color--al {
419
- stop-color: var(--al) !important;
418
+ .stop-color--alliance {
419
+ stop-color: var(--alliance) !important;
420
+ }
421
+ .stop-color--alba {
422
+ stop-color: var(--alba) !important;
420
423
  }
421
424
  .stop-color--uup {
422
425
  stop-color: var(--uup) !important;
@@ -442,9 +445,6 @@ button {
442
445
  .stop-color--speaker {
443
446
  stop-color: var(--speaker) !important;
444
447
  }
445
- .stop-color--tig {
446
- stop-color: var(--tig) !important;
447
- }
448
448
  .stop-color--undeclared {
449
449
  stop-color: var(--undeclared) !important;
450
450
  }
@@ -473,8 +473,11 @@ button {
473
473
  .stroke-color--dup {
474
474
  stroke: var(--dup) !important;
475
475
  }
476
- .stroke-color--al {
477
- stroke: var(--al) !important;
476
+ .stroke-color--alliance {
477
+ stroke: var(--alliance) !important;
478
+ }
479
+ .stroke-color--alba {
480
+ stroke: var(--alba) !important;
478
481
  }
479
482
  .stroke-color--uup {
480
483
  stroke: var(--uup) !important;
@@ -500,9 +503,6 @@ button {
500
503
  .stroke-color--speaker {
501
504
  stroke: var(--speaker) !important;
502
505
  }
503
- .stroke-color--tig {
504
- stroke: var(--tig) !important;
505
- }
506
506
  .stroke-color--undeclared {
507
507
  stroke: var(--undeclared) !important;
508
508
  }
@@ -531,8 +531,11 @@ button {
531
531
  .color--dup {
532
532
  color: var(--dup) !important;
533
533
  }
534
- .color--al {
535
- color: var(--al) !important;
534
+ .color--alliance {
535
+ color: var(--alliance) !important;
536
+ }
537
+ .color--alba {
538
+ color: var(--alba) !important;
536
539
  }
537
540
  .color--uup {
538
541
  color: var(--uup) !important;
@@ -558,9 +561,6 @@ button {
558
561
  .color--speaker {
559
562
  color: var(--speaker) !important;
560
563
  }
561
- .color--tig {
562
- color: var(--tig) !important;
563
- }
564
564
  .color--undeclared {
565
565
  color: var(--undeclared) !important;
566
566
  }
@@ -586,8 +586,11 @@ button {
586
586
  .border-color--dup {
587
587
  border-color: var(--dup) !important;
588
588
  }
589
- .border-color--al {
590
- border-color: var(--al) !important;
589
+ .border-color--alliance {
590
+ border-color: var(--alliance) !important;
591
+ }
592
+ .border-color--alba {
593
+ border-color: var(--alba) !important;
591
594
  }
592
595
  .border-color--uup {
593
596
  border-color: var(--uup) !important;
@@ -613,9 +616,6 @@ button {
613
616
  .border-color--speaker {
614
617
  border-color: var(--speaker) !important;
615
618
  }
616
- .border-color--tig {
617
- border-color: var(--tig) !important;
618
- }
619
619
  .border-color--undeclared {
620
620
  border-color: var(--undeclared) !important;
621
621
  }
@@ -644,8 +644,11 @@ button {
644
644
  .before-color--dup:before {
645
645
  background-color: var(--dup) !important;
646
646
  }
647
- .before-color--al:before {
648
- background-color: var(--al) !important;
647
+ .before-color--alliance:before {
648
+ background-color: var(--alliance) !important;
649
+ }
650
+ .before-color--alba:before {
651
+ background-color: var(--alba) !important;
649
652
  }
650
653
  .before-color--uup:before {
651
654
  background-color: var(--uup) !important;
@@ -671,9 +674,6 @@ button {
671
674
  .before-color--speaker:before {
672
675
  background-color: var(--speaker) !important;
673
676
  }
674
- .before-color--tig:before {
675
- background-color: var(--tig) !important;
676
- }
677
677
  .before-color--undeclared:before {
678
678
  background-color: var(--undeclared) !important;
679
679
  }
@@ -750,6 +750,12 @@ button {
750
750
  .bg-color--undeclared {
751
751
  background-color: var(--undeclared) !important;
752
752
  }
753
+ .bg-color--declared {
754
+ background-color: var(--declared) !important;
755
+ }
756
+ .bg-color--new-group-01 {
757
+ background-color: var(--new-group-01) !important;
758
+ }
753
759
  /* FILL ----------------------------------------------------------- */
754
760
  .fill-color--left {
755
761
  fill: var(--left) !important;
@@ -781,6 +787,9 @@ button {
781
787
  .fill-color--undeclared {
782
788
  fill: var(--undeclared) !important;
783
789
  }
790
+ .fill-color--new-group-01 {
791
+ fill: var(--new-group-01) !important;
792
+ }
784
793
  /* STROKE-COLOR --------------------------------------------------- */
785
794
  .stroke-color--left {
786
795
  stroke: var(--left) !important;
@@ -812,6 +821,9 @@ button {
812
821
  .stroke-color--undeclared {
813
822
  stroke: var(--undeclared) !important;
814
823
  }
824
+ .stroke-color--new-group-01 {
825
+ stroke: var(--new-group-01) !important;
826
+ }
815
827
  /* COLOR ----------------------------------------------------------- */
816
828
  .color--left {
817
829
  color: var(--left) !important;
@@ -843,6 +855,9 @@ button {
843
855
  .color--undeclared {
844
856
  color: var(--undeclared) !important;
845
857
  }
858
+ .color--new-group-01 {
859
+ color: var(--new-group-01) !important;
860
+ }
846
861
  /* BORDER-COLOR ----------------------------------------------------- */
847
862
  .border-color--left {
848
863
  border-color: var(--left) !important;
@@ -874,6 +889,9 @@ button {
874
889
  .border-color--undeclared {
875
890
  border-color: var(--undeclared) !important;
876
891
  }
892
+ .border-color--new-group-01 {
893
+ border-color: var(--undeclared) !important;
894
+ }
877
895
  /* BEFORE-ELEMENT-COLOR ----------------------------------------------------- */
878
896
  .before-color--left:before {
879
897
  background-color: var(--left) !important;
@@ -905,6 +923,9 @@ button {
905
923
  .before-color--undeclared:before {
906
924
  background-color: var(--undeclared) !important;
907
925
  }
926
+ .before-color--new-group-01:before {
927
+ background-color: var(--new-group-01) !important;
928
+ }
908
929
  body {
909
930
  --border-divider-color: #DCDCDC;
910
931
  --primary-text-color: #121212;
@@ -934,49 +955,51 @@ body {
934
955
  --news-grey-04: #BABABA;
935
956
  --news-grey-05: #DCDCDC;
936
957
  --news-grey-06: #F3F3F3;
937
- --con: #0077B6;
938
- --lab: #C70000;
939
- --libdem: #E05E00;
940
- --green: #39A566;
941
- --ukip: #BB3B80;
942
- --snp: #F5DC00;
943
- --dup: #8B0000;
944
- --al: #C9BB19;
958
+ --con: #0077b6;
959
+ --lab: #c70000;
960
+ --libdem: #e05e00;
961
+ --green: #39a566;
962
+ --ukip: #bb3b80;
963
+ --snp: #f5dc00;
964
+ --dup: #8b0000;
965
+ --alliance: #c9bb19;
966
+ --alba: #2f3192;
945
967
  --uup: #004975;
946
- --sdlp: #23B4A9;
947
- --pc: #135E58;
948
- --sf: #22874D;
949
- --reform: #3DBBE2;
968
+ --sdlp: #23b4a9;
969
+ --pc: #135e58;
970
+ --sf: #22874d;
971
+ --reform: #3dbbe2;
950
972
  --ind: #333333;
951
973
  --other: #848484;
974
+ --speaker: #848484;
952
975
  --noc: #c8c8c8;
953
- --speaker: #767676;
954
- --tig: #333;
955
- --undeclared: #E7E7E7;
956
- --left: #8B0000;
976
+ --undeclared: #e7e7e7;
977
+ --left: #8b0000;
957
978
  --left-01: #e3b0a3;
958
979
  --left-02: #bc634f;
959
- --sd: #C70000;
960
- --sd-01:#fbb8a6;
961
- --sd-02:#e77054;
962
- --greenefa: #39A566;
980
+ --sd: #c70000;
981
+ --sd-01: #fbb8a6;
982
+ --sd-02: #e77054;
983
+ --greenefa: #39a566;
963
984
  --greenefa-01: #c1e1ca;
964
985
  --greenefa-02: #82c397;
965
- --renew: #FF7F0F;
986
+ --renew: #ff7f0f;
966
987
  --renew-01: #ffd8ba;
967
988
  --renew-02: #ffaf71;
968
- --epp: #3dBBE2;
989
+ --epp: #3dbbe2;
969
990
  --epp-01: #cae8f5;
970
991
  --epp-02: #8fd1ec;
971
- --ecr: #0079B7;
992
+ --ecr: #0079b7;
972
993
  --ecr-01: #bdcfe7;
973
994
  --ecr-02: #77a2ce;
974
- --id:#DC559D;
975
- --id-01:#edc0d3;
976
- --id-02:#d681a9;
995
+ --id: #dc559d;
996
+ --id-01: #edc0d3;
997
+ --id-02: #d681a9;
977
998
  --ni: #606060;
978
999
  --other: #a0a0a0;
979
1000
  --undeclared: #ededed;
1001
+ --declared: #fff;
1002
+ --new-group-01: #333333;
980
1003
  }
981
1004
  @media (prefers-color-scheme: dark) {
982
1005
  body.ios,
@@ -1010,46 +1033,49 @@ body {
1010
1033
  --news-grey-06: #383838;
1011
1034
  --con: #009ae1;
1012
1035
  --lab: #dc2e1c;
1013
- --libdem: #FF7F0F;
1014
- --green: #39A566;
1015
- --ukip: #DC559D;
1016
- --snp: #F5DC00;
1017
- --dup: #B23C2D;
1018
- --al: #ab9f00;
1036
+ --libdem: #ff7f0f;
1037
+ --green: #39a566;
1038
+ --ukip: #dc559d;
1039
+ --snp: #f5dc00;
1040
+ --alba: #3c3eb9;
1041
+ --dup: #b23c2d;
1042
+ --alliance: #ab9f00;
1019
1043
  --uup: #346896;
1020
1044
  --sdlp: #28b8ad;
1021
1045
  --pc: #37716b;
1022
- --sf: #22874D;
1023
- --reform: #3DBBE2;
1024
- --ind: #A1A1A1;
1046
+ --sf: #22874d;
1047
+ --reform: #3dbbe2;
1048
+ --ind: #a1a1a1;
1049
+ --noc: #333333;
1025
1050
  --other: #707070;
1026
1051
  --speaker: #707070;
1027
- --tig: #494949;
1028
1052
  --undeclared: #494949;
1029
- --left: #8B0000;
1053
+ --left: #8b0000;
1030
1054
  --left-01: #e3b0a3;
1031
1055
  --left-02: #bc634f;
1032
- --sd: #C70000;
1033
- --sd-01:#fbb8a6;
1034
- --sd-02:#e77054;
1035
- --greenefa: #39A566;
1056
+ --sd: #c70000;
1057
+ --sd-01: #fbb8a6;
1058
+ --sd-02: #e77054;
1059
+ --greenefa: #39a566;
1036
1060
  --greenefa-01: #c1e1ca;
1037
1061
  --greenefa-02: #82c397;
1038
- --renew: #FF7F0F;
1062
+ --renew: #ff7f0f;
1039
1063
  --renew-01: #ffd8ba;
1040
1064
  --renew-02: #ffaf71;
1041
- --epp: #3dBBE2;
1065
+ --epp: #3dbbe2;
1042
1066
  --epp-01: #cae8f5;
1043
1067
  --epp-02: #8fd1ec;
1044
- --ecr: #0079B7;
1068
+ --ecr: #0079b7;
1045
1069
  --ecr-01: #bdcfe7;
1046
1070
  --ecr-02: #77a2ce;
1047
- --id:#DC559D;
1048
- --id-01:#edc0d3;
1049
- --id-02:#d681a9;
1050
- --ni: #A1A1A1;
1071
+ --id: #dc559d;
1072
+ --id-01: #edc0d3;
1073
+ --id-02: #d681a9;
1074
+ --ni: #a1a1a1;
1051
1075
  --other: #a0a0a0;
1052
1076
  --undeclared: #ededed;
1077
+ --declared: #bababa;
1078
+ --new-group-01: #cccccc;
1053
1079
  }
1054
1080
  }._svg_b5io0_1 {
1055
1081
  display: block;
@@ -2193,12 +2219,12 @@ body.android {
2193
2219
  transform: translateY(0);
2194
2220
  }
2195
2221
  }
2196
- ._container_iozsb_1 {
2222
+ ._container_1enis_1 {
2197
2223
  position: relative;
2198
2224
  display: inline-block;
2199
2225
  }
2200
2226
 
2201
- ._button_iozsb_6 {
2227
+ ._button_1enis_6 {
2202
2228
  display: flex;
2203
2229
  flex-direction: row;
2204
2230
  align-items: center;
@@ -2209,24 +2235,24 @@ body.android {
2209
2235
  padding: var(--space-2) var(--space-3);
2210
2236
  }
2211
2237
 
2212
- ._button_iozsb_6:hover:enabled {
2238
+ ._button_1enis_6:hover:enabled {
2213
2239
  background-color: var(--news-grey-05);
2214
2240
  cursor: pointer;
2215
2241
  }
2216
2242
 
2217
- ._icon_iozsb_22 {
2243
+ ._icon_1enis_22 {
2218
2244
  width: 17px;
2219
2245
  height: 17px;
2220
2246
  }
2221
2247
 
2222
- ._title_iozsb_27 {
2248
+ ._title_1enis_27 {
2223
2249
  color: var(--primary-text-color);
2224
2250
  font-family: var(--text-sans);
2225
2251
  font-size: var(--sans-medium);
2226
2252
  line-height: var(--sans-line-height);
2227
2253
  }
2228
2254
 
2229
- ._popout_iozsb_34 {
2255
+ ._popout_1enis_34 {
2230
2256
  min-width: 100%;
2231
2257
  background-color: var(--secondary-bg-color);
2232
2258
 
@@ -2243,14 +2269,21 @@ body.android {
2243
2269
  gap: var(--space-2);
2244
2270
  }
2245
2271
 
2246
- ._hint_iozsb_51 {
2272
+ ._hint_1enis_51 {
2247
2273
  color: var(--secondary-text-color);
2248
2274
  font-family: var(--text-sans);
2249
2275
  font-size: var(--sans-xsmall);
2250
2276
  line-height: var(--sans-line-height);
2251
2277
  }
2252
2278
 
2253
- ._option_iozsb_58 {
2279
+ ._groupHeader_1enis_58 {
2280
+ color: var(--primary-text-color);
2281
+ font-family: var(--text-sans);
2282
+ font-size: var(--sans-xsmall);
2283
+ line-height: var(--sans-line-height);
2284
+ }
2285
+
2286
+ ._option_1enis_65 {
2254
2287
  position: relative;
2255
2288
  display: flex;
2256
2289
  flex-direction: row;
@@ -2266,17 +2299,17 @@ body.android {
2266
2299
  background-color: var(--primary-bg-color);
2267
2300
  }
2268
2301
 
2269
- ._option_iozsb_58:hover:enabled {
2302
+ ._option_1enis_65:hover:enabled {
2270
2303
  background-color: var(--news-grey-05);
2271
2304
  cursor: pointer;
2272
2305
  }
2273
2306
 
2274
- ._optionIcon_iozsb_79 {
2307
+ ._optionIcon_1enis_86 {
2275
2308
  width: 23px;
2276
2309
  height: 23px;
2277
2310
  }
2278
2311
 
2279
- ._optionTitle_iozsb_84 {
2312
+ ._optionTitle_1enis_91 {
2280
2313
  color: var(--primary-text-color);
2281
2314
  font-family: var(--text-sans);
2282
2315
  font-size: var(--sans-xsmall);
@@ -2284,22 +2317,23 @@ body.android {
2284
2317
  font-weight: 700;
2285
2318
  }
2286
2319
 
2287
- ._optionDescription_iozsb_92 {
2320
+ ._optionDescription_1enis_99 {
2288
2321
  color: var(--primary-text-color);
2289
2322
  font-family: var(--text-sans);
2290
2323
  font-size: var(--sans-xsmall);
2291
2324
  line-height: var(--sans-line-height);
2292
2325
  }
2293
2326
 
2294
- ._checkmark_iozsb_99 {
2327
+ ._checkmark_1enis_106 {
2295
2328
  position: absolute;
2296
2329
  top: 4px;
2297
2330
  right: 6px;
2298
2331
  }
2299
2332
 
2300
- ._checkmarkPath_iozsb_105 {
2333
+ ._checkmarkPath_1enis_112 {
2301
2334
  fill: var(--primary-text-color);
2302
- }body {
2335
+ }
2336
+ body {
2303
2337
  --top-inset: 0;
2304
2338
  }
2305
2339
 
@@ -2307,63 +2341,64 @@ body.android {
2307
2341
  --top-inset: 58px;
2308
2342
  }
2309
2343
 
2310
- ._coalitionsWrapper_1ahqy_9 {
2344
+ ._coalitionsWrapper_4egbd_9 {
2311
2345
  max-width: 100%;
2312
2346
  position: relative;
2313
2347
  }
2314
2348
 
2315
- ._coalitionsContainer_1ahqy_14 {
2349
+ ._coalitionsContainer_4egbd_14 {
2316
2350
  padding-top: 60px;
2317
2351
  }
2318
2352
  @media (min-width: 46.25em) {
2319
- ._coalitionsContainer_1ahqy_14 {
2353
+ ._coalitionsContainer_4egbd_14 {
2320
2354
  padding-top: 0px;
2321
2355
  }
2322
2356
  }
2323
2357
 
2324
- ._coalition_1ahqy_9 {
2325
- margin-bottom: var(--space-4);
2358
+ ._coalition_4egbd_9 {
2359
+ margin-bottom: var(--space-0);
2326
2360
  }
2327
2361
 
2328
- ._title_1ahqy_27,
2329
- ._description_1ahqy_28 {
2362
+ ._title_4egbd_27,
2363
+ ._description_4egbd_28 {
2330
2364
  font-family: var(--text-sans);
2331
2365
  font-size: var(--sans-small);
2332
2366
  line-height: var(--sans-line-height);
2333
2367
  color: var(--primary-text-color);
2334
2368
  }
2335
2369
 
2336
- ._title_1ahqy_27 {
2370
+ ._title_4egbd_27 {
2337
2371
  font-weight: 700;
2338
2372
  }
2339
2373
 
2340
- ._description_1ahqy_28 {
2374
+ ._description_4egbd_28 {
2341
2375
  margin-bottom: var(--space-1);
2342
2376
  }
2343
2377
 
2344
- ._thresholdText_1ahqy_43 {
2378
+ ._thresholdText_4egbd_43 {
2345
2379
  font-family: var(--text-sans);
2346
2380
  font-size: var(--sans-small);
2347
2381
  line-height: var(--sans-line-height);
2348
2382
  color: var(--primary-text-color);
2349
2383
  max-width: 150px;
2350
2384
  }
2351
- ._thresholdText_1ahqy_43 span {
2385
+ ._thresholdText_4egbd_43 span {
2352
2386
  display: block;
2353
2387
  }
2354
2388
 
2355
- ._thresholdTextBold_1ahqy_54 {
2389
+ ._thresholdTextBold_4egbd_54 {
2356
2390
  font-weight: 700;
2357
2391
  margin-bottom: var(--space-1);
2358
2392
  font-size: var(--sans-small);
2359
2393
  line-height: var(--sans-line-height);
2360
2394
  }
2361
2395
 
2362
- ._thresholdDot_1ahqy_61, ._thresholdLine_1ahqy_61 {
2396
+ ._thresholdDot_4egbd_61,
2397
+ ._thresholdLine_4egbd_62 {
2363
2398
  background: var(--primary-text-color);
2364
2399
  }
2365
2400
 
2366
- ._thresholdDot_1ahqy_61 {
2401
+ ._thresholdDot_4egbd_61 {
2367
2402
  border-radius: 50px;
2368
2403
  }body {
2369
2404
  --top-inset: 0;
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@guardian/interactive-component-library",
3
3
  "private": false,
4
- "version": "v0.1.0-alpha.24",
4
+ "version": "v0.1.0-alpha.26",
5
5
  "packageManager": "pnpm@8.4.0",
6
6
  "repository": {
7
7
  "type": "git",
8
- "url": "https://github.com/guardian/interactive-component-library"
8
+ "url": "git+https://github.com/guardian/interactive-component-library.git"
9
9
  },
10
10
  "type": "module",
11
11
  "files": [