@guardian/interactive-component-library 0.1.0-alpha.28 → 0.1.0-alpha.30
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
|
@@ -1865,13 +1865,17 @@ body.android {
|
|
|
1865
1865
|
--top-inset: 58px;
|
|
1866
1866
|
}
|
|
1867
1867
|
|
|
1868
|
-
.
|
|
1868
|
+
._borderTop_lw99b_9::before {
|
|
1869
|
+
border-top: 1px solid var(--border-divider-color);
|
|
1870
|
+
}
|
|
1871
|
+
|
|
1872
|
+
._section_lw99b_13 {
|
|
1869
1873
|
position: relative;
|
|
1870
1874
|
z-index: 0;
|
|
1871
1875
|
margin-bottom: var(--space-8);
|
|
1872
1876
|
}
|
|
1873
1877
|
|
|
1874
|
-
.
|
|
1878
|
+
._section_lw99b_13::before {
|
|
1875
1879
|
display: block;
|
|
1876
1880
|
content: "";
|
|
1877
1881
|
position: absolute;
|
|
@@ -1884,42 +1888,77 @@ body.android {
|
|
|
1884
1888
|
z-index: -1;
|
|
1885
1889
|
}
|
|
1886
1890
|
@media (min-width: 30em) {
|
|
1887
|
-
.
|
|
1891
|
+
._section_lw99b_13::before {
|
|
1888
1892
|
transform: translate(-20px);
|
|
1889
1893
|
width: calc(100% + 40px);
|
|
1890
1894
|
}
|
|
1891
1895
|
}
|
|
1892
1896
|
@media (min-width: 46.25em) {
|
|
1893
|
-
.
|
|
1897
|
+
._section_lw99b_13::before {
|
|
1894
1898
|
width: calc(100% + 60px);
|
|
1895
1899
|
}
|
|
1896
1900
|
}
|
|
1897
1901
|
@media (min-width: 71.25em) {
|
|
1898
|
-
.
|
|
1902
|
+
._section_lw99b_13::before {
|
|
1899
1903
|
transform: translate(-180px);
|
|
1900
1904
|
width: calc(100% + 200px);
|
|
1901
1905
|
background-color: transparent;
|
|
1902
1906
|
}
|
|
1903
1907
|
}
|
|
1904
1908
|
@media (min-width: 81.25em) {
|
|
1905
|
-
.
|
|
1909
|
+
._section_lw99b_13::before {
|
|
1906
1910
|
transform: translate(-260px);
|
|
1907
1911
|
width: calc(100% + 280px);
|
|
1908
1912
|
}
|
|
1909
1913
|
}
|
|
1910
1914
|
|
|
1911
|
-
.
|
|
1912
|
-
|
|
1915
|
+
._section_lw99b_13._fullWidth_lw99b_56 {
|
|
1916
|
+
transform: translate(-10px);
|
|
1917
|
+
width: calc(100% + 20px);
|
|
1918
|
+
margin: 0;
|
|
1919
|
+
padding: 0;
|
|
1920
|
+
background-color: var(--background-color);
|
|
1921
|
+
}
|
|
1922
|
+
@media (min-width: 30em) {
|
|
1923
|
+
._section_lw99b_13._fullWidth_lw99b_56 {
|
|
1924
|
+
transform: translate(-20px);
|
|
1925
|
+
width: calc(100% + 40px);
|
|
1926
|
+
}
|
|
1927
|
+
}
|
|
1928
|
+
@media (min-width: 46.25em) {
|
|
1929
|
+
._section_lw99b_13._fullWidth_lw99b_56 {
|
|
1930
|
+
transform: translate(-20px);
|
|
1931
|
+
width: calc(100% + 60px);
|
|
1932
|
+
}
|
|
1933
|
+
}
|
|
1934
|
+
@media (min-width: 71.25em) {
|
|
1935
|
+
._section_lw99b_13._fullWidth_lw99b_56 {
|
|
1936
|
+
transform: translate(-180px);
|
|
1937
|
+
width: calc(100% + 200px);
|
|
1938
|
+
}
|
|
1939
|
+
}
|
|
1940
|
+
@media (min-width: 81.25em) {
|
|
1941
|
+
._section_lw99b_13._fullWidth_lw99b_56 {
|
|
1942
|
+
transform: translate(-260px);
|
|
1943
|
+
width: calc(100% + 280px);
|
|
1944
|
+
}
|
|
1945
|
+
}
|
|
1946
|
+
|
|
1947
|
+
._section_lw99b_13._fullWidth_lw99b_56::before {
|
|
1948
|
+
transform: none;
|
|
1949
|
+
width: 100%;
|
|
1950
|
+
height: 100%;
|
|
1951
|
+
background-color: transparent;
|
|
1913
1952
|
}
|
|
1914
1953
|
|
|
1915
|
-
.
|
|
1954
|
+
._header_lw99b_95 {
|
|
1916
1955
|
color: var(--primary-text-color);
|
|
1917
1956
|
padding-top: var(--space-2);
|
|
1918
1957
|
margin-bottom: var(--space-5);
|
|
1919
1958
|
}
|
|
1920
1959
|
|
|
1921
1960
|
@media (min-width: 71.25em) {
|
|
1922
|
-
body:not(.ios, .android) .
|
|
1961
|
+
body:not(.ios, .android) ._header_lw99b_95 {
|
|
1923
1962
|
position: absolute;
|
|
1924
1963
|
max-width: 160px;
|
|
1925
1964
|
transform: translateX(-170px);
|
|
@@ -1927,23 +1966,38 @@ body.android {
|
|
|
1927
1966
|
}
|
|
1928
1967
|
}
|
|
1929
1968
|
@media (min-width: 81.25em) {
|
|
1930
|
-
body:not(.ios, .android) .
|
|
1969
|
+
body:not(.ios, .android) ._header_lw99b_95 {
|
|
1931
1970
|
max-width: 220px;
|
|
1932
1971
|
transform: translateX(-250px);
|
|
1933
1972
|
}
|
|
1934
1973
|
}
|
|
1935
1974
|
|
|
1936
|
-
.
|
|
1975
|
+
body ._header_lw99b_95._fullWidth_lw99b_56 {
|
|
1976
|
+
position: absolute;
|
|
1977
|
+
top: 0;
|
|
1978
|
+
left: 0;
|
|
1979
|
+
z-index: 2;
|
|
1980
|
+
transform: none;
|
|
1981
|
+
padding-top: 0;
|
|
1982
|
+
margin-bottom: var(--space-2);
|
|
1983
|
+
max-width: 100%;
|
|
1984
|
+
}
|
|
1985
|
+
@media (min-width: 71.25em) {
|
|
1986
|
+
body ._header_lw99b_95._fullWidth_lw99b_56 {
|
|
1987
|
+
margin-bottom: 0;
|
|
1988
|
+
}
|
|
1989
|
+
}
|
|
1990
|
+
|
|
1991
|
+
._content_lw99b_132 {
|
|
1937
1992
|
position: relative;
|
|
1938
1993
|
padding-top: 0;
|
|
1939
1994
|
color: var(--primary-text-color);
|
|
1940
1995
|
}
|
|
1941
|
-
|
|
1942
1996
|
@media (min-width: 71.25em) {
|
|
1943
|
-
|
|
1997
|
+
._content_lw99b_132 {
|
|
1944
1998
|
padding-top: var(--space-2);
|
|
1945
1999
|
}
|
|
1946
|
-
|
|
2000
|
+
._content_lw99b_132::before {
|
|
1947
2001
|
content: "";
|
|
1948
2002
|
position: absolute;
|
|
1949
2003
|
top: 0;
|
|
@@ -1954,6 +2008,14 @@ body.android {
|
|
|
1954
2008
|
background-color: var(--background-color);
|
|
1955
2009
|
z-index: -2;
|
|
1956
2010
|
}
|
|
2011
|
+
}
|
|
2012
|
+
|
|
2013
|
+
._content_lw99b_132._fullWidth_lw99b_56 {
|
|
2014
|
+
padding-top: 0;
|
|
2015
|
+
}
|
|
2016
|
+
|
|
2017
|
+
._content_lw99b_132._fullWidth_lw99b_56::before {
|
|
2018
|
+
display: none;
|
|
1957
2019
|
}._text_lo5h3_1 {
|
|
1958
2020
|
font-family: var(--text-sans);
|
|
1959
2021
|
fill: var(--primary-text-color);
|
|
@@ -2030,27 +2092,6 @@ body.android {
|
|
|
2030
2092
|
color: var(--primary-text-color);
|
|
2031
2093
|
margin-top: var(--space-2);
|
|
2032
2094
|
}
|
|
2033
|
-
body {
|
|
2034
|
-
--top-inset: 0;
|
|
2035
|
-
}
|
|
2036
|
-
|
|
2037
|
-
body.android {
|
|
2038
|
-
--top-inset: 58px;
|
|
2039
|
-
}
|
|
2040
|
-
|
|
2041
|
-
._path_1cwd5_9 {
|
|
2042
|
-
stroke: var(--secondary-line-color);
|
|
2043
|
-
fill: none;
|
|
2044
|
-
}._container_cyrny_1 {
|
|
2045
|
-
width: 100%;
|
|
2046
|
-
height: 100%;
|
|
2047
|
-
}
|
|
2048
|
-
|
|
2049
|
-
._svg_cyrny_6 {
|
|
2050
|
-
fill: none;
|
|
2051
|
-
stroke: #121212;
|
|
2052
|
-
stroke-width: 1;
|
|
2053
|
-
}
|
|
2054
2095
|
._container_azu4a_1 {
|
|
2055
2096
|
background-color: var(--quaternary-bg-color);
|
|
2056
2097
|
border-radius: 4px;
|
|
@@ -2371,40 +2412,44 @@ body.android {
|
|
|
2371
2412
|
transform: translateY(0);
|
|
2372
2413
|
}
|
|
2373
2414
|
}
|
|
2374
|
-
.
|
|
2415
|
+
._container_6u92g_1 {
|
|
2375
2416
|
position: relative;
|
|
2376
|
-
display: inline-block;
|
|
2377
2417
|
}
|
|
2378
2418
|
|
|
2379
|
-
.
|
|
2419
|
+
._button_6u92g_5 {
|
|
2380
2420
|
display: flex;
|
|
2381
2421
|
flex-direction: row;
|
|
2382
2422
|
align-items: center;
|
|
2383
2423
|
gap: var(--space-2);
|
|
2424
|
+
float: left;
|
|
2384
2425
|
|
|
2385
2426
|
border: 1px solid var(--border-divider-color);
|
|
2386
2427
|
border-radius: 999px;
|
|
2387
2428
|
padding: var(--space-2) var(--space-3);
|
|
2388
2429
|
}
|
|
2389
2430
|
|
|
2390
|
-
.
|
|
2431
|
+
._button_6u92g_5:hover:enabled {
|
|
2391
2432
|
background-color: var(--news-grey-05);
|
|
2392
2433
|
cursor: pointer;
|
|
2393
2434
|
}
|
|
2394
2435
|
|
|
2395
|
-
.
|
|
2436
|
+
._icon_6u92g_22 {
|
|
2396
2437
|
width: 17px;
|
|
2397
2438
|
height: 17px;
|
|
2398
2439
|
}
|
|
2399
2440
|
|
|
2400
|
-
.
|
|
2441
|
+
._title_6u92g_27 {
|
|
2401
2442
|
color: var(--primary-text-color);
|
|
2402
2443
|
font-family: var(--text-sans);
|
|
2403
2444
|
font-size: var(--sans-medium);
|
|
2404
2445
|
line-height: var(--sans-line-height);
|
|
2405
2446
|
}
|
|
2406
2447
|
|
|
2407
|
-
.
|
|
2448
|
+
._clearFix_6u92g_34 {
|
|
2449
|
+
clear: both;
|
|
2450
|
+
}
|
|
2451
|
+
|
|
2452
|
+
._popout_6u92g_38 {
|
|
2408
2453
|
min-width: 100%;
|
|
2409
2454
|
background-color: var(--secondary-bg-color);
|
|
2410
2455
|
|
|
@@ -2421,27 +2466,27 @@ body.android {
|
|
|
2421
2466
|
gap: var(--space-2);
|
|
2422
2467
|
}
|
|
2423
2468
|
|
|
2424
|
-
.
|
|
2469
|
+
._hint_6u92g_55 {
|
|
2425
2470
|
color: var(--secondary-text-color);
|
|
2426
2471
|
font-family: var(--text-sans);
|
|
2427
2472
|
font-size: var(--sans-xsmall);
|
|
2428
2473
|
line-height: var(--sans-line-height);
|
|
2429
2474
|
}
|
|
2430
2475
|
|
|
2431
|
-
.
|
|
2476
|
+
._groupHeader_6u92g_62 {
|
|
2432
2477
|
color: var(--primary-text-color);
|
|
2433
2478
|
font-family: var(--text-sans);
|
|
2434
2479
|
font-size: var(--sans-xsmall);
|
|
2435
2480
|
line-height: var(--sans-line-height);
|
|
2436
2481
|
}
|
|
2437
2482
|
|
|
2438
|
-
.
|
|
2483
|
+
._option_6u92g_69 {
|
|
2439
2484
|
position: relative;
|
|
2440
2485
|
display: flex;
|
|
2441
2486
|
flex-direction: row;
|
|
2442
2487
|
align-items: center;
|
|
2443
2488
|
gap: var(--space-2);
|
|
2444
|
-
|
|
2489
|
+
min-height: 40px;
|
|
2445
2490
|
|
|
2446
2491
|
border: 1px solid var(--border-divider-color);
|
|
2447
2492
|
border-radius: 8px;
|
|
@@ -2451,17 +2496,21 @@ body.android {
|
|
|
2451
2496
|
background-color: var(--primary-bg-color);
|
|
2452
2497
|
}
|
|
2453
2498
|
|
|
2454
|
-
.
|
|
2499
|
+
._option_6u92g_69._selected_6u92g_85 {
|
|
2500
|
+
border: 1px solid var(--primary-text-color);
|
|
2501
|
+
}
|
|
2502
|
+
|
|
2503
|
+
._option_6u92g_69:hover:enabled {
|
|
2455
2504
|
background-color: var(--news-grey-05);
|
|
2456
2505
|
cursor: pointer;
|
|
2457
2506
|
}
|
|
2458
2507
|
|
|
2459
|
-
.
|
|
2508
|
+
._optionIcon_6u92g_94 {
|
|
2460
2509
|
width: 23px;
|
|
2461
2510
|
height: 23px;
|
|
2462
2511
|
}
|
|
2463
2512
|
|
|
2464
|
-
.
|
|
2513
|
+
._optionTitle_6u92g_99 {
|
|
2465
2514
|
color: var(--primary-text-color);
|
|
2466
2515
|
font-family: var(--text-sans);
|
|
2467
2516
|
font-size: var(--sans-xsmall);
|
|
@@ -2469,20 +2518,20 @@ body.android {
|
|
|
2469
2518
|
font-weight: 700;
|
|
2470
2519
|
}
|
|
2471
2520
|
|
|
2472
|
-
.
|
|
2521
|
+
._optionDescription_6u92g_107 {
|
|
2473
2522
|
color: var(--primary-text-color);
|
|
2474
2523
|
font-family: var(--text-sans);
|
|
2475
2524
|
font-size: var(--sans-xsmall);
|
|
2476
2525
|
line-height: var(--sans-line-height);
|
|
2477
2526
|
}
|
|
2478
2527
|
|
|
2479
|
-
.
|
|
2528
|
+
._checkmark_6u92g_114 {
|
|
2480
2529
|
position: absolute;
|
|
2481
2530
|
top: 4px;
|
|
2482
2531
|
right: 6px;
|
|
2483
2532
|
}
|
|
2484
2533
|
|
|
2485
|
-
.
|
|
2534
|
+
._checkmarkPath_6u92g_120 {
|
|
2486
2535
|
fill: var(--primary-text-color);
|
|
2487
2536
|
}
|
|
2488
2537
|
body {
|
|
@@ -2493,6 +2542,158 @@ body.android {
|
|
|
2493
2542
|
--top-inset: 58px;
|
|
2494
2543
|
}
|
|
2495
2544
|
|
|
2545
|
+
._path_1cwd5_9 {
|
|
2546
|
+
stroke: var(--secondary-line-color);
|
|
2547
|
+
fill: none;
|
|
2548
|
+
}._zoomControl_1qhlz_1 {
|
|
2549
|
+
display: inline-flex;
|
|
2550
|
+
flex-direction: column;
|
|
2551
|
+
gap: var(--space-2);
|
|
2552
|
+
}
|
|
2553
|
+
|
|
2554
|
+
._button_1qhlz_7 {
|
|
2555
|
+
width: 44px;
|
|
2556
|
+
height: 44px;
|
|
2557
|
+
margin: 0;
|
|
2558
|
+
padding: 0;
|
|
2559
|
+
|
|
2560
|
+
border: 1px solid var(--border-divider-color);
|
|
2561
|
+
border-radius: 999px;
|
|
2562
|
+
|
|
2563
|
+
background-color: var(--primary-bg-color);
|
|
2564
|
+
|
|
2565
|
+
display: flex;
|
|
2566
|
+
justify-content: center;
|
|
2567
|
+
align-items: center;
|
|
2568
|
+
|
|
2569
|
+
cursor: pointer;
|
|
2570
|
+
}
|
|
2571
|
+
|
|
2572
|
+
._button_1qhlz_7:hover:enabled {
|
|
2573
|
+
background-color: var(--news-grey-05);
|
|
2574
|
+
}
|
|
2575
|
+
._container_aj5oa_1 {
|
|
2576
|
+
width: 100%;
|
|
2577
|
+
height: 100%;
|
|
2578
|
+
position: relative;
|
|
2579
|
+
|
|
2580
|
+
border: 1px solid var(--border-divider-color);
|
|
2581
|
+
}
|
|
2582
|
+
|
|
2583
|
+
._svg_aj5oa_9 {
|
|
2584
|
+
fill: none;
|
|
2585
|
+
stroke: #121212;
|
|
2586
|
+
stroke-width: 1;
|
|
2587
|
+
}
|
|
2588
|
+
|
|
2589
|
+
._controls_aj5oa_15 {
|
|
2590
|
+
position: absolute;
|
|
2591
|
+
top: 0;
|
|
2592
|
+
left: 0;
|
|
2593
|
+
width: 100%;
|
|
2594
|
+
height: 100%;
|
|
2595
|
+
}
|
|
2596
|
+
|
|
2597
|
+
._zoomControl_aj5oa_23 {
|
|
2598
|
+
position: absolute;
|
|
2599
|
+
top: 0;
|
|
2600
|
+
right: 0;
|
|
2601
|
+
}
|
|
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
|
+
body {
|
|
2635
|
+
--top-inset: 0;
|
|
2636
|
+
}
|
|
2637
|
+
|
|
2638
|
+
body.android {
|
|
2639
|
+
--top-inset: 58px;
|
|
2640
|
+
}
|
|
2641
|
+
|
|
2642
|
+
._mapContainer_aknz0_9 {
|
|
2643
|
+
position: relative;
|
|
2644
|
+
width: 100%;
|
|
2645
|
+
height: 100%;
|
|
2646
|
+
}
|
|
2647
|
+
|
|
2648
|
+
._helpTextContainer_aknz0_15 {
|
|
2649
|
+
position: absolute;
|
|
2650
|
+
width: 100%;
|
|
2651
|
+
height: 100%;
|
|
2652
|
+
top: 0;
|
|
2653
|
+
left: 0;
|
|
2654
|
+
z-index: 9;
|
|
2655
|
+
pointer-events: none;
|
|
2656
|
+
display: flex;
|
|
2657
|
+
justify-content: center;
|
|
2658
|
+
align-items: flex-end;
|
|
2659
|
+
transition: opacity 0.2s linear;
|
|
2660
|
+
}
|
|
2661
|
+
|
|
2662
|
+
._helpText_aknz0_15 {
|
|
2663
|
+
margin-top: var(--space-5);
|
|
2664
|
+
font-family: var(--text-sans);
|
|
2665
|
+
font-weight: 700;
|
|
2666
|
+
font-size: var(--sans-small);
|
|
2667
|
+
line-height: var(--sans-line-height);
|
|
2668
|
+
color: #a1a1a1 !important;
|
|
2669
|
+
transition: all 0.2s linear;
|
|
2670
|
+
margin-bottom: var(--space-3);
|
|
2671
|
+
}
|
|
2672
|
+
|
|
2673
|
+
._highlight_aknz0_40 {
|
|
2674
|
+
color: #121212 !important;
|
|
2675
|
+
text-shadow: 1px 1px 0px white, -1px -1px 0px white, -1px 1px 0px white, 1px -1px white;
|
|
2676
|
+
}
|
|
2677
|
+
|
|
2678
|
+
._zoomControl_aknz0_45 {
|
|
2679
|
+
position: absolute;
|
|
2680
|
+
top: var(--space-10);
|
|
2681
|
+
right: 10px;
|
|
2682
|
+
z-index: 10;
|
|
2683
|
+
}
|
|
2684
|
+
@media (min-width: 71.25em) {
|
|
2685
|
+
._zoomControl_aknz0_45 {
|
|
2686
|
+
top: var(--space-5);
|
|
2687
|
+
right: var(--space-5);
|
|
2688
|
+
}
|
|
2689
|
+
}body {
|
|
2690
|
+
--top-inset: 0;
|
|
2691
|
+
}
|
|
2692
|
+
|
|
2693
|
+
body.android {
|
|
2694
|
+
--top-inset: 58px;
|
|
2695
|
+
}
|
|
2696
|
+
|
|
2496
2697
|
._coalitionsWrapper_4egbd_9 {
|
|
2497
2698
|
max-width: 100%;
|
|
2498
2699
|
position: relative;
|
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.30",
|
|
5
5
|
"packageManager": "pnpm@8.4.0",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -40,12 +40,11 @@
|
|
|
40
40
|
"d3-geo": "^3.1.1",
|
|
41
41
|
"d3-scale": "^4.0.2",
|
|
42
42
|
"d3-selection": "^3.0.0",
|
|
43
|
-
"d3-transition": "^3.0.1",
|
|
44
43
|
"d3-zoom": "^3.0.0",
|
|
45
|
-
"preact": "
|
|
44
|
+
"preact": "10.21.0"
|
|
46
45
|
},
|
|
47
46
|
"lint-staged": {
|
|
48
|
-
"*.{js,jsx}": "eslint --fix
|
|
47
|
+
"*.{js,jsx}": "eslint --fix",
|
|
49
48
|
"*.{js,jsx,json,css,scss,md}": "prettier --write"
|
|
50
49
|
}
|
|
51
50
|
}
|