dga-ui-react 1.5.0 → 1.5.1

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/charts/index.d.ts CHANGED
@@ -5,13 +5,13 @@ type PieChartData = {
5
5
  value: number;
6
6
  color?: string;
7
7
  };
8
- type Props$1 = {
8
+ type Props$2 = {
9
9
  data: PieChartData[];
10
10
  hole?: boolean;
11
11
  size?: number;
12
12
  style?: "brand" | "color";
13
13
  };
14
- declare const PieChart: React.FC<Props$1>;
14
+ declare const PieChart: React.FC<Props$2>;
15
15
 
16
16
  type BarChartData = {
17
17
  categories: string[];
@@ -21,13 +21,30 @@ type BarChartData = {
21
21
  }[];
22
22
  colors?: string[];
23
23
  };
24
- type Props = {
24
+ type Props$1 = {
25
25
  data: BarChartData;
26
26
  xAxisLabel?: string;
27
27
  yAxisLabel?: string;
28
28
  width?: number;
29
29
  height?: number;
30
30
  };
31
- declare const BarChart: React.FC<Props>;
31
+ declare const BarChart: React.FC<Props$1>;
32
+
33
+ type LineChartData = {
34
+ categories: string[];
35
+ series: {
36
+ name: string;
37
+ values: number[];
38
+ }[];
39
+ colors?: string[];
40
+ };
41
+ type Props = {
42
+ data: LineChartData;
43
+ xAxisLabel?: string;
44
+ yAxisLabel?: string;
45
+ width?: number;
46
+ height?: number;
47
+ };
48
+ declare const LineChart: React.FC<Props>;
32
49
 
33
- export { BarChart, PieChart };
50
+ export { BarChart, LineChart, PieChart };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dga-ui-react",
3
- "version": "1.5.0",
3
+ "version": "1.5.1",
4
4
  "description": "DGA ui library",
5
5
  "author": "Ashraf Ainia",
6
6
  "license": "MIT",