@chakra-ui/charts 3.33.0 → 3.35.0

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.
@@ -5,7 +5,6 @@
5
5
  var jsxRuntime = require('react/jsx-runtime');
6
6
  var react = require('@chakra-ui/react');
7
7
  var React = require('react');
8
- var recharts = require('recharts');
9
8
  var useChart = require('../use-chart.cjs');
10
9
 
11
10
  const ChartContext = React.createContext({});
@@ -29,6 +28,10 @@ const baseCss = react.defineStyle({
29
28
  },
30
29
  "& svg": {
31
30
  overflow: "visible"
31
+ },
32
+ "& .recharts-wrapper": {
33
+ width: "100%",
34
+ height: "100%"
32
35
  }
33
36
  });
34
37
  function ChartRoot(props) {
@@ -40,7 +43,7 @@ function ChartRoot(props) {
40
43
  textStyle: "xs",
41
44
  css: [baseCss, css],
42
45
  ...rest,
43
- children: /* @__PURE__ */ jsxRuntime.jsx(recharts.ResponsiveContainer, { children })
46
+ children
44
47
  }
45
48
  ) });
46
49
  }
@@ -3,7 +3,6 @@
3
3
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
4
4
  import { defineStyle, Stack, Text, Flex, HStack, ColorSwatch, Span, Box, Separator } from '@chakra-ui/react';
5
5
  import { createContext, useMemo, useContext } from 'react';
6
- import { ResponsiveContainer } from 'recharts';
7
6
  import { getProp } from '../use-chart.js';
8
7
 
9
8
  const ChartContext = createContext({});
@@ -27,6 +26,10 @@ const baseCss = defineStyle({
27
26
  },
28
27
  "& svg": {
29
28
  overflow: "visible"
29
+ },
30
+ "& .recharts-wrapper": {
31
+ width: "100%",
32
+ height: "100%"
30
33
  }
31
34
  });
32
35
  function ChartRoot(props) {
@@ -38,7 +41,7 @@ function ChartRoot(props) {
38
41
  textStyle: "xs",
39
42
  css: [baseCss, css],
40
43
  ...rest,
41
- children: /* @__PURE__ */ jsx(ResponsiveContainer, { children })
44
+ children
42
45
  }
43
46
  ) });
44
47
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chakra-ui/charts",
3
- "version": "3.33.0",
3
+ "version": "3.35.0",
4
4
  "description": "Data visualization components for Chakra UI",
5
5
  "type": "module",
6
6
  "main": "dist/cjs/index.cjs",
@@ -43,10 +43,10 @@
43
43
  "./package.json": "./package.json"
44
44
  },
45
45
  "devDependencies": {
46
- "recharts": "^3.4.1",
47
- "react": "19.2.4",
48
- "react-dom": "19.2.4",
49
- "@chakra-ui/react": "3.33.0"
46
+ "recharts": "^3.7.0",
47
+ "react": "19.2.5",
48
+ "react-dom": "19.2.5",
49
+ "@chakra-ui/react": "3.35.0"
50
50
  },
51
51
  "peerDependencies": {
52
52
  "@chakra-ui/react": ">=3",