@moontra/moonui-pro 2.30.4 → 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 +23 -19
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -86152,25 +86152,29 @@ function ChartWidget2({
|
|
|
86152
86152
|
index2
|
|
86153
86153
|
);
|
|
86154
86154
|
}) }),
|
|
86155
|
-
hoveredIndex !== null &&
|
|
86156
|
-
|
|
86157
|
-
|
|
86158
|
-
|
|
86159
|
-
|
|
86160
|
-
|
|
86161
|
-
|
|
86162
|
-
|
|
86163
|
-
|
|
86164
|
-
|
|
86165
|
-
|
|
86166
|
-
|
|
86167
|
-
|
|
86168
|
-
|
|
86169
|
-
|
|
86170
|
-
|
|
86171
|
-
|
|
86172
|
-
|
|
86173
|
-
|
|
86155
|
+
hoveredIndex !== null && (() => {
|
|
86156
|
+
const barWidth = 85 / values.length;
|
|
86157
|
+
const barCenterX = 10 + hoveredIndex * barWidth + barWidth / 2;
|
|
86158
|
+
return /* @__PURE__ */ jsxs(
|
|
86159
|
+
motion.div,
|
|
86160
|
+
{
|
|
86161
|
+
className: "absolute bg-background border-2 rounded-lg px-3 py-2 text-xs pointer-events-none shadow-xl",
|
|
86162
|
+
style: {
|
|
86163
|
+
left: `${barCenterX}%`,
|
|
86164
|
+
top: "50%",
|
|
86165
|
+
transform: "translate(-50%, -50%)",
|
|
86166
|
+
zIndex: 100
|
|
86167
|
+
},
|
|
86168
|
+
initial: { opacity: 0, scale: 0.95 },
|
|
86169
|
+
animate: { opacity: 1, scale: 1 },
|
|
86170
|
+
transition: { duration: 0.15 },
|
|
86171
|
+
children: [
|
|
86172
|
+
/* @__PURE__ */ jsx("div", { className: "font-medium text-foreground", children: labels[hoveredIndex] || `Item ${hoveredIndex + 1}` }),
|
|
86173
|
+
/* @__PURE__ */ jsx("div", { className: "text-primary font-bold text-sm mt-0.5", children: formatNumber2(values[hoveredIndex]) })
|
|
86174
|
+
]
|
|
86175
|
+
}
|
|
86176
|
+
);
|
|
86177
|
+
})(),
|
|
86174
86178
|
/* @__PURE__ */ jsx("div", { className: "absolute bottom-0 left-10 right-0 flex justify-between gap-1 pr-2 h-6", children: labels.map((label, index2) => /* @__PURE__ */ jsx("div", { className: "flex-1 flex justify-center", children: /* @__PURE__ */ jsx("span", { className: "text-xs text-muted-foreground truncate", children: label }) }, index2)) }),
|
|
86175
86179
|
showGrid && /* @__PURE__ */ jsxs("div", { className: "absolute inset-0 pb-6 pointer-events-none", children: [
|
|
86176
86180
|
[0, 25, 50, 75, 100].map((percentage) => /* @__PURE__ */ jsx(
|
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",
|