@chakra-ui/charts 3.28.0 → 3.28.1

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.
@@ -1,5 +1,5 @@
1
1
  import type { BoxProps } from "@chakra-ui/react";
2
- import type { LegendProps, TooltipProps } from "recharts";
2
+ import type { LegendPayload, LegendProps, TooltipContentProps } from "recharts";
3
3
  import type { Payload } from "recharts/types/component/DefaultTooltipContent";
4
4
  import type { ViewBox } from "recharts/types/util/types";
5
5
  import { type ChartColor, type UseChartReturn } from "../use-chart";
@@ -22,9 +22,10 @@ export interface ChartLegendProps extends LegendProps {
22
22
  title?: React.ReactNode;
23
23
  nameKey?: string;
24
24
  interaction?: "hover" | "click";
25
+ payload?: LegendPayload[];
25
26
  }
26
27
  export declare function ChartLegend(props: ChartLegendProps): import("react/jsx-runtime").JSX.Element | null;
27
- export interface ChartTooltipProps extends TooltipProps<string, string> {
28
+ export interface ChartTooltipProps extends Partial<TooltipContentProps<string | number, string>> {
28
29
  hideLabel?: boolean;
29
30
  hideIndicator?: boolean;
30
31
  hideSeriesLabel?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chakra-ui/charts",
3
- "version": "3.28.0",
3
+ "version": "3.28.1",
4
4
  "description": "Data visualization components for Chakra UI",
5
5
  "type": "module",
6
6
  "main": "dist/cjs/index.cjs",
@@ -43,14 +43,14 @@
43
43
  "./package.json": "./package.json"
44
44
  },
45
45
  "devDependencies": {
46
- "recharts": "2.15.3",
46
+ "recharts": "^3.3.0",
47
47
  "react": "19.2.0",
48
48
  "react-dom": "19.2.0",
49
- "@chakra-ui/react": "3.28.0"
49
+ "@chakra-ui/react": "3.28.1"
50
50
  },
51
51
  "peerDependencies": {
52
52
  "@chakra-ui/react": ">=3",
53
- "recharts": ">=2",
53
+ "recharts": ">=3",
54
54
  "react": ">=18",
55
55
  "react-dom": ">=18"
56
56
  },