@baseline-ui/charts 3.2.1 → 3.3.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/index.d.mts +5 -5
- package/dist/index.d.ts +5 -5
- package/package.json +5 -5
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import { NumberFormatProps } from '@baseline-ui/core';
|
|
1
|
+
import * as react from 'react';
|
|
3
2
|
import { CSSProperties } from 'react';
|
|
3
|
+
import { NumberFormatProps } from '@baseline-ui/core';
|
|
4
4
|
import { LineProps } from 'recharts';
|
|
5
5
|
|
|
6
6
|
/*
|
|
@@ -121,7 +121,7 @@ interface BarChartProps extends CartesianChartBaseProps {
|
|
|
121
121
|
barRadius?: number;
|
|
122
122
|
}
|
|
123
123
|
|
|
124
|
-
declare function BarChart({ data, bars, xAxisDataKey, variant, barSize, barGap, barRadius, width, height, showTooltip, showLegend, showGrid, showXAxis, showYAxis, numberFormatterProps, className, style, dir, ...ariaProps }: BarChartProps):
|
|
124
|
+
declare function BarChart({ data, bars, xAxisDataKey, variant, barSize, barGap, barRadius, width, height, showTooltip, showLegend, showGrid, showXAxis, showYAxis, numberFormatterProps, className, style, dir, ...ariaProps }: BarChartProps): react.JSX.Element;
|
|
125
125
|
|
|
126
126
|
type CurveType = NonNullable<LineProps["type"]>;
|
|
127
127
|
interface LineChartLine {
|
|
@@ -154,7 +154,7 @@ interface LineChartProps extends CartesianChartBaseProps {
|
|
|
154
154
|
variant?: LineChartVariant;
|
|
155
155
|
}
|
|
156
156
|
|
|
157
|
-
declare function LineChart({ data, lines, xAxisDataKey, variant, width, height, showTooltip, showLegend, showGrid, showXAxis, showYAxis, numberFormatterProps, className, style, dir, ...ariaProps }: LineChartProps):
|
|
157
|
+
declare function LineChart({ data, lines, xAxisDataKey, variant, width, height, showTooltip, showLegend, showGrid, showXAxis, showYAxis, numberFormatterProps, className, style, dir, ...ariaProps }: LineChartProps): react.JSX.Element;
|
|
158
158
|
|
|
159
159
|
interface PieChartSlice {
|
|
160
160
|
/**
|
|
@@ -182,6 +182,6 @@ interface PieChartProps extends ChartBaseProps {
|
|
|
182
182
|
showLabels?: boolean;
|
|
183
183
|
}
|
|
184
184
|
|
|
185
|
-
declare function PieChart({ data, width, height, innerRadius, outerRadius, showTooltip, showLegend, showLabels, className, style, dir, ...ariaProps }: PieChartProps):
|
|
185
|
+
declare function PieChart({ data, width, height, innerRadius, outerRadius, showTooltip, showLegend, showLabels, className, style, dir, ...ariaProps }: PieChartProps): react.JSX.Element;
|
|
186
186
|
|
|
187
187
|
export { BarChart, type BarChartBar, type BarChartProps, type BarChartVariant, LineChart, type LineChartLine, type LineChartProps, type LineChartVariant, PieChart, type PieChartProps, type PieChartSlice };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import { NumberFormatProps } from '@baseline-ui/core';
|
|
1
|
+
import * as react from 'react';
|
|
3
2
|
import { CSSProperties } from 'react';
|
|
3
|
+
import { NumberFormatProps } from '@baseline-ui/core';
|
|
4
4
|
import { LineProps } from 'recharts';
|
|
5
5
|
|
|
6
6
|
/*
|
|
@@ -121,7 +121,7 @@ interface BarChartProps extends CartesianChartBaseProps {
|
|
|
121
121
|
barRadius?: number;
|
|
122
122
|
}
|
|
123
123
|
|
|
124
|
-
declare function BarChart({ data, bars, xAxisDataKey, variant, barSize, barGap, barRadius, width, height, showTooltip, showLegend, showGrid, showXAxis, showYAxis, numberFormatterProps, className, style, dir, ...ariaProps }: BarChartProps):
|
|
124
|
+
declare function BarChart({ data, bars, xAxisDataKey, variant, barSize, barGap, barRadius, width, height, showTooltip, showLegend, showGrid, showXAxis, showYAxis, numberFormatterProps, className, style, dir, ...ariaProps }: BarChartProps): react.JSX.Element;
|
|
125
125
|
|
|
126
126
|
type CurveType = NonNullable<LineProps["type"]>;
|
|
127
127
|
interface LineChartLine {
|
|
@@ -154,7 +154,7 @@ interface LineChartProps extends CartesianChartBaseProps {
|
|
|
154
154
|
variant?: LineChartVariant;
|
|
155
155
|
}
|
|
156
156
|
|
|
157
|
-
declare function LineChart({ data, lines, xAxisDataKey, variant, width, height, showTooltip, showLegend, showGrid, showXAxis, showYAxis, numberFormatterProps, className, style, dir, ...ariaProps }: LineChartProps):
|
|
157
|
+
declare function LineChart({ data, lines, xAxisDataKey, variant, width, height, showTooltip, showLegend, showGrid, showXAxis, showYAxis, numberFormatterProps, className, style, dir, ...ariaProps }: LineChartProps): react.JSX.Element;
|
|
158
158
|
|
|
159
159
|
interface PieChartSlice {
|
|
160
160
|
/**
|
|
@@ -182,6 +182,6 @@ interface PieChartProps extends ChartBaseProps {
|
|
|
182
182
|
showLabels?: boolean;
|
|
183
183
|
}
|
|
184
184
|
|
|
185
|
-
declare function PieChart({ data, width, height, innerRadius, outerRadius, showTooltip, showLegend, showLabels, className, style, dir, ...ariaProps }: PieChartProps):
|
|
185
|
+
declare function PieChart({ data, width, height, innerRadius, outerRadius, showTooltip, showLegend, showLabels, className, style, dir, ...ariaProps }: PieChartProps): react.JSX.Element;
|
|
186
186
|
|
|
187
187
|
export { BarChart, type BarChartBar, type BarChartProps, type BarChartVariant, LineChart, type LineChartLine, type LineChartProps, type LineChartVariant, PieChart, type PieChartProps, type PieChartSlice };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@baseline-ui/charts",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.3.0",
|
|
4
4
|
"description": "Chart components for Baseline UI",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -10,12 +10,12 @@
|
|
|
10
10
|
"dist"
|
|
11
11
|
],
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@baseline-ui/core": "3.
|
|
14
|
-
"@baseline-ui/tokens": "3.
|
|
13
|
+
"@baseline-ui/core": "3.3.0",
|
|
14
|
+
"@baseline-ui/tokens": "3.3.0"
|
|
15
15
|
},
|
|
16
16
|
"peerDependencies": {
|
|
17
|
-
"react": "^18.0.0",
|
|
18
|
-
"react-dom": "^18.0.0",
|
|
17
|
+
"react": "^18.0.0 || ^19.0.0",
|
|
18
|
+
"react-dom": "^18.0.0 || ^19.0.0",
|
|
19
19
|
"recharts": "^3.8.1"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|