@foris/avocado-not-front 0.17.0 → 0.18.0
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/dist/avocado-not-front.es.js +37657 -19363
- package/dist/avocado-not-front.umd.js +203 -135
- package/dist/components/dynamic-chart/DynamicChart.d.ts +7 -0
- package/dist/components/dynamic-chart/chart.constants.d.ts +9 -0
- package/dist/components/dynamic-chart/chart.types.d.ts +14 -0
- package/dist/components/dynamic-chart/charts/AreaChart.d.ts +2 -0
- package/dist/components/dynamic-chart/charts/BarChart.d.ts +2 -0
- package/dist/components/dynamic-chart/charts/LineChart.d.ts +2 -0
- package/dist/components/dynamic-chart/charts/PieChart.d.ts +2 -0
- package/dist/components/dynamic-chart/charts/index.d.ts +5 -0
- package/dist/components/index.d.ts +2 -1
- package/dist/index.d.ts +1 -0
- package/package.json +4 -3
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ChartTheme } from './chart.types';
|
|
2
|
+
export declare const chartRegistry: {
|
|
3
|
+
area: (config: import("./chart.types").ChartConfig) => JSX.Element;
|
|
4
|
+
bar: (config: import("./chart.types").ChartConfig) => JSX.Element;
|
|
5
|
+
line: (config: import("./chart.types").ChartConfig) => JSX.Element;
|
|
6
|
+
pie: (config: import("./chart.types").ChartConfig) => JSX.Element;
|
|
7
|
+
};
|
|
8
|
+
export declare const chartColors: string[];
|
|
9
|
+
export declare const chartBaseTheme: ChartTheme;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export type ChartType = 'bar' | 'line' | 'area' | 'pie';
|
|
2
|
+
export interface ChartTheme {
|
|
3
|
+
fontFamily: string;
|
|
4
|
+
fontSize: number;
|
|
5
|
+
labelColor: string;
|
|
6
|
+
tooltipBg: string;
|
|
7
|
+
tooltipColor: string;
|
|
8
|
+
}
|
|
9
|
+
export interface ChartConfig {
|
|
10
|
+
type: ChartType;
|
|
11
|
+
data: any[];
|
|
12
|
+
xKey: string;
|
|
13
|
+
yKeys: string[];
|
|
14
|
+
}
|
|
@@ -6,6 +6,7 @@ import Checkbox from './checkbox/Checkbox';
|
|
|
6
6
|
import CodeEditor from './code-editor/CodeEditor';
|
|
7
7
|
import ContentWrapper from './content-wrapper/ContentWrapper';
|
|
8
8
|
import Divider from './divider/Divider';
|
|
9
|
+
import DynamicChart from './dynamic-chart/DynamicChart';
|
|
9
10
|
import Header from './header/Header';
|
|
10
11
|
import Modal from './modal/Modal';
|
|
11
12
|
import OverlayRenderer from './overlay-renderer/OverlayRenderer';
|
|
@@ -15,4 +16,4 @@ import Switch from './switch/Switch';
|
|
|
15
16
|
import Table from './table/Table';
|
|
16
17
|
import TextField from './text-field/TextField';
|
|
17
18
|
import Toast from './toast/Toast';
|
|
18
|
-
export { Body, Breadcrumbs, Button, CardNotification, Checkbox, CodeEditor, ContentWrapper, Divider, Header, Modal, OverlayRenderer, RoundButton, Select, Switch, Table, TextField, Toast, };
|
|
19
|
+
export { Body, Breadcrumbs, Button, CardNotification, Checkbox, CodeEditor, ContentWrapper, Divider, DynamicChart, Header, Modal, OverlayRenderer, RoundButton, Select, Switch, Table, TextField, Toast, };
|
package/dist/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@foris/avocado-not-front",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.18.0",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -28,10 +28,11 @@
|
|
|
28
28
|
"react-dom": "18.2.0",
|
|
29
29
|
"react-select": "5.8.0",
|
|
30
30
|
"react-select-async-paginate": "0.7.3",
|
|
31
|
+
"recharts": "3.1.0",
|
|
31
32
|
"zustand": "4.5.4",
|
|
32
33
|
"@foris/avocado-core": "0.10.0",
|
|
33
|
-
"@foris/avocado-
|
|
34
|
-
"@foris/avocado-
|
|
34
|
+
"@foris/avocado-suite": "0.36.0",
|
|
35
|
+
"@foris/avocado-icons": "1.15.0"
|
|
35
36
|
},
|
|
36
37
|
"devDependencies": {
|
|
37
38
|
"@testing-library/jest-dom": "6.4.0",
|