@yamada-ui/charts 2.0.0-next-20240706053520 → 2.0.0-next-20240713062626

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.
Files changed (68) hide show
  1. package/dist/area-chart.js +5 -1
  2. package/dist/area-chart.js.map +1 -1
  3. package/dist/area-chart.mjs +2 -2
  4. package/dist/chart.types.d.mts +2 -2
  5. package/dist/chart.types.d.ts +2 -2
  6. package/dist/chart.types.js.map +1 -1
  7. package/dist/{chunk-HZSEVGCR.mjs → chunk-6BNJZIBK.mjs} +6 -2
  8. package/dist/chunk-6BNJZIBK.mjs.map +1 -0
  9. package/dist/{chunk-XZVWGY4J.mjs → chunk-6L73M52L.mjs} +6 -2
  10. package/dist/chunk-6L73M52L.mjs.map +1 -0
  11. package/dist/{chunk-OSSQ2IHJ.mjs → chunk-CCFQC3T6.mjs} +2 -2
  12. package/dist/{chunk-B7M3YMES.mjs → chunk-CIRGC4FT.mjs} +6 -2
  13. package/dist/chunk-CIRGC4FT.mjs.map +1 -0
  14. package/dist/chunk-CPXE3PV4.mjs +84 -0
  15. package/dist/chunk-CPXE3PV4.mjs.map +1 -0
  16. package/dist/{chunk-YGKNNA34.mjs → chunk-ELXW3EQE.mjs} +35 -19
  17. package/dist/chunk-ELXW3EQE.mjs.map +1 -0
  18. package/dist/{chunk-K6OUXJQK.mjs → chunk-KPKLW25H.mjs} +2 -2
  19. package/dist/{chunk-P4MMHTAP.mjs → chunk-VVR3DSUX.mjs} +8 -5
  20. package/dist/chunk-VVR3DSUX.mjs.map +1 -0
  21. package/dist/{chunk-DWLZIGGL.mjs → chunk-X7MOM6U4.mjs} +2 -2
  22. package/dist/{chunk-F2RBOLDY.mjs → chunk-XORRW2KT.mjs} +8 -5
  23. package/dist/chunk-XORRW2KT.mjs.map +1 -0
  24. package/dist/donut-chart.js +137 -43
  25. package/dist/donut-chart.js.map +1 -1
  26. package/dist/donut-chart.mjs +3 -2
  27. package/dist/index.js +176 -67
  28. package/dist/index.js.map +1 -1
  29. package/dist/index.mjs +10 -9
  30. package/dist/line-chart.js +5 -1
  31. package/dist/line-chart.js.map +1 -1
  32. package/dist/line-chart.mjs +2 -2
  33. package/dist/pie-chart-label.d.mts +40 -0
  34. package/dist/pie-chart-label.d.ts +40 -0
  35. package/dist/pie-chart-label.js +108 -0
  36. package/dist/pie-chart-label.js.map +1 -0
  37. package/dist/pie-chart-label.mjs +10 -0
  38. package/dist/pie-chart-label.mjs.map +1 -0
  39. package/dist/pie-chart.js +137 -43
  40. package/dist/pie-chart.js.map +1 -1
  41. package/dist/pie-chart.mjs +3 -2
  42. package/dist/radar-chart.js +5 -1
  43. package/dist/radar-chart.js.map +1 -1
  44. package/dist/radar-chart.mjs +2 -2
  45. package/dist/use-area-chart.js +5 -1
  46. package/dist/use-area-chart.js.map +1 -1
  47. package/dist/use-area-chart.mjs +1 -1
  48. package/dist/use-line-chart.js +5 -1
  49. package/dist/use-line-chart.js.map +1 -1
  50. package/dist/use-line-chart.mjs +1 -1
  51. package/dist/use-pie-chart.d.mts +12 -5
  52. package/dist/use-pie-chart.d.ts +12 -5
  53. package/dist/use-pie-chart.js +113 -24
  54. package/dist/use-pie-chart.js.map +1 -1
  55. package/dist/use-pie-chart.mjs +2 -1
  56. package/dist/use-radar-chart.js +5 -1
  57. package/dist/use-radar-chart.js.map +1 -1
  58. package/dist/use-radar-chart.mjs +1 -1
  59. package/package.json +2 -2
  60. package/dist/chunk-B7M3YMES.mjs.map +0 -1
  61. package/dist/chunk-F2RBOLDY.mjs.map +0 -1
  62. package/dist/chunk-HZSEVGCR.mjs.map +0 -1
  63. package/dist/chunk-P4MMHTAP.mjs.map +0 -1
  64. package/dist/chunk-XZVWGY4J.mjs.map +0 -1
  65. package/dist/chunk-YGKNNA34.mjs.map +0 -1
  66. /package/dist/{chunk-OSSQ2IHJ.mjs.map → chunk-CCFQC3T6.mjs.map} +0 -0
  67. /package/dist/{chunk-K6OUXJQK.mjs.map → chunk-KPKLW25H.mjs.map} +0 -0
  68. /package/dist/{chunk-DWLZIGGL.mjs.map → chunk-X7MOM6U4.mjs.map} +0 -0
package/dist/index.js CHANGED
@@ -1081,7 +1081,11 @@ var useLineChart = ({
1081
1081
  activeDotClassName
1082
1082
  )(theme);
1083
1083
  resolvedActiveDot = {
1084
- className: (0, import_utils10.cx)("ui-line-chart__active-dot", className),
1084
+ className: (0, import_utils10.cx)(
1085
+ "ui-line-chart__dot",
1086
+ "ui-line-chart__dot--active",
1087
+ className
1088
+ ),
1085
1089
  fill: color,
1086
1090
  stroke: color,
1087
1091
  r: 4,
@@ -2024,7 +2028,11 @@ var useAreaChart = ({
2024
2028
  activeDotClassName
2025
2029
  )(theme);
2026
2030
  resolvedActiveDot = {
2027
- className: (0, import_utils14.cx)("ui-area-chart__active-dot", className),
2031
+ className: (0, import_utils14.cx)(
2032
+ "ui-area-chart__dot",
2033
+ "ui-area-chart__dot--active",
2034
+ className
2035
+ ),
2028
2036
  stroke: color,
2029
2037
  r: 4,
2030
2038
  ...rest3
@@ -2579,7 +2587,11 @@ var useRadarChart = ({
2579
2587
  activeDotClassName
2580
2588
  )(theme);
2581
2589
  resolvedActiveDot = {
2582
- className: (0, import_utils16.cx)("ui-radar-chart__active-dot", className),
2590
+ className: (0, import_utils16.cx)(
2591
+ "ui-radar-chart__dot",
2592
+ "ui-radar-chart__dot--active",
2593
+ className
2594
+ ),
2583
2595
  fill: color,
2584
2596
  stroke: color,
2585
2597
  r: 4,
@@ -2897,19 +2909,100 @@ var RadarChart = (0, import_core16.forwardRef)((props, ref) => {
2897
2909
  });
2898
2910
 
2899
2911
  // src/donut-chart.tsx
2900
- var import_core18 = require("@yamada-ui/core");
2901
- var import_utils19 = require("@yamada-ui/utils");
2912
+ var import_core19 = require("@yamada-ui/core");
2913
+ var import_utils20 = require("@yamada-ui/utils");
2902
2914
  var import_react16 = require("react");
2903
2915
  var import_recharts5 = require("recharts");
2904
2916
 
2905
2917
  // src/use-pie-chart.ts
2918
+ var import_core18 = require("@yamada-ui/core");
2919
+ var import_utils19 = require("@yamada-ui/utils");
2920
+ var import_react15 = require("react");
2921
+
2922
+ // src/pie-chart-label.tsx
2906
2923
  var import_core17 = require("@yamada-ui/core");
2907
2924
  var import_utils18 = require("@yamada-ui/utils");
2908
- var import_react15 = require("react");
2925
+ var import_jsx_runtime9 = require("react/jsx-runtime");
2926
+ var RADIAN = Math.PI / 180;
2927
+ var DEFAULT_LABEL_OFFSET = 22;
2928
+ var pieChartLabel = ({
2929
+ className: cellClassName,
2930
+ cx: cxProp = 0,
2931
+ cy: cyProp = 0,
2932
+ midAngle = 0,
2933
+ innerRadius = 0,
2934
+ outerRadius = 0,
2935
+ middleRadius = 0,
2936
+ percent = 0,
2937
+ value = 0,
2938
+ labelOffset: labelOffsetProp,
2939
+ isParcent,
2940
+ labelProps,
2941
+ valueFormatter,
2942
+ styles
2943
+ }) => {
2944
+ const labelOffset = labelOffsetProp != null ? labelOffsetProp : (outerRadius - innerRadius) * 0.5 + DEFAULT_LABEL_OFFSET;
2945
+ const x = cxProp + (middleRadius + labelOffset) * Math.cos(-midAngle * RADIAN);
2946
+ const y = cyProp + (middleRadius + labelOffset) * Math.sin(-midAngle * RADIAN);
2947
+ const textAnchor = x > cxProp ? "start" : x < cxProp ? "end" : "middle";
2948
+ const displayLabel = () => {
2949
+ if (isParcent) {
2950
+ return parseFloat((percent * 100).toFixed(0)) > 0 && `${(percent * 100).toFixed(0)}%`;
2951
+ } else if (!(0, import_utils18.isUndefined)(valueFormatter)) {
2952
+ return valueFormatter(value);
2953
+ } else {
2954
+ return value;
2955
+ }
2956
+ };
2957
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
2958
+ import_core17.ui.text,
2959
+ {
2960
+ className: (0, import_utils18.cx)(cellClassName, "ui-chart__label"),
2961
+ x,
2962
+ y,
2963
+ textAnchor,
2964
+ dominantBaseline: "central",
2965
+ __css: styles,
2966
+ ...labelProps,
2967
+ children: displayLabel()
2968
+ }
2969
+ );
2970
+ };
2971
+ var pieChartLabelLine = ({
2972
+ className: cellClassName,
2973
+ cx: cxProp = 0,
2974
+ cy: cyProp = 0,
2975
+ innerRadius = 0,
2976
+ midAngle = 0,
2977
+ middleRadius = 0,
2978
+ outerRadius = 0,
2979
+ points = [{ x: 0, y: 0 }],
2980
+ labelOffset: labelOffsetProp,
2981
+ labelLineProps,
2982
+ styles
2983
+ }) => {
2984
+ const labelOffset = labelOffsetProp != null ? labelOffsetProp : (outerRadius - innerRadius) * 0.5 + DEFAULT_LABEL_OFFSET;
2985
+ const x = cxProp + (middleRadius + labelOffset) * Math.cos(-midAngle * RADIAN);
2986
+ const y = cyProp + (middleRadius + labelOffset) * Math.sin(-midAngle * RADIAN);
2987
+ const d = `M ${points[0].x} ${points[0].y} L ${x} ${y}`;
2988
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
2989
+ import_core17.ui.path,
2990
+ {
2991
+ className: (0, import_utils18.cx)(cellClassName, "ui-chart__label-line"),
2992
+ d,
2993
+ __css: styles,
2994
+ ...labelLineProps
2995
+ }
2996
+ );
2997
+ };
2998
+
2999
+ // src/use-pie-chart.ts
2909
3000
  var usePieChart = ({
2910
3001
  data,
2911
3002
  withLabels = false,
2912
3003
  withLabelLines = false,
3004
+ labelOffset,
3005
+ isParcent = false,
2913
3006
  strokeWidth = 1,
2914
3007
  fillOpacity = 1,
2915
3008
  innerRadius = "0%",
@@ -2917,19 +3010,20 @@ var usePieChart = ({
2917
3010
  paddingAngle = 0,
2918
3011
  startAngle = 90,
2919
3012
  endAngle = -270,
3013
+ valueFormatter,
2920
3014
  styles,
2921
3015
  ...rest
2922
3016
  }) => {
2923
3017
  var _a, _b;
2924
- const { theme } = (0, import_core17.useTheme)();
3018
+ const { theme } = (0, import_core18.useTheme)();
2925
3019
  const [highlightedArea, setHighlightedArea] = (0, import_react15.useState)(null);
2926
3020
  const shouldHighlight = highlightedArea !== null;
2927
3021
  const { dimCell, ...computedCellProps } = (_a = rest.cellProps) != null ? _a : {};
2928
3022
  const {
2929
3023
  activeShape = {},
2930
3024
  inactiveShape = {},
2931
- label,
2932
- labelLine,
3025
+ label: labelProps,
3026
+ labelLine: labelLineProps,
2933
3027
  ...computedPieProps
2934
3028
  } = (_b = rest.pieProps) != null ? _b : {};
2935
3029
  const cellColors = (0, import_react15.useMemo)(
@@ -2991,13 +3085,27 @@ var usePieChart = ({
2991
3085
  )(theme, true),
2992
3086
  [inactiveShape, styles.inactiveShape, theme]
2993
3087
  );
2994
- const labelClassName = (0, import_react15.useMemo)(
2995
- () => getClassName({ ...styles.label, ...label })(theme),
2996
- [label, styles.label, theme]
2997
- );
2998
- const labelLineClassName = (0, import_react15.useMemo)(
2999
- () => getClassName({ ...styles.labelLine, ...labelLine })(theme),
3000
- [labelLine, styles.labelLine, theme]
3088
+ const label = (0, import_react15.useCallback)(
3089
+ (props) => pieChartLabel({
3090
+ labelOffset,
3091
+ isParcent,
3092
+ labelProps,
3093
+ valueFormatter,
3094
+ styles: styles.label,
3095
+ ...props
3096
+ }),
3097
+ [isParcent, labelOffset, labelProps, styles.label, valueFormatter]
3098
+ );
3099
+ const labelLine = (0, import_react15.useCallback)(
3100
+ (props) => {
3101
+ return pieChartLabelLine({
3102
+ labelOffset,
3103
+ labelLineProps,
3104
+ styles: styles.labelLine,
3105
+ ...props
3106
+ });
3107
+ },
3108
+ [labelLineProps, labelOffset, styles.labelLine]
3001
3109
  );
3002
3110
  const cellPropList = (0, import_react15.useMemo)(
3003
3111
  () => data.map((props, index) => {
@@ -3032,21 +3140,16 @@ var usePieChart = ({
3032
3140
  const getPieChartProps = (0, import_react15.useCallback)(
3033
3141
  ({ className, ...props } = {}, ref = null) => ({
3034
3142
  ref,
3035
- className: (0, import_utils18.cx)(className, chartClassName),
3143
+ className: (0, import_utils19.cx)(className, chartClassName),
3036
3144
  ...props,
3037
3145
  ...chartProps
3038
3146
  }),
3039
3147
  [chartProps, chartClassName]
3040
3148
  );
3041
3149
  const getPieProps = (0, import_react15.useCallback)(
3042
- ({
3043
- className,
3044
- labelClassName: labelClassNameProp,
3045
- labelLineClassName: labelLineClassNameProp,
3046
- ...props
3047
- }, ref = null) => ({
3150
+ ({ className, ...props }, ref = null) => ({
3048
3151
  ref,
3049
- className: (0, import_utils18.cx)(className, pieClassName),
3152
+ className: (0, import_utils19.cx)(className, pieClassName),
3050
3153
  dataKey: "value",
3051
3154
  data,
3052
3155
  rootTabIndex: -1,
@@ -3056,8 +3159,8 @@ var usePieChart = ({
3056
3159
  startAngle,
3057
3160
  endAngle,
3058
3161
  isAnimationActive: false,
3059
- label: withLabels ? { className: (0, import_utils18.cx)(labelClassNameProp, labelClassName) } : false,
3060
- labelLine: withLabelLines ? { className: (0, import_utils18.cx)(labelLineClassNameProp, labelLineClassName) } : false,
3162
+ label: withLabels ? label : false,
3163
+ labelLine: withLabelLines ? labelLine : false,
3061
3164
  activeShape: activeShapeProps,
3062
3165
  inactiveShape: inactiveShapeProps,
3063
3166
  ...props,
@@ -3072,9 +3175,9 @@ var usePieChart = ({
3072
3175
  startAngle,
3073
3176
  endAngle,
3074
3177
  withLabels,
3075
- labelClassName,
3178
+ label,
3076
3179
  withLabelLines,
3077
- labelLineClassName,
3180
+ labelLine,
3078
3181
  activeShapeProps,
3079
3182
  inactiveShapeProps,
3080
3183
  pieProps
@@ -3085,7 +3188,7 @@ var usePieChart = ({
3085
3188
  const { className, color } = cellPropList[index];
3086
3189
  return {
3087
3190
  ref,
3088
- className: (0, import_utils18.cx)(classNameProp, className),
3191
+ className: (0, import_utils19.cx)(classNameProp, className),
3089
3192
  fill: color,
3090
3193
  stroke: color,
3091
3194
  strokeWidth,
@@ -3104,9 +3207,9 @@ var usePieChart = ({
3104
3207
  };
3105
3208
 
3106
3209
  // src/donut-chart.tsx
3107
- var import_jsx_runtime9 = require("react/jsx-runtime");
3108
- var DonutChart = (0, import_core18.forwardRef)((props, ref) => {
3109
- const [styles, mergedProps] = (0, import_core18.useMultiComponentStyle)("DonutChart", props);
3210
+ var import_jsx_runtime10 = require("react/jsx-runtime");
3211
+ var DonutChart = (0, import_core19.forwardRef)((props, ref) => {
3212
+ const [styles, mergedProps] = (0, import_core19.useMultiComponentStyle)("DonutChart", props);
3110
3213
  const {
3111
3214
  className,
3112
3215
  data,
@@ -3126,12 +3229,14 @@ var DonutChart = (0, import_core18.forwardRef)((props, ref) => {
3126
3229
  endAngle,
3127
3230
  withLabels,
3128
3231
  withLabelLines,
3232
+ labelOffset,
3233
+ isParcent,
3129
3234
  innerRadius = withLabels ? "60%" : "80%",
3130
3235
  outerRadius,
3131
3236
  strokeWidth,
3132
3237
  legendProps,
3133
3238
  ...rest
3134
- } = (0, import_core18.omitThemeProps)(mergedProps);
3239
+ } = (0, import_core19.omitThemeProps)(mergedProps);
3135
3240
  const {
3136
3241
  pieVars,
3137
3242
  getPieProps,
@@ -3151,6 +3256,9 @@ var DonutChart = (0, import_core18.forwardRef)((props, ref) => {
3151
3256
  strokeWidth,
3152
3257
  withLabels,
3153
3258
  withLabelLines,
3259
+ labelOffset,
3260
+ isParcent,
3261
+ valueFormatter,
3154
3262
  styles
3155
3263
  });
3156
3264
  const { getContainerProps } = useChart({ containerProps });
@@ -3163,7 +3271,7 @@ var DonutChart = (0, import_core18.forwardRef)((props, ref) => {
3163
3271
  legendProps
3164
3272
  });
3165
3273
  const cells = (0, import_react16.useMemo)(
3166
- () => data.map(({ name }, index) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
3274
+ () => data.map(({ name }, index) => /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
3167
3275
  import_recharts5.Cell,
3168
3276
  {
3169
3277
  ...getCellProps({ index, className: "ui-donut-chart__cell" })
@@ -3172,38 +3280,36 @@ var DonutChart = (0, import_core18.forwardRef)((props, ref) => {
3172
3280
  )),
3173
3281
  [data, getCellProps]
3174
3282
  );
3175
- return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(ChartProvider, { value: { styles }, children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
3176
- import_core18.ui.div,
3283
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(ChartProvider, { value: { styles }, children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
3284
+ import_core19.ui.div,
3177
3285
  {
3178
3286
  ref,
3179
- className: (0, import_utils19.cx)("ui-donut-chart", className),
3287
+ className: (0, import_utils20.cx)("ui-donut-chart", className),
3180
3288
  var: pieVars,
3181
3289
  __css: { ...styles.container },
3182
3290
  ...rest,
3183
- children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
3291
+ children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
3184
3292
  import_recharts5.ResponsiveContainer,
3185
3293
  {
3186
3294
  ...getContainerProps({ className: "ui-donut-chart__container" }),
3187
- children: /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
3295
+ children: /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(
3188
3296
  import_recharts5.PieChart,
3189
3297
  {
3190
3298
  ...getPieChartProps({ className: "ui-donut-chart__chart" }),
3191
3299
  children: [
3192
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
3300
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
3193
3301
  import_recharts5.Pie,
3194
3302
  {
3195
3303
  ...getPieProps({
3196
- className: "ui-donut-chart__donut",
3197
- labelClassName: "ui-donut-chart__label",
3198
- labelLineClassName: "ui-donut-chart__label-line"
3304
+ className: "ui-donut-chart__donut"
3199
3305
  }),
3200
3306
  children: cells
3201
3307
  }
3202
3308
  ),
3203
- withLegend ? /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
3309
+ withLegend ? /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
3204
3310
  import_recharts5.Legend,
3205
3311
  {
3206
- content: ({ payload }) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
3312
+ content: ({ payload }) => /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
3207
3313
  ChartLegend,
3208
3314
  {
3209
3315
  className: "ui-donut-chart__legend",
@@ -3215,10 +3321,10 @@ var DonutChart = (0, import_core18.forwardRef)((props, ref) => {
3215
3321
  ...getLegendProps()
3216
3322
  }
3217
3323
  ) : null,
3218
- withTooltip ? /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
3324
+ withTooltip ? /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
3219
3325
  import_recharts5.Tooltip,
3220
3326
  {
3221
- content: ({ label, payload }) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
3327
+ content: ({ label, payload }) => /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
3222
3328
  ChartTooltip,
3223
3329
  {
3224
3330
  className: "ui-donut-chart__tooltip",
@@ -3242,13 +3348,13 @@ var DonutChart = (0, import_core18.forwardRef)((props, ref) => {
3242
3348
  });
3243
3349
 
3244
3350
  // src/pie-chart.tsx
3245
- var import_core19 = require("@yamada-ui/core");
3246
- var import_utils20 = require("@yamada-ui/utils");
3351
+ var import_core20 = require("@yamada-ui/core");
3352
+ var import_utils21 = require("@yamada-ui/utils");
3247
3353
  var import_react17 = require("react");
3248
3354
  var import_recharts6 = require("recharts");
3249
- var import_jsx_runtime10 = require("react/jsx-runtime");
3250
- var PieChart = (0, import_core19.forwardRef)((props, ref) => {
3251
- const [styles, mergedProps] = (0, import_core19.useMultiComponentStyle)("PieChart", props);
3355
+ var import_jsx_runtime11 = require("react/jsx-runtime");
3356
+ var PieChart = (0, import_core20.forwardRef)((props, ref) => {
3357
+ const [styles, mergedProps] = (0, import_core20.useMultiComponentStyle)("PieChart", props);
3252
3358
  const {
3253
3359
  className,
3254
3360
  data,
@@ -3270,10 +3376,12 @@ var PieChart = (0, import_core19.forwardRef)((props, ref) => {
3270
3376
  endAngle,
3271
3377
  withLabels,
3272
3378
  withLabelLines,
3379
+ labelOffset,
3380
+ isParcent,
3273
3381
  strokeWidth,
3274
3382
  legendProps,
3275
3383
  ...rest
3276
- } = (0, import_core19.omitThemeProps)(mergedProps);
3384
+ } = (0, import_core20.omitThemeProps)(mergedProps);
3277
3385
  const {
3278
3386
  pieVars,
3279
3387
  getPieProps,
@@ -3293,6 +3401,9 @@ var PieChart = (0, import_core19.forwardRef)((props, ref) => {
3293
3401
  strokeWidth,
3294
3402
  withLabels,
3295
3403
  withLabelLines,
3404
+ labelOffset,
3405
+ isParcent,
3406
+ valueFormatter,
3296
3407
  styles
3297
3408
  });
3298
3409
  const { getContainerProps } = useChart({ containerProps });
@@ -3305,7 +3416,7 @@ var PieChart = (0, import_core19.forwardRef)((props, ref) => {
3305
3416
  legendProps
3306
3417
  });
3307
3418
  const cells = (0, import_react17.useMemo)(
3308
- () => data.map(({ name }, index) => /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
3419
+ () => data.map(({ name }, index) => /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
3309
3420
  import_recharts6.Cell,
3310
3421
  {
3311
3422
  ...getCellProps({ index, className: "ui-pie-chart__cell" })
@@ -3314,38 +3425,36 @@ var PieChart = (0, import_core19.forwardRef)((props, ref) => {
3314
3425
  )),
3315
3426
  [data, getCellProps]
3316
3427
  );
3317
- return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(ChartProvider, { value: { styles }, children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
3318
- import_core19.ui.div,
3428
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(ChartProvider, { value: { styles }, children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
3429
+ import_core20.ui.div,
3319
3430
  {
3320
3431
  ref,
3321
- className: (0, import_utils20.cx)("ui-pie-chart", className),
3432
+ className: (0, import_utils21.cx)("ui-pie-chart", className),
3322
3433
  var: pieVars,
3323
3434
  __css: { ...styles.container },
3324
3435
  ...rest,
3325
- children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
3436
+ children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
3326
3437
  import_recharts6.ResponsiveContainer,
3327
3438
  {
3328
3439
  ...getContainerProps({ className: "ui-pie-chart__container" }),
3329
- children: /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(
3440
+ children: /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(
3330
3441
  import_recharts6.PieChart,
3331
3442
  {
3332
3443
  ...getPieChartProps({ className: "ui-pie-chart__chart" }),
3333
3444
  children: [
3334
- /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
3445
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
3335
3446
  import_recharts6.Pie,
3336
3447
  {
3337
3448
  ...getPieProps({
3338
- className: "ui-pie-chart__pie",
3339
- labelClassName: "ui-pie-chart__label",
3340
- labelLineClassName: "ui-pie-chart__label-line"
3449
+ className: "ui-pie-chart__pie"
3341
3450
  }),
3342
3451
  children: cells
3343
3452
  }
3344
3453
  ),
3345
- withLegend ? /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
3454
+ withLegend ? /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
3346
3455
  import_recharts6.Legend,
3347
3456
  {
3348
- content: ({ payload }) => /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
3457
+ content: ({ payload }) => /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
3349
3458
  ChartLegend,
3350
3459
  {
3351
3460
  className: "ui-pie-chart__legend",
@@ -3357,10 +3466,10 @@ var PieChart = (0, import_core19.forwardRef)((props, ref) => {
3357
3466
  ...getLegendProps()
3358
3467
  }
3359
3468
  ) : null,
3360
- withTooltip ? /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
3469
+ withTooltip ? /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
3361
3470
  import_recharts6.Tooltip,
3362
3471
  {
3363
- content: ({ label, payload }) => /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
3472
+ content: ({ label, payload }) => /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
3364
3473
  ChartTooltip,
3365
3474
  {
3366
3475
  className: "ui-pie-chart__tooltip",