@monolith-forensics/monolith-ui 1.8.1-dev.0 → 1.8.1-dev.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/SelectBox/SelectBox.js +2 -2
- package/dist/SelectBox/select-box.styled-components.d.ts +1 -0
- package/dist/SelectBox/select-box.styled-components.js +3 -2
- package/dist/SelectBox/types.d.ts +1 -0
- package/package.json +1 -1
- package/dist/BarChart/BarChart.d.ts +0 -3
- package/dist/BarChart/BarChart.js +0 -511
- package/dist/BarChart/BarChart.lib.d.ts +0 -31
- package/dist/BarChart/BarChart.lib.js +0 -136
- package/dist/BarChart/BarChart.styled.d.ts +0 -49
- package/dist/BarChart/BarChart.styled.js +0 -111
- package/dist/BarChart/BarChart.types.d.ts +0 -170
- package/dist/BarChart/BarChart.types.js +0 -1
- package/dist/BarChart/index.d.ts +0 -3
- package/dist/BarChart/index.js +0 -2
- package/dist/ChartPrimitives/chartLegend.styled.d.ts +0 -12
- package/dist/ChartPrimitives/chartLegend.styled.js +0 -52
- package/dist/ChartPrimitives/chartTooltip.styled.d.ts +0 -19
- package/dist/ChartPrimitives/chartTooltip.styled.js +0 -61
- package/dist/ChartPrimitives/index.d.ts +0 -2
- package/dist/ChartPrimitives/index.js +0 -2
- package/dist/ChartUtils/chartColors.d.ts +0 -8
- package/dist/ChartUtils/chartColors.js +0 -65
- package/dist/ChartUtils/chartMath.d.ts +0 -3
- package/dist/ChartUtils/chartMath.js +0 -3
- package/dist/ChartUtils/index.d.ts +0 -2
- package/dist/ChartUtils/index.js +0 -2
- package/dist/HeatMap/HeatMap.d.ts +0 -3
- package/dist/HeatMap/HeatMap.js +0 -174
- package/dist/HeatMap/HeatMap.lib.d.ts +0 -30
- package/dist/HeatMap/HeatMap.lib.js +0 -115
- package/dist/HeatMap/HeatMap.styled.d.ts +0 -34
- package/dist/HeatMap/HeatMap.styled.js +0 -83
- package/dist/HeatMap/HeatMap.types.d.ts +0 -79
- package/dist/HeatMap/HeatMap.types.js +0 -1
- package/dist/HeatMap/index.d.ts +0 -3
- package/dist/HeatMap/index.js +0 -2
- package/dist/LineChart/LineChart.d.ts +0 -3
- package/dist/LineChart/LineChart.js +0 -491
- package/dist/LineChart/LineChart.lib.d.ts +0 -24
- package/dist/LineChart/LineChart.lib.js +0 -132
- package/dist/LineChart/LineChart.styled.d.ts +0 -57
- package/dist/LineChart/LineChart.styled.js +0 -150
- package/dist/LineChart/LineChart.types.d.ts +0 -192
- package/dist/LineChart/LineChart.types.js +0 -1
- package/dist/LineChart/index.d.ts +0 -3
- package/dist/LineChart/index.js +0 -2
- package/dist/PieChart/PieChart.d.ts +0 -2
- package/dist/PieChart/PieChart.js +0 -161
- package/dist/PieChart/PieChart.lib.d.ts +0 -5
- package/dist/PieChart/PieChart.lib.js +0 -19
- package/dist/PieChart/PieChart.styled.d.ts +0 -49
- package/dist/PieChart/PieChart.styled.js +0 -161
- package/dist/PieChart/PieChart.types.d.ts +0 -99
- package/dist/PieChart/PieChart.types.js +0 -1
- package/dist/PieChart/index.d.ts +0 -2
- package/dist/PieChart/index.js +0 -1
- package/dist/SuperDatePicker/SuperDatePicker.d.ts +0 -74
- package/dist/SuperDatePicker/SuperDatePicker.js +0 -557
- package/dist/SuperDatePicker/index.d.ts +0 -2
- package/dist/SuperDatePicker/index.js +0 -2
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
export declare const StyledContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
2
|
-
export declare const StyledChartWrap: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
3
|
-
export declare const StyledSvg: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").SVGProps<SVGSVGElement>, never>> & string;
|
|
4
|
-
export declare const StyledSlice: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").SVGProps<SVGPathElement>, {
|
|
5
|
-
$active: boolean;
|
|
6
|
-
}>> & string;
|
|
7
|
-
export declare const StyledLabel: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").SVGTextElementAttributes<SVGTextElement>, never>> & string;
|
|
8
|
-
export declare const StyledCenter: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
9
|
-
export declare const StyledCenterPanel: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
10
|
-
$diameter: number;
|
|
11
|
-
}>> & string;
|
|
12
|
-
export declare const StyledCenterValue: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
13
|
-
export declare const StyledCenterLabel: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
14
|
-
export declare const StyledLegend: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>, never>> & string;
|
|
15
|
-
export declare const StyledLegendItem: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
16
|
-
$active: boolean;
|
|
17
|
-
$showSwatch: boolean;
|
|
18
|
-
$showLabel: boolean;
|
|
19
|
-
$showMeta: boolean;
|
|
20
|
-
}>> & string;
|
|
21
|
-
export declare const StyledSwatch: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {
|
|
22
|
-
$color: string;
|
|
23
|
-
$width?: number;
|
|
24
|
-
$height?: number;
|
|
25
|
-
$radius?: number;
|
|
26
|
-
}>> & string;
|
|
27
|
-
export declare const StyledLegendLabel: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
|
|
28
|
-
export declare const StyledLegendValue: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
|
|
29
|
-
export declare const StyledLegendMeta: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
|
|
30
|
-
export declare const StyledLegendPercent: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
|
|
31
|
-
export declare const StyledEmptyState: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
32
|
-
$size: number;
|
|
33
|
-
}>> & string;
|
|
34
|
-
export declare const StyledTooltip: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
35
|
-
$minWidth?: number;
|
|
36
|
-
$maxWidth?: number;
|
|
37
|
-
$transform?: string;
|
|
38
|
-
}>> & string;
|
|
39
|
-
export declare const StyledTooltipHeader: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
40
|
-
export declare const StyledTooltipSwatch: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {
|
|
41
|
-
$color: string;
|
|
42
|
-
$radius?: string;
|
|
43
|
-
}>> & string;
|
|
44
|
-
export declare const StyledTooltipLabel: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
|
|
45
|
-
export declare const StyledTooltipMeta: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
46
|
-
$marginTop?: number;
|
|
47
|
-
$direction?: "row" | "column";
|
|
48
|
-
$gap?: number;
|
|
49
|
-
}>> & string;
|
|
@@ -1,161 +0,0 @@
|
|
|
1
|
-
import styled from "styled-components";
|
|
2
|
-
import { StyledChartLegend, StyledChartLegendLabel, StyledChartLegendSwatch, StyledChartLegendValue, StyledChartTooltip, StyledChartTooltipHeader, StyledChartTooltipLabel, StyledChartTooltipMeta, StyledChartTooltipSwatch, sharedLegendItemStyles, } from "../ChartPrimitives";
|
|
3
|
-
const activeSliceStyles = `
|
|
4
|
-
opacity: 0.96;
|
|
5
|
-
filter: brightness(1.12) saturate(1.08);
|
|
6
|
-
transform: scale(1.018);
|
|
7
|
-
`;
|
|
8
|
-
export const StyledContainer = styled.div `
|
|
9
|
-
position: relative;
|
|
10
|
-
display: flex;
|
|
11
|
-
align-items: center;
|
|
12
|
-
flex-wrap: wrap;
|
|
13
|
-
gap: 20px;
|
|
14
|
-
width: fit-content;
|
|
15
|
-
max-width: 100%;
|
|
16
|
-
color: ${({ theme }) => theme.palette.text.primary};
|
|
17
|
-
box-sizing: border-box;
|
|
18
|
-
overflow: visible;
|
|
19
|
-
`;
|
|
20
|
-
export const StyledChartWrap = styled.div `
|
|
21
|
-
position: relative;
|
|
22
|
-
display: flex;
|
|
23
|
-
align-items: center;
|
|
24
|
-
justify-content: center;
|
|
25
|
-
flex: 0 0 auto;
|
|
26
|
-
`;
|
|
27
|
-
export const StyledSvg = styled.svg `
|
|
28
|
-
display: block;
|
|
29
|
-
overflow: visible;
|
|
30
|
-
`;
|
|
31
|
-
export const StyledSlice = styled.path `
|
|
32
|
-
cursor: pointer;
|
|
33
|
-
outline: none;
|
|
34
|
-
transform-box: fill-box;
|
|
35
|
-
transform-origin: center;
|
|
36
|
-
transition:
|
|
37
|
-
opacity 0.18s ease,
|
|
38
|
-
filter 0.18s ease,
|
|
39
|
-
transform 0.18s ease;
|
|
40
|
-
|
|
41
|
-
&:hover,
|
|
42
|
-
&:focus-visible {
|
|
43
|
-
${activeSliceStyles}
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
${({ $active }) => $active && activeSliceStyles}
|
|
47
|
-
`;
|
|
48
|
-
export const StyledLabel = styled.text `
|
|
49
|
-
fill: #fff;
|
|
50
|
-
font-size: 11px;
|
|
51
|
-
font-weight: 600;
|
|
52
|
-
paint-order: stroke;
|
|
53
|
-
stroke: rgba(0, 0, 0, 0.28);
|
|
54
|
-
stroke-width: 3px;
|
|
55
|
-
stroke-linejoin: round;
|
|
56
|
-
pointer-events: none;
|
|
57
|
-
`;
|
|
58
|
-
export const StyledCenter = styled.div `
|
|
59
|
-
position: absolute;
|
|
60
|
-
inset: 0;
|
|
61
|
-
display: flex;
|
|
62
|
-
align-items: center;
|
|
63
|
-
justify-content: center;
|
|
64
|
-
flex-direction: column;
|
|
65
|
-
gap: 2px;
|
|
66
|
-
text-align: center;
|
|
67
|
-
pointer-events: none;
|
|
68
|
-
`;
|
|
69
|
-
export const StyledCenterPanel = styled.div `
|
|
70
|
-
display: flex;
|
|
71
|
-
align-items: center;
|
|
72
|
-
justify-content: center;
|
|
73
|
-
flex-direction: column;
|
|
74
|
-
gap: 2px;
|
|
75
|
-
width: ${({ $diameter }) => $diameter}px;
|
|
76
|
-
height: ${({ $diameter }) => $diameter}px;
|
|
77
|
-
max-width: 74%;
|
|
78
|
-
max-height: 74%;
|
|
79
|
-
border: 1px solid ${({ theme }) => theme.palette.divider};
|
|
80
|
-
border-radius: 50%;
|
|
81
|
-
background: linear-gradient(
|
|
82
|
-
180deg,
|
|
83
|
-
${({ theme }) => theme.palette.background.paper} 0%,
|
|
84
|
-
${({ theme }) => theme.palette.background.secondary} 100%
|
|
85
|
-
);
|
|
86
|
-
`;
|
|
87
|
-
export const StyledCenterValue = styled.div `
|
|
88
|
-
max-width: 78%;
|
|
89
|
-
overflow: hidden;
|
|
90
|
-
text-overflow: ellipsis;
|
|
91
|
-
white-space: nowrap;
|
|
92
|
-
font-size: 20px;
|
|
93
|
-
font-weight: 700;
|
|
94
|
-
line-height: 1.15;
|
|
95
|
-
color: ${({ theme }) => theme.palette.text.primary};
|
|
96
|
-
`;
|
|
97
|
-
export const StyledCenterLabel = styled.div `
|
|
98
|
-
max-width: 78%;
|
|
99
|
-
overflow: hidden;
|
|
100
|
-
text-overflow: ellipsis;
|
|
101
|
-
white-space: nowrap;
|
|
102
|
-
font-size: 11px;
|
|
103
|
-
line-height: 1.2;
|
|
104
|
-
color: ${({ theme }) => theme.palette.text.secondary};
|
|
105
|
-
`;
|
|
106
|
-
export const StyledLegend = styled(StyledChartLegend) `
|
|
107
|
-
min-width: 164px;
|
|
108
|
-
max-width: 260px;
|
|
109
|
-
`;
|
|
110
|
-
export const StyledLegendItem = styled.div `
|
|
111
|
-
display: grid;
|
|
112
|
-
grid-template-columns: ${({ $showSwatch, $showLabel, $showMeta }) => [
|
|
113
|
-
$showSwatch ? "4px" : null,
|
|
114
|
-
$showLabel ? "minmax(0, 1fr)" : null,
|
|
115
|
-
$showMeta ? "auto" : null,
|
|
116
|
-
]
|
|
117
|
-
.filter(Boolean)
|
|
118
|
-
.join(" ")};
|
|
119
|
-
${sharedLegendItemStyles}
|
|
120
|
-
`;
|
|
121
|
-
export const StyledSwatch = StyledChartLegendSwatch;
|
|
122
|
-
export const StyledLegendLabel = StyledChartLegendLabel;
|
|
123
|
-
export const StyledLegendValue = StyledChartLegendValue;
|
|
124
|
-
export const StyledLegendMeta = styled.span `
|
|
125
|
-
display: flex;
|
|
126
|
-
align-items: center;
|
|
127
|
-
gap: 7px;
|
|
128
|
-
white-space: nowrap;
|
|
129
|
-
`;
|
|
130
|
-
export const StyledLegendPercent = styled.span `
|
|
131
|
-
min-width: 34px;
|
|
132
|
-
padding: 2px 5px;
|
|
133
|
-
border: 1px solid ${({ theme }) => theme.palette.divider};
|
|
134
|
-
border-radius: 4px;
|
|
135
|
-
background-color: ${({ theme }) => theme.palette.background.paper};
|
|
136
|
-
color: ${({ theme }) => theme.palette.text.primary};
|
|
137
|
-
font-size: 11px;
|
|
138
|
-
font-variant-numeric: tabular-nums;
|
|
139
|
-
text-align: center;
|
|
140
|
-
`;
|
|
141
|
-
export const StyledEmptyState = styled.div `
|
|
142
|
-
display: flex;
|
|
143
|
-
align-items: center;
|
|
144
|
-
justify-content: center;
|
|
145
|
-
width: ${({ $size }) => $size}px;
|
|
146
|
-
height: ${({ $size }) => $size}px;
|
|
147
|
-
border: 1px dashed ${({ theme }) => theme.palette.divider};
|
|
148
|
-
border-radius: 50%;
|
|
149
|
-
background: radial-gradient(
|
|
150
|
-
circle,
|
|
151
|
-
${({ theme }) => theme.palette.background.paper} 0%,
|
|
152
|
-
${({ theme }) => theme.palette.background.secondary} 70%
|
|
153
|
-
);
|
|
154
|
-
font-size: 12px;
|
|
155
|
-
color: ${({ theme }) => theme.palette.text.secondary};
|
|
156
|
-
`;
|
|
157
|
-
export const StyledTooltip = StyledChartTooltip;
|
|
158
|
-
export const StyledTooltipHeader = StyledChartTooltipHeader;
|
|
159
|
-
export const StyledTooltipSwatch = StyledChartTooltipSwatch;
|
|
160
|
-
export const StyledTooltipLabel = StyledChartTooltipLabel;
|
|
161
|
-
export const StyledTooltipMeta = StyledChartTooltipMeta;
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
import React, { HTMLAttributes } from "react";
|
|
2
|
-
import { PieArcDatum } from "d3-shape";
|
|
3
|
-
export type PieChartDatum<TData = unknown> = {
|
|
4
|
-
/** Stable identifier for the slice. Falls back to label and index when omitted. */
|
|
5
|
-
id?: string | number;
|
|
6
|
-
/** Display label used for legends, labels, tooltips, and accessibility text. */
|
|
7
|
-
label: string;
|
|
8
|
-
/** Numeric value used to calculate the slice size. Values must be positive to render. */
|
|
9
|
-
value: number;
|
|
10
|
-
/** Optional per-slice color. Takes precedence over colorGradient, colors, and theme colors. */
|
|
11
|
-
color?: string;
|
|
12
|
-
/** Optional contextual payload returned in click callbacks and formatter functions. */
|
|
13
|
-
data?: TData;
|
|
14
|
-
};
|
|
15
|
-
export type PieChartColorGradient =
|
|
16
|
-
/** Ordered color stops used to generate slice colors across a gradient scale. */
|
|
17
|
-
string[]
|
|
18
|
-
/** Two-color gradient range used to generate slice colors from start to end. */
|
|
19
|
-
| {
|
|
20
|
-
/** Starting color for generated slice colors. */
|
|
21
|
-
from: string;
|
|
22
|
-
/** Ending color for generated slice colors. */
|
|
23
|
-
to: string;
|
|
24
|
-
};
|
|
25
|
-
export type PieChartProps<TData = unknown> = HTMLAttributes<HTMLDivElement> & {
|
|
26
|
-
/** Slice data rendered by the chart. Only positive finite values are displayed. */
|
|
27
|
-
data: PieChartDatum<TData>[];
|
|
28
|
-
/** SVG width and height in pixels. Defaults to 220. */
|
|
29
|
-
size?: number;
|
|
30
|
-
/** Inner radius in pixels. Set to 0 for a solid pie. Defaults to 58. */
|
|
31
|
-
innerRadius?: number;
|
|
32
|
-
/** Outer radius in pixels. Defaults to half the size minus chart padding. */
|
|
33
|
-
outerRadius?: number;
|
|
34
|
-
/** Corner radius for slice edges in pixels. Defaults to 1. */
|
|
35
|
-
cornerRadius?: number;
|
|
36
|
-
/** Angular spacing between slices in radians. Defaults to 0.004. */
|
|
37
|
-
padAngle?: number;
|
|
38
|
-
/** Categorical color palette for slices. Used after per-slice colors and colorGradient. */
|
|
39
|
-
colors?: string[];
|
|
40
|
-
/** Generates slice colors along a gradient scale. Per-slice color values still take precedence. */
|
|
41
|
-
colorGradient?: PieChartColorGradient;
|
|
42
|
-
/** Opacity applied to slice fills. Clamped between 0 and 1. Defaults to 1. */
|
|
43
|
-
sliceOpacity?: number;
|
|
44
|
-
/** Stroke color around each slice. Defaults to the theme paper background. */
|
|
45
|
-
sliceBorderColor?: string;
|
|
46
|
-
/** Stroke width around each slice in pixels. Defaults to 1. */
|
|
47
|
-
sliceBorderWidth?: number;
|
|
48
|
-
/** Stroke opacity around each slice. Clamped between 0 and 1. Defaults to 1. */
|
|
49
|
-
sliceBorderOpacity?: number;
|
|
50
|
-
/** SVG stroke line join used by each slice border. Defaults to "round". */
|
|
51
|
-
sliceBorderLineJoin?: React.SVGAttributes<SVGPathElement>["strokeLinejoin"];
|
|
52
|
-
/** Shows or hides the entire legend. Defaults to true. */
|
|
53
|
-
showLegend?: boolean;
|
|
54
|
-
/** Shows or hides legend color swatches. Defaults to true. */
|
|
55
|
-
showLegendSwatches?: boolean;
|
|
56
|
-
/** Shows or hides legend labels. Defaults to true. */
|
|
57
|
-
showLegendLabels?: boolean;
|
|
58
|
-
/** Shows or hides legend formatted values. Defaults to true. */
|
|
59
|
-
showLegendValues?: boolean;
|
|
60
|
-
/** Shows or hides legend percentage badges. Defaults to true. */
|
|
61
|
-
showLegendPercentages?: boolean;
|
|
62
|
-
/** Shows percentage labels inside sufficiently large slices. Defaults to false. */
|
|
63
|
-
showLabels?: boolean;
|
|
64
|
-
/** Label displayed in the center of donut charts. */
|
|
65
|
-
centerLabel?: React.ReactNode;
|
|
66
|
-
/** Value displayed above centerLabel in donut charts. */
|
|
67
|
-
centerValue?: React.ReactNode;
|
|
68
|
-
/** Content shown when no valid positive data values are available. Defaults to "No data". */
|
|
69
|
-
emptyLabel?: React.ReactNode;
|
|
70
|
-
/** Accessible label for the SVG chart image. Defaults to "Pie chart". */
|
|
71
|
-
ariaLabel?: string;
|
|
72
|
-
/** Animates slices on initial render with a fan-out sweep. Defaults to false. */
|
|
73
|
-
animateOnRender?: boolean;
|
|
74
|
-
/** Duration in milliseconds for each slice animation. Defaults to 520. */
|
|
75
|
-
animationDuration?: number;
|
|
76
|
-
/** Delay in milliseconds between each slice animation. Defaults to 35. */
|
|
77
|
-
animationStagger?: number;
|
|
78
|
-
/** Shows a custom themed tooltip when hovering over slices. Defaults to false. */
|
|
79
|
-
showTooltips?: boolean;
|
|
80
|
-
/** Formats values shown in the legend and default tooltip. */
|
|
81
|
-
valueFormatter?: (value: number, datum: PieChartDatum<TData>) => React.ReactNode;
|
|
82
|
-
/** Formats labels rendered inside slices. Receives the original datum and percentage as 0-1. */
|
|
83
|
-
labelFormatter?: (datum: PieChartDatum<TData>, percent: number) => React.ReactNode;
|
|
84
|
-
/** Custom tooltip renderer. Receives the original datum and percentage as 0-1. */
|
|
85
|
-
tooltipFormatter?: (datum: PieChartDatum<TData>, percent: number) => React.ReactNode;
|
|
86
|
-
/** Called when a slice is clicked or activated with Enter/Space. */
|
|
87
|
-
onSliceClick?: (event: React.MouseEvent<SVGPathElement> | React.KeyboardEvent<SVGPathElement>, datum: PieChartDatum<TData>) => void;
|
|
88
|
-
/** Called when a legend item is clicked or activated with Enter/Space. */
|
|
89
|
-
onLegendItemClick?: (event: React.MouseEvent<HTMLDivElement> | React.KeyboardEvent<HTMLDivElement>, datum: PieChartDatum<TData>) => void;
|
|
90
|
-
};
|
|
91
|
-
export type ResolvedSlice<TData = unknown> = PieArcDatum<PieChartDatum<TData>> & {
|
|
92
|
-
color: string;
|
|
93
|
-
percent: number;
|
|
94
|
-
};
|
|
95
|
-
export type ActiveTooltip = {
|
|
96
|
-
sliceKey: string | number;
|
|
97
|
-
x: number;
|
|
98
|
-
y: number;
|
|
99
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/dist/PieChart/index.d.ts
DELETED
package/dist/PieChart/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./PieChart";
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import moment from "moment";
|
|
2
|
-
import { CSSProperties, ReactElement, ReactNode } from "react";
|
|
3
|
-
import { ButtonProps } from "../Button";
|
|
4
|
-
import { Size, Variant } from "../core";
|
|
5
|
-
export type SuperDatePickerUnit = "s" | "m" | "h" | "d" | "w" | "M" | "y";
|
|
6
|
-
export type SuperDatePickerRefreshUnit = "s" | "m" | "h";
|
|
7
|
-
export type DurationRange = {
|
|
8
|
-
start: string;
|
|
9
|
-
end: string;
|
|
10
|
-
label: string;
|
|
11
|
-
};
|
|
12
|
-
export type SuperDatePickerQuickSelectPanel = {
|
|
13
|
-
title: string;
|
|
14
|
-
content: ReactElement;
|
|
15
|
-
};
|
|
16
|
-
export type SuperDatePickerTimeChangeProps = {
|
|
17
|
-
start: string;
|
|
18
|
-
end: string;
|
|
19
|
-
isInvalid: boolean;
|
|
20
|
-
isQuickSelection: boolean;
|
|
21
|
-
};
|
|
22
|
-
export type SuperDatePickerRefreshChangeProps = {
|
|
23
|
-
isPaused: boolean;
|
|
24
|
-
refreshInterval: number;
|
|
25
|
-
intervalUnits: SuperDatePickerRefreshUnit;
|
|
26
|
-
};
|
|
27
|
-
export type SuperDatePickerRefreshProps = {
|
|
28
|
-
start: string;
|
|
29
|
-
end: string;
|
|
30
|
-
refreshInterval: number;
|
|
31
|
-
};
|
|
32
|
-
export type SuperDatePickerTimeWindowButtonsConfig = {
|
|
33
|
-
zoomFactor?: number;
|
|
34
|
-
showZoomIn?: boolean;
|
|
35
|
-
};
|
|
36
|
-
export type SuperDatePickerProps = {
|
|
37
|
-
className?: string;
|
|
38
|
-
style?: CSSProperties;
|
|
39
|
-
start?: string;
|
|
40
|
-
end?: string;
|
|
41
|
-
defaultStart?: string;
|
|
42
|
-
defaultEnd?: string;
|
|
43
|
-
onTimeChange?: (props: SuperDatePickerTimeChangeProps) => void;
|
|
44
|
-
commonlyUsedRanges?: DurationRange[];
|
|
45
|
-
recentlyUsedRanges?: DurationRange[];
|
|
46
|
-
customQuickSelectPanels?: SuperDatePickerQuickSelectPanel[];
|
|
47
|
-
isDisabled?: boolean | {
|
|
48
|
-
display: ReactNode;
|
|
49
|
-
};
|
|
50
|
-
isLoading?: boolean;
|
|
51
|
-
width?: "auto" | "restricted" | "full";
|
|
52
|
-
size?: Size;
|
|
53
|
-
variant?: Variant;
|
|
54
|
-
compressed?: boolean;
|
|
55
|
-
showUpdateButton?: boolean | "iconOnly";
|
|
56
|
-
updateButtonProps?: ButtonProps;
|
|
57
|
-
quickSelectButtonProps?: ButtonProps;
|
|
58
|
-
isQuickSelectOnly?: boolean;
|
|
59
|
-
isAutoRefreshOnly?: boolean;
|
|
60
|
-
isPaused?: boolean;
|
|
61
|
-
refreshInterval?: number;
|
|
62
|
-
refreshMinInterval?: number;
|
|
63
|
-
refreshIntervalUnits?: SuperDatePickerRefreshUnit;
|
|
64
|
-
onRefresh?: (props: SuperDatePickerRefreshProps) => void | Promise<void>;
|
|
65
|
-
onRefreshChange?: (props: SuperDatePickerRefreshChangeProps) => void;
|
|
66
|
-
showTimeWindowButtons?: boolean | SuperDatePickerTimeWindowButtonsConfig;
|
|
67
|
-
minDate?: Date | moment.Moment;
|
|
68
|
-
maxDate?: Date | moment.Moment;
|
|
69
|
-
timeZoneDisplay?: ReactNode;
|
|
70
|
-
dateFormat?: string;
|
|
71
|
-
"aria-label"?: string;
|
|
72
|
-
};
|
|
73
|
-
export declare const SuperDatePicker: React.FC<SuperDatePickerProps>;
|
|
74
|
-
export default SuperDatePicker;
|