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.
@@ -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,7 @@
1
+ import { default as React } from 'react';
2
+ export interface Props {
3
+ pieChartData: any;
4
+ title: string;
5
+ }
6
+ declare const PieChart: React.FC<Props>;
7
+ export default PieChart;
@@ -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,7 @@
1
+ declare const LineTarget: ({ x1, x2, y1, y2 }: {
2
+ x1: any;
3
+ x2: any;
4
+ y1: any;
5
+ y2: any;
6
+ }) => import("react/jsx-runtime").JSX.Element;
7
+ export default LineTarget;
@@ -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,6 @@
1
+ import { default as React } from 'react';
2
+ export interface Props {
3
+ treeMapData: object;
4
+ }
5
+ declare const Sankey: React.FC<Props>;
6
+ export default Sankey;
@@ -0,0 +1 @@
1
+ export { default as TreeMap } from './TreeMap';
@@ -0,0 +1,9 @@
1
+ import { default as React } from 'react';
2
+ import { Serie } from '@nivo/line';
3
+ export interface Props {
4
+ trendsData: readonly Serie[];
5
+ xLeg: string;
6
+ yLeg: string;
7
+ }
8
+ declare const Trends: React.FC<Props>;
9
+ export default Trends;
@@ -0,0 +1 @@
1
+ export { default as Trends } from './Trends';
@@ -0,0 +1,6 @@
1
+ import { GFCardProps } from '../card/GFCard';
2
+ export interface VisSelectorsProps extends GFCardProps {
3
+ isOneSelector: boolean;
4
+ }
5
+ declare const VisSelectors: React.FC<VisSelectorsProps>;
6
+ export default VisSelectors;
@@ -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.25",
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"