@guardian/interactive-component-library 0.1.0-alpha.52 → 0.1.0-alpha.57
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 +2 -0
- package/dist/interactive-component-library.js +1959 -2467
- package/dist/interactive-component-library.js.map +1 -1
- package/dist/interactive-component-library.umd.cjs +1959 -2467
- package/dist/interactive-component-library.umd.cjs.map +1 -1
- package/dist/style.css +257 -157
- package/package.json +8 -6
package/dist/style.css
CHANGED
|
@@ -9,65 +9,69 @@ button {
|
|
|
9
9
|
border-radius: 0;
|
|
10
10
|
}
|
|
11
11
|
:root {
|
|
12
|
-
--text-sans: "GuardianTextSans", "Guardian Text Sans Web", "Helvetica Neue",
|
|
13
|
-
|
|
14
|
-
--text-
|
|
15
|
-
|
|
12
|
+
--text-sans: "GuardianTextSans", "Guardian Text Sans Web", "Helvetica Neue",
|
|
13
|
+
"Helvetica", "Arial", "Lucida Grande", "sans-serif";
|
|
14
|
+
--text-serif: "GuardianTextEgyptian", "Guardian Text Egyptian Web", "Georgia",
|
|
15
|
+
"serif";
|
|
16
|
+
--text-headline: "GH Guardian Headline", "Guardian Egyptian Web", "Georgia",
|
|
17
|
+
"serif";
|
|
18
|
+
--text-titlepiece: "Guardian Titlepiece", "Guardian Headline Full",
|
|
19
|
+
"Guardian Headline", "Guardian Egyptian Web", "Georgia", "serif";
|
|
16
20
|
}
|
|
17
21
|
:root {
|
|
18
|
-
--headline-xxxsmall: 17px;
|
|
19
|
-
--headline-xxsmall: 20px;
|
|
20
|
-
--headline-xsmall: 24px;
|
|
21
|
-
--headline-small: 28px;
|
|
22
|
-
--headline-medium: 34px;
|
|
23
|
-
--headline-large: 42px;
|
|
24
|
-
--headline-xlarge: 50px;
|
|
25
|
-
|
|
26
|
-
--sans-xxsmall: 12px;
|
|
27
|
-
--sans-xsmall: 14px;
|
|
28
|
-
--sans-small: 15px;
|
|
29
|
-
--sans-medium: 17px;
|
|
30
|
-
--sans-large: 20px;
|
|
31
|
-
--sans-xlarge: 24px;
|
|
32
|
-
--sans-xxlarge: 28px;
|
|
33
|
-
--sans-xxxlarge: 34px;
|
|
34
|
-
|
|
35
|
-
--titlepiece-xxxsmall: 16px;
|
|
36
|
-
--titlepiece-xxsmall: 24px;
|
|
37
|
-
--titlepiece-xsmall: 36px;
|
|
38
|
-
--titlepiece-small: 42px;
|
|
39
|
-
--titlepiece-medium: 50px;
|
|
40
|
-
--titlepiece-large: 70px;
|
|
41
|
-
|
|
42
|
-
--body-xsmall: 14px;
|
|
43
|
-
--body-small: 15px;
|
|
44
|
-
--body-medium: 17px;
|
|
45
|
-
|
|
46
|
-
--line-height-tight: 1.15;
|
|
47
|
-
--line-height-regular: 1.3;
|
|
48
|
-
--line-height-loose: 1.4;
|
|
49
|
-
|
|
50
|
-
--headline-line-height: 1.15;
|
|
51
|
-
--sans-line-height: 1.3;
|
|
52
|
-
--titlepiece-line-height: 1.15;
|
|
53
|
-
--body-line-height: 1.4;
|
|
22
|
+
--headline-xxxsmall: 17px;
|
|
23
|
+
--headline-xxsmall: 20px;
|
|
24
|
+
--headline-xsmall: 24px;
|
|
25
|
+
--headline-small: 28px;
|
|
26
|
+
--headline-medium: 34px;
|
|
27
|
+
--headline-large: 42px;
|
|
28
|
+
--headline-xlarge: 50px;
|
|
29
|
+
|
|
30
|
+
--sans-xxsmall: 12px;
|
|
31
|
+
--sans-xsmall: 14px;
|
|
32
|
+
--sans-small: 15px;
|
|
33
|
+
--sans-medium: 17px;
|
|
34
|
+
--sans-large: 20px;
|
|
35
|
+
--sans-xlarge: 24px;
|
|
36
|
+
--sans-xxlarge: 28px;
|
|
37
|
+
--sans-xxxlarge: 34px;
|
|
38
|
+
|
|
39
|
+
--titlepiece-xxxsmall: 16px;
|
|
40
|
+
--titlepiece-xxsmall: 24px;
|
|
41
|
+
--titlepiece-xsmall: 36px;
|
|
42
|
+
--titlepiece-small: 42px;
|
|
43
|
+
--titlepiece-medium: 50px;
|
|
44
|
+
--titlepiece-large: 70px;
|
|
45
|
+
|
|
46
|
+
--body-xsmall: 14px;
|
|
47
|
+
--body-small: 15px;
|
|
48
|
+
--body-medium: 17px;
|
|
49
|
+
|
|
50
|
+
--line-height-tight: 1.15;
|
|
51
|
+
--line-height-regular: 1.3;
|
|
52
|
+
--line-height-loose: 1.4;
|
|
53
|
+
|
|
54
|
+
--headline-line-height: 1.15;
|
|
55
|
+
--sans-line-height: 1.3;
|
|
56
|
+
--titlepiece-line-height: 1.15;
|
|
57
|
+
--body-line-height: 1.4;
|
|
54
58
|
}
|
|
55
59
|
:root {
|
|
56
|
-
--space-0: 2px;
|
|
57
|
-
--space-1: 4px;
|
|
58
|
-
--space-2: 8px;
|
|
59
|
-
--space-3: 12px;
|
|
60
|
-
--space-4: 16px;
|
|
61
|
-
--space-5: 20px;
|
|
62
|
-
--space-6: 24px;
|
|
63
|
-
--space-8: 32px;
|
|
64
|
-
--space-9: 36px;
|
|
65
|
-
--space-10: 40px;
|
|
66
|
-
--space-12: 48px;
|
|
67
|
-
--space-14: 56px;
|
|
68
|
-
--space-16: 64px;
|
|
69
|
-
--space-18: 72px;
|
|
70
|
-
--space-24: 96px;
|
|
60
|
+
--space-0: 2px;
|
|
61
|
+
--space-1: 4px;
|
|
62
|
+
--space-2: 8px;
|
|
63
|
+
--space-3: 12px;
|
|
64
|
+
--space-4: 16px;
|
|
65
|
+
--space-5: 20px;
|
|
66
|
+
--space-6: 24px;
|
|
67
|
+
--space-8: 32px;
|
|
68
|
+
--space-9: 36px;
|
|
69
|
+
--space-10: 40px;
|
|
70
|
+
--space-12: 48px;
|
|
71
|
+
--space-14: 56px;
|
|
72
|
+
--space-16: 64px;
|
|
73
|
+
--space-18: 72px;
|
|
74
|
+
--space-24: 96px;
|
|
71
75
|
}
|
|
72
76
|
:global(body) {
|
|
73
77
|
--top-inset: 0;
|
|
@@ -1063,6 +1067,117 @@ button {
|
|
|
1063
1067
|
.before-color--new-group-01:before {
|
|
1064
1068
|
background-color: var(--new-group-01) !important;
|
|
1065
1069
|
}
|
|
1070
|
+
/* BACKGROUND-COLOR -------------------------------------------- */
|
|
1071
|
+
/* include secondary (-2) colors ---*/
|
|
1072
|
+
.bg-color--dem {
|
|
1073
|
+
background-color: var(--dem) !important;
|
|
1074
|
+
}
|
|
1075
|
+
.bg-color--gop {
|
|
1076
|
+
background-color: var(--gop) !important;
|
|
1077
|
+
}
|
|
1078
|
+
.bg-color--oth {
|
|
1079
|
+
background-color: var(--oth) !important;
|
|
1080
|
+
}
|
|
1081
|
+
.bg-color--dem-2 {
|
|
1082
|
+
background-color: var(--dem-2) !important;
|
|
1083
|
+
}
|
|
1084
|
+
.bg-color--gop-2 {
|
|
1085
|
+
background-color: var(--gop2) !important;
|
|
1086
|
+
}
|
|
1087
|
+
.bg-color--oth-2 {
|
|
1088
|
+
background-color: var(--oth-2) !important;
|
|
1089
|
+
}
|
|
1090
|
+
.bg-color--undeclared {
|
|
1091
|
+
background-color: var(--undeclared) !important;
|
|
1092
|
+
}
|
|
1093
|
+
/* FILL ----------------------------------------------------------- */
|
|
1094
|
+
/* include secondary (-2) colors ---*/
|
|
1095
|
+
.fill-color--dem {
|
|
1096
|
+
fill: var(--dem) !important;
|
|
1097
|
+
}
|
|
1098
|
+
.fill-color--gop {
|
|
1099
|
+
fill: var(--gop) !important;
|
|
1100
|
+
}
|
|
1101
|
+
.fill-color--oth {
|
|
1102
|
+
fill: var(--oth) !important;
|
|
1103
|
+
}
|
|
1104
|
+
.fill-color--dem-2 {
|
|
1105
|
+
fill: var(--dem-2) !important;
|
|
1106
|
+
}
|
|
1107
|
+
.fill-color--gop-2 {
|
|
1108
|
+
fill: var(--gop-2) !important;
|
|
1109
|
+
}
|
|
1110
|
+
.fill-color--oth-2 {
|
|
1111
|
+
fill: var(--oth-2) !important;
|
|
1112
|
+
}
|
|
1113
|
+
.fill-color--undeclared {
|
|
1114
|
+
fill: var(--undeclared) !important;
|
|
1115
|
+
}
|
|
1116
|
+
/* STOP ----------------------------------------------------------- */
|
|
1117
|
+
.stop-color--dem {
|
|
1118
|
+
stop-color: var(--dem) !important;
|
|
1119
|
+
}
|
|
1120
|
+
.stop-color--gop {
|
|
1121
|
+
stop-color: var(--gop) !important;
|
|
1122
|
+
}
|
|
1123
|
+
.stop-color--oth {
|
|
1124
|
+
stop-color: var(--oth) !important;
|
|
1125
|
+
}
|
|
1126
|
+
.stop-color--undeclared {
|
|
1127
|
+
stop-color: var(--undeclared) !important;
|
|
1128
|
+
}
|
|
1129
|
+
/* STROKE-COLOR --------------------------------------------------- */
|
|
1130
|
+
.stroke-color--dem {
|
|
1131
|
+
stroke: var(--dem) !important;
|
|
1132
|
+
}
|
|
1133
|
+
.stroke-color--gop {
|
|
1134
|
+
stroke: var(--gop) !important;
|
|
1135
|
+
}
|
|
1136
|
+
.stroke-color--oth {
|
|
1137
|
+
stroke: var(--oth) !important;
|
|
1138
|
+
}
|
|
1139
|
+
.stroke-color--undeclared {
|
|
1140
|
+
stroke: var(--undeclared) !important;
|
|
1141
|
+
}
|
|
1142
|
+
/* COLOR ----------------------------------------------------------- */
|
|
1143
|
+
.color--dem {
|
|
1144
|
+
color: var(--dem) !important;
|
|
1145
|
+
}
|
|
1146
|
+
.color--gop {
|
|
1147
|
+
color: var(--gop) !important;
|
|
1148
|
+
}
|
|
1149
|
+
.color--oth {
|
|
1150
|
+
color: var(--oth) !important;
|
|
1151
|
+
}
|
|
1152
|
+
.color--undeclared {
|
|
1153
|
+
color: var(--undeclared) !important;
|
|
1154
|
+
}
|
|
1155
|
+
/* BORDER-COLOR ----------------------------------------------------- */
|
|
1156
|
+
.border-color--dem {
|
|
1157
|
+
border-color: var(--dem) !important;
|
|
1158
|
+
}
|
|
1159
|
+
.border-color--gop {
|
|
1160
|
+
border-color: var(--gop) !important;
|
|
1161
|
+
}
|
|
1162
|
+
.border-color--oth {
|
|
1163
|
+
border-color: var(--oth) !important;
|
|
1164
|
+
}
|
|
1165
|
+
.border-color--undeclared {
|
|
1166
|
+
border-color: var(--undeclared) !important;
|
|
1167
|
+
}
|
|
1168
|
+
/* BEFORE-ELEMENT-COLOR ----------------------------------------------------- */
|
|
1169
|
+
.before-color--dem:before {
|
|
1170
|
+
background-color: var(--dem) !important;
|
|
1171
|
+
}
|
|
1172
|
+
.before-color--gop:before {
|
|
1173
|
+
background-color: var(--gop) !important;
|
|
1174
|
+
}
|
|
1175
|
+
.before-color--oth:before {
|
|
1176
|
+
background-color: var(--oth) !important;
|
|
1177
|
+
}
|
|
1178
|
+
.before-color--undeclared:before {
|
|
1179
|
+
background-color: var(--undeclared) !important;
|
|
1180
|
+
}
|
|
1066
1181
|
body {
|
|
1067
1182
|
--border-divider-color: #dcdcdc;
|
|
1068
1183
|
--primary-text-color: #121212;
|
|
@@ -1158,6 +1273,13 @@ body {
|
|
|
1158
1273
|
--undeclared: #ededed;
|
|
1159
1274
|
--declared: #fff;
|
|
1160
1275
|
--new-group-01: #333333;
|
|
1276
|
+
--dem: #2f3192;
|
|
1277
|
+
--gop: #c70000;
|
|
1278
|
+
--oth: #848484;
|
|
1279
|
+
--dem-2: #bdbeea;
|
|
1280
|
+
--gop-2: #ffdbd4;
|
|
1281
|
+
--oth-2: #c8c8c8;
|
|
1282
|
+
--undeclared: #e7e7e7;
|
|
1161
1283
|
}
|
|
1162
1284
|
@media (prefers-color-scheme: dark) {
|
|
1163
1285
|
body.ios,
|
|
@@ -1255,6 +1377,13 @@ body {
|
|
|
1255
1377
|
--undeclared: #ededed;
|
|
1256
1378
|
--declared: #bababa;
|
|
1257
1379
|
--new-group-01: #cccccc;
|
|
1380
|
+
--dem: #3c3eb9;
|
|
1381
|
+
--gop: #dc2e1c;
|
|
1382
|
+
--oth: #707070;
|
|
1383
|
+
--dem-2: #292b7f;
|
|
1384
|
+
--gop-2: #833a2b;
|
|
1385
|
+
--oth-2: #333333;
|
|
1386
|
+
--undeclared: #494949;
|
|
1258
1387
|
}
|
|
1259
1388
|
}._svg_b5io0_1 {
|
|
1260
1389
|
display: block;
|
|
@@ -1337,14 +1466,15 @@ body {
|
|
|
1337
1466
|
._next_ihy3w_16 {
|
|
1338
1467
|
stop-color: var(--other);
|
|
1339
1468
|
}
|
|
1340
|
-
.
|
|
1469
|
+
._unit_1jxth_1 {
|
|
1341
1470
|
stroke: var(--primary-bg-color);
|
|
1342
1471
|
stroke-width: 1px;
|
|
1343
1472
|
}
|
|
1344
1473
|
|
|
1345
|
-
.
|
|
1474
|
+
._container_1jxth_6 {
|
|
1346
1475
|
width: 100%;
|
|
1347
|
-
}
|
|
1476
|
+
}
|
|
1477
|
+
._button_oqopj_1 {
|
|
1348
1478
|
display: block;
|
|
1349
1479
|
border: 1px solid var(--news-grey-05);
|
|
1350
1480
|
border-radius: 999px;
|
|
@@ -1792,21 +1922,21 @@ body.android {
|
|
|
1792
1922
|
._container_1b8t2_10 {
|
|
1793
1923
|
font-weight: 700;
|
|
1794
1924
|
}
|
|
1795
|
-
.
|
|
1925
|
+
._wrapper_kh25l_1 {
|
|
1796
1926
|
position: relative;
|
|
1797
1927
|
}
|
|
1798
1928
|
|
|
1799
|
-
.
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1929
|
+
._line_kh25l_5 {
|
|
1930
|
+
height: calc(100% - 3px - 20px);
|
|
1931
|
+
width: 1px;
|
|
1932
|
+
left: calc(50% - 0.5px);
|
|
1933
|
+
background-color: var(--primary-text-color);
|
|
1934
|
+
position: absolute;
|
|
1935
|
+
bottom: 3px;
|
|
1936
|
+
z-index: 2;
|
|
1807
1937
|
}
|
|
1808
1938
|
|
|
1809
|
-
.
|
|
1939
|
+
._halfLineText_kh25l_15 {
|
|
1810
1940
|
width: 100%;
|
|
1811
1941
|
text-align: center;
|
|
1812
1942
|
font-family: var(--text-sans);
|
|
@@ -1814,7 +1944,8 @@ body.android {
|
|
|
1814
1944
|
font-size: var(--sans-xsmall);
|
|
1815
1945
|
color: var(--primary-text-color);
|
|
1816
1946
|
position: relative;
|
|
1817
|
-
}
|
|
1947
|
+
}
|
|
1948
|
+
body {
|
|
1818
1949
|
--top-inset: 0;
|
|
1819
1950
|
}
|
|
1820
1951
|
|
|
@@ -1822,12 +1953,13 @@ body.android {
|
|
|
1822
1953
|
--top-inset: 58px;
|
|
1823
1954
|
}
|
|
1824
1955
|
|
|
1825
|
-
.
|
|
1956
|
+
._toplineResult_1su0d_9 {
|
|
1826
1957
|
width: fit-content;
|
|
1827
1958
|
display: flex;
|
|
1828
1959
|
flex-direction: column;
|
|
1829
1960
|
}
|
|
1830
|
-
|
|
1961
|
+
|
|
1962
|
+
._primaryname_1su0d_15 {
|
|
1831
1963
|
color: var(--primary-text-color);
|
|
1832
1964
|
font-family: var(--text-headline);
|
|
1833
1965
|
font-size: var(--headline-xxxsmall);
|
|
@@ -1835,35 +1967,38 @@ body.android {
|
|
|
1835
1967
|
font-weight: 500;
|
|
1836
1968
|
font-style: italic;
|
|
1837
1969
|
}
|
|
1838
|
-
.
|
|
1970
|
+
._primaryname_1su0d_15:before {
|
|
1839
1971
|
content: "";
|
|
1840
1972
|
height: 4px;
|
|
1841
1973
|
width: 2.2em;
|
|
1842
1974
|
border-radius: 50px;
|
|
1843
1975
|
display: block;
|
|
1844
1976
|
}
|
|
1845
|
-
|
|
1977
|
+
|
|
1978
|
+
._secondaryname_1su0d_31 {
|
|
1846
1979
|
color: var(--primary-text-color);
|
|
1847
1980
|
font-family: var(--text-headline);
|
|
1848
1981
|
font-size: var(--headline-xxxsmall);
|
|
1849
1982
|
font-weight: 500;
|
|
1850
1983
|
line-height: var(--headline-line-height);
|
|
1851
1984
|
}
|
|
1852
|
-
|
|
1985
|
+
|
|
1986
|
+
._name_1su0d_39 {
|
|
1853
1987
|
color: var(--primary-text-color);
|
|
1854
1988
|
font-family: var(--text-headline);
|
|
1855
1989
|
font-size: var(--headline-xxxsmall);
|
|
1856
1990
|
line-height: var(--headline-line-height);
|
|
1857
1991
|
font-weight: 500;
|
|
1858
1992
|
}
|
|
1859
|
-
.
|
|
1993
|
+
._name_1su0d_39:before {
|
|
1860
1994
|
content: "";
|
|
1861
1995
|
height: 4px;
|
|
1862
1996
|
width: 2.2em;
|
|
1863
1997
|
border-radius: 50px;
|
|
1864
1998
|
display: block;
|
|
1865
1999
|
}
|
|
1866
|
-
|
|
2000
|
+
|
|
2001
|
+
._displayNumbers_1su0d_54 {
|
|
1867
2002
|
display: flex;
|
|
1868
2003
|
align-items: baseline;
|
|
1869
2004
|
margin-top: auto;
|
|
@@ -1874,32 +2009,37 @@ body.android {
|
|
|
1874
2009
|
font-feature-settings: "lnum";
|
|
1875
2010
|
line-height: var(--titlepiece-line-height);
|
|
1876
2011
|
}
|
|
1877
|
-
.
|
|
2012
|
+
._displayNumbers_1su0d_54 > div {
|
|
2013
|
+
flex-shrink: 0;
|
|
2014
|
+
}
|
|
2015
|
+
|
|
2016
|
+
._mainNumber_1su0d_69 {
|
|
1878
2017
|
color: var(--primary-text-color);
|
|
1879
2018
|
font-size: var(--titlepiece-xsmall);
|
|
1880
2019
|
white-space: nowrap;
|
|
1881
2020
|
}
|
|
1882
|
-
|
|
2021
|
+
|
|
2022
|
+
._mainNumberSuffix_1su0d_75 {
|
|
1883
2023
|
font-size: var(--titlepiece-xxxsmall);
|
|
1884
2024
|
}
|
|
1885
|
-
|
|
2025
|
+
|
|
2026
|
+
._secondaryNumber_1su0d_79 {
|
|
1886
2027
|
color: var(--secondary-text-color-alt);
|
|
1887
2028
|
font-size: var(--titlepiece-xxsmall);
|
|
1888
2029
|
}
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
}
|
|
1892
|
-
._toplineResult_49z3u_9 ._displayRow_49z3u_76 {
|
|
2030
|
+
|
|
2031
|
+
._displayRow_1su0d_84 {
|
|
1893
2032
|
flex-direction: row;
|
|
1894
2033
|
}
|
|
1895
|
-
.
|
|
2034
|
+
._displayRow_1su0d_84 ._mainNumber_1su0d_69 {
|
|
1896
2035
|
margin-right: var(--space-0);
|
|
1897
2036
|
}
|
|
1898
|
-
|
|
2037
|
+
|
|
2038
|
+
._displayColumn_1su0d_91 {
|
|
1899
2039
|
flex-direction: column;
|
|
1900
2040
|
}
|
|
1901
2041
|
|
|
1902
|
-
.
|
|
2042
|
+
._topRow_1su0d_95 {
|
|
1903
2043
|
width: fit-content;
|
|
1904
2044
|
padding-bottom: 1px;
|
|
1905
2045
|
display: flex;
|
|
@@ -1908,11 +2048,11 @@ body.android {
|
|
|
1908
2048
|
align-items: flex-end;
|
|
1909
2049
|
}
|
|
1910
2050
|
@media (min-width: 61.25em) {
|
|
1911
|
-
.
|
|
2051
|
+
._topRow_1su0d_95 {
|
|
1912
2052
|
border-bottom: none;
|
|
1913
2053
|
}
|
|
1914
2054
|
}
|
|
1915
|
-
.
|
|
2055
|
+
._topRow_1su0d_95 > * {
|
|
1916
2056
|
display: block;
|
|
1917
2057
|
}body {
|
|
1918
2058
|
--top-inset: 0;
|
|
@@ -2118,16 +2258,16 @@ body ._header_1xpz0_150._fullWidth_1xpz0_39 {
|
|
|
2118
2258
|
|
|
2119
2259
|
._content_1xpz0_187._fullWidth_1xpz0_39::before {
|
|
2120
2260
|
display: none;
|
|
2121
|
-
}.
|
|
2122
|
-
|
|
2123
|
-
|
|
2261
|
+
}._text_1ci1k_1 {
|
|
2262
|
+
font-family: var(--text-sans);
|
|
2263
|
+
fill: var(--primary-text-color);
|
|
2124
2264
|
}
|
|
2125
2265
|
|
|
2126
|
-
.
|
|
2127
|
-
|
|
2128
|
-
}
|
|
2266
|
+
._axis_1ci1k_6 {
|
|
2267
|
+
fill: var(--primary-line-color);
|
|
2268
|
+
}
|
|
2129
2269
|
|
|
2130
|
-
.
|
|
2270
|
+
._bar_1ci1k_10 {
|
|
2131
2271
|
}
|
|
2132
2272
|
._container_hbk39_1 {
|
|
2133
2273
|
font-weight: 700;
|
|
@@ -2667,58 +2807,17 @@ body.android {
|
|
|
2667
2807
|
._path_1cwd5_9 {
|
|
2668
2808
|
stroke: var(--secondary-line-color);
|
|
2669
2809
|
fill: none;
|
|
2670
|
-
}.
|
|
2671
|
-
display: inline-flex;
|
|
2672
|
-
flex-direction: column;
|
|
2673
|
-
gap: var(--space-2);
|
|
2674
|
-
}
|
|
2675
|
-
|
|
2676
|
-
._button_1qhlz_7 {
|
|
2677
|
-
width: 44px;
|
|
2678
|
-
height: 44px;
|
|
2679
|
-
margin: 0;
|
|
2680
|
-
padding: 0;
|
|
2681
|
-
|
|
2682
|
-
border: 1px solid var(--border-divider-color);
|
|
2683
|
-
border-radius: 999px;
|
|
2684
|
-
|
|
2685
|
-
background-color: var(--primary-bg-color);
|
|
2686
|
-
|
|
2687
|
-
display: flex;
|
|
2688
|
-
justify-content: center;
|
|
2689
|
-
align-items: center;
|
|
2690
|
-
|
|
2691
|
-
cursor: pointer;
|
|
2692
|
-
}
|
|
2693
|
-
|
|
2694
|
-
._button_1qhlz_7:hover:enabled {
|
|
2695
|
-
background-color: var(--news-grey-05);
|
|
2696
|
-
}
|
|
2697
|
-
._container_1ta61_1 {
|
|
2810
|
+
}._container_9pdyv_1 {
|
|
2698
2811
|
width: 100%;
|
|
2699
2812
|
height: 100%;
|
|
2700
2813
|
position: relative;
|
|
2701
2814
|
}
|
|
2702
2815
|
|
|
2703
|
-
.
|
|
2816
|
+
._svg_9pdyv_7 {
|
|
2704
2817
|
fill: none;
|
|
2705
2818
|
stroke: #121212;
|
|
2706
2819
|
stroke-width: 1;
|
|
2707
2820
|
}
|
|
2708
|
-
|
|
2709
|
-
._controls_1ta61_13 {
|
|
2710
|
-
position: absolute;
|
|
2711
|
-
top: 0;
|
|
2712
|
-
left: 0;
|
|
2713
|
-
width: 100%;
|
|
2714
|
-
height: 100%;
|
|
2715
|
-
}
|
|
2716
|
-
|
|
2717
|
-
._zoomControl_1ta61_21 {
|
|
2718
|
-
position: absolute;
|
|
2719
|
-
top: 0;
|
|
2720
|
-
right: 0;
|
|
2721
|
-
}
|
|
2722
2821
|
body {
|
|
2723
2822
|
--top-inset: 0;
|
|
2724
2823
|
}
|
|
@@ -2907,24 +3006,24 @@ body.android {
|
|
|
2907
3006
|
--top-inset: 58px;
|
|
2908
3007
|
}
|
|
2909
3008
|
|
|
2910
|
-
.
|
|
3009
|
+
._ticker_15ezr_9 {
|
|
2911
3010
|
position: relative;
|
|
2912
3011
|
padding-bottom: 44px;
|
|
2913
3012
|
--ticker-item-width: 100%;
|
|
2914
3013
|
}
|
|
2915
3014
|
@media (min-width: 30em) {
|
|
2916
|
-
.
|
|
3015
|
+
._ticker_15ezr_9 {
|
|
2917
3016
|
--ticker-item-width: 200px;
|
|
2918
3017
|
padding: 0;
|
|
2919
3018
|
}
|
|
2920
3019
|
}
|
|
2921
3020
|
|
|
2922
|
-
.
|
|
3021
|
+
._tickerItems_15ezr_21 {
|
|
2923
3022
|
width: 100%;
|
|
2924
3023
|
overflow: clip;
|
|
2925
3024
|
}
|
|
2926
3025
|
|
|
2927
|
-
.
|
|
3026
|
+
._tickerScroll_15ezr_26 {
|
|
2928
3027
|
display: flex;
|
|
2929
3028
|
flex-direction: column;
|
|
2930
3029
|
row-gap: var(--space-2);
|
|
@@ -2933,7 +3032,7 @@ body.android {
|
|
|
2933
3032
|
overflow: visible;
|
|
2934
3033
|
}
|
|
2935
3034
|
@media (min-width: 30em) {
|
|
2936
|
-
.
|
|
3035
|
+
._tickerScroll_15ezr_26 {
|
|
2937
3036
|
flex-direction: row;
|
|
2938
3037
|
column-gap: var(--space-2);
|
|
2939
3038
|
transform: translateX(var(--ticker-offset));
|
|
@@ -2941,19 +3040,19 @@ body.android {
|
|
|
2941
3040
|
}
|
|
2942
3041
|
}
|
|
2943
3042
|
|
|
2944
|
-
.
|
|
3043
|
+
._tickerItem_15ezr_21 {
|
|
2945
3044
|
width: var(--ticker-item-width);
|
|
2946
3045
|
flex-shrink: 0;
|
|
2947
3046
|
}
|
|
2948
3047
|
|
|
2949
|
-
.
|
|
3048
|
+
._controls_15ezr_48 {
|
|
2950
3049
|
position: absolute;
|
|
2951
3050
|
bottom: 0;
|
|
2952
3051
|
width: 100%;
|
|
2953
3052
|
height: 130px;
|
|
2954
3053
|
}
|
|
2955
3054
|
@media (min-width: 30em) {
|
|
2956
|
-
.
|
|
3055
|
+
._controls_15ezr_48 {
|
|
2957
3056
|
top: 0;
|
|
2958
3057
|
right: 0;
|
|
2959
3058
|
width: 86px;
|
|
@@ -2961,23 +3060,23 @@ body.android {
|
|
|
2961
3060
|
}
|
|
2962
3061
|
}
|
|
2963
3062
|
|
|
2964
|
-
.
|
|
3063
|
+
._gradient_15ezr_63 {
|
|
2965
3064
|
width: 100%;
|
|
2966
3065
|
height: 86px;
|
|
2967
3066
|
}
|
|
2968
3067
|
@media (min-width: 30em) {
|
|
2969
|
-
.
|
|
3068
|
+
._gradient_15ezr_63 {
|
|
2970
3069
|
width: auto;
|
|
2971
3070
|
height: 100%;
|
|
2972
3071
|
right: 0;
|
|
2973
3072
|
}
|
|
2974
3073
|
}
|
|
2975
3074
|
|
|
2976
|
-
.
|
|
3075
|
+
._buttons_15ezr_75 {
|
|
2977
3076
|
display: none;
|
|
2978
3077
|
}
|
|
2979
3078
|
@media (min-width: 30em) {
|
|
2980
|
-
.
|
|
3079
|
+
._buttons_15ezr_75 {
|
|
2981
3080
|
position: absolute;
|
|
2982
3081
|
top: 0;
|
|
2983
3082
|
right: var(--space-5);
|
|
@@ -2988,35 +3087,36 @@ body.android {
|
|
|
2988
3087
|
}
|
|
2989
3088
|
}
|
|
2990
3089
|
|
|
2991
|
-
.
|
|
3090
|
+
._button_15ezr_75 {
|
|
2992
3091
|
min-height: 40px;
|
|
2993
3092
|
background-color: var(--tertiary-bg-color);
|
|
2994
3093
|
padding-bottom: 20px;
|
|
2995
3094
|
}
|
|
2996
3095
|
@media (min-width: 30em) {
|
|
2997
|
-
.
|
|
3096
|
+
._button_15ezr_75 {
|
|
2998
3097
|
display: none;
|
|
2999
3098
|
}
|
|
3000
3099
|
}
|
|
3001
3100
|
|
|
3002
|
-
.
|
|
3101
|
+
._buttonInner_15ezr_101 {
|
|
3003
3102
|
background-color: var(--tertiary-bg-color);
|
|
3004
3103
|
}
|
|
3005
3104
|
|
|
3006
|
-
.
|
|
3105
|
+
._ticker_15ezr_9[data-expanded=true] {
|
|
3007
3106
|
padding-bottom: 0;
|
|
3008
3107
|
}
|
|
3009
3108
|
|
|
3010
|
-
.
|
|
3109
|
+
._ticker_15ezr_9[data-expanded=true] ._tickerScroll_15ezr_26 {
|
|
3011
3110
|
max-height: fit-content;
|
|
3012
3111
|
margin-bottom: -40px;
|
|
3013
3112
|
}
|
|
3014
3113
|
|
|
3015
|
-
.
|
|
3114
|
+
._ticker_15ezr_9[data-expanded=true] ._controls_15ezr_48 {
|
|
3016
3115
|
position: sticky;
|
|
3017
3116
|
margin-top: -40px;
|
|
3018
3117
|
}
|
|
3019
|
-
|
|
3118
|
+
|
|
3119
|
+
._ticker_15ezr_9[data-expanded=true] ._button_15ezr_75 {
|
|
3020
3120
|
position: absolute;
|
|
3021
3121
|
width: 100%;
|
|
3022
3122
|
left: 0;
|
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.
|
|
4
|
+
"version": "v0.1.0-alpha.57",
|
|
5
5
|
"packageManager": "pnpm@8.4.0",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -21,15 +21,17 @@
|
|
|
21
21
|
"./dist/style.css": "./dist/style.css"
|
|
22
22
|
},
|
|
23
23
|
"engines": {
|
|
24
|
-
"node": ">=18"
|
|
24
|
+
"node": ">=18",
|
|
25
|
+
"pnpm": "^8.4.0"
|
|
25
26
|
},
|
|
26
27
|
"scripts": {
|
|
27
28
|
"dev": "storybook dev -p 6006",
|
|
28
29
|
"build": "storybook build",
|
|
29
30
|
"build:lib": "vite build",
|
|
30
31
|
"build:lib:watch": "vite build --watch",
|
|
31
|
-
"lint": "eslint
|
|
32
|
-
"
|
|
32
|
+
"lint": "eslint .",
|
|
33
|
+
"format": "prettier . --write",
|
|
34
|
+
"format:check": "prettier . --check",
|
|
33
35
|
"test": "vitest",
|
|
34
36
|
"test:cov": "vitest run --coverage",
|
|
35
37
|
"prepack": "json -f package.json -I -e \"delete this.devDependencies; delete this.dependencies\"",
|
|
@@ -44,7 +46,7 @@
|
|
|
44
46
|
"preact": "10.21.0"
|
|
45
47
|
},
|
|
46
48
|
"lint-staged": {
|
|
47
|
-
"*.{js,jsx}": "eslint --fix",
|
|
48
|
-
"*.{js,jsx,
|
|
49
|
+
"*.{js,jsx,ts,tsx,svelte}": "eslint --cache --fix",
|
|
50
|
+
"*.{js,jsx,ts,tsx,svelte,css,scss,html,json}": "prettier --write"
|
|
49
51
|
}
|
|
50
52
|
}
|