@mantine/charts 8.3.13 → 9.0.0-alpha.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/cjs/AreaChart/AreaChart.cjs +152 -162
- package/cjs/AreaChart/AreaChart.cjs.map +1 -1
- package/cjs/BarChart/BarChart.cjs +4 -5
- package/cjs/BarChart/BarChart.cjs.map +1 -1
- package/cjs/BarsList/BarsList.cjs +121 -0
- package/cjs/BarsList/BarsList.cjs.map +1 -0
- package/cjs/BarsList/BarsList.module.css.cjs +7 -0
- package/cjs/BarsList/BarsList.module.css.cjs.map +1 -0
- package/cjs/BubbleChart/BubbleChart.cjs +3 -2
- package/cjs/BubbleChart/BubbleChart.cjs.map +1 -1
- package/cjs/ChartLegend/ChartLegend.cjs +5 -12
- package/cjs/ChartLegend/ChartLegend.cjs.map +1 -1
- package/cjs/ChartTooltip/ChartTooltip.cjs +2 -2
- package/cjs/ChartTooltip/ChartTooltip.cjs.map +1 -1
- package/cjs/CompositeChart/CompositeChart.cjs +141 -151
- package/cjs/CompositeChart/CompositeChart.cjs.map +1 -1
- package/cjs/DonutChart/DonutChart.cjs +5 -4
- package/cjs/DonutChart/DonutChart.cjs.map +1 -1
- package/cjs/FunnelChart/FunnelChart.cjs +4 -3
- package/cjs/FunnelChart/FunnelChart.cjs.map +1 -1
- package/cjs/Heatmap/Heatmap.cjs +1 -2
- package/cjs/Heatmap/Heatmap.cjs.map +1 -1
- package/cjs/LineChart/LineChart.cjs +142 -153
- package/cjs/LineChart/LineChart.cjs.map +1 -1
- package/cjs/PieChart/PieChart.cjs +10 -9
- package/cjs/PieChart/PieChart.cjs.map +1 -1
- package/cjs/RadarChart/RadarChart.cjs +3 -2
- package/cjs/RadarChart/RadarChart.cjs.map +1 -1
- package/cjs/RadialBarChart/RadialBarChart.cjs +3 -2
- package/cjs/RadialBarChart/RadialBarChart.cjs.map +1 -1
- package/cjs/ScatterChart/ScatterChart.cjs +127 -136
- package/cjs/ScatterChart/ScatterChart.cjs.map +1 -1
- package/cjs/Sparkline/Sparkline.cjs +7 -5
- package/cjs/Sparkline/Sparkline.cjs.map +1 -1
- package/cjs/Sparkline/Sparkline.module.css.cjs +7 -0
- package/cjs/Sparkline/Sparkline.module.css.cjs.map +1 -0
- package/cjs/index.cjs +2 -0
- package/cjs/index.cjs.map +1 -1
- package/esm/AreaChart/AreaChart.mjs +152 -162
- package/esm/AreaChart/AreaChart.mjs.map +1 -1
- package/esm/BarChart/BarChart.mjs +4 -5
- package/esm/BarChart/BarChart.mjs.map +1 -1
- package/esm/BarsList/BarsList.mjs +119 -0
- package/esm/BarsList/BarsList.mjs.map +1 -0
- package/esm/BarsList/BarsList.module.css.mjs +5 -0
- package/esm/BarsList/BarsList.module.css.mjs.map +1 -0
- package/esm/BubbleChart/BubbleChart.mjs +3 -2
- package/esm/BubbleChart/BubbleChart.mjs.map +1 -1
- package/esm/ChartLegend/ChartLegend.mjs +5 -12
- package/esm/ChartLegend/ChartLegend.mjs.map +1 -1
- package/esm/ChartTooltip/ChartTooltip.mjs +2 -2
- package/esm/ChartTooltip/ChartTooltip.mjs.map +1 -1
- package/esm/CompositeChart/CompositeChart.mjs +141 -151
- package/esm/CompositeChart/CompositeChart.mjs.map +1 -1
- package/esm/DonutChart/DonutChart.mjs +5 -4
- package/esm/DonutChart/DonutChart.mjs.map +1 -1
- package/esm/FunnelChart/FunnelChart.mjs +4 -3
- package/esm/FunnelChart/FunnelChart.mjs.map +1 -1
- package/esm/Heatmap/Heatmap.mjs +1 -2
- package/esm/Heatmap/Heatmap.mjs.map +1 -1
- package/esm/LineChart/LineChart.mjs +142 -153
- package/esm/LineChart/LineChart.mjs.map +1 -1
- package/esm/PieChart/PieChart.mjs +10 -9
- package/esm/PieChart/PieChart.mjs.map +1 -1
- package/esm/RadarChart/RadarChart.mjs +3 -2
- package/esm/RadarChart/RadarChart.mjs.map +1 -1
- package/esm/RadialBarChart/RadialBarChart.mjs +3 -2
- package/esm/RadialBarChart/RadialBarChart.mjs.map +1 -1
- package/esm/ScatterChart/ScatterChart.mjs +127 -136
- package/esm/ScatterChart/ScatterChart.mjs.map +1 -1
- package/esm/Sparkline/Sparkline.mjs +5 -3
- package/esm/Sparkline/Sparkline.mjs.map +1 -1
- package/esm/Sparkline/Sparkline.module.css.mjs +5 -0
- package/esm/Sparkline/Sparkline.module.css.mjs.map +1 -0
- package/esm/index.mjs +1 -0
- package/esm/index.mjs.map +1 -1
- package/lib/AreaChart/AreaChart.d.ts +10 -10
- package/lib/AreaChart/index.d.ts +10 -1
- package/lib/BarChart/BarChart.d.ts +6 -6
- package/lib/BarChart/index.d.ts +10 -1
- package/lib/BarsList/BarsList.d.ts +55 -0
- package/lib/BarsList/index.d.ts +9 -0
- package/lib/BubbleChart/BubbleChart.d.ts +3 -3
- package/lib/BubbleChart/index.d.ts +9 -1
- package/lib/ChartLegend/ChartLegend.d.ts +2 -2
- package/lib/ChartTooltip/ChartTooltip.d.ts +4 -4
- package/lib/CompositeChart/CompositeChart.d.ts +8 -8
- package/lib/CompositeChart/index.d.ts +10 -1
- package/lib/DonutChart/DonutChart.d.ts +12 -12
- package/lib/DonutChart/index.d.ts +9 -1
- package/lib/FunnelChart/FunnelChart.d.ts +9 -9
- package/lib/FunnelChart/index.d.ts +9 -1
- package/lib/Heatmap/Heatmap.d.ts +6 -6
- package/lib/Heatmap/HeatmapWeeks.types.d.ts +1 -1
- package/lib/Heatmap/index.d.ts +7 -1
- package/lib/LineChart/LineChart.d.ts +9 -9
- package/lib/LineChart/index.d.ts +10 -1
- package/lib/PieChart/PieChart.d.ts +13 -13
- package/lib/PieChart/index.d.ts +9 -1
- package/lib/RadarChart/RadarChart.d.ts +8 -8
- package/lib/RadarChart/index.d.ts +9 -1
- package/lib/RadialBarChart/RadialBarChart.d.ts +7 -7
- package/lib/RadialBarChart/index.d.ts +8 -1
- package/lib/ScatterChart/ScatterChart.d.ts +1 -1
- package/lib/ScatterChart/index.d.ts +9 -1
- package/lib/Sparkline/Sparkline.d.ts +6 -6
- package/lib/Sparkline/index.d.ts +8 -1
- package/lib/index.d.mts +1 -0
- package/lib/index.d.ts +1 -0
- package/package.json +6 -6
- package/styles.css +64 -1
- package/styles.layer.css +64 -1
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { BoxProps, ElementProps, Factory, StylesApiProps } from '@mantine/core';
|
|
2
2
|
import { ChartSeries } from '../types';
|
|
3
|
-
export declare function getFilteredChartTooltipPayload(payload: Record<string, any>[], segmentId?: string): Record<string, any>[];
|
|
3
|
+
export declare function getFilteredChartTooltipPayload(payload: readonly Record<string, any>[] | Record<string, any>[], segmentId?: string): Record<string, any>[];
|
|
4
4
|
export type ChartTooltipStylesNames = 'tooltip' | 'tooltipItem' | 'tooltipItemBody' | 'tooltipItemColor' | 'tooltipItemName' | 'tooltipItemData' | 'tooltipLabel' | 'tooltipBody';
|
|
5
5
|
export interface ChartTooltipProps extends BoxProps, StylesApiProps<ChartTooltipFactory>, ElementProps<'div'> {
|
|
6
6
|
/** Main tooltip label */
|
|
7
7
|
label?: React.ReactNode;
|
|
8
8
|
/** Chart data provided by recharts */
|
|
9
|
-
payload: Record<string, any>[] | undefined;
|
|
9
|
+
payload: readonly Record<string, any>[] | Record<string, any>[] | undefined;
|
|
10
10
|
/** Data units, provided by parent component */
|
|
11
11
|
unit?: string;
|
|
12
|
-
/** Tooltip type that determines the content and styles, `area` for LineChart, AreaChart and BarChart, `radial` for DonutChart and PieChart @default
|
|
12
|
+
/** Tooltip type that determines the content and styles, `area` for LineChart, AreaChart and BarChart, `radial` for DonutChart and PieChart @default 'area' */
|
|
13
13
|
type?: 'area' | 'radial' | 'scatter';
|
|
14
14
|
/** Id of the segment to display data for. Only applicable when `type="radial"`. If not set, all data is rendered. */
|
|
15
15
|
segmentId?: string;
|
|
@@ -17,7 +17,7 @@ export interface ChartTooltipProps extends BoxProps, StylesApiProps<ChartTooltip
|
|
|
17
17
|
series?: ChartSeries[];
|
|
18
18
|
/** A function to format values */
|
|
19
19
|
valueFormatter?: (value: number) => string;
|
|
20
|
-
/** Determines whether the color swatch should be visible @default
|
|
20
|
+
/** Determines whether the color swatch should be visible @default true */
|
|
21
21
|
showColor?: boolean;
|
|
22
22
|
}
|
|
23
23
|
export type ChartTooltipFactory = Factory<{
|
|
@@ -17,17 +17,17 @@ export interface CompositeChartProps extends BoxProps, Omit<GridChartBaseProps,
|
|
|
17
17
|
data: Record<string, any>[];
|
|
18
18
|
/** An array of objects with `name` and `color` keys. Determines which data should be consumed from the `data` array. */
|
|
19
19
|
series: CompositeChartSeries[];
|
|
20
|
-
/** Type of the curve @default
|
|
20
|
+
/** Type of the curve @default 'monotone' */
|
|
21
21
|
curveType?: CompositeChartCurveType;
|
|
22
|
-
/** Determines whether dots should be displayed @default
|
|
22
|
+
/** Determines whether dots should be displayed @default true */
|
|
23
23
|
withDots?: boolean;
|
|
24
24
|
/** Props passed down to all dots. Ignored if `withDots={false}` is set. */
|
|
25
25
|
dotProps?: MantineChartDotProps;
|
|
26
26
|
/** Props passed down to all active dots. Ignored if `withDots={false}` is set. */
|
|
27
27
|
activeDotProps?: MantineChartDotProps;
|
|
28
|
-
/** Stroke width for the chart lines @default
|
|
28
|
+
/** Stroke width for the chart lines @default 2 */
|
|
29
29
|
strokeWidth?: number;
|
|
30
|
-
/** Determines whether points with `null` values should be connected @default
|
|
30
|
+
/** Determines whether points with `null` values should be connected @default true */
|
|
31
31
|
connectNulls?: boolean;
|
|
32
32
|
/** Additional components that are rendered inside recharts `AreaChart` component */
|
|
33
33
|
children?: React.ReactNode;
|
|
@@ -37,16 +37,16 @@ export interface CompositeChartProps extends BoxProps, Omit<GridChartBaseProps,
|
|
|
37
37
|
areaProps?: ((series: CompositeChartSeries) => Partial<Omit<AreaProps, 'ref'>>) | Partial<Omit<AreaProps, 'ref'>>;
|
|
38
38
|
/** Props passed down to recharts `Bar` component */
|
|
39
39
|
barProps?: ((series: CompositeChartSeries) => Partial<Omit<BarProps, 'ref'>>) | Partial<Omit<BarProps, 'ref'>>;
|
|
40
|
-
/** Determines whether each point should have associated label @default
|
|
40
|
+
/** Determines whether each point should have associated label @default false */
|
|
41
41
|
withPointLabels?: boolean;
|
|
42
|
-
/** Determines whether a label with bar value should be displayed on top of each bar @default
|
|
42
|
+
/** Determines whether a label with bar value should be displayed on top of each bar @default false */
|
|
43
43
|
withBarValueLabel?: boolean;
|
|
44
|
-
/** Sets minimum height of the bar in px @default
|
|
44
|
+
/** Sets minimum height of the bar in px @default 0 */
|
|
45
45
|
minBarSize?: number;
|
|
46
46
|
/** Maximum bar width in px */
|
|
47
47
|
maxBarWidth?: number;
|
|
48
48
|
/** Props passed down to recharts `AreaChart` component */
|
|
49
|
-
composedChartProps?: React.
|
|
49
|
+
composedChartProps?: React.ComponentProps<typeof ReChartsCompositeChart>;
|
|
50
50
|
}
|
|
51
51
|
export type CompositeChartFactory = Factory<{
|
|
52
52
|
props: CompositeChartProps;
|
|
@@ -1,2 +1,11 @@
|
|
|
1
|
+
import type { CompositeChartCssVariables, CompositeChartCurveType, CompositeChartFactory, CompositeChartProps, CompositeChartSeries, CompositeChartStylesNames } from './CompositeChart';
|
|
1
2
|
export { CompositeChart } from './CompositeChart';
|
|
2
|
-
export type {
|
|
3
|
+
export type { CompositeChartProps, CompositeChartStylesNames, CompositeChartCssVariables, CompositeChartFactory, CompositeChartSeries, CompositeChartCurveType, };
|
|
4
|
+
export declare namespace CompositeChart {
|
|
5
|
+
type Props = CompositeChartProps;
|
|
6
|
+
type StylesNames = CompositeChartStylesNames;
|
|
7
|
+
type CssVariables = CompositeChartCssVariables;
|
|
8
|
+
type Factory = CompositeChartFactory;
|
|
9
|
+
type Series = CompositeChartSeries;
|
|
10
|
+
type CurveType = CompositeChartCurveType;
|
|
11
|
+
}
|
|
@@ -13,9 +13,9 @@ export type DonutChartCssVariables = {
|
|
|
13
13
|
export interface DonutChartProps extends BoxProps, StylesApiProps<DonutChartFactory>, ElementProps<'div'> {
|
|
14
14
|
/** Data used to render chart */
|
|
15
15
|
data: DonutChartCell[];
|
|
16
|
-
/** Determines whether the tooltip should be displayed when one of the section is hovered @default
|
|
16
|
+
/** Determines whether the tooltip should be displayed when one of the section is hovered @default true */
|
|
17
17
|
withTooltip?: boolean;
|
|
18
|
-
/** Tooltip animation duration in ms @default
|
|
18
|
+
/** Tooltip animation duration in ms @default 0 */
|
|
19
19
|
tooltipAnimationDuration?: number;
|
|
20
20
|
/** Props passed down to `Tooltip` recharts component */
|
|
21
21
|
tooltipProps?: Omit<TooltipProps<any, any>, 'ref'>;
|
|
@@ -25,30 +25,30 @@ export interface DonutChartProps extends BoxProps, StylesApiProps<DonutChartFact
|
|
|
25
25
|
strokeColor?: MantineColor;
|
|
26
26
|
/** Controls text color of all labels, by default depends on color scheme */
|
|
27
27
|
labelColor?: MantineColor;
|
|
28
|
-
/** Controls padding between segments @default
|
|
28
|
+
/** Controls padding between segments @default 0 */
|
|
29
29
|
paddingAngle?: number;
|
|
30
|
-
/** Determines whether each segment should have associated label @default
|
|
30
|
+
/** Determines whether each segment should have associated label @default false */
|
|
31
31
|
withLabels?: boolean;
|
|
32
|
-
/** Determines whether segments labels should have lines that connect the segment with the label @default
|
|
32
|
+
/** Determines whether segments labels should have lines that connect the segment with the label @default true */
|
|
33
33
|
withLabelsLine?: boolean;
|
|
34
|
-
/** Controls thickness of the chart segments @default
|
|
34
|
+
/** Controls thickness of the chart segments @default 20 */
|
|
35
35
|
thickness?: number;
|
|
36
|
-
/** Controls chart width and height, height is increased by 40 if `withLabels` prop is set. Cannot be less than `thickness`. @default
|
|
36
|
+
/** Controls chart width and height, height is increased by 40 if `withLabels` prop is set. Cannot be less than `thickness`. @default 80 */
|
|
37
37
|
size?: number;
|
|
38
|
-
/** Controls width of segments stroke @default
|
|
38
|
+
/** Controls width of segments stroke @default 1 */
|
|
39
39
|
strokeWidth?: number;
|
|
40
|
-
/** Controls angle at which chart starts. Set to `180` to render the chart as semicircle. @default
|
|
40
|
+
/** Controls angle at which chart starts. Set to `180` to render the chart as semicircle. @default 0 */
|
|
41
41
|
startAngle?: number;
|
|
42
|
-
/** Controls angle at which charts ends. Set to `0` to render the chart as semicircle. @default
|
|
42
|
+
/** Controls angle at which charts ends. Set to `0` to render the chart as semicircle. @default 360 */
|
|
43
43
|
endAngle?: number;
|
|
44
|
-
/** Determines which data is displayed in the tooltip. `'all'` – display all values, `'segment'` – display only hovered segment. @default
|
|
44
|
+
/** Determines which data is displayed in the tooltip. `'all'` – display all values, `'segment'` – display only hovered segment. @default 'all' */
|
|
45
45
|
tooltipDataSource?: 'segment' | 'all';
|
|
46
46
|
/** Chart label, displayed in the center of the chart */
|
|
47
47
|
chartLabel?: string | number;
|
|
48
48
|
/** Additional elements rendered inside `PieChart` component */
|
|
49
49
|
children?: React.ReactNode;
|
|
50
50
|
/** Props passed down to recharts `PieChart` component */
|
|
51
|
-
pieChartProps?: React.
|
|
51
|
+
pieChartProps?: React.ComponentProps<typeof ReChartsPieChart>;
|
|
52
52
|
/** Type of labels to display, `'value'` by default */
|
|
53
53
|
labelsType?: 'value' | 'percent';
|
|
54
54
|
/** A function to format values inside the tooltip */
|
|
@@ -1,2 +1,10 @@
|
|
|
1
|
+
import type { DonutChartCell, DonutChartCssVariables, DonutChartFactory, DonutChartProps, DonutChartStylesNames } from './DonutChart';
|
|
1
2
|
export { DonutChart } from './DonutChart';
|
|
2
|
-
export type {
|
|
3
|
+
export type { DonutChartProps, DonutChartStylesNames, DonutChartFactory, DonutChartCssVariables, DonutChartCell, };
|
|
4
|
+
export declare namespace DonutChart {
|
|
5
|
+
type Props = DonutChartProps;
|
|
6
|
+
type StylesNames = DonutChartStylesNames;
|
|
7
|
+
type Factory = DonutChartFactory;
|
|
8
|
+
type CssVariables = DonutChartCssVariables;
|
|
9
|
+
type Cell = DonutChartCell;
|
|
10
|
+
}
|
|
@@ -14,9 +14,9 @@ export type FunnelChartCssVariables = {
|
|
|
14
14
|
export interface FunnelChartProps extends BoxProps, StylesApiProps<FunnelChartFactory>, ElementProps<'div'> {
|
|
15
15
|
/** Data used to render chart */
|
|
16
16
|
data: FunnelChartCell[];
|
|
17
|
-
/** Determines whether the tooltip should be displayed when a section is hovered @default
|
|
17
|
+
/** Determines whether the tooltip should be displayed when a section is hovered @default true */
|
|
18
18
|
withTooltip?: boolean;
|
|
19
|
-
/** Tooltip animation duration in ms @default
|
|
19
|
+
/** Tooltip animation duration in ms @default 0 */
|
|
20
20
|
tooltipAnimationDuration?: number;
|
|
21
21
|
/** Props passed down to `Tooltip` recharts component */
|
|
22
22
|
tooltipProps?: Omit<TooltipProps<any, any>, 'ref'>;
|
|
@@ -24,24 +24,24 @@ export interface FunnelChartProps extends BoxProps, StylesApiProps<FunnelChartFa
|
|
|
24
24
|
funnelProps?: Partial<Omit<FunnelProps, 'ref'>>;
|
|
25
25
|
/** Controls color of the segments stroke, by default depends on color scheme */
|
|
26
26
|
strokeColor?: MantineColor;
|
|
27
|
-
/** Controls text color of all labels @default
|
|
27
|
+
/** Controls text color of all labels @default 'white' */
|
|
28
28
|
labelColor?: MantineColor;
|
|
29
|
-
/** Controls chart width and height @default
|
|
29
|
+
/** Controls chart width and height @default 300 */
|
|
30
30
|
size?: number;
|
|
31
|
-
/** Controls width of segments stroke @default
|
|
31
|
+
/** Controls width of segments stroke @default 1 */
|
|
32
32
|
strokeWidth?: number;
|
|
33
|
-
/** Determines whether each segment should have associated label @default
|
|
33
|
+
/** Determines whether each segment should have associated label @default false */
|
|
34
34
|
withLabels?: boolean;
|
|
35
|
-
/** Controls labels position relative to the segment @default
|
|
35
|
+
/** Controls labels position relative to the segment @default 'right' */
|
|
36
36
|
labelsPosition?: 'right' | 'left' | 'inside';
|
|
37
37
|
/** A function to format values inside the tooltip and labels */
|
|
38
38
|
valueFormatter?: (value: number) => string;
|
|
39
|
-
/** Determines which data is displayed in the tooltip. `'all'` – display all values, `'segment'` – display only hovered segment. @default
|
|
39
|
+
/** Determines which data is displayed in the tooltip. `'all'` – display all values, `'segment'` – display only hovered segment. @default 'all' */
|
|
40
40
|
tooltipDataSource?: 'segment' | 'all';
|
|
41
41
|
/** Additional elements rendered inside `FunnelChart` component */
|
|
42
42
|
children?: React.ReactNode;
|
|
43
43
|
/** Props passed down to recharts `FunnelChart` component */
|
|
44
|
-
funnelChartProps?: React.
|
|
44
|
+
funnelChartProps?: React.ComponentProps<typeof RechartsFunnelChart>;
|
|
45
45
|
}
|
|
46
46
|
export type FunnelChartFactory = Factory<{
|
|
47
47
|
props: FunnelChartProps;
|
|
@@ -1,2 +1,10 @@
|
|
|
1
|
+
import type { FunnelChartCell, FunnelChartCssVariables, FunnelChartFactory, FunnelChartProps, FunnelChartStylesNames } from './FunnelChart';
|
|
1
2
|
export { FunnelChart } from './FunnelChart';
|
|
2
|
-
export type {
|
|
3
|
+
export type { FunnelChartProps, FunnelChartStylesNames, FunnelChartFactory, FunnelChartCssVariables, FunnelChartCell, };
|
|
4
|
+
export declare namespace FunnelChart {
|
|
5
|
+
type Props = FunnelChartProps;
|
|
6
|
+
type StylesNames = FunnelChartStylesNames;
|
|
7
|
+
type Factory = FunnelChartFactory;
|
|
8
|
+
type CssVariables = FunnelChartCssVariables;
|
|
9
|
+
type Cell = FunnelChartCell;
|
|
10
|
+
}
|
package/lib/Heatmap/Heatmap.d.ts
CHANGED
|
@@ -13,15 +13,15 @@ export interface HeatmapProps extends BoxProps, StylesApiProps<HeatmapFactory>,
|
|
|
13
13
|
startDate?: Date | string;
|
|
14
14
|
/** Heatmap end date. Current date by default. Date is normalized to UTC midnight of the intended calendar day. */
|
|
15
15
|
endDate?: Date | string;
|
|
16
|
-
/** If set, month labels are displayed @default
|
|
16
|
+
/** If set, month labels are displayed @default false */
|
|
17
17
|
withMonthLabels?: boolean;
|
|
18
18
|
/** Month labels, array of 12 elements, can be used for localization */
|
|
19
19
|
monthLabels?: string[];
|
|
20
|
-
/** If set, weekday labels are displayed @default
|
|
20
|
+
/** If set, weekday labels are displayed @default false */
|
|
21
21
|
withWeekdayLabels?: boolean;
|
|
22
22
|
/** Weekday labels, array of 7 elements, can be used for localization */
|
|
23
23
|
weekdayLabels?: string[];
|
|
24
|
-
/** If set, trailing dates that do not fall into the given `startDate` – `endDate` range are displayed to fill empty space. @default
|
|
24
|
+
/** If set, trailing dates that do not fall into the given `startDate` – `endDate` range are displayed to fill empty space. @default true */
|
|
25
25
|
withOutsideDates?: boolean;
|
|
26
26
|
/** First day of week, 0 – Sunday, 1 – Monday. @default 1 – Monday */
|
|
27
27
|
firstDayOfWeek?: 0 | 1 | 2 | 3 | 4 | 5 | 6;
|
|
@@ -41,13 +41,13 @@ export interface HeatmapProps extends BoxProps, StylesApiProps<HeatmapFactory>,
|
|
|
41
41
|
fontSize?: number;
|
|
42
42
|
/** A function to generate tooltip label based on the hovered rect date and value, required for the tooltip to be visible */
|
|
43
43
|
getTooltipLabel?: (input: HeatmapRectData) => React.ReactNode;
|
|
44
|
-
/** If set, tooltip is displayed on rect hover @default
|
|
44
|
+
/** If set, tooltip is displayed on rect hover @default false */
|
|
45
45
|
withTooltip?: boolean;
|
|
46
46
|
/** Props passed down to the `Tooltip.Floating` component */
|
|
47
47
|
tooltipProps?: Partial<TooltipFloatingProps>;
|
|
48
48
|
/** Props passed down to each rect depending on its date and associated value */
|
|
49
|
-
getRectProps?: (input: HeatmapRectData) => React.
|
|
50
|
-
/** If set, inserts a spacer column between months @default
|
|
49
|
+
getRectProps?: (input: HeatmapRectData) => React.ComponentProps<'rect'>;
|
|
50
|
+
/** If set, inserts a spacer column between months @default false */
|
|
51
51
|
splitMonths?: boolean;
|
|
52
52
|
}
|
|
53
53
|
export type HeatmapFactory = Factory<{
|
|
@@ -24,7 +24,7 @@ export interface HeatmapWeeksSharedProps {
|
|
|
24
24
|
/** Function to set hovered rect state */
|
|
25
25
|
setHoveredRect: (rect: HeatmapRectData | null) => void;
|
|
26
26
|
/** Props passed down to each rect depending on its date and associated value */
|
|
27
|
-
getRectProps?: (input: HeatmapRectData) => React.
|
|
27
|
+
getRectProps?: (input: HeatmapRectData) => React.ComponentProps<'rect'>;
|
|
28
28
|
/** Styles API getter - function that returns styles for a given selector */
|
|
29
29
|
getStyles: (selector: HeatmapStylesNames) => Record<string, any>;
|
|
30
30
|
}
|
package/lib/Heatmap/index.d.ts
CHANGED
|
@@ -1,2 +1,8 @@
|
|
|
1
|
+
import type { HeatmapFactory, HeatmapProps, HeatmapStylesNames } from './Heatmap';
|
|
1
2
|
export { Heatmap } from './Heatmap';
|
|
2
|
-
export type { HeatmapProps,
|
|
3
|
+
export type { HeatmapProps, HeatmapStylesNames, HeatmapFactory };
|
|
4
|
+
export declare namespace Heatmap {
|
|
5
|
+
type Props = HeatmapProps;
|
|
6
|
+
type StylesNames = HeatmapStylesNames;
|
|
7
|
+
type Factory = HeatmapFactory;
|
|
8
|
+
}
|
|
@@ -22,31 +22,31 @@ export interface LineChartProps extends BoxProps, GridChartBaseProps, StylesApiP
|
|
|
22
22
|
data: Record<string, any>[];
|
|
23
23
|
/** An array of objects with `name` and `color` keys. Determines which data should be consumed from the `data` array. */
|
|
24
24
|
series: LineChartSeries[];
|
|
25
|
-
/** Controls styles of the line @default
|
|
25
|
+
/** Controls styles of the line @default 'default' */
|
|
26
26
|
type?: LineChartType;
|
|
27
|
-
/** Data used to generate gradient stops @default
|
|
27
|
+
/** Data used to generate gradient stops @default [{ offset: 0, color: 'red' }, { offset: 100, color: 'blue' }] */
|
|
28
28
|
gradientStops?: LineChartGradientStop[];
|
|
29
|
-
/** Type of the curve @default
|
|
29
|
+
/** Type of the curve @default 'monotone' */
|
|
30
30
|
curveType?: LineChartCurveType;
|
|
31
|
-
/** Controls fill opacity of all lines @default
|
|
31
|
+
/** Controls fill opacity of all lines @default 1 */
|
|
32
32
|
fillOpacity?: number;
|
|
33
|
-
/** Determines whether dots should be displayed @default
|
|
33
|
+
/** Determines whether dots should be displayed @default true */
|
|
34
34
|
withDots?: boolean;
|
|
35
35
|
/** Props passed down to all dots. Ignored if `withDots={false}` is set. */
|
|
36
36
|
dotProps?: MantineChartDotProps;
|
|
37
37
|
/** Props passed down to all active dots. Ignored if `withDots={false}` is set. */
|
|
38
38
|
activeDotProps?: MantineChartDotProps;
|
|
39
|
-
/** Stroke width for the chart lines @default
|
|
39
|
+
/** Stroke width for the chart lines @default 2 */
|
|
40
40
|
strokeWidth?: number;
|
|
41
41
|
/** Props passed down to recharts `LineChart` component */
|
|
42
|
-
lineChartProps?: React.
|
|
43
|
-
/** Determines whether points with `null` values should be connected @default
|
|
42
|
+
lineChartProps?: React.ComponentProps<typeof ReChartsLineChart>;
|
|
43
|
+
/** Determines whether points with `null` values should be connected @default true */
|
|
44
44
|
connectNulls?: boolean;
|
|
45
45
|
/** Additional components that are rendered inside recharts `LineChart` component */
|
|
46
46
|
children?: React.ReactNode;
|
|
47
47
|
/** Props passed down to recharts `Line` component */
|
|
48
48
|
lineProps?: ((series: LineChartSeries) => Partial<Omit<LineProps, 'ref'>>) | Partial<Omit<LineProps, 'ref'>>;
|
|
49
|
-
/** Determines whether each point should have associated label @default
|
|
49
|
+
/** Determines whether each point should have associated label @default false */
|
|
50
50
|
withPointLabels?: boolean;
|
|
51
51
|
}
|
|
52
52
|
export type LineChartFactory = Factory<{
|
package/lib/LineChart/index.d.ts
CHANGED
|
@@ -1,2 +1,11 @@
|
|
|
1
|
+
import type { LineChartCssVariables, LineChartCurveType, LineChartFactory, LineChartProps, LineChartSeries, LineChartStylesNames } from './LineChart';
|
|
1
2
|
export { LineChart } from './LineChart';
|
|
2
|
-
export type { LineChartProps, LineChartCssVariables, LineChartFactory, LineChartSeries, LineChartStylesNames, LineChartCurveType, }
|
|
3
|
+
export type { LineChartProps, LineChartCssVariables, LineChartFactory, LineChartSeries, LineChartStylesNames, LineChartCurveType, };
|
|
4
|
+
export declare namespace LineChart {
|
|
5
|
+
type Props = LineChartProps;
|
|
6
|
+
type CssVariables = LineChartCssVariables;
|
|
7
|
+
type Factory = LineChartFactory;
|
|
8
|
+
type Series = LineChartSeries;
|
|
9
|
+
type StylesNames = LineChartStylesNames;
|
|
10
|
+
type CurveType = LineChartCurveType;
|
|
11
|
+
}
|
|
@@ -14,9 +14,9 @@ export type PieChartCssVariables = {
|
|
|
14
14
|
export interface PieChartProps extends BoxProps, StylesApiProps<PieChartFactory>, ElementProps<'div'> {
|
|
15
15
|
/** Data used to render chart */
|
|
16
16
|
data: PieChartCell[];
|
|
17
|
-
/** Determines whether the tooltip should be displayed when one of the section is hovered @default
|
|
17
|
+
/** Determines whether the tooltip should be displayed when one of the section is hovered @default true */
|
|
18
18
|
withTooltip?: boolean;
|
|
19
|
-
/** Tooltip animation duration in ms @default
|
|
19
|
+
/** Tooltip animation duration in ms @default 0 */
|
|
20
20
|
tooltipAnimationDuration?: number;
|
|
21
21
|
/** Props passed down to `Tooltip` recharts component */
|
|
22
22
|
tooltipProps?: Omit<TooltipProps<any, any>, 'ref'>;
|
|
@@ -26,29 +26,29 @@ export interface PieChartProps extends BoxProps, StylesApiProps<PieChartFactory>
|
|
|
26
26
|
strokeColor?: MantineColor;
|
|
27
27
|
/** Controls text color of all labels, white by default */
|
|
28
28
|
labelColor?: MantineColor;
|
|
29
|
-
/** Controls padding between segments @default
|
|
29
|
+
/** Controls padding between segments @default 0 */
|
|
30
30
|
paddingAngle?: number;
|
|
31
|
-
/** Determines whether each segment should have associated label @default
|
|
31
|
+
/** Determines whether each segment should have associated label @default false */
|
|
32
32
|
withLabels?: boolean;
|
|
33
|
-
/** Determines whether segments labels should have lines that connect the segment with the label @default
|
|
33
|
+
/** Determines whether segments labels should have lines that connect the segment with the label @default true */
|
|
34
34
|
withLabelsLine?: boolean;
|
|
35
|
-
/** Controls chart width and height, height is increased by 40 if `withLabels` prop is set. Cannot be less than `thickness`. @default
|
|
35
|
+
/** Controls chart width and height, height is increased by 40 if `withLabels` prop is set. Cannot be less than `thickness`. @default 80 */
|
|
36
36
|
size?: number;
|
|
37
|
-
/** Controls width of segments stroke @default
|
|
37
|
+
/** Controls width of segments stroke @default 1 */
|
|
38
38
|
strokeWidth?: number;
|
|
39
|
-
/** Controls angle at which chart starts. Set to `180` to render the chart as semicircle. @default
|
|
39
|
+
/** Controls angle at which chart starts. Set to `180` to render the chart as semicircle. @default 0 */
|
|
40
40
|
startAngle?: number;
|
|
41
|
-
/** Controls angle at which charts ends. Set to `0` to render the chart as semicircle. @default
|
|
41
|
+
/** Controls angle at which charts ends. Set to `0` to render the chart as semicircle. @default 360 */
|
|
42
42
|
endAngle?: number;
|
|
43
|
-
/** Determines which data is displayed in the tooltip. `'all'` – display all values, `'segment'` – display only hovered segment. @default
|
|
43
|
+
/** Determines which data is displayed in the tooltip. `'all'` – display all values, `'segment'` – display only hovered segment. @default 'all' */
|
|
44
44
|
tooltipDataSource?: 'segment' | 'all';
|
|
45
45
|
/** Additional elements rendered inside `PieChart` component */
|
|
46
46
|
children?: React.ReactNode;
|
|
47
47
|
/** Props passed down to recharts `PieChart` component */
|
|
48
|
-
pieChartProps?: React.
|
|
49
|
-
/** Controls labels position relative to the segment @default
|
|
48
|
+
pieChartProps?: React.ComponentProps<typeof ReChartsPieChart>;
|
|
49
|
+
/** Controls labels position relative to the segment @default 'outside' */
|
|
50
50
|
labelsPosition?: 'inside' | 'outside';
|
|
51
|
-
/** Type of labels to display @default
|
|
51
|
+
/** Type of labels to display @default 'value' */
|
|
52
52
|
labelsType?: 'value' | 'percent';
|
|
53
53
|
/** A function to format values inside the tooltip */
|
|
54
54
|
valueFormatter?: (value: number) => string;
|
package/lib/PieChart/index.d.ts
CHANGED
|
@@ -1,2 +1,10 @@
|
|
|
1
|
+
import type { PieChartCell, PieChartCssVariables, PieChartFactory, PieChartProps, PieChartStylesNames } from './PieChart';
|
|
1
2
|
export { PieChart } from './PieChart';
|
|
2
|
-
export type {
|
|
3
|
+
export type { PieChartProps, PieChartStylesNames, PieChartCssVariables, PieChartFactory, PieChartCell, };
|
|
4
|
+
export declare namespace PieChart {
|
|
5
|
+
type Props = PieChartProps;
|
|
6
|
+
type StylesNames = PieChartStylesNames;
|
|
7
|
+
type CssVariables = PieChartCssVariables;
|
|
8
|
+
type Factory = PieChartFactory;
|
|
9
|
+
type Cell = PieChartCell;
|
|
10
|
+
}
|
|
@@ -25,18 +25,18 @@ export interface RadarChartProps extends BoxProps, StylesApiProps<RadarChartFact
|
|
|
25
25
|
gridColor?: MantineColor;
|
|
26
26
|
/** Controls color of all text elements. By default, color depends on the color scheme. */
|
|
27
27
|
textColor?: MantineColor;
|
|
28
|
-
/** Determines whether PolarGrid component should be displayed @default
|
|
28
|
+
/** Determines whether PolarGrid component should be displayed @default true. */
|
|
29
29
|
withPolarGrid?: boolean;
|
|
30
|
-
/** Determines whether PolarAngleAxis component should be displayed @default
|
|
30
|
+
/** Determines whether PolarAngleAxis component should be displayed @default true */
|
|
31
31
|
withPolarAngleAxis?: boolean;
|
|
32
|
-
/** Determines whether PolarRadiusAxisProps component should be displayed @default
|
|
32
|
+
/** Determines whether PolarRadiusAxisProps component should be displayed @default false */
|
|
33
33
|
withPolarRadiusAxis?: boolean;
|
|
34
|
-
/** Determines whether Tooltip component should be displayed @default
|
|
34
|
+
/** Determines whether Tooltip component should be displayed @default false */
|
|
35
35
|
withTooltip?: boolean;
|
|
36
36
|
/** Props passed down to recharts Radar component */
|
|
37
37
|
radarProps?: ((series: RadarChartSeries) => Partial<Omit<RadarProps, 'ref'>>) | Partial<Omit<RadarProps, 'ref'>>;
|
|
38
38
|
/** Props passed down to recharts RadarChart component */
|
|
39
|
-
radarChartProps?: React.
|
|
39
|
+
radarChartProps?: React.ComponentProps<typeof ReChartsRadarChart>;
|
|
40
40
|
/** Props passed down to recharts PolarGrid component */
|
|
41
41
|
polarGridProps?: Omit<PolarGridProps, 'ref'>;
|
|
42
42
|
/** Props passed down to recharts PolarAngleAxis component */
|
|
@@ -47,11 +47,11 @@ export interface RadarChartProps extends BoxProps, StylesApiProps<RadarChartFact
|
|
|
47
47
|
legendProps?: Omit<LegendProps, 'ref'>;
|
|
48
48
|
/** Props passed down to recharts Tooltip component */
|
|
49
49
|
tooltipProps?: Omit<TooltipProps<any, any>, 'ref'>;
|
|
50
|
-
/** Tooltip position animation duration in ms @default
|
|
50
|
+
/** Tooltip position animation duration in ms @default 0 */
|
|
51
51
|
tooltipAnimationDuration?: number;
|
|
52
|
-
/** Determines whether the legend should be displayed @default
|
|
52
|
+
/** Determines whether the legend should be displayed @default false */
|
|
53
53
|
withLegend?: boolean;
|
|
54
|
-
/** Determines whether dots should be displayed @default
|
|
54
|
+
/** Determines whether dots should be displayed @default false */
|
|
55
55
|
withDots?: boolean;
|
|
56
56
|
/** Props passed down to all dots. Ignored if `withDots={false}` is set. */
|
|
57
57
|
dotProps?: MantineChartDotProps;
|
|
@@ -1,2 +1,10 @@
|
|
|
1
|
+
import type { RadarChartCssVariables, RadarChartFactory, RadarChartProps, RadarChartSeries, RadarChartStylesNames } from './RadarChart';
|
|
1
2
|
export { RadarChart } from './RadarChart';
|
|
2
|
-
export type { RadarChartProps, RadarChartCssVariables, RadarChartFactory,
|
|
3
|
+
export type { RadarChartProps, RadarChartStylesNames, RadarChartCssVariables, RadarChartFactory, RadarChartSeries, };
|
|
4
|
+
export declare namespace RadarChart {
|
|
5
|
+
type Props = RadarChartProps;
|
|
6
|
+
type StylesNames = RadarChartStylesNames;
|
|
7
|
+
type CssVariables = RadarChartCssVariables;
|
|
8
|
+
type Factory = RadarChartFactory;
|
|
9
|
+
type Series = RadarChartSeries;
|
|
10
|
+
}
|
|
@@ -12,24 +12,24 @@ export interface RadialBarChartProps extends BoxProps, StylesApiProps<RadialBarC
|
|
|
12
12
|
dataKey: string;
|
|
13
13
|
/** Size of bars in px, `20` by default */
|
|
14
14
|
barSize?: number;
|
|
15
|
-
/** Determines whether empty bars area should be visible @default
|
|
15
|
+
/** Determines whether empty bars area should be visible @default true */
|
|
16
16
|
withBackground?: boolean;
|
|
17
|
-
/** Determines whether labels should be displayed @default
|
|
17
|
+
/** Determines whether labels should be displayed @default false */
|
|
18
18
|
withLabels?: boolean;
|
|
19
|
-
/** Determines whether the legend should be displayed @default
|
|
19
|
+
/** Determines whether the legend should be displayed @default false */
|
|
20
20
|
withLegend?: boolean;
|
|
21
|
-
/** Determines whether the tooltip should be displayed when one of the bars is hovered @default
|
|
21
|
+
/** Determines whether the tooltip should be displayed when one of the bars is hovered @default true */
|
|
22
22
|
withTooltip?: boolean;
|
|
23
23
|
/** Color of the empty background, by default depends on the color scheme */
|
|
24
24
|
emptyBackgroundColor?: string;
|
|
25
|
-
/** Angle at which chart starts @default
|
|
25
|
+
/** Angle at which chart starts @default 90 */
|
|
26
26
|
startAngle?: number;
|
|
27
|
-
/** Angle at which chart ends @default
|
|
27
|
+
/** Angle at which chart ends @default -270 */
|
|
28
28
|
endAngle?: number;
|
|
29
29
|
/** Props passed down to recharts RadialBar component */
|
|
30
30
|
radialBarProps?: Omit<RadialBarProps, 'ref'>;
|
|
31
31
|
/** Props passed down to recharts RadarChartChart component */
|
|
32
|
-
radialBarChartProps?: React.
|
|
32
|
+
radialBarChartProps?: React.ComponentProps<typeof ReChartsRadialBarChart>;
|
|
33
33
|
/** Props passed down to recharts Legend component */
|
|
34
34
|
legendProps?: Omit<LegendProps, 'ref'>;
|
|
35
35
|
/** Props passed down to `Tooltip` recharts component */
|
|
@@ -1,2 +1,9 @@
|
|
|
1
|
+
import type { RadialBarChartCssVariables, RadialBarChartFactory, RadialBarChartProps, RadialBarChartStylesNames } from './RadialBarChart';
|
|
1
2
|
export { RadialBarChart } from './RadialBarChart';
|
|
2
|
-
export type {
|
|
3
|
+
export type { RadialBarChartProps, RadialBarChartStylesNames, RadialBarChartCssVariables, RadialBarChartFactory, };
|
|
4
|
+
export declare namespace RadialBarChart {
|
|
5
|
+
type Props = RadialBarChartProps;
|
|
6
|
+
type StylesNames = RadialBarChartStylesNames;
|
|
7
|
+
type CssVariables = RadialBarChartCssVariables;
|
|
8
|
+
type Factory = RadialBarChartFactory;
|
|
9
|
+
}
|
|
@@ -36,7 +36,7 @@ export interface ScatterChartProps extends Omit<GridChartBaseProps, 'dataKey' |
|
|
|
36
36
|
y?: GridChartBaseProps['valueFormatter'];
|
|
37
37
|
};
|
|
38
38
|
/** Props passed down to recharts `ScatterChart` component */
|
|
39
|
-
scatterChartProps?: React.
|
|
39
|
+
scatterChartProps?: React.ComponentProps<typeof ReChartsScatterChart>;
|
|
40
40
|
/** Props passed down to recharts `Scatter` component */
|
|
41
41
|
scatterProps?: Partial<Omit<ScatterProps, 'ref'>>;
|
|
42
42
|
/** If set, displays labels next to points for the given axis */
|
|
@@ -1,2 +1,10 @@
|
|
|
1
|
+
import type { ScatterChartCssVariables, ScatterChartFactory, ScatterChartProps, ScatterChartSeries, ScatterChartStylesNames } from './ScatterChart';
|
|
1
2
|
export { ScatterChart } from './ScatterChart';
|
|
2
|
-
export type { ScatterChartProps, ScatterChartCssVariables, ScatterChartFactory,
|
|
3
|
+
export type { ScatterChartProps, ScatterChartStylesNames, ScatterChartCssVariables, ScatterChartFactory, ScatterChartSeries, };
|
|
4
|
+
export declare namespace ScatterChart {
|
|
5
|
+
type Props = ScatterChartProps;
|
|
6
|
+
type StylesNames = ScatterChartStylesNames;
|
|
7
|
+
type CssVariables = ScatterChartCssVariables;
|
|
8
|
+
type Factory = ScatterChartFactory;
|
|
9
|
+
type Series = ScatterChartSeries;
|
|
10
|
+
}
|
|
@@ -13,19 +13,19 @@ export type SparklineCssVariables = {
|
|
|
13
13
|
export interface SparklineProps extends BoxProps, StylesApiProps<SparklineFactory>, ElementProps<'div'> {
|
|
14
14
|
/** Data used to render the chart */
|
|
15
15
|
data: (number | null)[];
|
|
16
|
-
/** Key of `theme.colors` or any valid CSS color @default
|
|
16
|
+
/** Key of `theme.colors` or any valid CSS color @default theme.primaryColor */
|
|
17
17
|
color?: MantineColor;
|
|
18
|
-
/** Determines whether the chart fill should be a gradient @default
|
|
18
|
+
/** Determines whether the chart fill should be a gradient @default true */
|
|
19
19
|
withGradient?: boolean;
|
|
20
|
-
/** Controls fill opacity of the area @default
|
|
20
|
+
/** Controls fill opacity of the area @default 0.6 */
|
|
21
21
|
fillOpacity?: number;
|
|
22
|
-
/** Type of the curve @default
|
|
22
|
+
/** Type of the curve @default 'linear' */
|
|
23
23
|
curveType?: AreaChartCurveType;
|
|
24
|
-
/** Area stroke width @default
|
|
24
|
+
/** Area stroke width @default 2 */
|
|
25
25
|
strokeWidth?: number;
|
|
26
26
|
/** If set, `color` prop is ignored and chart color is determined by the difference between first and last value. */
|
|
27
27
|
trendColors?: SparklineTrendColors;
|
|
28
|
-
/** Determines whether null values should be connected with other values @default
|
|
28
|
+
/** Determines whether null values should be connected with other values @default true */
|
|
29
29
|
connectNulls?: boolean;
|
|
30
30
|
/** Props passed down to the underlying recharts `Area` component */
|
|
31
31
|
areaProps?: Omit<AreaProps, 'data' | 'dataKey' | 'ref'>;
|
package/lib/Sparkline/index.d.ts
CHANGED
|
@@ -1,2 +1,9 @@
|
|
|
1
|
+
import type { SparklineCssVariables, SparklineFactory, SparklineProps, SparklineStylesNames } from './Sparkline';
|
|
1
2
|
export { Sparkline } from './Sparkline';
|
|
2
|
-
export type {
|
|
3
|
+
export type { SparklineProps, SparklineStylesNames, SparklineCssVariables, SparklineFactory };
|
|
4
|
+
export declare namespace Sparkline {
|
|
5
|
+
type Props = SparklineProps;
|
|
6
|
+
type StylesNames = SparklineStylesNames;
|
|
7
|
+
type CssVariables = SparklineCssVariables;
|
|
8
|
+
type Factory = SparklineFactory;
|
|
9
|
+
}
|
package/lib/index.d.mts
CHANGED
package/lib/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mantine/charts",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "9.0.0-alpha.0",
|
|
4
4
|
"description": "Charts components built with recharts and Mantine",
|
|
5
5
|
"homepage": "https://mantine.dev/",
|
|
6
6
|
"license": "MIT",
|
|
@@ -35,17 +35,17 @@
|
|
|
35
35
|
"directory": "packages/@mantine/charts"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
|
-
"@mantine/core": "
|
|
39
|
-
"@mantine/hooks": "
|
|
38
|
+
"@mantine/core": "9.0.0-alpha.0",
|
|
39
|
+
"@mantine/hooks": "9.0.0-alpha.0",
|
|
40
40
|
"react": "^18.x || ^19.x",
|
|
41
41
|
"react-dom": "^18.x || ^19.x",
|
|
42
|
-
"recharts": ">=2.
|
|
42
|
+
"recharts": ">=3.2.1"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@mantine-tests/core": "workspace:*",
|
|
46
46
|
"@mantine/core": "workspace:*",
|
|
47
47
|
"@mantine/hooks": "workspace:*",
|
|
48
|
-
"react": "19.
|
|
49
|
-
"react-dom": "19.
|
|
48
|
+
"react": "19.2.1",
|
|
49
|
+
"react-dom": "19.2.1"
|
|
50
50
|
}
|
|
51
51
|
}
|