impaktapps-design 0.2.89-alpha.404 → 0.2.89-alpha.405
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/impaktapps-design.es.js +9 -6
- package/dist/impaktapps-design.es.js.map +1 -1
- package/dist/impaktapps-design.umd.js +6 -6
- package/dist/impaktapps-design.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/component/PieGraph/DrawPieGraph.tsx +1 -0
- package/src/component/ToolTip.tsx +2 -2
|
@@ -10461,21 +10461,23 @@ const ToolTip = ({
|
|
|
10461
10461
|
left: left2,
|
|
10462
10462
|
tooltipData
|
|
10463
10463
|
}) => {
|
|
10464
|
-
|
|
10464
|
+
const {
|
|
10465
|
+
TooltipInPortal
|
|
10466
|
+
} = useTooltipInPortal({
|
|
10465
10467
|
detectBounds: true,
|
|
10466
10468
|
scroll: true
|
|
10467
10469
|
});
|
|
10468
|
-
|
|
10470
|
+
const tooltipStyles2 = {
|
|
10469
10471
|
...defaultStyles,
|
|
10470
10472
|
minWidth: 200,
|
|
10471
10473
|
height: 20,
|
|
10472
10474
|
backgroundColor: "lightgrey",
|
|
10473
10475
|
color: "black"
|
|
10474
|
-
}
|
|
10475
|
-
return /* @__PURE__ */ jsx(
|
|
10476
|
+
};
|
|
10477
|
+
return /* @__PURE__ */ jsx(TooltipInPortal, {
|
|
10476
10478
|
top: top2,
|
|
10477
10479
|
left: left2,
|
|
10478
|
-
style:
|
|
10480
|
+
style: tooltipStyles2,
|
|
10479
10481
|
children: /* @__PURE__ */ jsxs("div", {
|
|
10480
10482
|
style: {
|
|
10481
10483
|
display: "flex",
|
|
@@ -10493,7 +10495,7 @@ const ToolTip = ({
|
|
|
10493
10495
|
})
|
|
10494
10496
|
})]
|
|
10495
10497
|
})
|
|
10496
|
-
});
|
|
10498
|
+
}, Math.random());
|
|
10497
10499
|
};
|
|
10498
10500
|
var _excluded$F = ["flexDirection", "alignItems", "margin", "display", "children"];
|
|
10499
10501
|
function _extends$B() {
|
|
@@ -11796,6 +11798,7 @@ const DrawPieGraph = ({
|
|
|
11796
11798
|
const arcFill = getLetterFrequencyColor(letter, indexParam);
|
|
11797
11799
|
return /* @__PURE__ */ jsxs("g", {
|
|
11798
11800
|
onMouseOut: hideTooltip,
|
|
11801
|
+
onMouseLeave: () => setActive(null),
|
|
11799
11802
|
onMouseOver: (e3) => handleMouse(e3, arc2, arc2.data),
|
|
11800
11803
|
className: "pieTooltipHolder",
|
|
11801
11804
|
children: [/* @__PURE__ */ jsx("path", {
|