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

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 (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
@@ -24,14 +24,16 @@ __export(area_chart_split_exports, {
24
24
  AreaSplit: () => AreaSplit
25
25
  });
26
26
  module.exports = __toCommonJS(area_chart_split_exports);
27
+ var import_core = require("@yamada-ui/core");
27
28
  var import_jsx_runtime = require("react/jsx-runtime");
28
29
  var AreaSplit = ({ offset, id, fillOpacity }) => {
30
+ const { theme } = (0, import_core.useTheme)();
29
31
  return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("linearGradient", { id, x1: "0", y1: "0", x2: "0", y2: "1", children: [
30
32
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
31
33
  "stop",
32
34
  {
33
35
  offset,
34
- stopColor: "var(--ui-area-split-0)",
36
+ stopColor: (0, import_core.getVar)(`area-split-0`)(theme),
35
37
  stopOpacity: fillOpacity != null ? fillOpacity : 0.4
36
38
  }
37
39
  ),
@@ -39,7 +41,7 @@ var AreaSplit = ({ offset, id, fillOpacity }) => {
39
41
  "stop",
40
42
  {
41
43
  offset,
42
- stopColor: "var(--ui-area-split-1)",
44
+ stopColor: (0, import_core.getVar)(`area-split-1`)(theme),
43
45
  stopOpacity: fillOpacity != null ? fillOpacity : 0.4
44
46
  }
45
47
  )
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/area-chart-split.tsx"],"sourcesContent":["export type AreaSplitProps = {\n offset: number\n id?: string\n fillOpacity: number | string | undefined\n}\n\nexport const AreaSplit = ({ offset, id, fillOpacity }: AreaSplitProps) => {\n return (\n <linearGradient id={id} x1=\"0\" y1=\"0\" x2=\"0\" y2=\"1\">\n <stop\n offset={offset}\n stopColor=\"var(--ui-area-split-0)\"\n stopOpacity={fillOpacity ?? 0.4}\n />\n <stop\n offset={offset}\n stopColor=\"var(--ui-area-split-1)\"\n stopOpacity={fillOpacity ?? 0.4}\n />\n </linearGradient>\n )\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAQI;AAFG,IAAM,YAAY,CAAC,EAAE,QAAQ,IAAI,YAAY,MAAsB;AACxE,SACE,6CAAC,oBAAe,IAAQ,IAAG,KAAI,IAAG,KAAI,IAAG,KAAI,IAAG,KAC9C;AAAA;AAAA,MAAC;AAAA;AAAA,QACC;AAAA,QACA,WAAU;AAAA,QACV,aAAa,oCAAe;AAAA;AAAA,IAC9B;AAAA,IACA;AAAA,MAAC;AAAA;AAAA,QACC;AAAA,QACA,WAAU;AAAA,QACV,aAAa,oCAAe;AAAA;AAAA,IAC9B;AAAA,KACF;AAEJ;","names":[]}
1
+ {"version":3,"sources":["../src/area-chart-split.tsx"],"sourcesContent":["import { getVar, useTheme } from \"@yamada-ui/core\"\n\nexport type AreaSplitProps = {\n offset: number\n id?: string\n fillOpacity: number | string | undefined\n}\n\nexport const AreaSplit = ({ offset, id, fillOpacity }: AreaSplitProps) => {\n const { theme } = useTheme()\n\n return (\n <linearGradient id={id} x1=\"0\" y1=\"0\" x2=\"0\" y2=\"1\">\n <stop\n offset={offset}\n stopColor={getVar(`area-split-0`)(theme)}\n stopOpacity={fillOpacity ?? 0.4}\n />\n <stop\n offset={offset}\n stopColor={getVar(`area-split-1`)(theme)}\n stopOpacity={fillOpacity ?? 0.4}\n />\n </linearGradient>\n )\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAAiC;AAY7B;AAJG,IAAM,YAAY,CAAC,EAAE,QAAQ,IAAI,YAAY,MAAsB;AACxE,QAAM,EAAE,MAAM,QAAI,sBAAS;AAE3B,SACE,6CAAC,oBAAe,IAAQ,IAAG,KAAI,IAAG,KAAI,IAAG,KAAI,IAAG,KAC9C;AAAA;AAAA,MAAC;AAAA;AAAA,QACC;AAAA,QACA,eAAW,oBAAO,cAAc,EAAE,KAAK;AAAA,QACvC,aAAa,oCAAe;AAAA;AAAA,IAC9B;AAAA,IACA;AAAA,MAAC;AAAA;AAAA,QACC;AAAA,QACA,eAAW,oBAAO,cAAc,EAAE,KAAK;AAAA,QACvC,aAAa,oCAAe;AAAA;AAAA,IAC9B;AAAA,KACF;AAEJ;","names":[]}
@@ -1,7 +1,7 @@
1
1
  "use client"
2
2
  import {
3
3
  AreaSplit
4
- } from "./chunk-PNE3JG54.mjs";
4
+ } from "./chunk-MGTMKKSH.mjs";
5
5
  export {
6
6
  AreaSplit
7
7
  };
@@ -24,7 +24,7 @@ __export(area_chart_exports, {
24
24
  AreaChart: () => AreaChart
25
25
  });
26
26
  module.exports = __toCommonJS(area_chart_exports);
27
- var import_core10 = require("@yamada-ui/core");
27
+ var import_core11 = require("@yamada-ui/core");
28
28
  var import_utils11 = require("@yamada-ui/utils");
29
29
  var import_react8 = require("react");
30
30
  var import_recharts = require("recharts");
@@ -48,14 +48,16 @@ var AreaGradient = ({
48
48
  };
49
49
 
50
50
  // src/area-chart-split.tsx
51
+ var import_core = require("@yamada-ui/core");
51
52
  var import_jsx_runtime2 = require("react/jsx-runtime");
52
53
  var AreaSplit = ({ offset, id, fillOpacity }) => {
54
+ const { theme } = (0, import_core.useTheme)();
53
55
  return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("linearGradient", { id, x1: "0", y1: "0", x2: "0", y2: "1", children: [
54
56
  /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
55
57
  "stop",
56
58
  {
57
59
  offset,
58
- stopColor: "var(--ui-area-split-0)",
60
+ stopColor: (0, import_core.getVar)(`area-split-0`)(theme),
59
61
  stopOpacity: fillOpacity != null ? fillOpacity : 0.4
60
62
  }
61
63
  ),
@@ -63,7 +65,7 @@ var AreaSplit = ({ offset, id, fillOpacity }) => {
63
65
  "stop",
64
66
  {
65
67
  offset,
66
- stopColor: "var(--ui-area-split-1)",
68
+ stopColor: (0, import_core.getVar)(`area-split-1`)(theme),
67
69
  stopOpacity: fillOpacity != null ? fillOpacity : 0.4
68
70
  }
69
71
  )
@@ -71,20 +73,20 @@ var AreaSplit = ({ offset, id, fillOpacity }) => {
71
73
  };
72
74
 
73
75
  // src/chart-legend.tsx
74
- var import_core3 = require("@yamada-ui/core");
76
+ var import_core4 = require("@yamada-ui/core");
75
77
  var import_utils3 = require("@yamada-ui/utils");
76
78
 
77
79
  // src/use-chart.ts
78
- var import_core2 = require("@yamada-ui/core");
80
+ var import_core3 = require("@yamada-ui/core");
79
81
  var import_utils2 = require("@yamada-ui/utils");
80
82
  var import_react = require("react");
81
83
 
82
84
  // src/chart-utils.ts
83
- var import_core = require("@yamada-ui/core");
85
+ var import_core2 = require("@yamada-ui/core");
84
86
  var import_utils = require("@yamada-ui/utils");
85
87
  var getClassName = (...styles) => (theme) => (0, import_utils.cx)(
86
88
  ...styles.map(
87
- (style) => (0, import_utils.isString)(style) ? style : (0, import_core.getCSS)(style)(theme)
89
+ (style) => (0, import_utils.isString)(style) ? style : (0, import_core2.getCSS)(style)(theme)
88
90
  )
89
91
  );
90
92
  var getComponentProps = ([obj, keys], ...props) => (theme, isContain) => {
@@ -336,7 +338,7 @@ var [ChartProvider, useChartContext] = (0, import_utils2.createContext)({
336
338
  errorMessage: `useChartContext returned is 'undefined'. Seems you forgot to wrap the components in "<LineChart />" or "<BarChart />" etc.`
337
339
  });
338
340
  var useChart = ({ containerProps = {} }) => {
339
- const { theme } = (0, import_core2.useTheme)();
341
+ const { theme } = (0, import_core3.useTheme)();
340
342
  const [reChartsProps, propClassName] = getComponentProps([
341
343
  containerProps,
342
344
  containerProperties
@@ -369,13 +371,13 @@ var useTooltip = ({} = {}) => {
369
371
 
370
372
  // src/chart-legend.tsx
371
373
  var import_jsx_runtime3 = require("react/jsx-runtime");
372
- var ChartLegend = (0, import_core3.forwardRef)(
374
+ var ChartLegend = (0, import_core4.forwardRef)(
373
375
  ({ className, payload = [], onHighlight, ...rest }, ref) => {
374
376
  const { styles } = useLegend();
375
377
  const items = payload.map(({ dataKey, value: valueProp, color }, index) => {
376
378
  const value = dataKey != null ? dataKey : valueProp;
377
379
  return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
378
- import_core3.ui.div,
380
+ import_core4.ui.div,
379
381
  {
380
382
  className: "ui-chart__legend-item",
381
383
  onMouseEnter: () => onHighlight(value),
@@ -383,21 +385,21 @@ var ChartLegend = (0, import_core3.forwardRef)(
383
385
  __css: styles.legendItem,
384
386
  children: [
385
387
  /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
386
- import_core3.ui.div,
388
+ import_core4.ui.div,
387
389
  {
388
390
  className: "ui-chart__legend-swatch",
389
391
  background: color,
390
392
  __css: styles.legendSwatch
391
393
  }
392
394
  ),
393
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_core3.ui.span, { className: "ui-chart__legend-label", children: value })
395
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_core4.ui.span, { className: "ui-chart__legend-label", children: value })
394
396
  ]
395
397
  },
396
398
  `legend-${index}`
397
399
  );
398
400
  });
399
401
  return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
400
- import_core3.ui.div,
402
+ import_core4.ui.div,
401
403
  {
402
404
  ref,
403
405
  className: (0, import_utils3.cx)("ui-chart__legend", className),
@@ -410,10 +412,10 @@ var ChartLegend = (0, import_core3.forwardRef)(
410
412
  );
411
413
 
412
414
  // src/chart-tooltip.tsx
413
- var import_core4 = require("@yamada-ui/core");
415
+ var import_core5 = require("@yamada-ui/core");
414
416
  var import_utils4 = require("@yamada-ui/utils");
415
417
  var import_jsx_runtime4 = require("react/jsx-runtime");
416
- var ChartTooltip = (0, import_core4.forwardRef)(
418
+ var ChartTooltip = (0, import_core5.forwardRef)(
417
419
  ({
418
420
  label,
419
421
  className,
@@ -439,13 +441,13 @@ var ChartTooltip = (0, import_core4.forwardRef)(
439
441
  value = (_a2 = valueFormatter == null ? void 0 : valueFormatter(valueProp)) != null ? _a2 : valueProp;
440
442
  }
441
443
  return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
442
- import_core4.ui.div,
444
+ import_core5.ui.div,
443
445
  {
444
446
  className: "ui-chart__tooltip-item",
445
447
  __css: styles.tooltipItem,
446
448
  children: [
447
449
  /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
448
- import_core4.ui.div,
450
+ import_core5.ui.div,
449
451
  {
450
452
  className: "ui-chart__tooltip-swatch",
451
453
  background: color,
@@ -453,7 +455,7 @@ var ChartTooltip = (0, import_core4.forwardRef)(
453
455
  }
454
456
  ),
455
457
  /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
456
- import_core4.ui.span,
458
+ import_core5.ui.span,
457
459
  {
458
460
  className: "ui-chart__tooltip-label",
459
461
  __css: styles.tooltipLabel,
@@ -461,7 +463,7 @@ var ChartTooltip = (0, import_core4.forwardRef)(
461
463
  }
462
464
  ),
463
465
  /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
464
- import_core4.ui.span,
466
+ import_core5.ui.span,
465
467
  {
466
468
  className: "ui-chart__tooltip-value",
467
469
  __css: styles.tooltipValue,
@@ -478,15 +480,15 @@ var ChartTooltip = (0, import_core4.forwardRef)(
478
480
  }
479
481
  );
480
482
  return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
481
- import_core4.ui.div,
483
+ import_core5.ui.div,
482
484
  {
483
485
  ref,
484
486
  className: (0, import_utils4.cx)("ui-chart__tooltip", className),
485
487
  __css: styles.tooltip,
486
488
  ...rest,
487
489
  children: [
488
- label ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_core4.ui.p, { className: "ui-chart__tooltip-title", __css: styles.tooltipTitle, children: (_a = labelFormatter == null ? void 0 : labelFormatter(label)) != null ? _a : label }) : null,
489
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_core4.ui.div, { className: "ui-chart__tooltip-list", __css: styles.tooltipList, children: items })
490
+ label ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_core5.ui.p, { className: "ui-chart__tooltip-title", __css: styles.tooltipTitle, children: (_a = labelFormatter == null ? void 0 : labelFormatter(label)) != null ? _a : label }) : null,
491
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_core5.ui.div, { className: "ui-chart__tooltip-list", __css: styles.tooltipList, children: items })
490
492
  ]
491
493
  }
492
494
  );
@@ -494,7 +496,7 @@ var ChartTooltip = (0, import_core4.forwardRef)(
494
496
  );
495
497
 
496
498
  // src/use-area-chart.ts
497
- var import_core5 = require("@yamada-ui/core");
499
+ var import_core6 = require("@yamada-ui/core");
498
500
  var import_utils5 = require("@yamada-ui/utils");
499
501
  var import_react2 = require("react");
500
502
  var useAreaChart = ({
@@ -520,7 +522,7 @@ var useAreaChart = ({
520
522
  }) => {
521
523
  var _a;
522
524
  const uuid = (0, import_react2.useId)();
523
- const { theme } = (0, import_core5.useTheme)();
525
+ const { theme } = (0, import_core6.useTheme)();
524
526
  const [highlightedArea, setHighlightedArea] = (0, import_react2.useState)(null);
525
527
  const splitId = `${uuid}-split`;
526
528
  const stacked = type === "stacked" || type === "percent";
@@ -535,7 +537,6 @@ var useAreaChart = ({
535
537
  } = (_a = rest.areaProps) != null ? _a : {};
536
538
  const areaColors = (0, import_react2.useMemo)(
537
539
  () => series.map(({ color }, index) => ({
538
- __prefix: "ui",
539
540
  name: `area-${index}`,
540
541
  token: "colors",
541
542
  value: color != null ? color : "transparent"
@@ -544,7 +545,6 @@ var useAreaChart = ({
544
545
  );
545
546
  const areaSplitColors = (0, import_react2.useMemo)(
546
547
  () => splitColors.map((color, index) => ({
547
- __prefix: "ui",
548
548
  name: `area-split-${index}`,
549
549
  token: "colors",
550
550
  value: color != null ? color : "transparent"
@@ -553,7 +553,6 @@ var useAreaChart = ({
553
553
  );
554
554
  const referenceLineColors = (0, import_react2.useMemo)(
555
555
  () => referenceLineProps ? referenceLineProps.map(({ color }, index) => ({
556
- __prefix: "ui",
557
556
  name: `reference-line-${index}`,
558
557
  token: "colors",
559
558
  value: color != null ? color : "transparent"
@@ -565,9 +564,10 @@ var useAreaChart = ({
565
564
  ...areaColors,
566
565
  ...areaSplitColors,
567
566
  ...referenceLineColors,
568
- { __prefix: "ui", name: "fill-opacity", value: fillOpacity }
567
+ { name: "fill-opacity", value: fillOpacity }
569
568
  ];
570
569
  }, [areaColors, areaSplitColors, referenceLineColors, fillOpacity]);
570
+ const fillOpacityVar = (0, import_react2.useMemo)(() => (0, import_core6.getVar)("fill-opacity")(theme), [theme]);
571
571
  const [chartProps, areaChartClassName] = (0, import_react2.useMemo)(
572
572
  () => {
573
573
  var _a2;
@@ -642,7 +642,7 @@ var useAreaChart = ({
642
642
  ...computedProps
643
643
  } = props;
644
644
  const id = `${uuid}-${dataKey}`;
645
- const color = `var(--ui-area-${index})`;
645
+ const color = (0, import_core6.getVar)(`area-${index}`)(theme);
646
646
  const dimmed = shouldHighlight && highlightedArea !== dataKey;
647
647
  const computedDimArea = { ...dimAreaProps, ...dimArea2 };
648
648
  const resolvedProps = {
@@ -754,10 +754,10 @@ var useAreaChart = ({
754
754
  (props = {}) => ({
755
755
  id: splitId,
756
756
  offset: splitOffset != null ? splitOffset : defaultSplitOffset,
757
- fillOpacity: "var(--ui-fill-opacity)",
757
+ fillOpacity: fillOpacityVar,
758
758
  ...props
759
759
  }),
760
- [defaultSplitOffset, splitId, splitOffset]
760
+ [defaultSplitOffset, splitId, splitOffset, fillOpacityVar]
761
761
  );
762
762
  const getAreaProps = (0, import_react2.useCallback)(
763
763
  ({ index, className: classNameProp, ...props }, ref = null) => {
@@ -804,10 +804,10 @@ var useAreaChart = ({
804
804
  const getAreaGradientProps = (0, import_react2.useCallback)(
805
805
  (props = {}) => ({
806
806
  withGradient,
807
- fillOpacity: "var(--ui-fill-opacity)",
807
+ fillOpacity: fillOpacityVar,
808
808
  ...props
809
809
  }),
810
- [withGradient]
810
+ [withGradient, fillOpacityVar]
811
811
  );
812
812
  return {
813
813
  getAreaChartProps,
@@ -820,7 +820,7 @@ var useAreaChart = ({
820
820
  };
821
821
 
822
822
  // src/use-chart-axis.ts
823
- var import_core6 = require("@yamada-ui/core");
823
+ var import_core7 = require("@yamada-ui/core");
824
824
  var import_utils6 = require("@yamada-ui/utils");
825
825
  var import_react3 = require("react");
826
826
  var useChartAxis = ({
@@ -840,7 +840,7 @@ var useChartAxis = ({
840
840
  ...rest
841
841
  }) => {
842
842
  var _a, _b, _c, _d;
843
- const { theme } = (0, import_core6.useTheme)();
843
+ const { theme } = (0, import_core7.useTheme)();
844
844
  const xAxisKey = (0, import_react3.useMemo)(
845
845
  () => layoutType === "vertical" ? { type: "number" } : { dataKey },
846
846
  [dataKey, layoutType]
@@ -961,7 +961,7 @@ var valueToPercent = (value) => {
961
961
  };
962
962
 
963
963
  // src/use-chart-grid.ts
964
- var import_core7 = require("@yamada-ui/core");
964
+ var import_core8 = require("@yamada-ui/core");
965
965
  var import_utils7 = require("@yamada-ui/utils");
966
966
  var import_react4 = require("react");
967
967
  var useChartGrid = ({
@@ -970,7 +970,7 @@ var useChartGrid = ({
970
970
  strokeDasharray = "5 5",
971
971
  styles
972
972
  }) => {
973
- const { theme } = (0, import_core7.useTheme)();
973
+ const { theme } = (0, import_core8.useTheme)();
974
974
  const [reChartsProps, propClassName] = getComponentProps(
975
975
  [gridProps, gridProperties],
976
976
  styles.grid
@@ -1015,22 +1015,22 @@ var useChartLegend = ({
1015
1015
  };
1016
1016
 
1017
1017
  // src/use-chart-reference-line.ts
1018
- var import_core8 = require("@yamada-ui/core");
1018
+ var import_core9 = require("@yamada-ui/core");
1019
1019
  var import_utils9 = require("@yamada-ui/utils");
1020
1020
  var import_react6 = require("react");
1021
1021
  var useChartReferenceLine = ({
1022
1022
  referenceLineProps = [],
1023
1023
  styles
1024
1024
  }) => {
1025
- const { theme } = (0, import_core8.useTheme)();
1026
- const styleClassName = (0, import_core8.getCSS)(styles.referenceLine)(theme);
1025
+ const { theme } = (0, import_core9.useTheme)();
1026
+ const styleClassName = (0, import_core9.getCSS)(styles.referenceLine)(theme);
1027
1027
  const propList = (0, import_react6.useMemo)(
1028
1028
  () => referenceLineProps.map((props, index) => {
1029
1029
  const [{ label: labelProp, ...rest }, propClassName] = getComponentProps(
1030
1030
  [props, referenceLineProperties],
1031
1031
  styleClassName
1032
1032
  )(theme);
1033
- const color = `var(--ui-reference-line-${index})`;
1033
+ const color = (0, import_core9.getVar)(`reference-line-${index}`)(theme);
1034
1034
  const label = {
1035
1035
  value: labelProp,
1036
1036
  fill: color,
@@ -1059,7 +1059,7 @@ var useChartReferenceLine = ({
1059
1059
  };
1060
1060
 
1061
1061
  // src/use-chart-tooltip.ts
1062
- var import_core9 = require("@yamada-ui/core");
1062
+ var import_core10 = require("@yamada-ui/core");
1063
1063
  var import_utils10 = require("@yamada-ui/utils");
1064
1064
  var import_react7 = require("react");
1065
1065
  var useChartTooltip = ({
@@ -1067,7 +1067,7 @@ var useChartTooltip = ({
1067
1067
  tooltipAnimationDuration = 0,
1068
1068
  styles
1069
1069
  }) => {
1070
- const { theme } = (0, import_core9.useTheme)();
1070
+ const { theme } = (0, import_core10.useTheme)();
1071
1071
  const { cursor, ...rest } = _tooltipProps;
1072
1072
  const cursorClassName = (0, import_react7.useMemo)(
1073
1073
  () => getClassName({ ...styles.cursor, ...cursor })(theme),
@@ -1095,8 +1095,8 @@ var useChartTooltip = ({
1095
1095
 
1096
1096
  // src/area-chart.tsx
1097
1097
  var import_jsx_runtime5 = require("react/jsx-runtime");
1098
- var AreaChart = (0, import_core10.forwardRef)((props, ref) => {
1099
- const [styles, mergedProps] = (0, import_core10.useMultiComponentStyle)("AreaChart", props);
1098
+ var AreaChart = (0, import_core11.forwardRef)((props, ref) => {
1099
+ const [styles, mergedProps] = (0, import_core11.useMultiComponentStyle)("AreaChart", props);
1100
1100
  const {
1101
1101
  className,
1102
1102
  series,
@@ -1141,7 +1141,7 @@ var AreaChart = (0, import_core10.forwardRef)((props, ref) => {
1141
1141
  splitOffset,
1142
1142
  syncId,
1143
1143
  ...rest
1144
- } = (0, import_core10.omitThemeProps)(mergedProps);
1144
+ } = (0, import_core11.omitThemeProps)(mergedProps);
1145
1145
  const {
1146
1146
  getAreaChartProps,
1147
1147
  getAreaSplitProps,
@@ -1241,7 +1241,7 @@ var AreaChart = (0, import_core10.forwardRef)((props, ref) => {
1241
1241
  [getReferenceLineProps, referenceLineProps]
1242
1242
  );
1243
1243
  return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(ChartProvider, { value: { styles }, children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
1244
- import_core10.ui.div,
1244
+ import_core11.ui.div,
1245
1245
  {
1246
1246
  ref,
1247
1247
  className: (0, import_utils11.cx)("ui-area-chart", className),