@guardian/interactive-component-library 0.1.0-alpha.30 → 0.1.0-alpha.32

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
@@ -335,6 +335,9 @@ button {
335
335
  .bg-color--noc {
336
336
  background-color: var(--noc) !important;
337
337
  }
338
+ .bg-color--wpb {
339
+ background-color: var(--wpb) !important;
340
+ }
338
341
  /* BACKGROUND-COLOR 2 -------------------------------------------- */
339
342
  .bg-color--con-2 {
340
343
  background-color: var(--con-2) !important;
@@ -390,6 +393,9 @@ button {
390
393
  .bg-color--undeclared-2 {
391
394
  background-color: var(--undeclared-2) !important;
392
395
  }
396
+ .bg-color--wpb-2 {
397
+ background-color: var(--wpb) !important;
398
+ }
393
399
  /* FILL ----------------------------------------------------------- */
394
400
  .fill-color--con {
395
401
  fill: var(--con) !important;
@@ -448,6 +454,9 @@ button {
448
454
  .fill-color--noc {
449
455
  fill: var(--noc) !important;
450
456
  }
457
+ .fill-color--wpb {
458
+ fill: var(--wpb) !important;
459
+ }
451
460
  /* FILL 2 ----------------------------------------------------------- */
452
461
  .fill-color--con-2 {
453
462
  fill: var(--con-2) !important;
@@ -503,6 +512,9 @@ button {
503
512
  .fill-color--undeclared-2 {
504
513
  fill: var(--undeclared-2) !important;
505
514
  }
515
+ .fill-color--wpb-2 {
516
+ fill: var(--wpb-2) !important;
517
+ }
506
518
  /* STOP ----------------------------------------------------------- */
507
519
  .stop-color--con {
508
520
  stop-color: var(--con) !important;
@@ -561,6 +573,9 @@ button {
561
573
  .stop-color--noc {
562
574
  stop-color: var(--noc) !important;
563
575
  }
576
+ .stop-color--wpb {
577
+ stop-color: var(--wpb) !important;
578
+ }
564
579
  /* STROKE-COLOR --------------------------------------------------- */
565
580
  .stroke-color--con {
566
581
  stroke: var(--con) !important;
@@ -619,6 +634,9 @@ button {
619
634
  .stroke-color--noc {
620
635
  stroke: var(--noc) !important;
621
636
  }
637
+ .stroke-color--wpb {
638
+ stroke: var(--wpb) !important;
639
+ }
622
640
  /* COLOR ----------------------------------------------------------- */
623
641
  .color--con {
624
642
  color: var(--con) !important;
@@ -674,6 +692,9 @@ button {
674
692
  .color--undeclared {
675
693
  color: var(--undeclared) !important;
676
694
  }
695
+ .color--wpb {
696
+ color: var(--wpb) !important;
697
+ }
677
698
  /* BORDER-COLOR ----------------------------------------------------- */
678
699
  .border-color--con {
679
700
  border-color: var(--con) !important;
@@ -729,6 +750,9 @@ button {
729
750
  .border-color--undeclared {
730
751
  border-color: var(--undeclared) !important;
731
752
  }
753
+ .border-color--wpb {
754
+ border-color: var(--wpb) !important;
755
+ }
732
756
  /* BEFORE-ELEMENT-COLOR ----------------------------------------------------- */
733
757
  .before-color--con:before {
734
758
  background-color: var(--con) !important;
@@ -787,6 +811,9 @@ button {
787
811
  .before-color--undeclared:before {
788
812
  background-color: var(--undeclared) !important;
789
813
  }
814
+ .before-color--wpb:before {
815
+ background-color: var(--wpb) !important;
816
+ }
790
817
  /* BACKGROUND-COLOR -------------------------------------------- */
791
818
  .bg-color--left {
792
819
  background-color: var(--left) !important;
@@ -1083,6 +1110,7 @@ body {
1083
1110
  --other: #848484;
1084
1111
  --speaker: #848484;
1085
1112
  --noc: #c8c8c8;
1113
+ --wpb: #7d0068;
1086
1114
  --undeclared: #e7e7e7;
1087
1115
  --con-2: #d4edff;
1088
1116
  --lab-2: #ffdbd4;
@@ -1101,6 +1129,7 @@ body {
1101
1129
  --ind-2: #e7e7e7;
1102
1130
  --other-2: #c8c8c8;
1103
1131
  --speaker-2: #c8c8c8;
1132
+ --wpb-2: #d8b2d1;
1104
1133
  --undeclared-2: #e7e7e7;
1105
1134
  --left: #8b0000;
1106
1135
  --left-01: #e3b0a3;
@@ -1177,6 +1206,7 @@ body {
1177
1206
  --noc: #333333;
1178
1207
  --other: #707070;
1179
1208
  --speaker: #707070;
1209
+ --wpb: #8c136e;
1180
1210
  --undeclared: #494949;
1181
1211
  --con-2: #244057;
1182
1212
  --lab-2: #592318;
@@ -1195,6 +1225,7 @@ body {
1195
1225
  --ind-2: #383838;
1196
1226
  --other-2: #333333;
1197
1227
  --speaker-2: #333333;
1228
+ --wpb-2: #571644;
1198
1229
  --undeclared-2: #e7e7e7;
1199
1230
  --left: #8b0000;
1200
1231
  --left-01: #e3b0a3;
@@ -1266,17 +1297,23 @@ body {
1266
1297
  line-height: var(--sans-line-height);
1267
1298
  color: var(--primary-text-color);
1268
1299
  }
1269
- ._bar_bf839_1 {
1300
+ ._bar_1jxh9_1 {
1270
1301
  fill: var(--undeclared);
1271
1302
  }
1272
1303
 
1273
- ._label_bf839_5 {
1304
+ ._label_1jxh9_5 {
1274
1305
  font-family: var(--text-sans);
1275
1306
  font-size: var(--sans-xsmall);
1276
1307
  line-height: var(--sans-line-height);
1277
1308
  }
1278
1309
 
1279
- ._backgroundRect_bf839_11 {
1310
+ ._labelStroke_1jxh9_11 {
1311
+ stroke: var(--primary-bg-color);
1312
+ stroke-width: 3px;
1313
+ stroke-linejoin: round;
1314
+ }
1315
+
1316
+ ._backgroundRect_1jxh9_17 {
1280
1317
  fill: var(--undeclared);
1281
1318
  }
1282
1319
  #gv-gradient-defs {
@@ -1865,17 +1902,17 @@ body.android {
1865
1902
  --top-inset: 58px;
1866
1903
  }
1867
1904
 
1868
- ._borderTop_lw99b_9::before {
1905
+ ._borderTop_1b1s0_9::before {
1869
1906
  border-top: 1px solid var(--border-divider-color);
1870
1907
  }
1871
1908
 
1872
- ._section_lw99b_13 {
1909
+ ._section_1b1s0_13 {
1873
1910
  position: relative;
1874
1911
  z-index: 0;
1875
1912
  margin-bottom: var(--space-8);
1876
1913
  }
1877
1914
 
1878
- ._section_lw99b_13::before {
1915
+ ._section_1b1s0_13::before {
1879
1916
  display: block;
1880
1917
  content: "";
1881
1918
  position: absolute;
@@ -1888,31 +1925,31 @@ body.android {
1888
1925
  z-index: -1;
1889
1926
  }
1890
1927
  @media (min-width: 30em) {
1891
- ._section_lw99b_13::before {
1928
+ ._section_1b1s0_13::before {
1892
1929
  transform: translate(-20px);
1893
1930
  width: calc(100% + 40px);
1894
1931
  }
1895
1932
  }
1896
1933
  @media (min-width: 46.25em) {
1897
- ._section_lw99b_13::before {
1934
+ ._section_1b1s0_13::before {
1898
1935
  width: calc(100% + 60px);
1899
1936
  }
1900
1937
  }
1901
1938
  @media (min-width: 71.25em) {
1902
- ._section_lw99b_13::before {
1939
+ ._section_1b1s0_13::before {
1903
1940
  transform: translate(-180px);
1904
1941
  width: calc(100% + 200px);
1905
1942
  background-color: transparent;
1906
1943
  }
1907
1944
  }
1908
1945
  @media (min-width: 81.25em) {
1909
- ._section_lw99b_13::before {
1946
+ ._section_1b1s0_13::before {
1910
1947
  transform: translate(-260px);
1911
1948
  width: calc(100% + 280px);
1912
1949
  }
1913
1950
  }
1914
1951
 
1915
- ._section_lw99b_13._fullWidth_lw99b_56 {
1952
+ ._section_1b1s0_13._fullWidth_1b1s0_56 {
1916
1953
  transform: translate(-10px);
1917
1954
  width: calc(100% + 20px);
1918
1955
  margin: 0;
@@ -1920,45 +1957,45 @@ body.android {
1920
1957
  background-color: var(--background-color);
1921
1958
  }
1922
1959
  @media (min-width: 30em) {
1923
- ._section_lw99b_13._fullWidth_lw99b_56 {
1960
+ ._section_1b1s0_13._fullWidth_1b1s0_56 {
1924
1961
  transform: translate(-20px);
1925
1962
  width: calc(100% + 40px);
1926
1963
  }
1927
1964
  }
1928
1965
  @media (min-width: 46.25em) {
1929
- ._section_lw99b_13._fullWidth_lw99b_56 {
1966
+ ._section_1b1s0_13._fullWidth_1b1s0_56 {
1930
1967
  transform: translate(-20px);
1931
1968
  width: calc(100% + 60px);
1932
1969
  }
1933
1970
  }
1934
1971
  @media (min-width: 71.25em) {
1935
- ._section_lw99b_13._fullWidth_lw99b_56 {
1972
+ ._section_1b1s0_13._fullWidth_1b1s0_56 {
1936
1973
  transform: translate(-180px);
1937
1974
  width: calc(100% + 200px);
1938
1975
  }
1939
1976
  }
1940
1977
  @media (min-width: 81.25em) {
1941
- ._section_lw99b_13._fullWidth_lw99b_56 {
1978
+ ._section_1b1s0_13._fullWidth_1b1s0_56 {
1942
1979
  transform: translate(-260px);
1943
1980
  width: calc(100% + 280px);
1944
1981
  }
1945
1982
  }
1946
1983
 
1947
- ._section_lw99b_13._fullWidth_lw99b_56::before {
1984
+ ._section_1b1s0_13._fullWidth_1b1s0_56::before {
1948
1985
  transform: none;
1949
1986
  width: 100%;
1950
1987
  height: 100%;
1951
1988
  background-color: transparent;
1952
1989
  }
1953
1990
 
1954
- ._header_lw99b_95 {
1991
+ ._header_1b1s0_95 {
1955
1992
  color: var(--primary-text-color);
1956
1993
  padding-top: var(--space-2);
1957
1994
  margin-bottom: var(--space-5);
1958
1995
  }
1959
1996
 
1960
1997
  @media (min-width: 71.25em) {
1961
- body:not(.ios, .android) ._header_lw99b_95 {
1998
+ body:not(.ios, .android) ._header_1b1s0_95 {
1962
1999
  position: absolute;
1963
2000
  max-width: 160px;
1964
2001
  transform: translateX(-170px);
@@ -1966,13 +2003,13 @@ body.android {
1966
2003
  }
1967
2004
  }
1968
2005
  @media (min-width: 81.25em) {
1969
- body:not(.ios, .android) ._header_lw99b_95 {
2006
+ body:not(.ios, .android) ._header_1b1s0_95 {
1970
2007
  max-width: 220px;
1971
2008
  transform: translateX(-250px);
1972
2009
  }
1973
2010
  }
1974
2011
 
1975
- body ._header_lw99b_95._fullWidth_lw99b_56 {
2012
+ body ._header_1b1s0_95._fullWidth_1b1s0_56 {
1976
2013
  position: absolute;
1977
2014
  top: 0;
1978
2015
  left: 0;
@@ -1983,21 +2020,22 @@ body ._header_lw99b_95._fullWidth_lw99b_56 {
1983
2020
  max-width: 100%;
1984
2021
  }
1985
2022
  @media (min-width: 71.25em) {
1986
- body ._header_lw99b_95._fullWidth_lw99b_56 {
2023
+ body ._header_1b1s0_95._fullWidth_1b1s0_56 {
1987
2024
  margin-bottom: 0;
1988
2025
  }
1989
2026
  }
1990
2027
 
1991
- ._content_lw99b_132 {
2028
+ ._content_1b1s0_132 {
1992
2029
  position: relative;
1993
2030
  padding-top: 0;
2031
+ z-index: 0;
1994
2032
  color: var(--primary-text-color);
1995
2033
  }
1996
2034
  @media (min-width: 71.25em) {
1997
- ._content_lw99b_132 {
2035
+ ._content_1b1s0_132 {
1998
2036
  padding-top: var(--space-2);
1999
2037
  }
2000
- ._content_lw99b_132::before {
2038
+ ._content_1b1s0_132::before {
2001
2039
  content: "";
2002
2040
  position: absolute;
2003
2041
  top: 0;
@@ -2010,11 +2048,11 @@ body ._header_lw99b_95._fullWidth_lw99b_56 {
2010
2048
  }
2011
2049
  }
2012
2050
 
2013
- ._content_lw99b_132._fullWidth_lw99b_56 {
2051
+ ._content_1b1s0_132._fullWidth_1b1s0_56 {
2014
2052
  padding-top: 0;
2015
2053
  }
2016
2054
 
2017
- ._content_lw99b_132._fullWidth_lw99b_56::before {
2055
+ ._content_1b1s0_132._fullWidth_1b1s0_56::before {
2018
2056
  display: none;
2019
2057
  }._text_lo5h3_1 {
2020
2058
  font-family: var(--text-sans);
@@ -2119,11 +2157,11 @@ body ._header_lw99b_95._fullWidth_lw99b_56 {
2119
2157
  ._path_1dms8_8 {
2120
2158
  pointer-events: none;
2121
2159
  }
2122
- ._searchContainer_1883t_1 {
2160
+ ._searchContainer_116es_1 {
2123
2161
  position: relative;
2124
2162
  }
2125
2163
 
2126
- ._input_1883t_5 {
2164
+ ._input_116es_5 {
2127
2165
  width: 100%;
2128
2166
  color: var(--primary-text-color);
2129
2167
  font-family: var(--text-sans);
@@ -2141,7 +2179,11 @@ body ._header_lw99b_95._fullWidth_lw99b_56 {
2141
2179
  box-sizing: border-box;
2142
2180
  }
2143
2181
 
2144
- ._searchIcon_1883t_23 {
2182
+ input:focus {
2183
+ border: 1px solid var(--primary-text-color);
2184
+ }
2185
+
2186
+ ._searchIcon_116es_27 {
2145
2187
  position: absolute;
2146
2188
  top: 11px;
2147
2189
  left: 12px;
@@ -2150,25 +2192,28 @@ body ._header_lw99b_95._fullWidth_lw99b_56 {
2150
2192
  pointer-events: none;
2151
2193
  }
2152
2194
 
2153
- ._clearButton_1883t_32 {
2195
+ ._clearButton_116es_36 {
2154
2196
  position: absolute;
2155
2197
  top: 3px;
2156
2198
  right: 4px;
2157
2199
  }
2158
2200
 
2159
- ._suggestions_1883t_38 {
2201
+ ._suggestions_116es_42 {
2160
2202
  position: absolute;
2161
2203
  width: 100%;
2162
- z-index: 1;
2204
+ margin-top: var(--space-2);
2205
+ z-index: 100;
2163
2206
 
2164
2207
  background-color: var(--primary-bg-color);
2165
2208
  border: 1px solid var(--border-divider-color);
2166
2209
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
2210
+ border-radius: 8px;
2211
+ overflow: clip;
2167
2212
 
2168
2213
  pointer-events: all;
2169
2214
  }
2170
2215
 
2171
- ._suggestion_1883t_38 {
2216
+ ._suggestion_116es_42 {
2172
2217
  cursor: pointer;
2173
2218
  padding: 6px 8px;
2174
2219
  background-color: var(--primary-bg-color);
@@ -2179,11 +2224,11 @@ body ._header_lw99b_95._fullWidth_lw99b_56 {
2179
2224
  line-height: var(--sans-line-height);
2180
2225
  }
2181
2226
 
2182
- ._selected_1883t_61 {
2227
+ ._selected_116es_68 {
2183
2228
  background-color: var(--secondary-bg-color);
2184
2229
  }
2185
2230
 
2186
- ._highlighted_1883t_65 {
2231
+ ._highlighted_116es_72 {
2187
2232
  color: var(--highlighted-text-color);
2188
2233
  background-color: var(--highlight-color);
2189
2234
  }
@@ -2572,21 +2617,19 @@ body.android {
2572
2617
  ._button_1qhlz_7:hover:enabled {
2573
2618
  background-color: var(--news-grey-05);
2574
2619
  }
2575
- ._container_aj5oa_1 {
2620
+ ._container_1ta61_1 {
2576
2621
  width: 100%;
2577
2622
  height: 100%;
2578
2623
  position: relative;
2579
-
2580
- border: 1px solid var(--border-divider-color);
2581
2624
  }
2582
2625
 
2583
- ._svg_aj5oa_9 {
2626
+ ._svg_1ta61_7 {
2584
2627
  fill: none;
2585
2628
  stroke: #121212;
2586
2629
  stroke-width: 1;
2587
2630
  }
2588
2631
 
2589
- ._controls_aj5oa_15 {
2632
+ ._controls_1ta61_13 {
2590
2633
  position: absolute;
2591
2634
  top: 0;
2592
2635
  left: 0;
@@ -2594,43 +2637,11 @@ body.android {
2594
2637
  height: 100%;
2595
2638
  }
2596
2639
 
2597
- ._zoomControl_aj5oa_23 {
2640
+ ._zoomControl_1ta61_21 {
2598
2641
  position: absolute;
2599
2642
  top: 0;
2600
2643
  right: 0;
2601
2644
  }
2602
- ._zoomControl_13wd1_1 {
2603
- display: inline-flex;
2604
- flex-direction: column;
2605
- gap: var(--space-2);
2606
- }
2607
-
2608
- ._button_13wd1_7 {
2609
- width: 44px;
2610
- height: 44px;
2611
- margin: 0;
2612
- padding: 0;
2613
-
2614
- border: 1px solid var(--border-divider-color);
2615
- border-radius: 999px;
2616
-
2617
- background-color: var(--primary-bg-color);
2618
-
2619
- display: flex;
2620
- justify-content: center;
2621
- align-items: center;
2622
-
2623
- cursor: pointer;
2624
- }
2625
-
2626
- ._button_13wd1_7:hover:enabled {
2627
- background-color: var(--news-grey-05);
2628
- }
2629
-
2630
- ._button_13wd1_7:disabled {
2631
- cursor: auto;
2632
- background-color: var(--tertiary-bg-color);
2633
- }
2634
2645
  body {
2635
2646
  --top-inset: 0;
2636
2647
  }
@@ -2639,13 +2650,13 @@ body.android {
2639
2650
  --top-inset: 58px;
2640
2651
  }
2641
2652
 
2642
- ._mapContainer_aknz0_9 {
2653
+ ._mapContainer_y5eeh_9 {
2643
2654
  position: relative;
2644
2655
  width: 100%;
2645
2656
  height: 100%;
2646
2657
  }
2647
2658
 
2648
- ._helpTextContainer_aknz0_15 {
2659
+ ._helpTextContainer_y5eeh_15 {
2649
2660
  position: absolute;
2650
2661
  width: 100%;
2651
2662
  height: 100%;
@@ -2659,7 +2670,7 @@ body.android {
2659
2670
  transition: opacity 0.2s linear;
2660
2671
  }
2661
2672
 
2662
- ._helpText_aknz0_15 {
2673
+ ._helpText_y5eeh_15 {
2663
2674
  margin-top: var(--space-5);
2664
2675
  font-family: var(--text-sans);
2665
2676
  font-weight: 700;
@@ -2670,23 +2681,42 @@ body.android {
2670
2681
  margin-bottom: var(--space-3);
2671
2682
  }
2672
2683
 
2673
- ._highlight_aknz0_40 {
2684
+ ._highlight_y5eeh_40 {
2674
2685
  color: #121212 !important;
2675
2686
  text-shadow: 1px 1px 0px white, -1px -1px 0px white, -1px 1px 0px white, 1px -1px white;
2687
+ }._zoomControl_13wd1_1 {
2688
+ display: inline-flex;
2689
+ flex-direction: column;
2690
+ gap: var(--space-2);
2676
2691
  }
2677
2692
 
2678
- ._zoomControl_aknz0_45 {
2679
- position: absolute;
2680
- top: var(--space-10);
2681
- right: 10px;
2682
- z-index: 10;
2693
+ ._button_13wd1_7 {
2694
+ width: 44px;
2695
+ height: 44px;
2696
+ margin: 0;
2697
+ padding: 0;
2698
+
2699
+ border: 1px solid var(--border-divider-color);
2700
+ border-radius: 999px;
2701
+
2702
+ background-color: var(--primary-bg-color);
2703
+
2704
+ display: flex;
2705
+ justify-content: center;
2706
+ align-items: center;
2707
+
2708
+ cursor: pointer;
2683
2709
  }
2684
- @media (min-width: 71.25em) {
2685
- ._zoomControl_aknz0_45 {
2686
- top: var(--space-5);
2687
- right: var(--space-5);
2688
- }
2689
- }body {
2710
+
2711
+ ._button_13wd1_7:hover:enabled {
2712
+ background-color: var(--news-grey-05);
2713
+ }
2714
+
2715
+ ._button_13wd1_7:disabled {
2716
+ cursor: auto;
2717
+ background-color: var(--tertiary-bg-color);
2718
+ }
2719
+ body {
2690
2720
  --top-inset: 0;
2691
2721
  }
2692
2722
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@guardian/interactive-component-library",
3
3
  "private": false,
4
- "version": "v0.1.0-alpha.30",
4
+ "version": "v0.1.0-alpha.32",
5
5
  "packageManager": "pnpm@8.4.0",
6
6
  "repository": {
7
7
  "type": "git",