@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
@@ -63,8 +63,8 @@ var SimpleBarChartComponent = forwardRef((originalProps, ref) => {
63
63
  const { payload, x, y } = e;
64
64
  if (!payload) return;
65
65
  setTooltipState({
66
- x,
67
- y,
66
+ barX: x,
67
+ barY: y - 20,
68
68
  value: payload.value,
69
69
  label: payload.title
70
70
  });
@@ -107,7 +107,7 @@ var SimpleBarChartComponent = forwardRef((originalProps, ref) => {
107
107
  const tooltipRect = tooltipRef.current.getBoundingClientRect();
108
108
  const chartWidth = chartRect.width;
109
109
  const tooltipWidth = tooltipRect.width;
110
- let left = tooltipState.x - tooltipWidth / 2;
110
+ let left = tooltipState.barX - tooltipWidth / 2;
111
111
  const padding = 8;
112
112
  if (left < padding) {
113
113
  left = padding;
@@ -116,82 +116,96 @@ var SimpleBarChartComponent = forwardRef((originalProps, ref) => {
116
116
  }
117
117
  setTooltipLeft(left);
118
118
  }, [tooltipState]);
119
- return /* @__PURE__ */ jsxs("div", { ref: chartRef, className: slots.base({ class: classNames == null ? void 0 : classNames.base }), onMouseLeave: handleMouseLeave, children: [
120
- label && /* @__PURE__ */ jsx("p", { className: slots.label({ class: classNames == null ? void 0 : classNames.label }), children: label }),
121
- /* @__PURE__ */ jsx(ResponsiveContainer, { width: "100%", height: 140, children: /* @__PURE__ */ jsxs(
122
- BarChart,
123
- {
124
- data,
125
- margin: { left: 0, right: 0, top: 0, bottom: 0 },
126
- barSize: 10,
127
- barGap,
128
- className: "[&_.recharts-surface]:outline-none [&_.recharts-surface]:focus:outline-none",
129
- children: [
130
- /* @__PURE__ */ jsx(
131
- CartesianGrid,
132
- {
133
- vertical: true,
134
- horizontal: false,
135
- strokeDasharray: "4 4",
136
- className: "stroke-neutral-light",
137
- verticalPoints: tickPositions
138
- }
139
- ),
140
- /* @__PURE__ */ jsx(
141
- CartesianGrid,
142
- {
143
- vertical: true,
144
- horizontal: false,
145
- strokeDasharray: "0",
146
- strokeWidth: 2,
147
- className: "stroke-neutral-light",
148
- verticalPoints: [0]
149
- }
150
- ),
151
- /* @__PURE__ */ jsx(
152
- XAxis,
153
- {
154
- dataKey: "title",
155
- axisLine: { stroke: "#DFE2E7", strokeWidth: 1 },
156
- tickLine: false,
157
- tick: CustomTick,
158
- padding: { left: 0, right: 0 }
159
- }
160
- ),
161
- /* @__PURE__ */ jsx(YAxis, { hide: true, ticks: yAxisTicks, domain: yAxisDomain }),
162
- /* @__PURE__ */ jsx(
163
- Bar,
164
- {
165
- dataKey: "value",
166
- fill: "#C7E5FA",
167
- shape: CustomBarShape,
168
- onMouseEnter: handleMouseEnter,
169
- onMouseLeave: handleMouseLeave
170
- }
171
- )
172
- ]
173
- }
174
- ) }),
175
- tooltipFormatter && /* @__PURE__ */ jsx(
176
- "div",
177
- {
178
- ref: tooltipRef,
179
- style: {
180
- position: "absolute",
181
- left: tooltipLeft + 5,
182
- top: (tooltipState == null ? void 0 : tooltipState.y) ? tooltipState.y - 20 : 0,
183
- pointerEvents: "none",
184
- zIndex: 10,
185
- opacity: tooltipState ? 1 : 0,
186
- transition: "opacity 0.1s ease-out",
187
- visibility: tooltipState ? "visible" : "hidden",
188
- width: "fit-content",
189
- whiteSpace: "nowrap"
190
- },
191
- children: tooltipState && tooltipFormatter(tooltipState)
192
- }
193
- )
194
- ] });
119
+ return /* @__PURE__ */ jsxs(
120
+ "div",
121
+ {
122
+ ref: chartRef,
123
+ className: slots.base({ class: classNames == null ? void 0 : classNames.base }),
124
+ onMouseLeave: handleMouseLeave,
125
+ onMouseMove: (e) => {
126
+ const target = e.target;
127
+ if (!target.closest('[data-testid="recharts-bar-rectangle"]') && !target.closest(".recharts-bar-rectangle") && target.tagName !== "path") {
128
+ setTooltipState(null);
129
+ }
130
+ },
131
+ children: [
132
+ label && /* @__PURE__ */ jsx("p", { className: slots.label({ class: classNames == null ? void 0 : classNames.label }), children: label }),
133
+ /* @__PURE__ */ jsx(ResponsiveContainer, { width: "100%", height: 140, children: /* @__PURE__ */ jsxs(
134
+ BarChart,
135
+ {
136
+ data,
137
+ margin: { left: 0, right: 0, top: 0, bottom: 0 },
138
+ barSize: 10,
139
+ barGap,
140
+ className: "[&_.recharts-surface]:outline-none [&_.recharts-surface]:focus:outline-none",
141
+ children: [
142
+ /* @__PURE__ */ jsx(
143
+ CartesianGrid,
144
+ {
145
+ vertical: true,
146
+ horizontal: false,
147
+ strokeDasharray: "4 4",
148
+ className: "stroke-neutral-light",
149
+ verticalPoints: tickPositions
150
+ }
151
+ ),
152
+ /* @__PURE__ */ jsx(
153
+ CartesianGrid,
154
+ {
155
+ vertical: true,
156
+ horizontal: false,
157
+ strokeDasharray: "0",
158
+ strokeWidth: 2,
159
+ className: "stroke-neutral-light",
160
+ verticalPoints: [0]
161
+ }
162
+ ),
163
+ /* @__PURE__ */ jsx(
164
+ XAxis,
165
+ {
166
+ dataKey: "title",
167
+ axisLine: { stroke: "#DFE2E7", strokeWidth: 1 },
168
+ tickLine: false,
169
+ tick: CustomTick,
170
+ padding: { left: 0, right: 0 }
171
+ }
172
+ ),
173
+ /* @__PURE__ */ jsx(YAxis, { hide: true, ticks: yAxisTicks, domain: yAxisDomain }),
174
+ /* @__PURE__ */ jsx(
175
+ Bar,
176
+ {
177
+ dataKey: "value",
178
+ fill: "#C7E5FA",
179
+ shape: CustomBarShape,
180
+ onMouseEnter: handleMouseEnter,
181
+ onMouseLeave: handleMouseLeave
182
+ }
183
+ )
184
+ ]
185
+ }
186
+ ) }),
187
+ tooltipFormatter && /* @__PURE__ */ jsx(
188
+ "div",
189
+ {
190
+ ref: tooltipRef,
191
+ style: {
192
+ position: "absolute",
193
+ left: tooltipLeft + 5,
194
+ top: (tooltipState == null ? void 0 : tooltipState.barY) || 0,
195
+ pointerEvents: "none",
196
+ zIndex: 10,
197
+ opacity: tooltipState ? 1 : 0,
198
+ transition: "opacity 0.1s ease-out",
199
+ visibility: tooltipState ? "visible" : "hidden",
200
+ width: "fit-content",
201
+ whiteSpace: "nowrap"
202
+ },
203
+ children: tooltipState && tooltipFormatter(tooltipState)
204
+ }
205
+ )
206
+ ]
207
+ }
208
+ );
195
209
  });
196
210
  SimpleBarChartComponent.displayName = "simpleBarChart";
197
211
  var simpleBarChart_default = SimpleBarChartComponent;
@@ -1,10 +1,10 @@
1
1
  "use client";
2
2
  import {
3
3
  progress_default
4
- } from "./chunk-KH63CD55.mjs";
4
+ } from "./chunk-ACZ3DQVT.mjs";
5
5
  import {
6
6
  input_default
7
- } from "./chunk-RXDRG6MC.mjs";
7
+ } from "./chunk-7H6U5XJA.mjs";
8
8
  import {
9
9
  button_default
10
10
  } from "./chunk-SRCCJ4CV.mjs";
@@ -39,6 +39,7 @@ function FileUpload({
39
39
  const [message, setMessage] = useState(errorMessage);
40
40
  const [displayFileName, setDisplayFileName] = useState(() => (defaultFile == null ? void 0 : defaultFile.name) || "");
41
41
  const [hasUploadedFile, setHasUploadedFile] = useState(false);
42
+ const [isUploading, setIsUploading] = useState(false);
42
43
  const slots = fileUploadStyle();
43
44
  const handleButtonClick = () => {
44
45
  var _a;
@@ -57,11 +58,13 @@ function FileUpload({
57
58
  const startUploadSimulation = (file) => {
58
59
  let progress = 0;
59
60
  setUploadProgress(0);
61
+ setIsUploading(true);
60
62
  uploadIntervalRef.current = window.setInterval(() => {
61
63
  progress += 10;
62
64
  setUploadProgress(progress);
63
65
  if (progress >= 100) {
64
66
  clearInterval(uploadIntervalRef.current);
67
+ setIsUploading(false);
65
68
  onFileUpload == null ? void 0 : onFileUpload(file);
66
69
  }
67
70
  }, 100);
@@ -76,6 +79,7 @@ function FileUpload({
76
79
  setCurrentFile(null);
77
80
  setDisplayFileName((defaultFile == null ? void 0 : defaultFile.name) || "");
78
81
  setHasUploadedFile(false);
82
+ setIsUploading(false);
79
83
  if (fileInputRef.current) {
80
84
  fileInputRef.current.value = "";
81
85
  }
@@ -96,6 +100,7 @@ function FileUpload({
96
100
  setMessage("");
97
101
  setDisplayFileName((defaultFile == null ? void 0 : defaultFile.name) || "");
98
102
  setHasUploadedFile(false);
103
+ setIsUploading(false);
99
104
  if (fileInputRef.current) {
100
105
  fileInputRef.current.value = "";
101
106
  }
@@ -149,6 +154,7 @@ function FileUpload({
149
154
  variant: "outline",
150
155
  onClick: handleButtonClick,
151
156
  disabled: !!(currentFile && hasUploadedFile),
157
+ isLoading: isUploading,
152
158
  children: buttonText
153
159
  }
154
160
  ),
@@ -1,10 +1,10 @@
1
1
  "use client";
2
+ import {
3
+ text_button_default
4
+ } from "./chunk-NDNIAALB.mjs";
2
5
  import {
3
6
  Icon_default
4
7
  } from "./chunk-B4YBLIBE.mjs";
5
- import {
6
- text_button_default
7
- } from "./chunk-4LUASWAN.mjs";
8
8
  import {
9
9
  tv
10
10
  } from "./chunk-U4DJHAM5.mjs";
@@ -8,7 +8,10 @@ import {
8
8
  } from "./chunk-XZYQFBCT.mjs";
9
9
  import {
10
10
  input_default
11
- } from "./chunk-RXDRG6MC.mjs";
11
+ } from "./chunk-7H6U5XJA.mjs";
12
+ import {
13
+ text_button_default
14
+ } from "./chunk-NDNIAALB.mjs";
12
15
  import {
13
16
  button_default
14
17
  } from "./chunk-SRCCJ4CV.mjs";
@@ -18,9 +21,6 @@ import {
18
21
  import {
19
22
  Icon_default
20
23
  } from "./chunk-B4YBLIBE.mjs";
21
- import {
22
- text_button_default
23
- } from "./chunk-4LUASWAN.mjs";
24
24
  import {
25
25
  mapPropsVariants
26
26
  } from "./chunk-E3G5QXSH.mjs";
@@ -1,19 +1,19 @@
1
1
  "use client";
2
2
  import {
3
3
  select_default
4
- } from "./chunk-4EELFA6L.mjs";
4
+ } from "./chunk-LE7PGMCV.mjs";
5
5
  import {
6
6
  Icon_default
7
7
  } from "./chunk-B4YBLIBE.mjs";
8
+ import {
9
+ clsx
10
+ } from "./chunk-27Y6K5NK.mjs";
8
11
  import {
9
12
  mapPropsVariants
10
13
  } from "./chunk-E3G5QXSH.mjs";
11
14
  import {
12
15
  tv
13
16
  } from "./chunk-U4DJHAM5.mjs";
14
- import {
15
- clsx
16
- } from "./chunk-27Y6K5NK.mjs";
17
17
 
18
18
  // src/components/picker/timePicker.tsx
19
19
  import { forwardRef, useCallback, useMemo, useState, useRef } from "react";
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  backdrop_default
4
- } from "./chunk-IH3BJRTV.mjs";
4
+ } from "./chunk-4X35QQTI.mjs";
5
5
  import {
6
6
  button_default
7
7
  } from "./chunk-SRCCJ4CV.mjs";
@@ -0,0 +1,264 @@
1
+ "use client";
2
+ import {
3
+ mapPropsVariants
4
+ } from "./chunk-E3G5QXSH.mjs";
5
+ import {
6
+ tv
7
+ } from "./chunk-U4DJHAM5.mjs";
8
+
9
+ // src/components/charts/barChart.tsx
10
+ import { forwardRef, useEffect, useLayoutEffect, useMemo, useRef, useState } from "react";
11
+ import { XAxis, YAxis, ResponsiveContainer, CartesianGrid, BarChart, Bar } from "recharts";
12
+ import { jsx, jsxs } from "react/jsx-runtime";
13
+ var BarChartComponent = forwardRef((originalProps, ref) => {
14
+ const [props, variantProps] = mapPropsVariants(originalProps, barChartStyle.variantKeys);
15
+ const {
16
+ data = [],
17
+ label,
18
+ classNames,
19
+ yAxisTicks = [0, 20, 40, 60, 80, 100],
20
+ yAxisTickFormatter = (value) => `${value}`,
21
+ yAxisDomain = [-6, 110],
22
+ barGap = 20,
23
+ tooltipFormatter
24
+ } = { ...props, ...variantProps };
25
+ const slots = useMemo(() => barChartStyle({ ...variantProps }), [variantProps]);
26
+ const chartRef = useRef(null);
27
+ const tooltipRef = useRef(null);
28
+ const [tooltipLeft, setTooltipLeft] = useState(0);
29
+ const [tickPositions, setTickPositions] = useState([]);
30
+ const tickRef = useRef([]);
31
+ const [tooltipState, setTooltipState] = useState(null);
32
+ const handleMouseEnter = (e, dataKey) => {
33
+ if (!tooltipFormatter || !chartRef.current) return;
34
+ const { payload, x, y } = e;
35
+ if (!payload || !payload[dataKey]) return;
36
+ setTooltipState({
37
+ barX: x,
38
+ barY: y - 10,
39
+ value: payload[dataKey],
40
+ dataKey,
41
+ label: payload.title
42
+ });
43
+ };
44
+ const handleMouseLeave = () => {
45
+ setTooltipState(null);
46
+ };
47
+ const CustomBarShape = ({ x, y, width, height, fill }) => {
48
+ const radius = 5;
49
+ const extraHeight = 10;
50
+ const adjustedHeight = height + extraHeight;
51
+ const adjustedY = y;
52
+ const bottomY = adjustedY + adjustedHeight;
53
+ return height ? /* @__PURE__ */ jsx(
54
+ "path",
55
+ {
56
+ d: `M${x},${bottomY} L${x},${adjustedY + radius} Q${x},${adjustedY} ${x + radius},${adjustedY} L${x + width - radius},${adjustedY} Q${x + width},${adjustedY} ${x + width},${adjustedY + radius} L${x + width},${bottomY} Z`,
57
+ fill
58
+ }
59
+ ) : /* @__PURE__ */ jsx("rect", { x, y, width, height: 0, fill });
60
+ };
61
+ const CustomTick = ({ x, y, payload }) => {
62
+ if (x !== void 0) tickRef.current.push(x);
63
+ return /* @__PURE__ */ jsx(
64
+ "text",
65
+ {
66
+ x,
67
+ y: y + 14,
68
+ textAnchor: "middle",
69
+ fontSize: 12,
70
+ fontWeight: 700,
71
+ fill: "currentColor",
72
+ className: "text-body-foreground",
73
+ children: payload.value
74
+ }
75
+ );
76
+ };
77
+ const CustomYAxisTick = ({ x, y, payload }) => /* @__PURE__ */ jsx(
78
+ "text",
79
+ {
80
+ x: x - 10,
81
+ y,
82
+ textAnchor: "middle",
83
+ fontSize: 12,
84
+ fontWeight: 700,
85
+ fill: "currentColor",
86
+ className: "text-body-foreground",
87
+ dy: 4,
88
+ children: yAxisTickFormatter(payload.value)
89
+ }
90
+ );
91
+ useEffect(() => {
92
+ const raf = requestAnimationFrame(() => {
93
+ const unique = [...new Set(tickRef.current)].sort((a, b) => a - b);
94
+ const mids = [];
95
+ for (let i = 0; i < unique.length - 1; i++) {
96
+ mids.push((unique[i] + unique[i + 1]) / 2);
97
+ }
98
+ setTickPositions(mids);
99
+ tickRef.current = [];
100
+ });
101
+ return () => cancelAnimationFrame(raf);
102
+ }, [data]);
103
+ useLayoutEffect(() => {
104
+ if (!tooltipState || !chartRef.current || !tooltipRef.current) return;
105
+ const chartRect = chartRef.current.getBoundingClientRect();
106
+ const tooltipRect = tooltipRef.current.getBoundingClientRect();
107
+ const chartWidth = chartRect.width;
108
+ const tooltipWidth = tooltipRect.width;
109
+ let left = tooltipState.barX - tooltipWidth / 2;
110
+ const padding = 8;
111
+ if (left < padding) {
112
+ left = padding;
113
+ } else if (left + tooltipWidth > chartWidth - padding) {
114
+ left = chartWidth - tooltipWidth - padding;
115
+ }
116
+ setTooltipLeft(left);
117
+ }, [tooltipState]);
118
+ return /* @__PURE__ */ jsxs(
119
+ "div",
120
+ {
121
+ ref: chartRef,
122
+ className: slots.base({ class: classNames == null ? void 0 : classNames.base }),
123
+ onMouseLeave: handleMouseLeave,
124
+ onMouseMove: (e) => {
125
+ const target = e.target;
126
+ if (!target.closest('[data-testid="recharts-bar-rectangle"]') && !target.closest(".recharts-bar-rectangle") && target.tagName !== "path") {
127
+ setTooltipState(null);
128
+ }
129
+ },
130
+ children: [
131
+ label && /* @__PURE__ */ jsx("p", { className: slots.label({ class: classNames == null ? void 0 : classNames.label }), children: label }),
132
+ /* @__PURE__ */ jsx(ResponsiveContainer, { width: "100%", height: "100%", children: /* @__PURE__ */ jsxs(
133
+ BarChart,
134
+ {
135
+ data,
136
+ margin: { left: -20 },
137
+ barSize: 20,
138
+ barGap,
139
+ className: "[&_.recharts-surface]:outline-none [&_.recharts-surface]:focus:outline-none",
140
+ children: [
141
+ /* @__PURE__ */ jsxs("defs", { children: [
142
+ /* @__PURE__ */ jsxs("linearGradient", { id: "blueGradient", x1: "0", y1: "0", x2: "0", y2: "1", children: [
143
+ /* @__PURE__ */ jsx("stop", { offset: "0%", stopColor: "#DEC1FA" }),
144
+ /* @__PURE__ */ jsx("stop", { offset: "100%", stopColor: "#3F9CF2" })
145
+ ] }),
146
+ /* @__PURE__ */ jsxs("linearGradient", { id: "greenGradient", x1: "0", y1: "0", x2: "0", y2: "1", children: [
147
+ /* @__PURE__ */ jsx("stop", { offset: "0%", stopColor: "#C2E59C" }),
148
+ /* @__PURE__ */ jsx("stop", { offset: "100%", stopColor: "#64B3F4" })
149
+ ] }),
150
+ /* @__PURE__ */ jsxs("linearGradient", { id: "pinkGradient", x1: "0", y1: "0", x2: "0", y2: "1", children: [
151
+ /* @__PURE__ */ jsx("stop", { offset: "0%", stopColor: "#DDD6F3" }),
152
+ /* @__PURE__ */ jsx("stop", { offset: "100%", stopColor: "#FAACA8" })
153
+ ] })
154
+ ] }),
155
+ /* @__PURE__ */ jsx(
156
+ CartesianGrid,
157
+ {
158
+ vertical: true,
159
+ horizontal: false,
160
+ strokeDasharray: "4 4",
161
+ className: "stroke-neutral-light",
162
+ verticalPoints: tickPositions
163
+ }
164
+ ),
165
+ /* @__PURE__ */ jsx(
166
+ XAxis,
167
+ {
168
+ dataKey: "title",
169
+ axisLine: { stroke: "#DFE2E7", strokeWidth: 1 },
170
+ tickLine: false,
171
+ tick: CustomTick,
172
+ padding: { left: 0, right: 0 }
173
+ }
174
+ ),
175
+ /* @__PURE__ */ jsx(
176
+ YAxis,
177
+ {
178
+ axisLine: { stroke: "#DFE2E7", strokeWidth: 1 },
179
+ tickLine: false,
180
+ tick: CustomYAxisTick,
181
+ ticks: yAxisTicks,
182
+ domain: yAxisDomain
183
+ }
184
+ ),
185
+ /* @__PURE__ */ jsx(
186
+ Bar,
187
+ {
188
+ dataKey: "blue",
189
+ fill: "url(#blueGradient)",
190
+ shape: CustomBarShape,
191
+ onMouseEnter: (e) => handleMouseEnter(e, "blue"),
192
+ onMouseLeave: handleMouseLeave
193
+ }
194
+ ),
195
+ /* @__PURE__ */ jsx(
196
+ Bar,
197
+ {
198
+ dataKey: "green",
199
+ fill: "url(#greenGradient)",
200
+ shape: CustomBarShape,
201
+ onMouseEnter: (e) => handleMouseEnter(e, "green"),
202
+ onMouseLeave: handleMouseLeave
203
+ }
204
+ ),
205
+ /* @__PURE__ */ jsx(
206
+ Bar,
207
+ {
208
+ dataKey: "pink",
209
+ fill: "url(#pinkGradient)",
210
+ shape: CustomBarShape,
211
+ onMouseEnter: (e) => handleMouseEnter(e, "pink"),
212
+ onMouseLeave: handleMouseLeave
213
+ }
214
+ )
215
+ ]
216
+ }
217
+ ) }),
218
+ tooltipFormatter && /* @__PURE__ */ jsx(
219
+ "div",
220
+ {
221
+ ref: tooltipRef,
222
+ style: {
223
+ position: "absolute",
224
+ left: tooltipLeft + 10,
225
+ top: (tooltipState == null ? void 0 : tooltipState.barY) || 0,
226
+ pointerEvents: "none",
227
+ zIndex: 10,
228
+ opacity: tooltipState ? 1 : 0,
229
+ transition: "opacity 0.1s ease-out",
230
+ visibility: tooltipState ? "visible" : "hidden",
231
+ width: "fit-content",
232
+ whiteSpace: "nowrap"
233
+ },
234
+ children: tooltipState && tooltipFormatter(tooltipState)
235
+ }
236
+ )
237
+ ]
238
+ }
239
+ );
240
+ });
241
+ BarChartComponent.displayName = "barChart";
242
+ var barChart_default = BarChartComponent;
243
+ var barChartStyle = tv({
244
+ slots: {
245
+ base: ["flex", "flex-col", "gap-[10px]", "select-none", "relative"],
246
+ label: ["text-md", "font-bold", "text-body-foreground"]
247
+ },
248
+ variants: {},
249
+ defaultVariants: {}
250
+ });
251
+ function BarChartTooltip({ className = "", children }) {
252
+ return /* @__PURE__ */ jsx(
253
+ "div",
254
+ {
255
+ className: `text-md text-common-white bg-common-black flex max-w-[160px] whitespace-nowrap rounded-[5px] px-[10px] py-[6px] text-center font-bold ${className}`,
256
+ children
257
+ }
258
+ );
259
+ }
260
+
261
+ export {
262
+ barChart_default,
263
+ BarChartTooltip
264
+ };
@@ -4,19 +4,19 @@ import {
4
4
  } from "./chunk-F3HENRVM.mjs";
5
5
  import {
6
6
  input_default
7
- } from "./chunk-RXDRG6MC.mjs";
7
+ } from "./chunk-7H6U5XJA.mjs";
8
8
  import {
9
9
  Icon_default
10
10
  } from "./chunk-B4YBLIBE.mjs";
11
+ import {
12
+ clsx
13
+ } from "./chunk-27Y6K5NK.mjs";
11
14
  import {
12
15
  mapPropsVariants
13
16
  } from "./chunk-E3G5QXSH.mjs";
14
17
  import {
15
18
  tv
16
19
  } from "./chunk-U4DJHAM5.mjs";
17
- import {
18
- clsx
19
- } from "./chunk-27Y6K5NK.mjs";
20
20
 
21
21
  // src/components/pagination/pagination.tsx
22
22
  import { forwardRef, useMemo, useState } from "react";
@@ -1,19 +1,19 @@
1
1
  "use client";
2
2
  import {
3
3
  pagination_default
4
- } from "./chunk-7C7RHDHV.mjs";
5
- import {
6
- checkbox_default
7
- } from "./chunk-OEIEALIP.mjs";
4
+ } from "./chunk-XZTVXEOD.mjs";
8
5
  import {
9
6
  scrollArea_default
10
7
  } from "./chunk-EWS3FESG.mjs";
11
8
  import {
12
- mapPropsVariants
13
- } from "./chunk-E3G5QXSH.mjs";
9
+ checkbox_default
10
+ } from "./chunk-3DCUMRYP.mjs";
14
11
  import {
15
12
  clsx
16
13
  } from "./chunk-27Y6K5NK.mjs";
14
+ import {
15
+ mapPropsVariants
16
+ } from "./chunk-E3G5QXSH.mjs";
17
17
 
18
18
  // src/components/table/table.tsx
19
19
  import {
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  backdrop_default
4
- } from "../../chunk-IH3BJRTV.mjs";
5
- import "../../chunk-U4DJHAM5.mjs";
4
+ } from "../../chunk-4X35QQTI.mjs";
6
5
  import "../../chunk-27Y6K5NK.mjs";
6
+ import "../../chunk-U4DJHAM5.mjs";
7
7
  import "../../chunk-AC6TWLRT.mjs";
8
8
  export {
9
9
  backdrop_default as default
@@ -2,9 +2,9 @@
2
2
  import "../../chunk-SE5TU755.mjs";
3
3
  import {
4
4
  backdrop_default
5
- } from "../../chunk-IH3BJRTV.mjs";
6
- import "../../chunk-U4DJHAM5.mjs";
5
+ } from "../../chunk-4X35QQTI.mjs";
7
6
  import "../../chunk-27Y6K5NK.mjs";
7
+ import "../../chunk-U4DJHAM5.mjs";
8
8
  import "../../chunk-AC6TWLRT.mjs";
9
9
  export {
10
10
  backdrop_default as Backdrop