@aic-kits/react 0.29.11 → 0.30.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/components/BarChart/BarChart.d.ts +79 -0
- package/dist/components/BarChart/StyledBarChart.d.ts +28 -0
- package/dist/components/BarChart/index.d.ts +1 -0
- package/dist/components/LineChart/LineChart.d.ts +101 -0
- package/dist/components/LineChart/StyledLineChart.d.ts +83 -0
- package/dist/components/LineChart/index.d.ts +1 -0
- package/dist/components/PieChart/PieChart.d.ts +85 -0
- package/dist/components/PieChart/StyledPieChart.d.ts +60 -0
- package/dist/components/PieChart/index.d.ts +1 -0
- package/dist/components/Select/SelectDropdown.d.ts +1 -3
- package/dist/components/Select/SelectInputDisplay.d.ts +3 -0
- package/dist/components/index.d.ts +3 -0
- package/dist/index.cjs +409 -164
- package/dist/index.js +6530 -5419
- package/dist/theme/components/barChart.d.ts +21 -0
- package/dist/theme/components/index.d.ts +17 -8
- package/dist/theme/components/lineChart.d.ts +25 -0
- package/dist/theme/components/pieChart.d.ts +22 -0
- package/package.json +2 -2
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { Color } from '../../theme/common';
|
|
3
|
+
import { BarChartSize as ThemeBarChartSize, BarChartVariant as ThemeBarChartVariant } from '../../theme/components/barChart';
|
|
4
|
+
import { BoxProps } from '../Box';
|
|
5
|
+
export interface BarData {
|
|
6
|
+
label: string;
|
|
7
|
+
value: number;
|
|
8
|
+
color?: Color;
|
|
9
|
+
}
|
|
10
|
+
export interface BarChartProps extends Omit<BoxProps, 'size'> {
|
|
11
|
+
/**
|
|
12
|
+
* Array of data points for the bar chart
|
|
13
|
+
*/
|
|
14
|
+
data: BarData[];
|
|
15
|
+
/**
|
|
16
|
+
* Width of the chart in pixels
|
|
17
|
+
* @default 400
|
|
18
|
+
*/
|
|
19
|
+
width?: number;
|
|
20
|
+
/**
|
|
21
|
+
* Height of the chart in pixels
|
|
22
|
+
* @default 300
|
|
23
|
+
*/
|
|
24
|
+
height?: number;
|
|
25
|
+
/**
|
|
26
|
+
* Chart margins around the content
|
|
27
|
+
* @default { top: 20, right: 20, bottom: 40, left: 40 }
|
|
28
|
+
*/
|
|
29
|
+
chartMargin?: {
|
|
30
|
+
top?: number;
|
|
31
|
+
right?: number;
|
|
32
|
+
bottom?: number;
|
|
33
|
+
left?: number;
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* The default color for bars. Can be overridden per bar in data
|
|
37
|
+
*/
|
|
38
|
+
color?: Color;
|
|
39
|
+
/**
|
|
40
|
+
* The size preset for the chart
|
|
41
|
+
* @default 'md'
|
|
42
|
+
*/
|
|
43
|
+
size?: ThemeBarChartSize;
|
|
44
|
+
/**
|
|
45
|
+
* The visual variant of the bar chart
|
|
46
|
+
* @default 'default'
|
|
47
|
+
*/
|
|
48
|
+
variant?: ThemeBarChartVariant;
|
|
49
|
+
/**
|
|
50
|
+
* Show grid lines
|
|
51
|
+
* @default true
|
|
52
|
+
*/
|
|
53
|
+
showGrid?: boolean;
|
|
54
|
+
/**
|
|
55
|
+
* Show X axis
|
|
56
|
+
* @default true
|
|
57
|
+
*/
|
|
58
|
+
showXAxis?: boolean;
|
|
59
|
+
/**
|
|
60
|
+
* Show Y axis
|
|
61
|
+
* @default true
|
|
62
|
+
*/
|
|
63
|
+
showYAxis?: boolean;
|
|
64
|
+
/**
|
|
65
|
+
* Orientation of the chart
|
|
66
|
+
* @default 'vertical'
|
|
67
|
+
*/
|
|
68
|
+
orientation?: 'vertical' | 'horizontal';
|
|
69
|
+
/**
|
|
70
|
+
* Animation duration in milliseconds
|
|
71
|
+
* @default 300
|
|
72
|
+
*/
|
|
73
|
+
animationDuration?: number;
|
|
74
|
+
/**
|
|
75
|
+
* Test ID for automation
|
|
76
|
+
*/
|
|
77
|
+
testID?: string;
|
|
78
|
+
}
|
|
79
|
+
export declare const BarChart: React.FC<BarChartProps>;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Color } from '../../theme/common';
|
|
2
|
+
interface StyledBarProps {
|
|
3
|
+
$colorKey: Color;
|
|
4
|
+
$animationDuration: number;
|
|
5
|
+
}
|
|
6
|
+
interface StyledAxisLineProps {
|
|
7
|
+
$colorKey: Color | string;
|
|
8
|
+
}
|
|
9
|
+
interface StyledAxisLabelProps {
|
|
10
|
+
$colorKey: Color | string;
|
|
11
|
+
}
|
|
12
|
+
interface StyledGridLineProps {
|
|
13
|
+
$colorKey: Color | string;
|
|
14
|
+
}
|
|
15
|
+
export declare const StyledBarChartContainer: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('..').BoxProps & {
|
|
16
|
+
ref?: import('react').ForwardedRef<HTMLDivElement>;
|
|
17
|
+
}, never>> & string & Omit<(props: import('..').BoxProps & {
|
|
18
|
+
ref?: import('react').ForwardedRef<HTMLDivElement>;
|
|
19
|
+
}) => ReturnType<({ children, style, "data-testid": testId, ...otherProps }: import('..').BoxProps, ref: import('react').ForwardedRef<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element>, keyof import('react').Component<any, {}, any>>;
|
|
20
|
+
export declare const StyledBarChartSvg: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').SVGProps<SVGSVGElement>, {
|
|
21
|
+
$width?: number;
|
|
22
|
+
$height?: number;
|
|
23
|
+
}>> & string;
|
|
24
|
+
export declare const StyledBar: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').SVGProps<SVGRectElement>, StyledBarProps>> & string;
|
|
25
|
+
export declare const StyledAxisLine: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').SVGLineElementAttributes<SVGLineElement>, StyledAxisLineProps>> & string;
|
|
26
|
+
export declare const StyledAxisLabel: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').SVGTextElementAttributes<SVGTextElement>, StyledAxisLabelProps>> & string;
|
|
27
|
+
export declare const StyledGridLine: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').SVGLineElementAttributes<SVGLineElement>, StyledGridLineProps>> & string;
|
|
28
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './BarChart';
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { Color } from '../../theme/common';
|
|
3
|
+
import { LineChartSize as ThemeLineChartSize, LineChartVariant as ThemeLineChartVariant, LineChartCurve } from '../../theme/components/lineChart';
|
|
4
|
+
import { BoxProps } from '../Box';
|
|
5
|
+
export interface LineDataPoint {
|
|
6
|
+
x: number | string;
|
|
7
|
+
y: number;
|
|
8
|
+
}
|
|
9
|
+
export interface LineSeries {
|
|
10
|
+
id: string;
|
|
11
|
+
label: string;
|
|
12
|
+
data: LineDataPoint[];
|
|
13
|
+
color?: Color;
|
|
14
|
+
showDots?: boolean;
|
|
15
|
+
showArea?: boolean;
|
|
16
|
+
strokeDasharray?: string;
|
|
17
|
+
}
|
|
18
|
+
export interface LineChartProps extends Omit<BoxProps, 'size'> {
|
|
19
|
+
/**
|
|
20
|
+
* Array of line series to display
|
|
21
|
+
*/
|
|
22
|
+
series: LineSeries[];
|
|
23
|
+
/**
|
|
24
|
+
* Width of the chart in pixels
|
|
25
|
+
* @default 600
|
|
26
|
+
*/
|
|
27
|
+
width?: number;
|
|
28
|
+
/**
|
|
29
|
+
* Height of the chart in pixels
|
|
30
|
+
* @default 400
|
|
31
|
+
*/
|
|
32
|
+
height?: number;
|
|
33
|
+
/**
|
|
34
|
+
* Chart margins around the content
|
|
35
|
+
* @default { top: 20, right: 20, bottom: 40, left: 50 }
|
|
36
|
+
*/
|
|
37
|
+
chartMargin?: {
|
|
38
|
+
top?: number;
|
|
39
|
+
right?: number;
|
|
40
|
+
bottom?: number;
|
|
41
|
+
left?: number;
|
|
42
|
+
};
|
|
43
|
+
/**
|
|
44
|
+
* The size preset for the chart
|
|
45
|
+
* @default 'md'
|
|
46
|
+
*/
|
|
47
|
+
size?: ThemeLineChartSize;
|
|
48
|
+
/**
|
|
49
|
+
* The visual variant of the line chart
|
|
50
|
+
* @default 'default'
|
|
51
|
+
*/
|
|
52
|
+
variant?: ThemeLineChartVariant;
|
|
53
|
+
/**
|
|
54
|
+
* Show grid lines
|
|
55
|
+
* @default true
|
|
56
|
+
*/
|
|
57
|
+
showGrid?: boolean;
|
|
58
|
+
/**
|
|
59
|
+
* Show X axis
|
|
60
|
+
* @default true
|
|
61
|
+
*/
|
|
62
|
+
showXAxis?: boolean;
|
|
63
|
+
/**
|
|
64
|
+
* Show Y axis
|
|
65
|
+
* @default true
|
|
66
|
+
*/
|
|
67
|
+
showYAxis?: boolean;
|
|
68
|
+
/**
|
|
69
|
+
* Show legend
|
|
70
|
+
* @default true
|
|
71
|
+
*/
|
|
72
|
+
showLegend?: boolean;
|
|
73
|
+
/**
|
|
74
|
+
* Legend position
|
|
75
|
+
* @default 'top'
|
|
76
|
+
*/
|
|
77
|
+
legendPosition?: 'top' | 'right' | 'bottom' | 'left';
|
|
78
|
+
/**
|
|
79
|
+
* Curve type for lines
|
|
80
|
+
* @default 'linear'
|
|
81
|
+
*/
|
|
82
|
+
curve?: LineChartCurve;
|
|
83
|
+
/**
|
|
84
|
+
* Animation duration in milliseconds
|
|
85
|
+
* @default 500
|
|
86
|
+
*/
|
|
87
|
+
animationDuration?: number;
|
|
88
|
+
/**
|
|
89
|
+
* X axis labels (optional, will use data x values if not provided)
|
|
90
|
+
*/
|
|
91
|
+
xAxisLabels?: string[];
|
|
92
|
+
/**
|
|
93
|
+
* Y axis domain [min, max] (optional, will auto-calculate if not provided)
|
|
94
|
+
*/
|
|
95
|
+
yDomain?: [number, number];
|
|
96
|
+
/**
|
|
97
|
+
* Test ID for automation
|
|
98
|
+
*/
|
|
99
|
+
testID?: string;
|
|
100
|
+
}
|
|
101
|
+
export declare const LineChart: React.FC<LineChartProps>;
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { Color } from '../../theme/common';
|
|
2
|
+
interface StyledLineProps {
|
|
3
|
+
$colorKey: Color;
|
|
4
|
+
$strokeWidth: number;
|
|
5
|
+
$strokeDasharray?: string;
|
|
6
|
+
$animationDuration: number;
|
|
7
|
+
}
|
|
8
|
+
interface StyledAreaProps {
|
|
9
|
+
$colorKey: Color;
|
|
10
|
+
$animationDuration: number;
|
|
11
|
+
}
|
|
12
|
+
interface StyledDotProps {
|
|
13
|
+
$colorKey: Color;
|
|
14
|
+
$animationDuration: number;
|
|
15
|
+
}
|
|
16
|
+
interface StyledAxisLineProps {
|
|
17
|
+
$colorKey: Color | string;
|
|
18
|
+
}
|
|
19
|
+
interface StyledAxisLabelProps {
|
|
20
|
+
$colorKey: Color | string;
|
|
21
|
+
$fontSize: number;
|
|
22
|
+
}
|
|
23
|
+
interface StyledGridLineProps {
|
|
24
|
+
$colorKey: Color | string;
|
|
25
|
+
}
|
|
26
|
+
interface StyledLegendContainerProps {
|
|
27
|
+
$position: 'top' | 'right' | 'bottom' | 'left';
|
|
28
|
+
$spacing: number;
|
|
29
|
+
}
|
|
30
|
+
interface StyledLegendItemProps {
|
|
31
|
+
$spacing: number;
|
|
32
|
+
}
|
|
33
|
+
interface StyledLegendLineProps {
|
|
34
|
+
$colorKey: Color;
|
|
35
|
+
$strokeWidth: number;
|
|
36
|
+
$strokeDasharray?: string;
|
|
37
|
+
}
|
|
38
|
+
interface StyledLegendTextProps {
|
|
39
|
+
$fontSize: number;
|
|
40
|
+
$colorKey: Color | string;
|
|
41
|
+
}
|
|
42
|
+
export declare const StyledLineChartContainer: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('..').BoxProps & {
|
|
43
|
+
ref?: import('react').ForwardedRef<HTMLDivElement>;
|
|
44
|
+
}, never>> & string & Omit<(props: import('..').BoxProps & {
|
|
45
|
+
ref?: import('react').ForwardedRef<HTMLDivElement>;
|
|
46
|
+
}) => ReturnType<({ children, style, "data-testid": testId, ...otherProps }: import('..').BoxProps, ref: import('react').ForwardedRef<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element>, keyof import('react').Component<any, {}, any>>;
|
|
47
|
+
export declare const StyledLineChartSvg: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').SVGProps<SVGSVGElement>, {
|
|
48
|
+
$width?: number;
|
|
49
|
+
$height?: number;
|
|
50
|
+
}>> & string;
|
|
51
|
+
export declare const StyledLine: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').SVGProps<SVGPathElement>, StyledLineProps>> & string;
|
|
52
|
+
export declare const StyledArea: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').SVGProps<SVGPathElement>, StyledAreaProps>> & string;
|
|
53
|
+
export declare const StyledDot: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').SVGProps<SVGCircleElement>, StyledDotProps>> & string;
|
|
54
|
+
export declare const StyledAxisLine: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').SVGLineElementAttributes<SVGLineElement>, StyledAxisLineProps>> & string;
|
|
55
|
+
export declare const StyledAxisLabel: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').SVGTextElementAttributes<SVGTextElement>, StyledAxisLabelProps>> & string;
|
|
56
|
+
export declare const StyledGridLine: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').SVGLineElementAttributes<SVGLineElement>, StyledGridLineProps>> & string;
|
|
57
|
+
export declare const StyledLegendContainer: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('..').BoxProps & {
|
|
58
|
+
ref?: import('react').ForwardedRef<HTMLDivElement>;
|
|
59
|
+
}, StyledLegendContainerProps>> & string & Omit<(props: import('..').BoxProps & {
|
|
60
|
+
ref?: import('react').ForwardedRef<HTMLDivElement>;
|
|
61
|
+
}) => ReturnType<({ children, style, "data-testid": testId, ...otherProps }: import('..').BoxProps, ref: import('react').ForwardedRef<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element>, keyof import('react').Component<any, {}, any>>;
|
|
62
|
+
export declare const StyledLegendItem: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('..').BoxProps & {
|
|
63
|
+
ref?: import('react').ForwardedRef<HTMLDivElement>;
|
|
64
|
+
}, StyledLegendItemProps>> & string & Omit<(props: import('..').BoxProps & {
|
|
65
|
+
ref?: import('react').ForwardedRef<HTMLDivElement>;
|
|
66
|
+
}) => ReturnType<({ children, style, "data-testid": testId, ...otherProps }: import('..').BoxProps, ref: import('react').ForwardedRef<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element>, keyof import('react').Component<any, {}, any>>;
|
|
67
|
+
export declare const StyledLegendLine: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('..').BoxProps & {
|
|
68
|
+
ref?: import('react').ForwardedRef<HTMLDivElement>;
|
|
69
|
+
}, StyledLegendLineProps>> & string & Omit<(props: import('..').BoxProps & {
|
|
70
|
+
ref?: import('react').ForwardedRef<HTMLDivElement>;
|
|
71
|
+
}) => ReturnType<({ children, style, "data-testid": testId, ...otherProps }: import('..').BoxProps, ref: import('react').ForwardedRef<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element>, keyof import('react').Component<any, {}, any>>;
|
|
72
|
+
export declare const StyledLegendText: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, StyledLegendTextProps>> & string;
|
|
73
|
+
export declare const StyledTooltip: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('..').BoxProps & {
|
|
74
|
+
ref?: import('react').ForwardedRef<HTMLDivElement>;
|
|
75
|
+
}, never>> & string & Omit<(props: import('..').BoxProps & {
|
|
76
|
+
ref?: import('react').ForwardedRef<HTMLDivElement>;
|
|
77
|
+
}) => ReturnType<({ children, style, "data-testid": testId, ...otherProps }: import('..').BoxProps, ref: import('react').ForwardedRef<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element>, keyof import('react').Component<any, {}, any>>;
|
|
78
|
+
export declare const StyledTooltipContent: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('..').BoxProps & {
|
|
79
|
+
ref?: import('react').ForwardedRef<HTMLDivElement>;
|
|
80
|
+
}, never>> & string & Omit<(props: import('..').BoxProps & {
|
|
81
|
+
ref?: import('react').ForwardedRef<HTMLDivElement>;
|
|
82
|
+
}) => ReturnType<({ children, style, "data-testid": testId, ...otherProps }: import('..').BoxProps, ref: import('react').ForwardedRef<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element>, keyof import('react').Component<any, {}, any>>;
|
|
83
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './LineChart';
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { Color } from '../../theme/common';
|
|
3
|
+
import { PieChartSize as ThemePieChartSize, PieChartVariant as ThemePieChartVariant } from '../../theme/components/pieChart';
|
|
4
|
+
import { BoxProps } from '../Box';
|
|
5
|
+
export interface PieData {
|
|
6
|
+
label: string;
|
|
7
|
+
value: number;
|
|
8
|
+
color?: Color;
|
|
9
|
+
}
|
|
10
|
+
export interface PieChartProps extends Omit<BoxProps, 'size'> {
|
|
11
|
+
/**
|
|
12
|
+
* Array of data points for the pie chart
|
|
13
|
+
*/
|
|
14
|
+
data: PieData[];
|
|
15
|
+
/**
|
|
16
|
+
* Width of the chart in pixels
|
|
17
|
+
* @default 400
|
|
18
|
+
*/
|
|
19
|
+
width?: number;
|
|
20
|
+
/**
|
|
21
|
+
* Height of the chart in pixels
|
|
22
|
+
* @default 400
|
|
23
|
+
*/
|
|
24
|
+
height?: number;
|
|
25
|
+
/**
|
|
26
|
+
* Inner radius for donut chart (0-1 as percentage of radius)
|
|
27
|
+
* @default 0
|
|
28
|
+
*/
|
|
29
|
+
innerRadius?: number;
|
|
30
|
+
/**
|
|
31
|
+
* Outer radius in pixels
|
|
32
|
+
* @default calculated from width/height
|
|
33
|
+
*/
|
|
34
|
+
outerRadius?: number;
|
|
35
|
+
/**
|
|
36
|
+
* Padding angle between slices in degrees
|
|
37
|
+
* @default 0
|
|
38
|
+
*/
|
|
39
|
+
padAngle?: number;
|
|
40
|
+
/**
|
|
41
|
+
* Corner radius for slices
|
|
42
|
+
* @default 0
|
|
43
|
+
*/
|
|
44
|
+
cornerRadius?: number;
|
|
45
|
+
/**
|
|
46
|
+
* The size preset for the chart
|
|
47
|
+
* @default 'md'
|
|
48
|
+
*/
|
|
49
|
+
size?: ThemePieChartSize;
|
|
50
|
+
/**
|
|
51
|
+
* The visual variant of the pie chart
|
|
52
|
+
* @default 'default'
|
|
53
|
+
*/
|
|
54
|
+
variant?: ThemePieChartVariant;
|
|
55
|
+
/**
|
|
56
|
+
* Show labels on slices
|
|
57
|
+
* @default false
|
|
58
|
+
*/
|
|
59
|
+
showLabels?: boolean;
|
|
60
|
+
/**
|
|
61
|
+
* Show legend
|
|
62
|
+
* @default true
|
|
63
|
+
*/
|
|
64
|
+
showLegend?: boolean;
|
|
65
|
+
/**
|
|
66
|
+
* Legend position
|
|
67
|
+
* @default 'right'
|
|
68
|
+
*/
|
|
69
|
+
legendPosition?: 'top' | 'right' | 'bottom' | 'left';
|
|
70
|
+
/**
|
|
71
|
+
* Animation duration in milliseconds
|
|
72
|
+
* @default 300
|
|
73
|
+
*/
|
|
74
|
+
animationDuration?: number;
|
|
75
|
+
/**
|
|
76
|
+
* Start angle in degrees
|
|
77
|
+
* @default -90
|
|
78
|
+
*/
|
|
79
|
+
startAngle?: number;
|
|
80
|
+
/**
|
|
81
|
+
* Test ID for automation
|
|
82
|
+
*/
|
|
83
|
+
testID?: string;
|
|
84
|
+
}
|
|
85
|
+
export declare const PieChart: React.FC<PieChartProps>;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { Color } from '../../theme/common';
|
|
2
|
+
interface StyledPieSliceProps {
|
|
3
|
+
$colorKey: Color;
|
|
4
|
+
$strokeWidth: number;
|
|
5
|
+
$strokeColorKey: Color | string;
|
|
6
|
+
$animationDuration: number;
|
|
7
|
+
$startAngle: number;
|
|
8
|
+
$endAngle: number;
|
|
9
|
+
}
|
|
10
|
+
interface StyledPieLabelProps {
|
|
11
|
+
$colorKey: Color | string;
|
|
12
|
+
$fontSize: number;
|
|
13
|
+
}
|
|
14
|
+
interface StyledLegendContainerProps {
|
|
15
|
+
$position: 'top' | 'right' | 'bottom' | 'left';
|
|
16
|
+
$spacing: number;
|
|
17
|
+
}
|
|
18
|
+
interface StyledLegendItemProps {
|
|
19
|
+
$spacing: number;
|
|
20
|
+
}
|
|
21
|
+
interface StyledLegendColorProps {
|
|
22
|
+
$colorKey: Color;
|
|
23
|
+
$size: number;
|
|
24
|
+
}
|
|
25
|
+
interface StyledLegendTextProps {
|
|
26
|
+
$fontSize: number;
|
|
27
|
+
$colorKey: Color | string;
|
|
28
|
+
}
|
|
29
|
+
interface StyledPieChartContainerProps {
|
|
30
|
+
$legendPosition: 'top' | 'right' | 'bottom' | 'left';
|
|
31
|
+
$showLegend: boolean;
|
|
32
|
+
}
|
|
33
|
+
export declare const StyledPieChartContainer: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('..').BoxProps & {
|
|
34
|
+
ref?: import('react').ForwardedRef<HTMLDivElement>;
|
|
35
|
+
}, StyledPieChartContainerProps>> & string & Omit<(props: import('..').BoxProps & {
|
|
36
|
+
ref?: import('react').ForwardedRef<HTMLDivElement>;
|
|
37
|
+
}) => ReturnType<({ children, style, "data-testid": testId, ...otherProps }: import('..').BoxProps, ref: import('react').ForwardedRef<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element>, keyof import('react').Component<any, {}, any>>;
|
|
38
|
+
export declare const StyledPieChartSvg: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').SVGProps<SVGSVGElement>, {
|
|
39
|
+
$width?: number;
|
|
40
|
+
$height?: number;
|
|
41
|
+
}>> & string;
|
|
42
|
+
export declare const StyledPieSlice: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').SVGProps<SVGPathElement>, StyledPieSliceProps>> & string;
|
|
43
|
+
export declare const StyledPieLabel: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').SVGTextElementAttributes<SVGTextElement>, StyledPieLabelProps>> & string;
|
|
44
|
+
export declare const StyledLegendContainer: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('..').BoxProps & {
|
|
45
|
+
ref?: import('react').ForwardedRef<HTMLDivElement>;
|
|
46
|
+
}, StyledLegendContainerProps>> & string & Omit<(props: import('..').BoxProps & {
|
|
47
|
+
ref?: import('react').ForwardedRef<HTMLDivElement>;
|
|
48
|
+
}) => ReturnType<({ children, style, "data-testid": testId, ...otherProps }: import('..').BoxProps, ref: import('react').ForwardedRef<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element>, keyof import('react').Component<any, {}, any>>;
|
|
49
|
+
export declare const StyledLegendItem: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('..').BoxProps & {
|
|
50
|
+
ref?: import('react').ForwardedRef<HTMLDivElement>;
|
|
51
|
+
}, StyledLegendItemProps>> & string & Omit<(props: import('..').BoxProps & {
|
|
52
|
+
ref?: import('react').ForwardedRef<HTMLDivElement>;
|
|
53
|
+
}) => ReturnType<({ children, style, "data-testid": testId, ...otherProps }: import('..').BoxProps, ref: import('react').ForwardedRef<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element>, keyof import('react').Component<any, {}, any>>;
|
|
54
|
+
export declare const StyledLegendColor: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('..').BoxProps & {
|
|
55
|
+
ref?: import('react').ForwardedRef<HTMLDivElement>;
|
|
56
|
+
}, StyledLegendColorProps>> & string & Omit<(props: import('..').BoxProps & {
|
|
57
|
+
ref?: import('react').ForwardedRef<HTMLDivElement>;
|
|
58
|
+
}) => ReturnType<({ children, style, "data-testid": testId, ...otherProps }: import('..').BoxProps, ref: import('react').ForwardedRef<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element>, keyof import('react').Component<any, {}, any>>;
|
|
59
|
+
export declare const StyledLegendText: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, StyledLegendTextProps>> & string;
|
|
60
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './PieChart';
|
|
@@ -9,8 +9,6 @@ interface SelectDropdownProps<T extends string | number> {
|
|
|
9
9
|
onClose: () => void;
|
|
10
10
|
size: SelectSize;
|
|
11
11
|
borderRadius: string;
|
|
12
|
-
searchable?: boolean;
|
|
13
|
-
placeholder?: string;
|
|
14
12
|
}
|
|
15
|
-
export declare function SelectDropdown<T extends string | number>({ anchorElement, isOpen, options, onSelect, selectedValue, onClose, size, borderRadius,
|
|
13
|
+
export declare function SelectDropdown<T extends string | number>({ anchorElement, isOpen, options, onSelect, selectedValue, onClose, size, borderRadius, }: SelectDropdownProps<T>): import('react').ReactPortal | null;
|
|
16
14
|
export {};
|
|
@@ -20,6 +20,9 @@ interface SelectInputDisplayProps {
|
|
|
20
20
|
iconColor: Color;
|
|
21
21
|
testId?: string;
|
|
22
22
|
setIsHovering: (isHovering: boolean) => void;
|
|
23
|
+
searchable?: boolean;
|
|
24
|
+
searchTerm: string;
|
|
25
|
+
onSearchChange: (value: string) => void;
|
|
23
26
|
}
|
|
24
27
|
export declare const SelectInputDisplay: React.FC<SelectInputDisplayProps>;
|
|
25
28
|
export {};
|