@chakra-ui/charts 3.33.0 → 3.34.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.
- package/dist/cjs/chart/chart.cjs +5 -2
- package/dist/cjs/index.cjs +12 -12
- package/dist/esm/chart/chart.js +5 -2
- package/dist/esm/index.js +5 -5
- package/package.json +3 -3
package/dist/cjs/chart/chart.cjs
CHANGED
|
@@ -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
|
|
46
|
+
children
|
|
44
47
|
}
|
|
45
48
|
) });
|
|
46
49
|
}
|
package/dist/cjs/index.cjs
CHANGED
|
@@ -2,17 +2,22 @@
|
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
4
|
var useChart = require('./use-chart.cjs');
|
|
5
|
-
var
|
|
5
|
+
var chart = require('./chart/chart.cjs');
|
|
6
|
+
var namespace$2 = require('./chart/namespace.cjs');
|
|
6
7
|
var barList = require('./bar-list/bar-list.cjs');
|
|
7
|
-
var namespace
|
|
8
|
+
var namespace = require('./bar-list/namespace.cjs');
|
|
8
9
|
var barSegment = require('./bar-segment/bar-segment.cjs');
|
|
9
|
-
var namespace$
|
|
10
|
-
var chart = require('./chart/chart.cjs');
|
|
10
|
+
var namespace$1 = require('./bar-segment/namespace.cjs');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
exports.useChart = useChart.useChart;
|
|
15
|
-
exports.
|
|
15
|
+
exports.ChartGradient = chart.ChartGradient;
|
|
16
|
+
exports.ChartLegend = chart.ChartLegend;
|
|
17
|
+
exports.ChartRadialText = chart.ChartRadialText;
|
|
18
|
+
exports.ChartRoot = chart.ChartRoot;
|
|
19
|
+
exports.ChartTooltip = chart.ChartTooltip;
|
|
20
|
+
exports.Chart = namespace$2;
|
|
16
21
|
exports.BarListBar = barList.BarListBar;
|
|
17
22
|
exports.BarListContent = barList.BarListContent;
|
|
18
23
|
exports.BarListLabel = barList.BarListLabel;
|
|
@@ -20,7 +25,7 @@ exports.BarListRoot = barList.BarListRoot;
|
|
|
20
25
|
exports.BarListTitle = barList.BarListTitle;
|
|
21
26
|
exports.BarListTooltip = barList.BarListTooltip;
|
|
22
27
|
exports.BarListValue = barList.BarListValue;
|
|
23
|
-
exports.
|
|
28
|
+
exports.BarList = namespace;
|
|
24
29
|
exports.BarSegmentBar = barSegment.BarSegmentBar;
|
|
25
30
|
exports.BarSegmentContent = barSegment.BarSegmentContent;
|
|
26
31
|
exports.BarSegmentLabel = barSegment.BarSegmentLabel;
|
|
@@ -28,9 +33,4 @@ exports.BarSegmentLegend = barSegment.BarSegmentLegend;
|
|
|
28
33
|
exports.BarSegmentReference = barSegment.BarSegmentReference;
|
|
29
34
|
exports.BarSegmentRoot = barSegment.BarSegmentRoot;
|
|
30
35
|
exports.BarSegmentValue = barSegment.BarSegmentValue;
|
|
31
|
-
exports.
|
|
32
|
-
exports.ChartGradient = chart.ChartGradient;
|
|
33
|
-
exports.ChartLegend = chart.ChartLegend;
|
|
34
|
-
exports.ChartRadialText = chart.ChartRadialText;
|
|
35
|
-
exports.ChartRoot = chart.ChartRoot;
|
|
36
|
-
exports.ChartTooltip = chart.ChartTooltip;
|
|
36
|
+
exports.BarSegment = namespace$1;
|
package/dist/esm/chart/chart.js
CHANGED
|
@@ -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
|
|
44
|
+
children
|
|
42
45
|
}
|
|
43
46
|
) });
|
|
44
47
|
}
|
package/dist/esm/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
export { useChart } from './use-chart.js';
|
|
3
|
+
export { ChartGradient, ChartLegend, ChartRadialText, ChartRoot, ChartTooltip } from './chart/chart.js';
|
|
4
|
+
import * as namespace$2 from './chart/namespace.js';
|
|
5
|
+
export { namespace$2 as Chart };
|
|
6
|
+
export { BarListBar, BarListContent, BarListLabel, BarListRoot, BarListTitle, BarListTooltip, BarListValue } from './bar-list/bar-list.js';
|
|
3
7
|
import * as namespace from './bar-list/namespace.js';
|
|
4
8
|
export { namespace as BarList };
|
|
5
|
-
export {
|
|
9
|
+
export { BarSegmentBar, BarSegmentContent, BarSegmentLabel, BarSegmentLegend, BarSegmentReference, BarSegmentRoot, BarSegmentValue } from './bar-segment/bar-segment.js';
|
|
6
10
|
import * as namespace$1 from './bar-segment/namespace.js';
|
|
7
11
|
export { namespace$1 as BarSegment };
|
|
8
|
-
export { BarSegmentBar, BarSegmentContent, BarSegmentLabel, BarSegmentLegend, BarSegmentReference, BarSegmentRoot, BarSegmentValue } from './bar-segment/bar-segment.js';
|
|
9
|
-
import * as namespace$2 from './chart/namespace.js';
|
|
10
|
-
export { namespace$2 as Chart };
|
|
11
|
-
export { ChartGradient, ChartLegend, ChartRadialText, ChartRoot, ChartTooltip } from './chart/chart.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chakra-ui/charts",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.34.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.
|
|
46
|
+
"recharts": "^3.7.0",
|
|
47
47
|
"react": "19.2.4",
|
|
48
48
|
"react-dom": "19.2.4",
|
|
49
|
-
"@chakra-ui/react": "3.
|
|
49
|
+
"@chakra-ui/react": "3.34.0"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
|
52
52
|
"@chakra-ui/react": ">=3",
|