@guardian/interactive-component-library 0.9.0 → 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.
@@ -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
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@guardian/interactive-component-library",
3
3
  "private": false,
4
- "version": "0.9.0",
4
+ "version": "0.9.1",
5
5
  "packageManager": "pnpm@8.4.0",
6
6
  "repository": {
7
7
  "type": "git",