@guardian/interactive-component-library 0.1.0-alpha.12 → 0.1.0-alpha.13

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.
@@ -9,7 +9,7 @@ const group = "_group_nq9z3_1";
9
9
  const rotated = "_rotated_nq9z3_6";
10
10
  const path$4 = "_path_nq9z3_10";
11
11
  const active = "_active_nq9z3_14";
12
- const defaultStyles$q = {
12
+ const defaultStyles$r = {
13
13
  group,
14
14
  rotated,
15
15
  path: path$4,
@@ -48,13 +48,13 @@ function Chevron({
48
48
  styles: styles2
49
49
  }) {
50
50
  const defaultStylesCopy = {
51
- ...defaultStyles$q
51
+ ...defaultStyles$r
52
52
  };
53
53
  if (active2) {
54
- defaultStylesCopy.path = mergeStyles(defaultStyles$q.path, defaultStyles$q.active);
54
+ defaultStylesCopy.path = mergeStyles(defaultStyles$r.path, defaultStyles$r.active);
55
55
  }
56
56
  if (direction === DIRECTION.up) {
57
- defaultStylesCopy.group = mergeStyles(defaultStyles$q.group, defaultStyles$q.rotated);
57
+ defaultStylesCopy.group = mergeStyles(defaultStyles$r.group, defaultStyles$r.rotated);
58
58
  }
59
59
  styles2 = mergeStyles(defaultStylesCopy, styles2);
60
60
  return jsx("svg", {
@@ -77,12 +77,12 @@ function Chevron({
77
77
  }
78
78
  const container$4 = "_container_jzalm_1";
79
79
  const dot = "_dot_jzalm_6";
80
- const circle$1 = "_circle_jzalm_13";
80
+ const circle$2 = "_circle_jzalm_13";
81
81
  const text$4 = "_text_jzalm_17";
82
- const defaultStyles$p = {
82
+ const defaultStyles$q = {
83
83
  container: container$4,
84
84
  dot,
85
- circle: circle$1,
85
+ circle: circle$2,
86
86
  text: text$4
87
87
  };
88
88
  const DOT_TYPE = {
@@ -96,10 +96,10 @@ const LegendItem = ({
96
96
  abbreviation
97
97
  }) => {
98
98
  const defaultStylesCopy = {
99
- ...defaultStyles$p
99
+ ...defaultStyles$q
100
100
  };
101
101
  if (dotType === DOT_TYPE.round) {
102
- defaultStylesCopy.dot = mergeStyles(defaultStyles$p.dot, defaultStyles$p.circle);
102
+ defaultStylesCopy.dot = mergeStyles(defaultStyles$q.dot, defaultStyles$q.circle);
103
103
  }
104
104
  styles2 = mergeStyles(defaultStylesCopy, styles2);
105
105
  return jsxs("div", {
@@ -134,7 +134,7 @@ function isDarkColor(color) {
134
134
  const bar$2 = "_bar_wmb0k_1";
135
135
  const label$1 = "_label_wmb0k_5";
136
136
  const backgroundRect = "_backgroundRect_wmb0k_11";
137
- const defaultStyles$o = {
137
+ const defaultStyles$p = {
138
138
  bar: bar$2,
139
139
  label: label$1,
140
140
  backgroundRect
@@ -168,7 +168,7 @@ function StackedBar({
168
168
  setHideLabels(false);
169
169
  }, [stack, width, height]);
170
170
  styles2 = mergeStyles({
171
- ...defaultStyles$o
171
+ ...defaultStyles$p
172
172
  }, styles2);
173
173
  let totalWidth = 0;
174
174
  const content2 = stack.map((d2, index2) => {
@@ -278,11 +278,11 @@ function createStore(initialStore) {
278
278
  return [useStore, setStore, getStore];
279
279
  }
280
280
  const [useGradients, setGradients, getGradients] = createStore({});
281
- const svg$7 = "_svg_1cajk_6";
281
+ const svg$8 = "_svg_1cajk_6";
282
282
  const previous = "_previous_1cajk_12";
283
283
  const next = "_next_1cajk_16";
284
- const defaultStyles$n = {
285
- svg: svg$7,
284
+ const defaultStyles$o = {
285
+ svg: svg$8,
286
286
  previous,
287
287
  next
288
288
  };
@@ -292,7 +292,7 @@ const GradientIcon = (props) => {
292
292
  next: next2,
293
293
  styles: styles2
294
294
  } = props;
295
- styles2 = mergeStyles(defaultStyles$n, styles2);
295
+ styles2 = mergeStyles(defaultStyles$o, styles2);
296
296
  const gradientId = `gv-gradient-def-${previous2}-${next2}`;
297
297
  const gradients = useGradients();
298
298
  useEffect(() => {
@@ -360,17 +360,17 @@ function GradientDefs({
360
360
  });
361
361
  }
362
362
  const button$4 = "_button_kpmyt_1";
363
- const svg$6 = "_svg_kpmyt_14";
364
- const defaultStyles$m = {
363
+ const svg$7 = "_svg_kpmyt_14";
364
+ const defaultStyles$n = {
365
365
  button: button$4,
366
- svg: svg$6
366
+ svg: svg$7
367
367
  };
368
368
  const InfoButton = ({
369
369
  onClick,
370
370
  styles: styles2
371
371
  }) => {
372
372
  styles2 = mergeStyles({
373
- ...defaultStyles$m
373
+ ...defaultStyles$n
374
374
  }, styles2);
375
375
  return jsx("button", {
376
376
  class: styles2.button,
@@ -385,28 +385,32 @@ const InfoButton = ({
385
385
  })
386
386
  });
387
387
  };
388
- const circleicon = "_circleicon_1ge2m_1";
389
- const rect = "_rect_1ge2m_7";
390
- const defaultStyles$l = {
391
- circleicon,
392
- rect
388
+ const svg$6 = "_svg_1v49v_1";
389
+ const circle$1 = "_circle_1v49v_5";
390
+ const pulse = "_pulse_1v49v_9";
391
+ const defaultStyles$m = {
392
+ svg: svg$6,
393
+ circle: circle$1,
394
+ pulse
393
395
  };
394
396
  const CircleIcon = ({
395
- abbreviation,
397
+ color,
398
+ pulse: pulse2 = false,
396
399
  styles: styles2
397
400
  }) => {
398
- styles2 = mergeStyles({
399
- ...defaultStyles$l
400
- }, styles2);
401
+ styles2 = mergeStyles(defaultStyles$m, styles2);
401
402
  return jsx("svg", {
402
- style: styles2.circleicon,
403
+ style: styles2.svg,
403
404
  fill: "none",
404
405
  height: "11",
405
406
  viewBox: "0 0 11 11",
406
407
  width: "11",
407
408
  xmlns: "http://www.w3.org/2000/svg",
408
409
  children: jsx("rect", {
409
- class: `${styles2.rect} fill-color--${abbreviation}`,
410
+ class: [styles2.circle, pulse2 && styles2.pulse].join(" "),
411
+ style: {
412
+ fill: color
413
+ },
410
414
  height: "11",
411
415
  rx: "5.5",
412
416
  width: "11"
@@ -414,7 +418,7 @@ const CircleIcon = ({
414
418
  });
415
419
  };
416
420
  const text$3 = "_text_1okyv_1";
417
- const defaultStyles$k = {
421
+ const defaultStyles$l = {
418
422
  text: text$3
419
423
  };
420
424
  var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
@@ -764,7 +768,7 @@ const RelativeTimeSentence = ({
764
768
  styles: styles2
765
769
  }) => {
766
770
  styles2 = mergeStyles({
767
- ...defaultStyles$k
771
+ ...defaultStyles$l
768
772
  }, styles2);
769
773
  let timeSince = dayjs(timeStamp).fromNow();
770
774
  return jsx("span", {
@@ -774,7 +778,7 @@ const RelativeTimeSentence = ({
774
778
  };
775
779
  const pageContainer = "_pageContainer_1s0yq_9";
776
780
  const sideBorders = "_sideBorders_1s0yq_42";
777
- const defaultStyles$j = {
781
+ const defaultStyles$k = {
778
782
  pageContainer,
779
783
  sideBorders
780
784
  };
@@ -786,14 +790,14 @@ function Container({
786
790
  const {
787
791
  pageContainer: pageContainer2,
788
792
  sideBorders: sideBordersStyle
789
- } = mergeStyles(defaultStyles$j, styles2);
793
+ } = mergeStyles(defaultStyles$k, styles2);
790
794
  return jsx("div", {
791
795
  className: [pageContainer2, sideBorders2 && sideBordersStyle].join(" "),
792
796
  children
793
797
  });
794
798
  }
795
799
  const bar$1 = "_bar_17pyf_9";
796
- const defaultStyles$i = {
800
+ const defaultStyles$j = {
797
801
  bar: bar$1
798
802
  };
799
803
  function ChangeBar({
@@ -811,7 +815,7 @@ function ChangeBar({
811
815
  let thisStyles = ` height: ${height}; width: ${barwidth}px; ${positive ? `left: ${posleft}` : `left: ${negleft}`}`;
812
816
  let thisColor = ` bg-color--${party}`;
813
817
  styles2 = mergeStyles({
814
- ...defaultStyles$i
818
+ ...defaultStyles$j
815
819
  }, styles2);
816
820
  return jsx("div", {
817
821
  className: styles2.wrapper,
@@ -826,7 +830,7 @@ const svg$5 = "_svg_886i1_9";
826
830
  const dividingLineColor = "_dividingLineColor_886i1_16";
827
831
  const square = "_square_886i1_20";
828
832
  const corner = "_corner_886i1_24";
829
- const defaultStyles$h = {
833
+ const defaultStyles$i = {
830
834
  svg: svg$5,
831
835
  dividingLineColor,
832
836
  square,
@@ -839,7 +843,7 @@ const SquareCutCornerIcon = ({
839
843
  styles: styles2
840
844
  }) => {
841
845
  styles2 = mergeStyles({
842
- ...defaultStyles$h
846
+ ...defaultStyles$i
843
847
  }, styles2);
844
848
  let cornerSize = squareSize * 0.625;
845
849
  let cornerMargin = squareSize < 100 ? squareSize / 6 : 10;
@@ -877,7 +881,7 @@ const stackedGridRotateItems0 = "_stackedGridRotateItems0_1e05o_13";
877
881
  const stackedGridRotateItems90 = "_stackedGridRotateItems90_1e05o_19";
878
882
  const stackedGridRotateItems180 = "_stackedGridRotateItems180_1e05o_25";
879
883
  const stackedGridRotateItems270 = "_stackedGridRotateItems270_1e05o_31";
880
- const defaultStyles$g = {
884
+ const defaultStyles$h = {
881
885
  stackedGridContainer,
882
886
  stackedGridRotateItems0,
883
887
  stackedGridRotateItems90,
@@ -916,7 +920,7 @@ const StackedGrid = ({
916
920
  width: containerWidth,
917
921
  transform: containerFlip
918
922
  };
919
- styles2 = mergeStyles(defaultStyles$g, styles2);
923
+ styles2 = mergeStyles(defaultStyles$h, styles2);
920
924
  return jsx("div", {
921
925
  style: flexStyles,
922
926
  className: `${styles2.stackedGridContainer} ${styles2[itemRotateClass]}`,
@@ -925,7 +929,7 @@ const StackedGrid = ({
925
929
  };
926
930
  const svg$4 = "_svg_l2fsl_9";
927
931
  const squareFill = "_squareFill_l2fsl_16";
928
- const defaultStyles$f = {
932
+ const defaultStyles$g = {
929
933
  svg: svg$4,
930
934
  squareFill
931
935
  };
@@ -935,7 +939,7 @@ const SquareIcon = ({
935
939
  styles: styles2
936
940
  }) => {
937
941
  styles2 = mergeStyles({
938
- ...defaultStyles$f
942
+ ...defaultStyles$g
939
943
  }, styles2);
940
944
  return jsx("svg", {
941
945
  width: size,
@@ -953,7 +957,7 @@ const SquareIcon = ({
953
957
  };
954
958
  const button$3 = "_button_1fees_1";
955
959
  const icon = "_icon_1fees_6";
956
- const defaultStyles$e = {
960
+ const defaultStyles$f = {
957
961
  button: button$3,
958
962
  icon
959
963
  };
@@ -963,7 +967,7 @@ function ArrowButton({
963
967
  styles: styles2,
964
968
  onClick
965
969
  }) {
966
- styles2 = mergeStyles(defaultStyles$e, styles2);
970
+ styles2 = mergeStyles(defaultStyles$f, styles2);
967
971
  return jsx("button", {
968
972
  className: styles2.button,
969
973
  disabled,
@@ -989,7 +993,7 @@ function ArrowButton({
989
993
  }
990
994
  const button$2 = "_button_19t7j_1";
991
995
  const buttonInner$1 = "_buttonInner_19t7j_6";
992
- const defaultStyles$d = {
996
+ const defaultStyles$e = {
993
997
  button: button$2,
994
998
  buttonInner: buttonInner$1
995
999
  };
@@ -999,7 +1003,7 @@ function Button({
999
1003
  styles: styles2,
1000
1004
  children
1001
1005
  }) {
1002
- styles2 = mergeStyles(defaultStyles$d, styles2);
1006
+ styles2 = mergeStyles(defaultStyles$e, styles2);
1003
1007
  return jsx("button", {
1004
1008
  className: styles2.button,
1005
1009
  "data-type": type,
@@ -1014,7 +1018,7 @@ const button$1 = "_button_6w12u_1";
1014
1018
  const buttonBorder = "_buttonBorder_6w12u_10";
1015
1019
  const svg$3 = "_svg_6w12u_18";
1016
1020
  const path$3 = "_path_6w12u_24";
1017
- const defaultStyles$c = {
1021
+ const defaultStyles$d = {
1018
1022
  button: button$1,
1019
1023
  buttonBorder,
1020
1024
  svg: svg$3,
@@ -1025,7 +1029,7 @@ function CloseButton({
1025
1029
  onClick,
1026
1030
  styles: styles2
1027
1031
  }) {
1028
- styles2 = mergeStyles(defaultStyles$c, styles2);
1032
+ styles2 = mergeStyles(defaultStyles$d, styles2);
1029
1033
  return jsx("button", {
1030
1034
  className: [styles2.button, border && styles2.buttonBorder].join(" "),
1031
1035
  onClick,
@@ -1168,7 +1172,7 @@ const headerCell = "_headerCell_1b75c_31";
1168
1172
  const headerCellButton = "_headerCellButton_1b75c_39";
1169
1173
  const bodyRow = "_bodyRow_1b75c_48";
1170
1174
  const bodyCell = "_bodyCell_1b75c_53";
1171
- const defaultStyles$b = {
1175
+ const defaultStyles$c = {
1172
1176
  table,
1173
1177
  hideHeader,
1174
1178
  hideHeaderNoBorder,
@@ -1209,7 +1213,7 @@ function Table({
1209
1213
  };
1210
1214
  });
1211
1215
  };
1212
- styles2 = mergeStyles(defaultStyles$b, styles2);
1216
+ styles2 = mergeStyles(defaultStyles$c, styles2);
1213
1217
  return jsxs("table", {
1214
1218
  className: styles2.table,
1215
1219
  children: [jsx("thead", {
@@ -1342,7 +1346,7 @@ const y1Label = "_y1Label_gj7pr_24";
1342
1346
  const y2Label = "_y2Label_gj7pr_28";
1343
1347
  const axis$1 = "_axis_gj7pr_32";
1344
1348
  const axisLabel = "_axisLabel_gj7pr_37";
1345
- const defaultStyles$a = {
1349
+ const defaultStyles$b = {
1346
1350
  slopeChartContainer,
1347
1351
  svg: svg$2,
1348
1352
  line,
@@ -1394,7 +1398,7 @@ const SlopeChart = ({
1394
1398
  return positionLabels(labels);
1395
1399
  }, [lines, y2Label2, yScale]);
1396
1400
  styles2 = mergeStyles({
1397
- ...defaultStyles$a
1401
+ ...defaultStyles$b
1398
1402
  }, styles2);
1399
1403
  const chart = jsx("svg", {
1400
1404
  class: styles2.svg,
@@ -1483,9 +1487,9 @@ const useTooltipTarget = (targetElement, trackPosition) => {
1483
1487
  clientY,
1484
1488
  currentTarget
1485
1489
  }) => {
1486
- const rect2 = currentTarget.getBoundingClientRect();
1487
- const x = clientX - rect2.left;
1488
- const y = clientY - rect2.top;
1490
+ const rect = currentTarget.getBoundingClientRect();
1491
+ const x = clientX - rect.left;
1492
+ const y = clientY - rect.top;
1489
1493
  requestAnimationFrame(() => {
1490
1494
  setPosition({
1491
1495
  x,
@@ -1617,7 +1621,7 @@ function Modal({
1617
1621
  });
1618
1622
  }
1619
1623
  const tooltip = "_tooltip_11t5d_1";
1620
- const defaultStyles$9 = {
1624
+ const defaultStyles$a = {
1621
1625
  tooltip
1622
1626
  };
1623
1627
  const TooltipType = {
@@ -1645,7 +1649,7 @@ function Tooltip({
1645
1649
  hoverActive
1646
1650
  } = useTooltipTarget(targetElement, trackPosition);
1647
1651
  const tooltipRef = useRef(null);
1648
- styles2 = mergeStyles(defaultStyles$9, styles2);
1652
+ styles2 = mergeStyles(defaultStyles$a, styles2);
1649
1653
  useEffect(() => {
1650
1654
  let element = null;
1651
1655
  if (typeof refOrSelector === "string") {
@@ -1740,7 +1744,7 @@ function tooltipPositionForRect({
1740
1744
  }
1741
1745
  const text$2 = "_text_1b8t2_1";
1742
1746
  const container$3 = "_container_1b8t2_10";
1743
- const defaultStyles$8 = {
1747
+ const defaultStyles$9 = {
1744
1748
  text: text$2,
1745
1749
  container: container$3
1746
1750
  };
@@ -1751,7 +1755,7 @@ const ControlChange = ({
1751
1755
  styles: styles2
1752
1756
  }) => {
1753
1757
  styles2 = mergeStyles({
1754
- ...defaultStyles$8
1758
+ ...defaultStyles$9
1755
1759
  }, styles2);
1756
1760
  let hasChanged = next2 !== previous2;
1757
1761
  return jsx("div", {
@@ -1765,9 +1769,8 @@ const ControlChange = ({
1765
1769
  next: styles2.next
1766
1770
  }
1767
1771
  }) : jsx(CircleIcon, {
1768
- abbreviation: next2,
1769
1772
  styles: {
1770
- rect: styles2.next
1773
+ circle: styles2.next || `fill-color--${next2}`
1771
1774
  }
1772
1775
  }), jsx("strong", {
1773
1776
  className: styles2.text,
@@ -1786,7 +1789,7 @@ const secondaryNumber = "_secondaryNumber_w8o28_58";
1786
1789
  const displayRow = "_displayRow_w8o28_65";
1787
1790
  const displayColumn = "_displayColumn_w8o28_71";
1788
1791
  const topRow = "_topRow_w8o28_75";
1789
- const defaultStyles$7 = {
1792
+ const defaultStyles$8 = {
1790
1793
  toplineResult,
1791
1794
  primaryname,
1792
1795
  secondaryname,
@@ -1811,7 +1814,7 @@ const ToplineResult = ({
1811
1814
  showInfoButton = false
1812
1815
  }) => {
1813
1816
  styles2 = mergeStyles({
1814
- ...defaultStyles$7
1817
+ ...defaultStyles$8
1815
1818
  }, styles2);
1816
1819
  const displayStyle = displayRow2 ? styles2.displayRow : styles2.displayColumn;
1817
1820
  return !secondaryName ? jsxs(Fragment, {
@@ -1878,7 +1881,7 @@ const section = "_section_12aiu_9";
1878
1881
  const borderTop = "_borderTop_12aiu_52";
1879
1882
  const header = "_header_12aiu_56";
1880
1883
  const content = "_content_12aiu_76";
1881
- const defaultStyles$6 = {
1884
+ const defaultStyles$7 = {
1882
1885
  section,
1883
1886
  borderTop,
1884
1887
  header,
@@ -1891,7 +1894,7 @@ const PageSection = forwardRef(({
1891
1894
  backgroundColor = "transparent"
1892
1895
  }, ref) => {
1893
1896
  styles2 = mergeStyles({
1894
- ...defaultStyles$6
1897
+ ...defaultStyles$7
1895
1898
  }, styles2);
1896
1899
  return jsxs("section", {
1897
1900
  ref,
@@ -1911,7 +1914,7 @@ const PageSection = forwardRef(({
1911
1914
  const text$1 = "_text_lo5h3_1";
1912
1915
  const axis = "_axis_lo5h3_6";
1913
1916
  const bar = "_bar_lo5h3_10";
1914
- const defaultStyles$5 = {
1917
+ const defaultStyles$6 = {
1915
1918
  text: text$1,
1916
1919
  axis,
1917
1920
  bar
@@ -1926,7 +1929,7 @@ const ColumnChart = ({
1926
1929
  columnPadding,
1927
1930
  styles: styles2
1928
1931
  }) => {
1929
- styles2 = mergeStyles(defaultStyles$5, styles2);
1932
+ styles2 = mergeStyles(defaultStyles$6, styles2);
1930
1933
  const yScale = scaleLinear$1([maxValue, minValue], [0, chartHeight]);
1931
1934
  const totalColumnWidth = Number(columnWidth) + Number(columnPadding.left) + Number(columnPadding.right);
1932
1935
  return jsxs("svg", {
@@ -1969,7 +1972,7 @@ const blurb = "_blurb_vd5ly_44";
1969
1972
  const leftCell = "_leftCell_vd5ly_55";
1970
1973
  const rightCell = "_rightCell_vd5ly_55";
1971
1974
  const mugshot = "_mugshot_vd5ly_71";
1972
- const defaultStyles$4 = {
1975
+ const defaultStyles$5 = {
1973
1976
  text,
1974
1977
  container: container$2,
1975
1978
  title: title$1,
@@ -1988,7 +1991,7 @@ const PartyProfile = ({
1988
1991
  abbreviation
1989
1992
  }) => {
1990
1993
  styles2 = mergeStyles({
1991
- ...defaultStyles$4
1994
+ ...defaultStyles$5
1992
1995
  }, styles2);
1993
1996
  return jsx("div", {
1994
1997
  class: styles2.container,
@@ -2297,7 +2300,7 @@ function SVGMapProvider({
2297
2300
  });
2298
2301
  }
2299
2302
  const path$1 = "_path_1cwd5_9";
2300
- const defaultStyles$3 = {
2303
+ const defaultStyles$4 = {
2301
2304
  path: path$1
2302
2305
  };
2303
2306
  function CompositionBorders({
@@ -2306,7 +2309,7 @@ function CompositionBorders({
2306
2309
  const {
2307
2310
  projection
2308
2311
  } = useContext(MapContext);
2309
- styles2 = mergeStyles(defaultStyles$3, styles2);
2312
+ styles2 = mergeStyles(defaultStyles$4, styles2);
2310
2313
  return jsx("path", {
2311
2314
  className: styles2.path,
2312
2315
  d: projection.getCompositionBorders()
@@ -2605,7 +2608,7 @@ const Map$1 = forwardRef(({
2605
2608
  });
2606
2609
  const container = "_container_azu4a_1";
2607
2610
  const paragraph = "_paragraph_azu4a_12";
2608
- const defaultStyles$2 = {
2611
+ const defaultStyles$3 = {
2609
2612
  container,
2610
2613
  paragraph
2611
2614
  };
@@ -2618,7 +2621,7 @@ function ResultSummary({
2618
2621
  styles: styles2
2619
2622
  }) {
2620
2623
  styles2 = mergeStyles({
2621
- ...defaultStyles$2
2624
+ ...defaultStyles$3
2622
2625
  }, styles2);
2623
2626
  return jsxs("div", {
2624
2627
  class: styles2.container,
@@ -2661,7 +2664,7 @@ const suggestions = "_suggestions_g5w44_36";
2661
2664
  const suggestion = "_suggestion_g5w44_36";
2662
2665
  const selected = "_selected_g5w44_59";
2663
2666
  const highlighted = "_highlighted_g5w44_63";
2664
- const defaultStyles$1 = {
2667
+ const defaultStyles$2 = {
2665
2668
  searchContainer,
2666
2669
  input,
2667
2670
  searchIcon,
@@ -2682,7 +2685,7 @@ function SearchInput({
2682
2685
  styles: styles2
2683
2686
  }) {
2684
2687
  var _a, _b, _c;
2685
- styles2 = mergeStyles(defaultStyles$1, styles2);
2688
+ styles2 = mergeStyles(defaultStyles$2, styles2);
2686
2689
  const inputRef = useRef(null);
2687
2690
  const [selectedIndex, setSelectedIndex] = useState(-1);
2688
2691
  const [suggestions2, setSuggestions] = useState();
@@ -2791,6 +2794,32 @@ function SuggestionList({
2791
2794
  })
2792
2795
  });
2793
2796
  }
2797
+ const refreshIndicator = "_refreshIndicator_u6lji_1";
2798
+ const liveText = "_liveText_u6lji_8";
2799
+ const refreshText = "_refreshText_u6lji_9";
2800
+ const defaultStyles$1 = {
2801
+ refreshIndicator,
2802
+ liveText,
2803
+ refreshText
2804
+ };
2805
+ function RefreshIndicator({
2806
+ text: text2,
2807
+ styles: styles2
2808
+ }) {
2809
+ styles2 = mergeStyles(defaultStyles$1, styles2);
2810
+ return jsxs("div", {
2811
+ className: styles2.refreshIndicator,
2812
+ children: [jsx(CircleIcon, {
2813
+ pulse: true
2814
+ }), jsx("span", {
2815
+ className: styles2.liveText,
2816
+ children: "LIVE"
2817
+ }), jsx("span", {
2818
+ className: styles2.refreshText,
2819
+ children: text2
2820
+ })]
2821
+ });
2822
+ }
2794
2823
  const coalitionsWrapper = "_coalitionsWrapper_1ahqy_9";
2795
2824
  const coalitionsContainer = "_coalitionsContainer_1ahqy_14";
2796
2825
  const coalition = "_coalition_1ahqy_9";
@@ -3094,6 +3123,7 @@ export {
3094
3123
  PageSection,
3095
3124
  PartyProfile,
3096
3125
  Projection,
3126
+ RefreshIndicator,
3097
3127
  RelativeTimeSentence,
3098
3128
  ResultSummary,
3099
3129
  SearchInput,