kwant-ui 3.21.5 → 3.23.1
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/components/Charts/LineChart/LineChart.d.ts +3 -0
- package/dist/components/Charts/LineChart/LineChartData.d.ts +33 -0
- package/dist/components/Charts/LineChart/LineChartStyled.d.ts +19 -0
- package/dist/components/Charts/LineChart/LineChartTypes.d.ts +59 -0
- package/dist/components/Charts/LineChart/LineChartUtils.d.ts +20 -0
- package/dist/components/Charts/LineChart/index.d.ts +2 -0
- package/dist/components/Charts/StackedBarChart/StackedBarChartTypes.d.ts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.es.js +215 -122
- package/dist/index.js +365 -272
- package/dist/package.json +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { YAxisProps } from 'recharts';
|
|
2
|
+
import { Props as LineProps } from 'recharts/types/cartesian/Line';
|
|
3
|
+
export declare const data: {
|
|
4
|
+
etc: number;
|
|
5
|
+
klm: number;
|
|
6
|
+
date: string;
|
|
7
|
+
}[];
|
|
8
|
+
export declare const lines: {
|
|
9
|
+
dataKey: string;
|
|
10
|
+
color: string;
|
|
11
|
+
stroke: string;
|
|
12
|
+
fillOpacity: number;
|
|
13
|
+
name: string;
|
|
14
|
+
}[];
|
|
15
|
+
export declare const linesYAxisRight: {
|
|
16
|
+
dataKey: string;
|
|
17
|
+
color: string;
|
|
18
|
+
fill: string;
|
|
19
|
+
fillOpacity: number;
|
|
20
|
+
stroke: string;
|
|
21
|
+
yAxisId: string;
|
|
22
|
+
name: string;
|
|
23
|
+
}[];
|
|
24
|
+
export declare const xAxisTickDefaultConfig: {
|
|
25
|
+
fill: string;
|
|
26
|
+
fontFamily: string;
|
|
27
|
+
fontSize: number;
|
|
28
|
+
textAnchor: string;
|
|
29
|
+
x: number;
|
|
30
|
+
y: number;
|
|
31
|
+
};
|
|
32
|
+
export declare const yAxisStaticProps: YAxisProps;
|
|
33
|
+
export declare const lineStaticProps: Omit<Partial<LineProps>, 'ref'>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare const LegendsContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
2
|
+
export declare const Legend: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
3
|
+
export declare const LegendColorContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
4
|
+
export declare const LegendColor: import("styled-components").StyledComponent<"div", any, {
|
|
5
|
+
color: string;
|
|
6
|
+
}, never>;
|
|
7
|
+
export declare const LegendLabel: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
8
|
+
export declare const CustomTickStyled: import("styled-components").StyledComponent<"g", any, {}, never>;
|
|
9
|
+
export declare const TickDay: import("styled-components").StyledComponent<"text", any, {}, never>;
|
|
10
|
+
export declare const TickDate: import("styled-components").StyledComponent<"text", any, {}, never>;
|
|
11
|
+
export declare const TooltipStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
12
|
+
export declare const TooltipTitle: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
13
|
+
export declare const TooltipItemContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
14
|
+
export declare const TooltipItemLeft: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
15
|
+
export declare const TooltipItemColor: import("styled-components").StyledComponent<"div", any, {
|
|
16
|
+
color: string;
|
|
17
|
+
}, never>;
|
|
18
|
+
export declare const TooltipItemLabel: import("styled-components").StyledComponent<"span", any, {}, never>;
|
|
19
|
+
export declare const TooltipItemRight: import("styled-components").StyledComponent<"span", any, {}, never>;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { XAxisProps, YAxisProps } from 'recharts';
|
|
3
|
+
import { Props as AreaProps } from 'recharts/types/cartesian/Area';
|
|
4
|
+
import { Props as CartesianGridProps } from 'recharts/types/cartesian/CartesianGrid';
|
|
5
|
+
import { Payload } from 'recharts/types/component/DefaultLegendContent';
|
|
6
|
+
import { NameType, ValueType } from 'recharts/types/component/DefaultTooltipContent';
|
|
7
|
+
import { Props as LegendProps } from 'recharts/types/component/Legend';
|
|
8
|
+
import { ContentType, TooltipProps } from 'recharts/types/component/Tooltip';
|
|
9
|
+
export declare namespace ILineChart {
|
|
10
|
+
type Props = {
|
|
11
|
+
width?: string | number;
|
|
12
|
+
height?: string | number;
|
|
13
|
+
margin?: {
|
|
14
|
+
top?: number;
|
|
15
|
+
right?: number;
|
|
16
|
+
bottom?: number;
|
|
17
|
+
left?: number;
|
|
18
|
+
};
|
|
19
|
+
label: string;
|
|
20
|
+
data?: any[];
|
|
21
|
+
lines?: Line[];
|
|
22
|
+
linesYAxisRight?: Line[];
|
|
23
|
+
xAxisDataKey?: string;
|
|
24
|
+
showTooltip?: boolean;
|
|
25
|
+
xAxisLabel?: string;
|
|
26
|
+
yAxisLabel?: string;
|
|
27
|
+
yAxisRightLabel?: string;
|
|
28
|
+
showRightYAxis?: boolean;
|
|
29
|
+
showLegends?: boolean;
|
|
30
|
+
customTooltip?: ContentType<ValueType, NameType>;
|
|
31
|
+
gradient?: React.ReactNode;
|
|
32
|
+
tooltipProps?: TooltipProps<ValueType, NameType>;
|
|
33
|
+
cartesianGridProps?: Omit<CartesianGridProps, 'ref'>;
|
|
34
|
+
legendProps?: Omit<LegendProps, 'ref'>;
|
|
35
|
+
xAxisProps?: XAxisProps;
|
|
36
|
+
yAxisProps?: YAxisProps;
|
|
37
|
+
yAxisRightProps?: YAxisProps;
|
|
38
|
+
lineProps?: AreaProps;
|
|
39
|
+
lineYAxisRightProps?: AreaProps;
|
|
40
|
+
customTooltipLabelFormatter?: (label: any) => string;
|
|
41
|
+
};
|
|
42
|
+
type Line = {
|
|
43
|
+
dataKey: string;
|
|
44
|
+
name: string;
|
|
45
|
+
stroke?: string;
|
|
46
|
+
fill?: string;
|
|
47
|
+
fillOpacity?: number;
|
|
48
|
+
color?: string;
|
|
49
|
+
gradientId?: string;
|
|
50
|
+
[key: string]: any;
|
|
51
|
+
};
|
|
52
|
+
type CustomLegend = {
|
|
53
|
+
payload?: (Payload & {
|
|
54
|
+
payload: Payload['payload'] & {
|
|
55
|
+
fill: string;
|
|
56
|
+
};
|
|
57
|
+
})[];
|
|
58
|
+
};
|
|
59
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { TooltipProps } from 'recharts';
|
|
2
|
+
import { NameType, ValueType } from 'recharts/types/component/DefaultTooltipContent';
|
|
3
|
+
import { ILineChart } from './LineChartTypes';
|
|
4
|
+
export declare const CustomLegend: (props: ILineChart.CustomLegend) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export declare const Tick: (props: {
|
|
6
|
+
value: any;
|
|
7
|
+
dy: any;
|
|
8
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export declare const TickX: (props: {
|
|
10
|
+
x?: number;
|
|
11
|
+
y?: number;
|
|
12
|
+
payload?: any;
|
|
13
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export declare const tooltipLabelFormatter: (label: string) => string;
|
|
15
|
+
export declare const TooltipItemRow: ({ color, name, value, }: {
|
|
16
|
+
color?: string;
|
|
17
|
+
name?: string;
|
|
18
|
+
value?: string;
|
|
19
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
export declare const CustomTooltip: (props: TooltipProps<ValueType, NameType>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -38,6 +38,7 @@ export declare namespace IStackedBarChart {
|
|
|
38
38
|
areaProps?: AreaProps;
|
|
39
39
|
areaYAxisRightProps?: AreaProps;
|
|
40
40
|
customTooltipLabelFormatter?: (label: any) => string;
|
|
41
|
+
customYAxisTickFormatter?: (value: any) => string;
|
|
41
42
|
};
|
|
42
43
|
type StackedBar = {
|
|
43
44
|
dataKey: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -60,4 +60,5 @@ export { processWeekwiseBarChartData } from './components/Charts/WeekwiseBarChar
|
|
|
60
60
|
export * from './components/Charts/HorizontalStackedBarChart';
|
|
61
61
|
export * from './components/Charts/GaugeChart';
|
|
62
62
|
export * from './components/Charts/ProgressChart';
|
|
63
|
+
export * from './components/Charts/LineChart';
|
|
63
64
|
export { CALENDAR_CONSTANTS, getDateObjectForCalendarConstants, } from './components/Calendar/CalendarUtils';
|