next-helios-fe 1.8.45 → 1.8.46

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": "next-helios-fe",
3
- "version": "1.8.45",
3
+ "version": "1.8.46",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -32,7 +32,7 @@ interface ChartProps {
32
32
  };
33
33
  options?: {
34
34
  theme?: "light" | "dark";
35
- mainColor?: "blue" | "green";
35
+ mainColor?: string;
36
36
  height?: number;
37
37
  barChart?: { variant: "vertical" | "horizontal" };
38
38
  sparkline?: boolean;
@@ -81,30 +81,30 @@ export const Chart: React.FC<ChartProps> = ({
81
81
  },
82
82
  },
83
83
  labels: labels ?? [],
84
- colors:
85
- options?.mainColor === "green"
86
- ? [
87
- "#4caf50",
88
- "#673ab7",
89
- "#2196f3",
90
- "#f44336",
91
- "#ff9800",
92
- "#e91e63",
93
- "#ffc338",
94
- "#795548",
95
- "#9e9e9e",
96
- ]
97
- : [
98
- "#2196f3",
99
- "#673ab7",
100
- "#4caf50",
101
- "#f44336",
102
- "#ff9800",
103
- "#e91e63",
104
- "#ffc338",
105
- "#795548",
106
- "#9e9e9e",
107
- ],
84
+ colors: options?.mainColor
85
+ ? [
86
+ options?.mainColor,
87
+ "#4caf50",
88
+ "#673ab7",
89
+ "#2196f3",
90
+ "#f44336",
91
+ "#ff9800",
92
+ "#e91e63",
93
+ "#ffc338",
94
+ "#795548",
95
+ "#9e9e9e",
96
+ ]
97
+ : [
98
+ "#2196f3",
99
+ "#673ab7",
100
+ "#4caf50",
101
+ "#f44336",
102
+ "#ff9800",
103
+ "#e91e63",
104
+ "#ffc338",
105
+ "#795548",
106
+ "#9e9e9e",
107
+ ],
108
108
  chart: {
109
109
  type: type,
110
110
  toolbar: {