@deepnoid/ui 0.1.180 → 0.1.182

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 (85) hide show
  1. package/.turbo/turbo-build.log +161 -161
  2. package/dist/{chunk-ROXKJQSJ.mjs → chunk-6NO7GQHG.mjs} +3 -3
  3. package/dist/{chunk-GWHUQUKA.mjs → chunk-6WD32ERF.mjs} +93 -79
  4. package/dist/{chunk-ADU7DFVK.mjs → chunk-GPJVGQ5W.mjs} +8 -2
  5. package/dist/{chunk-RMZ3ZIP7.mjs → chunk-KDBM7UVG.mjs} +3 -3
  6. package/dist/{chunk-SAWYH3JL.mjs → chunk-M5ZLURXE.mjs} +4 -4
  7. package/dist/{chunk-2H5EBNCD.mjs → chunk-SX2FQY4L.mjs} +4 -4
  8. package/dist/{chunk-MU6QDNYC.mjs → chunk-W67QZ4OB.mjs} +1 -1
  9. package/dist/chunk-WKTRWHDA.mjs +264 -0
  10. package/dist/{chunk-7C7RHDHV.mjs → chunk-XZTVXEOD.mjs} +4 -4
  11. package/dist/{chunk-5S4NCYZF.mjs → chunk-YTW5HJJH.mjs} +6 -6
  12. package/dist/components/backdrop/backdrop.mjs +2 -2
  13. package/dist/components/backdrop/index.mjs +2 -2
  14. package/dist/components/breadcrumb/breadcrumb.mjs +4 -4
  15. package/dist/components/breadcrumb/index.mjs +4 -4
  16. package/dist/components/button/button.mjs +1 -1
  17. package/dist/components/button/icon-button.mjs +1 -1
  18. package/dist/components/button/index.mjs +5 -5
  19. package/dist/components/button/text-button.mjs +2 -2
  20. package/dist/components/charts/areaChart.mjs +1 -1
  21. package/dist/components/charts/barChart.js +125 -111
  22. package/dist/components/charts/barChart.mjs +1 -1
  23. package/dist/components/charts/index.js +218 -190
  24. package/dist/components/charts/index.mjs +3 -3
  25. package/dist/components/charts/simpleBarChart.js +93 -79
  26. package/dist/components/charts/simpleBarChart.mjs +1 -1
  27. package/dist/components/checkbox/checkbox.mjs +2 -2
  28. package/dist/components/checkbox/index.mjs +2 -2
  29. package/dist/components/chip/chip.mjs +1 -1
  30. package/dist/components/chip/index.mjs +1 -1
  31. package/dist/components/drawer/drawer.mjs +2 -2
  32. package/dist/components/drawer/index.mjs +2 -2
  33. package/dist/components/fileUpload/fileUpload.js +6 -0
  34. package/dist/components/fileUpload/fileUpload.mjs +6 -6
  35. package/dist/components/fileUpload/index.js +6 -0
  36. package/dist/components/fileUpload/index.mjs +6 -6
  37. package/dist/components/input/index.mjs +3 -3
  38. package/dist/components/input/input.mjs +3 -3
  39. package/dist/components/list/index.mjs +2 -2
  40. package/dist/components/list/listItem.mjs +2 -2
  41. package/dist/components/modal/index.mjs +5 -5
  42. package/dist/components/modal/modal.mjs +5 -5
  43. package/dist/components/pagination/index.mjs +4 -4
  44. package/dist/components/pagination/pagination.mjs +4 -4
  45. package/dist/components/picker/datePicker.mjs +5 -5
  46. package/dist/components/picker/index.mjs +7 -7
  47. package/dist/components/picker/timePicker.mjs +4 -4
  48. package/dist/components/progress/index.mjs +2 -2
  49. package/dist/components/progress/progress.mjs +2 -2
  50. package/dist/components/radio/index.mjs +2 -2
  51. package/dist/components/radio/radio.mjs +2 -2
  52. package/dist/components/select/index.mjs +3 -3
  53. package/dist/components/select/select.mjs +3 -3
  54. package/dist/components/starRating/index.mjs +1 -1
  55. package/dist/components/starRating/starRating.mjs +1 -1
  56. package/dist/components/table/definition-table.mjs +2 -2
  57. package/dist/components/table/index.mjs +7 -7
  58. package/dist/components/table/table-body.mjs +6 -6
  59. package/dist/components/table/table-head.mjs +6 -6
  60. package/dist/components/table/table.mjs +6 -6
  61. package/dist/components/textarea/index.mjs +2 -2
  62. package/dist/components/textarea/textarea.mjs +2 -2
  63. package/dist/components/timePicker/calendar.mjs +1 -1
  64. package/dist/components/toast/index.mjs +5 -5
  65. package/dist/components/toast/toast.mjs +3 -3
  66. package/dist/components/toast/use-toast.mjs +4 -4
  67. package/dist/components/tree/index.mjs +2 -2
  68. package/dist/components/tree/tree.mjs +2 -2
  69. package/dist/index.js +224 -190
  70. package/dist/index.mjs +44 -44
  71. package/package.json +1 -1
  72. package/dist/chunk-JOK735WN.mjs +0 -250
  73. package/dist/{chunk-OEIEALIP.mjs → chunk-3DCUMRYP.mjs} +3 -3
  74. package/dist/{chunk-3CRSSRCH.mjs → chunk-3HXNAVAN.mjs} +3 -3
  75. package/dist/{chunk-IH3BJRTV.mjs → chunk-4X35QQTI.mjs} +3 -3
  76. package/dist/{chunk-RXDRG6MC.mjs → chunk-7H6U5XJA.mjs} +3 -3
  77. package/dist/{chunk-KH63CD55.mjs → chunk-ACZ3DQVT.mjs} +3 -3
  78. package/dist/{chunk-DS5CGU2X.mjs → chunk-BH3I4LIZ.mjs} +3 -3
  79. package/dist/{chunk-GS5X67UB.mjs → chunk-GVTYOGSV.mjs} +3 -3
  80. package/dist/{chunk-4EELFA6L.mjs → chunk-LE7PGMCV.mjs} +3 -3
  81. package/dist/{chunk-4LUASWAN.mjs → chunk-NDNIAALB.mjs} +3 -3
  82. package/dist/{chunk-MWUA62VL.mjs → chunk-NKF2TQMA.mjs} +3 -3
  83. package/dist/{chunk-A3WPBLOW.mjs → chunk-UINFH5AT.mjs} +3 -3
  84. package/dist/{chunk-PRNE3U26.mjs → chunk-XL6LZDT4.mjs} +3 -3
  85. package/dist/{chunk-45Y7ANPK.mjs → chunk-ZFC5O2V3.mjs} +3 -3
@@ -822,8 +822,8 @@ var BarChartComponent = (0, import_react3.forwardRef)((originalProps, ref) => {
822
822
  const { payload, x, y } = e;
823
823
  if (!payload || !payload[dataKey]) return;
824
824
  setTooltipState({
825
- x,
826
- y,
825
+ barX: x,
826
+ barY: y - 10,
827
827
  value: payload[dataKey],
828
828
  dataKey,
829
829
  label: payload.title
@@ -894,7 +894,7 @@ var BarChartComponent = (0, import_react3.forwardRef)((originalProps, ref) => {
894
894
  const tooltipRect = tooltipRef.current.getBoundingClientRect();
895
895
  const chartWidth = chartRect.width;
896
896
  const tooltipWidth = tooltipRect.width;
897
- let left = tooltipState.x - tooltipWidth / 2;
897
+ let left = tooltipState.barX - tooltipWidth / 2;
898
898
  const padding2 = 8;
899
899
  if (left < padding2) {
900
900
  left = padding2;
@@ -903,114 +903,128 @@ var BarChartComponent = (0, import_react3.forwardRef)((originalProps, ref) => {
903
903
  }
904
904
  setTooltipLeft(left);
905
905
  }, [tooltipState]);
906
- return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { ref: chartRef, className: slots.base({ class: classNames == null ? void 0 : classNames.base }), onMouseLeave: handleMouseLeave, children: [
907
- label && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("p", { className: slots.label({ class: classNames == null ? void 0 : classNames.label }), children: label }),
908
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_recharts3.ResponsiveContainer, { width: "100%", height: "100%", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
909
- import_recharts3.BarChart,
910
- {
911
- data,
912
- margin: { left: -20 },
913
- barSize: 20,
914
- barGap,
915
- className: "[&_.recharts-surface]:outline-none [&_.recharts-surface]:focus:outline-none",
916
- children: [
917
- /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("defs", { children: [
918
- /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("linearGradient", { id: "blueGradient", x1: "0", y1: "0", x2: "0", y2: "1", children: [
919
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("stop", { offset: "0%", stopColor: "#DEC1FA" }),
920
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("stop", { offset: "100%", stopColor: "#3F9CF2" })
921
- ] }),
922
- /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("linearGradient", { id: "greenGradient", x1: "0", y1: "0", x2: "0", y2: "1", children: [
923
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("stop", { offset: "0%", stopColor: "#C2E59C" }),
924
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("stop", { offset: "100%", stopColor: "#64B3F4" })
925
- ] }),
926
- /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("linearGradient", { id: "pinkGradient", x1: "0", y1: "0", x2: "0", y2: "1", children: [
927
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("stop", { offset: "0%", stopColor: "#DDD6F3" }),
928
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("stop", { offset: "100%", stopColor: "#FAACA8" })
929
- ] })
930
- ] }),
931
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
932
- import_recharts3.CartesianGrid,
933
- {
934
- vertical: true,
935
- horizontal: false,
936
- strokeDasharray: "4 4",
937
- className: "stroke-neutral-light",
938
- verticalPoints: tickPositions
939
- }
940
- ),
941
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
942
- import_recharts3.XAxis,
943
- {
944
- dataKey: "title",
945
- axisLine: { stroke: "#DFE2E7", strokeWidth: 1 },
946
- tickLine: false,
947
- tick: CustomTick,
948
- padding: { left: 0, right: 0 }
949
- }
950
- ),
951
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
952
- import_recharts3.YAxis,
953
- {
954
- axisLine: { stroke: "#DFE2E7", strokeWidth: 1 },
955
- tickLine: false,
956
- tick: CustomYAxisTick,
957
- ticks: yAxisTicks,
958
- domain: yAxisDomain
959
- }
960
- ),
961
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
962
- import_recharts3.Bar,
963
- {
964
- dataKey: "blue",
965
- fill: "url(#blueGradient)",
966
- shape: CustomBarShape,
967
- onMouseEnter: (e) => handleMouseEnter(e, "blue"),
968
- onMouseLeave: handleMouseLeave
969
- }
970
- ),
971
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
972
- import_recharts3.Bar,
973
- {
974
- dataKey: "green",
975
- fill: "url(#greenGradient)",
976
- shape: CustomBarShape,
977
- onMouseEnter: (e) => handleMouseEnter(e, "green"),
978
- onMouseLeave: handleMouseLeave
979
- }
980
- ),
981
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
982
- import_recharts3.Bar,
983
- {
984
- dataKey: "pink",
985
- fill: "url(#pinkGradient)",
986
- shape: CustomBarShape,
987
- onMouseEnter: (e) => handleMouseEnter(e, "pink"),
988
- onMouseLeave: handleMouseLeave
989
- }
990
- )
991
- ]
992
- }
993
- ) }),
994
- tooltipFormatter && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
995
- "div",
996
- {
997
- ref: tooltipRef,
998
- style: {
999
- position: "absolute",
1000
- left: tooltipLeft + 10,
1001
- top: (tooltipState == null ? void 0 : tooltipState.y) ? tooltipState.y - 40 : 0,
1002
- pointerEvents: "none",
1003
- zIndex: 10,
1004
- opacity: tooltipState ? 1 : 0,
1005
- transition: "opacity 0.1s ease-out",
1006
- visibility: tooltipState ? "visible" : "hidden",
1007
- width: "fit-content",
1008
- whiteSpace: "nowrap"
1009
- },
1010
- children: tooltipState && tooltipFormatter(tooltipState)
1011
- }
1012
- )
1013
- ] });
906
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
907
+ "div",
908
+ {
909
+ ref: chartRef,
910
+ className: slots.base({ class: classNames == null ? void 0 : classNames.base }),
911
+ onMouseLeave: handleMouseLeave,
912
+ onMouseMove: (e) => {
913
+ const target = e.target;
914
+ if (!target.closest('[data-testid="recharts-bar-rectangle"]') && !target.closest(".recharts-bar-rectangle") && target.tagName !== "path") {
915
+ setTooltipState(null);
916
+ }
917
+ },
918
+ children: [
919
+ label && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("p", { className: slots.label({ class: classNames == null ? void 0 : classNames.label }), children: label }),
920
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_recharts3.ResponsiveContainer, { width: "100%", height: "100%", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
921
+ import_recharts3.BarChart,
922
+ {
923
+ data,
924
+ margin: { left: -20 },
925
+ barSize: 20,
926
+ barGap,
927
+ className: "[&_.recharts-surface]:outline-none [&_.recharts-surface]:focus:outline-none",
928
+ children: [
929
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("defs", { children: [
930
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("linearGradient", { id: "blueGradient", x1: "0", y1: "0", x2: "0", y2: "1", children: [
931
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("stop", { offset: "0%", stopColor: "#DEC1FA" }),
932
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("stop", { offset: "100%", stopColor: "#3F9CF2" })
933
+ ] }),
934
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("linearGradient", { id: "greenGradient", x1: "0", y1: "0", x2: "0", y2: "1", children: [
935
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("stop", { offset: "0%", stopColor: "#C2E59C" }),
936
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("stop", { offset: "100%", stopColor: "#64B3F4" })
937
+ ] }),
938
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("linearGradient", { id: "pinkGradient", x1: "0", y1: "0", x2: "0", y2: "1", children: [
939
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("stop", { offset: "0%", stopColor: "#DDD6F3" }),
940
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("stop", { offset: "100%", stopColor: "#FAACA8" })
941
+ ] })
942
+ ] }),
943
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
944
+ import_recharts3.CartesianGrid,
945
+ {
946
+ vertical: true,
947
+ horizontal: false,
948
+ strokeDasharray: "4 4",
949
+ className: "stroke-neutral-light",
950
+ verticalPoints: tickPositions
951
+ }
952
+ ),
953
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
954
+ import_recharts3.XAxis,
955
+ {
956
+ dataKey: "title",
957
+ axisLine: { stroke: "#DFE2E7", strokeWidth: 1 },
958
+ tickLine: false,
959
+ tick: CustomTick,
960
+ padding: { left: 0, right: 0 }
961
+ }
962
+ ),
963
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
964
+ import_recharts3.YAxis,
965
+ {
966
+ axisLine: { stroke: "#DFE2E7", strokeWidth: 1 },
967
+ tickLine: false,
968
+ tick: CustomYAxisTick,
969
+ ticks: yAxisTicks,
970
+ domain: yAxisDomain
971
+ }
972
+ ),
973
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
974
+ import_recharts3.Bar,
975
+ {
976
+ dataKey: "blue",
977
+ fill: "url(#blueGradient)",
978
+ shape: CustomBarShape,
979
+ onMouseEnter: (e) => handleMouseEnter(e, "blue"),
980
+ onMouseLeave: handleMouseLeave
981
+ }
982
+ ),
983
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
984
+ import_recharts3.Bar,
985
+ {
986
+ dataKey: "green",
987
+ fill: "url(#greenGradient)",
988
+ shape: CustomBarShape,
989
+ onMouseEnter: (e) => handleMouseEnter(e, "green"),
990
+ onMouseLeave: handleMouseLeave
991
+ }
992
+ ),
993
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
994
+ import_recharts3.Bar,
995
+ {
996
+ dataKey: "pink",
997
+ fill: "url(#pinkGradient)",
998
+ shape: CustomBarShape,
999
+ onMouseEnter: (e) => handleMouseEnter(e, "pink"),
1000
+ onMouseLeave: handleMouseLeave
1001
+ }
1002
+ )
1003
+ ]
1004
+ }
1005
+ ) }),
1006
+ tooltipFormatter && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
1007
+ "div",
1008
+ {
1009
+ ref: tooltipRef,
1010
+ style: {
1011
+ position: "absolute",
1012
+ left: tooltipLeft + 10,
1013
+ top: (tooltipState == null ? void 0 : tooltipState.barY) || 0,
1014
+ pointerEvents: "none",
1015
+ zIndex: 10,
1016
+ opacity: tooltipState ? 1 : 0,
1017
+ transition: "opacity 0.1s ease-out",
1018
+ visibility: tooltipState ? "visible" : "hidden",
1019
+ width: "fit-content",
1020
+ whiteSpace: "nowrap"
1021
+ },
1022
+ children: tooltipState && tooltipFormatter(tooltipState)
1023
+ }
1024
+ )
1025
+ ]
1026
+ }
1027
+ );
1014
1028
  });
1015
1029
  BarChartComponent.displayName = "barChart";
1016
1030
  var barChart_default = BarChartComponent;
@@ -1193,8 +1207,8 @@ var SimpleBarChartComponent = (0, import_react5.forwardRef)((originalProps, ref)
1193
1207
  const { payload, x, y } = e;
1194
1208
  if (!payload) return;
1195
1209
  setTooltipState({
1196
- x,
1197
- y,
1210
+ barX: x,
1211
+ barY: y - 20,
1198
1212
  value: payload.value,
1199
1213
  label: payload.title
1200
1214
  });
@@ -1237,7 +1251,7 @@ var SimpleBarChartComponent = (0, import_react5.forwardRef)((originalProps, ref)
1237
1251
  const tooltipRect = tooltipRef.current.getBoundingClientRect();
1238
1252
  const chartWidth = chartRect.width;
1239
1253
  const tooltipWidth = tooltipRect.width;
1240
- let left = tooltipState.x - tooltipWidth / 2;
1254
+ let left = tooltipState.barX - tooltipWidth / 2;
1241
1255
  const padding2 = 8;
1242
1256
  if (left < padding2) {
1243
1257
  left = padding2;
@@ -1246,82 +1260,96 @@ var SimpleBarChartComponent = (0, import_react5.forwardRef)((originalProps, ref)
1246
1260
  }
1247
1261
  setTooltipLeft(left);
1248
1262
  }, [tooltipState]);
1249
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { ref: chartRef, className: slots.base({ class: classNames == null ? void 0 : classNames.base }), onMouseLeave: handleMouseLeave, children: [
1250
- label && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("p", { className: slots.label({ class: classNames == null ? void 0 : classNames.label }), children: label }),
1251
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_recharts5.ResponsiveContainer, { width: "100%", height: 140, children: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
1252
- import_recharts5.BarChart,
1253
- {
1254
- data,
1255
- margin: { left: 0, right: 0, top: 0, bottom: 0 },
1256
- barSize: 10,
1257
- barGap,
1258
- className: "[&_.recharts-surface]:outline-none [&_.recharts-surface]:focus:outline-none",
1259
- children: [
1260
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
1261
- import_recharts5.CartesianGrid,
1262
- {
1263
- vertical: true,
1264
- horizontal: false,
1265
- strokeDasharray: "4 4",
1266
- className: "stroke-neutral-light",
1267
- verticalPoints: tickPositions
1268
- }
1269
- ),
1270
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
1271
- import_recharts5.CartesianGrid,
1272
- {
1273
- vertical: true,
1274
- horizontal: false,
1275
- strokeDasharray: "0",
1276
- strokeWidth: 2,
1277
- className: "stroke-neutral-light",
1278
- verticalPoints: [0]
1279
- }
1280
- ),
1281
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
1282
- import_recharts5.XAxis,
1283
- {
1284
- dataKey: "title",
1285
- axisLine: { stroke: "#DFE2E7", strokeWidth: 1 },
1286
- tickLine: false,
1287
- tick: CustomTick,
1288
- padding: { left: 0, right: 0 }
1289
- }
1290
- ),
1291
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_recharts5.YAxis, { hide: true, ticks: yAxisTicks, domain: yAxisDomain }),
1292
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
1293
- import_recharts5.Bar,
1294
- {
1295
- dataKey: "value",
1296
- fill: "#C7E5FA",
1297
- shape: CustomBarShape,
1298
- onMouseEnter: handleMouseEnter,
1299
- onMouseLeave: handleMouseLeave
1300
- }
1301
- )
1302
- ]
1303
- }
1304
- ) }),
1305
- tooltipFormatter && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
1306
- "div",
1307
- {
1308
- ref: tooltipRef,
1309
- style: {
1310
- position: "absolute",
1311
- left: tooltipLeft + 5,
1312
- top: (tooltipState == null ? void 0 : tooltipState.y) ? tooltipState.y - 20 : 0,
1313
- pointerEvents: "none",
1314
- zIndex: 10,
1315
- opacity: tooltipState ? 1 : 0,
1316
- transition: "opacity 0.1s ease-out",
1317
- visibility: tooltipState ? "visible" : "hidden",
1318
- width: "fit-content",
1319
- whiteSpace: "nowrap"
1320
- },
1321
- children: tooltipState && tooltipFormatter(tooltipState)
1322
- }
1323
- )
1324
- ] });
1263
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
1264
+ "div",
1265
+ {
1266
+ ref: chartRef,
1267
+ className: slots.base({ class: classNames == null ? void 0 : classNames.base }),
1268
+ onMouseLeave: handleMouseLeave,
1269
+ onMouseMove: (e) => {
1270
+ const target = e.target;
1271
+ if (!target.closest('[data-testid="recharts-bar-rectangle"]') && !target.closest(".recharts-bar-rectangle") && target.tagName !== "path") {
1272
+ setTooltipState(null);
1273
+ }
1274
+ },
1275
+ children: [
1276
+ label && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("p", { className: slots.label({ class: classNames == null ? void 0 : classNames.label }), children: label }),
1277
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_recharts5.ResponsiveContainer, { width: "100%", height: 140, children: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
1278
+ import_recharts5.BarChart,
1279
+ {
1280
+ data,
1281
+ margin: { left: 0, right: 0, top: 0, bottom: 0 },
1282
+ barSize: 10,
1283
+ barGap,
1284
+ className: "[&_.recharts-surface]:outline-none [&_.recharts-surface]:focus:outline-none",
1285
+ children: [
1286
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
1287
+ import_recharts5.CartesianGrid,
1288
+ {
1289
+ vertical: true,
1290
+ horizontal: false,
1291
+ strokeDasharray: "4 4",
1292
+ className: "stroke-neutral-light",
1293
+ verticalPoints: tickPositions
1294
+ }
1295
+ ),
1296
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
1297
+ import_recharts5.CartesianGrid,
1298
+ {
1299
+ vertical: true,
1300
+ horizontal: false,
1301
+ strokeDasharray: "0",
1302
+ strokeWidth: 2,
1303
+ className: "stroke-neutral-light",
1304
+ verticalPoints: [0]
1305
+ }
1306
+ ),
1307
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
1308
+ import_recharts5.XAxis,
1309
+ {
1310
+ dataKey: "title",
1311
+ axisLine: { stroke: "#DFE2E7", strokeWidth: 1 },
1312
+ tickLine: false,
1313
+ tick: CustomTick,
1314
+ padding: { left: 0, right: 0 }
1315
+ }
1316
+ ),
1317
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_recharts5.YAxis, { hide: true, ticks: yAxisTicks, domain: yAxisDomain }),
1318
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
1319
+ import_recharts5.Bar,
1320
+ {
1321
+ dataKey: "value",
1322
+ fill: "#C7E5FA",
1323
+ shape: CustomBarShape,
1324
+ onMouseEnter: handleMouseEnter,
1325
+ onMouseLeave: handleMouseLeave
1326
+ }
1327
+ )
1328
+ ]
1329
+ }
1330
+ ) }),
1331
+ tooltipFormatter && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
1332
+ "div",
1333
+ {
1334
+ ref: tooltipRef,
1335
+ style: {
1336
+ position: "absolute",
1337
+ left: tooltipLeft + 5,
1338
+ top: (tooltipState == null ? void 0 : tooltipState.barY) || 0,
1339
+ pointerEvents: "none",
1340
+ zIndex: 10,
1341
+ opacity: tooltipState ? 1 : 0,
1342
+ transition: "opacity 0.1s ease-out",
1343
+ visibility: tooltipState ? "visible" : "hidden",
1344
+ width: "fit-content",
1345
+ whiteSpace: "nowrap"
1346
+ },
1347
+ children: tooltipState && tooltipFormatter(tooltipState)
1348
+ }
1349
+ )
1350
+ ]
1351
+ }
1352
+ );
1325
1353
  });
1326
1354
  SimpleBarChartComponent.displayName = "simpleBarChart";
1327
1355
  var simpleBarChart_default = SimpleBarChartComponent;
@@ -8,7 +8,7 @@ import "../../chunk-EWS3FESG.mjs";
8
8
  import {
9
9
  BarChartTooltip,
10
10
  barChart_default
11
- } from "../../chunk-JOK735WN.mjs";
11
+ } from "../../chunk-WKTRWHDA.mjs";
12
12
  import {
13
13
  circularProgress_default
14
14
  } from "../../chunk-WA7CSZQ3.mjs";
@@ -17,10 +17,10 @@ import {
17
17
  } from "../../chunk-U7SYKG2C.mjs";
18
18
  import {
19
19
  simpleBarChart_default
20
- } from "../../chunk-GWHUQUKA.mjs";
20
+ } from "../../chunk-6WD32ERF.mjs";
21
+ import "../../chunk-27Y6K5NK.mjs";
21
22
  import "../../chunk-E3G5QXSH.mjs";
22
23
  import "../../chunk-U4DJHAM5.mjs";
23
- import "../../chunk-27Y6K5NK.mjs";
24
24
  import "../../chunk-AC6TWLRT.mjs";
25
25
  export {
26
26
  areaChart_default as AreaChart,