@moontra/moonui-pro 2.30.5 → 2.30.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.global.js +1 -1
- package/dist/index.global.js.map +1 -1
- package/dist/index.mjs +18 -17
- 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
|
);
|
|
@@ -86217,7 +86215,7 @@ function ChartWidget2({
|
|
|
86217
86215
|
{
|
|
86218
86216
|
className: "w-full h-full",
|
|
86219
86217
|
viewBox: "0 0 100 100",
|
|
86220
|
-
preserveAspectRatio: "
|
|
86218
|
+
preserveAspectRatio: "xMidYMid meet",
|
|
86221
86219
|
children: [
|
|
86222
86220
|
/* @__PURE__ */ jsxs("defs", { children: [
|
|
86223
86221
|
/* @__PURE__ */ jsxs("linearGradient", { id: "chartLineGradient", x1: "0%", y1: "0%", x2: "100%", y2: "0%", children: [
|
|
@@ -86252,12 +86250,15 @@ function ChartWidget2({
|
|
|
86252
86250
|
d: pathData,
|
|
86253
86251
|
fill: "none",
|
|
86254
86252
|
stroke: "url(#chartLineGradient)",
|
|
86255
|
-
strokeWidth: "
|
|
86253
|
+
strokeWidth: "2",
|
|
86256
86254
|
strokeLinecap: "round",
|
|
86257
86255
|
strokeLinejoin: "round",
|
|
86258
86256
|
initial: { pathLength: 0 },
|
|
86259
86257
|
animate: { pathLength: 1 },
|
|
86260
|
-
transition: { duration: animate5 ? 1 : 0 }
|
|
86258
|
+
transition: { duration: animate5 ? 1 : 0 },
|
|
86259
|
+
style: {
|
|
86260
|
+
vectorEffect: "non-scaling-stroke"
|
|
86261
|
+
}
|
|
86261
86262
|
}
|
|
86262
86263
|
),
|
|
86263
86264
|
type === "area" && /* @__PURE__ */ jsx(
|
|
@@ -86275,15 +86276,15 @@ function ChartWidget2({
|
|
|
86275
86276
|
{
|
|
86276
86277
|
cx: point.x,
|
|
86277
86278
|
cy: point.y,
|
|
86278
|
-
r: "1.
|
|
86279
|
+
r: "1.5",
|
|
86279
86280
|
fill: chartColors[0],
|
|
86280
86281
|
stroke: "white",
|
|
86281
|
-
strokeWidth: "1",
|
|
86282
|
+
strokeWidth: "1.5",
|
|
86282
86283
|
initial: { r: 0, opacity: 0 },
|
|
86283
86284
|
animate: {
|
|
86284
|
-
r: hoveredIndex === index2 ? 2 : 1.
|
|
86285
|
+
r: hoveredIndex === index2 ? 2.5 : 1.5,
|
|
86285
86286
|
opacity: 1,
|
|
86286
|
-
strokeWidth: hoveredIndex === index2 ?
|
|
86287
|
+
strokeWidth: hoveredIndex === index2 ? 2 : 1.5
|
|
86287
86288
|
},
|
|
86288
86289
|
onMouseEnter: () => setHoveredIndex(index2),
|
|
86289
86290
|
onMouseLeave: () => setHoveredIndex(null),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moontra/moonui-pro",
|
|
3
|
-
"version": "2.30.
|
|
3
|
+
"version": "2.30.7",
|
|
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",
|