@yamada-ui/charts 2.0.0-next-20240619220221 → 2.0.0-next-20240701004015
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/chart-utils.d.mts +1 -1
- package/dist/chart-utils.d.ts +1 -1
- package/dist/use-area-chart.d.mts +5 -5
- package/dist/use-area-chart.d.ts +5 -5
- package/dist/use-bar-chart.d.mts +5 -5
- package/dist/use-bar-chart.d.ts +5 -5
- package/dist/use-line-chart.d.mts +5 -5
- package/dist/use-line-chart.d.ts +5 -5
- package/dist/use-pie-chart.d.mts +5 -5
- package/dist/use-pie-chart.d.ts +5 -5
- package/dist/use-radar-chart.d.mts +5 -5
- package/dist/use-radar-chart.d.ts +5 -5
- package/package.json +3 -3
package/dist/chart-utils.d.mts
CHANGED
@@ -2,7 +2,7 @@ import { StyledTheme } from '@yamada-ui/core';
|
|
2
2
|
import { Dict } from '@yamada-ui/utils';
|
3
3
|
|
4
4
|
declare const getClassName: (...styles: (Dict | string | undefined)[]) => (theme: StyledTheme) => string;
|
5
|
-
declare const getComponentProps: <T extends Dict, K extends keyof T>([obj, keys]: [T, K[]], ...props: (Dict | string | undefined)[]) => <P extends boolean = false>(theme: StyledTheme, isContain?: P) => P extends false ? [{ [P_1 in K]: T[P_1]; }, string] : { [
|
5
|
+
declare const getComponentProps: <T extends Dict, K extends keyof T>([obj, keys]: [T, K[]], ...props: (Dict | string | undefined)[]) => <P extends boolean = false>(theme: StyledTheme, isContain?: P) => P extends false ? [{ [P_1 in K]: T[P_1]; }, string] : { [P_1 in K]: T[P_1]; } & {
|
6
6
|
className: string;
|
7
7
|
};
|
8
8
|
|
package/dist/chart-utils.d.ts
CHANGED
@@ -2,7 +2,7 @@ import { StyledTheme } from '@yamada-ui/core';
|
|
2
2
|
import { Dict } from '@yamada-ui/utils';
|
3
3
|
|
4
4
|
declare const getClassName: (...styles: (Dict | string | undefined)[]) => (theme: StyledTheme) => string;
|
5
|
-
declare const getComponentProps: <T extends Dict, K extends keyof T>([obj, keys]: [T, K[]], ...props: (Dict | string | undefined)[]) => <P extends boolean = false>(theme: StyledTheme, isContain?: P) => P extends false ? [{ [P_1 in K]: T[P_1]; }, string] : { [
|
5
|
+
declare const getComponentProps: <T extends Dict, K extends keyof T>([obj, keys]: [T, K[]], ...props: (Dict | string | undefined)[]) => <P extends boolean = false>(theme: StyledTheme, isContain?: P) => P extends false ? [{ [P_1 in K]: T[P_1]; }, string] : { [P_1 in K]: T[P_1]; } & {
|
6
6
|
className: string;
|
7
7
|
};
|
8
8
|
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import * as react from 'react';
|
2
|
-
import * as _yamada_ui_core from '@yamada-ui/core';
|
3
|
-
import { CSSUIObject } from '@yamada-ui/core';
|
4
2
|
import * as _yamada_ui_utils from '@yamada-ui/utils';
|
5
3
|
import { Dict } from '@yamada-ui/utils';
|
4
|
+
import * as _yamada_ui_core from '@yamada-ui/core';
|
5
|
+
import { CSSUIObject } from '@yamada-ui/core';
|
6
6
|
import * as recharts_types_chart_generateCategoricalChart from 'recharts/types/chart/generateCategoricalChart';
|
7
7
|
import * as Recharts from 'recharts';
|
8
8
|
import { AreaGradientProps } from './area-chart-gradient.mjs';
|
@@ -111,10 +111,10 @@ declare const useAreaChart: ({ data, series, type, layoutType, withGradient: wit
|
|
111
111
|
}, Omit<Recharts.AreaProps, "ref">>;
|
112
112
|
getAreaGradientProps: ChartPropGetter<"div", Partial<AreaGradientProps>, AreaGradientProps>;
|
113
113
|
areaVars: {
|
114
|
-
__prefix?: string
|
114
|
+
__prefix?: string;
|
115
115
|
name: string;
|
116
|
-
token?:
|
117
|
-
value?:
|
116
|
+
token?: keyof Omit<_yamada_ui_core.Theme, "components" | "colorSchemes" | "themeSchemes">;
|
117
|
+
value?: _yamada_ui_core.Token<number | _yamada_ui_utils.StringLiteral>;
|
118
118
|
}[];
|
119
119
|
setHighlightedArea: react.Dispatch<react.SetStateAction<string | null>>;
|
120
120
|
};
|
package/dist/use-area-chart.d.ts
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
import * as react from 'react';
|
2
|
-
import * as _yamada_ui_core from '@yamada-ui/core';
|
3
|
-
import { CSSUIObject } from '@yamada-ui/core';
|
4
2
|
import * as _yamada_ui_utils from '@yamada-ui/utils';
|
5
3
|
import { Dict } from '@yamada-ui/utils';
|
4
|
+
import * as _yamada_ui_core from '@yamada-ui/core';
|
5
|
+
import { CSSUIObject } from '@yamada-ui/core';
|
6
6
|
import * as recharts_types_chart_generateCategoricalChart from 'recharts/types/chart/generateCategoricalChart';
|
7
7
|
import * as Recharts from 'recharts';
|
8
8
|
import { AreaGradientProps } from './area-chart-gradient.js';
|
@@ -111,10 +111,10 @@ declare const useAreaChart: ({ data, series, type, layoutType, withGradient: wit
|
|
111
111
|
}, Omit<Recharts.AreaProps, "ref">>;
|
112
112
|
getAreaGradientProps: ChartPropGetter<"div", Partial<AreaGradientProps>, AreaGradientProps>;
|
113
113
|
areaVars: {
|
114
|
-
__prefix?: string
|
114
|
+
__prefix?: string;
|
115
115
|
name: string;
|
116
|
-
token?:
|
117
|
-
value?:
|
116
|
+
token?: keyof Omit<_yamada_ui_core.Theme, "components" | "colorSchemes" | "themeSchemes">;
|
117
|
+
value?: _yamada_ui_core.Token<number | _yamada_ui_utils.StringLiteral>;
|
118
118
|
}[];
|
119
119
|
setHighlightedArea: react.Dispatch<react.SetStateAction<string | null>>;
|
120
120
|
};
|
package/dist/use-bar-chart.d.mts
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
import * as react from 'react';
|
2
2
|
import * as recharts_types_chart_generateCategoricalChart from 'recharts/types/chart/generateCategoricalChart';
|
3
|
-
import * as _yamada_ui_core from '@yamada-ui/core';
|
4
|
-
import { CSSUIObject } from '@yamada-ui/core';
|
5
3
|
import * as _yamada_ui_utils from '@yamada-ui/utils';
|
6
4
|
import { Dict } from '@yamada-ui/utils';
|
5
|
+
import * as _yamada_ui_core from '@yamada-ui/core';
|
6
|
+
import { CSSUIObject } from '@yamada-ui/core';
|
7
7
|
import * as Recharts from 'recharts';
|
8
8
|
import { BarProps, BarChartType, ChartLayoutType, BarChartProps, ReferenceLineProps, RequiredChartPropGetter, ChartPropGetter } from './chart.types.mjs';
|
9
9
|
|
@@ -57,10 +57,10 @@ type UseBarChartProps = UseBarChartOptions & {
|
|
57
57
|
};
|
58
58
|
declare const useBarChart: ({ data, series, type, layoutType, referenceLineProps, fillOpacity, syncId, styles, ...rest }: UseBarChartProps) => {
|
59
59
|
barVars: {
|
60
|
-
__prefix?: string
|
60
|
+
__prefix?: string;
|
61
61
|
name: string;
|
62
|
-
token?:
|
63
|
-
value?:
|
62
|
+
token?: keyof Omit<_yamada_ui_core.Theme, "components" | "colorSchemes" | "themeSchemes">;
|
63
|
+
value?: _yamada_ui_core.Token<number | _yamada_ui_utils.StringLiteral>;
|
64
64
|
}[];
|
65
65
|
getBarProps: RequiredChartPropGetter<"div", {
|
66
66
|
index: number;
|
package/dist/use-bar-chart.d.ts
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
import * as react from 'react';
|
2
2
|
import * as recharts_types_chart_generateCategoricalChart from 'recharts/types/chart/generateCategoricalChart';
|
3
|
-
import * as _yamada_ui_core from '@yamada-ui/core';
|
4
|
-
import { CSSUIObject } from '@yamada-ui/core';
|
5
3
|
import * as _yamada_ui_utils from '@yamada-ui/utils';
|
6
4
|
import { Dict } from '@yamada-ui/utils';
|
5
|
+
import * as _yamada_ui_core from '@yamada-ui/core';
|
6
|
+
import { CSSUIObject } from '@yamada-ui/core';
|
7
7
|
import * as Recharts from 'recharts';
|
8
8
|
import { BarProps, BarChartType, ChartLayoutType, BarChartProps, ReferenceLineProps, RequiredChartPropGetter, ChartPropGetter } from './chart.types.js';
|
9
9
|
|
@@ -57,10 +57,10 @@ type UseBarChartProps = UseBarChartOptions & {
|
|
57
57
|
};
|
58
58
|
declare const useBarChart: ({ data, series, type, layoutType, referenceLineProps, fillOpacity, syncId, styles, ...rest }: UseBarChartProps) => {
|
59
59
|
barVars: {
|
60
|
-
__prefix?: string
|
60
|
+
__prefix?: string;
|
61
61
|
name: string;
|
62
|
-
token?:
|
63
|
-
value?:
|
62
|
+
token?: keyof Omit<_yamada_ui_core.Theme, "components" | "colorSchemes" | "themeSchemes">;
|
63
|
+
value?: _yamada_ui_core.Token<number | _yamada_ui_utils.StringLiteral>;
|
64
64
|
}[];
|
65
65
|
getBarProps: RequiredChartPropGetter<"div", {
|
66
66
|
index: number;
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import * as react from 'react';
|
2
|
-
import * as _yamada_ui_core from '@yamada-ui/core';
|
3
|
-
import { CSSUIObject } from '@yamada-ui/core';
|
4
2
|
import * as _yamada_ui_utils from '@yamada-ui/utils';
|
5
3
|
import { Dict } from '@yamada-ui/utils';
|
4
|
+
import * as _yamada_ui_core from '@yamada-ui/core';
|
5
|
+
import { CSSUIObject } from '@yamada-ui/core';
|
6
6
|
import * as recharts_types_chart_generateCategoricalChart from 'recharts/types/chart/generateCategoricalChart';
|
7
7
|
import * as Recharts from 'recharts';
|
8
8
|
import { LineProps, LineChartProps, ChartLayoutType, ChartCurveType, ReferenceLineProps, RequiredChartPropGetter, ChartPropGetter } from './chart.types.mjs';
|
@@ -85,10 +85,10 @@ declare const useLineChart: ({ data, series, layoutType, withDots, withActiveDot
|
|
85
85
|
}, Omit<Recharts.LineProps, "ref">>;
|
86
86
|
getLineChartProps: ChartPropGetter<"div", recharts_types_chart_generateCategoricalChart.CategoricalChartProps, recharts_types_chart_generateCategoricalChart.CategoricalChartProps>;
|
87
87
|
lineVars: {
|
88
|
-
__prefix?: string
|
88
|
+
__prefix?: string;
|
89
89
|
name: string;
|
90
|
-
token?:
|
91
|
-
value?:
|
90
|
+
token?: keyof Omit<_yamada_ui_core.Theme, "components" | "colorSchemes" | "themeSchemes">;
|
91
|
+
value?: _yamada_ui_core.Token<number | _yamada_ui_utils.StringLiteral>;
|
92
92
|
}[];
|
93
93
|
setHighlightedArea: react.Dispatch<react.SetStateAction<string | null>>;
|
94
94
|
};
|
package/dist/use-line-chart.d.ts
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
import * as react from 'react';
|
2
|
-
import * as _yamada_ui_core from '@yamada-ui/core';
|
3
|
-
import { CSSUIObject } from '@yamada-ui/core';
|
4
2
|
import * as _yamada_ui_utils from '@yamada-ui/utils';
|
5
3
|
import { Dict } from '@yamada-ui/utils';
|
4
|
+
import * as _yamada_ui_core from '@yamada-ui/core';
|
5
|
+
import { CSSUIObject } from '@yamada-ui/core';
|
6
6
|
import * as recharts_types_chart_generateCategoricalChart from 'recharts/types/chart/generateCategoricalChart';
|
7
7
|
import * as Recharts from 'recharts';
|
8
8
|
import { LineProps, LineChartProps, ChartLayoutType, ChartCurveType, ReferenceLineProps, RequiredChartPropGetter, ChartPropGetter } from './chart.types.js';
|
@@ -85,10 +85,10 @@ declare const useLineChart: ({ data, series, layoutType, withDots, withActiveDot
|
|
85
85
|
}, Omit<Recharts.LineProps, "ref">>;
|
86
86
|
getLineChartProps: ChartPropGetter<"div", recharts_types_chart_generateCategoricalChart.CategoricalChartProps, recharts_types_chart_generateCategoricalChart.CategoricalChartProps>;
|
87
87
|
lineVars: {
|
88
|
-
__prefix?: string
|
88
|
+
__prefix?: string;
|
89
89
|
name: string;
|
90
|
-
token?:
|
91
|
-
value?:
|
90
|
+
token?: keyof Omit<_yamada_ui_core.Theme, "components" | "colorSchemes" | "themeSchemes">;
|
91
|
+
value?: _yamada_ui_core.Token<number | _yamada_ui_utils.StringLiteral>;
|
92
92
|
}[];
|
93
93
|
setHighlightedArea: react.Dispatch<react.SetStateAction<string | null>>;
|
94
94
|
};
|
package/dist/use-pie-chart.d.mts
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
import * as react from 'react';
|
2
2
|
import * as recharts_types_chart_generateCategoricalChart from 'recharts/types/chart/generateCategoricalChart';
|
3
|
-
import * as _yamada_ui_core from '@yamada-ui/core';
|
4
|
-
import { CSSUIObject } from '@yamada-ui/core';
|
5
3
|
import * as _yamada_ui_utils from '@yamada-ui/utils';
|
6
4
|
import { Dict } from '@yamada-ui/utils';
|
5
|
+
import * as _yamada_ui_core from '@yamada-ui/core';
|
6
|
+
import { CSSUIObject } from '@yamada-ui/core';
|
7
7
|
import * as Recharts from 'recharts';
|
8
8
|
import { CellProps, PieChartProps, PieProps, RequiredChartPropGetter, ChartPropGetter } from './chart.types.mjs';
|
9
9
|
|
@@ -92,10 +92,10 @@ type UsePieChartProps = UsePieChartOptions & {
|
|
92
92
|
};
|
93
93
|
declare const usePieChart: ({ data, withLabels, withLabelLines, strokeWidth, fillOpacity, innerRadius, outerRadius, paddingAngle, startAngle, endAngle, styles, ...rest }: UsePieChartProps) => {
|
94
94
|
pieVars: {
|
95
|
-
__prefix?: string
|
95
|
+
__prefix?: string;
|
96
96
|
name: string;
|
97
|
-
token?:
|
98
|
-
value?:
|
97
|
+
token?: keyof Omit<_yamada_ui_core.Theme, "components" | "colorSchemes" | "themeSchemes">;
|
98
|
+
value?: _yamada_ui_core.Token<number | _yamada_ui_utils.StringLiteral>;
|
99
99
|
}[];
|
100
100
|
getPieProps: RequiredChartPropGetter<"div", Partial<Recharts.PieProps> & {
|
101
101
|
labelClassName: string;
|
package/dist/use-pie-chart.d.ts
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
import * as react from 'react';
|
2
2
|
import * as recharts_types_chart_generateCategoricalChart from 'recharts/types/chart/generateCategoricalChart';
|
3
|
-
import * as _yamada_ui_core from '@yamada-ui/core';
|
4
|
-
import { CSSUIObject } from '@yamada-ui/core';
|
5
3
|
import * as _yamada_ui_utils from '@yamada-ui/utils';
|
6
4
|
import { Dict } from '@yamada-ui/utils';
|
5
|
+
import * as _yamada_ui_core from '@yamada-ui/core';
|
6
|
+
import { CSSUIObject } from '@yamada-ui/core';
|
7
7
|
import * as Recharts from 'recharts';
|
8
8
|
import { CellProps, PieChartProps, PieProps, RequiredChartPropGetter, ChartPropGetter } from './chart.types.js';
|
9
9
|
|
@@ -92,10 +92,10 @@ type UsePieChartProps = UsePieChartOptions & {
|
|
92
92
|
};
|
93
93
|
declare const usePieChart: ({ data, withLabels, withLabelLines, strokeWidth, fillOpacity, innerRadius, outerRadius, paddingAngle, startAngle, endAngle, styles, ...rest }: UsePieChartProps) => {
|
94
94
|
pieVars: {
|
95
|
-
__prefix?: string
|
95
|
+
__prefix?: string;
|
96
96
|
name: string;
|
97
|
-
token?:
|
98
|
-
value?:
|
97
|
+
token?: keyof Omit<_yamada_ui_core.Theme, "components" | "colorSchemes" | "themeSchemes">;
|
98
|
+
value?: _yamada_ui_core.Token<number | _yamada_ui_utils.StringLiteral>;
|
99
99
|
}[];
|
100
100
|
getPieProps: RequiredChartPropGetter<"div", Partial<Recharts.PieProps> & {
|
101
101
|
labelClassName: string;
|
@@ -1,9 +1,9 @@
|
|
1
1
|
import * as react from 'react';
|
2
2
|
import * as recharts_types_chart_generateCategoricalChart from 'recharts/types/chart/generateCategoricalChart';
|
3
|
-
import * as _yamada_ui_core from '@yamada-ui/core';
|
4
|
-
import { CSSUIProps, CSSUIObject } from '@yamada-ui/core';
|
5
3
|
import * as _yamada_ui_utils from '@yamada-ui/utils';
|
6
4
|
import { Dict } from '@yamada-ui/utils';
|
5
|
+
import * as _yamada_ui_core from '@yamada-ui/core';
|
6
|
+
import { CSSUIProps, CSSUIObject } from '@yamada-ui/core';
|
7
7
|
import * as Recharts from 'recharts';
|
8
8
|
import { RadarProps, RadarChartProps, PolarGridProps, PolarAngleAxisProps, PolarRadiusAxisProps, ChartPropGetter, RequiredChartPropGetter } from './chart.types.mjs';
|
9
9
|
|
@@ -86,10 +86,10 @@ type UseRadarChartProps = UseRadarChartOptions & {
|
|
86
86
|
};
|
87
87
|
declare const useRadarChart: ({ data, series, dataKey, withDots, withActiveDots, strokeWidth, fillOpacity, valueFormatter, strokeDasharray, styles, ...rest }: UseRadarChartProps) => {
|
88
88
|
radarVars: {
|
89
|
-
__prefix?: string
|
89
|
+
__prefix?: string;
|
90
90
|
name: string;
|
91
|
-
token?:
|
92
|
-
value?:
|
91
|
+
token?: keyof Omit<_yamada_ui_core.Theme, "components" | "colorSchemes" | "themeSchemes">;
|
92
|
+
value?: _yamada_ui_core.Token<number | _yamada_ui_utils.StringLiteral>;
|
93
93
|
}[];
|
94
94
|
getRadarChartProps: ChartPropGetter<"div", recharts_types_chart_generateCategoricalChart.CategoricalChartProps, recharts_types_chart_generateCategoricalChart.CategoricalChartProps>;
|
95
95
|
getRadarProps: RequiredChartPropGetter<"div", {
|
@@ -1,9 +1,9 @@
|
|
1
1
|
import * as react from 'react';
|
2
2
|
import * as recharts_types_chart_generateCategoricalChart from 'recharts/types/chart/generateCategoricalChart';
|
3
|
-
import * as _yamada_ui_core from '@yamada-ui/core';
|
4
|
-
import { CSSUIProps, CSSUIObject } from '@yamada-ui/core';
|
5
3
|
import * as _yamada_ui_utils from '@yamada-ui/utils';
|
6
4
|
import { Dict } from '@yamada-ui/utils';
|
5
|
+
import * as _yamada_ui_core from '@yamada-ui/core';
|
6
|
+
import { CSSUIProps, CSSUIObject } from '@yamada-ui/core';
|
7
7
|
import * as Recharts from 'recharts';
|
8
8
|
import { RadarProps, RadarChartProps, PolarGridProps, PolarAngleAxisProps, PolarRadiusAxisProps, ChartPropGetter, RequiredChartPropGetter } from './chart.types.js';
|
9
9
|
|
@@ -86,10 +86,10 @@ type UseRadarChartProps = UseRadarChartOptions & {
|
|
86
86
|
};
|
87
87
|
declare const useRadarChart: ({ data, series, dataKey, withDots, withActiveDots, strokeWidth, fillOpacity, valueFormatter, strokeDasharray, styles, ...rest }: UseRadarChartProps) => {
|
88
88
|
radarVars: {
|
89
|
-
__prefix?: string
|
89
|
+
__prefix?: string;
|
90
90
|
name: string;
|
91
|
-
token?:
|
92
|
-
value?:
|
91
|
+
token?: keyof Omit<_yamada_ui_core.Theme, "components" | "colorSchemes" | "themeSchemes">;
|
92
|
+
value?: _yamada_ui_core.Token<number | _yamada_ui_utils.StringLiteral>;
|
93
93
|
}[];
|
94
94
|
getRadarChartProps: ChartPropGetter<"div", recharts_types_chart_generateCategoricalChart.CategoricalChartProps, recharts_types_chart_generateCategoricalChart.CategoricalChartProps>;
|
95
95
|
getRadarProps: RequiredChartPropGetter<"div", {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@yamada-ui/charts",
|
3
|
-
"version": "2.0.0-next-
|
3
|
+
"version": "2.0.0-next-20240701004015",
|
4
4
|
"description": "Yamada UI charts component",
|
5
5
|
"keywords": [
|
6
6
|
"yamada",
|
@@ -37,8 +37,8 @@
|
|
37
37
|
},
|
38
38
|
"dependencies": {
|
39
39
|
"recharts": "^2.12.4",
|
40
|
-
"@yamada-ui/core": "1.
|
41
|
-
"@yamada-ui/utils": "1.
|
40
|
+
"@yamada-ui/core": "1.9.1-next-20240701004015",
|
41
|
+
"@yamada-ui/utils": "1.3.1-next-20240701004015"
|
42
42
|
},
|
43
43
|
"devDependencies": {
|
44
44
|
"clean-package": "2.2.0",
|