@yamada-ui/charts 1.1.2 → 1.1.4-dev-20240508155232
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-gradient.d.mts +11 -0
- package/dist/area-chart-gradient.d.ts +11 -0
- package/dist/area-chart-gradient.js +47 -0
- package/dist/area-chart-gradient.js.map +1 -0
- package/dist/area-chart-gradient.mjs +8 -0
- package/dist/area-chart-gradient.mjs.map +1 -0
- package/dist/area-chart-split.d.mts +10 -0
- package/dist/area-chart-split.d.ts +10 -0
- package/dist/area-chart-split.js +52 -0
- package/dist/area-chart-split.js.map +1 -0
- package/dist/area-chart-split.mjs +8 -0
- package/dist/area-chart-split.mjs.map +1 -0
- package/dist/area-chart.d.mts +41 -0
- package/dist/area-chart.d.ts +41 -0
- package/dist/area-chart.js +1223 -0
- package/dist/area-chart.js.map +1 -0
- package/dist/area-chart.mjs +21 -0
- package/dist/area-chart.mjs.map +1 -0
- package/dist/bar-chart.d.mts +38 -0
- package/dist/bar-chart.d.ts +38 -0
- package/dist/bar-chart.js +1027 -0
- package/dist/bar-chart.js.map +1 -0
- package/dist/bar-chart.mjs +19 -0
- package/dist/bar-chart.mjs.map +1 -0
- package/dist/chart-legend.d.mts +12 -0
- package/dist/chart-legend.d.ts +12 -0
- package/dist/chart-legend.js +90 -0
- package/dist/chart-legend.js.map +1 -0
- package/dist/chart-legend.mjs +11 -0
- package/dist/chart-legend.mjs.map +1 -0
- package/dist/chart-tooltip.d.mts +12 -0
- package/dist/chart-tooltip.d.ts +12 -0
- package/dist/chart-tooltip.js +121 -0
- package/dist/chart-tooltip.js.map +1 -0
- package/dist/chart-tooltip.mjs +11 -0
- package/dist/chart-tooltip.mjs.map +1 -0
- package/dist/chart-utils.d.mts +9 -0
- package/dist/chart-utils.d.ts +9 -0
- package/dist/chart-utils.js +45 -0
- package/dist/chart-utils.js.map +1 -0
- package/dist/chart-utils.mjs +10 -0
- package/dist/chart-utils.mjs.map +1 -0
- package/dist/chart.types.d.mts +78 -0
- package/dist/chart.types.d.ts +78 -0
- package/dist/chart.types.js +20 -0
- package/dist/chart.types.js.map +1 -0
- package/dist/chart.types.mjs +2 -0
- package/dist/chart.types.mjs.map +1 -0
- package/dist/chunk-4WX5YS7M.mjs +179 -0
- package/dist/chunk-4WX5YS7M.mjs.map +1 -0
- package/dist/chunk-5TVYPA64.mjs +256 -0
- package/dist/chunk-5TVYPA64.mjs.map +1 -0
- package/dist/chunk-BPR7YL3O.mjs +179 -0
- package/dist/chunk-BPR7YL3O.mjs.map +1 -0
- package/dist/chunk-E2I2XAZ6.mjs +232 -0
- package/dist/chunk-E2I2XAZ6.mjs.map +1 -0
- package/dist/chunk-HDOYOHLA.mjs +326 -0
- package/dist/chunk-HDOYOHLA.mjs.map +1 -0
- package/dist/chunk-KNAADLWO.mjs +225 -0
- package/dist/chunk-KNAADLWO.mjs.map +1 -0
- package/dist/chunk-KT4YOMM4.mjs +344 -0
- package/dist/chunk-KT4YOMM4.mjs.map +1 -0
- package/dist/chunk-LBC2B6UX.mjs +84 -0
- package/dist/chunk-LBC2B6UX.mjs.map +1 -0
- package/dist/chunk-LGMALZCN.mjs +42 -0
- package/dist/chunk-LGMALZCN.mjs.map +1 -0
- package/dist/chunk-LHI57S6P.mjs +215 -0
- package/dist/chunk-LHI57S6P.mjs.map +1 -0
- package/dist/chunk-LM2DQK2P.mjs +33 -0
- package/dist/chunk-LM2DQK2P.mjs.map +1 -0
- package/dist/chunk-MSIOYYWR.mjs +24 -0
- package/dist/chunk-MSIOYYWR.mjs.map +1 -0
- package/dist/chunk-MWPICUEW.mjs +56 -0
- package/dist/chunk-MWPICUEW.mjs.map +1 -0
- package/dist/chunk-NEGDEVRX.mjs +53 -0
- package/dist/chunk-NEGDEVRX.mjs.map +1 -0
- package/dist/chunk-OSNFBRHL.mjs +474 -0
- package/dist/chunk-OSNFBRHL.mjs.map +1 -0
- package/dist/chunk-OW7SOTEF.mjs +206 -0
- package/dist/chunk-OW7SOTEF.mjs.map +1 -0
- package/dist/chunk-P7AFSM5W.mjs +114 -0
- package/dist/chunk-P7AFSM5W.mjs.map +1 -0
- package/dist/chunk-PNE3JG54.mjs +29 -0
- package/dist/chunk-PNE3JG54.mjs.map +1 -0
- package/dist/chunk-QL3DB7OJ.mjs +21 -0
- package/dist/chunk-QL3DB7OJ.mjs.map +1 -0
- package/dist/chunk-QZ5OXZ6Z.mjs +251 -0
- package/dist/chunk-QZ5OXZ6Z.mjs.map +1 -0
- package/dist/chunk-RN6PXJAD.mjs +47 -0
- package/dist/chunk-RN6PXJAD.mjs.map +1 -0
- package/dist/chunk-STBYRLC5.mjs +208 -0
- package/dist/chunk-STBYRLC5.mjs.map +1 -0
- package/dist/chunk-XIFDRM7J.mjs +56 -0
- package/dist/chunk-XIFDRM7J.mjs.map +1 -0
- package/dist/donut-chart.d.mts +31 -0
- package/dist/donut-chart.d.ts +31 -0
- package/dist/donut-chart.js +702 -0
- package/dist/donut-chart.js.map +1 -0
- package/dist/donut-chart.mjs +16 -0
- package/dist/donut-chart.mjs.map +1 -0
- package/dist/index.d.mts +26 -0
- package/dist/index.d.ts +26 -0
- package/dist/index.js +3228 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +45 -0
- package/dist/index.mjs.map +1 -0
- package/dist/line-chart.d.mts +38 -0
- package/dist/line-chart.d.ts +38 -0
- package/dist/line-chart.js +1088 -0
- package/dist/line-chart.js.map +1 -0
- package/dist/line-chart.mjs +19 -0
- package/dist/line-chart.mjs.map +1 -0
- package/dist/pie-chart.d.mts +49 -0
- package/dist/pie-chart.d.ts +49 -0
- package/dist/pie-chart.js +702 -0
- package/dist/pie-chart.js.map +1 -0
- package/dist/pie-chart.mjs +16 -0
- package/dist/pie-chart.mjs.map +1 -0
- package/dist/radar-chart.d.mts +57 -0
- package/dist/radar-chart.d.ts +57 -0
- package/dist/radar-chart.js +918 -0
- package/dist/radar-chart.js.map +1 -0
- package/dist/radar-chart.mjs +16 -0
- package/dist/radar-chart.mjs.map +1 -0
- package/dist/rechart-properties.d.mts +26 -0
- package/dist/rechart-properties.d.ts +26 -0
- package/dist/rechart-properties.js +517 -0
- package/dist/rechart-properties.js.map +1 -0
- package/dist/rechart-properties.mjs +48 -0
- package/dist/rechart-properties.mjs.map +1 -0
- package/dist/use-area-chart.d.mts +123 -0
- package/dist/use-area-chart.d.ts +123 -0
- package/dist/use-area-chart.js +420 -0
- package/dist/use-area-chart.js.map +1 -0
- package/dist/use-area-chart.mjs +10 -0
- package/dist/use-area-chart.mjs.map +1 -0
- package/dist/use-bar-chart.d.mts +73 -0
- package/dist/use-bar-chart.d.ts +73 -0
- package/dist/use-bar-chart.js +290 -0
- package/dist/use-bar-chart.js.map +1 -0
- package/dist/use-bar-chart.mjs +10 -0
- package/dist/use-bar-chart.mjs.map +1 -0
- package/dist/use-chart-axis.d.mts +73 -0
- package/dist/use-chart-axis.d.ts +73 -0
- package/dist/use-chart-axis.js +227 -0
- package/dist/use-chart-axis.js.map +1 -0
- package/dist/use-chart-axis.mjs +10 -0
- package/dist/use-chart-axis.mjs.map +1 -0
- package/dist/use-chart-grid.d.mts +32 -0
- package/dist/use-chart-grid.d.ts +32 -0
- package/dist/use-chart-grid.js +92 -0
- package/dist/use-chart-grid.js.map +1 -0
- package/dist/use-chart-grid.mjs +10 -0
- package/dist/use-chart-grid.mjs.map +1 -0
- package/dist/use-chart-legend.d.mts +18 -0
- package/dist/use-chart-legend.d.ts +18 -0
- package/dist/use-chart-legend.js +81 -0
- package/dist/use-chart-legend.js.map +1 -0
- package/dist/use-chart-legend.mjs +9 -0
- package/dist/use-chart-legend.mjs.map +1 -0
- package/dist/use-chart-reference-line.d.mts +22 -0
- package/dist/use-chart-reference-line.d.ts +22 -0
- package/dist/use-chart-reference-line.js +105 -0
- package/dist/use-chart-reference-line.js.map +1 -0
- package/dist/use-chart-reference-line.mjs +10 -0
- package/dist/use-chart-reference-line.mjs.map +1 -0
- package/dist/use-chart-tooltip.d.mts +27 -0
- package/dist/use-chart-tooltip.d.ts +27 -0
- package/dist/use-chart-tooltip.js +100 -0
- package/dist/use-chart-tooltip.js.map +1 -0
- package/dist/use-chart-tooltip.mjs +10 -0
- package/dist/use-chart-tooltip.mjs.map +1 -0
- package/dist/use-chart.d.mts +33 -0
- package/dist/use-chart.d.ts +33 -0
- package/dist/use-chart.js +104 -0
- package/dist/use-chart.js.map +1 -0
- package/dist/use-chart.mjs +18 -0
- package/dist/use-chart.mjs.map +1 -0
- package/dist/use-line-chart.d.mts +97 -0
- package/dist/use-line-chart.d.ts +97 -0
- package/dist/use-line-chart.js +344 -0
- package/dist/use-line-chart.js.map +1 -0
- package/dist/use-line-chart.mjs +10 -0
- package/dist/use-line-chart.mjs.map +1 -0
- package/dist/use-pie-chart.d.mts +112 -0
- package/dist/use-pie-chart.d.ts +112 -0
- package/dist/use-pie-chart.js +282 -0
- package/dist/use-pie-chart.js.map +1 -0
- package/dist/use-pie-chart.mjs +10 -0
- package/dist/use-pie-chart.mjs.map +1 -0
- package/dist/use-radar-chart.d.mts +105 -0
- package/dist/use-radar-chart.d.ts +105 -0
- package/dist/use-radar-chart.js +473 -0
- package/dist/use-radar-chart.js.map +1 -0
- package/dist/use-radar-chart.mjs +10 -0
- package/dist/use-radar-chart.mjs.map +1 -0
- package/package.json +2 -5
@@ -0,0 +1,473 @@
|
|
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-radar-chart.ts
|
22
|
+
var use_radar_chart_exports = {};
|
23
|
+
__export(use_radar_chart_exports, {
|
24
|
+
useRadarChart: () => useRadarChart
|
25
|
+
});
|
26
|
+
module.exports = __toCommonJS(use_radar_chart_exports);
|
27
|
+
var import_core2 = require("@yamada-ui/core");
|
28
|
+
var import_utils2 = require("@yamada-ui/utils");
|
29
|
+
var import_react = require("react");
|
30
|
+
|
31
|
+
// src/chart-utils.ts
|
32
|
+
var import_core = require("@yamada-ui/core");
|
33
|
+
var import_utils = require("@yamada-ui/utils");
|
34
|
+
var getClassName = (...styles) => (theme) => (0, import_utils.cx)(
|
35
|
+
...styles.map(
|
36
|
+
(style) => (0, import_utils.isString)(style) ? style : (0, import_core.getCSS)(style)(theme)
|
37
|
+
)
|
38
|
+
);
|
39
|
+
var getComponentProps = ([obj, keys], ...props) => (theme, isContain) => {
|
40
|
+
const [pickedProps, omittedProps] = (0, import_utils.splitObject)(obj, keys);
|
41
|
+
const className = getClassName(...props, omittedProps)(theme);
|
42
|
+
return !isContain ? [pickedProps, className] : { ...pickedProps, className };
|
43
|
+
};
|
44
|
+
|
45
|
+
// src/rechart-properties.ts
|
46
|
+
var radarChartProperties = [
|
47
|
+
"width",
|
48
|
+
"height",
|
49
|
+
"data",
|
50
|
+
"cx",
|
51
|
+
"cy",
|
52
|
+
"startAngle",
|
53
|
+
"endAngle",
|
54
|
+
"innerRadius",
|
55
|
+
"outerRadius",
|
56
|
+
"margin",
|
57
|
+
"onMouseEnter",
|
58
|
+
"onClick"
|
59
|
+
];
|
60
|
+
var radarProperties = [
|
61
|
+
"dataKey",
|
62
|
+
"points",
|
63
|
+
"shape",
|
64
|
+
"dot",
|
65
|
+
"activeDot",
|
66
|
+
"legendType",
|
67
|
+
"label",
|
68
|
+
"isAnimationActive",
|
69
|
+
"animationBegin",
|
70
|
+
"animationDuration",
|
71
|
+
"animationEasing",
|
72
|
+
"onAnimationStart",
|
73
|
+
"onAnimationEnd"
|
74
|
+
];
|
75
|
+
var dotProperties = [
|
76
|
+
"cx",
|
77
|
+
"cy",
|
78
|
+
"r",
|
79
|
+
"onClick",
|
80
|
+
"onMouseDown",
|
81
|
+
"onMouseUp",
|
82
|
+
"onMouseMove",
|
83
|
+
"onMouseOver",
|
84
|
+
"onMouseOut",
|
85
|
+
"onMouseEnter",
|
86
|
+
"onMouseLeave"
|
87
|
+
];
|
88
|
+
var polarGridProperties = [
|
89
|
+
"cx",
|
90
|
+
"cy",
|
91
|
+
"innerRadius",
|
92
|
+
"outerRadius",
|
93
|
+
"polarAngles",
|
94
|
+
"polarRadius",
|
95
|
+
"gridType"
|
96
|
+
];
|
97
|
+
var polarAngleAxisProperties = [
|
98
|
+
"dataKey",
|
99
|
+
"cx",
|
100
|
+
"cy",
|
101
|
+
"radius",
|
102
|
+
"axisLine",
|
103
|
+
"axisLineType",
|
104
|
+
"tickLine",
|
105
|
+
"tickSize",
|
106
|
+
"tick",
|
107
|
+
"ticks",
|
108
|
+
"orient",
|
109
|
+
"tickFormatter",
|
110
|
+
"type",
|
111
|
+
"allowDuplicatedCategory",
|
112
|
+
"onClick",
|
113
|
+
"onMouseDown",
|
114
|
+
"onMouseUp",
|
115
|
+
"onMouseMove",
|
116
|
+
"onMouseOver",
|
117
|
+
"onMouseOut",
|
118
|
+
"onMouseEnter",
|
119
|
+
"onMouseLeave"
|
120
|
+
];
|
121
|
+
var polarRadiusAxisProperties = [
|
122
|
+
"angle",
|
123
|
+
"type",
|
124
|
+
"allowDuplicatedCategory",
|
125
|
+
"cx",
|
126
|
+
"cy",
|
127
|
+
"domain",
|
128
|
+
"reversed",
|
129
|
+
"label",
|
130
|
+
"orientation",
|
131
|
+
"axisLine",
|
132
|
+
"tick",
|
133
|
+
"tickSize",
|
134
|
+
"tickFormatter",
|
135
|
+
"tickCount",
|
136
|
+
"scale",
|
137
|
+
"onClick",
|
138
|
+
"onMouseDown",
|
139
|
+
"onMouseUp",
|
140
|
+
"onMouseMove",
|
141
|
+
"onMouseOver",
|
142
|
+
"onMouseOut",
|
143
|
+
"onMouseEnter",
|
144
|
+
"onMouseLeave"
|
145
|
+
];
|
146
|
+
|
147
|
+
// src/use-radar-chart.ts
|
148
|
+
var useRadarChart = ({
|
149
|
+
data,
|
150
|
+
series,
|
151
|
+
dataKey,
|
152
|
+
withDots = false,
|
153
|
+
withActiveDots = false,
|
154
|
+
strokeWidth = 2,
|
155
|
+
fillOpacity = 0.4,
|
156
|
+
valueFormatter,
|
157
|
+
strokeDasharray,
|
158
|
+
styles,
|
159
|
+
...rest
|
160
|
+
}) => {
|
161
|
+
var _a;
|
162
|
+
const { theme } = (0, import_core2.useTheme)();
|
163
|
+
const [highlightedArea, setHighlightedArea] = (0, import_react.useState)(null);
|
164
|
+
const shouldHighlight = highlightedArea !== null;
|
165
|
+
const {
|
166
|
+
dot = {},
|
167
|
+
activeDot = {},
|
168
|
+
dimDot,
|
169
|
+
dimRadar,
|
170
|
+
...computedRadarProps
|
171
|
+
} = (_a = rest.radarProps) != null ? _a : {};
|
172
|
+
const radarColors = (0, import_react.useMemo)(
|
173
|
+
() => series.map(({ color }, index) => ({
|
174
|
+
__prefix: "ui",
|
175
|
+
name: `radar-${index}`,
|
176
|
+
token: "colors",
|
177
|
+
value: color != null ? color : "transparent"
|
178
|
+
})),
|
179
|
+
[series]
|
180
|
+
);
|
181
|
+
const radarVars = (0, import_react.useMemo)(
|
182
|
+
() => [
|
183
|
+
...radarColors,
|
184
|
+
{ __prefix: "ui", name: "fill-opacity", value: fillOpacity }
|
185
|
+
],
|
186
|
+
[fillOpacity, radarColors]
|
187
|
+
);
|
188
|
+
const [chartProps, radarChartClassName] = (0, import_react.useMemo)(
|
189
|
+
() => {
|
190
|
+
var _a2;
|
191
|
+
return getComponentProps(
|
192
|
+
[(_a2 = rest.chartProps) != null ? _a2 : {}, radarChartProperties],
|
193
|
+
styles.chart
|
194
|
+
)(theme);
|
195
|
+
},
|
196
|
+
[rest.chartProps, styles.chart, theme]
|
197
|
+
);
|
198
|
+
const [polarGridProps, polarGridClassName] = (0, import_react.useMemo)(
|
199
|
+
() => {
|
200
|
+
var _a2;
|
201
|
+
return getComponentProps(
|
202
|
+
[(_a2 = rest.polarGridProps) != null ? _a2 : {}, polarGridProperties],
|
203
|
+
styles.polarGrid
|
204
|
+
)(theme);
|
205
|
+
},
|
206
|
+
[rest.polarGridProps, styles.polarGrid, theme]
|
207
|
+
);
|
208
|
+
const [polarAngleAxisProps, polarAngleAxisClassName] = (0, import_react.useMemo)(
|
209
|
+
() => {
|
210
|
+
var _a2;
|
211
|
+
return getComponentProps(
|
212
|
+
[(_a2 = rest.polarAngleAxisProps) != null ? _a2 : {}, polarAngleAxisProperties],
|
213
|
+
styles.polarAngleAxis
|
214
|
+
)(theme);
|
215
|
+
},
|
216
|
+
[rest.polarAngleAxisProps, styles.polarAngleAxis, theme]
|
217
|
+
);
|
218
|
+
const polarAngleAxisTickClassName = (0, import_react.useMemo)(
|
219
|
+
() => getClassName({
|
220
|
+
...styles.polarAngleAxisTick,
|
221
|
+
...rest.polarAngleAxisTickProps
|
222
|
+
})(theme),
|
223
|
+
[rest.polarAngleAxisTickProps, styles.polarAngleAxisTick, theme]
|
224
|
+
);
|
225
|
+
const [polarRadiusAxisProps, polarRadiusAxisClassName] = (0, import_react.useMemo)(
|
226
|
+
() => {
|
227
|
+
var _a2;
|
228
|
+
return getComponentProps(
|
229
|
+
[(_a2 = rest.polarRadiusAxisProps) != null ? _a2 : {}, polarRadiusAxisProperties],
|
230
|
+
styles.polarRadiusAxis
|
231
|
+
)(theme);
|
232
|
+
},
|
233
|
+
[rest.polarRadiusAxisProps, styles.polarRadiusAxis, theme]
|
234
|
+
);
|
235
|
+
const polarRadiusAxisTickClassName = (0, import_react.useMemo)(
|
236
|
+
() => getClassName({
|
237
|
+
...styles.polarRadiusAxisTick,
|
238
|
+
...rest.polarRadiusAxisTickProps
|
239
|
+
})(theme),
|
240
|
+
[rest.polarRadiusAxisTickProps, styles.polarRadiusAxisTick, theme]
|
241
|
+
);
|
242
|
+
const [radarProps, radarClassName] = (0, import_react.useMemo)(() => {
|
243
|
+
const resolvedRadarProps = {
|
244
|
+
fillOpacity: "var(--ui-fill-opacity)",
|
245
|
+
...computedRadarProps
|
246
|
+
};
|
247
|
+
return getComponentProps(
|
248
|
+
[resolvedRadarProps, radarProperties],
|
249
|
+
styles.radar
|
250
|
+
)(theme);
|
251
|
+
}, [computedRadarProps, styles.radar, theme]);
|
252
|
+
const [dimRadarProps, dimRadarClassName] = (0, import_react.useMemo)(() => {
|
253
|
+
const resolvedDimRadar = {
|
254
|
+
fillOpacity: 0.3,
|
255
|
+
strokeOpacity: 0.3,
|
256
|
+
...dimRadar
|
257
|
+
};
|
258
|
+
return getComponentProps([resolvedDimRadar, radarProperties])(
|
259
|
+
theme
|
260
|
+
);
|
261
|
+
}, [dimRadar, theme]);
|
262
|
+
const [dotProps, dotClassName] = (0, import_react.useMemo)(() => {
|
263
|
+
const resolvedDot = { fillOpacity: 1, strokeWidth: 2, ...dot };
|
264
|
+
return getComponentProps(
|
265
|
+
[resolvedDot, dotProperties],
|
266
|
+
styles.dot
|
267
|
+
)(theme);
|
268
|
+
}, [dot, styles.dot, theme]);
|
269
|
+
const [activeDotProps, activeDotClassName] = (0, import_react.useMemo)(
|
270
|
+
() => getComponentProps(
|
271
|
+
[activeDot, dotProperties],
|
272
|
+
styles.activeDot
|
273
|
+
)(theme),
|
274
|
+
[activeDot, styles.activeDot, theme]
|
275
|
+
);
|
276
|
+
const [dimDotProps, dimDotClassName] = (0, import_react.useMemo)(() => {
|
277
|
+
const resolvedDimDot = { fillOpacity: 0, strokeOpacity: 0, ...dimDot };
|
278
|
+
return getComponentProps([resolvedDimDot, dotProperties])(
|
279
|
+
theme
|
280
|
+
);
|
281
|
+
}, [dimDot, theme]);
|
282
|
+
const radarPropList = (0, import_react.useMemo)(
|
283
|
+
() => series.map((props, index) => {
|
284
|
+
const {
|
285
|
+
dataKey: dataKey2,
|
286
|
+
dot: dot2 = {},
|
287
|
+
activeDot: activeDot2 = {},
|
288
|
+
dimDot: dimDot2 = {},
|
289
|
+
dimRadar: dimRadar2 = {},
|
290
|
+
...computedProps
|
291
|
+
} = props;
|
292
|
+
const color = `var(--ui-radar-${index})`;
|
293
|
+
const dimmed = shouldHighlight && highlightedArea !== dataKey2;
|
294
|
+
const computedDimRadar = { ...dimRadarProps, ...dimRadar2 };
|
295
|
+
const resolvedProps = {
|
296
|
+
...radarProps,
|
297
|
+
...computedProps,
|
298
|
+
...dimmed ? computedDimRadar : {}
|
299
|
+
};
|
300
|
+
const rest2 = getComponentProps(
|
301
|
+
[resolvedProps, radarProperties],
|
302
|
+
radarClassName,
|
303
|
+
dimmed ? dimRadarClassName : void 0
|
304
|
+
)(theme, true);
|
305
|
+
let resolvedActiveDot;
|
306
|
+
if (withActiveDots) {
|
307
|
+
const computedActiveDot = {
|
308
|
+
...activeDotProps,
|
309
|
+
...activeDot2
|
310
|
+
};
|
311
|
+
const [rest3, className] = getComponentProps(
|
312
|
+
[computedActiveDot, dotProperties],
|
313
|
+
activeDotClassName
|
314
|
+
)(theme);
|
315
|
+
resolvedActiveDot = {
|
316
|
+
className: (0, import_utils2.cx)("ui-radar-chart__active-dot", className),
|
317
|
+
fill: color,
|
318
|
+
stroke: color,
|
319
|
+
r: 4,
|
320
|
+
...rest3
|
321
|
+
};
|
322
|
+
} else {
|
323
|
+
resolvedActiveDot = false;
|
324
|
+
}
|
325
|
+
let resolvedDot;
|
326
|
+
if (withDots) {
|
327
|
+
const computedDimDot = { ...dimDotProps, ...dimDot2 };
|
328
|
+
const computedDot = {
|
329
|
+
...dotProps,
|
330
|
+
...dot2,
|
331
|
+
...dimmed ? computedDimDot : {}
|
332
|
+
};
|
333
|
+
const [rest3, className] = getComponentProps(
|
334
|
+
[computedDot, dotProperties],
|
335
|
+
dotClassName,
|
336
|
+
dimmed ? dimDotClassName : void 0
|
337
|
+
)(theme);
|
338
|
+
resolvedDot = {
|
339
|
+
className: (0, import_utils2.cx)("ui-radar-chart__dot", className),
|
340
|
+
fill: color,
|
341
|
+
r: 4,
|
342
|
+
...rest3
|
343
|
+
};
|
344
|
+
} else {
|
345
|
+
resolvedDot = false;
|
346
|
+
}
|
347
|
+
return {
|
348
|
+
...rest2,
|
349
|
+
color,
|
350
|
+
dataKey: dataKey2,
|
351
|
+
dot: resolvedDot,
|
352
|
+
activeDot: resolvedActiveDot
|
353
|
+
};
|
354
|
+
}),
|
355
|
+
[
|
356
|
+
activeDotClassName,
|
357
|
+
activeDotProps,
|
358
|
+
dimDotClassName,
|
359
|
+
dimDotProps,
|
360
|
+
dimRadarClassName,
|
361
|
+
dimRadarProps,
|
362
|
+
dotClassName,
|
363
|
+
dotProps,
|
364
|
+
highlightedArea,
|
365
|
+
radarClassName,
|
366
|
+
radarProps,
|
367
|
+
series,
|
368
|
+
shouldHighlight,
|
369
|
+
theme,
|
370
|
+
withActiveDots,
|
371
|
+
withDots
|
372
|
+
]
|
373
|
+
);
|
374
|
+
const getRadarChartProps = (0, import_react.useCallback)(
|
375
|
+
({ className, ...props } = {}, ref = null) => ({
|
376
|
+
ref,
|
377
|
+
className: (0, import_utils2.cx)(className, radarChartClassName),
|
378
|
+
data,
|
379
|
+
...props,
|
380
|
+
...chartProps
|
381
|
+
}),
|
382
|
+
[data, radarChartClassName, chartProps]
|
383
|
+
);
|
384
|
+
const getRadarProps = (0, import_react.useCallback)(
|
385
|
+
({ index, className: classNameProp, ...props }, ref = null) => {
|
386
|
+
const { color, className, dataKey: dataKey2, activeDot: activeDot2, dot: dot2, ...rest2 } = radarPropList[index];
|
387
|
+
return {
|
388
|
+
ref,
|
389
|
+
className: (0, import_utils2.cx)(classNameProp, className),
|
390
|
+
activeDot: activeDot2,
|
391
|
+
dot: dot2,
|
392
|
+
name: dataKey2,
|
393
|
+
dataKey: dataKey2,
|
394
|
+
fill: color,
|
395
|
+
strokeWidth,
|
396
|
+
stroke: color,
|
397
|
+
isAnimationActive: false,
|
398
|
+
...props,
|
399
|
+
...rest2
|
400
|
+
};
|
401
|
+
},
|
402
|
+
[radarPropList, strokeWidth]
|
403
|
+
);
|
404
|
+
const getPolarGridProps = (0, import_react.useCallback)(
|
405
|
+
({ className, ...props } = {}, ref = null) => ({
|
406
|
+
ref,
|
407
|
+
className: (0, import_utils2.cx)(className, polarGridClassName),
|
408
|
+
strokeDasharray,
|
409
|
+
...props,
|
410
|
+
...polarGridProps
|
411
|
+
}),
|
412
|
+
[polarGridClassName, polarGridProps, strokeDasharray]
|
413
|
+
);
|
414
|
+
const getPolarAngleAxisProps = (0, import_react.useCallback)(
|
415
|
+
({ className, ...props } = {}, ref = null) => ({
|
416
|
+
ref,
|
417
|
+
className: (0, import_utils2.cx)(className, polarAngleAxisClassName),
|
418
|
+
dataKey,
|
419
|
+
tick: {
|
420
|
+
className: (0, import_utils2.cx)(
|
421
|
+
"ui-radar-chart__polar-angle-axis-tick",
|
422
|
+
polarAngleAxisTickClassName
|
423
|
+
)
|
424
|
+
},
|
425
|
+
tickFormatter: valueFormatter,
|
426
|
+
tickSize: 16,
|
427
|
+
...props,
|
428
|
+
...polarAngleAxisProps
|
429
|
+
}),
|
430
|
+
[
|
431
|
+
dataKey,
|
432
|
+
polarAngleAxisClassName,
|
433
|
+
polarAngleAxisProps,
|
434
|
+
polarAngleAxisTickClassName,
|
435
|
+
valueFormatter
|
436
|
+
]
|
437
|
+
);
|
438
|
+
const getPolarRadiusAxisProps = (0, import_react.useCallback)(
|
439
|
+
({ className, ...props } = {}, ref = null) => ({
|
440
|
+
ref,
|
441
|
+
className: (0, import_utils2.cx)(className, polarRadiusAxisClassName),
|
442
|
+
tick: {
|
443
|
+
className: (0, import_utils2.cx)(
|
444
|
+
"ui-radar-chart__polar-radius-axis-tick",
|
445
|
+
polarRadiusAxisTickClassName
|
446
|
+
)
|
447
|
+
},
|
448
|
+
tickFormatter: valueFormatter,
|
449
|
+
...props,
|
450
|
+
...polarRadiusAxisProps
|
451
|
+
}),
|
452
|
+
[
|
453
|
+
polarRadiusAxisClassName,
|
454
|
+
polarRadiusAxisProps,
|
455
|
+
polarRadiusAxisTickClassName,
|
456
|
+
valueFormatter
|
457
|
+
]
|
458
|
+
);
|
459
|
+
return {
|
460
|
+
radarVars,
|
461
|
+
getRadarChartProps,
|
462
|
+
getRadarProps,
|
463
|
+
getPolarGridProps,
|
464
|
+
getPolarAngleAxisProps,
|
465
|
+
getPolarRadiusAxisProps,
|
466
|
+
setHighlightedArea
|
467
|
+
};
|
468
|
+
};
|
469
|
+
// Annotate the CommonJS export names for ESM import in node:
|
470
|
+
0 && (module.exports = {
|
471
|
+
useRadarChart
|
472
|
+
});
|
473
|
+
//# sourceMappingURL=use-radar-chart.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../src/use-radar-chart.ts","../src/chart-utils.ts","../src/rechart-properties.ts"],"sourcesContent":["import { useTheme } from \"@yamada-ui/core\"\nimport type { CSSUIObject, CSSUIProps } from \"@yamada-ui/core\"\nimport { cx, type Dict } from \"@yamada-ui/utils\"\nimport type { ComponentPropsWithoutRef } from \"react\"\nimport { useCallback, useMemo, useState } from \"react\"\nimport type * as Recharts from \"recharts\"\nimport { getClassName, getComponentProps } from \"./chart-utils\"\nimport type {\n ChartPropGetter,\n PolarAngleAxisProps,\n PolarGridProps,\n PolarRadiusAxisProps,\n RadarChartProps,\n RadarProps,\n RequiredChartPropGetter,\n} from \"./chart.types\"\nimport {\n dotProperties,\n polarAngleAxisProperties,\n polarGridProperties,\n polarRadiusAxisProperties,\n radarChartProperties,\n radarProperties,\n} from \"./rechart-properties\"\n\nexport type UseRadarChartOptions = {\n /**\n * Chart data.\n */\n data: Dict[]\n /**\n * An array of objects with `dataKey` and `color` keys. Determines which data should be consumed from the `data` array.\n */\n series: RadarProps[]\n /**\n * The key of a group of data which should be unique in an chart.\n */\n dataKey: string\n /**\n * Props for the radar.\n */\n radarProps?: Partial<RadarProps>\n /**\n * Props passed down to recharts `RadarChart` component.\n */\n chartProps?: RadarChartProps\n /**\n * Props passed down to recharts `PolarGrid` component.\n */\n polarGridProps?: PolarGridProps\n /**\n * Props passed down to recharts `PolarAngleAxis` component.\n */\n polarAngleAxisProps?: PolarAngleAxisProps\n /**\n * Props passed down to recharts `tick` of `PolarAngleAxis` component.\n */\n polarAngleAxisTickProps?: CSSUIProps\n /**\n * Props passed down to recharts `PolarRadiusAxis` component.\n */\n polarRadiusAxisProps?: PolarRadiusAxisProps\n /**\n * Props passed down to recharts `tick` of `PolarRadiusAxis` component.\n */\n polarRadiusAxisTickProps?: CSSUIProps\n /**\n * Determines whether dots should be displayed.\n *\n * @default false\n */\n withDots?: boolean\n /**\n * Determines whether activeDots should be displayed.\n *\n * @default true\n */\n withActiveDots?: boolean\n /**\n * Stroke width for the chart radars.\n *\n * @default 2\n */\n strokeWidth?: number\n /**\n * Controls fill opacity of all radars.\n *\n * @default 1\n */\n fillOpacity?: number | [number, number]\n /**\n * A function to format values on Y axis and inside the tooltip.\n */\n valueFormatter?: (value: number) => string\n /**\n * Dash array for the grid lines and cursor. The first number is the length of the solid line section and the second number is the length of the interval.\n */\n strokeDasharray?: string | number\n}\n\ntype UseRadarChartProps = UseRadarChartOptions & {\n styles: Dict<CSSUIObject>\n}\n\nexport const useRadarChart = ({\n data,\n series,\n dataKey,\n withDots = false,\n withActiveDots = false,\n strokeWidth = 2,\n fillOpacity = 0.4,\n valueFormatter,\n strokeDasharray,\n styles,\n ...rest\n}: UseRadarChartProps) => {\n const { theme } = useTheme()\n const [highlightedArea, setHighlightedArea] = useState<string | null>(null)\n const shouldHighlight = highlightedArea !== null\n const {\n dot = {},\n activeDot = {},\n dimDot,\n dimRadar,\n ...computedRadarProps\n } = rest.radarProps ?? {}\n\n const radarColors: CSSUIProps[\"var\"] = useMemo(\n () =>\n series.map(({ color }, index) => ({\n __prefix: \"ui\",\n name: `radar-${index}`,\n token: \"colors\",\n value: color ?? \"transparent\",\n })),\n [series],\n )\n\n const radarVars: CSSUIProps[\"var\"] = useMemo(\n () =>\n [\n ...radarColors,\n { __prefix: \"ui\", name: \"fill-opacity\", value: fillOpacity },\n ] as Required<CSSUIProps>[\"var\"],\n [fillOpacity, radarColors],\n )\n\n const [chartProps, radarChartClassName] = useMemo(\n () =>\n getComponentProps<Dict, string>(\n [rest.chartProps ?? {}, radarChartProperties],\n styles.chart,\n )(theme),\n [rest.chartProps, styles.chart, theme],\n )\n\n const [polarGridProps, polarGridClassName] = useMemo(\n () =>\n getComponentProps<Dict, string>(\n [rest.polarGridProps ?? {}, polarGridProperties],\n styles.polarGrid,\n )(theme),\n [rest.polarGridProps, styles.polarGrid, theme],\n )\n\n const [polarAngleAxisProps, polarAngleAxisClassName] = useMemo(\n () =>\n getComponentProps<Dict, string>(\n [rest.polarAngleAxisProps ?? {}, polarAngleAxisProperties],\n styles.polarAngleAxis,\n )(theme),\n [rest.polarAngleAxisProps, styles.polarAngleAxis, theme],\n )\n\n const polarAngleAxisTickClassName = useMemo(\n () =>\n getClassName({\n ...styles.polarAngleAxisTick,\n ...rest.polarAngleAxisTickProps,\n })(theme),\n [rest.polarAngleAxisTickProps, styles.polarAngleAxisTick, theme],\n )\n\n const [polarRadiusAxisProps, polarRadiusAxisClassName] = useMemo(\n () =>\n getComponentProps<Dict, string>(\n [rest.polarRadiusAxisProps ?? {}, polarRadiusAxisProperties],\n styles.polarRadiusAxis,\n )(theme),\n [rest.polarRadiusAxisProps, styles.polarRadiusAxis, theme],\n )\n\n const polarRadiusAxisTickClassName = useMemo(\n () =>\n getClassName({\n ...styles.polarRadiusAxisTick,\n ...rest.polarRadiusAxisTickProps,\n })(theme),\n [rest.polarRadiusAxisTickProps, styles.polarRadiusAxisTick, theme],\n )\n\n const [radarProps, radarClassName] = useMemo(() => {\n const resolvedRadarProps = {\n fillOpacity: \"var(--ui-fill-opacity)\",\n ...computedRadarProps,\n }\n\n return getComponentProps<Dict, string>(\n [resolvedRadarProps, radarProperties],\n styles.radar,\n )(theme)\n }, [computedRadarProps, styles.radar, theme])\n\n const [dimRadarProps, dimRadarClassName] = useMemo(() => {\n const resolvedDimRadar = {\n fillOpacity: 0.3,\n strokeOpacity: 0.3,\n ...dimRadar,\n }\n\n return getComponentProps<Dict, string>([resolvedDimRadar, radarProperties])(\n theme,\n )\n }, [dimRadar, theme])\n\n const [dotProps, dotClassName] = useMemo(() => {\n const resolvedDot = { fillOpacity: 1, strokeWidth: 2, ...dot }\n\n return getComponentProps<Dict, string>(\n [resolvedDot, dotProperties],\n styles.dot,\n )(theme)\n }, [dot, styles.dot, theme])\n\n const [activeDotProps, activeDotClassName] = useMemo(\n () =>\n getComponentProps<Dict, string>(\n [activeDot, dotProperties],\n styles.activeDot,\n )(theme),\n [activeDot, styles.activeDot, theme],\n )\n\n const [dimDotProps, dimDotClassName] = useMemo(() => {\n const resolvedDimDot = { fillOpacity: 0, strokeOpacity: 0, ...dimDot }\n return getComponentProps<Dict, string>([resolvedDimDot, dotProperties])(\n theme,\n )\n }, [dimDot, theme])\n\n const radarPropList = useMemo(\n () =>\n series.map((props, index) => {\n const {\n dataKey,\n dot = {},\n activeDot = {},\n dimDot = {},\n dimRadar = {},\n ...computedProps\n } = props\n const color = `var(--ui-radar-${index})`\n const dimmed = shouldHighlight && highlightedArea !== dataKey\n const computedDimRadar = { ...dimRadarProps, ...dimRadar }\n\n const resolvedProps = {\n ...radarProps,\n ...computedProps,\n ...(dimmed ? computedDimRadar : {}),\n }\n const rest = getComponentProps<Dict, string>(\n [resolvedProps, radarProperties],\n radarClassName,\n dimmed ? dimRadarClassName : undefined,\n )(theme, true)\n\n let resolvedActiveDot: Recharts.DotProps | boolean\n\n if (withActiveDots) {\n const computedActiveDot = {\n ...activeDotProps,\n ...activeDot,\n }\n\n const [rest, className] = getComponentProps<Dict, string>(\n [computedActiveDot, dotProperties],\n activeDotClassName,\n )(theme)\n\n resolvedActiveDot = {\n className: cx(\"ui-radar-chart__active-dot\", className),\n fill: color,\n stroke: color,\n r: 4,\n ...rest,\n } as Recharts.DotProps\n } else {\n resolvedActiveDot = false\n }\n\n let resolvedDot: Recharts.DotProps | boolean\n\n if (withDots) {\n const computedDimDot = { ...dimDotProps, ...dimDot }\n const computedDot = {\n ...dotProps,\n ...dot,\n ...(dimmed ? computedDimDot : {}),\n }\n\n const [rest, className] = getComponentProps(\n [computedDot, dotProperties],\n dotClassName,\n dimmed ? dimDotClassName : undefined,\n )(theme)\n\n resolvedDot = {\n className: cx(\"ui-radar-chart__dot\", className),\n fill: color,\n r: 4,\n ...rest,\n } as Recharts.DotProps\n } else {\n resolvedDot = false\n }\n\n return {\n ...rest,\n color,\n dataKey,\n dot: resolvedDot,\n activeDot: resolvedActiveDot,\n }\n }),\n [\n activeDotClassName,\n activeDotProps,\n dimDotClassName,\n dimDotProps,\n dimRadarClassName,\n dimRadarProps,\n dotClassName,\n dotProps,\n highlightedArea,\n radarClassName,\n radarProps,\n series,\n shouldHighlight,\n theme,\n withActiveDots,\n withDots,\n ],\n )\n\n const getRadarChartProps: ChartPropGetter<\n \"div\",\n ComponentPropsWithoutRef<typeof Recharts.RadarChart>,\n ComponentPropsWithoutRef<typeof Recharts.RadarChart>\n > = useCallback(\n ({ className, ...props } = {}, ref = null) => ({\n ref,\n className: cx(className, radarChartClassName),\n data,\n ...props,\n ...chartProps,\n }),\n [data, radarChartClassName, chartProps],\n )\n\n const getRadarProps: RequiredChartPropGetter<\n \"div\",\n { index: number },\n Omit<Recharts.RadarProps, \"ref\">\n > = useCallback(\n ({ index, className: classNameProp, ...props }, ref = null) => {\n const { color, className, dataKey, activeDot, dot, ...rest } =\n radarPropList[index]\n\n return {\n ref,\n className: cx(classNameProp, className),\n activeDot,\n dot,\n name: dataKey as string,\n dataKey,\n fill: color,\n strokeWidth,\n stroke: color,\n isAnimationActive: false,\n ...(props as Omit<Recharts.RadarProps, \"dataKey\">),\n ...rest,\n }\n },\n [radarPropList, strokeWidth],\n )\n\n const getPolarGridProps: ChartPropGetter<\n \"div\",\n Recharts.PolarGridProps,\n Recharts.PolarGridProps\n > = useCallback(\n ({ className, ...props } = {}, ref = null) => ({\n ref,\n className: cx(className, polarGridClassName),\n strokeDasharray,\n ...props,\n ...polarGridProps,\n }),\n [polarGridClassName, polarGridProps, strokeDasharray],\n )\n\n const getPolarAngleAxisProps: ChartPropGetter<\n \"div\",\n Recharts.PolarAngleAxisProps,\n Omit<Recharts.PolarAngleAxisProps, \"ref\">\n > = useCallback(\n ({ className, ...props } = {}, ref = null) => ({\n ref,\n className: cx(className, polarAngleAxisClassName),\n dataKey,\n tick: {\n className: cx(\n \"ui-radar-chart__polar-angle-axis-tick\",\n polarAngleAxisTickClassName,\n ),\n },\n tickFormatter: valueFormatter,\n tickSize: 16,\n ...props,\n ...polarAngleAxisProps,\n }),\n [\n dataKey,\n polarAngleAxisClassName,\n polarAngleAxisProps,\n polarAngleAxisTickClassName,\n valueFormatter,\n ],\n )\n\n const getPolarRadiusAxisProps: ChartPropGetter<\n \"div\",\n Recharts.PolarRadiusAxisProps,\n Omit<Recharts.PolarRadiusAxisProps, \"ref\">\n > = useCallback(\n ({ className, ...props } = {}, ref = null) => ({\n ref,\n className: cx(className, polarRadiusAxisClassName),\n tick: {\n className: cx(\n \"ui-radar-chart__polar-radius-axis-tick\",\n polarRadiusAxisTickClassName,\n ),\n },\n tickFormatter: valueFormatter,\n ...props,\n ...polarRadiusAxisProps,\n }),\n [\n polarRadiusAxisClassName,\n polarRadiusAxisProps,\n polarRadiusAxisTickClassName,\n valueFormatter,\n ],\n )\n\n return {\n radarVars,\n getRadarChartProps,\n getRadarProps,\n getPolarGridProps,\n getPolarAngleAxisProps,\n getPolarRadiusAxisProps,\n setHighlightedArea,\n }\n}\n\nexport type UseRadarChartReturn = ReturnType<typeof useRadarChart>\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,IAAAA,eAAyB;AAEzB,IAAAC,gBAA8B;AAE9B,mBAA+C;;;ACH/C,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,SA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WAAW,GAAG,MAAM,IAAI,CAAC,GAAG,MAAM,UAAU;AAAA,MAC7C;AAAA,MACA,eAAW,kBAAG,WAAW,uBAAuB;AAAA,MAChD;AAAA,MACA,MAAM;AAAA,QACJ,eAAW;AAAA,UACT;AAAA,UACA;AAAA,QACF;AAAA,MACF;AAAA,MACA,eAAe;AAAA,MACf,UAAU;AAAA,MACV,GAAG;AAAA,MACH,GAAG;AAAA,IACL;AAAA,IACA;AAAA,MACE;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IACF;AAAA,EACF;AAEA,QAAM,8BAIF;AAAA,IACF,CAAC,EAAE,WAAW,GAAG,MAAM,IAAI,CAAC,GAAG,MAAM,UAAU;AAAA,MAC7C;AAAA,MACA,eAAW,kBAAG,WAAW,wBAAwB;AAAA,MACjD,MAAM;AAAA,QACJ,eAAW;AAAA,UACT;AAAA,UACA;AAAA,QACF;AAAA,MACF;AAAA,MACA,eAAe;AAAA,MACf,GAAG;AAAA,MACH,GAAG;AAAA,IACL;AAAA,IACA;AAAA,MACE;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IACF;AAAA,EACF;AAEA,SAAO;AAAA,IACL;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF;AACF;","names":["import_core","import_utils","_a","dataKey","dot","activeDot","dimDot","dimRadar","rest"]}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@yamada-ui/charts",
|
3
|
-
"version": "1.1.
|
3
|
+
"version": "1.1.4-dev-20240508155232",
|
4
4
|
"description": "Yamada UI charts component",
|
5
5
|
"keywords": [
|
6
6
|
"yamada",
|
@@ -38,10 +38,7 @@
|
|
38
38
|
"dependencies": {
|
39
39
|
"recharts": "^2.12.4",
|
40
40
|
"@yamada-ui/core": "1.6.7",
|
41
|
-
"@yamada-ui/utils": "1.2.0"
|
42
|
-
"@yamada-ui/tooltip": "1.0.27",
|
43
|
-
"@yamada-ui/use-value": "1.1.13",
|
44
|
-
"@yamada-ui/use-token": "1.1.13"
|
41
|
+
"@yamada-ui/utils": "1.2.0"
|
45
42
|
},
|
46
43
|
"devDependencies": {
|
47
44
|
"clean-package": "2.2.0",
|