@mantine/charts 7.13.5-alpha.0 → 7.13.5-alpha.2

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.
Files changed (137) hide show
  1. package/cjs/AreaChart/AreaChart.cjs +388 -0
  2. package/cjs/AreaChart/AreaChart.cjs.map +1 -0
  3. package/cjs/AreaChart/AreaGradient.cjs +15 -0
  4. package/cjs/AreaChart/AreaGradient.cjs.map +1 -0
  5. package/cjs/AreaChart/AreaSplit.cjs +31 -0
  6. package/cjs/AreaChart/AreaSplit.cjs.map +1 -0
  7. package/cjs/AreaChart/get-split-offset.cjs +25 -0
  8. package/cjs/AreaChart/get-split-offset.cjs.map +1 -0
  9. package/cjs/BarChart/BarChart.cjs +358 -0
  10. package/cjs/BarChart/BarChart.cjs.map +1 -0
  11. package/cjs/BarChart/BarLabel.cjs +31 -0
  12. package/cjs/BarChart/BarLabel.cjs.map +1 -0
  13. package/cjs/BubbleChart/BubbleChart.cjs +148 -0
  14. package/cjs/BubbleChart/BubbleChart.cjs.map +1 -0
  15. package/cjs/ChartLegend/ChartLegend.cjs +97 -0
  16. package/cjs/ChartLegend/ChartLegend.cjs.map +1 -0
  17. package/cjs/ChartLegend/ChartLegend.module.css.cjs +7 -0
  18. package/cjs/ChartLegend/ChartLegend.module.css.cjs.map +1 -0
  19. package/cjs/ChartTooltip/ChartTooltip.cjs +124 -0
  20. package/cjs/ChartTooltip/ChartTooltip.cjs.map +1 -0
  21. package/cjs/ChartTooltip/ChartTooltip.module.css.cjs +7 -0
  22. package/cjs/ChartTooltip/ChartTooltip.module.css.cjs.map +1 -0
  23. package/cjs/CompositeChart/CompositeChart.cjs +394 -0
  24. package/cjs/CompositeChart/CompositeChart.cjs.map +1 -0
  25. package/cjs/DonutChart/DonutChart.cjs +149 -0
  26. package/cjs/DonutChart/DonutChart.cjs.map +1 -0
  27. package/cjs/DonutChart/DonutChart.module.css.cjs +7 -0
  28. package/cjs/DonutChart/DonutChart.module.css.cjs.map +1 -0
  29. package/cjs/LineChart/LineChart.cjs +353 -0
  30. package/cjs/LineChart/LineChart.cjs.map +1 -0
  31. package/cjs/PieChart/PieChart.cjs +175 -0
  32. package/cjs/PieChart/PieChart.cjs.map +1 -0
  33. package/cjs/PieChart/PieChart.module.css.cjs +7 -0
  34. package/cjs/PieChart/PieChart.module.css.cjs.map +1 -0
  35. package/cjs/PointLabel/PointLabel.cjs +23 -0
  36. package/cjs/PointLabel/PointLabel.cjs.map +1 -0
  37. package/cjs/RadarChart/RadarChart.cjs +113 -0
  38. package/cjs/RadarChart/RadarChart.cjs.map +1 -0
  39. package/cjs/RadarChart/RadarChart.module.css.cjs +7 -0
  40. package/cjs/RadarChart/RadarChart.module.css.cjs.map +1 -0
  41. package/cjs/ScatterChart/ScatterChart.cjs +287 -0
  42. package/cjs/ScatterChart/ScatterChart.cjs.map +1 -0
  43. package/cjs/Sparkline/Sparkline.cjs +103 -0
  44. package/cjs/Sparkline/Sparkline.cjs.map +1 -0
  45. package/cjs/grid-chart.module.css.cjs +7 -0
  46. package/cjs/grid-chart.module.css.cjs.map +1 -0
  47. package/cjs/index.cjs +36 -0
  48. package/cjs/index.cjs.map +1 -0
  49. package/cjs/utils/get-series-labels/get-series-labels.cjs +21 -0
  50. package/cjs/utils/get-series-labels/get-series-labels.cjs.map +1 -0
  51. package/esm/AreaChart/AreaChart.mjs +386 -0
  52. package/esm/AreaChart/AreaChart.mjs.map +1 -0
  53. package/esm/AreaChart/AreaGradient.mjs +13 -0
  54. package/esm/AreaChart/AreaGradient.mjs.map +1 -0
  55. package/esm/AreaChart/AreaSplit.mjs +29 -0
  56. package/esm/AreaChart/AreaSplit.mjs.map +1 -0
  57. package/esm/AreaChart/get-split-offset.mjs +22 -0
  58. package/esm/AreaChart/get-split-offset.mjs.map +1 -0
  59. package/esm/BarChart/BarChart.mjs +356 -0
  60. package/esm/BarChart/BarChart.mjs.map +1 -0
  61. package/esm/BarChart/BarLabel.mjs +29 -0
  62. package/esm/BarChart/BarLabel.mjs.map +1 -0
  63. package/esm/BubbleChart/BubbleChart.mjs +146 -0
  64. package/esm/BubbleChart/BubbleChart.mjs.map +1 -0
  65. package/esm/ChartLegend/ChartLegend.mjs +94 -0
  66. package/esm/ChartLegend/ChartLegend.mjs.map +1 -0
  67. package/esm/ChartLegend/ChartLegend.module.css.mjs +5 -0
  68. package/esm/ChartLegend/ChartLegend.module.css.mjs.map +1 -0
  69. package/esm/ChartTooltip/ChartTooltip.mjs +121 -0
  70. package/esm/ChartTooltip/ChartTooltip.mjs.map +1 -0
  71. package/esm/ChartTooltip/ChartTooltip.module.css.mjs +5 -0
  72. package/esm/ChartTooltip/ChartTooltip.module.css.mjs.map +1 -0
  73. package/esm/CompositeChart/CompositeChart.mjs +392 -0
  74. package/esm/CompositeChart/CompositeChart.mjs.map +1 -0
  75. package/esm/DonutChart/DonutChart.mjs +147 -0
  76. package/esm/DonutChart/DonutChart.mjs.map +1 -0
  77. package/esm/DonutChart/DonutChart.module.css.mjs +5 -0
  78. package/esm/DonutChart/DonutChart.module.css.mjs.map +1 -0
  79. package/esm/LineChart/LineChart.mjs +351 -0
  80. package/esm/LineChart/LineChart.mjs.map +1 -0
  81. package/esm/PieChart/PieChart.mjs +173 -0
  82. package/esm/PieChart/PieChart.mjs.map +1 -0
  83. package/esm/PieChart/PieChart.module.css.mjs +5 -0
  84. package/esm/PieChart/PieChart.module.css.mjs.map +1 -0
  85. package/esm/PointLabel/PointLabel.mjs +21 -0
  86. package/esm/PointLabel/PointLabel.mjs.map +1 -0
  87. package/esm/RadarChart/RadarChart.mjs +111 -0
  88. package/esm/RadarChart/RadarChart.mjs.map +1 -0
  89. package/esm/RadarChart/RadarChart.module.css.mjs +5 -0
  90. package/esm/RadarChart/RadarChart.module.css.mjs.map +1 -0
  91. package/esm/ScatterChart/ScatterChart.mjs +285 -0
  92. package/esm/ScatterChart/ScatterChart.mjs.map +1 -0
  93. package/esm/Sparkline/Sparkline.mjs +101 -0
  94. package/esm/Sparkline/Sparkline.mjs.map +1 -0
  95. package/esm/grid-chart.module.css.mjs +5 -0
  96. package/esm/grid-chart.module.css.mjs.map +1 -0
  97. package/esm/index.mjs +15 -0
  98. package/esm/index.mjs.map +1 -0
  99. package/esm/utils/get-series-labels/get-series-labels.mjs +19 -0
  100. package/esm/utils/get-series-labels/get-series-labels.mjs.map +1 -0
  101. package/lib/AreaChart/AreaChart.d.ts +61 -0
  102. package/lib/AreaChart/AreaGradient.d.ts +11 -0
  103. package/lib/AreaChart/AreaSplit.d.ts +12 -0
  104. package/lib/AreaChart/get-split-offset.d.ts +13 -0
  105. package/lib/AreaChart/index.d.ts +4 -0
  106. package/lib/BarChart/BarChart.d.ts +51 -0
  107. package/lib/BarChart/BarLabel.d.ts +1 -0
  108. package/lib/BarChart/index.d.ts +2 -0
  109. package/lib/BubbleChart/BubbleChart.d.ts +53 -0
  110. package/lib/BubbleChart/index.d.ts +2 -0
  111. package/lib/ChartLegend/ChartLegend.d.ts +28 -0
  112. package/lib/ChartLegend/index.d.ts +2 -0
  113. package/lib/ChartTooltip/ChartTooltip.d.ts +32 -0
  114. package/lib/ChartTooltip/index.d.ts +2 -0
  115. package/lib/CompositeChart/CompositeChart.d.ts +62 -0
  116. package/lib/CompositeChart/index.d.ts +2 -0
  117. package/lib/DonutChart/DonutChart.d.ts +65 -0
  118. package/lib/DonutChart/index.d.ts +2 -0
  119. package/lib/LineChart/LineChart.d.ts +62 -0
  120. package/lib/LineChart/index.d.ts +2 -0
  121. package/lib/PieChart/PieChart.d.ts +66 -0
  122. package/lib/PieChart/index.d.ts +2 -0
  123. package/lib/PointLabel/PointLabel.d.ts +7 -0
  124. package/lib/RadarChart/RadarChart.d.ts +59 -0
  125. package/lib/RadarChart/index.d.ts +2 -0
  126. package/lib/ScatterChart/ScatterChart.d.ts +56 -0
  127. package/lib/ScatterChart/index.d.ts +2 -0
  128. package/lib/Sparkline/Sparkline.d.ts +44 -0
  129. package/lib/Sparkline/index.d.ts +2 -0
  130. package/lib/index.d.mts +13 -0
  131. package/lib/index.d.ts +13 -0
  132. package/lib/types.d.ts +69 -0
  133. package/lib/utils/get-series-labels/get-series-labels.d.ts +4 -0
  134. package/lib/utils/index.d.ts +1 -0
  135. package/package.json +6 -6
  136. package/styles.css +6 -43
  137. package/styles.layer.css +6 -43
@@ -0,0 +1,2 @@
1
+ export { RadarChart } from './RadarChart';
2
+ export type { RadarChartProps, RadarChartCssVariables, RadarChartFactory, RadarChartStylesNames, RadarChartSeries, } from './RadarChart';
@@ -0,0 +1,56 @@
1
+ import { ScatterChart as ReChartsScatterChart, ScatterProps } from 'recharts';
2
+ import { BoxProps, ElementProps, Factory, MantineColor, StylesApiProps } from '@mantine/core';
3
+ import { ChartLegendStylesNames } from '../ChartLegend';
4
+ import { ChartTooltipStylesNames } from '../ChartTooltip';
5
+ import { BaseChartStylesNames, GridChartBaseProps } from '../types';
6
+ export interface ScatterChartSeries {
7
+ color: MantineColor;
8
+ name: string;
9
+ data: Record<string, number>[];
10
+ }
11
+ export type ScatterChartStylesNames = 'scatter' | BaseChartStylesNames | ChartLegendStylesNames | ChartTooltipStylesNames;
12
+ export type ScatterChartCssVariables = {
13
+ root: '--chart-text-color' | '--chart-grid-color';
14
+ };
15
+ export interface ScatterChartProps extends Omit<GridChartBaseProps, 'dataKey' | 'data' | 'unit' | 'valueFormatter'>, BoxProps, StylesApiProps<ScatterChartFactory>, ElementProps<'div'> {
16
+ /** Keys that should be used to retrieve data from the data array on x and y axis */
17
+ dataKey: {
18
+ x: string;
19
+ y: string;
20
+ };
21
+ /** Data that is used to build the chart */
22
+ data: ScatterChartSeries[];
23
+ /** Units displayed after value on axis and inside the tooltip */
24
+ unit?: {
25
+ x?: string;
26
+ y?: string;
27
+ };
28
+ /** Labels that should be used instead of keys names in the tooltip */
29
+ labels?: {
30
+ x?: string;
31
+ y?: string;
32
+ };
33
+ /** A function to format values on x/y axis and in the tooltip */
34
+ valueFormatter?: GridChartBaseProps['valueFormatter'] | {
35
+ x?: GridChartBaseProps['valueFormatter'];
36
+ y?: GridChartBaseProps['valueFormatter'];
37
+ };
38
+ /** Props passed down to recharts `ScatterChart` component */
39
+ scatterChartProps?: React.ComponentPropsWithoutRef<typeof ReChartsScatterChart>;
40
+ /** Props passed down to recharts `Scatter` component */
41
+ scatterProps?: Partial<Omit<ScatterProps, 'ref'>>;
42
+ /** If set, displays labels next to points for the given axis */
43
+ pointLabels?: 'x' | 'y';
44
+ }
45
+ export type ScatterChartFactory = Factory<{
46
+ props: ScatterChartProps;
47
+ ref: HTMLDivElement;
48
+ stylesNames: ScatterChartStylesNames;
49
+ vars: ScatterChartCssVariables;
50
+ }>;
51
+ export declare const ScatterChart: import("@mantine/core").MantineComponent<{
52
+ props: ScatterChartProps;
53
+ ref: HTMLDivElement;
54
+ stylesNames: ScatterChartStylesNames;
55
+ vars: ScatterChartCssVariables;
56
+ }>;
@@ -0,0 +1,2 @@
1
+ export { ScatterChart } from './ScatterChart';
2
+ export type { ScatterChartProps, ScatterChartCssVariables, ScatterChartFactory, ScatterChartStylesNames, ScatterChartSeries, } from './ScatterChart';
@@ -0,0 +1,44 @@
1
+ import { AreaProps } from 'recharts';
2
+ import { BoxProps, ElementProps, Factory, MantineColor, StylesApiProps } from '@mantine/core';
3
+ import { AreaChartCurveType } from '../AreaChart';
4
+ export interface SparklineTrendColors {
5
+ positive: MantineColor;
6
+ negative: MantineColor;
7
+ neutral?: MantineColor;
8
+ }
9
+ export type SparklineStylesNames = 'root';
10
+ export type SparklineCssVariables = {
11
+ root: '--chart-color';
12
+ };
13
+ export interface SparklineProps extends BoxProps, StylesApiProps<SparklineFactory>, ElementProps<'div'> {
14
+ /** Data used to render the chart */
15
+ data: (number | null)[];
16
+ /** Key of `theme.colors` or any valid CSS color, `theme.primaryColor` by default */
17
+ color?: MantineColor;
18
+ /** Determines whether the chart fill should be a gradient, `true` by default */
19
+ withGradient?: boolean;
20
+ /** Controls fill opacity of the area, `0.6` by default */
21
+ fillOpacity?: number;
22
+ /** Type of the curve, `'linear'` by default */
23
+ curveType?: AreaChartCurveType;
24
+ /** Area stroke width, `2` by default */
25
+ strokeWidth?: number;
26
+ /** If set, `color` prop is ignored and chart color is determined by the difference between first and last value. */
27
+ trendColors?: SparklineTrendColors;
28
+ /** Determines whether null values should be connected with other values, `true` by default */
29
+ connectNulls?: boolean;
30
+ /** Props passed down to the underlying recharts `Area` component */
31
+ areaProps?: Omit<AreaProps, 'data' | 'dataKey' | 'ref'>;
32
+ }
33
+ export type SparklineFactory = Factory<{
34
+ props: SparklineProps;
35
+ ref: HTMLDivElement;
36
+ stylesNames: SparklineStylesNames;
37
+ vars: SparklineCssVariables;
38
+ }>;
39
+ export declare const Sparkline: import("@mantine/core").MantineComponent<{
40
+ props: SparklineProps;
41
+ ref: HTMLDivElement;
42
+ stylesNames: SparklineStylesNames;
43
+ vars: SparklineCssVariables;
44
+ }>;
@@ -0,0 +1,2 @@
1
+ export { Sparkline } from './Sparkline';
2
+ export type { SparklineCssVariables, SparklineFactory, SparklineProps, SparklineStylesNames, } from './Sparkline';
@@ -0,0 +1,13 @@
1
+ export * from './ChartTooltip/index.js';
2
+ export * from './ChartLegend/index.js';
3
+ export * from './AreaChart/index.js';
4
+ export * from './BarChart/index.js';
5
+ export * from './LineChart/index.js';
6
+ export * from './Sparkline/index.js';
7
+ export * from './DonutChart/index.js';
8
+ export * from './PieChart/index.js';
9
+ export * from './RadarChart/index.js';
10
+ export * from './ScatterChart/index.js';
11
+ export * from './BubbleChart/index.js';
12
+ export * from './CompositeChart/index.js';
13
+ export * from './types';
package/lib/index.d.ts ADDED
@@ -0,0 +1,13 @@
1
+ export * from './ChartTooltip/index.js';
2
+ export * from './ChartLegend/index.js';
3
+ export * from './AreaChart/index.js';
4
+ export * from './BarChart/index.js';
5
+ export * from './LineChart/index.js';
6
+ export * from './Sparkline/index.js';
7
+ export * from './DonutChart/index.js';
8
+ export * from './PieChart/index.js';
9
+ export * from './RadarChart/index.js';
10
+ export * from './ScatterChart/index.js';
11
+ export * from './BubbleChart/index.js';
12
+ export * from './CompositeChart/index.js';
13
+ export * from './types';
package/lib/types.d.ts ADDED
@@ -0,0 +1,69 @@
1
+ import type { CartesianGridProps, LabelProps, LegendProps, ReferenceLineProps, TooltipProps, XAxisProps, YAxisProps } from 'recharts';
2
+ import type { MantineColor } from '@mantine/core';
3
+ export interface ChartReferenceLineProps extends Omit<ReferenceLineProps, 'ref' | 'label'> {
4
+ color?: MantineColor;
5
+ label?: string;
6
+ labelPosition?: LabelProps['position'];
7
+ }
8
+ export interface ChartSeries {
9
+ name: string;
10
+ color?: MantineColor;
11
+ label?: string;
12
+ yAxisId?: string;
13
+ }
14
+ export type BaseChartStylesNames = 'root' | 'container' | 'axis' | 'grid' | 'referenceLine' | 'axisLabel';
15
+ export type ChartData = Record<string, any>[];
16
+ export interface GridChartBaseProps {
17
+ /** Data used to display chart */
18
+ data: ChartData;
19
+ /** Key of the `data` object for x-axis values */
20
+ dataKey: string;
21
+ /** Reference lines that should be displayed on the chart */
22
+ referenceLines?: ChartReferenceLineProps[];
23
+ /** Determines whether x-axis should be displayed, `true` by default */
24
+ withXAxis?: boolean;
25
+ /** Determines whether y-axis should be displayed, `true` by default */
26
+ withYAxis?: boolean;
27
+ /** Props passed down to the `XAxis` recharts component */
28
+ xAxisProps?: Omit<XAxisProps, 'ref'>;
29
+ /** Props passed down to the `YAxis` recharts component */
30
+ yAxisProps?: Omit<YAxisProps, 'ref'>;
31
+ /** Props passed down to the `YAxis` recharts component rendered on the right side */
32
+ rightYAxisProps?: Omit<YAxisProps, 'ref'>;
33
+ /** Props passed down to the `CartesianGrid` component */
34
+ gridProps?: Omit<CartesianGridProps, 'ref'>;
35
+ /** Specifies which axis should have tick line, `'y'` by default */
36
+ tickLine?: 'x' | 'y' | 'xy' | 'none';
37
+ /** Dash array for the grid lines and cursor, `'5 5'` by default */
38
+ strokeDasharray?: string | number;
39
+ /** Specifies which lines should be displayed in the grid, `'x'` by default */
40
+ gridAxis?: 'x' | 'y' | 'xy' | 'none';
41
+ /** Unit displayed next to each tick in y-axis */
42
+ unit?: string;
43
+ /** Tooltip position animation duration in ms, `0` by default */
44
+ tooltipAnimationDuration?: number;
45
+ /** Props passed down to the `Legend` component */
46
+ legendProps?: Omit<LegendProps, 'ref'>;
47
+ /** Props passed down to the `Tooltip` component */
48
+ tooltipProps?: Omit<TooltipProps<any, any>, 'ref'>;
49
+ /** Determines whether chart legend should be displayed, `false` by default */
50
+ withLegend?: boolean;
51
+ /** Determines whether chart tooltip should be displayed, `true` by default */
52
+ withTooltip?: boolean;
53
+ /** Color of the text displayed inside the chart, `'dimmed'` by default */
54
+ textColor?: MantineColor;
55
+ /** Color of the grid and cursor lines, by default depends on color scheme */
56
+ gridColor?: MantineColor;
57
+ /** Chart orientation, `'horizontal'` by default */
58
+ orientation?: 'horizontal' | 'vertical';
59
+ /** A function to format values on Y axis and inside the tooltip */
60
+ valueFormatter?: (value: number) => string;
61
+ /** A label to display below the x-axis */
62
+ xAxisLabel?: string;
63
+ /** A label to display next to the y-axis */
64
+ yAxisLabel?: string;
65
+ /** A label to display next to the right y-axis */
66
+ rightYAxisLabel?: string;
67
+ /** Determines whether additional y-axis should be displayed on the right side of the chart, `false` by default */
68
+ withRightYAxis?: boolean;
69
+ }
@@ -0,0 +1,4 @@
1
+ import { ChartSeries } from '../../types';
2
+ type ChartSeriesLabels = Record<string, string | undefined>;
3
+ export declare function getSeriesLabels(series: ChartSeries[] | undefined): ChartSeriesLabels;
4
+ export {};
@@ -0,0 +1 @@
1
+ export { getSeriesLabels } from './get-series-labels/get-series-labels';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mantine/charts",
3
- "version": "7.13.5-alpha.0",
3
+ "version": "7.13.5-alpha.2",
4
4
  "description": "Charts components built with recharts and Mantine",
5
5
  "homepage": "https://mantine.dev/",
6
6
  "license": "MIT",
@@ -35,11 +35,11 @@
35
35
  "directory": "packages/@mantine/charts"
36
36
  },
37
37
  "peerDependencies": {
38
- "@mantine/core": "7.13.5-alpha.0",
39
- "@mantine/hooks": "7.13.5-alpha.0",
40
- "react": "^18.2.0",
41
- "react-dom": "^18.2.0",
42
- "recharts": "^2.10.3"
38
+ "@mantine/core": "7.13.5-alpha.2",
39
+ "@mantine/hooks": "7.13.5-alpha.2",
40
+ "react": "^18.x || ^19.x",
41
+ "react-dom": "^18.x || ^19.x",
42
+ "recharts": "^2.13.3"
43
43
  },
44
44
  "devDependencies": {
45
45
  "@mantine-tests/core": "workspace:*",
package/styles.css CHANGED
@@ -29,11 +29,6 @@
29
29
  padding-top: var(--mantine-spacing-sm);
30
30
  }
31
31
 
32
- .m_b30369b5 {
33
- width: calc(0.75rem * var(--mantine-scale));
34
- height: calc(0.75rem * var(--mantine-scale));
35
- }
36
-
37
32
  .m_3de8964e {
38
33
  font-size: var(--mantine-font-size-sm);
39
34
  display: flex;
@@ -126,6 +121,8 @@
126
121
  .m_a50f3e58 {
127
122
  display: block;
128
123
  width: 100%;
124
+
125
+ --chart-bar-label-color: var(--mantine-color-dimmed);
129
126
  }
130
127
 
131
128
  .m_a50f3e58 svg {
@@ -147,6 +144,10 @@
147
144
  color: var(--chart-text-color, var(--mantine-color-dimmed));
148
145
  }
149
146
 
147
+ .m_a50f3e58:where([data-orientation='vertical']) {
148
+ --chart-bar-label-color: var(--mantine-color-white);
149
+ }
150
+
150
151
  .m_af9188cb {
151
152
  height: 100%;
152
153
  width: 100%;
@@ -226,41 +227,3 @@
226
227
  height: 100%;
227
228
  width: 100%;
228
229
  }
229
-
230
- :where([data-mantine-color-scheme='light']) .m_cd2bd9e5 {
231
- --chart-empty-background: var(--mantine-color-gray-1);
232
- --chart-cursor-color: var(--mantine-color-gray-4);
233
- }
234
- :where([data-mantine-color-scheme='dark']) .m_cd2bd9e5 {
235
- --chart-empty-background: var(--mantine-color-dark-6);
236
- --chart-cursor-color: var(--mantine-color-dark-4);
237
- }
238
-
239
- .m_6bcc3420 {
240
- padding: var(--mantine-spacing-md);
241
- box-shadow: var(--mantine-shadow-md);
242
- min-width: calc(12.5rem * var(--mantine-scale));
243
- font-size: var(--mantine-font-size-sm);
244
- display: flex;
245
- align-items: center;
246
- justify-content: space-between;
247
- }
248
-
249
- :where([data-mantine-color-scheme='light']) .m_6bcc3420 {
250
- border: 1px solid var(--mantine-color-gray-2);
251
- }
252
-
253
- :where([data-mantine-color-scheme='dark']) .m_6bcc3420 {
254
- border: 1px solid var(--mantine-color-dark-4);
255
- }
256
-
257
- .m_80d531e7 {
258
- min-height: var(--chart-size, auto);
259
- height: var(--chart-size, auto);
260
- width: var(--chart-size, auto);
261
- min-width: var(--chart-size, auto);
262
- }
263
-
264
- .m_80d531e7 :where(*) {
265
- outline: 0;
266
- }
package/styles.layer.css CHANGED
@@ -29,11 +29,6 @@
29
29
  padding-top: var(--mantine-spacing-sm);
30
30
  }
31
31
 
32
- .m_b30369b5 {
33
- width: calc(0.75rem * var(--mantine-scale));
34
- height: calc(0.75rem * var(--mantine-scale));
35
- }
36
-
37
32
  .m_3de8964e {
38
33
  font-size: var(--mantine-font-size-sm);
39
34
  display: flex;
@@ -126,6 +121,8 @@
126
121
  .m_a50f3e58 {
127
122
  display: block;
128
123
  width: 100%;
124
+
125
+ --chart-bar-label-color: var(--mantine-color-dimmed);
129
126
  }
130
127
 
131
128
  .m_a50f3e58 svg {
@@ -147,6 +144,10 @@
147
144
  color: var(--chart-text-color, var(--mantine-color-dimmed));
148
145
  }
149
146
 
147
+ .m_a50f3e58:where([data-orientation='vertical']) {
148
+ --chart-bar-label-color: var(--mantine-color-white);
149
+ }
150
+
150
151
  .m_af9188cb {
151
152
  height: 100%;
152
153
  width: 100%;
@@ -226,42 +227,4 @@
226
227
  height: 100%;
227
228
  width: 100%;
228
229
  }
229
-
230
- :where([data-mantine-color-scheme='light']) .m_cd2bd9e5 {
231
- --chart-empty-background: var(--mantine-color-gray-1);
232
- --chart-cursor-color: var(--mantine-color-gray-4);
233
- }
234
- :where([data-mantine-color-scheme='dark']) .m_cd2bd9e5 {
235
- --chart-empty-background: var(--mantine-color-dark-6);
236
- --chart-cursor-color: var(--mantine-color-dark-4);
237
- }
238
-
239
- .m_6bcc3420 {
240
- padding: var(--mantine-spacing-md);
241
- box-shadow: var(--mantine-shadow-md);
242
- min-width: calc(12.5rem * var(--mantine-scale));
243
- font-size: var(--mantine-font-size-sm);
244
- display: flex;
245
- align-items: center;
246
- justify-content: space-between;
247
- }
248
-
249
- :where([data-mantine-color-scheme='light']) .m_6bcc3420 {
250
- border: 1px solid var(--mantine-color-gray-2);
251
- }
252
-
253
- :where([data-mantine-color-scheme='dark']) .m_6bcc3420 {
254
- border: 1px solid var(--mantine-color-dark-4);
255
- }
256
-
257
- .m_80d531e7 {
258
- min-height: var(--chart-size, auto);
259
- height: var(--chart-size, auto);
260
- width: var(--chart-size, auto);
261
- min-width: var(--chart-size, auto);
262
- }
263
-
264
- .m_80d531e7 :where(*) {
265
- outline: 0;
266
- }
267
230
  }