@guardian/interactive-component-library 0.8.9 → 0.9.1

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.
@@ -1,11 +1,11 @@
1
- const container = "_container_1jf3s_1";
2
- const copyColumn = "_copyColumn_1jf3s_6";
3
- const img = "_img_1jf3s_11";
4
- const title = "_title_1jf3s_22";
5
- const subtitle = "_subtitle_1jf3s_38";
6
- const small = "_small_1jf3s_48";
7
- const blurb = "_blurb_1jf3s_58";
8
- const footnote = "_footnote_1jf3s_66";
1
+ const container = "_container_15sjw_1";
2
+ const copyColumn = "_copyColumn_15sjw_6";
3
+ const img = "_img_15sjw_10";
4
+ const title = "_title_15sjw_21";
5
+ const subtitle = "_subtitle_15sjw_37";
6
+ const small = "_small_15sjw_47";
7
+ const blurb = "_blurb_15sjw_57";
8
+ const footnote = "_footnote_15sjw_65";
9
9
  const defaultStyles = {
10
10
  container,
11
11
  copyColumn,
@@ -32,6 +32,14 @@ const SlopeChart = ({
32
32
  }, [lines, y2Label, yScale]);
33
33
  styles = mergeStyles({ ...defaultStyles }, styles);
34
34
  const chart = /* @__PURE__ */ jsx("svg", { className: styles.svg, width, height, id: svgId, children: /* @__PURE__ */ jsxs("g", { transform: `translate(${padding.left} ${padding.top})`, children: [
35
+ /* @__PURE__ */ jsx("g", { children: /* @__PURE__ */ jsx(
36
+ "rect",
37
+ {
38
+ width: contentWidth,
39
+ height: contentHeight,
40
+ className: styles.background
41
+ }
42
+ ) }),
35
43
  /* @__PURE__ */ jsxs("g", { transform: `translate(0 ${contentHeight})`, children: [
36
44
  /* @__PURE__ */ jsx(
37
45
  "line",
@@ -1,13 +1,14 @@
1
- const slopeChartContainer = "_slopeChartContainer_nmjjj_1";
2
- const svg = "_svg_nmjjj_5";
3
- const line = "_line_nmjjj_9";
4
- const lineWhite = "_lineWhite_nmjjj_14";
5
- const circle = "_circle_nmjjj_19";
6
- const label = "_label_nmjjj_23";
7
- const y1Label = "_y1Label_nmjjj_29";
8
- const y2Label = "_y2Label_nmjjj_33";
9
- const axis = "_axis_nmjjj_37";
10
- const axisLabel = "_axisLabel_nmjjj_42";
1
+ const slopeChartContainer = "_slopeChartContainer_1678z_1";
2
+ const svg = "_svg_1678z_5";
3
+ const line = "_line_1678z_9";
4
+ const lineWhite = "_lineWhite_1678z_14";
5
+ const circle = "_circle_1678z_19";
6
+ const label = "_label_1678z_23";
7
+ const y1Label = "_y1Label_1678z_29";
8
+ const y2Label = "_y2Label_1678z_33";
9
+ const axis = "_axis_1678z_37";
10
+ const axisLabel = "_axisLabel_1678z_42";
11
+ const background = "_background_1678z_46";
11
12
  const defaultStyles = {
12
13
  slopeChartContainer,
13
14
  svg,
@@ -18,11 +19,13 @@ const defaultStyles = {
18
19
  y1Label,
19
20
  y2Label,
20
21
  axis,
21
- axisLabel
22
+ axisLabel,
23
+ background
22
24
  };
23
25
  export {
24
26
  axis,
25
27
  axisLabel,
28
+ background,
26
29
  circle,
27
30
  defaultStyles as default,
28
31
  label,
package/dist/style.css CHANGED
@@ -1983,50 +1983,54 @@ body.android {
1983
1983
 
1984
1984
  ._bodyRow_fhbur_58:last-child > ._bodyCell_fhbur_62 {
1985
1985
  border-bottom: 0;
1986
- }._slopeChartContainer_nmjjj_1 {
1986
+ }._slopeChartContainer_1678z_1 {
1987
1987
  max-width: 300px;
1988
1988
  }
1989
1989
 
1990
- ._svg_nmjjj_5 {
1990
+ ._svg_1678z_5 {
1991
1991
  overflow: visible;
1992
1992
  }
1993
1993
 
1994
- ._line_nmjjj_9 {
1994
+ ._line_1678z_9 {
1995
1995
  stroke: #121212;
1996
1996
  stroke-width: 2;
1997
1997
  }
1998
1998
 
1999
- ._lineWhite_nmjjj_14 {
1999
+ ._lineWhite_1678z_14 {
2000
2000
  stroke: var(--primary-bg-color);
2001
2001
  stroke-width: 3.25;
2002
2002
  }
2003
2003
 
2004
- ._circle_nmjjj_19 {
2004
+ ._circle_1678z_19 {
2005
2005
  fill: #121212;
2006
2006
  }
2007
2007
 
2008
- ._label_nmjjj_23 {
2008
+ ._label_1678z_23 {
2009
2009
  font-family: var(--text-sans);
2010
2010
  font-size: var(--sans-xxsmall);
2011
2011
  fill: var(--primary-text-color);
2012
2012
  }
2013
2013
 
2014
- ._y1Label_nmjjj_29 {
2014
+ ._y1Label_1678z_29 {
2015
2015
  transform: translateX(calc(var(--space-2) * -1));
2016
2016
  }
2017
2017
 
2018
- ._y2Label_nmjjj_33 {
2018
+ ._y2Label_1678z_33 {
2019
2019
  transform: translateX(calc(var(--space-2)));
2020
2020
  }
2021
2021
 
2022
- ._axis_nmjjj_37 {
2022
+ ._axis_1678z_37 {
2023
2023
  stroke: var(--primary-line-color);
2024
2024
  stroke-width: 1;
2025
2025
  }
2026
2026
 
2027
- ._axisLabel_nmjjj_42 {
2027
+ ._axisLabel_1678z_42 {
2028
2028
  transform: translateY(var(--space-1));
2029
2029
  }
2030
+
2031
+ ._background_1678z_46 {
2032
+ fill: var(--secondary-bg-color);
2033
+ }
2030
2034
  ._tooltip_11t5d_1 {
2031
2035
  pointer-events: none;
2032
2036
  }
@@ -2284,17 +2288,16 @@ body.android {
2284
2288
 
2285
2289
  ._bar_1ci1k_10 {
2286
2290
  }
2287
- ._container_1jf3s_1 {
2291
+ ._container_15sjw_1 {
2288
2292
  font-weight: 700;
2289
2293
  display: flex;
2290
2294
  }
2291
2295
 
2292
- ._copyColumn_1jf3s_6 {
2296
+ ._copyColumn_15sjw_6 {
2293
2297
  display: block;
2294
- flex-shrink: 0;
2295
2298
  }
2296
2299
 
2297
- ._img_1jf3s_11 {
2300
+ ._img_15sjw_10 {
2298
2301
  height: 130px;
2299
2302
  width: 130px;
2300
2303
  border-radius: 50%;
@@ -2305,7 +2308,7 @@ body.android {
2305
2308
  flex-shrink: 0;
2306
2309
  }
2307
2310
 
2308
- ._title_1jf3s_22 {
2311
+ ._title_15sjw_21 {
2309
2312
  font-family: var(--text-headline);
2310
2313
  font-size: var(--headline-xsmall);
2311
2314
  color: var(--primary-text-color);
@@ -2321,7 +2324,7 @@ body.android {
2321
2324
  }
2322
2325
  }
2323
2326
 
2324
- ._subtitle_1jf3s_38 {
2327
+ ._subtitle_15sjw_37 {
2325
2328
  font-family: var(--text-headline);
2326
2329
  font-size: var(--headline-xsmall);
2327
2330
  color: var(--primary-text-color);
@@ -2331,7 +2334,7 @@ body.android {
2331
2334
  margin-bottom: 6px;
2332
2335
  }
2333
2336
 
2334
- ._small_1jf3s_48 {
2337
+ ._small_15sjw_47 {
2335
2338
  font-family: var(--text-serif);
2336
2339
  font-size: var(--body-small);
2337
2340
  line-height: var(--body-line-height);
@@ -2341,7 +2344,7 @@ body.android {
2341
2344
  margin-top: var(--space-1);
2342
2345
  }
2343
2346
 
2344
- ._blurb_1jf3s_58 {
2347
+ ._blurb_15sjw_57 {
2345
2348
  font-family: var(--text-serif);
2346
2349
  font-size: var(--body-small);
2347
2350
  line-height: var(--body-line-height);
@@ -2349,7 +2352,7 @@ body.android {
2349
2352
  font-weight: 300;
2350
2353
  }
2351
2354
 
2352
- ._footnote_1jf3s_66 {
2355
+ ._footnote_15sjw_65 {
2353
2356
  font-family: var(--text-serif);
2354
2357
  font-size: var(--body-small);
2355
2358
  line-height: var(--body-line-height);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@guardian/interactive-component-library",
3
3
  "private": false,
4
- "version": "0.8.9",
4
+ "version": "0.9.1",
5
5
  "packageManager": "pnpm@8.4.0",
6
6
  "repository": {
7
7
  "type": "git",