@deepnoid/ui 0.1.122 → 0.1.124
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.
- package/.turbo/turbo-build.log +168 -168
- package/dist/{chunk-5MINOKNM.mjs → chunk-2GFE25AI.mjs} +1 -1
- package/dist/{chunk-4DESGO3D.mjs → chunk-2TDHQLVV.mjs} +1 -1
- package/dist/{chunk-XOUAUSP4.mjs → chunk-3HY74IGR.mjs} +1 -1
- package/dist/{chunk-H6JGLPPF.mjs → chunk-3U5NJTRH.mjs} +1 -1
- package/dist/{chunk-27K5BTEL.mjs → chunk-3ZF7LQOM.mjs} +5 -5
- package/dist/{chunk-S7Y7XUBL.mjs → chunk-5XV45JBV.mjs} +1 -1
- package/dist/{chunk-VB5NKWJG.mjs → chunk-5XW5QDIW.mjs} +1 -1
- package/dist/{chunk-6JLHCQH7.mjs → chunk-6UKNZTOL.mjs} +1 -1
- package/dist/{chunk-CDXBML6O.mjs → chunk-76QIZILI.mjs} +6 -3
- package/dist/{chunk-NBJHZ4X2.mjs → chunk-BBRPAQON.mjs} +1 -1
- package/dist/{chunk-RVFSQFWS.mjs → chunk-C5IJSWWJ.mjs} +4 -4
- package/dist/{chunk-I3ADJOUT.mjs → chunk-CVXLLXLE.mjs} +1 -1
- package/dist/{chunk-LOYDOCOR.mjs → chunk-F4ORNNYB.mjs} +2 -2
- package/dist/{chunk-ITWKPTSD.mjs → chunk-GUTGDPXH.mjs} +1 -1
- package/dist/{chunk-3F6OF2QS.mjs → chunk-HKONMHXA.mjs} +1 -1
- package/dist/{chunk-WB7Z54CF.mjs → chunk-HO533YTO.mjs} +10 -10
- package/dist/chunk-IHLCZM5T.mjs +198 -0
- package/dist/{chunk-AF4I7ZQS.mjs → chunk-IW2MDZBW.mjs} +1 -1
- package/dist/{chunk-FF56E2UQ.mjs → chunk-J7IIHQNA.mjs} +1 -1
- package/dist/{chunk-DD6HAIW3.mjs → chunk-KJ7L6CO6.mjs} +1 -1
- package/dist/{chunk-HX64P3XQ.mjs → chunk-KRGI6HW7.mjs} +2 -2
- package/dist/{chunk-GZEAMYAO.mjs → chunk-LX7NPKFE.mjs} +1 -1
- package/dist/{chunk-2CLPU5LR.mjs → chunk-MCBAEW2Q.mjs} +1 -1
- package/dist/{chunk-UA24L44Z.mjs → chunk-OEFILEL3.mjs} +25 -7
- package/dist/{chunk-VOKDAIUY.mjs → chunk-OL22LVBG.mjs} +1 -1
- package/dist/{chunk-3IILPVRA.mjs → chunk-P3PXIJTU.mjs} +1 -1
- package/dist/{chunk-E2LGBO2H.mjs → chunk-QXYGQPY3.mjs} +2 -2
- package/dist/{chunk-Q364C3FI.mjs → chunk-SDUDU3CU.mjs} +1 -1
- package/dist/{chunk-D6MHTE5L.mjs → chunk-SJNXRXV5.mjs} +1 -1
- package/dist/{chunk-DLNGJVFS.mjs → chunk-TSBG5FXL.mjs} +1 -1
- package/dist/{chunk-OGJONB7G.mjs → chunk-WNNOVISA.mjs} +1 -1
- package/dist/{chunk-AT6GNVOQ.mjs → chunk-WOGNHRNX.mjs} +1 -1
- package/dist/{chunk-2IOTRPCS.mjs → chunk-WUGITHV6.mjs} +4 -4
- package/dist/{chunk-EKLA6ZR4.mjs → chunk-XL3K55LE.mjs} +1 -1
- package/dist/{chunk-VEBJS4SC.mjs → chunk-Y3CGQN3I.mjs} +3 -3
- package/dist/{chunk-YBVJFHH6.mjs → chunk-YGOX6FBU.mjs} +1 -1
- package/dist/components/accordion/accordion.mjs +2 -2
- package/dist/components/accordion/accordionItem.mjs +2 -2
- package/dist/components/accordion/index.mjs +3 -3
- package/dist/components/avatar/avatar.mjs +2 -2
- package/dist/components/avatar/index.mjs +2 -2
- package/dist/components/backdrop/backdrop.mjs +2 -2
- package/dist/components/backdrop/index.mjs +2 -2
- package/dist/components/breadcrumb/breadcrumb.mjs +6 -6
- package/dist/components/breadcrumb/index.mjs +6 -6
- package/dist/components/button/button-group.mjs +2 -2
- package/dist/components/button/button.mjs +2 -2
- package/dist/components/button/icon-button.mjs +2 -2
- package/dist/components/button/index.mjs +7 -7
- package/dist/components/button/text-button.mjs +2 -2
- package/dist/components/charts/areaChart.d.mts +5 -0
- package/dist/components/charts/areaChart.d.ts +5 -0
- package/dist/components/charts/areaChart.js +191 -73
- package/dist/components/charts/areaChart.mjs +5 -2
- package/dist/components/charts/barChart.mjs +2 -2
- package/dist/components/charts/circularProgress.mjs +2 -2
- package/dist/components/charts/index.js +247 -109
- package/dist/components/charts/index.mjs +10 -7
- package/dist/components/charts/radarChart.js +24 -6
- package/dist/components/charts/radarChart.mjs +2 -2
- package/dist/components/checkbox/checkbox.mjs +2 -2
- package/dist/components/checkbox/index.mjs +2 -2
- package/dist/components/chip/chip.mjs +2 -2
- package/dist/components/chip/index.mjs +2 -2
- package/dist/components/drawer/drawer.mjs +2 -2
- package/dist/components/drawer/index.mjs +2 -2
- package/dist/components/fileUpload/fileUpload.mjs +8 -8
- package/dist/components/fileUpload/index.mjs +8 -8
- package/dist/components/input/index.mjs +2 -2
- package/dist/components/input/input.mjs +2 -2
- package/dist/components/list/index.mjs +4 -4
- package/dist/components/list/list.mjs +2 -2
- package/dist/components/list/listItem.mjs +3 -3
- package/dist/components/modal/index.mjs +7 -7
- package/dist/components/modal/modal.mjs +7 -7
- package/dist/components/pagination/index.mjs +3 -3
- package/dist/components/pagination/pagination.mjs +3 -3
- package/dist/components/picker/datePicker.mjs +8 -8
- package/dist/components/picker/day.mjs +2 -2
- package/dist/components/picker/index.mjs +11 -11
- package/dist/components/picker/timePicker.mjs +3 -3
- package/dist/components/progress/index.mjs +2 -2
- package/dist/components/progress/progress.mjs +2 -2
- package/dist/components/radio/index.mjs +2 -2
- package/dist/components/radio/radio.mjs +2 -2
- package/dist/components/select/index.mjs +2 -2
- package/dist/components/select/select.mjs +2 -2
- package/dist/components/table/definition-table.mjs +2 -2
- package/dist/components/table/form-table.mjs +1 -1
- package/dist/components/table/index.mjs +10 -10
- package/dist/components/table/table-body.mjs +7 -7
- package/dist/components/table/table-head.mjs +7 -7
- package/dist/components/table/table.mjs +7 -7
- package/dist/components/tabs/index.mjs +2 -2
- package/dist/components/tabs/tabs.mjs +2 -2
- package/dist/components/toast/index.mjs +3 -3
- package/dist/components/toast/toast.mjs +2 -2
- package/dist/components/toast/use-toast.mjs +3 -3
- package/dist/components/tooltip/index.mjs +2 -2
- package/dist/components/tooltip/tooltip.mjs +2 -2
- package/dist/components/tree/index.mjs +2 -2
- package/dist/components/tree/tree.mjs +2 -2
- package/dist/index.js +136 -75
- package/dist/index.mjs +63 -63
- package/dist/utils/tailwind-variants.mjs +1 -1
- package/package.json +1 -1
- package/dist/chunk-QKRCC26D.mjs +0 -155
|
@@ -2,23 +2,23 @@
|
|
|
2
2
|
import {
|
|
3
3
|
getCellStyle,
|
|
4
4
|
table_default
|
|
5
|
-
} from "../../chunk-
|
|
5
|
+
} from "../../chunk-3ZF7LQOM.mjs";
|
|
6
6
|
import "../../chunk-MZ76AA76.mjs";
|
|
7
7
|
import "../../chunk-6PN3DGOE.mjs";
|
|
8
|
-
import "../../chunk-DQRAFUDA.mjs";
|
|
9
|
-
import "../../chunk-M37VBNB3.mjs";
|
|
10
8
|
import "../../chunk-7B7LRG5J.mjs";
|
|
11
|
-
import "../../chunk-
|
|
9
|
+
import "../../chunk-KRGI6HW7.mjs";
|
|
12
10
|
import "../../chunk-F3HENRVM.mjs";
|
|
13
11
|
import "../../chunk-2GCSFWHD.mjs";
|
|
14
|
-
import "../../chunk-
|
|
12
|
+
import "../../chunk-HKONMHXA.mjs";
|
|
15
13
|
import "../../chunk-QZ3LVYJW.mjs";
|
|
16
|
-
import "../../chunk-
|
|
14
|
+
import "../../chunk-3U5NJTRH.mjs";
|
|
17
15
|
import "../../chunk-ZYIIXWVY.mjs";
|
|
18
16
|
import "../../chunk-YZ57UYAS.mjs";
|
|
17
|
+
import "../../chunk-DQRAFUDA.mjs";
|
|
18
|
+
import "../../chunk-M37VBNB3.mjs";
|
|
19
19
|
import "../../chunk-E3G5QXSH.mjs";
|
|
20
20
|
import "../../chunk-BG4DIGKH.mjs";
|
|
21
|
-
import "../../chunk-
|
|
21
|
+
import "../../chunk-76QIZILI.mjs";
|
|
22
22
|
import "../../chunk-27Y6K5NK.mjs";
|
|
23
23
|
import "../../chunk-AC6TWLRT.mjs";
|
|
24
24
|
export {
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import "../../chunk-3MY6LO7N.mjs";
|
|
3
3
|
import {
|
|
4
4
|
tabs_default
|
|
5
|
-
} from "../../chunk-
|
|
5
|
+
} from "../../chunk-BBRPAQON.mjs";
|
|
6
6
|
import "../../chunk-E3G5QXSH.mjs";
|
|
7
|
-
import "../../chunk-
|
|
7
|
+
import "../../chunk-76QIZILI.mjs";
|
|
8
8
|
import "../../chunk-AC6TWLRT.mjs";
|
|
9
9
|
export {
|
|
10
10
|
tabs_default as Tabs
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import {
|
|
3
3
|
tabs,
|
|
4
4
|
tabs_default
|
|
5
|
-
} from "../../chunk-
|
|
5
|
+
} from "../../chunk-BBRPAQON.mjs";
|
|
6
6
|
import "../../chunk-E3G5QXSH.mjs";
|
|
7
|
-
import "../../chunk-
|
|
7
|
+
import "../../chunk-76QIZILI.mjs";
|
|
8
8
|
import "../../chunk-AC6TWLRT.mjs";
|
|
9
9
|
export {
|
|
10
10
|
tabs_default as default,
|
|
@@ -3,16 +3,16 @@ import "../../chunk-LUWGOKLG.mjs";
|
|
|
3
3
|
import {
|
|
4
4
|
ToastProvider,
|
|
5
5
|
useToast
|
|
6
|
-
} from "../../chunk-
|
|
6
|
+
} from "../../chunk-KJ7L6CO6.mjs";
|
|
7
7
|
import "../../chunk-ZOTHPHXA.mjs";
|
|
8
8
|
import {
|
|
9
9
|
toast_default
|
|
10
|
-
} from "../../chunk-
|
|
10
|
+
} from "../../chunk-TSBG5FXL.mjs";
|
|
11
11
|
import "../../chunk-ZYIIXWVY.mjs";
|
|
12
12
|
import "../../chunk-YZ57UYAS.mjs";
|
|
13
13
|
import "../../chunk-E3G5QXSH.mjs";
|
|
14
14
|
import "../../chunk-BG4DIGKH.mjs";
|
|
15
|
-
import "../../chunk-
|
|
15
|
+
import "../../chunk-76QIZILI.mjs";
|
|
16
16
|
import "../../chunk-27Y6K5NK.mjs";
|
|
17
17
|
import "../../chunk-AC6TWLRT.mjs";
|
|
18
18
|
export {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
toast_default
|
|
4
|
-
} from "../../chunk-
|
|
4
|
+
} from "../../chunk-TSBG5FXL.mjs";
|
|
5
5
|
import "../../chunk-ZYIIXWVY.mjs";
|
|
6
6
|
import "../../chunk-YZ57UYAS.mjs";
|
|
7
7
|
import "../../chunk-E3G5QXSH.mjs";
|
|
8
8
|
import "../../chunk-BG4DIGKH.mjs";
|
|
9
|
-
import "../../chunk-
|
|
9
|
+
import "../../chunk-76QIZILI.mjs";
|
|
10
10
|
import "../../chunk-27Y6K5NK.mjs";
|
|
11
11
|
import "../../chunk-AC6TWLRT.mjs";
|
|
12
12
|
export {
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
import {
|
|
3
3
|
ToastProvider,
|
|
4
4
|
useToast
|
|
5
|
-
} from "../../chunk-
|
|
5
|
+
} from "../../chunk-KJ7L6CO6.mjs";
|
|
6
6
|
import "../../chunk-ZOTHPHXA.mjs";
|
|
7
|
-
import "../../chunk-
|
|
7
|
+
import "../../chunk-TSBG5FXL.mjs";
|
|
8
8
|
import "../../chunk-ZYIIXWVY.mjs";
|
|
9
9
|
import "../../chunk-YZ57UYAS.mjs";
|
|
10
10
|
import "../../chunk-E3G5QXSH.mjs";
|
|
11
11
|
import "../../chunk-BG4DIGKH.mjs";
|
|
12
|
-
import "../../chunk-
|
|
12
|
+
import "../../chunk-76QIZILI.mjs";
|
|
13
13
|
import "../../chunk-27Y6K5NK.mjs";
|
|
14
14
|
import "../../chunk-AC6TWLRT.mjs";
|
|
15
15
|
export {
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
import "../../chunk-HIE2YRGA.mjs";
|
|
3
3
|
import {
|
|
4
4
|
tooltip_default
|
|
5
|
-
} from "../../chunk-
|
|
5
|
+
} from "../../chunk-YGOX6FBU.mjs";
|
|
6
6
|
import "../../chunk-ZMOAFSYE.mjs";
|
|
7
7
|
import "../../chunk-WSIADHVC.mjs";
|
|
8
8
|
import "../../chunk-E3G5QXSH.mjs";
|
|
9
|
-
import "../../chunk-
|
|
9
|
+
import "../../chunk-76QIZILI.mjs";
|
|
10
10
|
import "../../chunk-AC6TWLRT.mjs";
|
|
11
11
|
export {
|
|
12
12
|
tooltip_default as Tooltip
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
tooltip_default
|
|
4
|
-
} from "../../chunk-
|
|
4
|
+
} from "../../chunk-YGOX6FBU.mjs";
|
|
5
5
|
import "../../chunk-ZMOAFSYE.mjs";
|
|
6
6
|
import "../../chunk-WSIADHVC.mjs";
|
|
7
7
|
import "../../chunk-E3G5QXSH.mjs";
|
|
8
|
-
import "../../chunk-
|
|
8
|
+
import "../../chunk-76QIZILI.mjs";
|
|
9
9
|
import "../../chunk-AC6TWLRT.mjs";
|
|
10
10
|
export {
|
|
11
11
|
tooltip_default as default
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
import "../../chunk-MBLZYQCN.mjs";
|
|
3
3
|
import {
|
|
4
4
|
tree_default
|
|
5
|
-
} from "../../chunk-
|
|
5
|
+
} from "../../chunk-2GFE25AI.mjs";
|
|
6
6
|
import "../../chunk-ZYIIXWVY.mjs";
|
|
7
7
|
import "../../chunk-YZ57UYAS.mjs";
|
|
8
8
|
import "../../chunk-BG4DIGKH.mjs";
|
|
9
|
-
import "../../chunk-
|
|
9
|
+
import "../../chunk-76QIZILI.mjs";
|
|
10
10
|
import "../../chunk-27Y6K5NK.mjs";
|
|
11
11
|
import "../../chunk-AC6TWLRT.mjs";
|
|
12
12
|
export {
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
import {
|
|
3
3
|
Tree,
|
|
4
4
|
tree_default
|
|
5
|
-
} from "../../chunk-
|
|
5
|
+
} from "../../chunk-2GFE25AI.mjs";
|
|
6
6
|
import "../../chunk-ZYIIXWVY.mjs";
|
|
7
7
|
import "../../chunk-YZ57UYAS.mjs";
|
|
8
8
|
import "../../chunk-BG4DIGKH.mjs";
|
|
9
|
-
import "../../chunk-
|
|
9
|
+
import "../../chunk-76QIZILI.mjs";
|
|
10
10
|
import "../../chunk-27Y6K5NK.mjs";
|
|
11
11
|
import "../../chunk-AC6TWLRT.mjs";
|
|
12
12
|
export {
|
package/dist/index.js
CHANGED
|
@@ -548,7 +548,8 @@ var scrollbar = {
|
|
|
548
548
|
height: "6px"
|
|
549
549
|
},
|
|
550
550
|
"&::-webkit-scrollbar-thumb": {
|
|
551
|
-
backgroundColor: "
|
|
551
|
+
backgroundColor: "#3F9CF2",
|
|
552
|
+
// "rgba(0, 0, 0, 0.05)",
|
|
552
553
|
borderRadius: "100px"
|
|
553
554
|
},
|
|
554
555
|
"&::-webkit-scrollbar-track": {
|
|
@@ -561,7 +562,8 @@ var scrollbar = {
|
|
|
561
562
|
height: "8px"
|
|
562
563
|
},
|
|
563
564
|
"&::-webkit-scrollbar-thumb": {
|
|
564
|
-
backgroundColor: "
|
|
565
|
+
backgroundColor: "#3F9CF2",
|
|
566
|
+
// "rgba(0, 0, 0, 0.05)",
|
|
565
567
|
borderRadius: "100px"
|
|
566
568
|
},
|
|
567
569
|
"&::-webkit-scrollbar-track": {
|
|
@@ -574,7 +576,8 @@ var scrollbar = {
|
|
|
574
576
|
height: "10px"
|
|
575
577
|
},
|
|
576
578
|
"&::-webkit-scrollbar-thumb": {
|
|
577
|
-
backgroundColor: "
|
|
579
|
+
backgroundColor: "#3F9CF2",
|
|
580
|
+
// "rgba(0, 0, 0, 0.05)",
|
|
578
581
|
borderRadius: "100px"
|
|
579
582
|
},
|
|
580
583
|
"&::-webkit-scrollbar-track": {
|
|
@@ -12212,24 +12215,48 @@ var import_jsx_runtime42 = require("react/jsx-runtime");
|
|
|
12212
12215
|
var AreaChartComponent = (0, import_react39.forwardRef)((originalProps, ref) => {
|
|
12213
12216
|
const uniqueId = (0, import_react39.useId)();
|
|
12214
12217
|
const [props, variantProps] = mapPropsVariants(originalProps, areaChartStyle.variantKeys);
|
|
12215
|
-
const {
|
|
12218
|
+
const {
|
|
12219
|
+
data,
|
|
12220
|
+
label,
|
|
12221
|
+
headerContent,
|
|
12222
|
+
color = "primary",
|
|
12223
|
+
startFromZero = false,
|
|
12224
|
+
itemWidth,
|
|
12225
|
+
chartHeight = 240,
|
|
12226
|
+
classNames
|
|
12227
|
+
} = { ...props, ...variantProps };
|
|
12216
12228
|
const slots = (0, import_react39.useMemo)(() => areaChartStyle({ ...variantProps }), [variantProps]);
|
|
12217
12229
|
const COLOR_MAP = {
|
|
12218
12230
|
primary: "#3F9CF2",
|
|
12219
12231
|
danger: "#FF4684"
|
|
12220
12232
|
};
|
|
12221
12233
|
const colorHex = (0, import_react39.useMemo)(() => COLOR_MAP[color], [color]);
|
|
12234
|
+
const totalChartWidth = (0, import_react39.useMemo)(() => {
|
|
12235
|
+
if (!data || !itemWidth) return void 0;
|
|
12236
|
+
const dataLength = startFromZero ? data.length + 1 : data.length;
|
|
12237
|
+
return dataLength * itemWidth;
|
|
12238
|
+
}, [data, itemWidth, startFromZero]);
|
|
12239
|
+
const needsScroll = (0, import_react39.useMemo)(() => {
|
|
12240
|
+
return totalChartWidth;
|
|
12241
|
+
}, [totalChartWidth]);
|
|
12242
|
+
const processedData = (0, import_react39.useMemo)(() => {
|
|
12243
|
+
if (!data) return [];
|
|
12244
|
+
return data;
|
|
12245
|
+
}, [data, startFromZero]);
|
|
12222
12246
|
const [tickPositions, setTickPositions] = (0, import_react39.useState)([]);
|
|
12223
12247
|
const tickRef = (0, import_react39.useRef)([]);
|
|
12224
12248
|
const CustomTick = ({ x, y, payload }) => {
|
|
12225
12249
|
if (x !== void 0) {
|
|
12226
12250
|
tickRef.current.push(x);
|
|
12227
12251
|
}
|
|
12252
|
+
if (startFromZero && payload.value === "") {
|
|
12253
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("g", {});
|
|
12254
|
+
}
|
|
12228
12255
|
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
12229
12256
|
"text",
|
|
12230
12257
|
{
|
|
12231
12258
|
x,
|
|
12232
|
-
y: y +
|
|
12259
|
+
y: y + 11,
|
|
12233
12260
|
textAnchor: "middle",
|
|
12234
12261
|
fontSize: 12,
|
|
12235
12262
|
fontWeight: 700,
|
|
@@ -12250,79 +12277,95 @@ var AreaChartComponent = (0, import_react39.forwardRef)((originalProps, ref) =>
|
|
|
12250
12277
|
tickRef.current = [];
|
|
12251
12278
|
});
|
|
12252
12279
|
return () => cancelAnimationFrame(raf);
|
|
12253
|
-
}, [
|
|
12280
|
+
}, [processedData]);
|
|
12254
12281
|
const CustomDotWithShadow = (props2) => {
|
|
12255
|
-
const { cx, cy, fill, stroke } = props2;
|
|
12282
|
+
const { cx, cy, fill, stroke, payload } = props2;
|
|
12256
12283
|
if (cx === void 0 || cy === void 0) return null;
|
|
12284
|
+
if (startFromZero && (payload == null ? void 0 : payload.name) === "") {
|
|
12285
|
+
return null;
|
|
12286
|
+
}
|
|
12257
12287
|
return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(import_jsx_runtime42.Fragment, { children: [
|
|
12258
12288
|
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)("circle", { cx, cy, r: 8, fill, opacity: 0.2 }),
|
|
12259
12289
|
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)("circle", { cx, cy, r: 3.5, fill, stroke, strokeWidth: 2 })
|
|
12260
12290
|
] });
|
|
12261
12291
|
};
|
|
12292
|
+
const chartContent = /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
12293
|
+
"div",
|
|
12294
|
+
{
|
|
12295
|
+
style: {
|
|
12296
|
+
width: totalChartWidth || "100%",
|
|
12297
|
+
minWidth: totalChartWidth || "100%"
|
|
12298
|
+
},
|
|
12299
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
|
|
12300
|
+
import_recharts2.AreaChart,
|
|
12301
|
+
{
|
|
12302
|
+
width: totalChartWidth || 400,
|
|
12303
|
+
height: chartHeight + 30,
|
|
12304
|
+
data: processedData,
|
|
12305
|
+
margin: { left: -30 },
|
|
12306
|
+
className: "bg-body-background [&_.recharts-surface]:outline-none [&_.recharts-surface]:focus:outline-none",
|
|
12307
|
+
children: [
|
|
12308
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("linearGradient", { id: `colorGradient-${uniqueId}`, x1: "0", y1: "0", x2: "0", y2: "1", children: [
|
|
12309
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)("stop", { offset: "5%", stopColor: colorHex, stopOpacity: 0.3 }),
|
|
12310
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)("stop", { offset: "95%", stopColor: colorHex, stopOpacity: 0 })
|
|
12311
|
+
] }) }),
|
|
12312
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
12313
|
+
import_recharts2.CartesianGrid,
|
|
12314
|
+
{
|
|
12315
|
+
vertical: true,
|
|
12316
|
+
horizontal: false,
|
|
12317
|
+
strokeDasharray: "3 3",
|
|
12318
|
+
className: "stroke-neutral-light",
|
|
12319
|
+
verticalPoints: tickPositions
|
|
12320
|
+
}
|
|
12321
|
+
),
|
|
12322
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
12323
|
+
import_recharts2.XAxis,
|
|
12324
|
+
{
|
|
12325
|
+
dataKey: "name",
|
|
12326
|
+
axisLine: { stroke: "#DFE2E7", strokeWidth: 1 },
|
|
12327
|
+
tickLine: false,
|
|
12328
|
+
tick: CustomTick,
|
|
12329
|
+
padding: { left: 35.5, right: 35.5 }
|
|
12330
|
+
}
|
|
12331
|
+
),
|
|
12332
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
12333
|
+
import_recharts2.YAxis,
|
|
12334
|
+
{
|
|
12335
|
+
axisLine: { stroke: "#DFE2E7", strokeWidth: 1 },
|
|
12336
|
+
tickLine: false,
|
|
12337
|
+
tick: {
|
|
12338
|
+
fontSize: 12,
|
|
12339
|
+
fontWeight: 700,
|
|
12340
|
+
fill: "text-body-foreground",
|
|
12341
|
+
textAnchor: "middle",
|
|
12342
|
+
dx: -10
|
|
12343
|
+
},
|
|
12344
|
+
ticks: [0, 20, 40, 60, 80, 100],
|
|
12345
|
+
domain: [-6, 110]
|
|
12346
|
+
}
|
|
12347
|
+
),
|
|
12348
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
12349
|
+
import_recharts2.Area,
|
|
12350
|
+
{
|
|
12351
|
+
type: "monotone",
|
|
12352
|
+
dataKey: "value",
|
|
12353
|
+
stroke: colorHex,
|
|
12354
|
+
strokeWidth: 2,
|
|
12355
|
+
fill: `url(#colorGradient-${uniqueId})`,
|
|
12356
|
+
dot: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(CustomDotWithShadow, { stroke: colorHex, fill: colorHex }),
|
|
12357
|
+
activeDot: false
|
|
12358
|
+
}
|
|
12359
|
+
)
|
|
12360
|
+
]
|
|
12361
|
+
}
|
|
12362
|
+
)
|
|
12363
|
+
}
|
|
12364
|
+
);
|
|
12262
12365
|
return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { ref, className: slots.base({ class: classNames == null ? void 0 : classNames.base }), children: [
|
|
12263
12366
|
label && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("p", { className: slots.label({ class: classNames == null ? void 0 : classNames.label }), children: label }),
|
|
12264
|
-
|
|
12265
|
-
|
|
12266
|
-
{
|
|
12267
|
-
data,
|
|
12268
|
-
margin: { left: -30 },
|
|
12269
|
-
className: "[&_.recharts-surface]:outline-none [&_.recharts-surface]:focus:outline-none",
|
|
12270
|
-
children: [
|
|
12271
|
-
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("linearGradient", { id: `colorGradient-${uniqueId}`, x1: "0", y1: "0", x2: "0", y2: "1", children: [
|
|
12272
|
-
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)("stop", { offset: "5%", stopColor: colorHex, stopOpacity: 0.3 }),
|
|
12273
|
-
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)("stop", { offset: "95%", stopColor: colorHex, stopOpacity: 0 })
|
|
12274
|
-
] }) }),
|
|
12275
|
-
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
12276
|
-
import_recharts2.CartesianGrid,
|
|
12277
|
-
{
|
|
12278
|
-
vertical: true,
|
|
12279
|
-
horizontal: false,
|
|
12280
|
-
strokeDasharray: "3 3",
|
|
12281
|
-
className: "stroke-neutral-light",
|
|
12282
|
-
verticalPoints: tickPositions
|
|
12283
|
-
}
|
|
12284
|
-
),
|
|
12285
|
-
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
12286
|
-
import_recharts2.XAxis,
|
|
12287
|
-
{
|
|
12288
|
-
dataKey: "name",
|
|
12289
|
-
axisLine: { stroke: "#DFE2E7", strokeWidth: 1 },
|
|
12290
|
-
tickLine: false,
|
|
12291
|
-
tick: CustomTick,
|
|
12292
|
-
padding: { left: 35.5, right: 35.5 }
|
|
12293
|
-
}
|
|
12294
|
-
),
|
|
12295
|
-
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
12296
|
-
import_recharts2.YAxis,
|
|
12297
|
-
{
|
|
12298
|
-
axisLine: { stroke: "#DFE2E7", strokeWidth: 1 },
|
|
12299
|
-
tickLine: false,
|
|
12300
|
-
tick: {
|
|
12301
|
-
fontSize: 12,
|
|
12302
|
-
fontWeight: 700,
|
|
12303
|
-
fill: "text-body-foreground",
|
|
12304
|
-
textAnchor: "middle",
|
|
12305
|
-
dx: -10
|
|
12306
|
-
},
|
|
12307
|
-
ticks: [0, 20, 40, 60, 80, 100],
|
|
12308
|
-
domain: [-6, 110]
|
|
12309
|
-
}
|
|
12310
|
-
),
|
|
12311
|
-
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
12312
|
-
import_recharts2.Area,
|
|
12313
|
-
{
|
|
12314
|
-
type: "monotone",
|
|
12315
|
-
dataKey: "value",
|
|
12316
|
-
stroke: colorHex,
|
|
12317
|
-
strokeWidth: 2,
|
|
12318
|
-
fill: `url(#colorGradient-${uniqueId})`,
|
|
12319
|
-
dot: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(CustomDotWithShadow, { stroke: colorHex, fill: colorHex }),
|
|
12320
|
-
activeDot: { r: 7, fill: colorHex }
|
|
12321
|
-
}
|
|
12322
|
-
)
|
|
12323
|
-
]
|
|
12324
|
-
}
|
|
12325
|
-
) })
|
|
12367
|
+
headerContent,
|
|
12368
|
+
needsScroll ? /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(scrollArea_default, { direction: "x", size: "sm", children: chartContent }) : chartContent
|
|
12326
12369
|
] });
|
|
12327
12370
|
});
|
|
12328
12371
|
AreaChartComponent.displayName = "AreaChart";
|
|
@@ -12523,12 +12566,31 @@ var RadarChart = (0, import_react41.forwardRef)((originalProps, ref) => {
|
|
|
12523
12566
|
if (!data || data.length === 0) return 100;
|
|
12524
12567
|
return Math.max(...data.map((item) => item.fullMark || 100));
|
|
12525
12568
|
}, [data]);
|
|
12569
|
+
const containerHeight = (0, import_react41.useMemo)(() => {
|
|
12570
|
+
if (!data || data.length === 0) return 250;
|
|
12571
|
+
return data.length === 3 ? 245 : 306;
|
|
12572
|
+
}, [data]);
|
|
12573
|
+
const chartMargin = (0, import_react41.useMemo)(() => {
|
|
12574
|
+
return { top: 0, right: 0, bottom: 0, left: 0 };
|
|
12575
|
+
}, [data]);
|
|
12576
|
+
const outerRadius = (0, import_react41.useMemo)(() => {
|
|
12577
|
+
if (!data || data.length === 0) return 125;
|
|
12578
|
+
return data.length === 3 ? 135 : 125;
|
|
12579
|
+
}, [data]);
|
|
12580
|
+
const chartCenter = (0, import_react41.useMemo)(() => {
|
|
12581
|
+
if (!data || data.length === 0) return {};
|
|
12582
|
+
if (data.length === 3) return { cx: "50%", cy: "65%" };
|
|
12583
|
+
return {};
|
|
12584
|
+
}, [data]);
|
|
12526
12585
|
return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("div", { ref, className: slots.base({ class: classNames == null ? void 0 : classNames.base }), children: [
|
|
12527
|
-
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
12586
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("p", { className: slots.label({ class: classNames == null ? void 0 : classNames.label }), children: label }),
|
|
12587
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { style: { width: "100%" }, children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_recharts4.ResponsiveContainer, { width: "100%", height: containerHeight, children: /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(
|
|
12528
12588
|
import_recharts4.RadarChart,
|
|
12529
12589
|
{
|
|
12530
12590
|
data,
|
|
12531
|
-
outerRadius
|
|
12591
|
+
outerRadius,
|
|
12592
|
+
margin: chartMargin,
|
|
12593
|
+
...chartCenter,
|
|
12532
12594
|
className: "[&_.recharts-surface]:outline-none [&_.recharts-surface]:focus:outline-none",
|
|
12533
12595
|
children: [
|
|
12534
12596
|
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_recharts4.PolarGrid, { stroke: "#DFE2E7", strokeWidth: 1.75 }),
|
|
@@ -12556,16 +12618,15 @@ var RadarChart = (0, import_react41.forwardRef)((originalProps, ref) => {
|
|
|
12556
12618
|
)
|
|
12557
12619
|
]
|
|
12558
12620
|
}
|
|
12559
|
-
) })
|
|
12560
|
-
label && /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("p", { className: slots.label({ class: classNames == null ? void 0 : classNames.label }), children: label })
|
|
12621
|
+
) }) })
|
|
12561
12622
|
] });
|
|
12562
12623
|
});
|
|
12563
12624
|
RadarChart.displayName = "RadarChart";
|
|
12564
12625
|
var radarChart_default = RadarChart;
|
|
12565
12626
|
var radarChartStyle = tv({
|
|
12566
12627
|
slots: {
|
|
12567
|
-
base: ["flex", "flex-col", "
|
|
12568
|
-
label: ["text-
|
|
12628
|
+
base: ["flex", "flex-col", "select-none"],
|
|
12629
|
+
label: ["text-md", "font-bold", "text-left", "text-body-foreground"]
|
|
12569
12630
|
},
|
|
12570
12631
|
variants: {},
|
|
12571
12632
|
defaultVariants: {
|