gf-components 0.1.25 → 0.1.26
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/src/components/benchmarkSankey/BenchmarkSankey.d.ts +22 -0
- package/dist/src/components/benchmarkSankey/index.d.ts +1 -0
- package/dist/src/components/customToolTip/CustomToolTip.d.ts +10 -0
- package/dist/src/components/customToolTip/index.d.ts +1 -0
- package/dist/src/components/pieChart/PieChart.d.ts +7 -0
- package/dist/src/components/pieChart/index.d.ts +1 -0
- package/dist/src/components/sankey/Sankey.d.ts +16 -0
- package/dist/src/components/sankey/index.d.ts +1 -0
- package/dist/src/components/scatterPlot/LineTarget.d.ts +7 -0
- package/dist/src/components/scatterPlot/ScatterPlot.d.ts +24 -0
- package/dist/src/components/scatterPlot/index.d.ts +1 -0
- package/dist/src/components/treeMap/TreeMap.d.ts +6 -0
- package/dist/src/components/treeMap/index.d.ts +1 -0
- package/dist/src/components/trends/Trends.d.ts +9 -0
- package/dist/src/components/trends/index.d.ts +1 -0
- package/dist/src/components/visSelectors/VisSelectors.d.ts +6 -0
- package/dist/src/components/visSelectors/index.d.ts +1 -0
- package/package.json +8 -2
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { DefaultLink, DefaultNode } from '@nivo/sankey';
|
|
3
|
+
interface DefaultNodeWithExtras extends DefaultNode {
|
|
4
|
+
rank: string;
|
|
5
|
+
value: number;
|
|
6
|
+
pct: number;
|
|
7
|
+
unit: string;
|
|
8
|
+
nodeColor: string;
|
|
9
|
+
}
|
|
10
|
+
interface DefaultLinkWithExtras extends DefaultLink {
|
|
11
|
+
source_rank: string;
|
|
12
|
+
target_rank: string;
|
|
13
|
+
unit: string;
|
|
14
|
+
}
|
|
15
|
+
export interface Props {
|
|
16
|
+
data: {
|
|
17
|
+
nodes: DefaultNodeWithExtras[];
|
|
18
|
+
links: DefaultLinkWithExtras[];
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
declare const BenchmarkSankey: React.FC<Props>;
|
|
22
|
+
export default BenchmarkSankey;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as BenchmarkSankey } from './BenchmarkSankey';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { DatumId } from '@nivo/pie';
|
|
3
|
+
export interface Props {
|
|
4
|
+
style?: object;
|
|
5
|
+
label: string | React.ReactElement | DatumId;
|
|
6
|
+
amount: number | string;
|
|
7
|
+
unit?: string;
|
|
8
|
+
}
|
|
9
|
+
declare const CustomToolTip: React.FC<Props>;
|
|
10
|
+
export default CustomToolTip;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as CustomToolTip } from './CustomToolTip';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as PieChart } from './PieChart';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { DefaultLink, DefaultNode } from '@nivo/sankey';
|
|
3
|
+
interface DefaultNodeWithUnit extends DefaultNode {
|
|
4
|
+
unit: string;
|
|
5
|
+
}
|
|
6
|
+
interface DefaultLinkWithUnit extends DefaultLink {
|
|
7
|
+
unit: string;
|
|
8
|
+
}
|
|
9
|
+
export interface Props {
|
|
10
|
+
sankeyData: {
|
|
11
|
+
nodes: DefaultNodeWithUnit[];
|
|
12
|
+
links: DefaultLinkWithUnit[];
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
declare const Sankey: React.FC<Props>;
|
|
16
|
+
export default Sankey;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Sankey } from './Sankey';
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
interface ScatterPlotDatum {
|
|
3
|
+
x: string;
|
|
4
|
+
y: number;
|
|
5
|
+
}
|
|
6
|
+
interface ScatterPlotRawSerie {
|
|
7
|
+
id: string;
|
|
8
|
+
data: ScatterPlotDatum[];
|
|
9
|
+
}
|
|
10
|
+
interface Line {
|
|
11
|
+
x1: string;
|
|
12
|
+
y1: number;
|
|
13
|
+
x2: string;
|
|
14
|
+
y2: number;
|
|
15
|
+
}
|
|
16
|
+
interface ScatterPlotDataType {
|
|
17
|
+
points: ScatterPlotRawSerie;
|
|
18
|
+
line: Line;
|
|
19
|
+
}
|
|
20
|
+
export interface Props {
|
|
21
|
+
scatterPlotData: ScatterPlotDataType;
|
|
22
|
+
}
|
|
23
|
+
declare const ScatterPlot: React.FC<Props>;
|
|
24
|
+
export default ScatterPlot;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as ScatterPlot } from './ScatterPlot';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as TreeMap } from './TreeMap';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Trends } from './Trends';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as VisSelectors } from './VisSelectors';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gf-components",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.26",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "geoFluxus library of React components",
|
|
6
6
|
"repository": {
|
|
@@ -77,8 +77,14 @@
|
|
|
77
77
|
"styled-components": "^6.1.13"
|
|
78
78
|
},
|
|
79
79
|
"dependencies": {
|
|
80
|
+
"@nivo/line": "^0.87.0",
|
|
81
|
+
"@nivo/pie": "^0.87.0",
|
|
82
|
+
"@nivo/sankey": "^0.87.0",
|
|
83
|
+
"@nivo/scatterplot": "^0.87.0",
|
|
84
|
+
"@nivo/treemap": "^0.87.0",
|
|
80
85
|
"antd": "^5.20.3",
|
|
81
|
-
"classnames": "^2.5.1"
|
|
86
|
+
"classnames": "^2.5.1",
|
|
87
|
+
"numeral": "^2.0.6"
|
|
82
88
|
},
|
|
83
89
|
"resolutions": {
|
|
84
90
|
"styled-components": "^6"
|