@yamada-ui/charts 2.0.0-next-20240812015934 → 2.0.0-next-20240820160301
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 -0
- package/dist/area-chart.d.ts +1 -0
- package/dist/bar-chart.d.mts +1 -0
- package/dist/bar-chart.d.ts +1 -0
- package/dist/chart.types.d.mts +7 -5
- package/dist/chart.types.d.ts +7 -5
- package/dist/chart.types.js.map +1 -1
- package/dist/donut-chart.d.mts +1 -0
- package/dist/donut-chart.d.ts +1 -0
- package/dist/index.d.mts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs.map +1 -1
- package/dist/line-chart.d.mts +1 -0
- package/dist/line-chart.d.ts +1 -0
- package/dist/pie-chart.d.mts +1 -0
- package/dist/pie-chart.d.ts +1 -0
- package/dist/radar-chart.d.mts +1 -0
- package/dist/radar-chart.d.ts +1 -0
- package/dist/use-area-chart.d.mts +1 -0
- package/dist/use-area-chart.d.ts +1 -0
- package/dist/use-bar-chart.d.mts +1 -0
- package/dist/use-bar-chart.d.ts +1 -0
- package/dist/use-chart-axis.d.mts +1 -0
- package/dist/use-chart-axis.d.ts +1 -0
- package/dist/use-chart-grid.d.mts +1 -0
- package/dist/use-chart-grid.d.ts +1 -0
- package/dist/use-chart-legend.d.mts +1 -0
- package/dist/use-chart-legend.d.ts +1 -0
- package/dist/use-chart-reference-line.d.mts +1 -0
- package/dist/use-chart-reference-line.d.ts +1 -0
- package/dist/use-chart-tooltip.d.mts +1 -0
- package/dist/use-chart-tooltip.d.ts +1 -0
- package/dist/use-chart.d.mts +1 -0
- package/dist/use-chart.d.ts +1 -0
- package/dist/use-line-chart.d.mts +1 -0
- package/dist/use-line-chart.d.ts +1 -0
- package/dist/use-pie-chart.d.mts +1 -0
- package/dist/use-pie-chart.d.ts +1 -0
- package/dist/use-radar-chart.d.mts +1 -0
- package/dist/use-radar-chart.d.ts +1 -0
- package/package.json +3 -3
package/dist/area-chart.d.mts
CHANGED
package/dist/area-chart.d.ts
CHANGED
package/dist/bar-chart.d.mts
CHANGED
package/dist/bar-chart.d.ts
CHANGED
package/dist/chart.types.d.mts
CHANGED
@@ -2,6 +2,7 @@ import { As, HTMLUIProps, CSSUIProps } from '@yamada-ui/core';
|
|
2
2
|
import { Merge } from '@yamada-ui/utils';
|
3
3
|
import { ComponentPropsWithoutRef, SVGProps, ReactElement, ReactNode } from 'react';
|
4
4
|
import * as Recharts from 'recharts';
|
5
|
+
import { pieProperties } from './rechart-properties.mjs';
|
5
6
|
|
6
7
|
type ChartPropGetter<Y extends As = "div", M = undefined, D = undefined> = (props?: Merge<HTMLUIProps<Y>, M>, ref?: React.Ref<any>) => D;
|
7
8
|
type RequiredChartPropGetter<Y extends As = "div", M = undefined, D = undefined> = (props: Merge<HTMLUIProps<Y>, M>, ref?: React.Ref<any>) => D;
|
@@ -45,9 +46,9 @@ type RadarProps = Merge<Merge<CSSUIProps, Recharts.RadarProps>, {
|
|
45
46
|
dimDot?: DotProps;
|
46
47
|
dimRadar?: Partial<RadarProps>;
|
47
48
|
}>;
|
48
|
-
type PieProps = Merge<Merge<
|
49
|
-
activeShape?:
|
50
|
-
inactiveShape?:
|
49
|
+
type PieProps = Merge<Merge<Pick<Recharts.PieProps, (typeof pieProperties)[number]>, CSSUIProps>, {
|
50
|
+
activeShape?: Partial<PieProps>;
|
51
|
+
inactiveShape?: Partial<PieProps>;
|
51
52
|
label?: HTMLUIProps<"text">;
|
52
53
|
labelLine?: HTMLUIProps<"path">;
|
53
54
|
}>;
|
@@ -74,6 +75,7 @@ type PolarGridProps = Merge<CSSUIProps, Recharts.PolarGridProps>;
|
|
74
75
|
type PolarAngleAxisProps = Merge<Recharts.PolarAngleAxisProps, CSSUIProps>;
|
75
76
|
type PolarRadiusAxisProps = Merge<CSSUIProps, Recharts.PolarRadiusAxisProps>;
|
76
77
|
type LabelProps = Merge<CSSUIProps, Recharts.LabelProps>;
|
77
|
-
type
|
78
|
+
type ChartTooltipProps = Recharts.TooltipProps<number | string | Array<number | string>, number | string>;
|
79
|
+
type ChartTooltip = ReactElement | ((props: ChartTooltipProps) => ReactNode);
|
78
80
|
|
79
|
-
export type { AreaChartProps, AreaChartType, AreaProps, BarChartProps, BarChartType, BarProps, CellProps, ChartAxisType, ChartCurveType, ChartLayoutType, ChartPropGetter, ChartTooltip, DotProps, GridProps, LabelProps, LegendProps, LineChartProps, LineProps, PieChartProps, PieProps, PolarAngleAxisProps, PolarGridProps, PolarRadiusAxisProps, RadarChartProps, RadarProps, ReferenceLineProps, RequiredChartPropGetter, ResponsiveContainerProps, TooltipDataSourceType, TooltipProps, XAxisProps, YAxisProps };
|
81
|
+
export type { AreaChartProps, AreaChartType, AreaProps, BarChartProps, BarChartType, BarProps, CellProps, ChartAxisType, ChartCurveType, ChartLayoutType, ChartPropGetter, ChartTooltip, ChartTooltipProps, DotProps, GridProps, LabelProps, LegendProps, LineChartProps, LineProps, PieChartProps, PieProps, PolarAngleAxisProps, PolarGridProps, PolarRadiusAxisProps, RadarChartProps, RadarProps, ReferenceLineProps, RequiredChartPropGetter, ResponsiveContainerProps, TooltipDataSourceType, TooltipProps, XAxisProps, YAxisProps };
|
package/dist/chart.types.d.ts
CHANGED
@@ -2,6 +2,7 @@ import { As, HTMLUIProps, CSSUIProps } from '@yamada-ui/core';
|
|
2
2
|
import { Merge } from '@yamada-ui/utils';
|
3
3
|
import { ComponentPropsWithoutRef, SVGProps, ReactElement, ReactNode } from 'react';
|
4
4
|
import * as Recharts from 'recharts';
|
5
|
+
import { pieProperties } from './rechart-properties.js';
|
5
6
|
|
6
7
|
type ChartPropGetter<Y extends As = "div", M = undefined, D = undefined> = (props?: Merge<HTMLUIProps<Y>, M>, ref?: React.Ref<any>) => D;
|
7
8
|
type RequiredChartPropGetter<Y extends As = "div", M = undefined, D = undefined> = (props: Merge<HTMLUIProps<Y>, M>, ref?: React.Ref<any>) => D;
|
@@ -45,9 +46,9 @@ type RadarProps = Merge<Merge<CSSUIProps, Recharts.RadarProps>, {
|
|
45
46
|
dimDot?: DotProps;
|
46
47
|
dimRadar?: Partial<RadarProps>;
|
47
48
|
}>;
|
48
|
-
type PieProps = Merge<Merge<
|
49
|
-
activeShape?:
|
50
|
-
inactiveShape?:
|
49
|
+
type PieProps = Merge<Merge<Pick<Recharts.PieProps, (typeof pieProperties)[number]>, CSSUIProps>, {
|
50
|
+
activeShape?: Partial<PieProps>;
|
51
|
+
inactiveShape?: Partial<PieProps>;
|
51
52
|
label?: HTMLUIProps<"text">;
|
52
53
|
labelLine?: HTMLUIProps<"path">;
|
53
54
|
}>;
|
@@ -74,6 +75,7 @@ type PolarGridProps = Merge<CSSUIProps, Recharts.PolarGridProps>;
|
|
74
75
|
type PolarAngleAxisProps = Merge<Recharts.PolarAngleAxisProps, CSSUIProps>;
|
75
76
|
type PolarRadiusAxisProps = Merge<CSSUIProps, Recharts.PolarRadiusAxisProps>;
|
76
77
|
type LabelProps = Merge<CSSUIProps, Recharts.LabelProps>;
|
77
|
-
type
|
78
|
+
type ChartTooltipProps = Recharts.TooltipProps<number | string | Array<number | string>, number | string>;
|
79
|
+
type ChartTooltip = ReactElement | ((props: ChartTooltipProps) => ReactNode);
|
78
80
|
|
79
|
-
export type { AreaChartProps, AreaChartType, AreaProps, BarChartProps, BarChartType, BarProps, CellProps, ChartAxisType, ChartCurveType, ChartLayoutType, ChartPropGetter, ChartTooltip, DotProps, GridProps, LabelProps, LegendProps, LineChartProps, LineProps, PieChartProps, PieProps, PolarAngleAxisProps, PolarGridProps, PolarRadiusAxisProps, RadarChartProps, RadarProps, ReferenceLineProps, RequiredChartPropGetter, ResponsiveContainerProps, TooltipDataSourceType, TooltipProps, XAxisProps, YAxisProps };
|
81
|
+
export type { AreaChartProps, AreaChartType, AreaProps, BarChartProps, BarChartType, BarProps, CellProps, ChartAxisType, ChartCurveType, ChartLayoutType, ChartPropGetter, ChartTooltip, ChartTooltipProps, DotProps, GridProps, LabelProps, LegendProps, LineChartProps, LineProps, PieChartProps, PieProps, PolarAngleAxisProps, PolarGridProps, PolarRadiusAxisProps, RadarChartProps, RadarProps, ReferenceLineProps, RequiredChartPropGetter, ResponsiveContainerProps, TooltipDataSourceType, TooltipProps, XAxisProps, YAxisProps };
|
package/dist/chart.types.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../src/chart.types.ts"],"sourcesContent":["import type { As, CSSUIProps, HTMLUIProps } from \"@yamada-ui/core\"\nimport type { Merge } from \"@yamada-ui/utils\"\nimport type {\n ComponentPropsWithoutRef,\n ReactElement,\n ReactNode,\n SVGProps,\n} from \"react\"\nimport type * as Recharts from \"recharts\"\n\nexport type ChartPropGetter<\n Y extends As = \"div\",\n M = undefined,\n D = undefined,\n> = (props?: Merge<HTMLUIProps<Y>, M>, ref?: React.Ref<any>) => D\n\nexport type RequiredChartPropGetter<\n Y extends As = \"div\",\n M = undefined,\n D = undefined,\n> = (props: Merge<HTMLUIProps<Y>, M>, ref?: React.Ref<any>) => D\nexport type ChartLayoutType = \"horizontal\" | \"vertical\"\nexport type AreaChartType = \"default\" | \"stacked\" | \"percent\" | \"split\"\nexport type BarChartType = Exclude<AreaChartType, \"split\">\nexport type ChartAxisType = \"x\" | \"y\" | \"xy\" | \"none\"\nexport type ChartCurveType =\n | \"bump\"\n | \"linear\"\n | \"natural\"\n | \"monotone\"\n | \"step\"\n | \"stepBefore\"\n | \"stepAfter\"\nexport type TooltipDataSourceType = \"segment\" | \"all\"\n\nexport type AreaChartProps = Merge<\n CSSUIProps,\n ComponentPropsWithoutRef<typeof Recharts.AreaChart>\n>\nexport type BarChartProps = Merge<\n CSSUIProps,\n ComponentPropsWithoutRef<typeof Recharts.BarChart>\n>\nexport type LineChartProps = Merge<\n CSSUIProps,\n ComponentPropsWithoutRef<typeof Recharts.LineChart>\n>\nexport type RadarChartProps = Merge<\n CSSUIProps,\n ComponentPropsWithoutRef<typeof Recharts.RadarChart>\n>\nexport type PieChartProps = Merge<\n CSSUIProps,\n ComponentPropsWithoutRef<typeof Recharts.PieChart>\n>\nexport type ReferenceLineProps = Merge<CSSUIProps, Recharts.ReferenceLineProps>\nexport type ResponsiveContainerProps = Merge<\n CSSUIProps,\n Omit<Recharts.ResponsiveContainerProps, \"children\">\n>\nexport type AreaProps = Merge<\n Merge<CSSUIProps, Recharts.AreaProps>,\n {\n color: CSSUIProps[\"color\"]\n dot?: DotProps\n activeDot?: DotProps\n dimDot?: DotProps\n dimArea?: Partial<AreaProps>\n }\n>\nexport type LineProps = Merge<\n Merge<CSSUIProps, Recharts.LineProps>,\n {\n color: CSSUIProps[\"color\"]\n activeDot?: DotProps\n dot?: DotProps\n dimDot?: DotProps\n dimLine?: Partial<LineProps>\n }\n>\nexport type BarProps = Merge<\n Merge<CSSUIProps, Recharts.BarProps>,\n {\n color: CSSUIProps[\"color\"]\n activeBar?: Merge<SVGProps<SVGPathElement>, CSSUIProps>\n background?: Merge<SVGProps<SVGPathElement>, CSSUIProps>\n dimBar?: Partial<BarProps>\n }\n>\nexport type RadarProps = Merge<\n Merge<CSSUIProps, Recharts.RadarProps>,\n {\n color: CSSUIProps[\"color\"]\n dot?: DotProps\n activeDot?: DotProps\n dimDot?: DotProps\n dimRadar?: Partial<RadarProps>\n }\n>\nexport type PieProps = Merge<\n Merge<
|
1
|
+
{"version":3,"sources":["../src/chart.types.ts"],"sourcesContent":["import type { As, CSSUIProps, HTMLUIProps } from \"@yamada-ui/core\"\nimport type { Merge } from \"@yamada-ui/utils\"\nimport type {\n ComponentPropsWithoutRef,\n ReactElement,\n ReactNode,\n SVGProps,\n} from \"react\"\nimport type * as Recharts from \"recharts\"\nimport type { pieProperties } from \"./rechart-properties\"\n\nexport type ChartPropGetter<\n Y extends As = \"div\",\n M = undefined,\n D = undefined,\n> = (props?: Merge<HTMLUIProps<Y>, M>, ref?: React.Ref<any>) => D\n\nexport type RequiredChartPropGetter<\n Y extends As = \"div\",\n M = undefined,\n D = undefined,\n> = (props: Merge<HTMLUIProps<Y>, M>, ref?: React.Ref<any>) => D\nexport type ChartLayoutType = \"horizontal\" | \"vertical\"\nexport type AreaChartType = \"default\" | \"stacked\" | \"percent\" | \"split\"\nexport type BarChartType = Exclude<AreaChartType, \"split\">\nexport type ChartAxisType = \"x\" | \"y\" | \"xy\" | \"none\"\nexport type ChartCurveType =\n | \"bump\"\n | \"linear\"\n | \"natural\"\n | \"monotone\"\n | \"step\"\n | \"stepBefore\"\n | \"stepAfter\"\nexport type TooltipDataSourceType = \"segment\" | \"all\"\n\nexport type AreaChartProps = Merge<\n CSSUIProps,\n ComponentPropsWithoutRef<typeof Recharts.AreaChart>\n>\nexport type BarChartProps = Merge<\n CSSUIProps,\n ComponentPropsWithoutRef<typeof Recharts.BarChart>\n>\nexport type LineChartProps = Merge<\n CSSUIProps,\n ComponentPropsWithoutRef<typeof Recharts.LineChart>\n>\nexport type RadarChartProps = Merge<\n CSSUIProps,\n ComponentPropsWithoutRef<typeof Recharts.RadarChart>\n>\nexport type PieChartProps = Merge<\n CSSUIProps,\n ComponentPropsWithoutRef<typeof Recharts.PieChart>\n>\nexport type ReferenceLineProps = Merge<CSSUIProps, Recharts.ReferenceLineProps>\nexport type ResponsiveContainerProps = Merge<\n CSSUIProps,\n Omit<Recharts.ResponsiveContainerProps, \"children\">\n>\nexport type AreaProps = Merge<\n Merge<CSSUIProps, Recharts.AreaProps>,\n {\n color: CSSUIProps[\"color\"]\n dot?: DotProps\n activeDot?: DotProps\n dimDot?: DotProps\n dimArea?: Partial<AreaProps>\n }\n>\nexport type LineProps = Merge<\n Merge<CSSUIProps, Recharts.LineProps>,\n {\n color: CSSUIProps[\"color\"]\n activeDot?: DotProps\n dot?: DotProps\n dimDot?: DotProps\n dimLine?: Partial<LineProps>\n }\n>\nexport type BarProps = Merge<\n Merge<CSSUIProps, Recharts.BarProps>,\n {\n color: CSSUIProps[\"color\"]\n activeBar?: Merge<SVGProps<SVGPathElement>, CSSUIProps>\n background?: Merge<SVGProps<SVGPathElement>, CSSUIProps>\n dimBar?: Partial<BarProps>\n }\n>\nexport type RadarProps = Merge<\n Merge<CSSUIProps, Recharts.RadarProps>,\n {\n color: CSSUIProps[\"color\"]\n dot?: DotProps\n activeDot?: DotProps\n dimDot?: DotProps\n dimRadar?: Partial<RadarProps>\n }\n>\nexport type PieProps = Merge<\n Merge<Pick<Recharts.PieProps, (typeof pieProperties)[number]>, CSSUIProps>,\n {\n activeShape?: Partial<PieProps>\n inactiveShape?: Partial<PieProps>\n label?: HTMLUIProps<\"text\">\n labelLine?: HTMLUIProps<\"path\">\n }\n>\nexport type CellProps = Merge<\n CSSUIProps,\n {\n name: string\n value: number\n dimCell?: Partial<CellProps>\n }\n>\nexport type DotProps = Merge<Omit<Recharts.DotProps, \"ref\">, CSSUIProps>\nexport type XAxisProps = Merge<\n Merge<CSSUIProps, Recharts.XAxisProps>,\n {\n color?: CSSUIProps[\"color\"]\n stroke?: CSSUIProps[\"color\"]\n fill?: CSSUIProps[\"color\"]\n }\n>\nexport type YAxisProps = Merge<\n Merge<CSSUIProps, Recharts.YAxisProps>,\n { color?: CSSUIProps[\"color\"] }\n>\nexport type LegendProps = Merge<CSSUIProps, Omit<Recharts.LegendProps, \"ref\">>\nexport type TooltipProps = Merge<\n Merge<CSSUIProps, Omit<Recharts.TooltipProps<any, any>, \"ref\">>,\n { cursor?: CSSUIProps }\n>\nexport type GridProps = Merge<CSSUIProps, Recharts.CartesianGridProps>\nexport type PolarGridProps = Merge<CSSUIProps, Recharts.PolarGridProps>\nexport type PolarAngleAxisProps = Merge<\n Recharts.PolarAngleAxisProps,\n CSSUIProps\n>\nexport type PolarRadiusAxisProps = Merge<\n CSSUIProps,\n Recharts.PolarRadiusAxisProps\n>\nexport type LabelProps = Merge<CSSUIProps, Recharts.LabelProps>\nexport type ChartTooltipProps = Recharts.TooltipProps<\n number | string | Array<number | string>,\n number | string\n>\nexport type ChartTooltip =\n | ReactElement\n | ((props: ChartTooltipProps) => ReactNode)\n"],"mappings":";;;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
|
package/dist/donut-chart.d.mts
CHANGED
package/dist/donut-chart.d.ts
CHANGED
package/dist/index.d.mts
CHANGED
@@ -6,7 +6,7 @@ export { RadarChart, RadarChartProps } from './radar-chart.mjs';
|
|
6
6
|
export { DonutChart, DonutChartProps } from './donut-chart.mjs';
|
7
7
|
export { PieChart, PieChartProps } from './pie-chart.mjs';
|
8
8
|
export { Cell as ChartCell } from 'recharts';
|
9
|
-
export { AreaChartType, AreaProps, BarChartType, BarProps, CellProps, ChartAxisType, ChartCurveType, ChartLayoutType, ChartTooltip, DotProps, LineProps, RadarProps, TooltipDataSourceType } from './chart.types.mjs';
|
9
|
+
export { AreaChartType, AreaProps, BarChartType, BarProps, CellProps, ChartAxisType, ChartCurveType, ChartLayoutType, ChartTooltip, ChartTooltipProps, DotProps, LineProps, RadarProps, TooltipDataSourceType } from './chart.types.mjs';
|
10
10
|
import '@yamada-ui/core';
|
11
11
|
import './use-chart.mjs';
|
12
12
|
import 'react';
|
@@ -24,3 +24,4 @@ import './area-chart-gradient.mjs';
|
|
24
24
|
import './area-chart-split.mjs';
|
25
25
|
import './use-radar-chart.mjs';
|
26
26
|
import './use-pie-chart.mjs';
|
27
|
+
import './rechart-properties.mjs';
|
package/dist/index.d.ts
CHANGED
@@ -6,7 +6,7 @@ export { RadarChart, RadarChartProps } from './radar-chart.js';
|
|
6
6
|
export { DonutChart, DonutChartProps } from './donut-chart.js';
|
7
7
|
export { PieChart, PieChartProps } from './pie-chart.js';
|
8
8
|
export { Cell as ChartCell } from 'recharts';
|
9
|
-
export { AreaChartType, AreaProps, BarChartType, BarProps, CellProps, ChartAxisType, ChartCurveType, ChartLayoutType, ChartTooltip, DotProps, LineProps, RadarProps, TooltipDataSourceType } from './chart.types.js';
|
9
|
+
export { AreaChartType, AreaProps, BarChartType, BarProps, CellProps, ChartAxisType, ChartCurveType, ChartLayoutType, ChartTooltip, ChartTooltipProps, DotProps, LineProps, RadarProps, TooltipDataSourceType } from './chart.types.js';
|
10
10
|
import '@yamada-ui/core';
|
11
11
|
import './use-chart.js';
|
12
12
|
import 'react';
|
@@ -24,3 +24,4 @@ import './area-chart-gradient.js';
|
|
24
24
|
import './area-chart-split.js';
|
25
25
|
import './use-radar-chart.js';
|
26
26
|
import './use-pie-chart.js';
|
27
|
+
import './rechart-properties.js';
|