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

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
@@ -1064,34 +1064,35 @@ button {
1064
1064
  background-color: var(--new-group-01) !important;
1065
1065
  }
1066
1066
  body {
1067
- --border-divider-color: #DCDCDC;
1067
+ --border-divider-color: #dcdcdc;
1068
1068
  --primary-text-color: #121212;
1069
1069
  --secondary-text-color: #707070;
1070
1070
  --secondary-text-color-alt: #707070;
1071
- --primary-bg-color: #FFFFFF;
1072
- --secondary-bg-color: #F3F3F3;
1071
+ --tertiary-text-color: #fff;
1072
+ --primary-bg-color: #ffffff;
1073
+ --secondary-bg-color: #f3f3f3;
1073
1074
  --tertiary-bg-color: #f6f6f6;
1074
- --quaternary-bg-color: #FFF;
1075
+ --quaternary-bg-color: #fff;
1075
1076
  --primary-line-color: #333333;
1076
- --secondary-line-color: #DCDCDC;
1077
+ --secondary-line-color: #dcdcdc;
1077
1078
  --primary-button-color: #121212;
1078
- --primary-button-text-color: #FFFFFF;
1079
+ --primary-button-text-color: #ffffff;
1079
1080
  --primary-button-highlight-color: #333;
1080
1081
  --highlight-color: #ffe500;
1081
1082
  --highlighted-text-color: #121212;
1082
- --info-color: #00B2FF;
1083
+ --info-color: #00b2ff;
1083
1084
  --news-core-01: #005689;
1084
- --news-core-02: #0094DA;
1085
- --news-core-03: #C70000;
1086
- --news-core-04: #23B4A9;
1085
+ --news-core-02: #0094da;
1086
+ --news-core-03: #c70000;
1087
+ --news-core-04: #23b4a9;
1087
1088
  --news-core-05: #494949;
1088
1089
  --news-core-06: #cca36e;
1089
1090
  --news-grey-01: #121212;
1090
1091
  --news-grey-02: #707070;
1091
- --news-grey-03: #A1A1A1;
1092
- --news-grey-04: #BABABA;
1093
- --news-grey-05: #DCDCDC;
1094
- --news-grey-06: #F3F3F3;
1092
+ --news-grey-03: #a1a1a1;
1093
+ --news-grey-04: #bababa;
1094
+ --news-grey-05: #dcdcdc;
1095
+ --news-grey-06: #f3f3f3;
1095
1096
  --con: #0077b6;
1096
1097
  --lab: #c70000;
1097
1098
  --libdem: #e05e00;
@@ -1162,29 +1163,30 @@ body {
1162
1163
  body.ios,
1163
1164
  body.android {
1164
1165
  --border-divider-color: #606060;
1165
- --primary-text-color: #DCDCDC;
1166
- --secondary-text-color: #C8C8C8;
1166
+ --primary-text-color: #dcdcdc;
1167
+ --secondary-text-color: #c8c8c8;
1167
1168
  --secondary-text-color-alt: #999999;
1168
- --primary-bg-color: #1A1A1A;
1169
+ --tertiary-text-color: #1a1a1a;
1170
+ --primary-bg-color: #1a1a1a;
1169
1171
  --secondary-bg-color: #383838;
1170
- --tertiary-bg-color: #1A1A1A;
1172
+ --tertiary-bg-color: #1a1a1a;
1171
1173
  --quaternary-bg-color: #121212;
1172
- --primary-line-color: #DCDCDC;
1174
+ --primary-line-color: #dcdcdc;
1173
1175
  --secondary-line-color: #707070;
1174
1176
  --primary-button-color: #383838;
1175
- --primary-button-text-color: #DCDCDC;
1177
+ --primary-button-text-color: #dcdcdc;
1176
1178
  --primary-button-highlight-color: #707070;
1177
- --highlight-color: #CDA500;
1178
- --info-color: #0077B6;
1179
- --news-core-01: #0077B6;
1180
- --news-core-02: #00B2FF;
1181
- --news-core-03: #E33824;
1182
- --news-core-04: #23B4A9;
1179
+ --highlight-color: #cda500;
1180
+ --info-color: #0077b6;
1181
+ --news-core-01: #0077b6;
1182
+ --news-core-02: #00b2ff;
1183
+ --news-core-03: #e33824;
1184
+ --news-core-04: #23b4a9;
1183
1185
  --news-core-05: #494949;
1184
1186
  --news-core-06: #cca36e;
1185
- --news-grey-01: #DCDCDC;
1186
- --news-grey-02: #C8C8C8;
1187
- --news-grey-03: #A1A1A1;
1187
+ --news-grey-01: #dcdcdc;
1188
+ --news-grey-02: #c8c8c8;
1189
+ --news-grey-03: #a1a1a1;
1188
1190
  --news-grey-04: #707070;
1189
1191
  --news-grey-05: #494949;
1190
1192
  --news-grey-06: #383838;
@@ -1902,17 +1904,18 @@ body.android {
1902
1904
  --top-inset: 58px;
1903
1905
  }
1904
1906
 
1905
- ._borderTop_1b1s0_9::before {
1907
+ ._borderTop_1yz7f_9::before {
1906
1908
  border-top: 1px solid var(--border-divider-color);
1909
+ z-index: 1;
1907
1910
  }
1908
1911
 
1909
- ._section_1b1s0_13 {
1912
+ ._section_1yz7f_14 {
1910
1913
  position: relative;
1911
1914
  z-index: 0;
1912
1915
  margin-bottom: var(--space-8);
1913
1916
  }
1914
1917
 
1915
- ._section_1b1s0_13::before {
1918
+ ._section_1yz7f_14::before {
1916
1919
  display: block;
1917
1920
  content: "";
1918
1921
  position: absolute;
@@ -1925,31 +1928,31 @@ body.android {
1925
1928
  z-index: -1;
1926
1929
  }
1927
1930
  @media (min-width: 30em) {
1928
- ._section_1b1s0_13::before {
1931
+ ._section_1yz7f_14::before {
1929
1932
  transform: translate(-20px);
1930
1933
  width: calc(100% + 40px);
1931
1934
  }
1932
1935
  }
1933
1936
  @media (min-width: 46.25em) {
1934
- ._section_1b1s0_13::before {
1937
+ ._section_1yz7f_14::before {
1935
1938
  width: calc(100% + 60px);
1936
1939
  }
1937
1940
  }
1938
1941
  @media (min-width: 71.25em) {
1939
- ._section_1b1s0_13::before {
1942
+ ._section_1yz7f_14::before {
1940
1943
  transform: translate(-180px);
1941
1944
  width: calc(100% + 200px);
1942
1945
  background-color: transparent;
1943
1946
  }
1944
1947
  }
1945
1948
  @media (min-width: 81.25em) {
1946
- ._section_1b1s0_13::before {
1949
+ ._section_1yz7f_14::before {
1947
1950
  transform: translate(-260px);
1948
1951
  width: calc(100% + 280px);
1949
1952
  }
1950
1953
  }
1951
1954
 
1952
- ._section_1b1s0_13._fullWidth_1b1s0_56 {
1955
+ ._section_1yz7f_14._fullWidth_1yz7f_57 {
1953
1956
  transform: translate(-10px);
1954
1957
  width: calc(100% + 20px);
1955
1958
  margin: 0;
@@ -1957,45 +1960,45 @@ body.android {
1957
1960
  background-color: var(--background-color);
1958
1961
  }
1959
1962
  @media (min-width: 30em) {
1960
- ._section_1b1s0_13._fullWidth_1b1s0_56 {
1963
+ ._section_1yz7f_14._fullWidth_1yz7f_57 {
1961
1964
  transform: translate(-20px);
1962
1965
  width: calc(100% + 40px);
1963
1966
  }
1964
1967
  }
1965
1968
  @media (min-width: 46.25em) {
1966
- ._section_1b1s0_13._fullWidth_1b1s0_56 {
1969
+ ._section_1yz7f_14._fullWidth_1yz7f_57 {
1967
1970
  transform: translate(-20px);
1968
1971
  width: calc(100% + 60px);
1969
1972
  }
1970
1973
  }
1971
1974
  @media (min-width: 71.25em) {
1972
- ._section_1b1s0_13._fullWidth_1b1s0_56 {
1975
+ ._section_1yz7f_14._fullWidth_1yz7f_57 {
1973
1976
  transform: translate(-180px);
1974
1977
  width: calc(100% + 200px);
1975
1978
  }
1976
1979
  }
1977
1980
  @media (min-width: 81.25em) {
1978
- ._section_1b1s0_13._fullWidth_1b1s0_56 {
1981
+ ._section_1yz7f_14._fullWidth_1yz7f_57 {
1979
1982
  transform: translate(-260px);
1980
1983
  width: calc(100% + 280px);
1981
1984
  }
1982
1985
  }
1983
1986
 
1984
- ._section_1b1s0_13._fullWidth_1b1s0_56::before {
1987
+ ._section_1yz7f_14._fullWidth_1yz7f_57::before {
1985
1988
  transform: none;
1986
1989
  width: 100%;
1987
1990
  height: 100%;
1988
1991
  background-color: transparent;
1989
1992
  }
1990
1993
 
1991
- ._header_1b1s0_95 {
1994
+ ._header_1yz7f_96 {
1992
1995
  color: var(--primary-text-color);
1993
1996
  padding-top: var(--space-2);
1994
1997
  margin-bottom: var(--space-5);
1995
1998
  }
1996
1999
 
1997
2000
  @media (min-width: 71.25em) {
1998
- body:not(.ios, .android) ._header_1b1s0_95 {
2001
+ body:not(.ios, .android) ._header_1yz7f_96 {
1999
2002
  position: absolute;
2000
2003
  max-width: 160px;
2001
2004
  transform: translateX(-170px);
@@ -2003,13 +2006,13 @@ body.android {
2003
2006
  }
2004
2007
  }
2005
2008
  @media (min-width: 81.25em) {
2006
- body:not(.ios, .android) ._header_1b1s0_95 {
2009
+ body:not(.ios, .android) ._header_1yz7f_96 {
2007
2010
  max-width: 220px;
2008
2011
  transform: translateX(-250px);
2009
2012
  }
2010
2013
  }
2011
2014
 
2012
- body ._header_1b1s0_95._fullWidth_1b1s0_56 {
2015
+ body ._header_1yz7f_96._fullWidth_1yz7f_57 {
2013
2016
  position: absolute;
2014
2017
  top: 0;
2015
2018
  left: 0;
@@ -2020,22 +2023,22 @@ body ._header_1b1s0_95._fullWidth_1b1s0_56 {
2020
2023
  max-width: 100%;
2021
2024
  }
2022
2025
  @media (min-width: 71.25em) {
2023
- body ._header_1b1s0_95._fullWidth_1b1s0_56 {
2026
+ body ._header_1yz7f_96._fullWidth_1yz7f_57 {
2024
2027
  margin-bottom: 0;
2025
2028
  }
2026
2029
  }
2027
2030
 
2028
- ._content_1b1s0_132 {
2031
+ ._content_1yz7f_133 {
2029
2032
  position: relative;
2030
2033
  padding-top: 0;
2031
2034
  z-index: 0;
2032
2035
  color: var(--primary-text-color);
2033
2036
  }
2034
2037
  @media (min-width: 71.25em) {
2035
- ._content_1b1s0_132 {
2038
+ ._content_1yz7f_133 {
2036
2039
  padding-top: var(--space-2);
2037
2040
  }
2038
- ._content_1b1s0_132::before {
2041
+ ._content_1yz7f_133::before {
2039
2042
  content: "";
2040
2043
  position: absolute;
2041
2044
  top: 0;
@@ -2048,11 +2051,11 @@ body ._header_1b1s0_95._fullWidth_1b1s0_56 {
2048
2051
  }
2049
2052
  }
2050
2053
 
2051
- ._content_1b1s0_132._fullWidth_1b1s0_56 {
2054
+ ._content_1yz7f_133._fullWidth_1yz7f_57 {
2052
2055
  padding-top: 0;
2053
2056
  }
2054
2057
 
2055
- ._content_1b1s0_132._fullWidth_1b1s0_56::before {
2058
+ ._content_1yz7f_133._fullWidth_1yz7f_57::before {
2056
2059
  display: none;
2057
2060
  }._text_lo5h3_1 {
2058
2061
  font-family: var(--text-sans);
@@ -2418,42 +2421,51 @@ body.android {
2418
2421
  ._grid_xps7m_9[data-grid-type=large] > *:nth-child(2n+1):nth-last-child(-n+2), ._grid_xps7m_9[data-grid-type=large] > *:nth-child(2n+1):nth-last-child(-n+2) ~ * {
2419
2422
  border-bottom: 0;
2420
2423
  }
2421
- }._transitionContainer_wws3j_1 {
2424
+ }._transitionContainer_15ioc_1 {
2422
2425
  position: fixed;
2423
2426
  left: 0;
2424
2427
  right: 0;
2425
2428
  top: 0;
2426
2429
  bottom: 0;
2427
- background-color: rgba(0, 0, 0, 0.1);
2428
- backdrop-filter: blur(4px);
2429
2430
  transition: all 300ms ease-in-out;
2430
2431
  z-index: 9999;
2432
+ pointer-events: none;
2433
+ }
2434
+
2435
+ ._blur_15ioc_12 {
2436
+ background-color: rgba(0, 0, 0, 0.1);
2437
+ backdrop-filter: blur(4px);
2431
2438
  }
2432
2439
 
2433
- ._modalBox_wws3j_13 {
2440
+ ._modalBox_15ioc_17 {
2434
2441
  position: absolute;
2435
2442
  left: 0;
2436
2443
  right: 0;
2437
2444
  bottom: 0;
2438
2445
  transition: all 300ms ease-in-out;
2446
+ pointer-events: all;
2439
2447
  }
2440
2448
 
2441
- ._enter_wws3j_21,
2442
- ._exitDone_wws3j_22 {
2443
- background-color: transparent;
2444
- backdrop-filter: none;
2449
+ ._enter_15ioc_26,
2450
+ ._exitDone_15ioc_27 {
2451
+ ._blur_15ioc_12 {
2452
+ background-color: transparent;
2453
+ backdrop-filter: none;
2454
+ }
2445
2455
 
2446
- ._modalBox_wws3j_13 {
2456
+ ._modalBox_15ioc_17 {
2447
2457
  transform: translateY(100%);
2448
2458
  }
2449
2459
  }
2450
2460
 
2451
- ._enterActive_wws3j_31,
2452
- ._exit_wws3j_22 {
2453
- background-color: rgba(0, 0, 0, 0.1);
2454
- backdrop-filter: blur(4px);
2461
+ ._enterActive_15ioc_38,
2462
+ ._exit_15ioc_27 {
2463
+ ._blur_15ioc_12 {
2464
+ background-color: rgba(0, 0, 0, 0.1);
2465
+ backdrop-filter: blur(4px);
2466
+ }
2455
2467
 
2456
- ._modalBox_wws3j_13 {
2468
+ ._modalBox_15ioc_17 {
2457
2469
  transform: translateY(0);
2458
2470
  }
2459
2471
  }
@@ -2650,40 +2662,48 @@ body.android {
2650
2662
  --top-inset: 58px;
2651
2663
  }
2652
2664
 
2653
- ._mapContainer_y5eeh_9 {
2665
+ ._mapContainer_qlxau_9 {
2654
2666
  position: relative;
2655
2667
  width: 100%;
2656
2668
  height: 100%;
2657
2669
  }
2658
2670
 
2659
- ._helpTextContainer_y5eeh_15 {
2671
+ ._helpTextContainer_qlxau_15 {
2660
2672
  position: absolute;
2661
2673
  width: 100%;
2662
2674
  height: 100%;
2663
2675
  top: 0;
2664
2676
  left: 0;
2665
- z-index: 9;
2677
+ z-index: 1;
2666
2678
  pointer-events: none;
2679
+ background-color: rgba(18, 18, 18, 0.4);
2667
2680
  display: flex;
2668
2681
  justify-content: center;
2669
- align-items: flex-end;
2682
+ align-items: center;
2670
2683
  transition: opacity 0.2s linear;
2671
2684
  }
2672
2685
 
2673
- ._helpText_y5eeh_15 {
2686
+ ._helpText_qlxau_15 {
2674
2687
  margin-top: var(--space-5);
2675
2688
  font-family: var(--text-sans);
2676
2689
  font-weight: 700;
2677
- font-size: var(--sans-small);
2690
+ font-size: var(--sans-large);
2678
2691
  line-height: var(--sans-line-height);
2679
- color: #a1a1a1 !important;
2680
- transition: all 0.2s linear;
2692
+ color: var(--tertiary-text-color) !important;
2681
2693
  margin-bottom: var(--space-3);
2682
2694
  }
2683
2695
 
2684
- ._highlight_y5eeh_40 {
2685
- color: #121212 !important;
2686
- text-shadow: 1px 1px 0px white, -1px -1px 0px white, -1px 1px 0px white, 1px -1px white;
2696
+ ._desktopHelpText_qlxau_40 {
2697
+ display: none;
2698
+ }
2699
+
2700
+ @media (any-hover: hover) {
2701
+ ._desktopHelpText_qlxau_40 {
2702
+ display: block;
2703
+ }
2704
+ ._mobileHelpText_qlxau_48 {
2705
+ display: none;
2706
+ }
2687
2707
  }._zoomControl_13wd1_1 {
2688
2708
  display: inline-flex;
2689
2709
  flex-direction: column;
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.32",
4
+ "version": "v0.1.0-alpha.34",
5
5
  "packageManager": "pnpm@8.4.0",
6
6
  "repository": {
7
7
  "type": "git",