@guardian/interactive-component-library 0.1.0-alpha.20 → 0.1.0-alpha.21
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
|
@@ -702,6 +702,12 @@ button {
|
|
|
702
702
|
.bg-color--ni {
|
|
703
703
|
background-color: var(--ni) !important;
|
|
704
704
|
}
|
|
705
|
+
.bg-color--other {
|
|
706
|
+
background-color: var(--other) !important;
|
|
707
|
+
}
|
|
708
|
+
.bg-color--undeclared {
|
|
709
|
+
background-color: var(--undeclared) !important;
|
|
710
|
+
}
|
|
705
711
|
/* FILL ----------------------------------------------------------- */
|
|
706
712
|
.fill-color--left {
|
|
707
713
|
fill: var(--left) !important;
|
|
@@ -727,6 +733,9 @@ button {
|
|
|
727
733
|
.fill-color--ni {
|
|
728
734
|
fill: var(--ni) !important;
|
|
729
735
|
}
|
|
736
|
+
.fill-color--other {
|
|
737
|
+
fill: var(--other) !important;
|
|
738
|
+
}
|
|
730
739
|
/* STROKE-COLOR --------------------------------------------------- */
|
|
731
740
|
.stroke-color--left {
|
|
732
741
|
stroke: var(--left) !important;
|
|
@@ -752,6 +761,9 @@ button {
|
|
|
752
761
|
.stroke-color--ni {
|
|
753
762
|
stroke: var(--ni) !important;
|
|
754
763
|
}
|
|
764
|
+
.stroke-color--other {
|
|
765
|
+
stroke: var(--other) !important;
|
|
766
|
+
}
|
|
755
767
|
/* COLOR ----------------------------------------------------------- */
|
|
756
768
|
.color--left {
|
|
757
769
|
color: var(--left) !important;
|
|
@@ -777,6 +789,9 @@ button {
|
|
|
777
789
|
.color--ni {
|
|
778
790
|
color: var(--ni) !important;
|
|
779
791
|
}
|
|
792
|
+
.color--other {
|
|
793
|
+
color: var(--other) !important;
|
|
794
|
+
}
|
|
780
795
|
/* BORDER-COLOR ----------------------------------------------------- */
|
|
781
796
|
.border-color--left {
|
|
782
797
|
border-color: var(--left) !important;
|
|
@@ -802,6 +817,9 @@ button {
|
|
|
802
817
|
.border-color--ni {
|
|
803
818
|
border-color: var(--ni) !important;
|
|
804
819
|
}
|
|
820
|
+
.border-color--other {
|
|
821
|
+
border-color: var(--other) !important;
|
|
822
|
+
}
|
|
805
823
|
/* BEFORE-ELEMENT-COLOR ----------------------------------------------------- */
|
|
806
824
|
.before-color--left:before {
|
|
807
825
|
background-color: var(--left) !important;
|
|
@@ -827,6 +845,9 @@ button {
|
|
|
827
845
|
.before-color--ni:before {
|
|
828
846
|
background-color: var(--ni) !important;
|
|
829
847
|
}
|
|
848
|
+
.before-color--other:before {
|
|
849
|
+
background-color: var(--other) !important;
|
|
850
|
+
}
|
|
830
851
|
body {
|
|
831
852
|
--border-divider-color: #DCDCDC;
|
|
832
853
|
--primary-text-color: #121212;
|
|
@@ -883,7 +904,8 @@ body {
|
|
|
883
904
|
--ecr: #0079B7;
|
|
884
905
|
--id:#DC559D;
|
|
885
906
|
--ni: #333333;
|
|
886
|
-
--
|
|
907
|
+
--other: #707070;
|
|
908
|
+
--undeclared: #ededed;
|
|
887
909
|
}
|
|
888
910
|
@media (prefers-color-scheme: dark) {
|
|
889
911
|
body.ios,
|
|
@@ -941,7 +963,8 @@ body {
|
|
|
941
963
|
--ecr: #009ae1;
|
|
942
964
|
--id: #DC559D;
|
|
943
965
|
--ni: #A1A1A1;
|
|
944
|
-
--
|
|
966
|
+
--other: #707070;
|
|
967
|
+
--undeclared: #ededed;
|
|
945
968
|
}
|
|
946
969
|
}._svg_b5io0_1 {
|
|
947
970
|
display: block;
|
|
@@ -1676,22 +1699,21 @@ body.android {
|
|
|
1676
1699
|
|
|
1677
1700
|
._bar_lo5h3_10 {
|
|
1678
1701
|
}
|
|
1679
|
-
.
|
|
1680
|
-
font-family: var(--text-sans);
|
|
1681
|
-
font-size: var(--sans-small);
|
|
1682
|
-
line-height: var(--sans-line-height);
|
|
1683
|
-
font-weight: 700;
|
|
1684
|
-
margin-left: var(--space-1);
|
|
1685
|
-
}
|
|
1686
|
-
|
|
1687
|
-
._container_vd5ly_9 {
|
|
1702
|
+
._container_1snyq_1 {
|
|
1688
1703
|
font-weight: 700;
|
|
1689
1704
|
min-width: 290px;
|
|
1690
1705
|
max-width: 530px;
|
|
1691
|
-
margin-right: 6px;
|
|
1692
1706
|
}
|
|
1693
1707
|
|
|
1694
|
-
.
|
|
1708
|
+
._img_1snyq_7 {
|
|
1709
|
+
height: 140px;
|
|
1710
|
+
width: 140px;
|
|
1711
|
+
border-radius: 50%;
|
|
1712
|
+
float: right;
|
|
1713
|
+
margin-left: var(--space-2);
|
|
1714
|
+
}
|
|
1715
|
+
|
|
1716
|
+
._title_1snyq_15 {
|
|
1695
1717
|
font-family: var(--text-headline);
|
|
1696
1718
|
font-size: var(--headline-xsmall);
|
|
1697
1719
|
color: var(--primary-text-color);
|
|
@@ -1705,57 +1727,45 @@ body.android {
|
|
|
1705
1727
|
border-radius: 50px;
|
|
1706
1728
|
display: block;
|
|
1707
1729
|
}
|
|
1708
|
-
|
|
1709
1730
|
}
|
|
1710
1731
|
|
|
1711
|
-
.
|
|
1732
|
+
._subtitle_1snyq_31 {
|
|
1712
1733
|
font-family: var(--text-headline);
|
|
1713
1734
|
font-size: var(--headline-xsmall);
|
|
1714
1735
|
color: var(--primary-text-color);
|
|
1736
|
+
line-height: var(--body-line-height);
|
|
1715
1737
|
font-style: italic;
|
|
1716
1738
|
font-weight: 500;
|
|
1717
|
-
line-height: 1.3;
|
|
1718
1739
|
margin-bottom: 6px;
|
|
1719
|
-
|
|
1720
1740
|
}
|
|
1721
1741
|
|
|
1722
|
-
.
|
|
1742
|
+
._small_1snyq_41 {
|
|
1723
1743
|
font-family: var(--text-serif);
|
|
1724
1744
|
font-size: var(--body-small);
|
|
1745
|
+
line-height: var(--body-line-height);
|
|
1725
1746
|
color: var(--primary-text-color);
|
|
1726
|
-
|
|
1727
|
-
font-
|
|
1728
|
-
margin-
|
|
1729
|
-
line-height: 1.2;
|
|
1730
|
-
|
|
1731
|
-
}
|
|
1732
|
-
|
|
1733
|
-
._leftCell_vd5ly_55,._rightCell_vd5ly_55 {
|
|
1734
|
-
display: inline-block;
|
|
1735
|
-
vertical-align: top;
|
|
1736
|
-
}
|
|
1737
|
-
|
|
1738
|
-
._leftCell_vd5ly_55 {
|
|
1739
|
-
width: calc(100% - 150px);
|
|
1740
|
-
}
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
._rightCell_vd5ly_55 {
|
|
1745
|
-
vertical-align: top;
|
|
1747
|
+
font-weight: 700;
|
|
1748
|
+
font-style: normal;
|
|
1749
|
+
margin-top: var(--space-1);
|
|
1746
1750
|
}
|
|
1747
1751
|
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1752
|
+
._blurb_1snyq_51 {
|
|
1753
|
+
font-family: var(--text-serif);
|
|
1754
|
+
font-size: var(--body-small);
|
|
1755
|
+
line-height: var(--body-line-height);
|
|
1756
|
+
color: var(--primary-text-color);
|
|
1757
|
+
font-weight: 300;
|
|
1755
1758
|
}
|
|
1756
1759
|
|
|
1757
|
-
|
|
1758
|
-
|
|
1760
|
+
._footnote_1snyq_59 {
|
|
1761
|
+
font-family: var(--text-serif);
|
|
1762
|
+
font-size: var(--body-small);
|
|
1763
|
+
line-height: var(--body-line-height);
|
|
1764
|
+
font-weight: 300;
|
|
1765
|
+
font-style: italic;
|
|
1766
|
+
color: var(--primary-text-color);
|
|
1767
|
+
margin-top: var(--space-2);
|
|
1768
|
+
}body {
|
|
1759
1769
|
--top-inset: 0;
|
|
1760
1770
|
}
|
|
1761
1771
|
|
|
@@ -1871,29 +1881,51 @@ body.android {
|
|
|
1871
1881
|
color: var(--highlighted-text-color);
|
|
1872
1882
|
background-color: var(--highlight-color);
|
|
1873
1883
|
}
|
|
1874
|
-
|
|
1884
|
+
body {
|
|
1885
|
+
--top-inset: 0;
|
|
1886
|
+
}
|
|
1887
|
+
|
|
1888
|
+
body.android {
|
|
1889
|
+
--top-inset: 58px;
|
|
1890
|
+
}
|
|
1891
|
+
|
|
1892
|
+
._refreshIndicator_3z0ji_9 {
|
|
1875
1893
|
display: flex;
|
|
1876
1894
|
flex-direction: row;
|
|
1877
1895
|
column-gap: var(--space-0);
|
|
1878
|
-
align-items:
|
|
1896
|
+
align-items: stretch;
|
|
1897
|
+
flex-wrap: wrap;
|
|
1879
1898
|
}
|
|
1880
1899
|
|
|
1881
|
-
.
|
|
1882
|
-
|
|
1900
|
+
._icon_3z0ji_17 {
|
|
1901
|
+
display: flex;
|
|
1902
|
+
flex-direction: column;
|
|
1903
|
+
justify-content: center;
|
|
1904
|
+
padding-right: 1px;
|
|
1905
|
+
font-size: var(--sans-small);
|
|
1906
|
+
line-height: var(--sans-line-height);
|
|
1907
|
+
}
|
|
1908
|
+
|
|
1909
|
+
._liveText_3z0ji_26,
|
|
1910
|
+
._refreshText_3z0ji_27 {
|
|
1883
1911
|
font-family: var(--text-sans);
|
|
1884
1912
|
color: var(--secondary-text-color);
|
|
1885
1913
|
line-height: var(--sans-line-height);
|
|
1886
1914
|
font-size: var(--sans-small);
|
|
1887
1915
|
}
|
|
1888
1916
|
|
|
1889
|
-
.
|
|
1917
|
+
._liveText_3z0ji_26 {
|
|
1890
1918
|
font-weight: 700;
|
|
1891
1919
|
}
|
|
1892
1920
|
|
|
1893
|
-
.
|
|
1921
|
+
._refreshText_3z0ji_27 {
|
|
1894
1922
|
margin-left: var(--space-0);
|
|
1895
1923
|
}
|
|
1896
|
-
|
|
1924
|
+
@media (min-width: 71.25em) and (max-width: 81.24em) {
|
|
1925
|
+
._refreshText_3z0ji_27 {
|
|
1926
|
+
flex-basis: 100%;
|
|
1927
|
+
}
|
|
1928
|
+
}body {
|
|
1897
1929
|
--top-inset: 0;
|
|
1898
1930
|
}
|
|
1899
1931
|
|
|
@@ -2074,7 +2106,105 @@ body.android {
|
|
|
2074
2106
|
transform: translateY(0);
|
|
2075
2107
|
}
|
|
2076
2108
|
}
|
|
2077
|
-
|
|
2109
|
+
._button_xeyqm_1 {
|
|
2110
|
+
display: flex;
|
|
2111
|
+
flex-direction: row;
|
|
2112
|
+
align-items: center;
|
|
2113
|
+
gap: var(--space-2);
|
|
2114
|
+
|
|
2115
|
+
border: 1px solid var(--border-divider-color);
|
|
2116
|
+
border-radius: 999px;
|
|
2117
|
+
padding: var(--space-2) var(--space-3);
|
|
2118
|
+
}
|
|
2119
|
+
|
|
2120
|
+
._button_xeyqm_1:hover:enabled {
|
|
2121
|
+
background-color: var(--news-grey-05);
|
|
2122
|
+
cursor: pointer;
|
|
2123
|
+
}
|
|
2124
|
+
|
|
2125
|
+
._icon_xeyqm_17 {
|
|
2126
|
+
width: 17px;
|
|
2127
|
+
height: 17px;
|
|
2128
|
+
}
|
|
2129
|
+
|
|
2130
|
+
._title_xeyqm_22 {
|
|
2131
|
+
color: var(--primary-text-color);
|
|
2132
|
+
font-family: var(--text-sans);
|
|
2133
|
+
font-size: var(--sans-medium);
|
|
2134
|
+
line-height: var(--sans-line-height);
|
|
2135
|
+
}
|
|
2136
|
+
|
|
2137
|
+
._popout_xeyqm_29 {
|
|
2138
|
+
background-color: var(--secondary-bg-color);
|
|
2139
|
+
|
|
2140
|
+
border: 1px solid var(--border-divider-color);
|
|
2141
|
+
border-radius: 8px;
|
|
2142
|
+
|
|
2143
|
+
position: absolute;
|
|
2144
|
+
margin-top: var(--space-2);
|
|
2145
|
+
padding: var(--space-2);
|
|
2146
|
+
|
|
2147
|
+
display: flex;
|
|
2148
|
+
flex-direction: column;
|
|
2149
|
+
gap: var(--space-2);
|
|
2150
|
+
}
|
|
2151
|
+
|
|
2152
|
+
._hint_xeyqm_44 {
|
|
2153
|
+
color: var(--secondary-text-color);
|
|
2154
|
+
font-family: var(--text-sans);
|
|
2155
|
+
font-size: var(--sans-xsmall);
|
|
2156
|
+
line-height: var(--sans-line-height);
|
|
2157
|
+
}
|
|
2158
|
+
|
|
2159
|
+
._option_xeyqm_51 {
|
|
2160
|
+
position: relative;
|
|
2161
|
+
display: flex;
|
|
2162
|
+
flex-direction: row;
|
|
2163
|
+
align-items: center;
|
|
2164
|
+
gap: var(--space-2);
|
|
2165
|
+
max-width: 175px;
|
|
2166
|
+
|
|
2167
|
+
border: 1px solid var(--border-divider-color);
|
|
2168
|
+
border-radius: 8px;
|
|
2169
|
+
padding: var(--space-1) var(--space-2);
|
|
2170
|
+
|
|
2171
|
+
background-color: var(--primary-bg-color);
|
|
2172
|
+
}
|
|
2173
|
+
|
|
2174
|
+
._option_xeyqm_51:hover:enabled {
|
|
2175
|
+
background-color: var(--news-grey-05);
|
|
2176
|
+
cursor: pointer;
|
|
2177
|
+
}
|
|
2178
|
+
|
|
2179
|
+
._optionIcon_xeyqm_71 {
|
|
2180
|
+
width: 23px;
|
|
2181
|
+
height: 23px;
|
|
2182
|
+
}
|
|
2183
|
+
|
|
2184
|
+
._optionTitle_xeyqm_76 {
|
|
2185
|
+
color: var(--primary-text-color);
|
|
2186
|
+
font-family: var(--text-sans);
|
|
2187
|
+
font-size: var(--sans-xsmall);
|
|
2188
|
+
line-height: var(--sans-line-height);
|
|
2189
|
+
font-weight: 700;
|
|
2190
|
+
}
|
|
2191
|
+
|
|
2192
|
+
._optionDescription_xeyqm_84 {
|
|
2193
|
+
color: var(--primary-text-color);
|
|
2194
|
+
font-family: var(--text-sans);
|
|
2195
|
+
font-size: var(--sans-xsmall);
|
|
2196
|
+
line-height: var(--sans-line-height);
|
|
2197
|
+
}
|
|
2198
|
+
|
|
2199
|
+
._checkmark_xeyqm_91 {
|
|
2200
|
+
position: absolute;
|
|
2201
|
+
top: 4px;
|
|
2202
|
+
right: 6px;
|
|
2203
|
+
}
|
|
2204
|
+
|
|
2205
|
+
._checkmarkPath_xeyqm_97 {
|
|
2206
|
+
fill: var(--primary-text-color);
|
|
2207
|
+
}body {
|
|
2078
2208
|
--top-inset: 0;
|
|
2079
2209
|
}
|
|
2080
2210
|
|
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.21",
|
|
5
5
|
"packageManager": "pnpm@8.4.0",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"./dist/style.css": "./dist/style.css"
|
|
22
22
|
},
|
|
23
23
|
"engines": {
|
|
24
|
-
"node": "18"
|
|
24
|
+
"node": ">=18"
|
|
25
25
|
},
|
|
26
26
|
"scripts": {
|
|
27
27
|
"dev": "storybook dev -p 6006",
|
|
@@ -38,9 +38,9 @@
|
|
|
38
38
|
"peerDependencies": {
|
|
39
39
|
"d3-geo": "^3.1.1",
|
|
40
40
|
"d3-scale": "^4.0.2",
|
|
41
|
-
"d3-zoom": "^3.0.0",
|
|
42
41
|
"d3-selection": "^3.0.0",
|
|
43
42
|
"d3-transition": "^3.0.1",
|
|
43
|
+
"d3-zoom": "^3.0.0",
|
|
44
44
|
"preact": "^10.12.1"
|
|
45
45
|
},
|
|
46
46
|
"lint-staged": {
|