@deepnoid/ui 0.1.117 → 0.1.119

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 (115) hide show
  1. package/.turbo/turbo-build.log +167 -167
  2. package/dist/{chunk-HD2PTCE6.mjs → chunk-27WK5334.mjs} +2 -2
  3. package/dist/{chunk-3ZH6PWFC.mjs → chunk-BBQNVDIA.mjs} +2 -2
  4. package/dist/{chunk-ER3SUAE2.mjs → chunk-CMMVXFHD.mjs} +1 -1
  5. package/dist/{chunk-LCWEO4U6.mjs → chunk-CTWYY7Z2.mjs} +28 -28
  6. package/dist/{chunk-HLYTCS7L.mjs → chunk-EM2NIGNZ.mjs} +1 -1
  7. package/dist/{chunk-VPGJ4HZ7.mjs → chunk-EXUHHLSA.mjs} +2 -2
  8. package/dist/{chunk-TO6OPRBH.mjs → chunk-IJS5AWD2.mjs} +1 -1
  9. package/dist/{chunk-PHWTRXOL.mjs → chunk-KCOS2KC6.mjs} +2 -2
  10. package/dist/{chunk-6VNOOJDQ.mjs → chunk-MHZ4BO5M.mjs} +2 -2
  11. package/dist/{chunk-RSD67ORA.mjs → chunk-MIVGSJFF.mjs} +1 -1
  12. package/dist/{chunk-LIHZG4KM.mjs → chunk-NITERGU5.mjs} +4 -4
  13. package/dist/{chunk-MG5E5YZ7.mjs → chunk-NMZFSNPE.mjs} +1 -1
  14. package/dist/{chunk-LZRBMVT7.mjs → chunk-NV5Z6ZUO.mjs} +1 -1
  15. package/dist/{chunk-TRNL3IXF.mjs → chunk-OBMO6LRA.mjs} +1 -1
  16. package/dist/{chunk-CUCLHYCE.mjs → chunk-Q5634WTM.mjs} +3 -3
  17. package/dist/{chunk-WIZDHK4O.mjs → chunk-QKRCC26D.mjs} +63 -55
  18. package/dist/{chunk-UPPNTDNG.mjs → chunk-RJPBLIEF.mjs} +1 -1
  19. package/dist/{chunk-F7PC2JAF.mjs → chunk-SS6EG5JO.mjs} +1 -1
  20. package/dist/{chunk-CF7LIQF6.mjs → chunk-U33MTXQX.mjs} +56 -22
  21. package/dist/{chunk-63KZGR73.mjs → chunk-UA24L44Z.mjs} +34 -26
  22. package/dist/{chunk-KIN2UK2C.mjs → chunk-VB5NKWJG.mjs} +1 -1
  23. package/dist/{chunk-PMSUPDDW.mjs → chunk-YLHOBT6S.mjs} +1 -1
  24. package/dist/{chunk-676Y7NKV.mjs → chunk-YUS5SELP.mjs} +1 -1
  25. package/dist/components/avatar/avatar.js +28 -28
  26. package/dist/components/avatar/avatar.mjs +2 -2
  27. package/dist/components/avatar/index.js +28 -28
  28. package/dist/components/avatar/index.mjs +2 -2
  29. package/dist/components/breadcrumb/breadcrumb.js +29 -29
  30. package/dist/components/breadcrumb/breadcrumb.mjs +5 -5
  31. package/dist/components/breadcrumb/index.js +29 -29
  32. package/dist/components/breadcrumb/index.mjs +5 -5
  33. package/dist/components/button/button.js +28 -28
  34. package/dist/components/button/button.mjs +3 -3
  35. package/dist/components/button/icon-button.js +28 -28
  36. package/dist/components/button/icon-button.mjs +3 -3
  37. package/dist/components/button/index.js +28 -28
  38. package/dist/components/button/index.mjs +4 -4
  39. package/dist/components/charts/areaChart.js +63 -55
  40. package/dist/components/charts/areaChart.mjs +1 -1
  41. package/dist/components/charts/barChart.d.mts +14 -4
  42. package/dist/components/charts/barChart.d.ts +14 -4
  43. package/dist/components/charts/barChart.js +55 -21
  44. package/dist/components/charts/barChart.mjs +1 -1
  45. package/dist/components/charts/circularProgress.js +1 -1
  46. package/dist/components/charts/circularProgress.mjs +1 -1
  47. package/dist/components/charts/index.js +153 -103
  48. package/dist/components/charts/index.mjs +4 -4
  49. package/dist/components/charts/radarChart.js +34 -26
  50. package/dist/components/charts/radarChart.mjs +1 -1
  51. package/dist/components/chip/chip.js +28 -28
  52. package/dist/components/chip/chip.mjs +3 -3
  53. package/dist/components/chip/index.js +28 -28
  54. package/dist/components/chip/index.mjs +3 -3
  55. package/dist/components/fileUpload/fileUpload.js +28 -28
  56. package/dist/components/fileUpload/fileUpload.mjs +6 -6
  57. package/dist/components/fileUpload/index.js +28 -28
  58. package/dist/components/fileUpload/index.mjs +6 -6
  59. package/dist/components/icon/Icon.d.mts +8 -8
  60. package/dist/components/icon/Icon.d.ts +8 -8
  61. package/dist/components/icon/Icon.js +28 -28
  62. package/dist/components/icon/Icon.mjs +2 -2
  63. package/dist/components/icon/index.js +28 -28
  64. package/dist/components/icon/index.mjs +2 -2
  65. package/dist/components/icon/template.d.mts +2 -2
  66. package/dist/components/icon/template.d.ts +2 -2
  67. package/dist/components/icon/template.js +28 -28
  68. package/dist/components/icon/template.mjs +1 -1
  69. package/dist/components/input/index.js +28 -28
  70. package/dist/components/input/index.mjs +3 -3
  71. package/dist/components/input/input.js +28 -28
  72. package/dist/components/input/input.mjs +3 -3
  73. package/dist/components/list/index.js +28 -28
  74. package/dist/components/list/index.mjs +4 -4
  75. package/dist/components/list/listItem.js +28 -28
  76. package/dist/components/list/listItem.mjs +4 -4
  77. package/dist/components/modal/index.js +28 -28
  78. package/dist/components/modal/index.mjs +5 -5
  79. package/dist/components/modal/modal.js +28 -28
  80. package/dist/components/modal/modal.mjs +5 -5
  81. package/dist/components/pagination/index.js +28 -28
  82. package/dist/components/pagination/index.mjs +4 -4
  83. package/dist/components/pagination/pagination.js +28 -28
  84. package/dist/components/pagination/pagination.mjs +4 -4
  85. package/dist/components/picker/datePicker.js +28 -28
  86. package/dist/components/picker/datePicker.mjs +6 -6
  87. package/dist/components/picker/index.js +28 -28
  88. package/dist/components/picker/index.mjs +8 -8
  89. package/dist/components/picker/timePicker.js +28 -28
  90. package/dist/components/picker/timePicker.mjs +4 -4
  91. package/dist/components/select/index.js +28 -28
  92. package/dist/components/select/index.mjs +3 -3
  93. package/dist/components/select/select.js +28 -28
  94. package/dist/components/select/select.mjs +3 -3
  95. package/dist/components/table/index.js +28 -28
  96. package/dist/components/table/index.mjs +5 -5
  97. package/dist/components/table/table-body.js +28 -28
  98. package/dist/components/table/table-body.mjs +5 -5
  99. package/dist/components/table/table-head.js +28 -28
  100. package/dist/components/table/table-head.mjs +5 -5
  101. package/dist/components/table/table.js +28 -28
  102. package/dist/components/table/table.mjs +5 -5
  103. package/dist/components/toast/index.js +28 -28
  104. package/dist/components/toast/index.mjs +4 -4
  105. package/dist/components/toast/toast.js +28 -28
  106. package/dist/components/toast/toast.mjs +3 -3
  107. package/dist/components/toast/use-toast.js +28 -28
  108. package/dist/components/toast/use-toast.mjs +4 -4
  109. package/dist/components/tree/index.js +28 -28
  110. package/dist/components/tree/index.mjs +3 -3
  111. package/dist/components/tree/tree.js +28 -28
  112. package/dist/components/tree/tree.mjs +3 -3
  113. package/dist/index.js +182 -132
  114. package/dist/index.mjs +27 -27
  115. package/package.json +1 -1
@@ -1326,6 +1326,34 @@ var template = {
1326
1326
  }
1327
1327
  );
1328
1328
  },
1329
+ "brace-left": ({ className }) => {
1330
+ return /* @__PURE__ */ jsx(
1331
+ "svg",
1332
+ {
1333
+ xmlns: "http://www.w3.org/2000/svg",
1334
+ width: "18",
1335
+ height: "18",
1336
+ viewBox: "0 0 18 18",
1337
+ fill: "none",
1338
+ className,
1339
+ children: /* @__PURE__ */ jsx("path", { d: "M11.5 14L6.5 9L11.5 4", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round" })
1340
+ }
1341
+ );
1342
+ },
1343
+ "brace-right": ({ className }) => {
1344
+ return /* @__PURE__ */ jsx(
1345
+ "svg",
1346
+ {
1347
+ xmlns: "http://www.w3.org/2000/svg",
1348
+ width: "18",
1349
+ height: "18",
1350
+ viewBox: "0 0 18 18",
1351
+ fill: "none",
1352
+ className,
1353
+ children: /* @__PURE__ */ jsx("path", { d: "M6.5 4L11.5 9L6.5 14", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round" })
1354
+ }
1355
+ );
1356
+ },
1329
1357
  // ----------------------------------- old ---------------------------------
1330
1358
  // ** Status **
1331
1359
  check: ({ className, fill }) => {
@@ -3945,34 +3973,6 @@ var template = {
3945
3973
  }
3946
3974
  );
3947
3975
  },
3948
- "brace-left": ({ className, fill }) => {
3949
- return /* @__PURE__ */ jsx(
3950
- "svg",
3951
- {
3952
- width: "24",
3953
- height: "24",
3954
- viewBox: "0 0 24 24",
3955
- fill: "none",
3956
- xmlns: "http://www.w3.org/2000/svg",
3957
- className,
3958
- children: /* @__PURE__ */ jsx("path", { d: "M15.75 19.5L8.25 12L15.75 4.5", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round" })
3959
- }
3960
- );
3961
- },
3962
- "brace-right": ({ className, fill }) => {
3963
- return /* @__PURE__ */ jsx(
3964
- "svg",
3965
- {
3966
- width: "24",
3967
- height: "24",
3968
- viewBox: "0 0 24 24",
3969
- fill: "none",
3970
- xmlns: "http://www.w3.org/2000/svg",
3971
- className,
3972
- children: /* @__PURE__ */ jsx("path", { d: "M8.25 4.5L15.75 12L8.25 19.5", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round" })
3973
- }
3974
- );
3975
- },
3976
3976
  "brace-double-up": ({ className, fill }) => {
3977
3977
  return /* @__PURE__ */ jsxs(
3978
3978
  "svg",
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  template
4
- } from "./chunk-LCWEO4U6.mjs";
4
+ } from "./chunk-CTWYY7Z2.mjs";
5
5
 
6
6
  // src/components/icon/Icon.tsx
7
7
  import { jsx } from "react/jsx-runtime";
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-Q364C3FI.mjs";
5
5
  import {
6
6
  Icon_default
7
- } from "./chunk-HLYTCS7L.mjs";
7
+ } from "./chunk-EM2NIGNZ.mjs";
8
8
  import {
9
9
  tv
10
10
  } from "./chunk-CDXBML6O.mjs";
@@ -49,7 +49,7 @@ var Breadcrumb = forwardRef(({ startIconName, size, menus, classNames }, ref) =>
49
49
  "aria-current": isLast ? "page" : void 0,
50
50
  children: [
51
51
  /* @__PURE__ */ jsx(BreadcrumbMenu, { label: menu.label, onClick: menu.onClick, isCurrent: isLast, size }),
52
- !isLast && /* @__PURE__ */ jsx(Icon_default, { name: "right", className: slots.separator() })
52
+ !isLast && /* @__PURE__ */ jsx(Icon_default, { name: "brace-right", className: slots.separator() })
53
53
  ]
54
54
  },
55
55
  `${menu.label}-${index}`
@@ -7,7 +7,7 @@ import {
7
7
  } from "./chunk-M37VBNB3.mjs";
8
8
  import {
9
9
  pagination_default
10
- } from "./chunk-3ZH6PWFC.mjs";
10
+ } from "./chunk-BBQNVDIA.mjs";
11
11
  import {
12
12
  checkbox_default
13
13
  } from "./chunk-H6JGLPPF.mjs";
@@ -1,13 +1,13 @@
1
1
  "use client";
2
2
  import {
3
3
  Icon_default
4
- } from "./chunk-HLYTCS7L.mjs";
4
+ } from "./chunk-EM2NIGNZ.mjs";
5
5
  import {
6
6
  mapPropsVariants
7
7
  } from "./chunk-E3G5QXSH.mjs";
8
8
  import {
9
9
  avatar_default
10
- } from "./chunk-UPPNTDNG.mjs";
10
+ } from "./chunk-RJPBLIEF.mjs";
11
11
  import {
12
12
  tv
13
13
  } from "./chunk-CDXBML6O.mjs";
@@ -1,10 +1,10 @@
1
1
  "use client";
2
2
  import {
3
3
  select_default
4
- } from "./chunk-RSD67ORA.mjs";
4
+ } from "./chunk-MIVGSJFF.mjs";
5
5
  import {
6
6
  Icon_default
7
- } from "./chunk-HLYTCS7L.mjs";
7
+ } from "./chunk-EM2NIGNZ.mjs";
8
8
  import {
9
9
  mapPropsVariants
10
10
  } from "./chunk-E3G5QXSH.mjs";
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  Icon_default
4
- } from "./chunk-HLYTCS7L.mjs";
4
+ } from "./chunk-EM2NIGNZ.mjs";
5
5
  import {
6
6
  mapPropsVariants
7
7
  } from "./chunk-E3G5QXSH.mjs";
@@ -8,19 +8,19 @@ import {
8
8
  } from "./chunk-FWFEKWWD.mjs";
9
9
  import {
10
10
  input_default
11
- } from "./chunk-ER3SUAE2.mjs";
11
+ } from "./chunk-CMMVXFHD.mjs";
12
12
  import {
13
13
  text_button_default
14
14
  } from "./chunk-Q364C3FI.mjs";
15
15
  import {
16
16
  button_default
17
- } from "./chunk-F7PC2JAF.mjs";
17
+ } from "./chunk-SS6EG5JO.mjs";
18
18
  import {
19
19
  icon_button_default
20
- } from "./chunk-LZRBMVT7.mjs";
20
+ } from "./chunk-NV5Z6ZUO.mjs";
21
21
  import {
22
22
  Icon_default
23
- } from "./chunk-HLYTCS7L.mjs";
23
+ } from "./chunk-EM2NIGNZ.mjs";
24
24
  import {
25
25
  mapPropsVariants
26
26
  } from "./chunk-E3G5QXSH.mjs";
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-ZOTHPHXA.mjs";
5
5
  import {
6
6
  toast_default
7
- } from "./chunk-TRNL3IXF.mjs";
7
+ } from "./chunk-OBMO6LRA.mjs";
8
8
 
9
9
  // src/components/toast/use-toast.tsx
10
10
  import { createContext, useContext, useState, useCallback, useEffect, useRef } from "react";
@@ -7,7 +7,7 @@ import {
7
7
  } from "./chunk-SZL743JC.mjs";
8
8
  import {
9
9
  Icon_default
10
- } from "./chunk-HLYTCS7L.mjs";
10
+ } from "./chunk-EM2NIGNZ.mjs";
11
11
  import {
12
12
  mapPropsVariants
13
13
  } from "./chunk-E3G5QXSH.mjs";
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  Icon_default
4
- } from "./chunk-HLYTCS7L.mjs";
4
+ } from "./chunk-EM2NIGNZ.mjs";
5
5
  import {
6
6
  mapPropsVariants
7
7
  } from "./chunk-E3G5QXSH.mjs";
@@ -4,13 +4,13 @@ import {
4
4
  } from "./chunk-2CLPU5LR.mjs";
5
5
  import {
6
6
  input_default
7
- } from "./chunk-ER3SUAE2.mjs";
7
+ } from "./chunk-CMMVXFHD.mjs";
8
8
  import {
9
9
  button_default
10
- } from "./chunk-F7PC2JAF.mjs";
10
+ } from "./chunk-SS6EG5JO.mjs";
11
11
  import {
12
12
  icon_button_default
13
- } from "./chunk-LZRBMVT7.mjs";
13
+ } from "./chunk-NV5Z6ZUO.mjs";
14
14
 
15
15
  // src/components/fileUpload/fileUpload.tsx
16
16
  import { useRef, useState, useEffect } from "react";
@@ -62,67 +62,75 @@ var AreaChartComponent = forwardRef((originalProps, ref) => {
62
62
  };
63
63
  return /* @__PURE__ */ jsxs("div", { ref, className: slots.base({ class: classNames == null ? void 0 : classNames.base }), children: [
64
64
  label && /* @__PURE__ */ jsx("p", { className: slots.label({ class: classNames == null ? void 0 : classNames.label }), children: label }),
65
- /* @__PURE__ */ jsx(ResponsiveContainer, { width: "100%", height: "100%", children: /* @__PURE__ */ jsxs(AreaChart, { data, margin: { left: -30 }, children: [
66
- /* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsxs("linearGradient", { id: `colorGradient-${uniqueId}`, x1: "0", y1: "0", x2: "0", y2: "1", children: [
67
- /* @__PURE__ */ jsx("stop", { offset: "5%", stopColor: colorHex, stopOpacity: 0.3 }),
68
- /* @__PURE__ */ jsx("stop", { offset: "95%", stopColor: colorHex, stopOpacity: 0 })
69
- ] }) }),
70
- /* @__PURE__ */ jsx(
71
- CartesianGrid,
72
- {
73
- vertical: true,
74
- horizontal: false,
75
- strokeDasharray: "3 3",
76
- className: "stroke-neutral-light",
77
- verticalPoints: tickPositions
78
- }
79
- ),
80
- /* @__PURE__ */ jsx(
81
- XAxis,
82
- {
83
- dataKey: "name",
84
- axisLine: { stroke: "#DFE2E7", strokeWidth: 1 },
85
- tickLine: false,
86
- tick: CustomTick,
87
- padding: { left: 35.5, right: 35.5 }
88
- }
89
- ),
90
- /* @__PURE__ */ jsx(
91
- YAxis,
92
- {
93
- axisLine: { stroke: "#DFE2E7", strokeWidth: 1 },
94
- tickLine: false,
95
- tick: {
96
- fontSize: 12,
97
- fontWeight: 700,
98
- fill: "text-body-foreground",
99
- textAnchor: "middle",
100
- dx: -10
101
- },
102
- ticks: [0, 20, 40, 60, 80, 100],
103
- domain: [-6, 110]
104
- }
105
- ),
106
- /* @__PURE__ */ jsx(
107
- Area,
108
- {
109
- type: "monotone",
110
- dataKey: "value",
111
- stroke: colorHex,
112
- strokeWidth: 2,
113
- fill: `url(#colorGradient-${uniqueId})`,
114
- dot: /* @__PURE__ */ jsx(CustomDotWithShadow, { stroke: colorHex, fill: colorHex }),
115
- activeDot: { r: 7, fill: colorHex }
116
- }
117
- )
118
- ] }) })
65
+ /* @__PURE__ */ jsx(ResponsiveContainer, { width: "100%", height: "100%", children: /* @__PURE__ */ jsxs(
66
+ AreaChart,
67
+ {
68
+ data,
69
+ margin: { left: -30 },
70
+ className: "[&_.recharts-surface]:outline-none [&_.recharts-surface]:focus:outline-none",
71
+ children: [
72
+ /* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsxs("linearGradient", { id: `colorGradient-${uniqueId}`, x1: "0", y1: "0", x2: "0", y2: "1", children: [
73
+ /* @__PURE__ */ jsx("stop", { offset: "5%", stopColor: colorHex, stopOpacity: 0.3 }),
74
+ /* @__PURE__ */ jsx("stop", { offset: "95%", stopColor: colorHex, stopOpacity: 0 })
75
+ ] }) }),
76
+ /* @__PURE__ */ jsx(
77
+ CartesianGrid,
78
+ {
79
+ vertical: true,
80
+ horizontal: false,
81
+ strokeDasharray: "3 3",
82
+ className: "stroke-neutral-light",
83
+ verticalPoints: tickPositions
84
+ }
85
+ ),
86
+ /* @__PURE__ */ jsx(
87
+ XAxis,
88
+ {
89
+ dataKey: "name",
90
+ axisLine: { stroke: "#DFE2E7", strokeWidth: 1 },
91
+ tickLine: false,
92
+ tick: CustomTick,
93
+ padding: { left: 35.5, right: 35.5 }
94
+ }
95
+ ),
96
+ /* @__PURE__ */ jsx(
97
+ YAxis,
98
+ {
99
+ axisLine: { stroke: "#DFE2E7", strokeWidth: 1 },
100
+ tickLine: false,
101
+ tick: {
102
+ fontSize: 12,
103
+ fontWeight: 700,
104
+ fill: "text-body-foreground",
105
+ textAnchor: "middle",
106
+ dx: -10
107
+ },
108
+ ticks: [0, 20, 40, 60, 80, 100],
109
+ domain: [-6, 110]
110
+ }
111
+ ),
112
+ /* @__PURE__ */ jsx(
113
+ Area,
114
+ {
115
+ type: "monotone",
116
+ dataKey: "value",
117
+ stroke: colorHex,
118
+ strokeWidth: 2,
119
+ fill: `url(#colorGradient-${uniqueId})`,
120
+ dot: /* @__PURE__ */ jsx(CustomDotWithShadow, { stroke: colorHex, fill: colorHex }),
121
+ activeDot: { r: 7, fill: colorHex }
122
+ }
123
+ )
124
+ ]
125
+ }
126
+ ) })
119
127
  ] });
120
128
  });
121
129
  AreaChartComponent.displayName = "AreaChart";
122
130
  var areaChart_default = AreaChartComponent;
123
131
  var areaChartStyle = tv({
124
132
  slots: {
125
- base: ["flex", "flex-col", "gap-[10px]"],
133
+ base: ["flex", "flex-col", "gap-[10px]", "select-none"],
126
134
  color: [],
127
135
  axis: ["text-sm", "font-bold", "text-center", "text-body-foreground"],
128
136
  label: ["text-md", "font-bold", "text-body-foreground"]
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  template
4
- } from "./chunk-LCWEO4U6.mjs";
4
+ } from "./chunk-CTWYY7Z2.mjs";
5
5
  import {
6
6
  tv
7
7
  } from "./chunk-CDXBML6O.mjs";
@@ -7,7 +7,7 @@ import {
7
7
  } from "./chunk-SZL743JC.mjs";
8
8
  import {
9
9
  Icon_default
10
- } from "./chunk-HLYTCS7L.mjs";
10
+ } from "./chunk-EM2NIGNZ.mjs";
11
11
  import {
12
12
  mapPropsVariants
13
13
  } from "./chunk-E3G5QXSH.mjs";
@@ -8,17 +8,20 @@ import {
8
8
 
9
9
  // src/components/charts/barChart.tsx
10
10
  import { forwardRef, useEffect, useMemo, useRef, useState } from "react";
11
- import { XAxis, YAxis, ResponsiveContainer, CartesianGrid, BarChart, Bar } from "recharts";
11
+ import { XAxis, YAxis, ResponsiveContainer, CartesianGrid, BarChart, Bar, Tooltip } from "recharts";
12
12
  import { jsx, jsxs } from "react/jsx-runtime";
13
13
  var BarChartComponent = forwardRef((originalProps, ref) => {
14
14
  const [props, variantProps] = mapPropsVariants(originalProps, barChartStyle.variantKeys);
15
- const { data, label, classNames } = { ...props, ...variantProps };
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
+ customTooltip
23
+ } = { ...props, ...variantProps };
16
24
  const slots = useMemo(() => barChartStyle({ ...variantProps }), [variantProps]);
17
- const COLOR_MAP = {
18
- primary: "#C7E5FA",
19
- secondary: "#92DCB2",
20
- warning: "#DEC1FA"
21
- };
22
25
  const [tickPositions, setTickPositions] = useState([]);
23
26
  const tickRef = useRef([]);
24
27
  const CustomBarShape = (barProps) => {
@@ -54,6 +57,28 @@ var BarChartComponent = forwardRef((originalProps, ref) => {
54
57
  }
55
58
  );
56
59
  };
60
+ const CustomYAxisTick = ({ x, y, payload }) => {
61
+ return /* @__PURE__ */ jsx(
62
+ "text",
63
+ {
64
+ x: x - 10,
65
+ y,
66
+ textAnchor: "middle",
67
+ fontSize: 12,
68
+ fontWeight: 700,
69
+ fill: "currentColor",
70
+ className: "text-body-foreground",
71
+ dy: 4,
72
+ children: yAxisTickFormatter(payload.value)
73
+ }
74
+ );
75
+ };
76
+ const CustomTooltip = ({ active, payload, label: label2 }) => {
77
+ if (customTooltip && active && payload && payload.length) {
78
+ return customTooltip({ active, payload, label: label2 });
79
+ }
80
+ return null;
81
+ };
57
82
  useEffect(() => {
58
83
  const raf = requestAnimationFrame(() => {
59
84
  const unique = [...new Set(tickRef.current)].sort((a, b) => a - b);
@@ -72,11 +97,25 @@ var BarChartComponent = forwardRef((originalProps, ref) => {
72
97
  BarChart,
73
98
  {
74
99
  data,
75
- margin: { left: -30 },
100
+ margin: { left: -20 },
76
101
  barSize: 20,
77
- barGap: 10,
102
+ barGap: 20,
78
103
  className: "[&_.recharts-surface]:outline-none [&_.recharts-surface]:focus:outline-none",
79
104
  children: [
105
+ /* @__PURE__ */ jsxs("defs", { children: [
106
+ /* @__PURE__ */ jsxs("linearGradient", { id: "blueGradient", x1: "0", y1: "0", x2: "0", y2: "1", children: [
107
+ /* @__PURE__ */ jsx("stop", { offset: "0%", stopColor: "#DEC1FA" }),
108
+ /* @__PURE__ */ jsx("stop", { offset: "100%", stopColor: "#3F9CF2" })
109
+ ] }),
110
+ /* @__PURE__ */ jsxs("linearGradient", { id: "greenGradient", x1: "0", y1: "0", x2: "0", y2: "1", children: [
111
+ /* @__PURE__ */ jsx("stop", { offset: "0%", stopColor: "#C2E59C" }),
112
+ /* @__PURE__ */ jsx("stop", { offset: "100%", stopColor: "#64B3F4" })
113
+ ] }),
114
+ /* @__PURE__ */ jsxs("linearGradient", { id: "pinkGradient", x1: "0", y1: "0", x2: "0", y2: "1", children: [
115
+ /* @__PURE__ */ jsx("stop", { offset: "0%", stopColor: "#DDD6F3" }),
116
+ /* @__PURE__ */ jsx("stop", { offset: "100%", stopColor: "#FAACA8" })
117
+ ] })
118
+ ] }),
80
119
  /* @__PURE__ */ jsx(
81
120
  CartesianGrid,
82
121
  {
@@ -90,7 +129,7 @@ var BarChartComponent = forwardRef((originalProps, ref) => {
90
129
  /* @__PURE__ */ jsx(
91
130
  XAxis,
92
131
  {
93
- dataKey: "name",
132
+ dataKey: "title",
94
133
  axisLine: { stroke: "#DFE2E7", strokeWidth: 1 },
95
134
  tickLine: false,
96
135
  tick: CustomTick,
@@ -102,20 +141,15 @@ var BarChartComponent = forwardRef((originalProps, ref) => {
102
141
  {
103
142
  axisLine: { stroke: "#DFE2E7", strokeWidth: 1 },
104
143
  tickLine: false,
105
- tick: {
106
- fontSize: 12,
107
- fontWeight: 700,
108
- fill: "text-body-foreground",
109
- textAnchor: "middle",
110
- dx: -10
111
- },
112
- ticks: [0, 20, 40, 60, 80, 100],
113
- domain: [-6, 110]
144
+ tick: CustomYAxisTick,
145
+ ticks: yAxisTicks,
146
+ domain: yAxisDomain
114
147
  }
115
148
  ),
116
- /* @__PURE__ */ jsx(Bar, { dataKey: "avg", fill: COLOR_MAP.primary, width: 20, shape: CustomBarShape }),
117
- /* @__PURE__ */ jsx(Bar, { dataKey: "high", fill: COLOR_MAP.secondary, width: 20, shape: CustomBarShape }),
118
- /* @__PURE__ */ jsx(Bar, { dataKey: "low", fill: COLOR_MAP.warning, width: 20, shape: CustomBarShape })
149
+ customTooltip && /* @__PURE__ */ jsx(Tooltip, { content: /* @__PURE__ */ jsx(CustomTooltip, {}), cursor: { fill: "transparent" } }),
150
+ /* @__PURE__ */ jsx(Bar, { dataKey: "blue", fill: "url(#blueGradient)", width: 20, shape: CustomBarShape }),
151
+ /* @__PURE__ */ jsx(Bar, { dataKey: "green", fill: "url(#greenGradient)", width: 20, shape: CustomBarShape }),
152
+ /* @__PURE__ */ jsx(Bar, { dataKey: "pink", fill: "url(#pinkGradient)", width: 20, shape: CustomBarShape })
119
153
  ]
120
154
  }
121
155
  ) })
@@ -26,31 +26,39 @@ var RadarChart = forwardRef((originalProps, ref) => {
26
26
  return Math.max(...data.map((item) => item.fullMark || 100));
27
27
  }, [data]);
28
28
  return /* @__PURE__ */ jsxs("div", { ref, className: slots.base({ class: classNames == null ? void 0 : classNames.base }), children: [
29
- /* @__PURE__ */ jsx(ResponsiveContainer, { width: 580, height: 330, children: /* @__PURE__ */ jsxs(RechartsRadarChart, { data, outerRadius: "80%", children: [
30
- /* @__PURE__ */ jsx(PolarGrid, { stroke: "#DFE2E7", strokeWidth: 1.75 }),
31
- /* @__PURE__ */ jsx(
32
- PolarAngleAxis,
33
- {
34
- dataKey: "name",
35
- tick: { fill: "#333", fontSize: 12, fontWeight: "bold" },
36
- tickFormatter: (value) => value,
37
- tickSize: 15
38
- }
39
- ),
40
- /* @__PURE__ */ jsx(PolarRadiusAxis, { domain: [0, maxFullMark], tick: false, tickCount: 6, axisLine: false }),
41
- /* @__PURE__ */ jsx(
42
- Radar,
43
- {
44
- name: label,
45
- dataKey: "value",
46
- stroke: "#3F9CF2",
47
- fill: "#C7E5FA",
48
- strokeWidth: 1.75,
49
- dot: false,
50
- activeDot: false
51
- }
52
- )
53
- ] }) }),
29
+ /* @__PURE__ */ jsx(ResponsiveContainer, { width: 580, height: 330, children: /* @__PURE__ */ jsxs(
30
+ RechartsRadarChart,
31
+ {
32
+ data,
33
+ outerRadius: "80%",
34
+ className: "[&_.recharts-surface]:outline-none [&_.recharts-surface]:focus:outline-none",
35
+ children: [
36
+ /* @__PURE__ */ jsx(PolarGrid, { stroke: "#DFE2E7", strokeWidth: 1.75 }),
37
+ /* @__PURE__ */ jsx(
38
+ PolarAngleAxis,
39
+ {
40
+ dataKey: "name",
41
+ tick: { fill: "#333", fontSize: 12, fontWeight: "bold" },
42
+ tickFormatter: (value) => value,
43
+ tickSize: 15
44
+ }
45
+ ),
46
+ /* @__PURE__ */ jsx(PolarRadiusAxis, { domain: [0, maxFullMark], tick: false, tickCount: 6, axisLine: false }),
47
+ /* @__PURE__ */ jsx(
48
+ Radar,
49
+ {
50
+ name: label,
51
+ dataKey: "value",
52
+ stroke: "#3F9CF2",
53
+ fill: "#EFF8FF",
54
+ strokeWidth: 1.75,
55
+ dot: false,
56
+ activeDot: false
57
+ }
58
+ )
59
+ ]
60
+ }
61
+ ) }),
54
62
  label && /* @__PURE__ */ jsx("p", { className: slots.label({ class: classNames == null ? void 0 : classNames.label }), children: label })
55
63
  ] });
56
64
  });
@@ -58,7 +66,7 @@ RadarChart.displayName = "RadarChart";
58
66
  var radarChart_default = RadarChart;
59
67
  var radarChartStyle = tv({
60
68
  slots: {
61
- base: ["flex", "flex-col", "items-center", "gap-[10px]"],
69
+ base: ["flex", "flex-col", "items-center", "gap-[10px]", "select-none"],
62
70
  label: ["text-sm", "font-bold", "text-left", "text-body-foreground"]
63
71
  },
64
72
  variants: {},
@@ -102,7 +102,7 @@ CircularProgress.displayName = "CircularProgress";
102
102
  var circularProgress_default = CircularProgress;
103
103
  var circularProgressStyle = tv({
104
104
  slots: {
105
- base: ["flex", "flex-col", "items-center", "gap-[20px]"],
105
+ base: ["flex", "flex-col", "items-center", "gap-[20px]", "select-none"],
106
106
  background: ["fill-body-background", "border-neutral-light"],
107
107
  progress: ["transition-all", "duration-1000 ease-out"],
108
108
  percentage: ["text-xl", "font-bold", "text-body-foreground"],
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  Icon_default
4
- } from "./chunk-HLYTCS7L.mjs";
4
+ } from "./chunk-EM2NIGNZ.mjs";
5
5
  import {
6
6
  tv
7
7
  } from "./chunk-CDXBML6O.mjs";
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  Icon_default
4
- } from "./chunk-HLYTCS7L.mjs";
4
+ } from "./chunk-EM2NIGNZ.mjs";
5
5
  import {
6
6
  mapPropsVariants
7
7
  } from "./chunk-E3G5QXSH.mjs";