@guardian/interactive-component-library 0.5.1 → 0.5.3
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/components/molecules/canvas-map/lib/Feature.d.ts +4 -1
- package/dist/components/molecules/canvas-map/lib/Feature.js +3 -0
- package/dist/components/molecules/canvas-map/lib/layers/TextLayer.d.ts +49 -15
- package/dist/components/molecules/canvas-map/lib/layers/TextLayer.js +4 -1
- package/dist/components/molecules/canvas-map/lib/layers/VectorLayer.d.ts +36 -10
- package/dist/components/molecules/canvas-map/lib/layers/VectorLayer.js +6 -3
- package/dist/components/molecules/canvas-map/lib/renderers/MapRenderer.d.ts +14 -0
- package/dist/components/molecules/canvas-map/lib/renderers/MapRenderer.js +52 -8
- package/dist/components/molecules/canvas-map/lib/renderers/TextLayerRenderer.d.ts +50 -5
- package/dist/components/molecules/canvas-map/lib/renderers/TextLayerRenderer.js +171 -24
- package/dist/components/molecules/canvas-map/lib/renderers/VectorLayerRenderer.d.ts +13 -6
- package/dist/components/molecules/canvas-map/lib/renderers/VectorLayerRenderer.js +12 -42
- package/dist/components/molecules/canvas-map/lib/sources/VectorSource.d.ts +24 -6
- package/dist/components/molecules/canvas-map/lib/sources/VectorSource.js +18 -0
- package/dist/components/molecules/canvas-map/lib/styles/Style.d.ts +40 -11
- package/dist/components/molecules/canvas-map/lib/styles/Style.js +7 -0
- package/dist/components/molecules/canvas-map/lib/styles/Text.d.ts +184 -11
- package/dist/components/molecules/canvas-map/lib/styles/Text.js +18 -3
- package/dist/components/molecules/result-summary/index.d.ts +2 -1
- package/dist/components/molecules/result-summary/index.js +30 -5
- package/dist/components/molecules/result-summary/style.module.css.js +12 -3
- package/dist/components/organisms/ticker/index.d.ts +2 -1
- package/dist/components/organisms/ticker/index.js +4 -1
- package/dist/components/organisms/ticker/lib/TickerControlsDesktop.js +4 -4
- package/dist/components/organisms/ticker/lib/TickerControlsMobileVertical.js +5 -5
- package/dist/components/organisms/ticker/style.module.scss.js +2 -2
- package/dist/style.css +21 -2
- package/package.json +1 -1
|
@@ -4,7 +4,7 @@ import "preact/hooks";
|
|
|
4
4
|
import "../../../particles/info-button/index.js";
|
|
5
5
|
import "../../../particles/relative-time-sentence/index.js";
|
|
6
6
|
import { Button } from "../../../particles/button/index.js";
|
|
7
|
-
import
|
|
7
|
+
import defaultStyles from "../style.module.scss.js";
|
|
8
8
|
const TickerControlsMobileVertical = ({
|
|
9
9
|
hideButtons,
|
|
10
10
|
controlsRef,
|
|
@@ -15,15 +15,15 @@ const TickerControlsMobileVertical = ({
|
|
|
15
15
|
"div",
|
|
16
16
|
{
|
|
17
17
|
ref: controlsRef,
|
|
18
|
-
className:
|
|
18
|
+
className: defaultStyles.controls,
|
|
19
19
|
style: hideButtons && { display: "none" },
|
|
20
20
|
children: [
|
|
21
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
22
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
21
|
+
/* @__PURE__ */ jsx("div", { className: defaultStyles.gradient, children: /* @__PURE__ */ jsx(Gradient, {}) }),
|
|
22
|
+
/* @__PURE__ */ jsx("div", { className: defaultStyles.button, children: /* @__PURE__ */ jsx(
|
|
23
23
|
Button,
|
|
24
24
|
{
|
|
25
25
|
type: "regular",
|
|
26
|
-
styles: { buttonInner:
|
|
26
|
+
styles: { buttonInner: defaultStyles.buttonInner },
|
|
27
27
|
onClick: toggleExpandedState,
|
|
28
28
|
children: buttonText
|
|
29
29
|
}
|
|
@@ -10,7 +10,7 @@ const gradientHorizontal = "_gradientHorizontal_1at7j_103";
|
|
|
10
10
|
const buttons = "_buttons_1at7j_118";
|
|
11
11
|
const button = "_button_1at7j_118";
|
|
12
12
|
const buttonInner = "_buttonInner_1at7j_144";
|
|
13
|
-
const
|
|
13
|
+
const defaultStyles = {
|
|
14
14
|
tickerVertical,
|
|
15
15
|
ticker,
|
|
16
16
|
tickerItems,
|
|
@@ -29,7 +29,7 @@ export {
|
|
|
29
29
|
buttonInner,
|
|
30
30
|
buttons,
|
|
31
31
|
controls,
|
|
32
|
-
|
|
32
|
+
defaultStyles as default,
|
|
33
33
|
gradient,
|
|
34
34
|
gradientHorizontal,
|
|
35
35
|
ticker,
|
package/dist/style.css
CHANGED
|
@@ -2443,7 +2443,7 @@ body ._header_1xpz0_150._fullWidth_1xpz0_39 {
|
|
|
2443
2443
|
color: var(--primary-text-color);
|
|
2444
2444
|
margin-top: var(--space-2);
|
|
2445
2445
|
}
|
|
2446
|
-
.
|
|
2446
|
+
._container_14h9i_1 {
|
|
2447
2447
|
background-color: var(--quaternary-bg-color);
|
|
2448
2448
|
border-radius: 4px;
|
|
2449
2449
|
padding: 4px 8px 6px 8px;
|
|
@@ -2454,7 +2454,26 @@ body ._header_1xpz0_150._fullWidth_1xpz0_39 {
|
|
|
2454
2454
|
height: 100%;
|
|
2455
2455
|
}
|
|
2456
2456
|
|
|
2457
|
-
.
|
|
2457
|
+
._containerSlim_14h9i_12 {
|
|
2458
|
+
min-width: 260px;
|
|
2459
|
+
display: inline-block;
|
|
2460
|
+
}
|
|
2461
|
+
|
|
2462
|
+
._titleSlim_14h9i_17 {
|
|
2463
|
+
display: inline;
|
|
2464
|
+
color: var(--primary-text-color) !important;
|
|
2465
|
+
font-family: var(--text-sans) !important;
|
|
2466
|
+
font-size: var(--sans-small) !important;
|
|
2467
|
+
line-height: var(--sans-line-height) !important;
|
|
2468
|
+
font-weight: 700 !important;
|
|
2469
|
+
margin-left: var(--space-1) !important;
|
|
2470
|
+
}
|
|
2471
|
+
|
|
2472
|
+
._dateStampLinePosition_14h9i_27 {
|
|
2473
|
+
display: block;
|
|
2474
|
+
}
|
|
2475
|
+
|
|
2476
|
+
._paragraph_14h9i_31 {
|
|
2458
2477
|
font-family: var(--text-sans);
|
|
2459
2478
|
font-size: var(--sans-xsmall);
|
|
2460
2479
|
line-height: var(--sans-line-height);
|