@evergis/charts 4.0.5 → 4.0.7

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/index.js CHANGED
@@ -27,10 +27,10 @@ function _interopNamespaceDefault(e) {
27
27
 
28
28
  var d3__namespace = /*#__PURE__*/_interopNamespaceDefault(d3);
29
29
 
30
- const Wrapper = styled.div `
31
- position: relative;
32
- width: 100%;
33
- box-sizing: border-box;
30
+ const Wrapper = styled.div `
31
+ position: relative;
32
+ width: 100%;
33
+ box-sizing: border-box;
34
34
  `;
35
35
 
36
36
  function useNode() {
@@ -128,10 +128,10 @@ const drawMarkers = ({ svg, markers, width, left, top, count, yScale }) => {
128
128
  });
129
129
  };
130
130
 
131
- const SwipeScrollContainer = styled.div `
132
- width: 100%;
133
- overflow: hidden;
134
- user-select: none;
131
+ const SwipeScrollContainer = styled.div `
132
+ width: 100%;
133
+ overflow: hidden;
134
+ user-select: none;
135
135
  `;
136
136
 
137
137
  function animate({ duration, timing, draw, }) {
@@ -283,37 +283,37 @@ const getTranslate$1 = ({ anchor, index, translateX, translateY, }) => {
283
283
  }
284
284
  return `translate(${translateX}px, ${translateY}px)`;
285
285
  };
286
- const Label$2 = styled.div `
287
- display: flex;
288
- align-items: center;
289
- font-size: 12px;
286
+ const Label$2 = styled.div `
287
+ display: flex;
288
+ align-items: center;
289
+ font-size: 12px;
290
290
  `;
291
- const Name$1 = styled.div `
292
- text-align: center;
293
- max-width: 120px;
291
+ const Name$1 = styled.div `
292
+ text-align: center;
293
+ max-width: 120px;
294
294
  `;
295
- const middleBadgeStyles = styled.css `
296
- position: absolute;
297
- top: 50%;
298
- right: 0;
299
- transform: translate(calc(100% + 6px), -50%);
295
+ const middleBadgeStyles = styled.css `
296
+ position: absolute;
297
+ top: 50%;
298
+ right: 0;
299
+ transform: translate(calc(100% + 6px), -50%);
300
300
  `;
301
- const DefaultBadge = styled.div `
302
- display: flex;
303
- align-items: center;
304
- padding: 2px 4px;
305
- border-radius: 4px;
306
- color: rgb(255, 255, 255);
307
- background-color: rgb(144, 197, 61);
308
- margin-left: 8px;
301
+ const DefaultBadge = styled.div `
302
+ display: flex;
303
+ align-items: center;
304
+ padding: 2px 4px;
305
+ border-radius: 4px;
306
+ color: rgb(255, 255, 255);
307
+ background-color: rgb(144, 197, 61);
308
+ margin-left: 8px;
309
309
  `;
310
- const MiddleBadge = styled(DefaultBadge) `
311
- ${middleBadgeStyles}
310
+ const MiddleBadge = styled(DefaultBadge) `
311
+ ${middleBadgeStyles}
312
312
  `;
313
- const BadgePrefix = styled.div `
314
- margin-left: 4px;
315
- font-size: 10px;
316
- color: rgba(255, 255, 255, 0.54);
313
+ const BadgePrefix = styled.div `
314
+ margin-left: 4px;
315
+ font-size: 10px;
316
+ color: rgba(255, 255, 255, 0.54);
317
317
  `;
318
318
 
319
319
  const radarChartclassNames = {
@@ -328,29 +328,29 @@ const radarChartclassNames = {
328
328
  radarLabelBadgePrefix: 'radarLabelBadgePrefix',
329
329
  radarCircle: 'radarCircle',
330
330
  };
331
- const SvgWrapper$5 = styled(Wrapper) `
332
- .${radarChartclassNames.radarAxis} {
333
- path,
334
- line,
335
- circle {
336
- fill: none;
337
- stroke-width: 1px;
338
- stroke: rgba(149, 149, 149, 0.18);
339
- }
340
- }
341
- .${radarChartclassNames.radarAxisText} {
342
- font-size: 12px;
343
- fill-opacity: 0.56;
344
- }
345
- .${radarChartclassNames.radarPolygon} {
346
- fill-opacity: 0.06;
347
- stroke-width: 2px;
348
- fill: rgb(144, 197, 61);
349
- stroke: rgb(144, 197, 61);
350
- }
351
- .${radarChartclassNames.radarCircle} {
352
- fill: rgb(144, 197, 61);
353
- }
331
+ const SvgWrapper$5 = styled(Wrapper) `
332
+ .${radarChartclassNames.radarAxis} {
333
+ path,
334
+ line,
335
+ circle {
336
+ fill: none;
337
+ stroke-width: 1px;
338
+ stroke: rgba(149, 149, 149, 0.18);
339
+ }
340
+ }
341
+ .${radarChartclassNames.radarAxisText} {
342
+ font-size: 12px;
343
+ fill-opacity: 0.56;
344
+ }
345
+ .${radarChartclassNames.radarPolygon} {
346
+ fill-opacity: 0.06;
347
+ stroke-width: 2px;
348
+ fill: rgb(144, 197, 61);
349
+ stroke: rgb(144, 197, 61);
350
+ }
351
+ .${radarChartclassNames.radarCircle} {
352
+ fill: rgb(144, 197, 61);
353
+ }
354
354
  `;
355
355
 
356
356
  const getTranslate = ({ anchor, index, translateX, translateY, }) => {
@@ -372,8 +372,8 @@ const LabelContainer$1 = styled.div.attrs(props => ({
372
372
  style: {
373
373
  transform: getTranslate(props),
374
374
  },
375
- })) `
376
- position: absolute;
375
+ })) `
376
+ position: absolute;
377
377
  `;
378
378
 
379
379
  const degByIndex = (index, count) => {
@@ -637,24 +637,24 @@ const pieChartclassNames = {
637
637
  pieTooltipColorBox: 'pieTooltipColorBox',
638
638
  pieFullChartTooltipCircle: 'pieFullChartTooltipCircle',
639
639
  };
640
- const SvgWrapper$4 = styled(Wrapper) `
641
- .${pieChartclassNames.pieSliceLabel} {
642
- fill: #4a4a4a;
643
- }
644
-
645
- .${pieChartclassNames.pieRadialLabel} {
646
- position: absolute;
647
- max-width: 128px;
648
- }
649
-
650
- .${pieChartclassNames.pieRadialLink} {
651
- stroke: #000;
652
- }
653
-
654
- .${pieChartclassNames.pieFullChartTooltipCircle} {
655
- fill: transparent;
656
- cursor: pointer;
657
- }
640
+ const SvgWrapper$4 = styled(Wrapper) `
641
+ .${pieChartclassNames.pieSliceLabel} {
642
+ fill: #4a4a4a;
643
+ }
644
+
645
+ .${pieChartclassNames.pieRadialLabel} {
646
+ position: absolute;
647
+ max-width: 128px;
648
+ }
649
+
650
+ .${pieChartclassNames.pieRadialLink} {
651
+ stroke: #000;
652
+ }
653
+
654
+ .${pieChartclassNames.pieFullChartTooltipCircle} {
655
+ fill: transparent;
656
+ cursor: pointer;
657
+ }
658
658
  `;
659
659
 
660
660
  function radiansToDegrees(radians) {
@@ -754,90 +754,90 @@ const drawRadialLabels = ({ arc, enableRadialLabels, global, node, radius, dataR
754
754
  }
755
755
  };
756
756
 
757
- const TooltipFlex$1 = styled.div `
758
- width: 0;
759
- height: 0;
760
- display: flex;
761
- align-items: flex-end;
762
- justify-content: center;
763
- pointer-events: none;
764
- white-space: nowrap;
757
+ const TooltipFlex$1 = styled.div `
758
+ width: 0;
759
+ height: 0;
760
+ display: flex;
761
+ align-items: flex-end;
762
+ justify-content: center;
763
+ pointer-events: none;
764
+ white-space: nowrap;
765
765
  `;
766
766
  const LabelFlex = styled(TooltipFlex$1) ``;
767
- const LabelFlexCenter = styled(LabelFlex) `
768
- align-items: center;
767
+ const LabelFlexCenter = styled(LabelFlex) `
768
+ align-items: center;
769
769
  `;
770
- const TooltipContainer = styled.div `
771
- position: relative;
772
- font-size: 11px;
773
- color: #fff;
774
- margin-bottom: 8px;
775
- padding: 4px 6px;
776
- background-color: rgba(48, 69, 79, 1);
777
- border-radius: 4px;
778
- box-shadow: 0 0.1875rem 0.5rem rgba(48, 69, 79, 0.06);
779
-
780
- :before {
781
- content: '';
782
- position: absolute;
783
- bottom: 0;
784
- left: 50%;
785
- transform: translate(-50%, 100%);
786
- width: 0;
787
- height: 0;
788
- border-style: solid;
789
- border-width: 4px 3px 0 3px;
790
- border-color: rgba(48, 69, 79, 1) transparent transparent transparent;
791
- }
770
+ const TooltipContainer = styled.div `
771
+ position: relative;
772
+ font-size: 11px;
773
+ color: #fff;
774
+ margin-bottom: 8px;
775
+ padding: 4px 6px;
776
+ background-color: rgba(48, 69, 79, 1);
777
+ border-radius: 4px;
778
+ box-shadow: 0 0.1875rem 0.5rem rgba(48, 69, 79, 0.06);
779
+
780
+ :before {
781
+ content: '';
782
+ position: absolute;
783
+ bottom: 0;
784
+ left: 50%;
785
+ transform: translate(-50%, 100%);
786
+ width: 0;
787
+ height: 0;
788
+ border-style: solid;
789
+ border-width: 4px 3px 0 3px;
790
+ border-color: rgba(48, 69, 79, 1) transparent transparent transparent;
791
+ }
792
792
  `;
793
- const TooltipGroupName = styled.div `
794
- font-size: 14px;
795
- margin-bottom: 6px;
793
+ const TooltipGroupName = styled.div `
794
+ font-size: 14px;
795
+ margin-bottom: 6px;
796
796
  `;
797
- const TooltipItem = styled.div `
798
- display: flex;
799
- align-items: center;
800
- margin-bottom: 0.25rem;
801
-
802
- &:last-of-type {
803
- margin-bottom: 0;
804
- }
797
+ const TooltipItem = styled.div `
798
+ display: flex;
799
+ align-items: center;
800
+ margin-bottom: 0.25rem;
801
+
802
+ &:last-of-type {
803
+ margin-bottom: 0;
804
+ }
805
805
  `;
806
- const ColFlex = styled.div `
807
- display: flex;
808
- align-items: center;
809
- margin-right: 4px;
806
+ const ColFlex = styled.div `
807
+ display: flex;
808
+ align-items: center;
809
+ margin-right: 4px;
810
810
  `;
811
- const ColorBox = styled.div `
812
- margin-right: 4px;
813
- width: 10px;
814
- height: 10px;
815
- border-radius: 2px;
811
+ const ColorBox = styled.div `
812
+ margin-right: 4px;
813
+ width: 10px;
814
+ height: 10px;
815
+ border-radius: 2px;
816
816
  `;
817
- const ColorLine = styled(ColorBox) `
818
- height: 2px;
819
- border-radius: 0;
817
+ const ColorLine = styled(ColorBox) `
818
+ height: 2px;
819
+ border-radius: 0;
820
820
  `;
821
- const Name = styled.div `
822
- margin-right: 4px;
821
+ const Name = styled.div `
822
+ margin-right: 4px;
823
823
  `;
824
- const Value = styled.div `
825
- text-align: right;
826
- flex-shrink: 0;
827
- flex-grow: 1;
824
+ const Value = styled.div `
825
+ text-align: right;
826
+ flex-shrink: 0;
827
+ flex-grow: 1;
828
828
  `;
829
- const Label$1 = styled.div `
830
- position: relative;
831
- font-size: 11px;
832
- color: #fff;
833
- font-weight: bold;
834
- letter-spacing: 0.52px;
829
+ const Label$1 = styled.div `
830
+ position: relative;
831
+ font-size: 11px;
832
+ color: #fff;
833
+ font-weight: bold;
834
+ letter-spacing: 0.52px;
835
835
  `;
836
- const LabelTop = styled(Label$1) `
837
- top: 6px;
836
+ const LabelTop = styled(Label$1) `
837
+ top: 6px;
838
838
  `;
839
- const LabelBottom = styled(Label$1) `
840
- bottom: 6px;
839
+ const LabelBottom = styled(Label$1) `
840
+ bottom: 6px;
841
841
  `;
842
842
 
843
843
  const drawTooltip$3 = ({ fullChartTooltip, global, tooltipRoot, data, tooltipClassName, tooltipBind, renderTooltip, arc, allSlices, tooltipStyle, width, height, radius, }) => {
@@ -1282,53 +1282,53 @@ const calendarChartClassNames = {
1282
1282
  ...legendClassNames,
1283
1283
  };
1284
1284
  const headerHeight = "20px";
1285
- const SvgWrapper$3 = styled(Wrapper) `
1286
- .${calendarChartClassNames.calendarYear} {
1287
- display: flex;
1288
- margin-bottom: 16px;
1289
- }
1290
-
1291
- .${calendarChartClassNames.calendarYearTitle} {
1292
- display: inline-flex;
1293
- align-items: flex-end;
1294
- height: ${headerHeight};
1295
- margin-bottom: 4px;
1296
- font-weight: bold;
1297
- }
1298
-
1299
- .${calendarChartClassNames.calendarHeader} {
1300
- height: ${headerHeight};
1301
- margin-bottom: 4px;
1302
- position: relative;
1303
- display: flex;
1304
- }
1305
-
1306
- .${calendarChartClassNames.calendarMonth} {
1307
- font-size: 14px;
1308
- bottom: 0;
1309
- position: absolute;
1310
- }
1311
-
1312
- .${calendarChartClassNames.calendarAxis} {
1313
- display: flex;
1314
- flex-direction: column;
1315
- margin-right: 10px;
1316
- }
1317
-
1318
- .${calendarChartClassNames.calendarWeekDay} {
1319
- font-size: 12px;
1320
- display: inline-flex;
1321
- align-items: center;
1322
- justify-content: flex-end;
1323
- }
1324
-
1325
- .${calendarChartClassNames.calendarDays} {
1326
- position: relative;
1327
- }
1328
-
1329
- .${calendarChartClassNames.calendarDay} {
1330
- position: absolute;
1331
- }
1285
+ const SvgWrapper$3 = styled(Wrapper) `
1286
+ .${calendarChartClassNames.calendarYear} {
1287
+ display: flex;
1288
+ margin-bottom: 16px;
1289
+ }
1290
+
1291
+ .${calendarChartClassNames.calendarYearTitle} {
1292
+ display: inline-flex;
1293
+ align-items: flex-end;
1294
+ height: ${headerHeight};
1295
+ margin-bottom: 4px;
1296
+ font-weight: bold;
1297
+ }
1298
+
1299
+ .${calendarChartClassNames.calendarHeader} {
1300
+ height: ${headerHeight};
1301
+ margin-bottom: 4px;
1302
+ position: relative;
1303
+ display: flex;
1304
+ }
1305
+
1306
+ .${calendarChartClassNames.calendarMonth} {
1307
+ font-size: 14px;
1308
+ bottom: 0;
1309
+ position: absolute;
1310
+ }
1311
+
1312
+ .${calendarChartClassNames.calendarAxis} {
1313
+ display: flex;
1314
+ flex-direction: column;
1315
+ margin-right: 10px;
1316
+ }
1317
+
1318
+ .${calendarChartClassNames.calendarWeekDay} {
1319
+ font-size: 12px;
1320
+ display: inline-flex;
1321
+ align-items: center;
1322
+ justify-content: flex-end;
1323
+ }
1324
+
1325
+ .${calendarChartClassNames.calendarDays} {
1326
+ position: relative;
1327
+ }
1328
+
1329
+ .${calendarChartClassNames.calendarDay} {
1330
+ position: absolute;
1331
+ }
1332
1332
  `;
1333
1333
 
1334
1334
  const draw$3 = (node, props) => {
@@ -1555,67 +1555,67 @@ const lineChartClassNames = {
1555
1555
  lineChartMouseLabelContainer: "lineChartMouseLabelContainer",
1556
1556
  lineChartMouseLabel: "lineChartMouseLabel",
1557
1557
  };
1558
- const SvgWrapper$2 = styled(Wrapper) `
1559
- .${lineChartClassNames.lineChartYScaleGlobal},
1560
- .${lineChartClassNames.lineChartXScaleGlobal},
1561
- .${lineChartClassNames.lineChartGridGlobal} {
1562
- shape-rendering: crispEdges;
1563
- }
1564
-
1565
- .${lineChartClassNames.lineChartLinesGlobal} {
1566
- fill: none;
1567
- stroke: steelblue;
1568
- stroke-width: 1.5px;
1569
- stroke-linejoin: round;
1570
- stroke-linecap: round;
1571
- }
1572
-
1573
- .${lineChartClassNames.lineChartArea} {
1574
- fill-opacity: 0.24;
1575
- }
1576
-
1577
- .${lineChartClassNames.lineChartGridLineX},
1578
- .${lineChartClassNames.lineChartGridLineY},
1579
- .${lineChartClassNames.lineChartMouseLine} {
1580
- stroke: rgba(149, 149, 149, 0.24);
1581
- }
1582
-
1583
- .${lineChartClassNames.lineChartMouseLine},
1584
- .${lineChartClassNames.lineChartMouseCircle} {
1585
- transition: opacity linear 200ms;
1586
- pointer-events: none;
1587
- stroke-width: 1px;
1588
- }
1589
-
1590
- .${lineChartClassNames.lineChartDot} {
1591
- stroke: #fff;
1592
- stroke-width: 2px;
1593
- }
1594
-
1595
- .${lineChartClassNames.lineChartMouseLine} {
1596
- shape-rendering: crispEdges;
1597
- }
1598
-
1599
- .${lineChartClassNames.lineChartMouseRect} {
1600
- fill: none;
1601
- pointer-events: all;
1602
- }
1558
+ const SvgWrapper$2 = styled(Wrapper) `
1559
+ .${lineChartClassNames.lineChartYScaleGlobal},
1560
+ .${lineChartClassNames.lineChartXScaleGlobal},
1561
+ .${lineChartClassNames.lineChartGridGlobal} {
1562
+ shape-rendering: crispEdges;
1563
+ }
1564
+
1565
+ .${lineChartClassNames.lineChartLinesGlobal} {
1566
+ fill: none;
1567
+ stroke: steelblue;
1568
+ stroke-width: 1.5px;
1569
+ stroke-linejoin: round;
1570
+ stroke-linecap: round;
1571
+ }
1572
+
1573
+ .${lineChartClassNames.lineChartArea} {
1574
+ fill-opacity: 0.24;
1575
+ }
1576
+
1577
+ .${lineChartClassNames.lineChartGridLineX},
1578
+ .${lineChartClassNames.lineChartGridLineY},
1579
+ .${lineChartClassNames.lineChartMouseLine} {
1580
+ stroke: rgba(149, 149, 149, 0.24);
1581
+ }
1582
+
1583
+ .${lineChartClassNames.lineChartMouseLine},
1584
+ .${lineChartClassNames.lineChartMouseCircle} {
1585
+ transition: opacity linear 200ms;
1586
+ pointer-events: none;
1587
+ stroke-width: 1px;
1588
+ }
1589
+
1590
+ .${lineChartClassNames.lineChartDot} {
1591
+ stroke: #fff;
1592
+ stroke-width: 2px;
1593
+ }
1594
+
1595
+ .${lineChartClassNames.lineChartMouseLine} {
1596
+ shape-rendering: crispEdges;
1597
+ }
1598
+
1599
+ .${lineChartClassNames.lineChartMouseRect} {
1600
+ fill: none;
1601
+ pointer-events: all;
1602
+ }
1603
1603
  `;
1604
- const TooltipStyles$2 = styled.createGlobalStyle `
1605
- .${lineChartClassNames.lineChartMouseLabel} {
1606
- transition: opacity linear 200ms;
1607
- z-index: 100;
1608
-
1609
- .${lineChartClassNames.lineChartLabelFlex} {
1610
- justify-content: flex-start;
1611
- align-items: center;
1612
- pointer-events: none;
1613
- }
1614
-
1615
- .${lineChartClassNames.lineChartLabel} {
1616
- margin: 0 0 0 10px;
1617
- }
1618
- }
1604
+ const TooltipStyles$2 = styled.createGlobalStyle `
1605
+ .${lineChartClassNames.lineChartMouseLabel} {
1606
+ transition: opacity linear 200ms;
1607
+ z-index: 100;
1608
+
1609
+ .${lineChartClassNames.lineChartLabelFlex} {
1610
+ justify-content: flex-start;
1611
+ align-items: center;
1612
+ pointer-events: none;
1613
+ }
1614
+
1615
+ .${lineChartClassNames.lineChartLabel} {
1616
+ margin: 0 0 0 10px;
1617
+ }
1618
+ }
1619
1619
  `;
1620
1620
 
1621
1621
  const drawGrid$2 = ({ svg, yScale, xScale, yTicksCount, lastIndex, drawGridX, drawGridY, }) => {
@@ -1651,17 +1651,17 @@ const drawGrid$2 = ({ svg, yScale, xScale, yTicksCount, lastIndex, drawGridX, dr
1651
1651
  }
1652
1652
  };
1653
1653
 
1654
- const LabelContainer = styled.div `
1655
- width: 0;
1656
- height: 0;
1657
- display: flex;
1658
- align-items: flex-end;
1659
- justify-content: center;
1660
- font-size: 12px;
1661
- white-space: nowrap;
1654
+ const LabelContainer = styled.div `
1655
+ width: 0;
1656
+ height: 0;
1657
+ display: flex;
1658
+ align-items: flex-end;
1659
+ justify-content: center;
1660
+ font-size: 12px;
1661
+ white-space: nowrap;
1662
1662
  `;
1663
- const Label = styled.div `
1664
- margin-bottom: 4px;
1663
+ const Label = styled.div `
1664
+ margin-bottom: 4px;
1665
1665
  `;
1666
1666
 
1667
1667
  const labelClassName = "d3-chart-label";
@@ -2272,66 +2272,66 @@ const barChartClassNames = {
2272
2272
  ...labelClassnames,
2273
2273
  ...barChartLinesClassNames,
2274
2274
  };
2275
- const SvgWrapper$1 = styled(Wrapper) `
2276
- display: ${({ selectable }) => selectable && "inline-block"};
2277
- user-select: ${({ selectable }) => selectable && "none"};
2278
- width: ${({ selectable }) => selectable && "auto"};
2279
-
2280
- line {
2281
- stroke-width: 1px;
2282
- shape-rendering: crispEdges;
2283
- }
2284
-
2285
- .${barChartClassNames.barChartGridLineX},
2286
- .${barChartClassNames.barChartGridLineY} {
2287
- stroke: rgba(48, 69, 79, 0.06);
2288
- }
2289
-
2290
- .${barChartClassNames.barChartMouseRect} {
2291
- }
2292
-
2293
- .${barChartClassNames.barChartMouseRect} {
2294
- fill: none;
2295
- pointer-events: all;
2296
- }
2297
-
2298
- .${barChartClassNames.barChartLinesGlobal} {
2299
- stroke-width: 1.5px;
2300
- stroke-linejoin: round;
2301
- stroke-linecap: round;
2302
- }
2303
-
2304
- .${barChartClassNames.barChartLine} {
2305
- shape-rendering: auto;
2306
- }
2307
-
2308
- .${barChartClassNames.barChartArea} {
2309
- fill-opacity: 0.24;
2310
- }
2311
-
2312
- .${barChartClassNames.barChartSelection} {
2313
- position: absolute;
2314
- top: 0;
2315
- width: 0;
2316
- background: rgba(0, 170, 255, 0.06);
2317
- box-shadow: 1px 0 0 #00AAFF, -1px 0 0 #00AAFF;
2318
- pointer-events: none;
2319
- }
2275
+ const SvgWrapper$1 = styled(Wrapper) `
2276
+ display: ${({ selectable }) => selectable && "inline-block"};
2277
+ user-select: ${({ selectable }) => selectable && "none"};
2278
+ width: ${({ selectable }) => selectable && "auto"};
2279
+
2280
+ line {
2281
+ stroke-width: 1px;
2282
+ shape-rendering: crispEdges;
2283
+ }
2284
+
2285
+ .${barChartClassNames.barChartGridLineX},
2286
+ .${barChartClassNames.barChartGridLineY} {
2287
+ stroke: rgba(48, 69, 79, 0.06);
2288
+ }
2289
+
2290
+ .${barChartClassNames.barChartMouseRect} {
2291
+ }
2292
+
2293
+ .${barChartClassNames.barChartMouseRect} {
2294
+ fill: none;
2295
+ pointer-events: all;
2296
+ }
2297
+
2298
+ .${barChartClassNames.barChartLinesGlobal} {
2299
+ stroke-width: 1.5px;
2300
+ stroke-linejoin: round;
2301
+ stroke-linecap: round;
2302
+ }
2303
+
2304
+ .${barChartClassNames.barChartLine} {
2305
+ shape-rendering: auto;
2306
+ }
2307
+
2308
+ .${barChartClassNames.barChartArea} {
2309
+ fill-opacity: 0.24;
2310
+ }
2311
+
2312
+ .${barChartClassNames.barChartSelection} {
2313
+ position: absolute;
2314
+ top: 0;
2315
+ width: 0;
2316
+ background: rgba(0, 170, 255, 0.06);
2317
+ box-shadow: 1px 0 0 #00AAFF, -1px 0 0 #00AAFF;
2318
+ pointer-events: none;
2319
+ }
2320
2320
  `;
2321
- const TooltipStyles$1 = styled.createGlobalStyle `
2322
- .${barChartClassNames.barChartMouseTooltip} {
2323
- z-index: 100;
2324
- transition: all linear 144ms;
2325
-
2326
- .${barChartClassNames.barChartTooltipItem} {
2327
- padding: 0.125rem;
2328
- margin-bottom: 4px;
2329
-
2330
- :last-of-type {
2331
- margin-bottom: 0;
2332
- }
2333
- }
2334
- }
2321
+ const TooltipStyles$1 = styled.createGlobalStyle `
2322
+ .${barChartClassNames.barChartMouseTooltip} {
2323
+ z-index: 100;
2324
+ transition: all linear 144ms;
2325
+
2326
+ .${barChartClassNames.barChartTooltipItem} {
2327
+ padding: 0.125rem;
2328
+ margin-bottom: 4px;
2329
+
2330
+ :last-of-type {
2331
+ margin-bottom: 0;
2332
+ }
2333
+ }
2334
+ }
2335
2335
  `;
2336
2336
 
2337
2337
  const useSelection = (node, props) => {
@@ -3171,45 +3171,45 @@ const horizontalBarChartClassNames = {
3171
3171
  horizontalBarChartTooltipName: "horizontalBarChartTooltipName",
3172
3172
  horizontalBarChartTooltipValue: "horizontalBarChartTooltipValue",
3173
3173
  };
3174
- const Table = styled.table `
3175
- width: 100%;
3174
+ const Table = styled.table `
3175
+ width: 100%;
3176
3176
  `;
3177
- const LabelCell = styled.div `
3178
- text-align: right;
3177
+ const LabelCell = styled.div `
3178
+ text-align: right;
3179
3179
  `;
3180
- const BarFlex = styled.div `
3181
- width: 100%;
3182
- display: flex;
3183
- height: 1rem;
3180
+ const BarFlex = styled.div `
3181
+ width: 100%;
3182
+ display: flex;
3183
+ height: 1rem;
3184
3184
  `;
3185
- const BarsTd = styled.td `
3186
- width: 100%;
3187
- position: relative;
3188
- vertical-align: middle;
3185
+ const BarsTd = styled.td `
3186
+ width: 100%;
3187
+ position: relative;
3188
+ vertical-align: middle;
3189
3189
  `;
3190
- const TooltipFlex = styled(TooltipFlex$1) `
3191
- position: absolute;
3192
- top: 0;
3193
- left: 50%;
3194
- transform: translate(-50%, -50%);
3195
- will-change: left, top;
3190
+ const TooltipFlex = styled(TooltipFlex$1) `
3191
+ position: absolute;
3192
+ top: 0;
3193
+ left: 50%;
3194
+ transform: translate(-50%, -50%);
3195
+ will-change: left, top;
3196
3196
  `;
3197
- const StackSumContainer = styled.div `
3198
- position: relative;
3197
+ const StackSumContainer = styled.div `
3198
+ position: relative;
3199
3199
  `;
3200
- const StackSum = styled.div `
3201
- white-space: nowrap;
3202
- position: absolute;
3203
- top: 50%;
3204
- left: 50%;
3205
- transform: translate(0, -50%);
3200
+ const StackSum = styled.div `
3201
+ white-space: nowrap;
3202
+ position: absolute;
3203
+ top: 50%;
3204
+ left: 50%;
3205
+ transform: translate(0, -50%);
3206
3206
  `;
3207
- const StackWrapper = styled.div `
3208
- position: absolute;
3209
- top: 0;
3210
- display: flex;
3211
- justify-content: flex-start;
3212
- height: 100%;
3207
+ const StackWrapper = styled.div `
3208
+ position: absolute;
3209
+ top: 0;
3210
+ display: flex;
3211
+ justify-content: flex-start;
3212
+ height: 100%;
3213
3213
  `;
3214
3214
 
3215
3215
  const Tooltip$1 = ({ renderTooltip, bars, style, className, }) => {
@@ -3261,10 +3261,10 @@ const useStackWrapper = (stackedTooltip) => {
3261
3261
  : ({ children }) => (jsxRuntime.jsx(react.Fragment, { children: children })), [stackedTooltip]);
3262
3262
  };
3263
3263
 
3264
- const BarStyled = styled.div `
3265
- position: relative;
3266
- display: inline-flex;
3267
- height: 100%;
3264
+ const BarStyled = styled.div `
3265
+ position: relative;
3266
+ display: inline-flex;
3267
+ height: 100%;
3268
3268
  `;
3269
3269
 
3270
3270
  const Bar = ({ withTooltip, bar, formatNativeTitle, tooltipBind, mouseMove, mouseLeave, pointerEventsNone, isFirstChild, isLastChild, isOnlyChild, }) => {
@@ -3281,23 +3281,23 @@ const Bar = ({ withTooltip, bar, formatNativeTitle, tooltipBind, mouseMove, mous
3281
3281
  }, title: formatNativeTitle ? formatNativeTitle(bar) : "", onMouseOver: onMouseMove, onMouseMove: tooltipBind ? onMouseMove : void 0, onMouseOut: onMouseLeave }));
3282
3282
  };
3283
3283
 
3284
- const TickTd = styled.td `
3285
- position: relative;
3284
+ const TickTd = styled.td `
3285
+ position: relative;
3286
3286
  `;
3287
- const Ticks = styled.div `
3288
- position: relative;
3289
- height: 1rem;
3287
+ const Ticks = styled.div `
3288
+ position: relative;
3289
+ height: 1rem;
3290
3290
  `;
3291
- const Tick = styled.div `
3292
- white-space: nowrap;
3293
- width: 0;
3294
- height: 0;
3295
- position: absolute;
3296
- top: 50%;
3297
- transform: translateY(-50%);
3298
- display: flex;
3299
- align-items: center;
3300
- justify-content: center;
3291
+ const Tick = styled.div `
3292
+ white-space: nowrap;
3293
+ width: 0;
3294
+ height: 0;
3295
+ position: absolute;
3296
+ top: 50%;
3297
+ transform: translateY(-50%);
3298
+ display: flex;
3299
+ align-items: center;
3300
+ justify-content: center;
3301
3301
  `;
3302
3302
 
3303
3303
  const hundred = 100;
@@ -3396,29 +3396,29 @@ const bubbleChartClassNames = {
3396
3396
  bubbleChartTooltipFlex: "bubbleChartTooltipFlex",
3397
3397
  bubbleChartTip: "bubbleChartTip",
3398
3398
  };
3399
- const SvgWrapper = styled(Wrapper) `
3400
- .${bubbleChartClassNames.bubbleChartYAxis},
3401
- .${bubbleChartClassNames.bubbleChartXAxis},
3402
- .${bubbleChartClassNames.bubbleChartGridGlobal} {
3403
- shape-rendering: crispEdges;
3404
- }
3405
-
3406
- .${bubbleChartClassNames.bubbleChartGridLineX},
3407
- .${bubbleChartClassNames.bubbleChartGridLineY} {
3408
- stroke: rgba(149, 149, 149, 0.24);
3409
- }
3410
-
3411
- .${bubbleChartClassNames.bubbleChartYScaleLabel} {
3412
- font-size: 10px;
3413
- }
3399
+ const SvgWrapper = styled(Wrapper) `
3400
+ .${bubbleChartClassNames.bubbleChartYAxis},
3401
+ .${bubbleChartClassNames.bubbleChartXAxis},
3402
+ .${bubbleChartClassNames.bubbleChartGridGlobal} {
3403
+ shape-rendering: crispEdges;
3404
+ }
3405
+
3406
+ .${bubbleChartClassNames.bubbleChartGridLineX},
3407
+ .${bubbleChartClassNames.bubbleChartGridLineY} {
3408
+ stroke: rgba(149, 149, 149, 0.24);
3409
+ }
3410
+
3411
+ .${bubbleChartClassNames.bubbleChartYScaleLabel} {
3412
+ font-size: 10px;
3413
+ }
3414
3414
  `;
3415
- const TooltipStyles = styled.createGlobalStyle `
3416
- .${bubbleChartClassNames.bubbleChartTooltipContainer} {
3417
- position: absolute;
3418
- transition: opacity 150ms cubic-bezier(0.2, 1, 0.6, 1);
3419
- pointer-events: none;
3420
- z-index: 1;
3421
- }
3415
+ const TooltipStyles = styled.createGlobalStyle `
3416
+ .${bubbleChartClassNames.bubbleChartTooltipContainer} {
3417
+ position: absolute;
3418
+ transition: opacity 150ms cubic-bezier(0.2, 1, 0.6, 1);
3419
+ pointer-events: none;
3420
+ z-index: 1;
3421
+ }
3422
3422
  `;
3423
3423
 
3424
3424
  const drawGrid = ({ svg, yScale, xScale, yTicksCount, drawGridX, drawGridY, }) => {
@@ -3455,14 +3455,14 @@ const drawGrid = ({ svg, yScale, xScale, yTicksCount, drawGridX, drawGridY, }) =
3455
3455
  }
3456
3456
  };
3457
3457
 
3458
- const Tooltip = styled.div `
3459
- width: 0;
3460
- height: 0;
3461
- display: flex;
3462
- align-items: flex-end;
3463
- justify-content: center;
3464
- font-size: 12px;
3465
- white-space: nowrap;
3458
+ const Tooltip = styled.div `
3459
+ width: 0;
3460
+ height: 0;
3461
+ display: flex;
3462
+ align-items: flex-end;
3463
+ justify-content: center;
3464
+ font-size: 12px;
3465
+ white-space: nowrap;
3466
3466
  `;
3467
3467
 
3468
3468
  const drawTooltip = ({ bubbles, tooltipRoot, tooltipClassName, renderTooltip, }) => {