@yamada-ui/charts 1.1.2-next-20240429233030 → 1.1.2
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/package.json +5 -5
- package/dist/area-chart-gradient.d.mts +0 -11
- package/dist/area-chart-gradient.d.ts +0 -11
- package/dist/area-chart-gradient.js +0 -47
- package/dist/area-chart-gradient.js.map +0 -1
- package/dist/area-chart-gradient.mjs +0 -8
- package/dist/area-chart-gradient.mjs.map +0 -1
- package/dist/area-chart-split.d.mts +0 -10
- package/dist/area-chart-split.d.ts +0 -10
- package/dist/area-chart-split.js +0 -52
- package/dist/area-chart-split.js.map +0 -1
- package/dist/area-chart-split.mjs +0 -8
- package/dist/area-chart-split.mjs.map +0 -1
- package/dist/area-chart.d.mts +0 -41
- package/dist/area-chart.d.ts +0 -41
- package/dist/area-chart.js +0 -1223
- package/dist/area-chart.js.map +0 -1
- package/dist/area-chart.mjs +0 -21
- package/dist/area-chart.mjs.map +0 -1
- package/dist/bar-chart.d.mts +0 -38
- package/dist/bar-chart.d.ts +0 -38
- package/dist/bar-chart.js +0 -1027
- package/dist/bar-chart.js.map +0 -1
- package/dist/bar-chart.mjs +0 -19
- package/dist/bar-chart.mjs.map +0 -1
- package/dist/chart-legend.d.mts +0 -12
- package/dist/chart-legend.d.ts +0 -12
- package/dist/chart-legend.js +0 -90
- package/dist/chart-legend.js.map +0 -1
- package/dist/chart-legend.mjs +0 -11
- package/dist/chart-legend.mjs.map +0 -1
- package/dist/chart-tooltip.d.mts +0 -12
- package/dist/chart-tooltip.d.ts +0 -12
- package/dist/chart-tooltip.js +0 -121
- package/dist/chart-tooltip.js.map +0 -1
- package/dist/chart-tooltip.mjs +0 -11
- package/dist/chart-tooltip.mjs.map +0 -1
- package/dist/chart-utils.d.mts +0 -9
- package/dist/chart-utils.d.ts +0 -9
- package/dist/chart-utils.js +0 -45
- package/dist/chart-utils.js.map +0 -1
- package/dist/chart-utils.mjs +0 -10
- package/dist/chart-utils.mjs.map +0 -1
- package/dist/chart.types.d.mts +0 -78
- package/dist/chart.types.d.ts +0 -78
- package/dist/chart.types.js +0 -20
- package/dist/chart.types.js.map +0 -1
- package/dist/chart.types.mjs +0 -2
- package/dist/chart.types.mjs.map +0 -1
- package/dist/chunk-4WX5YS7M.mjs +0 -179
- package/dist/chunk-4WX5YS7M.mjs.map +0 -1
- package/dist/chunk-5TVYPA64.mjs +0 -256
- package/dist/chunk-5TVYPA64.mjs.map +0 -1
- package/dist/chunk-BPR7YL3O.mjs +0 -179
- package/dist/chunk-BPR7YL3O.mjs.map +0 -1
- package/dist/chunk-E2I2XAZ6.mjs +0 -232
- package/dist/chunk-E2I2XAZ6.mjs.map +0 -1
- package/dist/chunk-HDOYOHLA.mjs +0 -326
- package/dist/chunk-HDOYOHLA.mjs.map +0 -1
- package/dist/chunk-KNAADLWO.mjs +0 -225
- package/dist/chunk-KNAADLWO.mjs.map +0 -1
- package/dist/chunk-KT4YOMM4.mjs +0 -344
- package/dist/chunk-KT4YOMM4.mjs.map +0 -1
- package/dist/chunk-LBC2B6UX.mjs +0 -84
- package/dist/chunk-LBC2B6UX.mjs.map +0 -1
- package/dist/chunk-LGMALZCN.mjs +0 -42
- package/dist/chunk-LGMALZCN.mjs.map +0 -1
- package/dist/chunk-LHI57S6P.mjs +0 -215
- package/dist/chunk-LHI57S6P.mjs.map +0 -1
- package/dist/chunk-LM2DQK2P.mjs +0 -33
- package/dist/chunk-LM2DQK2P.mjs.map +0 -1
- package/dist/chunk-MSIOYYWR.mjs +0 -24
- package/dist/chunk-MSIOYYWR.mjs.map +0 -1
- package/dist/chunk-MWPICUEW.mjs +0 -56
- package/dist/chunk-MWPICUEW.mjs.map +0 -1
- package/dist/chunk-NEGDEVRX.mjs +0 -53
- package/dist/chunk-NEGDEVRX.mjs.map +0 -1
- package/dist/chunk-OSNFBRHL.mjs +0 -474
- package/dist/chunk-OSNFBRHL.mjs.map +0 -1
- package/dist/chunk-OW7SOTEF.mjs +0 -206
- package/dist/chunk-OW7SOTEF.mjs.map +0 -1
- package/dist/chunk-P7AFSM5W.mjs +0 -114
- package/dist/chunk-P7AFSM5W.mjs.map +0 -1
- package/dist/chunk-PNE3JG54.mjs +0 -29
- package/dist/chunk-PNE3JG54.mjs.map +0 -1
- package/dist/chunk-QL3DB7OJ.mjs +0 -21
- package/dist/chunk-QL3DB7OJ.mjs.map +0 -1
- package/dist/chunk-QZ5OXZ6Z.mjs +0 -251
- package/dist/chunk-QZ5OXZ6Z.mjs.map +0 -1
- package/dist/chunk-RN6PXJAD.mjs +0 -47
- package/dist/chunk-RN6PXJAD.mjs.map +0 -1
- package/dist/chunk-STBYRLC5.mjs +0 -208
- package/dist/chunk-STBYRLC5.mjs.map +0 -1
- package/dist/chunk-XIFDRM7J.mjs +0 -56
- package/dist/chunk-XIFDRM7J.mjs.map +0 -1
- package/dist/donut-chart.d.mts +0 -31
- package/dist/donut-chart.d.ts +0 -31
- package/dist/donut-chart.js +0 -702
- package/dist/donut-chart.js.map +0 -1
- package/dist/donut-chart.mjs +0 -16
- package/dist/donut-chart.mjs.map +0 -1
- package/dist/index.d.mts +0 -26
- package/dist/index.d.ts +0 -26
- package/dist/index.js +0 -3228
- package/dist/index.js.map +0 -1
- package/dist/index.mjs +0 -45
- package/dist/index.mjs.map +0 -1
- package/dist/line-chart.d.mts +0 -38
- package/dist/line-chart.d.ts +0 -38
- package/dist/line-chart.js +0 -1088
- package/dist/line-chart.js.map +0 -1
- package/dist/line-chart.mjs +0 -19
- package/dist/line-chart.mjs.map +0 -1
- package/dist/pie-chart.d.mts +0 -49
- package/dist/pie-chart.d.ts +0 -49
- package/dist/pie-chart.js +0 -702
- package/dist/pie-chart.js.map +0 -1
- package/dist/pie-chart.mjs +0 -16
- package/dist/pie-chart.mjs.map +0 -1
- package/dist/radar-chart.d.mts +0 -57
- package/dist/radar-chart.d.ts +0 -57
- package/dist/radar-chart.js +0 -918
- package/dist/radar-chart.js.map +0 -1
- package/dist/radar-chart.mjs +0 -16
- package/dist/radar-chart.mjs.map +0 -1
- package/dist/rechart-properties.d.mts +0 -26
- package/dist/rechart-properties.d.ts +0 -26
- package/dist/rechart-properties.js +0 -517
- package/dist/rechart-properties.js.map +0 -1
- package/dist/rechart-properties.mjs +0 -48
- package/dist/rechart-properties.mjs.map +0 -1
- package/dist/use-area-chart.d.mts +0 -123
- package/dist/use-area-chart.d.ts +0 -123
- package/dist/use-area-chart.js +0 -420
- package/dist/use-area-chart.js.map +0 -1
- package/dist/use-area-chart.mjs +0 -10
- package/dist/use-area-chart.mjs.map +0 -1
- package/dist/use-bar-chart.d.mts +0 -73
- package/dist/use-bar-chart.d.ts +0 -73
- package/dist/use-bar-chart.js +0 -290
- package/dist/use-bar-chart.js.map +0 -1
- package/dist/use-bar-chart.mjs +0 -10
- package/dist/use-bar-chart.mjs.map +0 -1
- package/dist/use-chart-axis.d.mts +0 -73
- package/dist/use-chart-axis.d.ts +0 -73
- package/dist/use-chart-axis.js +0 -227
- package/dist/use-chart-axis.js.map +0 -1
- package/dist/use-chart-axis.mjs +0 -10
- package/dist/use-chart-axis.mjs.map +0 -1
- package/dist/use-chart-grid.d.mts +0 -32
- package/dist/use-chart-grid.d.ts +0 -32
- package/dist/use-chart-grid.js +0 -92
- package/dist/use-chart-grid.js.map +0 -1
- package/dist/use-chart-grid.mjs +0 -10
- package/dist/use-chart-grid.mjs.map +0 -1
- package/dist/use-chart-legend.d.mts +0 -18
- package/dist/use-chart-legend.d.ts +0 -18
- package/dist/use-chart-legend.js +0 -81
- package/dist/use-chart-legend.js.map +0 -1
- package/dist/use-chart-legend.mjs +0 -9
- package/dist/use-chart-legend.mjs.map +0 -1
- package/dist/use-chart-reference-line.d.mts +0 -22
- package/dist/use-chart-reference-line.d.ts +0 -22
- package/dist/use-chart-reference-line.js +0 -105
- package/dist/use-chart-reference-line.js.map +0 -1
- package/dist/use-chart-reference-line.mjs +0 -10
- package/dist/use-chart-reference-line.mjs.map +0 -1
- package/dist/use-chart-tooltip.d.mts +0 -27
- package/dist/use-chart-tooltip.d.ts +0 -27
- package/dist/use-chart-tooltip.js +0 -100
- package/dist/use-chart-tooltip.js.map +0 -1
- package/dist/use-chart-tooltip.mjs +0 -10
- package/dist/use-chart-tooltip.mjs.map +0 -1
- package/dist/use-chart.d.mts +0 -33
- package/dist/use-chart.d.ts +0 -33
- package/dist/use-chart.js +0 -104
- package/dist/use-chart.js.map +0 -1
- package/dist/use-chart.mjs +0 -18
- package/dist/use-chart.mjs.map +0 -1
- package/dist/use-line-chart.d.mts +0 -97
- package/dist/use-line-chart.d.ts +0 -97
- package/dist/use-line-chart.js +0 -344
- package/dist/use-line-chart.js.map +0 -1
- package/dist/use-line-chart.mjs +0 -10
- package/dist/use-line-chart.mjs.map +0 -1
- package/dist/use-pie-chart.d.mts +0 -112
- package/dist/use-pie-chart.d.ts +0 -112
- package/dist/use-pie-chart.js +0 -282
- package/dist/use-pie-chart.js.map +0 -1
- package/dist/use-pie-chart.mjs +0 -10
- package/dist/use-pie-chart.mjs.map +0 -1
- package/dist/use-radar-chart.d.mts +0 -105
- package/dist/use-radar-chart.d.ts +0 -105
- package/dist/use-radar-chart.js +0 -473
- package/dist/use-radar-chart.js.map +0 -1
- package/dist/use-radar-chart.mjs +0 -10
- package/dist/use-radar-chart.mjs.map +0 -1
package/dist/use-chart.d.ts
DELETED
@@ -1,33 +0,0 @@
|
|
1
|
-
import * as react from 'react';
|
2
|
-
import { CSSUIObject } from '@yamada-ui/core';
|
3
|
-
import * as Recharts from 'recharts';
|
4
|
-
import { ResponsiveContainerProps, ChartPropGetter } from './chart.types.js';
|
5
|
-
import '@yamada-ui/utils';
|
6
|
-
|
7
|
-
type ChartContext = {
|
8
|
-
styles: Record<string, CSSUIObject>;
|
9
|
-
};
|
10
|
-
declare const ChartProvider: react.Provider<ChartContext>;
|
11
|
-
declare const useChartContext: () => ChartContext;
|
12
|
-
type UseChartProps = {
|
13
|
-
/**
|
14
|
-
* Props passed down to recharts `ResponsiveContainer` component.
|
15
|
-
*/
|
16
|
-
containerProps?: ResponsiveContainerProps;
|
17
|
-
};
|
18
|
-
declare const useChart: ({ containerProps }: UseChartProps) => {
|
19
|
-
getContainerProps: ChartPropGetter<"div", Partial<Omit<Recharts.ResponsiveContainerProps, "children">>, Omit<Recharts.ResponsiveContainerProps, "children">>;
|
20
|
-
};
|
21
|
-
type UseChartReturn = ReturnType<typeof useChart>;
|
22
|
-
type UseLegendProps = {};
|
23
|
-
declare const useLegend: ({}?: UseLegendProps) => {
|
24
|
-
styles: Record<string, CSSUIObject>;
|
25
|
-
};
|
26
|
-
type UseLegendReturn = ReturnType<typeof useLegend>;
|
27
|
-
type UseTooltipProps = {};
|
28
|
-
declare const useTooltip: ({}?: UseTooltipProps) => {
|
29
|
-
styles: Record<string, CSSUIObject>;
|
30
|
-
};
|
31
|
-
type UseTooltipReturn = ReturnType<typeof useTooltip>;
|
32
|
-
|
33
|
-
export { ChartProvider, type UseChartProps, type UseChartReturn, type UseLegendProps, type UseLegendReturn, type UseTooltipProps, type UseTooltipReturn, useChart, useChartContext, useLegend, useTooltip };
|
package/dist/use-chart.js
DELETED
@@ -1,104 +0,0 @@
|
|
1
|
-
"use client"
|
2
|
-
"use strict";
|
3
|
-
var __defProp = Object.defineProperty;
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
7
|
-
var __export = (target, all) => {
|
8
|
-
for (var name in all)
|
9
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
10
|
-
};
|
11
|
-
var __copyProps = (to, from, except, desc) => {
|
12
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
13
|
-
for (let key of __getOwnPropNames(from))
|
14
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
15
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
16
|
-
}
|
17
|
-
return to;
|
18
|
-
};
|
19
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
20
|
-
|
21
|
-
// src/use-chart.ts
|
22
|
-
var use_chart_exports = {};
|
23
|
-
__export(use_chart_exports, {
|
24
|
-
ChartProvider: () => ChartProvider,
|
25
|
-
useChart: () => useChart,
|
26
|
-
useChartContext: () => useChartContext,
|
27
|
-
useLegend: () => useLegend,
|
28
|
-
useTooltip: () => useTooltip
|
29
|
-
});
|
30
|
-
module.exports = __toCommonJS(use_chart_exports);
|
31
|
-
var import_core2 = require("@yamada-ui/core");
|
32
|
-
var import_utils2 = require("@yamada-ui/utils");
|
33
|
-
var import_react = require("react");
|
34
|
-
|
35
|
-
// src/chart-utils.ts
|
36
|
-
var import_core = require("@yamada-ui/core");
|
37
|
-
var import_utils = require("@yamada-ui/utils");
|
38
|
-
var getClassName = (...styles) => (theme) => (0, import_utils.cx)(
|
39
|
-
...styles.map(
|
40
|
-
(style) => (0, import_utils.isString)(style) ? style : (0, import_core.getCSS)(style)(theme)
|
41
|
-
)
|
42
|
-
);
|
43
|
-
var getComponentProps = ([obj, keys], ...props) => (theme, isContain) => {
|
44
|
-
const [pickedProps, omittedProps] = (0, import_utils.splitObject)(obj, keys);
|
45
|
-
const className = getClassName(...props, omittedProps)(theme);
|
46
|
-
return !isContain ? [pickedProps, className] : { ...pickedProps, className };
|
47
|
-
};
|
48
|
-
|
49
|
-
// src/rechart-properties.ts
|
50
|
-
var containerProperties = [
|
51
|
-
"aspect",
|
52
|
-
"width",
|
53
|
-
"height",
|
54
|
-
"minWidth",
|
55
|
-
"minHeight",
|
56
|
-
"debounce",
|
57
|
-
"onResize"
|
58
|
-
];
|
59
|
-
|
60
|
-
// src/use-chart.ts
|
61
|
-
var [ChartProvider, useChartContext] = (0, import_utils2.createContext)({
|
62
|
-
name: "ChartContext",
|
63
|
-
errorMessage: `useChartContext returned is 'undefined'. Seems you forgot to wrap the components in "<LineChart />" or "<BarChart />" etc.`
|
64
|
-
});
|
65
|
-
var useChart = ({ containerProps = {} }) => {
|
66
|
-
const { theme } = (0, import_core2.useTheme)();
|
67
|
-
const [reChartsProps, propClassName] = getComponentProps([
|
68
|
-
containerProps,
|
69
|
-
containerProperties
|
70
|
-
])(theme);
|
71
|
-
const getContainerProps = (0, import_react.useCallback)(
|
72
|
-
({ className, ...props } = {}, ref = null) => ({
|
73
|
-
ref,
|
74
|
-
className: (0, import_utils2.cx)("ui-chart__container", className, propClassName),
|
75
|
-
...props,
|
76
|
-
...reChartsProps
|
77
|
-
}),
|
78
|
-
[propClassName, reChartsProps]
|
79
|
-
);
|
80
|
-
return {
|
81
|
-
getContainerProps
|
82
|
-
};
|
83
|
-
};
|
84
|
-
var useLegend = ({} = {}) => {
|
85
|
-
const { styles } = useChartContext();
|
86
|
-
return {
|
87
|
-
styles
|
88
|
-
};
|
89
|
-
};
|
90
|
-
var useTooltip = ({} = {}) => {
|
91
|
-
const { styles } = useChartContext();
|
92
|
-
return {
|
93
|
-
styles
|
94
|
-
};
|
95
|
-
};
|
96
|
-
// Annotate the CommonJS export names for ESM import in node:
|
97
|
-
0 && (module.exports = {
|
98
|
-
ChartProvider,
|
99
|
-
useChart,
|
100
|
-
useChartContext,
|
101
|
-
useLegend,
|
102
|
-
useTooltip
|
103
|
-
});
|
104
|
-
//# sourceMappingURL=use-chart.js.map
|
package/dist/use-chart.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["../src/use-chart.ts","../src/chart-utils.ts","../src/rechart-properties.ts"],"sourcesContent":["import { useTheme, type CSSUIObject } from \"@yamada-ui/core\"\nimport type { Dict } from \"@yamada-ui/utils\"\nimport { createContext, cx } from \"@yamada-ui/utils\"\nimport { useCallback } from \"react\"\nimport type * as Recharts from \"recharts\"\nimport { getComponentProps } from \"./chart-utils\"\nimport type { ChartPropGetter, ResponsiveContainerProps } from \"./chart.types\"\nimport { containerProperties } from \"./rechart-properties\"\n\ntype ChartContext = { styles: Record<string, CSSUIObject> }\n\nexport const [ChartProvider, useChartContext] = createContext<ChartContext>({\n name: \"ChartContext\",\n errorMessage: `useChartContext returned is 'undefined'. Seems you forgot to wrap the components in \"<LineChart />\" or \"<BarChart />\" etc.`,\n})\n\nexport type UseChartProps = {\n /**\n * Props passed down to recharts `ResponsiveContainer` component.\n */\n containerProps?: ResponsiveContainerProps\n}\n\nexport const useChart = ({ containerProps = {} }: UseChartProps) => {\n const { theme } = useTheme()\n const [reChartsProps, propClassName] = getComponentProps<Dict, string>([\n containerProps,\n containerProperties,\n ])(theme)\n\n const getContainerProps: ChartPropGetter<\n \"div\",\n Partial<Omit<Recharts.ResponsiveContainerProps, \"children\">>,\n Omit<Recharts.ResponsiveContainerProps, \"children\">\n > = useCallback(\n ({ className, ...props } = {}, ref = null) => ({\n ref,\n className: cx(\"ui-chart__container\", className as string, propClassName),\n ...props,\n ...reChartsProps,\n }),\n [propClassName, reChartsProps],\n )\n\n return {\n getContainerProps,\n }\n}\n\nexport type UseChartReturn = ReturnType<typeof useChart>\n\nexport type UseLegendProps = {}\n\nexport const useLegend = ({}: UseLegendProps = {}) => {\n const { styles } = useChartContext()\n return {\n styles,\n }\n}\nexport type UseLegendReturn = ReturnType<typeof useLegend>\n\nexport type UseTooltipProps = {}\n\nexport const useTooltip = ({}: UseTooltipProps = {}) => {\n const { styles } = useChartContext()\n return {\n styles,\n }\n}\nexport type UseTooltipReturn = ReturnType<typeof useTooltip>\n","import type { StyledTheme } from \"@yamada-ui/core\"\nimport { getCSS } from \"@yamada-ui/core\"\nimport type { Dict } from \"@yamada-ui/utils\"\nimport { cx, isString, splitObject } from \"@yamada-ui/utils\"\n\nexport const getClassName =\n (...styles: (Dict | string | undefined)[]) =>\n (theme: StyledTheme) =>\n cx(\n ...styles.map((style) =>\n isString(style) ? style : getCSS(style)(theme),\n ),\n )\n\nexport const getComponentProps =\n <T extends Dict, K extends keyof T>(\n [obj, keys]: [T, K[]],\n ...props: (Dict | string | undefined)[]\n ) =>\n <P extends boolean = false>(theme: StyledTheme, isContain?: P) => {\n const [pickedProps, omittedProps] = splitObject<T, K>(obj, keys)\n const className = getClassName(...props, omittedProps)(theme)\n\n return (\n !isContain ? [pickedProps, className] : { ...pickedProps, className }\n ) as P extends false\n ? [{ [P in K]: T[P] }, string]\n : { [P in K]: T[P] } & { className: string }\n }\n","import type { ComponentPropsWithoutRef } from \"react\"\nimport type * as Recharts from \"recharts\"\n\nexport const areaChartProperties: (keyof ComponentPropsWithoutRef<\n typeof Recharts.AreaChart\n>)[] = [\n \"layout\",\n \"syncId\",\n \"syncMethod\",\n \"width\",\n \"height\",\n \"data\",\n \"margin\",\n \"stackOffset\",\n \"onClick\",\n \"onMouseEnter\",\n \"onMouseMove\",\n \"onMouseLeave\",\n]\n\nexport const barChartProperties: (keyof ComponentPropsWithoutRef<\n typeof Recharts.BarChart\n>)[] = [\n \"layout\",\n \"syncId\",\n \"syncMethod\",\n \"width\",\n \"height\",\n \"data\",\n \"margin\",\n \"barCategoryGap\",\n \"barGap\",\n \"barSize\",\n \"maxBarSize\",\n \"stackOffset\",\n \"reverseStackOrder\",\n \"onClick\",\n \"onMouseEnter\",\n \"onMouseMove\",\n \"onMouseLeave\",\n]\n\nexport const lineChartProperties: (keyof ComponentPropsWithoutRef<\n typeof Recharts.LineChart\n>)[] = [\n \"layout\",\n \"syncId\",\n \"syncMethod\",\n \"width\",\n \"height\",\n \"data\",\n \"margin\",\n \"onClick\",\n \"onMouseEnter\",\n \"onMouseMove\",\n \"onMouseLeave\",\n]\n\nexport const radarChartProperties: (keyof ComponentPropsWithoutRef<\n typeof Recharts.RadarChart\n>)[] = [\n \"width\",\n \"height\",\n \"data\",\n \"cx\",\n \"cy\",\n \"startAngle\",\n \"endAngle\",\n \"innerRadius\",\n \"outerRadius\",\n \"margin\",\n \"onMouseEnter\",\n \"onClick\",\n]\n\nexport const pieChartProperties: (keyof ComponentPropsWithoutRef<\n typeof Recharts.PieChart\n>)[] = [\"width\", \"height\", \"margin\", \"onClick\", \"onMouseEnter\", \"onMouseLeave\"]\n\nexport const referenceLineProperties: (keyof Recharts.ReferenceLineProps)[] = [\n \"xAxisId\",\n \"yAxisId\",\n \"x\",\n \"y\",\n \"ifOverflow\",\n \"viewBox\",\n \"xAxis\",\n \"yAxis\",\n \"label\",\n \"isFront\",\n \"strokeWidth\",\n \"segment\",\n]\n\nexport const containerProperties: (keyof Omit<\n Recharts.ResponsiveContainerProps,\n \"children\"\n>)[] = [\n \"aspect\",\n \"width\",\n \"height\",\n \"minWidth\",\n \"minHeight\",\n \"debounce\",\n \"onResize\",\n]\n\nexport const gridProperties: (keyof Recharts.CartesianGridProps)[] = [\n \"x\",\n \"y\",\n \"width\",\n \"height\",\n \"horizontal\",\n \"vertical\",\n \"horizontalPoints\",\n \"horizontalCoordinatesGenerator\",\n \"verticalPoints\",\n \"verticalCoordinatesGenerator\",\n \"fill\",\n \"fillOpacity\",\n \"strokeDasharray\",\n]\n\nexport const xAxisProperties: (keyof Recharts.XAxisProps)[] = [\n \"hide\",\n \"dataKey\",\n \"xAxisId\",\n \"width\",\n \"height\",\n \"orientation\",\n \"type\",\n \"allowDecimals\",\n \"allowDataOverflow\",\n \"allowDuplicatedCategory\",\n \"angle\",\n \"tickCount\",\n \"domain\",\n \"includeHidden\",\n \"interval\",\n \"padding\",\n \"minTickGap\",\n \"axisLine\",\n \"tickLine\",\n \"tickSize\",\n \"tickFormatter\",\n \"ticks\",\n \"tick\",\n \"mirror\",\n \"reversed\",\n \"label\",\n \"scale\",\n \"unit\",\n \"name\",\n \"onClick\",\n \"onMouseDown\",\n \"onMouseUp\",\n \"onMouseMove\",\n \"onMouseOver\",\n \"onMouseOut\",\n \"onMouseEnter\",\n \"onMouseLeave\",\n \"tickMargin\",\n]\n\nexport const yAxisProperties: (keyof Recharts.YAxisProps)[] = [\n \"hide\",\n \"dataKey\",\n \"yAxisId\",\n \"width\",\n \"height\",\n \"orientation\",\n \"type\",\n \"tickCount\",\n \"domain\",\n \"includeHidden\",\n \"interval\",\n \"padding\",\n \"minTickGap\",\n \"allowDecimals\",\n \"allowDataOverflow\",\n \"allowDuplicatedCategory\",\n \"axisLine\",\n \"tickLine\",\n \"tickSize\",\n \"tickFormatter\",\n \"ticks\",\n \"tick\",\n \"mirror\",\n \"reversed\",\n \"label\",\n \"scale\",\n \"unit\",\n \"name\",\n \"onClick\",\n \"onMouseDown\",\n \"onMouseUp\",\n \"onMouseMove\",\n \"onMouseOver\",\n \"onMouseOut\",\n \"onMouseEnter\",\n \"onMouseLeave\",\n \"tickMargin\",\n]\n\nexport const legendProperties: (keyof Omit<Recharts.LegendProps, \"ref\">)[] = [\n \"width\",\n \"height\",\n \"layout\",\n \"align\",\n \"verticalAlign\",\n \"iconSize\",\n \"iconType\",\n \"payload\",\n \"chartWidth\",\n \"chartHeight\",\n \"margin\",\n \"content\",\n \"formatter\",\n \"wrapperStyle\",\n \"onClick\",\n \"onMouseDown\",\n \"onMouseUp\",\n \"onMouseMove\",\n \"onMouseOver\",\n \"onMouseOut\",\n \"onMouseEnter\",\n \"onMouseLeave\",\n]\n\nexport const tooltipProperties: (keyof Recharts.TooltipProps<any, any>)[] = [\n \"offset\",\n \"filterNull\",\n \"itemStyle\",\n \"wrapperStyle\",\n \"contentStyle\",\n \"labelStyle\",\n \"cursor\",\n \"viewBox\",\n \"allowEscapeViewBox\",\n \"active\",\n \"position\",\n \"coordinate\",\n \"payload\",\n \"label\",\n \"content\",\n \"formatter\",\n \"labelFormatter\",\n \"itemSorter\",\n \"isAnimationActive\",\n \"animationDuration\",\n \"animationEasing\",\n]\n\nexport const areaProperties: (keyof Omit<Recharts.AreaProps, \"ref\">)[] = [\n \"type\",\n \"dataKey\",\n \"xAxisId\",\n \"yAxisId\",\n \"legendType\",\n \"dot\",\n \"activeDot\",\n \"label\",\n \"stroke\",\n \"strokeWidth\",\n \"layout\",\n \"baseLine\",\n \"points\",\n \"stackId\",\n \"connectNulls\",\n \"unit\",\n \"name\",\n \"isAnimationActive\",\n \"animationBegin\",\n \"animationDuration\",\n \"animationEasing\",\n \"id\",\n \"onAnimationStart\",\n \"onAnimationEnd\",\n \"onClick\",\n \"onMouseDown\",\n \"onMouseUp\",\n \"onMouseMove\",\n \"onMouseOver\",\n \"onMouseOut\",\n \"onMouseEnter\",\n \"onMouseLeave\",\n]\n\nexport const barProperties: (keyof Omit<Recharts.BarProps, \"ref\">)[] = [\n \"layout\",\n \"dataKey\",\n \"xAxisId\",\n \"yAxisId\",\n \"legendType\",\n \"label\",\n \"data\",\n \"barSize\",\n \"maxBarSize\",\n \"minPointSize\",\n \"background\",\n \"shape\",\n \"activeBar\",\n \"stackId\",\n \"unit\",\n \"name\",\n \"isAnimationActive\",\n \"animationBegin\",\n \"animationDuration\",\n \"animationEasing\",\n \"id\",\n \"onAnimationStart\",\n \"onAnimationEnd\",\n \"onClick\",\n \"onMouseDown\",\n \"onMouseUp\",\n \"onMouseMove\",\n \"onMouseOver\",\n \"onMouseOut\",\n \"onMouseEnter\",\n \"onMouseLeave\",\n \"radius\",\n]\n\nexport const radarProperties: (keyof Omit<Recharts.RadarProps, \"ref\">)[] = [\n \"dataKey\",\n \"points\",\n \"shape\",\n \"dot\",\n \"activeDot\",\n \"legendType\",\n \"label\",\n \"isAnimationActive\",\n \"animationBegin\",\n \"animationDuration\",\n \"animationEasing\",\n \"onAnimationStart\",\n \"onAnimationEnd\",\n]\n\nexport const lineProperties: (keyof Omit<Recharts.LineProps, \"ref\">)[] = [\n \"type\",\n \"dataKey\",\n \"xAxisId\",\n \"yAxisId\",\n \"legendType\",\n \"dot\",\n \"activeDot\",\n \"label\",\n \"hide\",\n \"points\",\n \"stroke\",\n \"strokeWidth\",\n \"layout\",\n \"connectNulls\",\n \"unit\",\n \"name\",\n \"isAnimationActive\",\n \"animationBegin\",\n \"animationDuration\",\n \"animationEasing\",\n \"id\",\n \"onAnimationStart\",\n \"onAnimationEnd\",\n \"onClick\",\n \"onMouseDown\",\n \"onMouseUp\",\n \"onMouseMove\",\n \"onMouseOver\",\n \"onMouseOut\",\n \"onMouseEnter\",\n \"onMouseLeave\",\n \"strokeDasharray\",\n]\n\nexport const pieProperties: (keyof Omit<Recharts.PieProps, \"ref\">)[] = [\n \"cx\",\n \"cy\",\n \"innerRadius\",\n \"outerRadius\",\n \"startAngle\",\n \"endAngle\",\n \"minAngle\",\n \"paddingAngle\",\n \"nameKey\",\n \"dataKey\",\n \"legendType\",\n \"label\",\n \"labelLine\",\n \"data\",\n \"activeIndex\",\n \"activeShape\",\n \"inactiveShape\",\n \"isAnimationActive\",\n \"animationBegin\",\n \"animationDuration\",\n \"animationEasing\",\n \"onAnimationStart\",\n \"onAnimationEnd\",\n \"onClick\",\n \"onMouseDown\",\n \"onMouseUp\",\n \"onMouseMove\",\n \"onMouseOver\",\n \"onMouseOut\",\n \"onMouseEnter\",\n \"onMouseLeave\",\n]\n\nexport const dotProperties: (keyof Omit<Recharts.DotProps, \"ref\">)[] = [\n \"cx\",\n \"cy\",\n \"r\",\n \"onClick\",\n \"onMouseDown\",\n \"onMouseUp\",\n \"onMouseMove\",\n \"onMouseOver\",\n \"onMouseOut\",\n \"onMouseEnter\",\n \"onMouseLeave\",\n]\n\nexport const polarGridProperties: (keyof Recharts.PolarGridProps)[] = [\n \"cx\",\n \"cy\",\n \"innerRadius\",\n \"outerRadius\",\n \"polarAngles\",\n \"polarRadius\",\n \"gridType\",\n]\n\nexport const polarAngleAxisProperties: (keyof Recharts.PolarAngleAxisProps)[] =\n [\n \"dataKey\",\n \"cx\",\n \"cy\",\n \"radius\",\n \"axisLine\",\n \"axisLineType\",\n \"tickLine\",\n \"tickSize\",\n \"tick\",\n \"ticks\",\n \"orient\",\n \"tickFormatter\",\n \"type\",\n \"allowDuplicatedCategory\",\n \"onClick\",\n \"onMouseDown\",\n \"onMouseUp\",\n \"onMouseMove\",\n \"onMouseOver\",\n \"onMouseOut\",\n \"onMouseEnter\",\n \"onMouseLeave\",\n ]\nexport const polarRadiusAxisProperties: (keyof Recharts.PolarRadiusAxisProps)[] =\n [\n \"angle\",\n \"type\",\n \"allowDuplicatedCategory\",\n \"cx\",\n \"cy\",\n \"domain\",\n \"reversed\",\n \"label\",\n \"orientation\",\n \"axisLine\",\n \"tick\",\n \"tickSize\",\n \"tickFormatter\",\n \"tickCount\",\n \"scale\",\n \"onClick\",\n \"onMouseDown\",\n \"onMouseUp\",\n \"onMouseMove\",\n \"onMouseOver\",\n \"onMouseOut\",\n \"onMouseEnter\",\n \"onMouseLeave\",\n ]\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAAAA,eAA2C;AAE3C,IAAAC,gBAAkC;AAClC,mBAA4B;;;ACF5B,kBAAuB;AAEvB,mBAA0C;AAEnC,IAAM,eACX,IAAI,WACJ,CAAC,cACC;AAAA,EACE,GAAG,OAAO;AAAA,IAAI,CAAC,cACb,uBAAS,KAAK,IAAI,YAAQ,oBAAO,KAAK,EAAE,KAAK;AAAA,EAC/C;AACF;AAEG,IAAM,oBACX,CACE,CAAC,KAAK,IAAI,MACP,UAEL,CAA4B,OAAoB,cAAkB;AAChE,QAAM,CAAC,aAAa,YAAY,QAAI,0BAAkB,KAAK,IAAI;AAC/D,QAAM,YAAY,aAAa,GAAG,OAAO,YAAY,EAAE,KAAK;AAE5D,SACE,CAAC,YAAY,CAAC,aAAa,SAAS,IAAI,EAAE,GAAG,aAAa,UAAU;AAIxE;;;ACkEK,IAAM,sBAGN;AAAA,EACL;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;;;AF9FO,IAAM,CAAC,eAAe,eAAe,QAAI,6BAA4B;AAAA,EAC1E,MAAM;AAAA,EACN,cAAc;AAChB,CAAC;AASM,IAAM,WAAW,CAAC,EAAE,iBAAiB,CAAC,EAAE,MAAqB;AAClE,QAAM,EAAE,MAAM,QAAI,uBAAS;AAC3B,QAAM,CAAC,eAAe,aAAa,IAAI,kBAAgC;AAAA,IACrE;AAAA,IACA;AAAA,EACF,CAAC,EAAE,KAAK;AAER,QAAM,wBAIF;AAAA,IACF,CAAC,EAAE,WAAW,GAAG,MAAM,IAAI,CAAC,GAAG,MAAM,UAAU;AAAA,MAC7C;AAAA,MACA,eAAW,kBAAG,uBAAuB,WAAqB,aAAa;AAAA,MACvE,GAAG;AAAA,MACH,GAAG;AAAA,IACL;AAAA,IACA,CAAC,eAAe,aAAa;AAAA,EAC/B;AAEA,SAAO;AAAA,IACL;AAAA,EACF;AACF;AAMO,IAAM,YAAY,CAAC,CAAC,IAAoB,CAAC,MAAM;AACpD,QAAM,EAAE,OAAO,IAAI,gBAAgB;AACnC,SAAO;AAAA,IACL;AAAA,EACF;AACF;AAKO,IAAM,aAAa,CAAC,CAAC,IAAqB,CAAC,MAAM;AACtD,QAAM,EAAE,OAAO,IAAI,gBAAgB;AACnC,SAAO;AAAA,IACL;AAAA,EACF;AACF;","names":["import_core","import_utils"]}
|
package/dist/use-chart.mjs
DELETED
@@ -1,18 +0,0 @@
|
|
1
|
-
"use client"
|
2
|
-
import {
|
3
|
-
ChartProvider,
|
4
|
-
useChart,
|
5
|
-
useChartContext,
|
6
|
-
useLegend,
|
7
|
-
useTooltip
|
8
|
-
} from "./chunk-XIFDRM7J.mjs";
|
9
|
-
import "./chunk-OSNFBRHL.mjs";
|
10
|
-
import "./chunk-QL3DB7OJ.mjs";
|
11
|
-
export {
|
12
|
-
ChartProvider,
|
13
|
-
useChart,
|
14
|
-
useChartContext,
|
15
|
-
useLegend,
|
16
|
-
useTooltip
|
17
|
-
};
|
18
|
-
//# sourceMappingURL=use-chart.mjs.map
|
package/dist/use-chart.mjs.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
@@ -1,97 +0,0 @@
|
|
1
|
-
import * as react from 'react';
|
2
|
-
import * as _yamada_ui_core from '@yamada-ui/core';
|
3
|
-
import { CSSUIObject } from '@yamada-ui/core';
|
4
|
-
import * as _yamada_ui_utils from '@yamada-ui/utils';
|
5
|
-
import { Dict } from '@yamada-ui/utils';
|
6
|
-
import * as recharts_types_chart_generateCategoricalChart from 'recharts/types/chart/generateCategoricalChart';
|
7
|
-
import * as Recharts from 'recharts';
|
8
|
-
import { LineProps, LineChartProps, ChartLayoutType, ChartCurveType, ReferenceLineProps, RequiredChartPropGetter, ChartPropGetter } from './chart.types.mjs';
|
9
|
-
|
10
|
-
type UseLineChartOptions = {
|
11
|
-
/**
|
12
|
-
* Chart data.
|
13
|
-
*/
|
14
|
-
data: Dict[];
|
15
|
-
/**
|
16
|
-
* An array of objects with `dataKey` and `color` keys. Determines which data should be consumed from the `data` array.
|
17
|
-
*/
|
18
|
-
series: LineProps[];
|
19
|
-
/**
|
20
|
-
* Props for the lines.
|
21
|
-
*/
|
22
|
-
lineProps?: Partial<LineProps>;
|
23
|
-
/**
|
24
|
-
* If any two categorical charts have the same syncId,
|
25
|
-
* these two charts can sync the position tooltip, and the startIndex, endIndex of Brush.
|
26
|
-
*/
|
27
|
-
syncId?: number | string;
|
28
|
-
/**
|
29
|
-
* Props passed down to recharts `LineChart` component.
|
30
|
-
*/
|
31
|
-
chartProps?: LineChartProps;
|
32
|
-
/**
|
33
|
-
* Chart orientation.
|
34
|
-
*
|
35
|
-
* @default 'horizontal'
|
36
|
-
*/
|
37
|
-
layoutType?: ChartLayoutType;
|
38
|
-
/**
|
39
|
-
* Determines whether dots should be displayed.
|
40
|
-
*
|
41
|
-
* @default true
|
42
|
-
*/
|
43
|
-
withDots?: boolean;
|
44
|
-
/**
|
45
|
-
* Determines whether activeDots should be displayed.
|
46
|
-
*
|
47
|
-
* @default true
|
48
|
-
*/
|
49
|
-
withActiveDots?: boolean;
|
50
|
-
/**
|
51
|
-
* Type of the curve.
|
52
|
-
*
|
53
|
-
* @default `monotone`
|
54
|
-
*/
|
55
|
-
curveType?: ChartCurveType;
|
56
|
-
/**
|
57
|
-
* Stroke width for the chart lines.
|
58
|
-
*
|
59
|
-
* @default 2
|
60
|
-
*/
|
61
|
-
strokeWidth?: number;
|
62
|
-
/**
|
63
|
-
* Determines whether points with `null` values should be connected.
|
64
|
-
*
|
65
|
-
* @default true
|
66
|
-
*/
|
67
|
-
connectNulls?: boolean;
|
68
|
-
/**
|
69
|
-
* Reference lines that should be displayed on the chart.
|
70
|
-
*/
|
71
|
-
referenceLineProps?: ReferenceLineProps[];
|
72
|
-
/**
|
73
|
-
* Controls fill opacity of all lines.
|
74
|
-
*
|
75
|
-
* @default 1
|
76
|
-
*/
|
77
|
-
fillOpacity?: number | [number, number];
|
78
|
-
};
|
79
|
-
type UseLineChartProps = UseLineChartOptions & {
|
80
|
-
styles: Dict<CSSUIObject>;
|
81
|
-
};
|
82
|
-
declare const useLineChart: ({ data, series, layoutType, withDots, withActiveDots, curveType, strokeWidth, connectNulls, referenceLineProps, fillOpacity, syncId, styles, ...rest }: UseLineChartProps) => {
|
83
|
-
getLineProps: RequiredChartPropGetter<"div", {
|
84
|
-
index: number;
|
85
|
-
}, Omit<Recharts.LineProps, "ref">>;
|
86
|
-
getLineChartProps: ChartPropGetter<"div", recharts_types_chart_generateCategoricalChart.CategoricalChartProps, recharts_types_chart_generateCategoricalChart.CategoricalChartProps>;
|
87
|
-
lineVars: {
|
88
|
-
__prefix?: string | undefined;
|
89
|
-
name: string;
|
90
|
-
token?: "colors" | "transitionDuration" | "transitionProperty" | "animations" | "blurs" | "borders" | "breakpoints" | "fonts" | "fontSizes" | "fontWeights" | "gradients" | "layerStyles" | "letterSpacings" | "lineHeights" | "radii" | "shadows" | "sizes" | "spaces" | "textStyles" | "transitionEasing" | "zIndices" | undefined;
|
91
|
-
value?: (number | _yamada_ui_utils.StringLiteral | _yamada_ui_core.ResponsiveObject<number | _yamada_ui_utils.StringLiteral> | _yamada_ui_core.ColorModeArray<number | _yamada_ui_utils.StringLiteral>) | undefined;
|
92
|
-
}[];
|
93
|
-
setHighlightedArea: react.Dispatch<react.SetStateAction<string | null>>;
|
94
|
-
};
|
95
|
-
type UseLineChartReturn = ReturnType<typeof useLineChart>;
|
96
|
-
|
97
|
-
export { type UseLineChartOptions, type UseLineChartReturn, useLineChart };
|
package/dist/use-line-chart.d.ts
DELETED
@@ -1,97 +0,0 @@
|
|
1
|
-
import * as react from 'react';
|
2
|
-
import * as _yamada_ui_core from '@yamada-ui/core';
|
3
|
-
import { CSSUIObject } from '@yamada-ui/core';
|
4
|
-
import * as _yamada_ui_utils from '@yamada-ui/utils';
|
5
|
-
import { Dict } from '@yamada-ui/utils';
|
6
|
-
import * as recharts_types_chart_generateCategoricalChart from 'recharts/types/chart/generateCategoricalChart';
|
7
|
-
import * as Recharts from 'recharts';
|
8
|
-
import { LineProps, LineChartProps, ChartLayoutType, ChartCurveType, ReferenceLineProps, RequiredChartPropGetter, ChartPropGetter } from './chart.types.js';
|
9
|
-
|
10
|
-
type UseLineChartOptions = {
|
11
|
-
/**
|
12
|
-
* Chart data.
|
13
|
-
*/
|
14
|
-
data: Dict[];
|
15
|
-
/**
|
16
|
-
* An array of objects with `dataKey` and `color` keys. Determines which data should be consumed from the `data` array.
|
17
|
-
*/
|
18
|
-
series: LineProps[];
|
19
|
-
/**
|
20
|
-
* Props for the lines.
|
21
|
-
*/
|
22
|
-
lineProps?: Partial<LineProps>;
|
23
|
-
/**
|
24
|
-
* If any two categorical charts have the same syncId,
|
25
|
-
* these two charts can sync the position tooltip, and the startIndex, endIndex of Brush.
|
26
|
-
*/
|
27
|
-
syncId?: number | string;
|
28
|
-
/**
|
29
|
-
* Props passed down to recharts `LineChart` component.
|
30
|
-
*/
|
31
|
-
chartProps?: LineChartProps;
|
32
|
-
/**
|
33
|
-
* Chart orientation.
|
34
|
-
*
|
35
|
-
* @default 'horizontal'
|
36
|
-
*/
|
37
|
-
layoutType?: ChartLayoutType;
|
38
|
-
/**
|
39
|
-
* Determines whether dots should be displayed.
|
40
|
-
*
|
41
|
-
* @default true
|
42
|
-
*/
|
43
|
-
withDots?: boolean;
|
44
|
-
/**
|
45
|
-
* Determines whether activeDots should be displayed.
|
46
|
-
*
|
47
|
-
* @default true
|
48
|
-
*/
|
49
|
-
withActiveDots?: boolean;
|
50
|
-
/**
|
51
|
-
* Type of the curve.
|
52
|
-
*
|
53
|
-
* @default `monotone`
|
54
|
-
*/
|
55
|
-
curveType?: ChartCurveType;
|
56
|
-
/**
|
57
|
-
* Stroke width for the chart lines.
|
58
|
-
*
|
59
|
-
* @default 2
|
60
|
-
*/
|
61
|
-
strokeWidth?: number;
|
62
|
-
/**
|
63
|
-
* Determines whether points with `null` values should be connected.
|
64
|
-
*
|
65
|
-
* @default true
|
66
|
-
*/
|
67
|
-
connectNulls?: boolean;
|
68
|
-
/**
|
69
|
-
* Reference lines that should be displayed on the chart.
|
70
|
-
*/
|
71
|
-
referenceLineProps?: ReferenceLineProps[];
|
72
|
-
/**
|
73
|
-
* Controls fill opacity of all lines.
|
74
|
-
*
|
75
|
-
* @default 1
|
76
|
-
*/
|
77
|
-
fillOpacity?: number | [number, number];
|
78
|
-
};
|
79
|
-
type UseLineChartProps = UseLineChartOptions & {
|
80
|
-
styles: Dict<CSSUIObject>;
|
81
|
-
};
|
82
|
-
declare const useLineChart: ({ data, series, layoutType, withDots, withActiveDots, curveType, strokeWidth, connectNulls, referenceLineProps, fillOpacity, syncId, styles, ...rest }: UseLineChartProps) => {
|
83
|
-
getLineProps: RequiredChartPropGetter<"div", {
|
84
|
-
index: number;
|
85
|
-
}, Omit<Recharts.LineProps, "ref">>;
|
86
|
-
getLineChartProps: ChartPropGetter<"div", recharts_types_chart_generateCategoricalChart.CategoricalChartProps, recharts_types_chart_generateCategoricalChart.CategoricalChartProps>;
|
87
|
-
lineVars: {
|
88
|
-
__prefix?: string | undefined;
|
89
|
-
name: string;
|
90
|
-
token?: "colors" | "transitionDuration" | "transitionProperty" | "animations" | "blurs" | "borders" | "breakpoints" | "fonts" | "fontSizes" | "fontWeights" | "gradients" | "layerStyles" | "letterSpacings" | "lineHeights" | "radii" | "shadows" | "sizes" | "spaces" | "textStyles" | "transitionEasing" | "zIndices" | undefined;
|
91
|
-
value?: (number | _yamada_ui_utils.StringLiteral | _yamada_ui_core.ResponsiveObject<number | _yamada_ui_utils.StringLiteral> | _yamada_ui_core.ColorModeArray<number | _yamada_ui_utils.StringLiteral>) | undefined;
|
92
|
-
}[];
|
93
|
-
setHighlightedArea: react.Dispatch<react.SetStateAction<string | null>>;
|
94
|
-
};
|
95
|
-
type UseLineChartReturn = ReturnType<typeof useLineChart>;
|
96
|
-
|
97
|
-
export { type UseLineChartOptions, type UseLineChartReturn, useLineChart };
|