@yamada-ui/charts 1.5.0-dev-20240825080248 → 1.5.0-dev-20240825094045

Sign up to get free protection for your applications and to get access to all the features.
Files changed (76) hide show
  1. package/dist/area-chart-split.js +4 -2
  2. package/dist/area-chart-split.js.map +1 -1
  3. package/dist/area-chart-split.mjs +1 -1
  4. package/dist/area-chart.js +47 -47
  5. package/dist/area-chart.js.map +1 -1
  6. package/dist/area-chart.mjs +4 -4
  7. package/dist/bar-chart.js +4 -6
  8. package/dist/bar-chart.js.map +1 -1
  9. package/dist/bar-chart.mjs +3 -3
  10. package/dist/{chunk-FIWHBTKQ.mjs → chunk-BRSSQCO4.mjs} +6 -8
  11. package/dist/chunk-BRSSQCO4.mjs.map +1 -0
  12. package/dist/{chunk-Q7CCSKX3.mjs → chunk-LOXFDA6Z.mjs} +3 -3
  13. package/dist/chunk-LOXFDA6Z.mjs.map +1 -0
  14. package/dist/{chunk-PNE3JG54.mjs → chunk-MGTMKKSH.mjs} +5 -3
  15. package/dist/chunk-MGTMKKSH.mjs.map +1 -0
  16. package/dist/{chunk-6ICKO7GY.mjs → chunk-NHJDUFKO.mjs} +5 -7
  17. package/dist/chunk-NHJDUFKO.mjs.map +1 -0
  18. package/dist/{chunk-BNTTQQFO.mjs → chunk-PKRKJQQL.mjs} +2 -2
  19. package/dist/{chunk-DKZISSE6.mjs → chunk-RXQNFP7K.mjs} +4 -4
  20. package/dist/{chunk-IF4O4CBA.mjs → chunk-TZ62XGYL.mjs} +8 -6
  21. package/dist/chunk-TZ62XGYL.mjs.map +1 -0
  22. package/dist/{chunk-LF3ENX7Z.mjs → chunk-UCZQ22IS.mjs} +2 -2
  23. package/dist/{chunk-QNX4DJVS.mjs → chunk-VO2I73WT.mjs} +3 -3
  24. package/dist/{chunk-WPJDHMPD.mjs → chunk-WAKQGKGK.mjs} +9 -11
  25. package/dist/chunk-WAKQGKGK.mjs.map +1 -0
  26. package/dist/{chunk-7HKRIEAT.mjs → chunk-WDGSALCA.mjs} +2 -2
  27. package/dist/{chunk-LHW3WK3C.mjs → chunk-WRKSJCFE.mjs} +5 -6
  28. package/dist/chunk-WRKSJCFE.mjs.map +1 -0
  29. package/dist/{chunk-WY5PI2CR.mjs → chunk-ZHM6LP7J.mjs} +3 -3
  30. package/dist/donut-chart.js +3 -4
  31. package/dist/donut-chart.js.map +1 -1
  32. package/dist/donut-chart.mjs +2 -2
  33. package/dist/index.js +56 -62
  34. package/dist/index.js.map +1 -1
  35. package/dist/index.mjs +13 -13
  36. package/dist/line-chart.js +5 -7
  37. package/dist/line-chart.js.map +1 -1
  38. package/dist/line-chart.mjs +3 -3
  39. package/dist/pie-chart.js +3 -4
  40. package/dist/pie-chart.js.map +1 -1
  41. package/dist/pie-chart.mjs +2 -2
  42. package/dist/radar-chart.js +3 -4
  43. package/dist/radar-chart.js.map +1 -1
  44. package/dist/radar-chart.mjs +2 -2
  45. package/dist/use-area-chart.js +7 -9
  46. package/dist/use-area-chart.js.map +1 -1
  47. package/dist/use-area-chart.mjs +1 -1
  48. package/dist/use-bar-chart.js +3 -5
  49. package/dist/use-bar-chart.js.map +1 -1
  50. package/dist/use-bar-chart.mjs +1 -1
  51. package/dist/use-chart-reference-line.js +1 -1
  52. package/dist/use-chart-reference-line.js.map +1 -1
  53. package/dist/use-chart-reference-line.mjs +1 -1
  54. package/dist/use-line-chart.js +4 -6
  55. package/dist/use-line-chart.js.map +1 -1
  56. package/dist/use-line-chart.mjs +1 -1
  57. package/dist/use-pie-chart.js +3 -4
  58. package/dist/use-pie-chart.js.map +1 -1
  59. package/dist/use-pie-chart.mjs +1 -1
  60. package/dist/use-radar-chart.js +3 -4
  61. package/dist/use-radar-chart.js.map +1 -1
  62. package/dist/use-radar-chart.mjs +1 -1
  63. package/package.json +3 -3
  64. package/dist/chunk-6ICKO7GY.mjs.map +0 -1
  65. package/dist/chunk-FIWHBTKQ.mjs.map +0 -1
  66. package/dist/chunk-IF4O4CBA.mjs.map +0 -1
  67. package/dist/chunk-LHW3WK3C.mjs.map +0 -1
  68. package/dist/chunk-PNE3JG54.mjs.map +0 -1
  69. package/dist/chunk-Q7CCSKX3.mjs.map +0 -1
  70. package/dist/chunk-WPJDHMPD.mjs.map +0 -1
  71. /package/dist/{chunk-BNTTQQFO.mjs.map → chunk-PKRKJQQL.mjs.map} +0 -0
  72. /package/dist/{chunk-DKZISSE6.mjs.map → chunk-RXQNFP7K.mjs.map} +0 -0
  73. /package/dist/{chunk-LF3ENX7Z.mjs.map → chunk-UCZQ22IS.mjs.map} +0 -0
  74. /package/dist/{chunk-QNX4DJVS.mjs.map → chunk-VO2I73WT.mjs.map} +0 -0
  75. /package/dist/{chunk-7HKRIEAT.mjs.map → chunk-WDGSALCA.mjs.map} +0 -0
  76. /package/dist/{chunk-WY5PI2CR.mjs.map → chunk-ZHM6LP7J.mjs.map} +0 -0
package/dist/index.js CHANGED
@@ -892,7 +892,7 @@ var useChartReferenceLine = ({
892
892
  [props, referenceLineProperties],
893
893
  styleClassName
894
894
  )(theme);
895
- const color = `var(--ui-reference-line-${index})`;
895
+ const color = (0, import_core7.getVar)(`reference-line-${index}`)(theme);
896
896
  const label = {
897
897
  value: labelProp,
898
898
  fill: color,
@@ -989,7 +989,6 @@ var useLineChart = ({
989
989
  } = (_a = rest.lineProps) != null ? _a : {};
990
990
  const lineColors = (0, import_react7.useMemo)(
991
991
  () => series.map(({ color }, index) => ({
992
- __prefix: "ui",
993
992
  name: `line-${index}`,
994
993
  token: "colors",
995
994
  value: color != null ? color : "transparent"
@@ -998,7 +997,6 @@ var useLineChart = ({
998
997
  );
999
998
  const referenceLineColors = (0, import_react7.useMemo)(
1000
999
  () => referenceLineProps ? referenceLineProps.map(({ color }, index) => ({
1001
- __prefix: "ui",
1002
1000
  name: `reference-line-${index}`,
1003
1001
  token: "colors",
1004
1002
  value: color != null ? color : "transparent"
@@ -1009,7 +1007,7 @@ var useLineChart = ({
1009
1007
  () => [
1010
1008
  ...lineColors,
1011
1009
  ...referenceLineColors,
1012
- { __prefix: "ui", name: "fill-opacity", value: fillOpacity }
1010
+ { name: "fill-opacity", value: fillOpacity }
1013
1011
  ],
1014
1012
  [fillOpacity, lineColors, referenceLineColors]
1015
1013
  );
@@ -1025,8 +1023,8 @@ var useLineChart = ({
1025
1023
  );
1026
1024
  const [lineProps, lineClassName] = (0, import_react7.useMemo)(() => {
1027
1025
  const resolvedLineProps = {
1028
- fillOpacity: "var(--ui-fill-opacity)",
1029
- strokeOpacity: "var(--ui-fill-opacity)",
1026
+ fillOpacity: "$fill-opacity",
1027
+ strokeOpacity: "$fill-opacity",
1030
1028
  ...computedLineProps
1031
1029
  };
1032
1030
  return getComponentProps(
@@ -1074,7 +1072,7 @@ var useLineChart = ({
1074
1072
  dimLine: dimLine2 = {},
1075
1073
  ...computedProps
1076
1074
  } = props;
1077
- const color = `var(--ui-line-${index})`;
1075
+ const color = (0, import_core9.getVar)(`line-${index}`)(theme);
1078
1076
  const dimmed = shouldHighlight && highlightedArea !== dataKey;
1079
1077
  const computedDimLine = { ...dimLineProps, ...dimLine2 };
1080
1078
  const resolvedProps = {
@@ -1460,7 +1458,6 @@ var useBarChart = ({
1460
1458
  } = (_a = rest.barProps) != null ? _a : {};
1461
1459
  const barColors = (0, import_react9.useMemo)(
1462
1460
  () => series.map(({ color }, index) => ({
1463
- __prefix: "ui",
1464
1461
  name: `bar-${index}`,
1465
1462
  token: "colors",
1466
1463
  value: color != null ? color : "transparent"
@@ -1469,7 +1466,6 @@ var useBarChart = ({
1469
1466
  );
1470
1467
  const referenceLineColors = (0, import_react9.useMemo)(
1471
1468
  () => referenceLineProps.map(({ color }, index) => ({
1472
- __prefix: "ui",
1473
1469
  name: `reference-line-${index}`,
1474
1470
  token: "colors",
1475
1471
  value: color != null ? color : "transparent"
@@ -1480,7 +1476,7 @@ var useBarChart = ({
1480
1476
  return [
1481
1477
  ...barColors,
1482
1478
  ...referenceLineColors,
1483
- { __prefix: "ui", name: "fill-opacity", value: fillOpacity }
1479
+ { name: "fill-opacity", value: fillOpacity }
1484
1480
  ];
1485
1481
  }, [barColors, fillOpacity, referenceLineColors]);
1486
1482
  const [chartProps, barChartClassName] = (0, import_react9.useMemo)(() => {
@@ -1492,7 +1488,7 @@ var useBarChart = ({
1492
1488
  }, [rest.chartProps, styles.chart, theme]);
1493
1489
  const [barProps, barClassName] = (0, import_react9.useMemo)(() => {
1494
1490
  const resolvedBarProps = {
1495
- fillOpacity: "var(--ui-fill-opacity)",
1491
+ fillOpacity: "$fill-opacity",
1496
1492
  strokeOpacity: 1,
1497
1493
  ...computedBarProps
1498
1494
  };
@@ -1531,7 +1527,7 @@ var useBarChart = ({
1531
1527
  ...computedProps
1532
1528
  } = props;
1533
1529
  const id = `${uuid}-${dataKey}`;
1534
- const color = `var(--ui-bar-${index})`;
1530
+ const color = (0, import_core11.getVar)(`bar-${index}`)(theme);
1535
1531
  const dimmed = shouldHighlight && highlightedArea !== dataKey;
1536
1532
  const computedDimBar = { ...dimBarProps, ...dimBar2 };
1537
1533
  const resolvedProps = {
@@ -1865,7 +1861,7 @@ var BarChart = (0, import_core12.forwardRef)((props, ref) => {
1865
1861
  });
1866
1862
 
1867
1863
  // src/area-chart.tsx
1868
- var import_core14 = require("@yamada-ui/core");
1864
+ var import_core15 = require("@yamada-ui/core");
1869
1865
  var import_utils15 = require("@yamada-ui/utils");
1870
1866
  var import_react12 = require("react");
1871
1867
  var import_recharts4 = require("recharts");
@@ -1889,14 +1885,16 @@ var AreaGradient = ({
1889
1885
  };
1890
1886
 
1891
1887
  // src/area-chart-split.tsx
1888
+ var import_core13 = require("@yamada-ui/core");
1892
1889
  var import_jsx_runtime7 = require("react/jsx-runtime");
1893
1890
  var AreaSplit = ({ offset, id, fillOpacity }) => {
1891
+ const { theme } = (0, import_core13.useTheme)();
1894
1892
  return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("linearGradient", { id, x1: "0", y1: "0", x2: "0", y2: "1", children: [
1895
1893
  /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
1896
1894
  "stop",
1897
1895
  {
1898
1896
  offset,
1899
- stopColor: "var(--ui-area-split-0)",
1897
+ stopColor: (0, import_core13.getVar)(`area-split-0`)(theme),
1900
1898
  stopOpacity: fillOpacity != null ? fillOpacity : 0.4
1901
1899
  }
1902
1900
  ),
@@ -1904,7 +1902,7 @@ var AreaSplit = ({ offset, id, fillOpacity }) => {
1904
1902
  "stop",
1905
1903
  {
1906
1904
  offset,
1907
- stopColor: "var(--ui-area-split-1)",
1905
+ stopColor: (0, import_core13.getVar)(`area-split-1`)(theme),
1908
1906
  stopOpacity: fillOpacity != null ? fillOpacity : 0.4
1909
1907
  }
1910
1908
  )
@@ -1912,7 +1910,7 @@ var AreaSplit = ({ offset, id, fillOpacity }) => {
1912
1910
  };
1913
1911
 
1914
1912
  // src/use-area-chart.ts
1915
- var import_core13 = require("@yamada-ui/core");
1913
+ var import_core14 = require("@yamada-ui/core");
1916
1914
  var import_utils14 = require("@yamada-ui/utils");
1917
1915
  var import_react11 = require("react");
1918
1916
  var useAreaChart = ({
@@ -1938,7 +1936,7 @@ var useAreaChart = ({
1938
1936
  }) => {
1939
1937
  var _a;
1940
1938
  const uuid = (0, import_react11.useId)();
1941
- const { theme } = (0, import_core13.useTheme)();
1939
+ const { theme } = (0, import_core14.useTheme)();
1942
1940
  const [highlightedArea, setHighlightedArea] = (0, import_react11.useState)(null);
1943
1941
  const splitId = `${uuid}-split`;
1944
1942
  const stacked = type === "stacked" || type === "percent";
@@ -1953,7 +1951,6 @@ var useAreaChart = ({
1953
1951
  } = (_a = rest.areaProps) != null ? _a : {};
1954
1952
  const areaColors = (0, import_react11.useMemo)(
1955
1953
  () => series.map(({ color }, index) => ({
1956
- __prefix: "ui",
1957
1954
  name: `area-${index}`,
1958
1955
  token: "colors",
1959
1956
  value: color != null ? color : "transparent"
@@ -1962,7 +1959,6 @@ var useAreaChart = ({
1962
1959
  );
1963
1960
  const areaSplitColors = (0, import_react11.useMemo)(
1964
1961
  () => splitColors.map((color, index) => ({
1965
- __prefix: "ui",
1966
1962
  name: `area-split-${index}`,
1967
1963
  token: "colors",
1968
1964
  value: color != null ? color : "transparent"
@@ -1971,7 +1967,6 @@ var useAreaChart = ({
1971
1967
  );
1972
1968
  const referenceLineColors = (0, import_react11.useMemo)(
1973
1969
  () => referenceLineProps ? referenceLineProps.map(({ color }, index) => ({
1974
- __prefix: "ui",
1975
1970
  name: `reference-line-${index}`,
1976
1971
  token: "colors",
1977
1972
  value: color != null ? color : "transparent"
@@ -1983,9 +1978,10 @@ var useAreaChart = ({
1983
1978
  ...areaColors,
1984
1979
  ...areaSplitColors,
1985
1980
  ...referenceLineColors,
1986
- { __prefix: "ui", name: "fill-opacity", value: fillOpacity }
1981
+ { name: "fill-opacity", value: fillOpacity }
1987
1982
  ];
1988
1983
  }, [areaColors, areaSplitColors, referenceLineColors, fillOpacity]);
1984
+ const fillOpacityVar = (0, import_react11.useMemo)(() => (0, import_core14.getVar)("fill-opacity")(theme), [theme]);
1989
1985
  const [chartProps, areaChartClassName] = (0, import_react11.useMemo)(
1990
1986
  () => {
1991
1987
  var _a2;
@@ -2060,7 +2056,7 @@ var useAreaChart = ({
2060
2056
  ...computedProps
2061
2057
  } = props;
2062
2058
  const id = `${uuid}-${dataKey}`;
2063
- const color = `var(--ui-area-${index})`;
2059
+ const color = (0, import_core14.getVar)(`area-${index}`)(theme);
2064
2060
  const dimmed = shouldHighlight && highlightedArea !== dataKey;
2065
2061
  const computedDimArea = { ...dimAreaProps, ...dimArea2 };
2066
2062
  const resolvedProps = {
@@ -2172,10 +2168,10 @@ var useAreaChart = ({
2172
2168
  (props = {}) => ({
2173
2169
  id: splitId,
2174
2170
  offset: splitOffset != null ? splitOffset : defaultSplitOffset,
2175
- fillOpacity: "var(--ui-fill-opacity)",
2171
+ fillOpacity: fillOpacityVar,
2176
2172
  ...props
2177
2173
  }),
2178
- [defaultSplitOffset, splitId, splitOffset]
2174
+ [defaultSplitOffset, splitId, splitOffset, fillOpacityVar]
2179
2175
  );
2180
2176
  const getAreaProps = (0, import_react11.useCallback)(
2181
2177
  ({ index, className: classNameProp, ...props }, ref = null) => {
@@ -2222,10 +2218,10 @@ var useAreaChart = ({
2222
2218
  const getAreaGradientProps = (0, import_react11.useCallback)(
2223
2219
  (props = {}) => ({
2224
2220
  withGradient,
2225
- fillOpacity: "var(--ui-fill-opacity)",
2221
+ fillOpacity: fillOpacityVar,
2226
2222
  ...props
2227
2223
  }),
2228
- [withGradient]
2224
+ [withGradient, fillOpacityVar]
2229
2225
  );
2230
2226
  return {
2231
2227
  getAreaChartProps,
@@ -2239,8 +2235,8 @@ var useAreaChart = ({
2239
2235
 
2240
2236
  // src/area-chart.tsx
2241
2237
  var import_jsx_runtime8 = require("react/jsx-runtime");
2242
- var AreaChart = (0, import_core14.forwardRef)((props, ref) => {
2243
- const [styles, mergedProps] = (0, import_core14.useMultiComponentStyle)("AreaChart", props);
2238
+ var AreaChart = (0, import_core15.forwardRef)((props, ref) => {
2239
+ const [styles, mergedProps] = (0, import_core15.useMultiComponentStyle)("AreaChart", props);
2244
2240
  const {
2245
2241
  className,
2246
2242
  series,
@@ -2285,7 +2281,7 @@ var AreaChart = (0, import_core14.forwardRef)((props, ref) => {
2285
2281
  splitOffset,
2286
2282
  syncId,
2287
2283
  ...rest
2288
- } = (0, import_core14.omitThemeProps)(mergedProps);
2284
+ } = (0, import_core15.omitThemeProps)(mergedProps);
2289
2285
  const {
2290
2286
  getAreaChartProps,
2291
2287
  getAreaSplitProps,
@@ -2385,7 +2381,7 @@ var AreaChart = (0, import_core14.forwardRef)((props, ref) => {
2385
2381
  [getReferenceLineProps, referenceLineProps]
2386
2382
  );
2387
2383
  return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(ChartProvider, { value: { styles }, children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
2388
- import_core14.ui.div,
2384
+ import_core15.ui.div,
2389
2385
  {
2390
2386
  ref,
2391
2387
  className: (0, import_utils15.cx)("ui-area-chart", className),
@@ -2469,13 +2465,13 @@ var AreaChart = (0, import_core14.forwardRef)((props, ref) => {
2469
2465
  });
2470
2466
 
2471
2467
  // src/radar-chart.tsx
2472
- var import_core16 = require("@yamada-ui/core");
2468
+ var import_core17 = require("@yamada-ui/core");
2473
2469
  var import_utils17 = require("@yamada-ui/utils");
2474
2470
  var import_react14 = require("react");
2475
2471
  var import_recharts5 = require("recharts");
2476
2472
 
2477
2473
  // src/use-radar-chart.ts
2478
- var import_core15 = require("@yamada-ui/core");
2474
+ var import_core16 = require("@yamada-ui/core");
2479
2475
  var import_utils16 = require("@yamada-ui/utils");
2480
2476
  var import_react13 = require("react");
2481
2477
  var useRadarChart = ({
@@ -2493,7 +2489,7 @@ var useRadarChart = ({
2493
2489
  ...rest
2494
2490
  }) => {
2495
2491
  var _a;
2496
- const { theme } = (0, import_core15.useTheme)();
2492
+ const { theme } = (0, import_core16.useTheme)();
2497
2493
  const [highlightedArea, setHighlightedArea] = (0, import_react13.useState)(null);
2498
2494
  const shouldHighlight = highlightedArea !== null;
2499
2495
  const {
@@ -2505,7 +2501,6 @@ var useRadarChart = ({
2505
2501
  } = (_a = rest.radarProps) != null ? _a : {};
2506
2502
  const radarColors = (0, import_react13.useMemo)(
2507
2503
  () => series.map(({ color }, index) => ({
2508
- __prefix: "ui",
2509
2504
  name: `radar-${index}`,
2510
2505
  token: "colors",
2511
2506
  value: color != null ? color : "transparent"
@@ -2515,7 +2510,7 @@ var useRadarChart = ({
2515
2510
  const radarVars = (0, import_react13.useMemo)(
2516
2511
  () => [
2517
2512
  ...radarColors,
2518
- { __prefix: "ui", name: "fill-opacity", value: fillOpacity }
2513
+ { name: "fill-opacity", value: fillOpacity }
2519
2514
  ],
2520
2515
  [fillOpacity, radarColors]
2521
2516
  );
@@ -2575,7 +2570,7 @@ var useRadarChart = ({
2575
2570
  );
2576
2571
  const [radarProps, radarClassName] = (0, import_react13.useMemo)(() => {
2577
2572
  const resolvedRadarProps = {
2578
- fillOpacity: "var(--ui-fill-opacity)",
2573
+ fillOpacity: "$fill-opacity",
2579
2574
  ...computedRadarProps
2580
2575
  };
2581
2576
  return getComponentProps(
@@ -2623,7 +2618,7 @@ var useRadarChart = ({
2623
2618
  dimRadar: dimRadar2 = {},
2624
2619
  ...computedProps
2625
2620
  } = props;
2626
- const color = `var(--ui-radar-${index})`;
2621
+ const color = (0, import_core16.getVar)(`radar-${index}`)(theme);
2627
2622
  const dimmed = shouldHighlight && highlightedArea !== dataKey2;
2628
2623
  const computedDimRadar = { ...dimRadarProps, ...dimRadar2 };
2629
2624
  const resolvedProps = {
@@ -2803,8 +2798,8 @@ var useRadarChart = ({
2803
2798
 
2804
2799
  // src/radar-chart.tsx
2805
2800
  var import_jsx_runtime9 = require("react/jsx-runtime");
2806
- var RadarChart = (0, import_core16.forwardRef)((props, ref) => {
2807
- const [styles, mergedProps] = (0, import_core16.useMultiComponentStyle)("RadarChart", props);
2801
+ var RadarChart = (0, import_core17.forwardRef)((props, ref) => {
2802
+ const [styles, mergedProps] = (0, import_core17.useMultiComponentStyle)("RadarChart", props);
2808
2803
  const {
2809
2804
  className,
2810
2805
  data,
@@ -2836,7 +2831,7 @@ var RadarChart = (0, import_core16.forwardRef)((props, ref) => {
2836
2831
  withPolarAngleAxis = true,
2837
2832
  withPolarRadiusAxis = false,
2838
2833
  ...rest
2839
- } = (0, import_core16.omitThemeProps)(mergedProps);
2834
+ } = (0, import_core17.omitThemeProps)(mergedProps);
2840
2835
  const {
2841
2836
  getRadarProps,
2842
2837
  getRadarChartProps,
@@ -2885,7 +2880,7 @@ var RadarChart = (0, import_core16.forwardRef)((props, ref) => {
2885
2880
  [getRadarProps, series]
2886
2881
  );
2887
2882
  return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(ChartProvider, { value: { styles }, children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
2888
- import_core16.ui.div,
2883
+ import_core17.ui.div,
2889
2884
  {
2890
2885
  ref,
2891
2886
  className: (0, import_utils17.cx)("ui-radar-chart", className),
@@ -2968,18 +2963,18 @@ var RadarChart = (0, import_core16.forwardRef)((props, ref) => {
2968
2963
  });
2969
2964
 
2970
2965
  // src/donut-chart.tsx
2971
- var import_core20 = require("@yamada-ui/core");
2966
+ var import_core21 = require("@yamada-ui/core");
2972
2967
  var import_utils21 = require("@yamada-ui/utils");
2973
2968
  var import_react17 = require("react");
2974
2969
  var import_recharts6 = require("recharts");
2975
2970
 
2976
2971
  // src/use-chart-label.ts
2977
- var import_core17 = require("@yamada-ui/core");
2972
+ var import_core18 = require("@yamada-ui/core");
2978
2973
  var import_utils18 = require("@yamada-ui/utils");
2979
2974
  var import_react15 = require("react");
2980
2975
  var useChartLabel = ({ styles, ...rest }) => {
2981
2976
  var _a;
2982
- const { theme } = (0, import_core17.useTheme)();
2977
+ const { theme } = (0, import_core18.useTheme)();
2983
2978
  const [labelProps, labelClassName] = getComponentProps(
2984
2979
  [(_a = rest.labelProps) != null ? _a : {}, labelProperties],
2985
2980
  styles.label
@@ -2999,12 +2994,12 @@ var useChartLabel = ({ styles, ...rest }) => {
2999
2994
  };
3000
2995
 
3001
2996
  // src/use-pie-chart.ts
3002
- var import_core19 = require("@yamada-ui/core");
2997
+ var import_core20 = require("@yamada-ui/core");
3003
2998
  var import_utils20 = require("@yamada-ui/utils");
3004
2999
  var import_react16 = require("react");
3005
3000
 
3006
3001
  // src/pie-chart-label.tsx
3007
- var import_core18 = require("@yamada-ui/core");
3002
+ var import_core19 = require("@yamada-ui/core");
3008
3003
  var import_utils19 = require("@yamada-ui/utils");
3009
3004
  var import_jsx_runtime10 = require("react/jsx-runtime");
3010
3005
  var RADIAN = Math.PI / 180;
@@ -3039,7 +3034,7 @@ var pieChartLabel = ({
3039
3034
  }
3040
3035
  };
3041
3036
  return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
3042
- import_core18.ui.text,
3037
+ import_core19.ui.text,
3043
3038
  {
3044
3039
  className: (0, import_utils19.cx)(cellClassName, "ui-chart__label"),
3045
3040
  x,
@@ -3070,7 +3065,7 @@ var pieChartLabelLine = ({
3070
3065
  const y = cyProp + (middleRadius + labelOffset) * Math.sin(-midAngle * RADIAN);
3071
3066
  const d = `M ${points[0].x} ${points[0].y} L ${x} ${y}`;
3072
3067
  return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
3073
- import_core18.ui.path,
3068
+ import_core19.ui.path,
3074
3069
  {
3075
3070
  className: (0, import_utils19.cx)(cellClassName, "ui-chart__label-line"),
3076
3071
  d,
@@ -3099,7 +3094,7 @@ var usePieChart = ({
3099
3094
  ...rest
3100
3095
  }) => {
3101
3096
  var _a, _b;
3102
- const { theme } = (0, import_core19.useTheme)();
3097
+ const { theme } = (0, import_core20.useTheme)();
3103
3098
  const [highlightedArea, setHighlightedArea] = (0, import_react16.useState)(null);
3104
3099
  const shouldHighlight = highlightedArea !== null;
3105
3100
  const { dimCell, ...computedCellProps } = (_a = rest.cellProps) != null ? _a : {};
@@ -3112,7 +3107,6 @@ var usePieChart = ({
3112
3107
  } = (_b = rest.pieProps) != null ? _b : {};
3113
3108
  const cellColors = (0, import_react16.useMemo)(
3114
3109
  () => data.map(({ color }, index) => ({
3115
- __prefix: "ui",
3116
3110
  name: `cell-${index}`,
3117
3111
  token: "colors",
3118
3112
  value: color != null ? color : "transparent"
@@ -3122,7 +3116,7 @@ var usePieChart = ({
3122
3116
  const pieVars = (0, import_react16.useMemo)(
3123
3117
  () => [
3124
3118
  ...cellColors,
3125
- { __prefix: "ui", name: "fill-opacity", value: fillOpacity }
3119
+ { name: "fill-opacity", value: fillOpacity }
3126
3120
  ],
3127
3121
  [fillOpacity, cellColors]
3128
3122
  );
@@ -3145,7 +3139,7 @@ var usePieChart = ({
3145
3139
  );
3146
3140
  const cellClassName = (0, import_react16.useMemo)(() => {
3147
3141
  const resolvedCellProps = {
3148
- fillOpacity: "var(--ui-fill-opacity)",
3142
+ fillOpacity: "$fill-opacity",
3149
3143
  ...styles.cell,
3150
3144
  ...computedCellProps
3151
3145
  };
@@ -3194,7 +3188,7 @@ var usePieChart = ({
3194
3188
  const cellPropList = (0, import_react16.useMemo)(
3195
3189
  () => data.map((props, index) => {
3196
3190
  const { name, dimCell: dimCell2 = {}, ...computedProps } = props;
3197
- const color = `var(--ui-cell-${index})`;
3191
+ const color = (0, import_core20.getVar)(`cell-${index}`)(theme);
3198
3192
  const dimmed = shouldHighlight && highlightedArea !== name;
3199
3193
  const resolvedProps = {
3200
3194
  ...computedProps,
@@ -3292,8 +3286,8 @@ var usePieChart = ({
3292
3286
 
3293
3287
  // src/donut-chart.tsx
3294
3288
  var import_jsx_runtime11 = require("react/jsx-runtime");
3295
- var DonutChart = (0, import_core20.forwardRef)((props, ref) => {
3296
- const [styles, mergedProps] = (0, import_core20.useMultiComponentStyle)("DonutChart", props);
3289
+ var DonutChart = (0, import_core21.forwardRef)((props, ref) => {
3290
+ const [styles, mergedProps] = (0, import_core21.useMultiComponentStyle)("DonutChart", props);
3297
3291
  const {
3298
3292
  className,
3299
3293
  data,
@@ -3322,7 +3316,7 @@ var DonutChart = (0, import_core20.forwardRef)((props, ref) => {
3322
3316
  legendProps,
3323
3317
  labelProps,
3324
3318
  ...rest
3325
- } = (0, import_core20.omitThemeProps)(mergedProps);
3319
+ } = (0, import_core21.omitThemeProps)(mergedProps);
3326
3320
  const {
3327
3321
  pieVars,
3328
3322
  getPieProps,
@@ -3368,7 +3362,7 @@ var DonutChart = (0, import_core20.forwardRef)((props, ref) => {
3368
3362
  [data, getCellProps]
3369
3363
  );
3370
3364
  return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(ChartProvider, { value: { styles }, children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
3371
- import_core20.ui.div,
3365
+ import_core21.ui.div,
3372
3366
  {
3373
3367
  ref,
3374
3368
  className: (0, import_utils21.cx)("ui-donut-chart", className),
@@ -3443,13 +3437,13 @@ var DonutChart = (0, import_core20.forwardRef)((props, ref) => {
3443
3437
  });
3444
3438
 
3445
3439
  // src/pie-chart.tsx
3446
- var import_core21 = require("@yamada-ui/core");
3440
+ var import_core22 = require("@yamada-ui/core");
3447
3441
  var import_utils22 = require("@yamada-ui/utils");
3448
3442
  var import_react18 = require("react");
3449
3443
  var import_recharts7 = require("recharts");
3450
3444
  var import_jsx_runtime12 = require("react/jsx-runtime");
3451
- var PieChart = (0, import_core21.forwardRef)((props, ref) => {
3452
- const [styles, mergedProps] = (0, import_core21.useMultiComponentStyle)("PieChart", props);
3445
+ var PieChart = (0, import_core22.forwardRef)((props, ref) => {
3446
+ const [styles, mergedProps] = (0, import_core22.useMultiComponentStyle)("PieChart", props);
3453
3447
  const {
3454
3448
  className,
3455
3449
  data,
@@ -3477,7 +3471,7 @@ var PieChart = (0, import_core21.forwardRef)((props, ref) => {
3477
3471
  strokeWidth,
3478
3472
  legendProps,
3479
3473
  ...rest
3480
- } = (0, import_core21.omitThemeProps)(mergedProps);
3474
+ } = (0, import_core22.omitThemeProps)(mergedProps);
3481
3475
  const {
3482
3476
  pieVars,
3483
3477
  getPieProps,
@@ -3522,7 +3516,7 @@ var PieChart = (0, import_core21.forwardRef)((props, ref) => {
3522
3516
  [data, getCellProps]
3523
3517
  );
3524
3518
  return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(ChartProvider, { value: { styles }, children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
3525
- import_core21.ui.div,
3519
+ import_core22.ui.div,
3526
3520
  {
3527
3521
  ref,
3528
3522
  className: (0, import_utils22.cx)("ui-pie-chart", className),