@trackunit/react-chart-components 1.3.181 → 1.3.182

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/react-chart-components",
3
- "version": "1.3.181",
3
+ "version": "1.3.182",
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.3.140",
13
- "@trackunit/react-date-and-time-hooks": "1.3.162",
14
- "@trackunit/ui-design-tokens": "1.3.138",
15
- "@trackunit/shared-utils": "1.5.140",
16
- "@trackunit/css-class-variance-utilities": "1.3.140",
17
- "@trackunit/react-components": "1.4.171",
18
- "@trackunit/react-test-setup": "1.0.30"
12
+ "@trackunit/date-and-time-utils": "1.3.141",
13
+ "@trackunit/react-date-and-time-hooks": "1.3.163",
14
+ "@trackunit/ui-design-tokens": "1.3.139",
15
+ "@trackunit/shared-utils": "1.5.141",
16
+ "@trackunit/css-class-variance-utilities": "1.3.141",
17
+ "@trackunit/react-components": "1.4.172",
18
+ "@trackunit/react-test-setup": "1.0.31"
19
19
  },
20
20
  "module": "./index.esm.js",
21
21
  "main": "./index.cjs.js",
@@ -30,13 +30,13 @@ export interface BarChartDateData<TProps extends object = object> extends BarCha
30
30
  export interface SeriesData<TProps extends object> {
31
31
  name: string;
32
32
  color?: string;
33
- data: BarChartGenericData<TProps>[] | BarChartDateData<TProps>[];
33
+ data: Array<BarChartGenericData<TProps>> | Array<BarChartDateData<TProps>>;
34
34
  }
35
35
  export interface BarChartProps<TProps extends object> extends CommonProps {
36
36
  /**
37
37
  * Array of series of data points to show
38
38
  */
39
- series: SeriesData<TProps> | SeriesData<TProps>[] | undefined;
39
+ series: SeriesData<TProps> | Array<SeriesData<TProps>> | undefined;
40
40
  /**
41
41
  * onClick handler which includes the data object clicked on
42
42
  */
@@ -31,7 +31,7 @@ export interface DonutChartProps<TProps extends object> extends CommonProps {
31
31
  /**
32
32
  * Array of data points to show
33
33
  */
34
- data: ChartData<TProps>[] | undefined;
34
+ data: Array<ChartData<TProps>> | undefined;
35
35
  /**
36
36
  * onClick handler which includes the data object clicked on
37
37
  */
@@ -6,6 +6,6 @@ import { ChartStatus } from "@trackunit/ui-design-tokens";
6
6
  */
7
7
  export declare const useChartColor: () => {
8
8
  chartColor: (index: number) => string;
9
- chartColorArray: (total: number) => string[];
9
+ chartColorArray: (total: number) => Array<string>;
10
10
  chartStatusColor: (status: ChartStatus) => string;
11
11
  };
@@ -1,9 +1,9 @@
1
1
  import { ChartData } from "../DonutChart/DonutChart";
2
2
  type LimitDataSetReturn<TProps extends object> = {
3
- limitedData: ChartData<TProps & {
3
+ limitedData: Array<ChartData<TProps & {
4
4
  defaultOther?: boolean;
5
- }>[];
6
- limitedDataWithoutOthers: ChartData<TProps>[];
5
+ }>>;
6
+ limitedDataWithoutOthers: Array<ChartData<TProps>>;
7
7
  };
8
8
  /**
9
9
  * Limits the data set to the given limit.
@@ -13,5 +13,5 @@ type LimitDataSetReturn<TProps extends object> = {
13
13
  * @param limit - The limit to apply to the data set.
14
14
  * @returns {object} The limited data set with and without the "others" category.
15
15
  */
16
- export declare const useLimitDataSet: <TProps extends object>(data: ChartData<TProps>[], limit: number) => LimitDataSetReturn<TProps>;
16
+ export declare const useLimitDataSet: <TProps extends object>(data: Array<ChartData<TProps>>, limit: number) => LimitDataSetReturn<TProps>;
17
17
  export {};