@yamada-ui/charts 1.1.8-dev-20240619173525 → 2.0.0-next-20240619220221
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/area-chart.js +21 -28
- package/dist/area-chart.js.map +1 -1
- package/dist/area-chart.mjs +2 -2
- package/dist/bar-chart.js +9 -9
- package/dist/bar-chart.js.map +1 -1
- package/dist/bar-chart.mjs +2 -2
- package/dist/{chunk-4WX5YS7M.mjs → chunk-AIM5FCJI.mjs} +3 -3
- package/dist/chunk-AIM5FCJI.mjs.map +1 -0
- package/dist/{chunk-STBYRLC5.mjs → chunk-D3YZFAFO.mjs} +9 -9
- package/dist/chunk-D3YZFAFO.mjs.map +1 -0
- package/dist/{chunk-QZ5OXZ6Z.mjs → chunk-IIBF2GUV.mjs} +21 -26
- package/dist/chunk-IIBF2GUV.mjs.map +1 -0
- package/dist/{chunk-OW7SOTEF.mjs → chunk-JSDS6QWX.mjs} +3 -3
- package/dist/{chunk-OW7SOTEF.mjs.map → chunk-JSDS6QWX.mjs.map} +1 -1
- package/dist/{chunk-THT3VDBO.mjs → chunk-JXZPTLLZ.mjs} +21 -28
- package/dist/chunk-JXZPTLLZ.mjs.map +1 -0
- package/dist/{chunk-BPR7YL3O.mjs → chunk-K6OJ62SA.mjs} +3 -3
- package/dist/chunk-K6OJ62SA.mjs.map +1 -0
- package/dist/{chunk-LUFKURIL.mjs → chunk-LAYNVROX.mjs} +3 -3
- package/dist/{chunk-LUFKURIL.mjs.map → chunk-LAYNVROX.mjs.map} +1 -1
- package/dist/{chunk-LHI57S6P.mjs → chunk-MFYRHF3O.mjs} +5 -5
- package/dist/chunk-MFYRHF3O.mjs.map +1 -0
- package/dist/{chunk-KNAADLWO.mjs → chunk-OS3525CT.mjs} +3 -3
- package/dist/{chunk-KNAADLWO.mjs.map → chunk-OS3525CT.mjs.map} +1 -1
- package/dist/{chunk-E2I2XAZ6.mjs → chunk-SAP2SGIZ.mjs} +3 -3
- package/dist/{chunk-E2I2XAZ6.mjs.map → chunk-SAP2SGIZ.mjs.map} +1 -1
- package/dist/{chunk-KT4YOMM4.mjs → chunk-SEBQBOCB.mjs} +21 -26
- package/dist/chunk-SEBQBOCB.mjs.map +1 -0
- package/dist/donut-chart.js +5 -5
- package/dist/donut-chart.js.map +1 -1
- package/dist/donut-chart.mjs +2 -2
- package/dist/index.js +78 -95
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +11 -11
- package/dist/line-chart.js +21 -26
- package/dist/line-chart.js.map +1 -1
- package/dist/line-chart.mjs +2 -2
- package/dist/pie-chart.js +5 -5
- package/dist/pie-chart.js.map +1 -1
- package/dist/pie-chart.mjs +2 -2
- package/dist/radar-chart.js +21 -26
- package/dist/radar-chart.js.map +1 -1
- package/dist/radar-chart.mjs +2 -2
- package/dist/use-area-chart.js +20 -27
- package/dist/use-area-chart.js.map +1 -1
- package/dist/use-area-chart.mjs +1 -1
- package/dist/use-bar-chart.js +8 -8
- package/dist/use-bar-chart.js.map +1 -1
- package/dist/use-bar-chart.mjs +1 -1
- package/dist/use-line-chart.js +20 -25
- package/dist/use-line-chart.js.map +1 -1
- package/dist/use-line-chart.mjs +1 -1
- package/dist/use-pie-chart.js +4 -4
- package/dist/use-pie-chart.js.map +1 -1
- package/dist/use-pie-chart.mjs +1 -1
- package/dist/use-radar-chart.js +20 -25
- package/dist/use-radar-chart.js.map +1 -1
- package/dist/use-radar-chart.mjs +1 -1
- package/package.json +3 -3
- package/dist/chunk-4WX5YS7M.mjs.map +0 -1
- package/dist/chunk-BPR7YL3O.mjs.map +0 -1
- package/dist/chunk-KT4YOMM4.mjs.map +0 -1
- package/dist/chunk-LHI57S6P.mjs.map +0 -1
- package/dist/chunk-QZ5OXZ6Z.mjs.map +0 -1
- package/dist/chunk-STBYRLC5.mjs.map +0 -1
- package/dist/chunk-THT3VDBO.mjs.map +0 -1
package/dist/index.js
CHANGED
@@ -921,8 +921,8 @@ var useLineChart = ({
|
|
921
921
|
const {
|
922
922
|
dot = {},
|
923
923
|
activeDot = {},
|
924
|
-
dimDot,
|
925
|
-
dimLine,
|
924
|
+
dimDot = {},
|
925
|
+
dimLine = {},
|
926
926
|
...computedLineProps
|
927
927
|
} = (_a = rest.lineProps) != null ? _a : {};
|
928
928
|
const lineColors = (0, import_react7.useMemo)(
|
@@ -972,19 +972,17 @@ var useLineChart = ({
|
|
972
972
|
styles.line
|
973
973
|
)(theme);
|
974
974
|
}, [computedLineProps, styles.line, theme]);
|
975
|
-
const [dimLineProps, dimLineClassName] = (0, import_react7.useMemo)(
|
976
|
-
|
977
|
-
|
978
|
-
|
979
|
-
)
|
980
|
-
|
981
|
-
|
982
|
-
|
983
|
-
|
984
|
-
|
985
|
-
|
986
|
-
)(theme);
|
987
|
-
}, [dot, styles.dot, theme]);
|
975
|
+
const [dimLineProps, dimLineClassName] = (0, import_react7.useMemo)(
|
976
|
+
() => getComponentProps(
|
977
|
+
[dimLine, lineProperties],
|
978
|
+
styles.dimLine
|
979
|
+
)(theme),
|
980
|
+
[dimLine, styles.dimLine, theme]
|
981
|
+
);
|
982
|
+
const [dotProps, dotClassName] = (0, import_react7.useMemo)(
|
983
|
+
() => getComponentProps([dot, dotProperties], styles.dot)(theme),
|
984
|
+
[dot, styles.dot, theme]
|
985
|
+
);
|
988
986
|
const [activeDotProps, activeDotClassName] = (0, import_react7.useMemo)(
|
989
987
|
() => getComponentProps(
|
990
988
|
[activeDot, dotProperties],
|
@@ -992,16 +990,13 @@ var useLineChart = ({
|
|
992
990
|
)(theme),
|
993
991
|
[activeDot, styles.activeDot, theme]
|
994
992
|
);
|
995
|
-
const [dimDotProps, dimDotClassName] = (0, import_react7.useMemo)(
|
996
|
-
|
997
|
-
|
998
|
-
|
999
|
-
|
1000
|
-
|
1001
|
-
|
1002
|
-
theme
|
1003
|
-
);
|
1004
|
-
}, [dimDot, theme]);
|
993
|
+
const [dimDotProps, dimDotClassName] = (0, import_react7.useMemo)(
|
994
|
+
() => getComponentProps(
|
995
|
+
[dimDot, dotProperties],
|
996
|
+
styles.dimDot
|
997
|
+
)(theme),
|
998
|
+
[dimDot, styles.dimDot, theme]
|
999
|
+
);
|
1005
1000
|
const linePropList = (0, import_react7.useMemo)(
|
1006
1001
|
() => series.map((props, index) => {
|
1007
1002
|
const {
|
@@ -1249,7 +1244,7 @@ var LineChart = (0, import_core10.forwardRef)((props, ref) => {
|
|
1249
1244
|
ref,
|
1250
1245
|
className: (0, import_utils11.cx)("ui-line-chart", className),
|
1251
1246
|
var: lineVars,
|
1252
|
-
__css: {
|
1247
|
+
__css: { ...styles.container },
|
1253
1248
|
...rest,
|
1254
1249
|
children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
1255
1250
|
import_recharts.ResponsiveContainer,
|
@@ -1341,7 +1336,7 @@ var useBarChart = ({
|
|
1341
1336
|
const {
|
1342
1337
|
activeBar = {},
|
1343
1338
|
background = {},
|
1344
|
-
dimBar,
|
1339
|
+
dimBar = {},
|
1345
1340
|
...computedBarProps
|
1346
1341
|
} = (_a = rest.barProps) != null ? _a : {};
|
1347
1342
|
const barColors = (0, import_react9.useMemo)(
|
@@ -1379,7 +1374,6 @@ var useBarChart = ({
|
|
1379
1374
|
const [barProps, barClassName] = (0, import_react9.useMemo)(() => {
|
1380
1375
|
const resolvedBarProps = {
|
1381
1376
|
fillOpacity: "var(--ui-fill-opacity)",
|
1382
|
-
strokeOpacity: 1,
|
1383
1377
|
...computedBarProps
|
1384
1378
|
};
|
1385
1379
|
return getComponentProps(
|
@@ -1387,12 +1381,13 @@ var useBarChart = ({
|
|
1387
1381
|
styles.bar
|
1388
1382
|
)(theme);
|
1389
1383
|
}, [computedBarProps, styles.bar, theme]);
|
1390
|
-
const [dimBarProps, dimBarClassName] = (0, import_react9.useMemo)(
|
1391
|
-
|
1392
|
-
|
1393
|
-
|
1394
|
-
)
|
1395
|
-
|
1384
|
+
const [dimBarProps, dimBarClassName] = (0, import_react9.useMemo)(
|
1385
|
+
() => getComponentProps(
|
1386
|
+
[dimBar, barProperties],
|
1387
|
+
styles.dimBar
|
1388
|
+
)(theme),
|
1389
|
+
[dimBar, styles.dimBar, theme]
|
1390
|
+
);
|
1396
1391
|
const [activeBarProps, activeBarClassName] = (0, import_react9.useMemo)(
|
1397
1392
|
() => getComponentProps(
|
1398
1393
|
[activeBar, barProperties],
|
@@ -1617,7 +1612,7 @@ var BarChart = (0, import_core12.forwardRef)((props, ref) => {
|
|
1617
1612
|
ref,
|
1618
1613
|
className: (0, import_utils13.cx)("ui-bar-chart", className),
|
1619
1614
|
var: barVars,
|
1620
|
-
__css: {
|
1615
|
+
__css: { ...styles.container },
|
1621
1616
|
...rest,
|
1622
1617
|
children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
1623
1618
|
import_recharts2.ResponsiveContainer,
|
@@ -1760,8 +1755,8 @@ var useAreaChart = ({
|
|
1760
1755
|
const {
|
1761
1756
|
dot = {},
|
1762
1757
|
activeDot = {},
|
1763
|
-
dimDot,
|
1764
|
-
dimArea,
|
1758
|
+
dimDot = {},
|
1759
|
+
dimArea = {},
|
1765
1760
|
...computedAreaProps
|
1766
1761
|
} = (_a = rest.areaProps) != null ? _a : {};
|
1767
1762
|
const areaColors = (0, import_react11.useMemo)(
|
@@ -1811,8 +1806,6 @@ var useAreaChart = ({
|
|
1811
1806
|
);
|
1812
1807
|
const [areaProps, areaClassName] = (0, import_react11.useMemo)(() => {
|
1813
1808
|
const resolvedAreaProps = {
|
1814
|
-
fillOpacity: 1,
|
1815
|
-
strokeOpacity: 1,
|
1816
1809
|
...computedAreaProps
|
1817
1810
|
};
|
1818
1811
|
return getComponentProps(
|
@@ -1820,23 +1813,17 @@ var useAreaChart = ({
|
|
1820
1813
|
styles.area
|
1821
1814
|
)(theme);
|
1822
1815
|
}, [computedAreaProps, styles.area, theme]);
|
1823
|
-
const [dimAreaProps, dimAreaClassName] = (0, import_react11.useMemo)(
|
1824
|
-
|
1825
|
-
|
1826
|
-
|
1827
|
-
|
1828
|
-
|
1829
|
-
|
1830
|
-
|
1831
|
-
)
|
1832
|
-
|
1833
|
-
|
1834
|
-
const resolvedDot = { fillOpacity: 1, strokeWidth: 2, ...dot };
|
1835
|
-
return getComponentProps(
|
1836
|
-
[resolvedDot, dotProperties],
|
1837
|
-
styles.dot
|
1838
|
-
)(theme);
|
1839
|
-
}, [dot, styles.dot, theme]);
|
1816
|
+
const [dimAreaProps, dimAreaClassName] = (0, import_react11.useMemo)(
|
1817
|
+
() => getComponentProps(
|
1818
|
+
[dimArea, areaProperties],
|
1819
|
+
styles.dimArea
|
1820
|
+
)(theme),
|
1821
|
+
[dimArea, styles.dimArea, theme]
|
1822
|
+
);
|
1823
|
+
const [dotProps, dotClassName] = (0, import_react11.useMemo)(
|
1824
|
+
() => getComponentProps([dot, dotProperties], styles.dot)(theme),
|
1825
|
+
[dot, styles.dot, theme]
|
1826
|
+
);
|
1840
1827
|
const [activeDotProps, activeDotClassName] = (0, import_react11.useMemo)(
|
1841
1828
|
() => getComponentProps(
|
1842
1829
|
[activeDot, dotProperties],
|
@@ -1844,12 +1831,13 @@ var useAreaChart = ({
|
|
1844
1831
|
)(theme),
|
1845
1832
|
[activeDot, styles.activeDot, theme]
|
1846
1833
|
);
|
1847
|
-
const [dimDotProps, dimDotClassName] = (0, import_react11.useMemo)(
|
1848
|
-
|
1849
|
-
|
1850
|
-
|
1851
|
-
)
|
1852
|
-
|
1834
|
+
const [dimDotProps, dimDotClassName] = (0, import_react11.useMemo)(
|
1835
|
+
() => getComponentProps(
|
1836
|
+
[dimDot, dotProperties],
|
1837
|
+
styles.dimDot
|
1838
|
+
)(theme),
|
1839
|
+
[dimDot, styles.dimDot, theme]
|
1840
|
+
);
|
1853
1841
|
const defaultSplitOffset = (0, import_react11.useMemo)(() => {
|
1854
1842
|
if (series.length === 1) {
|
1855
1843
|
const dataKey = series[0].dataKey;
|
@@ -2170,7 +2158,7 @@ var AreaChart = (0, import_core14.forwardRef)((props, ref) => {
|
|
2170
2158
|
ref,
|
2171
2159
|
className: (0, import_utils15.cx)("ui-area-chart", className),
|
2172
2160
|
var: areaVars,
|
2173
|
-
__css: {
|
2161
|
+
__css: { ...styles.container },
|
2174
2162
|
...rest,
|
2175
2163
|
children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
2176
2164
|
import_recharts3.ResponsiveContainer,
|
@@ -2263,8 +2251,8 @@ var useRadarChart = ({
|
|
2263
2251
|
const {
|
2264
2252
|
dot = {},
|
2265
2253
|
activeDot = {},
|
2266
|
-
dimDot,
|
2267
|
-
dimRadar,
|
2254
|
+
dimDot = {},
|
2255
|
+
dimRadar = {},
|
2268
2256
|
...computedRadarProps
|
2269
2257
|
} = (_a = rest.radarProps) != null ? _a : {};
|
2270
2258
|
const radarColors = (0, import_react13.useMemo)(
|
@@ -2347,23 +2335,17 @@ var useRadarChart = ({
|
|
2347
2335
|
styles.radar
|
2348
2336
|
)(theme);
|
2349
2337
|
}, [computedRadarProps, styles.radar, theme]);
|
2350
|
-
const [dimRadarProps, dimRadarClassName] = (0, import_react13.useMemo)(
|
2351
|
-
|
2352
|
-
|
2353
|
-
|
2354
|
-
|
2355
|
-
|
2356
|
-
|
2357
|
-
|
2358
|
-
)
|
2359
|
-
|
2360
|
-
|
2361
|
-
const resolvedDot = { fillOpacity: 1, strokeWidth: 2, ...dot };
|
2362
|
-
return getComponentProps(
|
2363
|
-
[resolvedDot, dotProperties],
|
2364
|
-
styles.dot
|
2365
|
-
)(theme);
|
2366
|
-
}, [dot, styles.dot, theme]);
|
2338
|
+
const [dimRadarProps, dimRadarClassName] = (0, import_react13.useMemo)(
|
2339
|
+
() => getComponentProps(
|
2340
|
+
[dimRadar, radarProperties],
|
2341
|
+
styles.dimRadar
|
2342
|
+
)(theme),
|
2343
|
+
[dimRadar, styles.dimRadar, theme]
|
2344
|
+
);
|
2345
|
+
const [dotProps, dotClassName] = (0, import_react13.useMemo)(
|
2346
|
+
() => getComponentProps([dot, dotProperties], styles.dot)(theme),
|
2347
|
+
[dot, styles.dot, theme]
|
2348
|
+
);
|
2367
2349
|
const [activeDotProps, activeDotClassName] = (0, import_react13.useMemo)(
|
2368
2350
|
() => getComponentProps(
|
2369
2351
|
[activeDot, dotProperties],
|
@@ -2371,12 +2353,13 @@ var useRadarChart = ({
|
|
2371
2353
|
)(theme),
|
2372
2354
|
[activeDot, styles.activeDot, theme]
|
2373
2355
|
);
|
2374
|
-
const [dimDotProps, dimDotClassName] = (0, import_react13.useMemo)(
|
2375
|
-
|
2376
|
-
|
2377
|
-
|
2378
|
-
)
|
2379
|
-
|
2356
|
+
const [dimDotProps, dimDotClassName] = (0, import_react13.useMemo)(
|
2357
|
+
() => getComponentProps(
|
2358
|
+
[dimDot, dotProperties],
|
2359
|
+
styles.dimDot
|
2360
|
+
)(theme),
|
2361
|
+
[dimDot, styles.dimDot, theme]
|
2362
|
+
);
|
2380
2363
|
const radarPropList = (0, import_react13.useMemo)(
|
2381
2364
|
() => series.map((props, index) => {
|
2382
2365
|
const {
|
@@ -2651,7 +2634,7 @@ var RadarChart = (0, import_core16.forwardRef)((props, ref) => {
|
|
2651
2634
|
ref,
|
2652
2635
|
className: (0, import_utils17.cx)("ui-radar-chart", className),
|
2653
2636
|
var: radarVars,
|
2654
|
-
__css: {
|
2637
|
+
__css: { ...styles.container },
|
2655
2638
|
...rest,
|
2656
2639
|
children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
2657
2640
|
import_recharts4.ResponsiveContainer,
|
@@ -2806,12 +2789,12 @@ var usePieChart = ({
|
|
2806
2789
|
return getClassName(resolvedCellProps)(theme);
|
2807
2790
|
}, [computedCellProps, styles.cell, theme]);
|
2808
2791
|
const dimCellClassName = (0, import_react15.useMemo)(() => {
|
2809
|
-
const resolvedDimCell = {
|
2792
|
+
const resolvedDimCell = { ...styles.dimCell, ...dimCell };
|
2810
2793
|
return getClassName(resolvedDimCell)(theme);
|
2811
|
-
}, [dimCell, theme]);
|
2794
|
+
}, [dimCell, styles.dimCell, theme]);
|
2812
2795
|
const activeShapeProps = (0, import_react15.useMemo)(
|
2813
2796
|
() => getComponentProps(
|
2814
|
-
[
|
2797
|
+
[activeShape, pieProperties],
|
2815
2798
|
styles.activeShape
|
2816
2799
|
)(theme, true),
|
2817
2800
|
[activeShape, styles.activeShape, theme]
|
@@ -2824,7 +2807,7 @@ var usePieChart = ({
|
|
2824
2807
|
[inactiveShape, styles.inactiveShape, theme]
|
2825
2808
|
);
|
2826
2809
|
const labelClassName = (0, import_react15.useMemo)(
|
2827
|
-
() => getClassName({
|
2810
|
+
() => getClassName({ ...styles.label, ...label })(theme),
|
2828
2811
|
[label, styles.label, theme]
|
2829
2812
|
);
|
2830
2813
|
const labelLineClassName = (0, import_react15.useMemo)(
|
@@ -3010,7 +2993,7 @@ var DonutChart = (0, import_core18.forwardRef)((props, ref) => {
|
|
3010
2993
|
ref,
|
3011
2994
|
className: (0, import_utils19.cx)("ui-donut-chart", className),
|
3012
2995
|
var: pieVars,
|
3013
|
-
__css: {
|
2996
|
+
__css: { ...styles.container },
|
3014
2997
|
...rest,
|
3015
2998
|
children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
3016
2999
|
import_recharts5.ResponsiveContainer,
|
@@ -3152,7 +3135,7 @@ var PieChart = (0, import_core19.forwardRef)((props, ref) => {
|
|
3152
3135
|
ref,
|
3153
3136
|
className: (0, import_utils20.cx)("ui-pie-chart", className),
|
3154
3137
|
var: pieVars,
|
3155
|
-
__css: {
|
3138
|
+
__css: { ...styles.container },
|
3156
3139
|
...rest,
|
3157
3140
|
children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
3158
3141
|
import_recharts6.ResponsiveContainer,
|