@yamada-ui/charts 1.5.9 → 1.5.10-dev-20241203042057
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/chart.types.d.mts
CHANGED
@@ -97,8 +97,15 @@ interface LabelProps extends Merge<CSSUIProps, Omit<Recharts.LabelProps, "fill">
|
|
97
97
|
}
|
98
98
|
interface LabelListProps extends Merge<Recharts.LabelListProps<Dict>, Omit<CSSUIProps, "position">> {
|
99
99
|
}
|
100
|
-
type
|
101
|
-
type
|
100
|
+
type ValueType = (number | string)[] | number | string;
|
101
|
+
type NameType = number | string;
|
102
|
+
type Payload<Y extends ValueType = ValueType, M extends NameType = NameType> = {
|
103
|
+
[key: string]: any;
|
104
|
+
} & Required<Recharts.TooltipProps<Y, M>>["payload"][number];
|
105
|
+
type ChartTooltipProps<Y extends ValueType = ValueType, M extends NameType = NameType> = {
|
106
|
+
payload?: Payload<Y, M>[];
|
107
|
+
} & Omit<Recharts.TooltipProps<Y, M>, "payload">;
|
108
|
+
type ChartTooltip<Y extends ValueType = ValueType, M extends NameType = NameType> = ((props: ChartTooltipProps<Y, M>) => ReactNode) | ReactElement;
|
102
109
|
interface ChartLabelProps extends Omit<React.SVGProps<SVGTextElement>, "fill" | "offset" | "viewBox">, LabelProps {
|
103
110
|
}
|
104
111
|
type ChartLabel = ((props: ChartLabelProps) => ReactNode) | ReactElement;
|
package/dist/chart.types.d.ts
CHANGED
@@ -97,8 +97,15 @@ interface LabelProps extends Merge<CSSUIProps, Omit<Recharts.LabelProps, "fill">
|
|
97
97
|
}
|
98
98
|
interface LabelListProps extends Merge<Recharts.LabelListProps<Dict>, Omit<CSSUIProps, "position">> {
|
99
99
|
}
|
100
|
-
type
|
101
|
-
type
|
100
|
+
type ValueType = (number | string)[] | number | string;
|
101
|
+
type NameType = number | string;
|
102
|
+
type Payload<Y extends ValueType = ValueType, M extends NameType = NameType> = {
|
103
|
+
[key: string]: any;
|
104
|
+
} & Required<Recharts.TooltipProps<Y, M>>["payload"][number];
|
105
|
+
type ChartTooltipProps<Y extends ValueType = ValueType, M extends NameType = NameType> = {
|
106
|
+
payload?: Payload<Y, M>[];
|
107
|
+
} & Omit<Recharts.TooltipProps<Y, M>, "payload">;
|
108
|
+
type ChartTooltip<Y extends ValueType = ValueType, M extends NameType = NameType> = ((props: ChartTooltipProps<Y, M>) => ReactNode) | ReactElement;
|
102
109
|
interface ChartLabelProps extends Omit<React.SVGProps<SVGTextElement>, "fill" | "offset" | "viewBox">, LabelProps {
|
103
110
|
}
|
104
111
|
type ChartLabel = ((props: ChartLabelProps) => ReactNode) | ReactElement;
|
package/dist/chart.types.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../src/chart.types.ts"],"sourcesContent":["import type { CSSUIProps, HTMLUIProps } from \"@yamada-ui/core\"\nimport type { Dict, 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 ChartLayoutType = \"horizontal\" | \"vertical\"\nexport type AreaChartType = \"default\" | \"percent\" | \"split\" | \"stacked\"\nexport type BarChartType = Exclude<AreaChartType, \"split\">\nexport type ChartAxisType = \"none\" | \"x\" | \"xy\" | \"y\"\nexport type ChartCurveType =\n | \"bump\"\n | \"linear\"\n | \"monotone\"\n | \"natural\"\n | \"step\"\n | \"stepAfter\"\n | \"stepBefore\"\nexport type TooltipDataSourceType = \"all\" | \"segment\"\n\nexport interface AreaChartProps\n extends Merge<\n CSSUIProps,\n ComponentPropsWithoutRef<typeof Recharts.AreaChart>\n > {}\nexport interface BarChartProps\n extends Merge<\n CSSUIProps,\n ComponentPropsWithoutRef<typeof Recharts.BarChart>\n > {}\nexport interface LineChartProps\n extends Merge<\n CSSUIProps,\n ComponentPropsWithoutRef<typeof Recharts.LineChart>\n > {}\nexport interface RadarChartProps\n extends Merge<\n CSSUIProps,\n ComponentPropsWithoutRef<typeof Recharts.RadarChart>\n > {}\nexport interface PieChartProps\n extends Merge<\n CSSUIProps,\n ComponentPropsWithoutRef<typeof Recharts.PieChart>\n > {}\nexport interface RadialChartProps\n extends Merge<\n CSSUIProps,\n ComponentPropsWithoutRef<typeof Recharts.RadialBarChart>\n > {}\nexport interface ReferenceLineProps\n extends Merge<CSSUIProps, Recharts.ReferenceLineProps> {}\nexport interface ResponsiveContainerProps\n extends Merge<\n CSSUIProps,\n Omit<Recharts.ResponsiveContainerProps, \"children\">\n > {}\nexport interface AreaProps\n extends Merge<\n Merge<CSSUIProps, Recharts.AreaProps>,\n {\n color: CSSUIProps[\"color\"]\n activeDot?: DotProps\n dimArea?: Partial<AreaProps>\n dimDot?: DotProps\n dot?: DotProps\n }\n > {}\nexport interface LineProps\n extends Merge<\n Merge<CSSUIProps, Recharts.LineProps>,\n {\n color: CSSUIProps[\"color\"]\n activeDot?: DotProps\n dimDot?: DotProps\n dimLine?: Partial<LineProps>\n dot?: DotProps\n }\n > {}\nexport interface BarProps\n extends 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 interface RadarProps\n extends Merge<\n Merge<CSSUIProps, Recharts.RadarProps>,\n {\n color: CSSUIProps[\"color\"]\n activeDot?: DotProps\n dimDot?: DotProps\n dimRadar?: Partial<RadarProps>\n dot?: DotProps\n }\n > {}\nexport interface PieProps\n extends Merge<\n Merge<Recharts.PieProps, CSSUIProps>,\n {\n activeShape?: Partial<PieProps>\n inactiveShape?: Partial<PieProps>\n label?: HTMLUIProps<\"text\">\n labelLine?: HTMLUIProps<\"path\">\n }\n > {}\nexport interface CellProps extends CSSUIProps {\n name: string\n value: number\n dimCell?: Partial<CellProps>\n}\nexport interface RadialBarProps\n extends Merge<\n Merge<Recharts.RadialBarProps, CSSUIProps>,\n {\n background?: Partial<RadialBarProps>\n dimRadialBar?: CSSUIProps\n }\n > {}\nexport interface DotProps\n extends Merge<Omit<Recharts.DotProps, \"ref\">, CSSUIProps> {}\nexport interface XAxisProps\n extends Merge<\n CSSUIProps,\n Omit<Recharts.XAxisProps, \"color\" | \"fill\" | \"stroke\">\n > {}\nexport interface YAxisProps\n extends Merge<CSSUIProps, Omit<Recharts.YAxisProps, \"color\">> {}\nexport interface LegendProps\n extends Merge<CSSUIProps, Omit<Recharts.LegendProps, \"ref\">> {}\nexport interface TooltipProps\n extends Merge<\n Merge<CSSUIProps, Omit<Recharts.TooltipProps<any, any>, \"ref\">>,\n { cursor?: CSSUIProps }\n > {}\nexport interface GridProps\n extends Merge<CSSUIProps, Recharts.CartesianGridProps> {}\nexport interface PolarGridProps\n extends Merge<CSSUIProps, Recharts.PolarGridProps> {}\nexport interface PolarAngleAxisProps\n extends Merge<Recharts.PolarAngleAxisProps, CSSUIProps> {}\nexport interface PolarRadiusAxisProps\n extends Merge<CSSUIProps, Recharts.PolarRadiusAxisProps> {}\nexport interface LabelProps\n extends Merge<CSSUIProps, Omit<Recharts.LabelProps, \"fill\">> {}\nexport interface LabelListProps\n extends Merge<Recharts.LabelListProps<Dict>, Omit<CSSUIProps, \"position\">> {}\
|
1
|
+
{"version":3,"sources":["../src/chart.types.ts"],"sourcesContent":["import type { CSSUIProps, HTMLUIProps } from \"@yamada-ui/core\"\nimport type { Dict, 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 ChartLayoutType = \"horizontal\" | \"vertical\"\nexport type AreaChartType = \"default\" | \"percent\" | \"split\" | \"stacked\"\nexport type BarChartType = Exclude<AreaChartType, \"split\">\nexport type ChartAxisType = \"none\" | \"x\" | \"xy\" | \"y\"\nexport type ChartCurveType =\n | \"bump\"\n | \"linear\"\n | \"monotone\"\n | \"natural\"\n | \"step\"\n | \"stepAfter\"\n | \"stepBefore\"\nexport type TooltipDataSourceType = \"all\" | \"segment\"\n\nexport interface AreaChartProps\n extends Merge<\n CSSUIProps,\n ComponentPropsWithoutRef<typeof Recharts.AreaChart>\n > {}\nexport interface BarChartProps\n extends Merge<\n CSSUIProps,\n ComponentPropsWithoutRef<typeof Recharts.BarChart>\n > {}\nexport interface LineChartProps\n extends Merge<\n CSSUIProps,\n ComponentPropsWithoutRef<typeof Recharts.LineChart>\n > {}\nexport interface RadarChartProps\n extends Merge<\n CSSUIProps,\n ComponentPropsWithoutRef<typeof Recharts.RadarChart>\n > {}\nexport interface PieChartProps\n extends Merge<\n CSSUIProps,\n ComponentPropsWithoutRef<typeof Recharts.PieChart>\n > {}\nexport interface RadialChartProps\n extends Merge<\n CSSUIProps,\n ComponentPropsWithoutRef<typeof Recharts.RadialBarChart>\n > {}\nexport interface ReferenceLineProps\n extends Merge<CSSUIProps, Recharts.ReferenceLineProps> {}\nexport interface ResponsiveContainerProps\n extends Merge<\n CSSUIProps,\n Omit<Recharts.ResponsiveContainerProps, \"children\">\n > {}\nexport interface AreaProps\n extends Merge<\n Merge<CSSUIProps, Recharts.AreaProps>,\n {\n color: CSSUIProps[\"color\"]\n activeDot?: DotProps\n dimArea?: Partial<AreaProps>\n dimDot?: DotProps\n dot?: DotProps\n }\n > {}\nexport interface LineProps\n extends Merge<\n Merge<CSSUIProps, Recharts.LineProps>,\n {\n color: CSSUIProps[\"color\"]\n activeDot?: DotProps\n dimDot?: DotProps\n dimLine?: Partial<LineProps>\n dot?: DotProps\n }\n > {}\nexport interface BarProps\n extends 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 interface RadarProps\n extends Merge<\n Merge<CSSUIProps, Recharts.RadarProps>,\n {\n color: CSSUIProps[\"color\"]\n activeDot?: DotProps\n dimDot?: DotProps\n dimRadar?: Partial<RadarProps>\n dot?: DotProps\n }\n > {}\nexport interface PieProps\n extends Merge<\n Merge<Recharts.PieProps, CSSUIProps>,\n {\n activeShape?: Partial<PieProps>\n inactiveShape?: Partial<PieProps>\n label?: HTMLUIProps<\"text\">\n labelLine?: HTMLUIProps<\"path\">\n }\n > {}\nexport interface CellProps extends CSSUIProps {\n name: string\n value: number\n dimCell?: Partial<CellProps>\n}\nexport interface RadialBarProps\n extends Merge<\n Merge<Recharts.RadialBarProps, CSSUIProps>,\n {\n background?: Partial<RadialBarProps>\n dimRadialBar?: CSSUIProps\n }\n > {}\nexport interface DotProps\n extends Merge<Omit<Recharts.DotProps, \"ref\">, CSSUIProps> {}\nexport interface XAxisProps\n extends Merge<\n CSSUIProps,\n Omit<Recharts.XAxisProps, \"color\" | \"fill\" | \"stroke\">\n > {}\nexport interface YAxisProps\n extends Merge<CSSUIProps, Omit<Recharts.YAxisProps, \"color\">> {}\nexport interface LegendProps\n extends Merge<CSSUIProps, Omit<Recharts.LegendProps, \"ref\">> {}\nexport interface TooltipProps\n extends Merge<\n Merge<CSSUIProps, Omit<Recharts.TooltipProps<any, any>, \"ref\">>,\n { cursor?: CSSUIProps }\n > {}\nexport interface GridProps\n extends Merge<CSSUIProps, Recharts.CartesianGridProps> {}\nexport interface PolarGridProps\n extends Merge<CSSUIProps, Recharts.PolarGridProps> {}\nexport interface PolarAngleAxisProps\n extends Merge<Recharts.PolarAngleAxisProps, CSSUIProps> {}\nexport interface PolarRadiusAxisProps\n extends Merge<CSSUIProps, Recharts.PolarRadiusAxisProps> {}\nexport interface LabelProps\n extends Merge<CSSUIProps, Omit<Recharts.LabelProps, \"fill\">> {}\nexport interface LabelListProps\n extends Merge<Recharts.LabelListProps<Dict>, Omit<CSSUIProps, \"position\">> {}\ntype ValueType = (number | string)[] | number | string\ntype NameType = number | string\ntype Payload<Y extends ValueType = ValueType, M extends NameType = NameType> = {\n [key: string]: any\n} & Required<Recharts.TooltipProps<Y, M>>[\"payload\"][number]\nexport type ChartTooltipProps<\n Y extends ValueType = ValueType,\n M extends NameType = NameType,\n> = {\n payload?: Payload<Y, M>[]\n} & Omit<Recharts.TooltipProps<Y, M>, \"payload\">\nexport type ChartTooltip<\n Y extends ValueType = ValueType,\n M extends NameType = NameType,\n> = ((props: ChartTooltipProps<Y, M>) => ReactNode) | ReactElement\nexport interface ChartLabelProps\n extends Omit<React.SVGProps<SVGTextElement>, \"fill\" | \"offset\" | \"viewBox\">,\n LabelProps {}\nexport type ChartLabel = ((props: ChartLabelProps) => ReactNode) | ReactElement\n"],"mappings":";;;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
|