@yamada-ui/charts 1.1.8 → 1.1.9-dev-20240624102031
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/area-chart.d.mts +1 -1
- package/dist/area-chart.d.ts +1 -1
- package/dist/chart-utils.d.mts +1 -1
- package/dist/chart-utils.d.ts +1 -1
- package/dist/use-area-chart.d.mts +5 -4
- package/dist/use-area-chart.d.ts +5 -4
- package/dist/use-bar-chart.d.mts +5 -4
- package/dist/use-bar-chart.d.ts +5 -4
- package/dist/use-line-chart.d.mts +5 -4
- package/dist/use-line-chart.d.ts +5 -4
- package/dist/use-pie-chart.d.mts +5 -4
- package/dist/use-pie-chart.d.ts +5 -4
- package/dist/use-radar-chart.d.mts +5 -4
- package/dist/use-radar-chart.d.ts +5 -4
- package/package.json +2 -2
package/dist/area-chart.d.mts
CHANGED
@@ -8,8 +8,8 @@ import { UseChartLegendProps } from './use-chart-legend.mjs';
|
|
8
8
|
import { UseChartReferenceLineOptions } from './use-chart-reference-line.mjs';
|
9
9
|
import { UseChartTooltipOptions } from './use-chart-tooltip.mjs';
|
10
10
|
import 'react';
|
11
|
-
import 'recharts/types/chart/generateCategoricalChart';
|
12
11
|
import '@yamada-ui/utils';
|
12
|
+
import 'recharts/types/chart/generateCategoricalChart';
|
13
13
|
import 'recharts';
|
14
14
|
import './area-chart-gradient.mjs';
|
15
15
|
import 'react/jsx-runtime';
|
package/dist/area-chart.d.ts
CHANGED
@@ -8,8 +8,8 @@ import { UseChartLegendProps } from './use-chart-legend.js';
|
|
8
8
|
import { UseChartReferenceLineOptions } from './use-chart-reference-line.js';
|
9
9
|
import { UseChartTooltipOptions } from './use-chart-tooltip.js';
|
10
10
|
import 'react';
|
11
|
-
import 'recharts/types/chart/generateCategoricalChart';
|
12
11
|
import '@yamada-ui/utils';
|
12
|
+
import 'recharts/types/chart/generateCategoricalChart';
|
13
13
|
import 'recharts';
|
14
14
|
import './area-chart-gradient.js';
|
15
15
|
import 'react/jsx-runtime';
|
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,9 @@
|
|
1
1
|
import * as react from 'react';
|
2
|
+
import * as _yamada_ui_utils from '@yamada-ui/utils';
|
3
|
+
import { Dict } from '@yamada-ui/utils';
|
2
4
|
import * as _yamada_ui_core from '@yamada-ui/core';
|
3
5
|
import { CSSUIObject } from '@yamada-ui/core';
|
4
6
|
import * as recharts_types_chart_generateCategoricalChart from 'recharts/types/chart/generateCategoricalChart';
|
5
|
-
import { Dict } from '@yamada-ui/utils';
|
6
7
|
import * as Recharts from 'recharts';
|
7
8
|
import { AreaGradientProps } from './area-chart-gradient.mjs';
|
8
9
|
import { AreaSplitProps } from './area-chart-split.mjs';
|
@@ -110,10 +111,10 @@ declare const useAreaChart: ({ data, series, type, layoutType, withGradient: wit
|
|
110
111
|
}, Omit<Recharts.AreaProps, "ref">>;
|
111
112
|
getAreaGradientProps: ChartPropGetter<"div", Partial<AreaGradientProps>, AreaGradientProps>;
|
112
113
|
areaVars: {
|
113
|
-
__prefix?: string
|
114
|
+
__prefix?: string;
|
114
115
|
name: string;
|
115
|
-
token?:
|
116
|
-
value?:
|
116
|
+
token?: keyof Omit<_yamada_ui_core.Theme, "components" | "colorSchemes" | "themeSchemes">;
|
117
|
+
value?: _yamada_ui_core.Token<number | _yamada_ui_utils.StringLiteral>;
|
117
118
|
}[];
|
118
119
|
setHighlightedArea: react.Dispatch<react.SetStateAction<string | null>>;
|
119
120
|
};
|
package/dist/use-area-chart.d.ts
CHANGED
@@ -1,8 +1,9 @@
|
|
1
1
|
import * as react from 'react';
|
2
|
+
import * as _yamada_ui_utils from '@yamada-ui/utils';
|
3
|
+
import { Dict } from '@yamada-ui/utils';
|
2
4
|
import * as _yamada_ui_core from '@yamada-ui/core';
|
3
5
|
import { CSSUIObject } from '@yamada-ui/core';
|
4
6
|
import * as recharts_types_chart_generateCategoricalChart from 'recharts/types/chart/generateCategoricalChart';
|
5
|
-
import { Dict } from '@yamada-ui/utils';
|
6
7
|
import * as Recharts from 'recharts';
|
7
8
|
import { AreaGradientProps } from './area-chart-gradient.js';
|
8
9
|
import { AreaSplitProps } from './area-chart-split.js';
|
@@ -110,10 +111,10 @@ declare const useAreaChart: ({ data, series, type, layoutType, withGradient: wit
|
|
110
111
|
}, Omit<Recharts.AreaProps, "ref">>;
|
111
112
|
getAreaGradientProps: ChartPropGetter<"div", Partial<AreaGradientProps>, AreaGradientProps>;
|
112
113
|
areaVars: {
|
113
|
-
__prefix?: string
|
114
|
+
__prefix?: string;
|
114
115
|
name: string;
|
115
|
-
token?:
|
116
|
-
value?:
|
116
|
+
token?: keyof Omit<_yamada_ui_core.Theme, "components" | "colorSchemes" | "themeSchemes">;
|
117
|
+
value?: _yamada_ui_core.Token<number | _yamada_ui_utils.StringLiteral>;
|
117
118
|
}[];
|
118
119
|
setHighlightedArea: react.Dispatch<react.SetStateAction<string | null>>;
|
119
120
|
};
|
package/dist/use-bar-chart.d.mts
CHANGED
@@ -1,8 +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_utils from '@yamada-ui/utils';
|
4
|
+
import { Dict } from '@yamada-ui/utils';
|
3
5
|
import * as _yamada_ui_core from '@yamada-ui/core';
|
4
6
|
import { CSSUIObject } from '@yamada-ui/core';
|
5
|
-
import { Dict } from '@yamada-ui/utils';
|
6
7
|
import * as Recharts from 'recharts';
|
7
8
|
import { BarProps, BarChartType, ChartLayoutType, BarChartProps, ReferenceLineProps, RequiredChartPropGetter, ChartPropGetter } from './chart.types.mjs';
|
8
9
|
|
@@ -56,10 +57,10 @@ type UseBarChartProps = UseBarChartOptions & {
|
|
56
57
|
};
|
57
58
|
declare const useBarChart: ({ data, series, type, layoutType, referenceLineProps, fillOpacity, syncId, styles, ...rest }: UseBarChartProps) => {
|
58
59
|
barVars: {
|
59
|
-
__prefix?: string
|
60
|
+
__prefix?: string;
|
60
61
|
name: string;
|
61
|
-
token?:
|
62
|
-
value?:
|
62
|
+
token?: keyof Omit<_yamada_ui_core.Theme, "components" | "colorSchemes" | "themeSchemes">;
|
63
|
+
value?: _yamada_ui_core.Token<number | _yamada_ui_utils.StringLiteral>;
|
63
64
|
}[];
|
64
65
|
getBarProps: RequiredChartPropGetter<"div", {
|
65
66
|
index: number;
|
package/dist/use-bar-chart.d.ts
CHANGED
@@ -1,8 +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_utils from '@yamada-ui/utils';
|
4
|
+
import { Dict } from '@yamada-ui/utils';
|
3
5
|
import * as _yamada_ui_core from '@yamada-ui/core';
|
4
6
|
import { CSSUIObject } from '@yamada-ui/core';
|
5
|
-
import { Dict } from '@yamada-ui/utils';
|
6
7
|
import * as Recharts from 'recharts';
|
7
8
|
import { BarProps, BarChartType, ChartLayoutType, BarChartProps, ReferenceLineProps, RequiredChartPropGetter, ChartPropGetter } from './chart.types.js';
|
8
9
|
|
@@ -56,10 +57,10 @@ type UseBarChartProps = UseBarChartOptions & {
|
|
56
57
|
};
|
57
58
|
declare const useBarChart: ({ data, series, type, layoutType, referenceLineProps, fillOpacity, syncId, styles, ...rest }: UseBarChartProps) => {
|
58
59
|
barVars: {
|
59
|
-
__prefix?: string
|
60
|
+
__prefix?: string;
|
60
61
|
name: string;
|
61
|
-
token?:
|
62
|
-
value?:
|
62
|
+
token?: keyof Omit<_yamada_ui_core.Theme, "components" | "colorSchemes" | "themeSchemes">;
|
63
|
+
value?: _yamada_ui_core.Token<number | _yamada_ui_utils.StringLiteral>;
|
63
64
|
}[];
|
64
65
|
getBarProps: RequiredChartPropGetter<"div", {
|
65
66
|
index: number;
|
@@ -1,8 +1,9 @@
|
|
1
1
|
import * as react from 'react';
|
2
|
+
import * as _yamada_ui_utils from '@yamada-ui/utils';
|
3
|
+
import { Dict } from '@yamada-ui/utils';
|
2
4
|
import * as _yamada_ui_core from '@yamada-ui/core';
|
3
5
|
import { CSSUIObject } from '@yamada-ui/core';
|
4
6
|
import * as recharts_types_chart_generateCategoricalChart from 'recharts/types/chart/generateCategoricalChart';
|
5
|
-
import { Dict } from '@yamada-ui/utils';
|
6
7
|
import * as Recharts from 'recharts';
|
7
8
|
import { LineProps, LineChartProps, ChartLayoutType, ChartCurveType, ReferenceLineProps, RequiredChartPropGetter, ChartPropGetter } from './chart.types.mjs';
|
8
9
|
|
@@ -84,10 +85,10 @@ declare const useLineChart: ({ data, series, layoutType, withDots, withActiveDot
|
|
84
85
|
}, Omit<Recharts.LineProps, "ref">>;
|
85
86
|
getLineChartProps: ChartPropGetter<"div", recharts_types_chart_generateCategoricalChart.CategoricalChartProps, recharts_types_chart_generateCategoricalChart.CategoricalChartProps>;
|
86
87
|
lineVars: {
|
87
|
-
__prefix?: string
|
88
|
+
__prefix?: string;
|
88
89
|
name: string;
|
89
|
-
token?:
|
90
|
-
value?:
|
90
|
+
token?: keyof Omit<_yamada_ui_core.Theme, "components" | "colorSchemes" | "themeSchemes">;
|
91
|
+
value?: _yamada_ui_core.Token<number | _yamada_ui_utils.StringLiteral>;
|
91
92
|
}[];
|
92
93
|
setHighlightedArea: react.Dispatch<react.SetStateAction<string | null>>;
|
93
94
|
};
|
package/dist/use-line-chart.d.ts
CHANGED
@@ -1,8 +1,9 @@
|
|
1
1
|
import * as react from 'react';
|
2
|
+
import * as _yamada_ui_utils from '@yamada-ui/utils';
|
3
|
+
import { Dict } from '@yamada-ui/utils';
|
2
4
|
import * as _yamada_ui_core from '@yamada-ui/core';
|
3
5
|
import { CSSUIObject } from '@yamada-ui/core';
|
4
6
|
import * as recharts_types_chart_generateCategoricalChart from 'recharts/types/chart/generateCategoricalChart';
|
5
|
-
import { Dict } from '@yamada-ui/utils';
|
6
7
|
import * as Recharts from 'recharts';
|
7
8
|
import { LineProps, LineChartProps, ChartLayoutType, ChartCurveType, ReferenceLineProps, RequiredChartPropGetter, ChartPropGetter } from './chart.types.js';
|
8
9
|
|
@@ -84,10 +85,10 @@ declare const useLineChart: ({ data, series, layoutType, withDots, withActiveDot
|
|
84
85
|
}, Omit<Recharts.LineProps, "ref">>;
|
85
86
|
getLineChartProps: ChartPropGetter<"div", recharts_types_chart_generateCategoricalChart.CategoricalChartProps, recharts_types_chart_generateCategoricalChart.CategoricalChartProps>;
|
86
87
|
lineVars: {
|
87
|
-
__prefix?: string
|
88
|
+
__prefix?: string;
|
88
89
|
name: string;
|
89
|
-
token?:
|
90
|
-
value?:
|
90
|
+
token?: keyof Omit<_yamada_ui_core.Theme, "components" | "colorSchemes" | "themeSchemes">;
|
91
|
+
value?: _yamada_ui_core.Token<number | _yamada_ui_utils.StringLiteral>;
|
91
92
|
}[];
|
92
93
|
setHighlightedArea: react.Dispatch<react.SetStateAction<string | null>>;
|
93
94
|
};
|
package/dist/use-pie-chart.d.mts
CHANGED
@@ -1,8 +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_utils from '@yamada-ui/utils';
|
4
|
+
import { Dict } from '@yamada-ui/utils';
|
3
5
|
import * as _yamada_ui_core from '@yamada-ui/core';
|
4
6
|
import { CSSUIObject } from '@yamada-ui/core';
|
5
|
-
import { Dict } from '@yamada-ui/utils';
|
6
7
|
import * as Recharts from 'recharts';
|
7
8
|
import { CellProps, PieChartProps, PieProps, RequiredChartPropGetter, ChartPropGetter } from './chart.types.mjs';
|
8
9
|
|
@@ -91,10 +92,10 @@ type UsePieChartProps = UsePieChartOptions & {
|
|
91
92
|
};
|
92
93
|
declare const usePieChart: ({ data, withLabels, withLabelLines, strokeWidth, fillOpacity, innerRadius, outerRadius, paddingAngle, startAngle, endAngle, styles, ...rest }: UsePieChartProps) => {
|
93
94
|
pieVars: {
|
94
|
-
__prefix?: string
|
95
|
+
__prefix?: string;
|
95
96
|
name: string;
|
96
|
-
token?:
|
97
|
-
value?:
|
97
|
+
token?: keyof Omit<_yamada_ui_core.Theme, "components" | "colorSchemes" | "themeSchemes">;
|
98
|
+
value?: _yamada_ui_core.Token<number | _yamada_ui_utils.StringLiteral>;
|
98
99
|
}[];
|
99
100
|
getPieProps: RequiredChartPropGetter<"div", Partial<Recharts.PieProps> & {
|
100
101
|
labelClassName: string;
|
package/dist/use-pie-chart.d.ts
CHANGED
@@ -1,8 +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_utils from '@yamada-ui/utils';
|
4
|
+
import { Dict } from '@yamada-ui/utils';
|
3
5
|
import * as _yamada_ui_core from '@yamada-ui/core';
|
4
6
|
import { CSSUIObject } from '@yamada-ui/core';
|
5
|
-
import { Dict } from '@yamada-ui/utils';
|
6
7
|
import * as Recharts from 'recharts';
|
7
8
|
import { CellProps, PieChartProps, PieProps, RequiredChartPropGetter, ChartPropGetter } from './chart.types.js';
|
8
9
|
|
@@ -91,10 +92,10 @@ type UsePieChartProps = UsePieChartOptions & {
|
|
91
92
|
};
|
92
93
|
declare const usePieChart: ({ data, withLabels, withLabelLines, strokeWidth, fillOpacity, innerRadius, outerRadius, paddingAngle, startAngle, endAngle, styles, ...rest }: UsePieChartProps) => {
|
93
94
|
pieVars: {
|
94
|
-
__prefix?: string
|
95
|
+
__prefix?: string;
|
95
96
|
name: string;
|
96
|
-
token?:
|
97
|
-
value?:
|
97
|
+
token?: keyof Omit<_yamada_ui_core.Theme, "components" | "colorSchemes" | "themeSchemes">;
|
98
|
+
value?: _yamada_ui_core.Token<number | _yamada_ui_utils.StringLiteral>;
|
98
99
|
}[];
|
99
100
|
getPieProps: RequiredChartPropGetter<"div", Partial<Recharts.PieProps> & {
|
100
101
|
labelClassName: string;
|
@@ -1,8 +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_utils from '@yamada-ui/utils';
|
4
|
+
import { Dict } from '@yamada-ui/utils';
|
3
5
|
import * as _yamada_ui_core from '@yamada-ui/core';
|
4
6
|
import { CSSUIProps, CSSUIObject } from '@yamada-ui/core';
|
5
|
-
import { Dict } from '@yamada-ui/utils';
|
6
7
|
import * as Recharts from 'recharts';
|
7
8
|
import { RadarProps, RadarChartProps, PolarGridProps, PolarAngleAxisProps, PolarRadiusAxisProps, ChartPropGetter, RequiredChartPropGetter } from './chart.types.mjs';
|
8
9
|
|
@@ -85,10 +86,10 @@ type UseRadarChartProps = UseRadarChartOptions & {
|
|
85
86
|
};
|
86
87
|
declare const useRadarChart: ({ data, series, dataKey, withDots, withActiveDots, strokeWidth, fillOpacity, valueFormatter, strokeDasharray, styles, ...rest }: UseRadarChartProps) => {
|
87
88
|
radarVars: {
|
88
|
-
__prefix?: string
|
89
|
+
__prefix?: string;
|
89
90
|
name: string;
|
90
|
-
token?:
|
91
|
-
value?:
|
91
|
+
token?: keyof Omit<_yamada_ui_core.Theme, "components" | "colorSchemes" | "themeSchemes">;
|
92
|
+
value?: _yamada_ui_core.Token<number | _yamada_ui_utils.StringLiteral>;
|
92
93
|
}[];
|
93
94
|
getRadarChartProps: ChartPropGetter<"div", recharts_types_chart_generateCategoricalChart.CategoricalChartProps, recharts_types_chart_generateCategoricalChart.CategoricalChartProps>;
|
94
95
|
getRadarProps: RequiredChartPropGetter<"div", {
|
@@ -1,8 +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_utils from '@yamada-ui/utils';
|
4
|
+
import { Dict } from '@yamada-ui/utils';
|
3
5
|
import * as _yamada_ui_core from '@yamada-ui/core';
|
4
6
|
import { CSSUIProps, CSSUIObject } from '@yamada-ui/core';
|
5
|
-
import { Dict } from '@yamada-ui/utils';
|
6
7
|
import * as Recharts from 'recharts';
|
7
8
|
import { RadarProps, RadarChartProps, PolarGridProps, PolarAngleAxisProps, PolarRadiusAxisProps, ChartPropGetter, RequiredChartPropGetter } from './chart.types.js';
|
8
9
|
|
@@ -85,10 +86,10 @@ type UseRadarChartProps = UseRadarChartOptions & {
|
|
85
86
|
};
|
86
87
|
declare const useRadarChart: ({ data, series, dataKey, withDots, withActiveDots, strokeWidth, fillOpacity, valueFormatter, strokeDasharray, styles, ...rest }: UseRadarChartProps) => {
|
87
88
|
radarVars: {
|
88
|
-
__prefix?: string
|
89
|
+
__prefix?: string;
|
89
90
|
name: string;
|
90
|
-
token?:
|
91
|
-
value?:
|
91
|
+
token?: keyof Omit<_yamada_ui_core.Theme, "components" | "colorSchemes" | "themeSchemes">;
|
92
|
+
value?: _yamada_ui_core.Token<number | _yamada_ui_utils.StringLiteral>;
|
92
93
|
}[];
|
93
94
|
getRadarChartProps: ChartPropGetter<"div", recharts_types_chart_generateCategoricalChart.CategoricalChartProps, recharts_types_chart_generateCategoricalChart.CategoricalChartProps>;
|
94
95
|
getRadarProps: RequiredChartPropGetter<"div", {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@yamada-ui/charts",
|
3
|
-
"version": "1.1.
|
3
|
+
"version": "1.1.9-dev-20240624102031",
|
4
4
|
"description": "Yamada UI charts component",
|
5
5
|
"keywords": [
|
6
6
|
"yamada",
|
@@ -37,7 +37,7 @@
|
|
37
37
|
},
|
38
38
|
"dependencies": {
|
39
39
|
"recharts": "^2.12.4",
|
40
|
-
"@yamada-ui/core": "1.
|
40
|
+
"@yamada-ui/core": "1.9.0-dev-20240624102031",
|
41
41
|
"@yamada-ui/utils": "1.3.0"
|
42
42
|
},
|
43
43
|
"devDependencies": {
|