@moontra/moonui-pro 2.30.5 → 2.30.6
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.global.js +1 -1
- package/dist/index.global.js.map +1 -1
- package/dist/index.mjs +8 -10
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -86154,25 +86154,23 @@ function ChartWidget2({
|
|
|
86154
86154
|
}) }),
|
|
86155
86155
|
hoveredIndex !== null && (() => {
|
|
86156
86156
|
const barWidth = 85 / values.length;
|
|
86157
|
-
const
|
|
86158
|
-
const barHeight = values[hoveredIndex] / maxValue * 100;
|
|
86159
|
-
const tooltipBottom = Math.min(85, Math.max(40, 30 + barHeight * 0.7));
|
|
86157
|
+
const barCenterX = 10 + hoveredIndex * barWidth + barWidth / 2;
|
|
86160
86158
|
return /* @__PURE__ */ jsxs(
|
|
86161
86159
|
motion.div,
|
|
86162
86160
|
{
|
|
86163
|
-
className: "absolute bg-background border rounded-lg px-3 py-2 text-xs pointer-events-none shadow-
|
|
86161
|
+
className: "absolute bg-background border-2 rounded-lg px-3 py-2 text-xs pointer-events-none shadow-xl",
|
|
86164
86162
|
style: {
|
|
86165
|
-
left: `${
|
|
86166
|
-
|
|
86167
|
-
transform: "
|
|
86163
|
+
left: `${barCenterX}%`,
|
|
86164
|
+
top: "50%",
|
|
86165
|
+
transform: "translate(-50%, -50%)",
|
|
86168
86166
|
zIndex: 100
|
|
86169
86167
|
},
|
|
86170
|
-
initial: { opacity: 0,
|
|
86171
|
-
animate: { opacity: 1,
|
|
86168
|
+
initial: { opacity: 0, scale: 0.95 },
|
|
86169
|
+
animate: { opacity: 1, scale: 1 },
|
|
86172
86170
|
transition: { duration: 0.15 },
|
|
86173
86171
|
children: [
|
|
86174
86172
|
/* @__PURE__ */ jsx("div", { className: "font-medium text-foreground", children: labels[hoveredIndex] || `Item ${hoveredIndex + 1}` }),
|
|
86175
|
-
/* @__PURE__ */ jsx("div", { className: "text-primary font-
|
|
86173
|
+
/* @__PURE__ */ jsx("div", { className: "text-primary font-bold text-sm mt-0.5", children: formatNumber2(values[hoveredIndex]) })
|
|
86176
86174
|
]
|
|
86177
86175
|
}
|
|
86178
86176
|
);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moontra/moonui-pro",
|
|
3
|
-
"version": "2.30.
|
|
3
|
+
"version": "2.30.6",
|
|
4
4
|
"description": "Premium React components for MoonUI - Advanced UI library with 50+ pro components including performance, interactive, and gesture components",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.mjs",
|