@wavv/ui 1.3.1 → 1.4.0-beta.2
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/build/cjs/index.js +182 -5
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/types/components/BarChart.d.ts +17 -0
- package/build/cjs/types/components/PieChart.d.ts +18 -0
- package/build/cjs/types/index.d.ts +2 -0
- package/build/esm/index.js +182 -5
- package/build/esm/index.js.map +1 -1
- package/build/esm/types/components/BarChart.d.ts +17 -0
- package/build/esm/types/components/PieChart.d.ts +18 -0
- package/build/esm/types/index.d.ts +2 -0
- package/build/index.d.ts +32 -1
- package/package.json +2 -1
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Margin } from './types';
|
|
3
|
+
declare type ChartData = {
|
|
4
|
+
name: string;
|
|
5
|
+
};
|
|
6
|
+
declare type Props = {
|
|
7
|
+
/** Width of the chart */
|
|
8
|
+
width: number;
|
|
9
|
+
/** Height of the chart */
|
|
10
|
+
height: number;
|
|
11
|
+
/** The chart data array */
|
|
12
|
+
data: ChartData[];
|
|
13
|
+
/** The property name of the data value key */
|
|
14
|
+
dataKey: string;
|
|
15
|
+
} & Margin;
|
|
16
|
+
declare const BarChart: ({ width, height, data, dataKey, ...rest }: Props) => JSX.Element;
|
|
17
|
+
export default BarChart;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Margin } from './types';
|
|
3
|
+
declare type ChartData = {
|
|
4
|
+
name: string;
|
|
5
|
+
value: number;
|
|
6
|
+
color?: string;
|
|
7
|
+
};
|
|
8
|
+
declare type Props = {
|
|
9
|
+
/** The chart data array */
|
|
10
|
+
data: ChartData[];
|
|
11
|
+
/** The width & height of the chart */
|
|
12
|
+
size?: number;
|
|
13
|
+
outerRadius?: number;
|
|
14
|
+
/** The radius of the inner circle */
|
|
15
|
+
innerRadius?: number;
|
|
16
|
+
} & Margin;
|
|
17
|
+
declare const PieChart: ({ size, data, innerRadius, outerRadius, ...rest }: Props) => JSX.Element;
|
|
18
|
+
export default PieChart;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { default as Audio } from './components/Audio';
|
|
2
|
+
export { default as BarChart } from './components/BarChart';
|
|
2
3
|
export { default as Button } from './components/Button';
|
|
3
4
|
export { default as Calendar } from './components/Calendar';
|
|
4
5
|
export { default as Checkbox } from './components/Checkbox';
|
|
@@ -22,6 +23,7 @@ export { default as MultiSelect } from './components/MultiSelect';
|
|
|
22
23
|
export { default as Notification } from './components/Notification';
|
|
23
24
|
export { default as Options } from './components/Options';
|
|
24
25
|
export { default as Pagination } from './components/Pagination';
|
|
26
|
+
export { default as PieChart } from './components/PieChart';
|
|
25
27
|
export { default as Progress } from './components/Progress';
|
|
26
28
|
export { default as Radio } from './components/Radio';
|
|
27
29
|
export { default as ResetStyles } from './global-styles/ResetStyles';
|