next-helios-fe 1.8.45 → 1.8.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "next-helios-fe",
3
- "version": "1.8.45",
3
+ "version": "1.8.47",
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: {
@@ -109,7 +109,7 @@ export const File: React.FC<FileProps> = ({
109
109
  <input
110
110
  ref={inputRef}
111
111
  type="file"
112
- className={`peer/file w-full px-4 border-default border rounded-md bg-secondary-bg text-transparent file:hidden focus:outline-none focus:ring-1 focus:ring-primary focus:shadow focus:shadow-primary focus:border-primary-dark disabled:bg-secondary-light disabled:text-disabled ${height}`}
112
+ className={`peer/file w-full px-4 border-default border rounded-md bg-secondary-bg text-transparent file:hidden focus:outline-none focus:ring-1 focus:ring-primary focus:shadow focus:shadow-primary focus:border-primary-dark disabled:bg-secondary-light ${height}`}
113
113
  onChange={(e) => {
114
114
  if (rest.onChange) {
115
115
  rest.onChange({
@@ -134,7 +134,7 @@ export const File: React.FC<FileProps> = ({
134
134
  <div className="relative flex-1 flex items-center h-full">
135
135
  <input
136
136
  type="file"
137
- className={`w-full px-4 border-default border border-dashed rounded-md bg-secondary-bg text-transparent cursor-pointer file:hidden focus:outline-none focus:ring-1 focus:ring-primary focus:shadow focus:shadow-primary focus:border-primary-dark disabled:bg-secondary-light ${
137
+ className={`w-full px-4 border-default border border-dashed rounded-md bg-secondary-bg text-transparent cursor-pointer file:hidden focus:outline-none focus:ring-1 focus:ring-primary focus:shadow focus:shadow-primary focus:border-primary-dark disabled:bg-secondary-light disabled:cursor-default ${
138
138
  options?.height === "full" ? "min-h-60 h-full" : "h-60"
139
139
  }`}
140
140
  onChange={(e) => {