@moontra/moonui-pro 2.30.2 → 2.30.3

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.mjs CHANGED
@@ -86109,31 +86109,6 @@ function ChartWidget2({
86109
86109
  animate: { opacity: 1, y: 0 },
86110
86110
  transition: { delay: index2 * 0.05 },
86111
86111
  children: [
86112
- isHovered && (() => {
86113
- const showInside = percentage > 70;
86114
- return /* @__PURE__ */ jsxs(
86115
- motion.div,
86116
- {
86117
- className: "absolute bg-background border rounded-lg px-3 py-2 text-xs pointer-events-none z-20 shadow-lg",
86118
- style: showInside ? {
86119
- top: "20px",
86120
- left: "50%",
86121
- transform: "translateX(-50%)"
86122
- } : {
86123
- bottom: `calc(${percentage}% + 8px)`,
86124
- left: "50%",
86125
- transform: "translateX(-50%)"
86126
- },
86127
- initial: { opacity: 0, y: showInside ? -10 : 10 },
86128
- animate: { opacity: 1, y: 0 },
86129
- transition: { duration: 0.2 },
86130
- children: [
86131
- /* @__PURE__ */ jsx("div", { className: "font-medium", children: labels[index2] || `Item ${index2 + 1}` }),
86132
- /* @__PURE__ */ jsx("div", { className: "text-muted-foreground", children: formatNumber2(value) })
86133
- ]
86134
- }
86135
- );
86136
- })(),
86137
86112
  showDataLabels && /* @__PURE__ */ jsx(
86138
86113
  motion.span,
86139
86114
  {
@@ -86177,6 +86152,25 @@ function ChartWidget2({
86177
86152
  index2
86178
86153
  );
86179
86154
  }) }),
86155
+ hoveredIndex !== null && /* @__PURE__ */ jsxs(
86156
+ motion.div,
86157
+ {
86158
+ className: "absolute bg-background border rounded-lg px-3 py-2 text-xs pointer-events-none shadow-lg",
86159
+ style: {
86160
+ left: `${10 + hoveredIndex / values.length * 85 + 85 / values.length / 2}%`,
86161
+ bottom: `${Math.min(90, 30 + values[hoveredIndex] / maxValue * 60)}%`,
86162
+ transform: "translateX(-50%)",
86163
+ zIndex: 50
86164
+ },
86165
+ initial: { opacity: 0, y: 10 },
86166
+ animate: { opacity: 1, y: 0 },
86167
+ transition: { duration: 0.2 },
86168
+ children: [
86169
+ /* @__PURE__ */ jsx("div", { className: "font-medium", children: labels[hoveredIndex] || `Item ${hoveredIndex + 1}` }),
86170
+ /* @__PURE__ */ jsx("div", { className: "text-muted-foreground", children: formatNumber2(values[hoveredIndex]) })
86171
+ ]
86172
+ }
86173
+ ),
86180
86174
  /* @__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)) }),
86181
86175
  showGrid && /* @__PURE__ */ jsxs("div", { className: "absolute inset-0 pb-6 pointer-events-none", children: [
86182
86176
  [0, 25, 50, 75, 100].map((percentage) => /* @__PURE__ */ jsx(
@@ -86275,15 +86269,15 @@ function ChartWidget2({
86275
86269
  {
86276
86270
  cx: point.x,
86277
86271
  cy: point.y,
86278
- r: "0.8",
86272
+ r: "1.2",
86279
86273
  fill: chartColors[0],
86280
86274
  stroke: "white",
86281
- strokeWidth: "0.8",
86275
+ strokeWidth: "1",
86282
86276
  initial: { r: 0, opacity: 0 },
86283
86277
  animate: {
86284
- r: hoveredIndex === index2 ? 1.5 : 0.8,
86278
+ r: hoveredIndex === index2 ? 2 : 1.2,
86285
86279
  opacity: 1,
86286
- strokeWidth: hoveredIndex === index2 ? 1 : 0.8
86280
+ strokeWidth: hoveredIndex === index2 ? 1.2 : 1
86287
86281
  },
86288
86282
  onMouseEnter: () => setHoveredIndex(index2),
86289
86283
  onMouseLeave: () => setHoveredIndex(null),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moontra/moonui-pro",
3
- "version": "2.30.2",
3
+ "version": "2.30.3",
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",