@trackunit/react-chart-components 1.4.45 → 1.4.47

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/index.cjs.js CHANGED
@@ -241,11 +241,11 @@ const useChartColor = () => {
241
241
  const chartStatusColor = react.useCallback((status) => {
242
242
  return uiDesignTokens.CHART_STATUS_COLORS[status];
243
243
  }, []);
244
- return {
244
+ return react.useMemo(() => ({
245
245
  chartColor,
246
246
  chartColorArray,
247
247
  chartStatusColor,
248
- };
248
+ }), [chartColor, chartColorArray, chartStatusColor]);
249
249
  };
250
250
 
251
251
  /**
package/index.esm.js CHANGED
@@ -220,11 +220,11 @@ const useChartColor = () => {
220
220
  const chartStatusColor = useCallback((status) => {
221
221
  return CHART_STATUS_COLORS[status];
222
222
  }, []);
223
- return {
223
+ return useMemo(() => ({
224
224
  chartColor,
225
225
  chartColorArray,
226
226
  chartStatusColor,
227
- };
227
+ }), [chartColor, chartColorArray, chartStatusColor]);
228
228
  };
229
229
 
230
230
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/react-chart-components",
3
- "version": "1.4.45",
3
+ "version": "1.4.47",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "engines": {
@@ -9,13 +9,13 @@
9
9
  "dependencies": {
10
10
  "echarts": "5.6.0",
11
11
  "react": "19.0.0",
12
- "@trackunit/date-and-time-utils": "1.4.25",
13
- "@trackunit/react-date-and-time-hooks": "1.4.32",
14
- "@trackunit/ui-design-tokens": "1.4.27",
15
- "@trackunit/shared-utils": "1.6.25",
16
- "@trackunit/css-class-variance-utilities": "1.4.25",
17
- "@trackunit/react-components": "1.5.42",
18
- "@trackunit/react-test-setup": "1.1.25"
12
+ "@trackunit/date-and-time-utils": "1.4.26",
13
+ "@trackunit/react-date-and-time-hooks": "1.4.34",
14
+ "@trackunit/ui-design-tokens": "1.4.28",
15
+ "@trackunit/shared-utils": "1.6.26",
16
+ "@trackunit/css-class-variance-utilities": "1.4.26",
17
+ "@trackunit/react-components": "1.5.43",
18
+ "@trackunit/react-test-setup": "1.1.26"
19
19
  },
20
20
  "module": "./index.esm.js",
21
21
  "main": "./index.cjs.js",