@guardian/interactive-component-library 0.1.0-alpha.34 → 0.1.0-alpha.35
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.
|
@@ -489,7 +489,8 @@ const Waffle = ({
|
|
|
489
489
|
},
|
|
490
490
|
onClick = () => {
|
|
491
491
|
},
|
|
492
|
-
styles: styles2
|
|
492
|
+
styles: styles2,
|
|
493
|
+
svgId
|
|
493
494
|
}) => {
|
|
494
495
|
const containerRef = useRef();
|
|
495
496
|
const containerSize = useContainerSize(containerRef);
|
|
@@ -506,6 +507,7 @@ const Waffle = ({
|
|
|
506
507
|
children: containerSize && jsx("svg", {
|
|
507
508
|
viewBox: `0 0 ${width} ${height}`,
|
|
508
509
|
class: styles2.svg,
|
|
510
|
+
id: svgId,
|
|
509
511
|
children: jsx("g", {
|
|
510
512
|
children: units.map((unit2, j) => {
|
|
511
513
|
let attributes;
|
|
@@ -1468,6 +1470,7 @@ function Table({
|
|
|
1468
1470
|
children: table2.columns.map((column, index) => {
|
|
1469
1471
|
var _a;
|
|
1470
1472
|
return jsx("th", {
|
|
1473
|
+
scope: "col",
|
|
1471
1474
|
className: mergeStyles(styles2.headerCell, (_a = column.styles) == null ? void 0 : _a.headerCell),
|
|
1472
1475
|
children: jsx(HeaderCell, {
|
|
1473
1476
|
styles: mergeStyles(styles2, column.styles),
|
|
@@ -1553,7 +1556,8 @@ const SlopeChart = ({
|
|
|
1553
1556
|
right: 24,
|
|
1554
1557
|
top: 20,
|
|
1555
1558
|
bottom: 20
|
|
1556
|
-
}
|
|
1559
|
+
},
|
|
1560
|
+
svgId
|
|
1557
1561
|
}) => {
|
|
1558
1562
|
const wrapperRef = useRef(null);
|
|
1559
1563
|
const containerSize = useContainerSize(wrapperRef);
|
|
@@ -1584,6 +1588,7 @@ const SlopeChart = ({
|
|
|
1584
1588
|
class: styles2.svg,
|
|
1585
1589
|
width,
|
|
1586
1590
|
height,
|
|
1591
|
+
id: svgId,
|
|
1587
1592
|
children: jsxs("g", {
|
|
1588
1593
|
transform: `translate(${padding.left} ${padding.top})`,
|
|
1589
1594
|
children: [jsxs("g", {
|
|
@@ -2419,13 +2424,13 @@ var d = (E) => {
|
|
|
2419
2424
|
return cloneElement(t, { className: i });
|
|
2420
2425
|
});
|
|
2421
2426
|
};
|
|
2422
|
-
const transitionContainer = "
|
|
2423
|
-
const blur = "
|
|
2424
|
-
const modalBox = "
|
|
2425
|
-
const enter = "
|
|
2426
|
-
const exitDone = "
|
|
2427
|
-
const enterActive = "
|
|
2428
|
-
const
|
|
2427
|
+
const transitionContainer = "_transitionContainer_1syip_1";
|
|
2428
|
+
const blur = "_blur_1syip_12";
|
|
2429
|
+
const modalBox = "_modalBox_1syip_17";
|
|
2430
|
+
const enter = "_enter_1syip_26";
|
|
2431
|
+
const exitDone = "_exitDone_1syip_27";
|
|
2432
|
+
const enterActive = "_enterActive_1syip_38";
|
|
2433
|
+
const exitActive = "_exitActive_1syip_49";
|
|
2429
2434
|
const styles$6 = {
|
|
2430
2435
|
transitionContainer,
|
|
2431
2436
|
blur,
|
|
@@ -2433,7 +2438,7 @@ const styles$6 = {
|
|
|
2433
2438
|
enter,
|
|
2434
2439
|
exitDone,
|
|
2435
2440
|
enterActive,
|
|
2436
|
-
|
|
2441
|
+
exitActive
|
|
2437
2442
|
};
|
|
2438
2443
|
function Modal({
|
|
2439
2444
|
visible = false,
|
|
@@ -3871,7 +3876,7 @@ const SVGMap = forwardRef(({
|
|
|
3871
3876
|
const renderSVG = containerSize && !config.drawToCanvas;
|
|
3872
3877
|
const zoomControl2 = organisedChildren.controls["ZoomControl"];
|
|
3873
3878
|
const renderZoomControl = zoomControl2 && zoom2.enabled;
|
|
3874
|
-
return jsxs("
|
|
3879
|
+
return jsxs("figure", {
|
|
3875
3880
|
ref: containerRef,
|
|
3876
3881
|
className: styles$4.container,
|
|
3877
3882
|
style: containerStyle,
|
|
@@ -6380,7 +6385,7 @@ const Map$1 = forwardRef(({
|
|
|
6380
6385
|
map.setLayers(layers);
|
|
6381
6386
|
}
|
|
6382
6387
|
}, [map, layers]);
|
|
6383
|
-
return jsx("
|
|
6388
|
+
return jsx("figure", {
|
|
6384
6389
|
ref: targetRef,
|
|
6385
6390
|
className: styles$3.mapContainer,
|
|
6386
6391
|
children: jsxs("div", {
|
|
@@ -7555,7 +7560,7 @@ function CoalitionsTracker({
|
|
|
7555
7560
|
position: "relative",
|
|
7556
7561
|
zIndex: 2
|
|
7557
7562
|
},
|
|
7558
|
-
children: [jsx("
|
|
7563
|
+
children: [jsx("h3", {
|
|
7559
7564
|
className: styles2.title,
|
|
7560
7565
|
children: list.title
|
|
7561
7566
|
}), jsx("p", {
|