@yamada-ui/charts 1.5.4-next-20241005220055 → 1.5.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (225) hide show
  1. package/dist/area-chart-gradient.d.mts +2 -2
  2. package/dist/area-chart-gradient.d.ts +2 -2
  3. package/dist/area-chart-gradient.js +7 -5
  4. package/dist/area-chart-gradient.js.map +1 -1
  5. package/dist/area-chart-gradient.mjs +1 -1
  6. package/dist/area-chart-split.d.mts +2 -2
  7. package/dist/area-chart-split.d.ts +2 -2
  8. package/dist/area-chart-split.js +4 -2
  9. package/dist/area-chart-split.js.map +1 -1
  10. package/dist/area-chart-split.mjs +1 -1
  11. package/dist/area-chart.d.mts +8 -8
  12. package/dist/area-chart.d.ts +8 -8
  13. package/dist/area-chart.js +190 -175
  14. package/dist/area-chart.js.map +1 -1
  15. package/dist/area-chart.mjs +13 -13
  16. package/dist/bar-chart.d.mts +8 -8
  17. package/dist/bar-chart.d.ts +8 -8
  18. package/dist/bar-chart.js +143 -127
  19. package/dist/bar-chart.js.map +1 -1
  20. package/dist/bar-chart.mjs +11 -11
  21. package/dist/chart-legend.d.mts +1 -1
  22. package/dist/chart-legend.d.ts +1 -1
  23. package/dist/chart-legend.js +4 -2
  24. package/dist/chart-legend.js.map +1 -1
  25. package/dist/chart-legend.mjs +3 -3
  26. package/dist/chart-tooltip.d.mts +4 -4
  27. package/dist/chart-tooltip.d.ts +4 -4
  28. package/dist/chart-tooltip.js +9 -7
  29. package/dist/chart-tooltip.js.map +1 -1
  30. package/dist/chart-tooltip.mjs +3 -3
  31. package/dist/chart-utils.js.map +1 -1
  32. package/dist/chart-utils.mjs +1 -1
  33. package/dist/chart.types.d.mts +14 -14
  34. package/dist/chart.types.d.ts +14 -14
  35. package/dist/chart.types.js.map +1 -1
  36. package/dist/{chunk-UANITMH7.mjs → chunk-5VLSGWQD.mjs} +10 -8
  37. package/dist/chunk-5VLSGWQD.mjs.map +1 -0
  38. package/dist/{chunk-XYUYAHJX.mjs → chunk-6JRMEI6J.mjs} +2 -2
  39. package/dist/chunk-6JRMEI6J.mjs.map +1 -0
  40. package/dist/{chunk-VKBRU4Z4.mjs → chunk-AYVTBRCS.mjs} +29 -28
  41. package/dist/chunk-AYVTBRCS.mjs.map +1 -0
  42. package/dist/{chunk-6O5G3WYP.mjs → chunk-EZG52466.mjs} +29 -21
  43. package/dist/chunk-EZG52466.mjs.map +1 -0
  44. package/dist/{chunk-VEFEKDMH.mjs → chunk-FDALM73K.mjs} +15 -14
  45. package/dist/chunk-FDALM73K.mjs.map +1 -0
  46. package/dist/{chunk-2GQHI23M.mjs → chunk-GU4SGNWX.mjs} +5 -5
  47. package/dist/chunk-GU4SGNWX.mjs.map +1 -0
  48. package/dist/{chunk-MVRWZTQ5.mjs → chunk-NLXYCM5J.mjs} +2 -2
  49. package/dist/chunk-NLXYCM5J.mjs.map +1 -0
  50. package/dist/{chunk-EXBYAVSP.mjs → chunk-NMPNNSBN.mjs} +76 -74
  51. package/dist/chunk-NMPNNSBN.mjs.map +1 -0
  52. package/dist/{chunk-AL4MDJ4U.mjs → chunk-NQPC5LPY.mjs} +84 -82
  53. package/dist/chunk-NQPC5LPY.mjs.map +1 -0
  54. package/dist/{chunk-MN7T76SY.mjs → chunk-OG5CVPPV.mjs} +5 -3
  55. package/dist/chunk-OG5CVPPV.mjs.map +1 -0
  56. package/dist/{chunk-LLOU2WIV.mjs → chunk-OUIKA4AX.mjs} +5 -3
  57. package/dist/chunk-OUIKA4AX.mjs.map +1 -0
  58. package/dist/{chunk-3EHZJFIA.mjs → chunk-PKQB4BFG.mjs} +28 -28
  59. package/dist/chunk-PKQB4BFG.mjs.map +1 -0
  60. package/dist/{chunk-C3ZYUDXE.mjs → chunk-QPMW56KA.mjs} +52 -48
  61. package/dist/chunk-QPMW56KA.mjs.map +1 -0
  62. package/dist/{chunk-IJRYXT4V.mjs → chunk-R2LOTDR3.mjs} +2 -2
  63. package/dist/{chunk-IJRYXT4V.mjs.map → chunk-R2LOTDR3.mjs.map} +1 -1
  64. package/dist/{chunk-LSCPL7PM.mjs → chunk-SCY5V45W.mjs} +58 -56
  65. package/dist/chunk-SCY5V45W.mjs.map +1 -0
  66. package/dist/{chunk-VGNCWS23.mjs → chunk-SYBJTMPL.mjs} +92 -90
  67. package/dist/chunk-SYBJTMPL.mjs.map +1 -0
  68. package/dist/{chunk-ZGXEF3LO.mjs → chunk-TA7YJAW4.mjs} +49 -47
  69. package/dist/chunk-TA7YJAW4.mjs.map +1 -0
  70. package/dist/{chunk-O3LMKYXK.mjs → chunk-TU6MKMMV.mjs} +29 -28
  71. package/dist/chunk-TU6MKMMV.mjs.map +1 -0
  72. package/dist/{chunk-QL3DB7OJ.mjs → chunk-TXNC7GLT.mjs} +1 -1
  73. package/dist/{chunk-QL3DB7OJ.mjs.map → chunk-TXNC7GLT.mjs.map} +1 -1
  74. package/dist/{chunk-NHHJ5XFF.mjs → chunk-U325CYNR.mjs} +8 -6
  75. package/dist/chunk-U325CYNR.mjs.map +1 -0
  76. package/dist/{chunk-OPPMMNGP.mjs → chunk-UER5GW4M.mjs} +33 -24
  77. package/dist/chunk-UER5GW4M.mjs.map +1 -0
  78. package/dist/{chunk-FYAC4RRZ.mjs → chunk-UTD4XZDM.mjs} +11 -10
  79. package/dist/chunk-UTD4XZDM.mjs.map +1 -0
  80. package/dist/{chunk-A3IWA366.mjs → chunk-VK65X6Q2.mjs} +4 -4
  81. package/dist/chunk-VK65X6Q2.mjs.map +1 -0
  82. package/dist/{chunk-OJ2MLZZ7.mjs → chunk-X6PIY2M3.mjs} +7 -7
  83. package/dist/chunk-X6PIY2M3.mjs.map +1 -0
  84. package/dist/{chunk-MSG3WFBO.mjs → chunk-YIAK5DIM.mjs} +7 -6
  85. package/dist/chunk-YIAK5DIM.mjs.map +1 -0
  86. package/dist/{chunk-ZXBE4ERW.mjs → chunk-YTUEG4IY.mjs} +47 -45
  87. package/dist/chunk-YTUEG4IY.mjs.map +1 -0
  88. package/dist/{chunk-VUTCH2CU.mjs → chunk-YX23LEQ7.mjs} +13 -13
  89. package/dist/chunk-YX23LEQ7.mjs.map +1 -0
  90. package/dist/{chunk-BQT5TIKZ.mjs → chunk-ZRV4LO67.mjs} +44 -42
  91. package/dist/chunk-ZRV4LO67.mjs.map +1 -0
  92. package/dist/donut-chart.js +97 -89
  93. package/dist/donut-chart.js.map +1 -1
  94. package/dist/donut-chart.mjs +10 -10
  95. package/dist/index.d.mts +14 -14
  96. package/dist/index.d.ts +14 -14
  97. package/dist/index.js +2084 -2036
  98. package/dist/index.js.map +1 -1
  99. package/dist/index.mjs +28 -28
  100. package/dist/index.mjs.map +1 -1
  101. package/dist/line-chart.d.mts +7 -7
  102. package/dist/line-chart.d.ts +7 -7
  103. package/dist/line-chart.js +146 -138
  104. package/dist/line-chart.js.map +1 -1
  105. package/dist/line-chart.mjs +11 -11
  106. package/dist/pie-chart-label.d.mts +9 -9
  107. package/dist/pie-chart-label.d.ts +9 -9
  108. package/dist/pie-chart-label.js +14 -13
  109. package/dist/pie-chart-label.js.map +1 -1
  110. package/dist/pie-chart-label.mjs +1 -1
  111. package/dist/pie-chart.d.mts +11 -11
  112. package/dist/pie-chart.d.ts +11 -11
  113. package/dist/pie-chart.js +95 -87
  114. package/dist/pie-chart.js.map +1 -1
  115. package/dist/pie-chart.mjs +9 -9
  116. package/dist/radar-chart.d.mts +11 -11
  117. package/dist/radar-chart.d.ts +11 -11
  118. package/dist/radar-chart.js +87 -73
  119. package/dist/radar-chart.js.map +1 -1
  120. package/dist/radar-chart.mjs +9 -9
  121. package/dist/radial-chart.d.mts +10 -10
  122. package/dist/radial-chart.d.ts +10 -10
  123. package/dist/radial-chart.js +69 -62
  124. package/dist/radial-chart.js.map +1 -1
  125. package/dist/radial-chart.mjs +10 -10
  126. package/dist/use-area-chart.d.mts +53 -53
  127. package/dist/use-area-chart.d.ts +53 -53
  128. package/dist/use-area-chart.js +50 -46
  129. package/dist/use-area-chart.js.map +1 -1
  130. package/dist/use-area-chart.mjs +2 -2
  131. package/dist/use-bar-chart.d.mts +32 -32
  132. package/dist/use-bar-chart.d.ts +32 -32
  133. package/dist/use-bar-chart.js +30 -21
  134. package/dist/use-bar-chart.js.map +1 -1
  135. package/dist/use-bar-chart.mjs +2 -2
  136. package/dist/use-chart-axis.d.mts +27 -27
  137. package/dist/use-chart-axis.d.ts +27 -27
  138. package/dist/use-chart-axis.js +26 -26
  139. package/dist/use-chart-axis.js.map +1 -1
  140. package/dist/use-chart-axis.mjs +2 -2
  141. package/dist/use-chart-grid.d.mts +8 -8
  142. package/dist/use-chart-grid.d.ts +8 -8
  143. package/dist/use-chart-grid.js +3 -3
  144. package/dist/use-chart-grid.js.map +1 -1
  145. package/dist/use-chart-grid.mjs +2 -2
  146. package/dist/use-chart-label-list.d.mts +4 -4
  147. package/dist/use-chart-label-list.d.ts +4 -4
  148. package/dist/use-chart-label-list.js +5 -4
  149. package/dist/use-chart-label-list.js.map +1 -1
  150. package/dist/use-chart-label-list.mjs +2 -2
  151. package/dist/use-chart-label.d.mts +1 -1
  152. package/dist/use-chart-label.d.ts +1 -1
  153. package/dist/use-chart-label.js.map +1 -1
  154. package/dist/use-chart-label.mjs +2 -2
  155. package/dist/use-chart-legend.d.mts +1 -1
  156. package/dist/use-chart-legend.d.ts +1 -1
  157. package/dist/use-chart-legend.js +1 -1
  158. package/dist/use-chart-legend.js.map +1 -1
  159. package/dist/use-chart-legend.mjs +1 -1
  160. package/dist/use-chart-reference-line.d.mts +4 -4
  161. package/dist/use-chart-reference-line.d.ts +4 -4
  162. package/dist/use-chart-reference-line.js +8 -7
  163. package/dist/use-chart-reference-line.js.map +1 -1
  164. package/dist/use-chart-reference-line.mjs +2 -2
  165. package/dist/use-chart-tooltip.d.mts +7 -7
  166. package/dist/use-chart-tooltip.d.ts +7 -7
  167. package/dist/use-chart-tooltip.js +4 -4
  168. package/dist/use-chart-tooltip.js.map +1 -1
  169. package/dist/use-chart-tooltip.mjs +2 -2
  170. package/dist/use-chart.d.mts +6 -10
  171. package/dist/use-chart.d.ts +6 -10
  172. package/dist/use-chart.js +2 -2
  173. package/dist/use-chart.js.map +1 -1
  174. package/dist/use-chart.mjs +2 -2
  175. package/dist/use-line-chart.d.mts +43 -43
  176. package/dist/use-line-chart.d.ts +43 -43
  177. package/dist/use-line-chart.js +26 -25
  178. package/dist/use-line-chart.js.map +1 -1
  179. package/dist/use-line-chart.mjs +2 -2
  180. package/dist/use-pie-chart.d.mts +47 -47
  181. package/dist/use-pie-chart.d.ts +47 -47
  182. package/dist/use-pie-chart.js +40 -38
  183. package/dist/use-pie-chart.js.map +1 -1
  184. package/dist/use-pie-chart.mjs +3 -3
  185. package/dist/use-polar-grid.d.mts +5 -5
  186. package/dist/use-polar-grid.d.ts +5 -5
  187. package/dist/use-polar-grid.js.map +1 -1
  188. package/dist/use-polar-grid.mjs +2 -2
  189. package/dist/use-radar-chart.d.mts +41 -41
  190. package/dist/use-radar-chart.d.ts +41 -41
  191. package/dist/use-radar-chart.js +27 -19
  192. package/dist/use-radar-chart.js.map +1 -1
  193. package/dist/use-radar-chart.mjs +2 -2
  194. package/dist/use-radial-chart.d.mts +17 -17
  195. package/dist/use-radial-chart.d.ts +17 -17
  196. package/dist/use-radial-chart.js +11 -11
  197. package/dist/use-radial-chart.js.map +1 -1
  198. package/dist/use-radial-chart.mjs +2 -2
  199. package/package.json +3 -3
  200. package/dist/chunk-2GQHI23M.mjs.map +0 -1
  201. package/dist/chunk-3EHZJFIA.mjs.map +0 -1
  202. package/dist/chunk-6O5G3WYP.mjs.map +0 -1
  203. package/dist/chunk-A3IWA366.mjs.map +0 -1
  204. package/dist/chunk-AL4MDJ4U.mjs.map +0 -1
  205. package/dist/chunk-BQT5TIKZ.mjs.map +0 -1
  206. package/dist/chunk-C3ZYUDXE.mjs.map +0 -1
  207. package/dist/chunk-EXBYAVSP.mjs.map +0 -1
  208. package/dist/chunk-FYAC4RRZ.mjs.map +0 -1
  209. package/dist/chunk-LLOU2WIV.mjs.map +0 -1
  210. package/dist/chunk-LSCPL7PM.mjs.map +0 -1
  211. package/dist/chunk-MN7T76SY.mjs.map +0 -1
  212. package/dist/chunk-MSG3WFBO.mjs.map +0 -1
  213. package/dist/chunk-MVRWZTQ5.mjs.map +0 -1
  214. package/dist/chunk-NHHJ5XFF.mjs.map +0 -1
  215. package/dist/chunk-O3LMKYXK.mjs.map +0 -1
  216. package/dist/chunk-OJ2MLZZ7.mjs.map +0 -1
  217. package/dist/chunk-OPPMMNGP.mjs.map +0 -1
  218. package/dist/chunk-UANITMH7.mjs.map +0 -1
  219. package/dist/chunk-VEFEKDMH.mjs.map +0 -1
  220. package/dist/chunk-VGNCWS23.mjs.map +0 -1
  221. package/dist/chunk-VKBRU4Z4.mjs.map +0 -1
  222. package/dist/chunk-VUTCH2CU.mjs.map +0 -1
  223. package/dist/chunk-XYUYAHJX.mjs.map +0 -1
  224. package/dist/chunk-ZGXEF3LO.mjs.map +0 -1
  225. package/dist/chunk-ZXBE4ERW.mjs.map +0 -1
@@ -235,13 +235,13 @@ var useChart = ({ containerProps = {} }) => {
235
235
  getContainerProps
236
236
  };
237
237
  };
238
- var useLegend = ({} = {}) => {
238
+ var useLegend = () => {
239
239
  const { styles } = useChartContext();
240
240
  return {
241
241
  styles
242
242
  };
243
243
  };
244
- var useTooltip = ({} = {}) => {
244
+ var useTooltip = () => {
245
245
  const { styles } = useChartContext();
246
246
  return {
247
247
  styles
@@ -253,7 +253,7 @@ var import_jsx_runtime = require("react/jsx-runtime");
253
253
  var ChartLegend = (0, import_core3.forwardRef)(
254
254
  ({ className, payload = [], onHighlight, ...rest }, ref) => {
255
255
  const { styles } = useLegend();
256
- const items = payload.map(({ dataKey, value: valueProp, color }, index) => {
256
+ const items = payload.map(({ color, dataKey, value: valueProp }, index) => {
257
257
  const value = dataKey != null ? dataKey : valueProp;
258
258
  return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
259
259
  import_core3.ui.div,
@@ -289,6 +289,8 @@ var ChartLegend = (0, import_core3.forwardRef)(
289
289
  );
290
290
  }
291
291
  );
292
+ ChartLegend.displayName = "ChartLegend";
293
+ ChartLegend.__ui__ = "ChartLegend";
292
294
 
293
295
  // src/chart-tooltip.tsx
294
296
  var import_core4 = require("@yamada-ui/core");
@@ -296,22 +298,22 @@ var import_utils4 = require("@yamada-ui/utils");
296
298
  var import_jsx_runtime2 = require("react/jsx-runtime");
297
299
  var ChartTooltip = (0, import_core4.forwardRef)(
298
300
  ({
299
- label,
300
- dataKey = "value",
301
301
  className,
302
- payload = [],
303
- valueFormatter,
302
+ dataKey = "value",
303
+ isRadialChart,
304
+ label,
304
305
  labelFormatter,
306
+ payload = [],
305
307
  unit,
306
- isRadialChart,
308
+ valueFormatter,
307
309
  ...rest
308
310
  }, ref) => {
309
311
  var _a;
310
312
  const { styles } = useTooltip();
311
313
  const items = payload.map(
312
314
  ({
313
- color: colorProp,
314
315
  name: nameProp,
316
+ color: colorProp,
315
317
  [dataKey]: valueProp,
316
318
  payload: payload2
317
319
  } = {}, index) => {
@@ -381,6 +383,8 @@ var ChartTooltip = (0, import_core4.forwardRef)(
381
383
  );
382
384
  }
383
385
  );
386
+ ChartTooltip.displayName = "ChartTooltip";
387
+ ChartTooltip.__ui__ = "ChartTooltip";
384
388
 
385
389
  // src/use-chart-legend.ts
386
390
  var import_utils5 = require("@yamada-ui/utils");
@@ -403,7 +407,7 @@ var useChartLegend = ({
403
407
  },
404
408
  [rest]
405
409
  );
406
- return { legendProps, getLegendProps };
410
+ return { getLegendProps, legendProps };
407
411
  };
408
412
 
409
413
  // src/use-chart-tooltip.ts
@@ -411,9 +415,9 @@ var import_core5 = require("@yamada-ui/core");
411
415
  var import_utils6 = require("@yamada-ui/utils");
412
416
  var import_react3 = require("react");
413
417
  var useChartTooltip = ({
414
- tooltipProps: _tooltipProps = {},
418
+ styles,
415
419
  tooltipAnimationDuration = 0,
416
- styles
420
+ tooltipProps: _tooltipProps = {}
417
421
  }) => {
418
422
  const { theme } = (0, import_core5.useTheme)();
419
423
  const { cursor, ...rest } = _tooltipProps;
@@ -429,16 +433,16 @@ var useChartTooltip = ({
429
433
  (props, ref = null) => ({
430
434
  ref,
431
435
  animationDuration: tooltipAnimationDuration,
432
- isAnimationActive: (tooltipAnimationDuration || 0) > 0,
433
436
  cursor: {
434
437
  className: (0, import_utils6.cx)("ui-chart__cursor", cursorClassName)
435
438
  },
439
+ isAnimationActive: (tooltipAnimationDuration || 0) > 0,
436
440
  ...props,
437
441
  ...tooltipProps
438
442
  }),
439
443
  [cursorClassName, tooltipAnimationDuration, tooltipProps]
440
444
  );
441
- return { tooltipProps: tooltipUIProps, getTooltipProps };
445
+ return { getTooltipProps, tooltipProps: tooltipUIProps };
442
446
  };
443
447
 
444
448
  // src/use-polar-grid.tsx
@@ -480,15 +484,15 @@ var import_utils8 = require("@yamada-ui/utils");
480
484
  var import_react5 = require("react");
481
485
  var useRadarChart = ({
482
486
  data,
483
- series,
484
487
  dataKey,
485
- withDots = false,
486
- withActiveDots = false,
487
- strokeWidth = 2,
488
488
  fillOpacity = 0.4,
489
489
  polarAngleAxisTickFormatter,
490
490
  polarRadiusAxisTickFormatter,
491
+ series,
492
+ strokeWidth = 2,
491
493
  styles,
494
+ withActiveDots = false,
495
+ withDots = false,
492
496
  ...rest
493
497
  }) => {
494
498
  var _a;
@@ -496,10 +500,10 @@ var useRadarChart = ({
496
500
  const [highlightedArea, setHighlightedArea] = (0, import_react5.useState)(null);
497
501
  const shouldHighlight = highlightedArea !== null;
498
502
  const {
499
- dot = {},
500
503
  activeDot = {},
501
504
  dimDot,
502
505
  dimRadar,
506
+ dot = {},
503
507
  ...computedRadarProps
504
508
  } = (_a = rest.radarProps) != null ? _a : {};
505
509
  const radarColors = (0, import_react5.useMemo)(
@@ -604,11 +608,11 @@ var useRadarChart = ({
604
608
  const radarPropList = (0, import_react5.useMemo)(
605
609
  () => series.map((props, index) => {
606
610
  const {
607
- dataKey: dataKey2,
608
- dot: dot2 = {},
609
611
  activeDot: activeDot2 = {},
612
+ dataKey: dataKey2,
610
613
  dimDot: dimDot2 = {},
611
614
  dimRadar: dimRadar2 = {},
615
+ dot: dot2 = {},
612
616
  ...computedProps
613
617
  } = props;
614
618
  const color = (0, import_core7.getVar)(`radar-${index}`)(theme);
@@ -637,8 +641,8 @@ var useRadarChart = ({
637
641
  resolvedActiveDot = {
638
642
  className: (0, import_utils8.cx)("ui-radar-chart__active-dot", className),
639
643
  fill: color,
640
- stroke: color,
641
644
  r: 4,
645
+ stroke: color,
642
646
  ...rest3
643
647
  };
644
648
  } else {
@@ -668,10 +672,10 @@ var useRadarChart = ({
668
672
  }
669
673
  return {
670
674
  ...rest2,
675
+ activeDot: resolvedActiveDot,
671
676
  color,
672
677
  dataKey: dataKey2,
673
- dot: resolvedDot,
674
- activeDot: resolvedActiveDot
678
+ dot: resolvedDot
675
679
  };
676
680
  }),
677
681
  [
@@ -704,19 +708,27 @@ var useRadarChart = ({
704
708
  [data, radarChartClassName, chartProps]
705
709
  );
706
710
  const getRadarProps = (0, import_react5.useCallback)(
707
- ({ index, className: classNameProp, ...props }, ref = null) => {
708
- const { color, className, dataKey: dataKey2, activeDot: activeDot2, dot: dot2, ...rest2 } = radarPropList[index];
711
+ ({ className: classNameProp, index, ...props }, ref = null) => {
712
+ var _a2;
713
+ const {
714
+ className,
715
+ activeDot: activeDot2,
716
+ color,
717
+ dataKey: dataKey2 = "",
718
+ dot: dot2,
719
+ ...rest2
720
+ } = (_a2 = radarPropList[index]) != null ? _a2 : {};
709
721
  return {
710
722
  ref,
723
+ name: dataKey2,
711
724
  className: (0, import_utils8.cx)(classNameProp, className),
712
725
  activeDot: activeDot2,
713
- dot: dot2,
714
- name: dataKey2,
715
726
  dataKey: dataKey2,
727
+ dot: dot2,
716
728
  fill: color,
717
- strokeWidth,
718
- stroke: color,
719
729
  isAnimationActive: false,
730
+ stroke: color,
731
+ strokeWidth,
720
732
  ...props,
721
733
  ...rest2
722
734
  };
@@ -770,11 +782,11 @@ var useRadarChart = ({
770
782
  );
771
783
  return {
772
784
  radarVars,
773
- getRadarChartProps,
774
- getRadarProps,
785
+ setHighlightedArea,
775
786
  getPolarAngleAxisProps,
776
787
  getPolarRadiusAxisProps,
777
- setHighlightedArea
788
+ getRadarChartProps,
789
+ getRadarProps
778
790
  };
779
791
  };
780
792
 
@@ -785,79 +797,79 @@ var RadarChart = (0, import_core8.forwardRef)((props, ref) => {
785
797
  const {
786
798
  className,
787
799
  data,
788
- series,
789
800
  dataKey,
790
- radarProps,
791
- chartProps,
792
- polarGridProps,
793
- polarAngleAxisProps,
794
- polarAngleAxisTickProps,
795
- polarRadiusAxisProps,
796
- polarRadiusAxisTickProps,
797
- containerProps,
798
- tooltipProps,
799
- legendProps,
800
- tooltipAnimationDuration,
801
- unit,
802
- valueFormatter,
801
+ fillOpacity,
803
802
  polarAngleAxisTickFormatter,
804
803
  polarRadiusAxisTickFormatter,
804
+ series,
805
805
  strokeDasharray,
806
- withDots,
807
- withActiveDots,
808
806
  strokeWidth,
809
- fillOpacity,
810
- withTooltip = true,
807
+ tooltipAnimationDuration,
808
+ unit,
809
+ valueFormatter,
810
+ withActiveDots,
811
+ withDots,
811
812
  withLegend = false,
812
- withPolarGrid = true,
813
813
  withPolarAngleAxis = true,
814
+ withPolarGrid = true,
814
815
  withPolarRadiusAxis = false,
816
+ withTooltip = true,
817
+ chartProps,
818
+ containerProps,
819
+ legendProps,
820
+ polarAngleAxisProps,
821
+ polarAngleAxisTickProps,
822
+ polarGridProps,
823
+ polarRadiusAxisProps,
824
+ polarRadiusAxisTickProps,
825
+ radarProps,
826
+ tooltipProps,
815
827
  ...rest
816
828
  } = (0, import_core8.omitThemeProps)(mergedProps);
817
829
  const {
818
- getRadarProps,
819
- getRadarChartProps,
830
+ radarVars,
831
+ setHighlightedArea,
820
832
  getPolarAngleAxisProps,
821
833
  getPolarRadiusAxisProps,
822
- radarVars,
823
- setHighlightedArea
834
+ getRadarChartProps,
835
+ getRadarProps
824
836
  } = useRadarChart({
825
837
  data,
826
- series,
827
838
  dataKey,
828
- radarProps,
839
+ fillOpacity,
840
+ polarAngleAxisTickFormatter,
841
+ polarRadiusAxisTickFormatter,
842
+ series,
843
+ strokeWidth,
844
+ styles,
845
+ withActiveDots,
846
+ withDots,
829
847
  chartProps,
830
848
  polarAngleAxisProps,
831
849
  polarAngleAxisTickProps,
832
850
  polarRadiusAxisProps,
833
851
  polarRadiusAxisTickProps,
834
- withDots,
835
- withActiveDots,
836
- strokeWidth,
837
- fillOpacity,
838
- polarAngleAxisTickFormatter,
839
- polarRadiusAxisTickFormatter,
840
- styles
852
+ radarProps
841
853
  });
842
854
  const { getContainerProps } = useChart({ containerProps });
843
- const { tooltipProps: computedTooltipProps, getTooltipProps } = useChartTooltip({
844
- tooltipProps,
855
+ const { getTooltipProps, tooltipProps: computedTooltipProps } = useChartTooltip({
856
+ styles,
845
857
  tooltipAnimationDuration,
846
- styles
858
+ tooltipProps
847
859
  });
848
- const { legendProps: computedLegendProps, getLegendProps } = useChartLegend({
860
+ const { getLegendProps, legendProps: computedLegendProps } = useChartLegend({
849
861
  legendProps
850
862
  });
851
863
  const { getPolarGridProps } = usePolarGrid({
852
- polarGridProps,
853
864
  strokeDasharray,
854
- styles
865
+ styles,
866
+ polarGridProps
855
867
  });
856
868
  const radars = (0, import_react6.useMemo)(
857
869
  () => series.map(({ dataKey: dataKey2 }, index) => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
858
870
  import_recharts.Radar,
859
871
  {
860
- ...getRadarProps({ index, className: "ui-radar-chart__radar" })
872
+ ...getRadarProps({ className: "ui-radar-chart__radar", index })
861
873
  },
862
874
  `radar-${dataKey2}`
863
875
  )),
@@ -927,8 +939,8 @@ var RadarChart = (0, import_core8.forwardRef)((props, ref) => {
927
939
  className: "ui-line-chart__tooltip",
928
940
  label,
929
941
  payload,
930
- valueFormatter,
931
942
  unit,
943
+ valueFormatter,
932
944
  ...computedTooltipProps
933
945
  }
934
946
  ),
@@ -944,6 +956,8 @@ var RadarChart = (0, import_core8.forwardRef)((props, ref) => {
944
956
  }
945
957
  ) });
946
958
  });
959
+ RadarChart.displayName = "RadarChart";
960
+ RadarChart.__ui__ = "RadarChart";
947
961
  // Annotate the CommonJS export names for ESM import in node:
948
962
  0 && (module.exports = {
949
963
  RadarChart