@lobehub/charts 4.0.0 → 4.0.2
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/es/AccuracyBarChart/index.js +11 -17
- package/es/AccuracyBarChart/styles.d.ts +11 -11
- package/es/AccuracyBarChart/styles.js +8 -8
- package/es/AreaChart/index.js +9 -13
- package/es/AreaChart/styles.d.ts +6 -6
- package/es/AreaChart/styles.js +6 -6
- package/es/BarChart/index.js +9 -13
- package/es/BarChart/styles.d.ts +6 -6
- package/es/BarChart/styles.js +6 -6
- package/es/BarList/index.js +3 -5
- package/es/BarList/styles.d.ts +10 -10
- package/es/BarList/styles.js +10 -10
- package/es/DataBars/CategoryBar.js +4 -10
- package/es/DataBars/DeltaBar.js +5 -8
- package/es/DataBars/MarkerBar.js +5 -8
- package/es/DataBars/ProgressBar.js +4 -7
- package/es/DataBars/styles.d.ts +7 -7
- package/es/DataBars/styles.js +6 -6
- package/es/DonutChart/index.js +7 -11
- package/es/DonutChart/styles.d.ts +6 -6
- package/es/DonutChart/styles.js +6 -6
- package/es/FunnelChart/index.js +8 -12
- package/es/FunnelChart/styles.d.ts +6 -6
- package/es/FunnelChart/styles.js +6 -6
- package/es/Heatmaps/Calendar.js +133 -50
- package/es/Heatmaps/ChartLabels.js +95 -42
- package/es/Heatmaps/Footer.js +95 -50
- package/es/Heatmaps/index.js +124 -84
- package/es/Heatmaps/styles.d.ts +7 -7
- package/es/Heatmaps/styles.js +4 -4
- package/es/Legend/LegendItem.js +6 -11
- package/es/Legend/index.js +2 -5
- package/es/LineChart/index.js +7 -11
- package/es/LineChart/styles.d.ts +6 -6
- package/es/LineChart/styles.js +6 -6
- package/es/ScatterChart/ScatterChartTooltip.js +5 -10
- package/es/ScatterChart/ScatterChartTooltipRow.js +4 -7
- package/es/ScatterChart/index.js +5 -9
- package/es/ScatterChart/styles.d.ts +6 -6
- package/es/ScatterChart/styles.js +6 -6
- package/es/SparkChart/SparkAreaChart.js +4 -8
- package/es/SparkChart/SparkBarChart.js +2 -6
- package/es/SparkChart/SparkLineChart.js +2 -6
- package/es/Tracker/TrackerBlock.js +7 -11
- package/es/Tracker/index.js +2 -4
- package/es/Tracker/styles.d.ts +5 -5
- package/es/Tracker/styles.js +5 -5
- package/es/common/ChartTooltip/ChartTooltipFrame.d.ts +3 -3
- package/es/common/ChartTooltip/ChartTooltipFrame.js +4 -6
- package/es/common/ChartTooltip/ChartTooltipRow.js +4 -6
- package/es/common/ChartTooltip/index.js +5 -9
- package/es/common/CustomYAxisTick.js +2 -3
- package/es/common/NoData.js +3 -4
- package/package.json +4 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { cssVar } from 'antd-style';
|
|
2
2
|
import React, { memo } from 'react';
|
|
3
3
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
4
4
|
var CustomYAxisTick = /*#__PURE__*/memo(function (_ref) {
|
|
@@ -8,13 +8,12 @@ var CustomYAxisTick = /*#__PURE__*/memo(function (_ref) {
|
|
|
8
8
|
payload = _ref.payload,
|
|
9
9
|
align = _ref.align,
|
|
10
10
|
formatter = _ref.formatter;
|
|
11
|
-
var theme = useTheme();
|
|
12
11
|
var yAxisLabelWidth = yAxisLabel ? 24 : 0;
|
|
13
12
|
return /*#__PURE__*/_jsx("g", {
|
|
14
13
|
transform: "translate(".concat(align === 'left' ? yAxisLabelWidth : x + yAxisLabelWidth, ",").concat(y, ")"),
|
|
15
14
|
children: /*#__PURE__*/_jsx("text", {
|
|
16
15
|
dy: 4,
|
|
17
|
-
fill:
|
|
16
|
+
fill: cssVar.colorTextDescription,
|
|
18
17
|
fontSize: 12,
|
|
19
18
|
textAnchor: align === 'left' ? 'start' : 'end',
|
|
20
19
|
x: 0,
|
package/es/common/NoData.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Center, Flexbox } from '@lobehub/ui';
|
|
2
2
|
import { Empty } from 'antd';
|
|
3
|
-
import {
|
|
3
|
+
import { cssVar } from 'antd-style';
|
|
4
4
|
import { isValidElement, memo } from 'react';
|
|
5
5
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
6
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
@@ -11,7 +11,6 @@ var NoData = /*#__PURE__*/memo(function (_ref) {
|
|
|
11
11
|
title: 'No Data'
|
|
12
12
|
} : _ref$noDataText,
|
|
13
13
|
className = _ref.className;
|
|
14
|
-
var theme = useTheme();
|
|
15
14
|
var isReactNodeText = /*#__PURE__*/isValidElement(noDataText);
|
|
16
15
|
return /*#__PURE__*/_jsx(Center, {
|
|
17
16
|
height: '100%',
|
|
@@ -22,14 +21,14 @@ var NoData = /*#__PURE__*/memo(function (_ref) {
|
|
|
22
21
|
padding: 8,
|
|
23
22
|
children: [/*#__PURE__*/_jsx("div", {
|
|
24
23
|
style: {
|
|
25
|
-
color:
|
|
24
|
+
color: cssVar.colorText,
|
|
26
25
|
fontSize: 14,
|
|
27
26
|
fontWeight: 'bold'
|
|
28
27
|
},
|
|
29
28
|
children: noDataText === null || noDataText === void 0 ? void 0 : noDataText.title
|
|
30
29
|
}), /*#__PURE__*/_jsx("div", {
|
|
31
30
|
style: {
|
|
32
|
-
color:
|
|
31
|
+
color: cssVar.colorTextDescription,
|
|
33
32
|
fontSize: 12
|
|
34
33
|
},
|
|
35
34
|
children: noDataText === null || noDataText === void 0 ? void 0 : noDataText.desc
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lobehub/charts",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.2",
|
|
4
4
|
"description": "React modern charts components built on recharts",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"lobehub",
|
|
@@ -27,16 +27,17 @@
|
|
|
27
27
|
],
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"ahooks": "^3.9.6",
|
|
30
|
-
"antd-style": "^4.
|
|
30
|
+
"antd-style": "^4.1.0",
|
|
31
31
|
"chroma-js": "^3.2.0",
|
|
32
32
|
"date-fns": "^4.1.0",
|
|
33
33
|
"dayjs": "^1.11.19",
|
|
34
|
+
"fast-deep-equal": "^3.1.3",
|
|
34
35
|
"lucide-react": "^0.562.0",
|
|
35
36
|
"polished": "^4.3.1",
|
|
36
37
|
"recharts": "^2.15.4"
|
|
37
38
|
},
|
|
38
39
|
"peerDependencies": {
|
|
39
|
-
"@lobehub/ui": "^4.
|
|
40
|
+
"@lobehub/ui": "^4.3.3",
|
|
40
41
|
"antd": "^6.1.1",
|
|
41
42
|
"react": "^19.0.0",
|
|
42
43
|
"react-dom": "^19.0.0"
|