@marcoschwartz/lite-ui 0.26.3 → 0.26.4

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.js CHANGED
@@ -7966,6 +7966,7 @@ var AreaChart = ({
7966
7966
  ariaLabel
7967
7967
  }) => {
7968
7968
  const containerRef = (0, import_react33.useRef)(null);
7969
+ const chartId = (0, import_react33.useId)();
7969
7970
  const [hoveredPoint, setHoveredPoint] = (0, import_react33.useState)(null);
7970
7971
  const { tooltipData, showTooltip: showTooltipFn, hideTooltip } = useTooltip();
7971
7972
  const {
@@ -8208,7 +8209,7 @@ var AreaChart = ({
8208
8209
  return /* @__PURE__ */ (0, import_jsx_runtime117.jsxs)(
8209
8210
  "linearGradient",
8210
8211
  {
8211
- id: `area-gradient-${i}`,
8212
+ id: `area-gradient-${chartId}-${i}`,
8212
8213
  x1: "0",
8213
8214
  y1: "0",
8214
8215
  x2: "0",
@@ -8251,7 +8252,7 @@ var AreaChart = ({
8251
8252
  "path",
8252
8253
  {
8253
8254
  d: areaPath,
8254
- fill: `url(#area-gradient-${seriesIndex})`,
8255
+ fill: `url(#area-gradient-${chartId}-${seriesIndex})`,
8255
8256
  style: animate ? {
8256
8257
  opacity: 0,
8257
8258
  animation: `fadeIn ${animationDuration}ms ease-out forwards`