@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,15 +2,15 @@
|
|
|
2
2
|
import {
|
|
3
3
|
skeleton_default
|
|
4
4
|
} from "./chunk-6PN3DGOE.mjs";
|
|
5
|
-
import {
|
|
6
|
-
scrollArea_default
|
|
7
|
-
} from "./chunk-M37VBNB3.mjs";
|
|
8
5
|
import {
|
|
9
6
|
pagination_default
|
|
10
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-KRGI6HW7.mjs";
|
|
11
8
|
import {
|
|
12
9
|
checkbox_default
|
|
13
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-3U5NJTRH.mjs";
|
|
11
|
+
import {
|
|
12
|
+
scrollArea_default
|
|
13
|
+
} from "./chunk-M37VBNB3.mjs";
|
|
14
14
|
import {
|
|
15
15
|
mapPropsVariants
|
|
16
16
|
} from "./chunk-E3G5QXSH.mjs";
|
|
@@ -468,7 +468,8 @@ var scrollbar = {
|
|
|
468
468
|
height: "6px"
|
|
469
469
|
},
|
|
470
470
|
"&::-webkit-scrollbar-thumb": {
|
|
471
|
-
backgroundColor: "
|
|
471
|
+
backgroundColor: "#3F9CF2",
|
|
472
|
+
// "rgba(0, 0, 0, 0.05)",
|
|
472
473
|
borderRadius: "100px"
|
|
473
474
|
},
|
|
474
475
|
"&::-webkit-scrollbar-track": {
|
|
@@ -481,7 +482,8 @@ var scrollbar = {
|
|
|
481
482
|
height: "8px"
|
|
482
483
|
},
|
|
483
484
|
"&::-webkit-scrollbar-thumb": {
|
|
484
|
-
backgroundColor: "
|
|
485
|
+
backgroundColor: "#3F9CF2",
|
|
486
|
+
// "rgba(0, 0, 0, 0.05)",
|
|
485
487
|
borderRadius: "100px"
|
|
486
488
|
},
|
|
487
489
|
"&::-webkit-scrollbar-track": {
|
|
@@ -494,7 +496,8 @@ var scrollbar = {
|
|
|
494
496
|
height: "10px"
|
|
495
497
|
},
|
|
496
498
|
"&::-webkit-scrollbar-thumb": {
|
|
497
|
-
backgroundColor: "
|
|
499
|
+
backgroundColor: "#3F9CF2",
|
|
500
|
+
// "rgba(0, 0, 0, 0.05)",
|
|
498
501
|
borderRadius: "100px"
|
|
499
502
|
},
|
|
500
503
|
"&::-webkit-scrollbar-track": {
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
progress_default
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-MCBAEW2Q.mjs";
|
|
5
5
|
import {
|
|
6
6
|
input_default
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-HKONMHXA.mjs";
|
|
8
8
|
import {
|
|
9
9
|
button_default
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-3HY74IGR.mjs";
|
|
11
11
|
import {
|
|
12
12
|
icon_button_default
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-6UKNZTOL.mjs";
|
|
14
14
|
|
|
15
15
|
// src/components/fileUpload/fileUpload.tsx
|
|
16
16
|
import { useRef, useState, useEffect } from "react";
|
|
@@ -7,10 +7,10 @@ import {
|
|
|
7
7
|
} from "./chunk-E3G5QXSH.mjs";
|
|
8
8
|
import {
|
|
9
9
|
avatar_default
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-OL22LVBG.mjs";
|
|
11
11
|
import {
|
|
12
12
|
tv
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-76QIZILI.mjs";
|
|
14
14
|
|
|
15
15
|
// src/components/list/listItem.tsx
|
|
16
16
|
import { forwardRef, useMemo } from "react";
|
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
day_default
|
|
4
|
-
} from "./chunk-4DESGO3D.mjs";
|
|
5
2
|
import {
|
|
6
3
|
formatDateToString,
|
|
7
4
|
formatStringToDate
|
|
8
5
|
} from "./chunk-FWFEKWWD.mjs";
|
|
9
6
|
import {
|
|
10
|
-
|
|
11
|
-
} from "./chunk-
|
|
7
|
+
day_default
|
|
8
|
+
} from "./chunk-2TDHQLVV.mjs";
|
|
12
9
|
import {
|
|
13
|
-
|
|
14
|
-
} from "./chunk-
|
|
10
|
+
input_default
|
|
11
|
+
} from "./chunk-HKONMHXA.mjs";
|
|
15
12
|
import {
|
|
16
13
|
button_default
|
|
17
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-3HY74IGR.mjs";
|
|
18
15
|
import {
|
|
19
16
|
icon_button_default
|
|
20
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-6UKNZTOL.mjs";
|
|
21
18
|
import {
|
|
22
19
|
Icon_default
|
|
23
20
|
} from "./chunk-YZ57UYAS.mjs";
|
|
21
|
+
import {
|
|
22
|
+
text_button_default
|
|
23
|
+
} from "./chunk-SDUDU3CU.mjs";
|
|
24
24
|
import {
|
|
25
25
|
mapPropsVariants
|
|
26
26
|
} from "./chunk-E3G5QXSH.mjs";
|
|
27
27
|
import {
|
|
28
28
|
tv
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-76QIZILI.mjs";
|
|
30
30
|
|
|
31
31
|
// src/components/picker/datePicker.tsx
|
|
32
32
|
import {
|
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
scrollArea_default
|
|
4
|
+
} from "./chunk-M37VBNB3.mjs";
|
|
5
|
+
import {
|
|
6
|
+
mapPropsVariants
|
|
7
|
+
} from "./chunk-E3G5QXSH.mjs";
|
|
8
|
+
import {
|
|
9
|
+
tv
|
|
10
|
+
} from "./chunk-76QIZILI.mjs";
|
|
11
|
+
|
|
12
|
+
// src/components/charts/areaChart.tsx
|
|
13
|
+
import { forwardRef, useMemo, useState, useRef, useEffect, useId } from "react";
|
|
14
|
+
import { AreaChart, Area, XAxis, YAxis, CartesianGrid } from "recharts";
|
|
15
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
16
|
+
var AreaChartComponent = forwardRef((originalProps, ref) => {
|
|
17
|
+
const uniqueId = useId();
|
|
18
|
+
const [props, variantProps] = mapPropsVariants(originalProps, areaChartStyle.variantKeys);
|
|
19
|
+
const {
|
|
20
|
+
data,
|
|
21
|
+
label,
|
|
22
|
+
headerContent,
|
|
23
|
+
color = "primary",
|
|
24
|
+
startFromZero = false,
|
|
25
|
+
itemWidth,
|
|
26
|
+
chartHeight = 240,
|
|
27
|
+
classNames
|
|
28
|
+
} = { ...props, ...variantProps };
|
|
29
|
+
const slots = useMemo(() => areaChartStyle({ ...variantProps }), [variantProps]);
|
|
30
|
+
const COLOR_MAP = {
|
|
31
|
+
primary: "#3F9CF2",
|
|
32
|
+
danger: "#FF4684"
|
|
33
|
+
};
|
|
34
|
+
const colorHex = useMemo(() => COLOR_MAP[color], [color]);
|
|
35
|
+
const totalChartWidth = useMemo(() => {
|
|
36
|
+
if (!data || !itemWidth) return void 0;
|
|
37
|
+
const dataLength = startFromZero ? data.length + 1 : data.length;
|
|
38
|
+
return dataLength * itemWidth;
|
|
39
|
+
}, [data, itemWidth, startFromZero]);
|
|
40
|
+
const needsScroll = useMemo(() => {
|
|
41
|
+
return totalChartWidth;
|
|
42
|
+
}, [totalChartWidth]);
|
|
43
|
+
const processedData = useMemo(() => {
|
|
44
|
+
if (!data) return [];
|
|
45
|
+
return data;
|
|
46
|
+
}, [data, startFromZero]);
|
|
47
|
+
const [tickPositions, setTickPositions] = useState([]);
|
|
48
|
+
const tickRef = useRef([]);
|
|
49
|
+
const CustomTick = ({ x, y, payload }) => {
|
|
50
|
+
if (x !== void 0) {
|
|
51
|
+
tickRef.current.push(x);
|
|
52
|
+
}
|
|
53
|
+
if (startFromZero && payload.value === "") {
|
|
54
|
+
return /* @__PURE__ */ jsx("g", {});
|
|
55
|
+
}
|
|
56
|
+
return /* @__PURE__ */ jsx(
|
|
57
|
+
"text",
|
|
58
|
+
{
|
|
59
|
+
x,
|
|
60
|
+
y: y + 11,
|
|
61
|
+
textAnchor: "middle",
|
|
62
|
+
fontSize: 12,
|
|
63
|
+
fontWeight: 700,
|
|
64
|
+
fill: "currentColor",
|
|
65
|
+
className: "text-body-foreground",
|
|
66
|
+
children: payload.value
|
|
67
|
+
}
|
|
68
|
+
);
|
|
69
|
+
};
|
|
70
|
+
useEffect(() => {
|
|
71
|
+
const raf = requestAnimationFrame(() => {
|
|
72
|
+
const unique = [...new Set(tickRef.current)].sort((a, b) => a - b);
|
|
73
|
+
const mids = [];
|
|
74
|
+
for (let i = 0; i < unique.length - 1; i++) {
|
|
75
|
+
mids.push((unique[i] + unique[i + 1]) / 2);
|
|
76
|
+
}
|
|
77
|
+
setTickPositions(mids);
|
|
78
|
+
tickRef.current = [];
|
|
79
|
+
});
|
|
80
|
+
return () => cancelAnimationFrame(raf);
|
|
81
|
+
}, [processedData]);
|
|
82
|
+
const CustomDotWithShadow = (props2) => {
|
|
83
|
+
const { cx, cy, fill, stroke, payload } = props2;
|
|
84
|
+
if (cx === void 0 || cy === void 0) return null;
|
|
85
|
+
if (startFromZero && (payload == null ? void 0 : payload.name) === "") {
|
|
86
|
+
return null;
|
|
87
|
+
}
|
|
88
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
89
|
+
/* @__PURE__ */ jsx("circle", { cx, cy, r: 8, fill, opacity: 0.2 }),
|
|
90
|
+
/* @__PURE__ */ jsx("circle", { cx, cy, r: 3.5, fill, stroke, strokeWidth: 2 })
|
|
91
|
+
] });
|
|
92
|
+
};
|
|
93
|
+
const chartContent = /* @__PURE__ */ jsx(
|
|
94
|
+
"div",
|
|
95
|
+
{
|
|
96
|
+
style: {
|
|
97
|
+
width: totalChartWidth || "100%",
|
|
98
|
+
minWidth: totalChartWidth || "100%"
|
|
99
|
+
},
|
|
100
|
+
children: /* @__PURE__ */ jsxs(
|
|
101
|
+
AreaChart,
|
|
102
|
+
{
|
|
103
|
+
width: totalChartWidth || 400,
|
|
104
|
+
height: chartHeight + 30,
|
|
105
|
+
data: processedData,
|
|
106
|
+
margin: { left: -30 },
|
|
107
|
+
className: "bg-body-background [&_.recharts-surface]:outline-none [&_.recharts-surface]:focus:outline-none",
|
|
108
|
+
children: [
|
|
109
|
+
/* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsxs("linearGradient", { id: `colorGradient-${uniqueId}`, x1: "0", y1: "0", x2: "0", y2: "1", children: [
|
|
110
|
+
/* @__PURE__ */ jsx("stop", { offset: "5%", stopColor: colorHex, stopOpacity: 0.3 }),
|
|
111
|
+
/* @__PURE__ */ jsx("stop", { offset: "95%", stopColor: colorHex, stopOpacity: 0 })
|
|
112
|
+
] }) }),
|
|
113
|
+
/* @__PURE__ */ jsx(
|
|
114
|
+
CartesianGrid,
|
|
115
|
+
{
|
|
116
|
+
vertical: true,
|
|
117
|
+
horizontal: false,
|
|
118
|
+
strokeDasharray: "3 3",
|
|
119
|
+
className: "stroke-neutral-light",
|
|
120
|
+
verticalPoints: tickPositions
|
|
121
|
+
}
|
|
122
|
+
),
|
|
123
|
+
/* @__PURE__ */ jsx(
|
|
124
|
+
XAxis,
|
|
125
|
+
{
|
|
126
|
+
dataKey: "name",
|
|
127
|
+
axisLine: { stroke: "#DFE2E7", strokeWidth: 1 },
|
|
128
|
+
tickLine: false,
|
|
129
|
+
tick: CustomTick,
|
|
130
|
+
padding: { left: 35.5, right: 35.5 }
|
|
131
|
+
}
|
|
132
|
+
),
|
|
133
|
+
/* @__PURE__ */ jsx(
|
|
134
|
+
YAxis,
|
|
135
|
+
{
|
|
136
|
+
axisLine: { stroke: "#DFE2E7", strokeWidth: 1 },
|
|
137
|
+
tickLine: false,
|
|
138
|
+
tick: {
|
|
139
|
+
fontSize: 12,
|
|
140
|
+
fontWeight: 700,
|
|
141
|
+
fill: "text-body-foreground",
|
|
142
|
+
textAnchor: "middle",
|
|
143
|
+
dx: -10
|
|
144
|
+
},
|
|
145
|
+
ticks: [0, 20, 40, 60, 80, 100],
|
|
146
|
+
domain: [-6, 110]
|
|
147
|
+
}
|
|
148
|
+
),
|
|
149
|
+
/* @__PURE__ */ jsx(
|
|
150
|
+
Area,
|
|
151
|
+
{
|
|
152
|
+
type: "monotone",
|
|
153
|
+
dataKey: "value",
|
|
154
|
+
stroke: colorHex,
|
|
155
|
+
strokeWidth: 2,
|
|
156
|
+
fill: `url(#colorGradient-${uniqueId})`,
|
|
157
|
+
dot: /* @__PURE__ */ jsx(CustomDotWithShadow, { stroke: colorHex, fill: colorHex }),
|
|
158
|
+
activeDot: false
|
|
159
|
+
}
|
|
160
|
+
)
|
|
161
|
+
]
|
|
162
|
+
}
|
|
163
|
+
)
|
|
164
|
+
}
|
|
165
|
+
);
|
|
166
|
+
return /* @__PURE__ */ jsxs("div", { ref, className: slots.base({ class: classNames == null ? void 0 : classNames.base }), children: [
|
|
167
|
+
label && /* @__PURE__ */ jsx("p", { className: slots.label({ class: classNames == null ? void 0 : classNames.label }), children: label }),
|
|
168
|
+
headerContent,
|
|
169
|
+
needsScroll ? /* @__PURE__ */ jsx(scrollArea_default, { direction: "x", size: "sm", children: chartContent }) : chartContent
|
|
170
|
+
] });
|
|
171
|
+
});
|
|
172
|
+
AreaChartComponent.displayName = "AreaChart";
|
|
173
|
+
var areaChart_default = AreaChartComponent;
|
|
174
|
+
var areaChartStyle = tv({
|
|
175
|
+
slots: {
|
|
176
|
+
base: ["flex", "flex-col", "gap-[10px]", "select-none"],
|
|
177
|
+
color: [],
|
|
178
|
+
axis: ["text-sm", "font-bold", "text-center", "text-body-foreground"],
|
|
179
|
+
label: ["text-md", "font-bold", "text-body-foreground"]
|
|
180
|
+
},
|
|
181
|
+
variants: {
|
|
182
|
+
color: {
|
|
183
|
+
primary: {
|
|
184
|
+
color: ["text-primary-main"]
|
|
185
|
+
},
|
|
186
|
+
danger: {
|
|
187
|
+
color: ["text-danger-main"]
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
},
|
|
191
|
+
defaultVariants: {
|
|
192
|
+
color: "primary"
|
|
193
|
+
}
|
|
194
|
+
});
|
|
195
|
+
|
|
196
|
+
export {
|
|
197
|
+
areaChart_default
|
|
198
|
+
};
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./chunk-ZOTHPHXA.mjs";
|
|
5
5
|
import {
|
|
6
6
|
toast_default
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-TSBG5FXL.mjs";
|
|
8
8
|
|
|
9
9
|
// src/components/toast/use-toast.tsx
|
|
10
10
|
import { createContext, useContext, useState, useCallback, useEffect, useRef } from "react";
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./chunk-F3HENRVM.mjs";
|
|
5
5
|
import {
|
|
6
6
|
input_default
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-HKONMHXA.mjs";
|
|
8
8
|
import {
|
|
9
9
|
Icon_default
|
|
10
10
|
} from "./chunk-YZ57UYAS.mjs";
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
} from "./chunk-E3G5QXSH.mjs";
|
|
14
14
|
import {
|
|
15
15
|
tv
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-76QIZILI.mjs";
|
|
17
17
|
import {
|
|
18
18
|
clsx
|
|
19
19
|
} from "./chunk-27Y6K5NK.mjs";
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./chunk-E3G5QXSH.mjs";
|
|
5
5
|
import {
|
|
6
6
|
tv
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-76QIZILI.mjs";
|
|
8
8
|
|
|
9
9
|
// src/components/charts/radarChart.tsx
|
|
10
10
|
import {
|
|
@@ -25,12 +25,31 @@ var RadarChart = forwardRef((originalProps, ref) => {
|
|
|
25
25
|
if (!data || data.length === 0) return 100;
|
|
26
26
|
return Math.max(...data.map((item) => item.fullMark || 100));
|
|
27
27
|
}, [data]);
|
|
28
|
+
const containerHeight = useMemo(() => {
|
|
29
|
+
if (!data || data.length === 0) return 250;
|
|
30
|
+
return data.length === 3 ? 245 : 306;
|
|
31
|
+
}, [data]);
|
|
32
|
+
const chartMargin = useMemo(() => {
|
|
33
|
+
return { top: 0, right: 0, bottom: 0, left: 0 };
|
|
34
|
+
}, [data]);
|
|
35
|
+
const outerRadius = useMemo(() => {
|
|
36
|
+
if (!data || data.length === 0) return 125;
|
|
37
|
+
return data.length === 3 ? 135 : 125;
|
|
38
|
+
}, [data]);
|
|
39
|
+
const chartCenter = useMemo(() => {
|
|
40
|
+
if (!data || data.length === 0) return {};
|
|
41
|
+
if (data.length === 3) return { cx: "50%", cy: "65%" };
|
|
42
|
+
return {};
|
|
43
|
+
}, [data]);
|
|
28
44
|
return /* @__PURE__ */ jsxs("div", { ref, className: slots.base({ class: classNames == null ? void 0 : classNames.base }), children: [
|
|
29
|
-
/* @__PURE__ */ jsx(
|
|
45
|
+
label && /* @__PURE__ */ jsx("p", { className: slots.label({ class: classNames == null ? void 0 : classNames.label }), children: label }),
|
|
46
|
+
/* @__PURE__ */ jsx("div", { style: { width: "100%" }, children: /* @__PURE__ */ jsx(ResponsiveContainer, { width: "100%", height: containerHeight, children: /* @__PURE__ */ jsxs(
|
|
30
47
|
RechartsRadarChart,
|
|
31
48
|
{
|
|
32
49
|
data,
|
|
33
|
-
outerRadius
|
|
50
|
+
outerRadius,
|
|
51
|
+
margin: chartMargin,
|
|
52
|
+
...chartCenter,
|
|
34
53
|
className: "[&_.recharts-surface]:outline-none [&_.recharts-surface]:focus:outline-none",
|
|
35
54
|
children: [
|
|
36
55
|
/* @__PURE__ */ jsx(PolarGrid, { stroke: "#DFE2E7", strokeWidth: 1.75 }),
|
|
@@ -58,16 +77,15 @@ var RadarChart = forwardRef((originalProps, ref) => {
|
|
|
58
77
|
)
|
|
59
78
|
]
|
|
60
79
|
}
|
|
61
|
-
) })
|
|
62
|
-
label && /* @__PURE__ */ jsx("p", { className: slots.label({ class: classNames == null ? void 0 : classNames.label }), children: label })
|
|
80
|
+
) }) })
|
|
63
81
|
] });
|
|
64
82
|
});
|
|
65
83
|
RadarChart.displayName = "RadarChart";
|
|
66
84
|
var radarChart_default = RadarChart;
|
|
67
85
|
var radarChartStyle = tv({
|
|
68
86
|
slots: {
|
|
69
|
-
base: ["flex", "flex-col", "
|
|
70
|
-
label: ["text-
|
|
87
|
+
base: ["flex", "flex-col", "select-none"],
|
|
88
|
+
label: ["text-md", "font-bold", "text-left", "text-body-foreground"]
|
|
71
89
|
},
|
|
72
90
|
variants: {},
|
|
73
91
|
defaultVariants: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
select_default
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-LX7NPKFE.mjs";
|
|
5
5
|
import {
|
|
6
6
|
Icon_default
|
|
7
7
|
} from "./chunk-YZ57UYAS.mjs";
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
} from "./chunk-E3G5QXSH.mjs";
|
|
11
11
|
import {
|
|
12
12
|
tv
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-76QIZILI.mjs";
|
|
14
14
|
import {
|
|
15
15
|
clsx
|
|
16
16
|
} from "./chunk-27Y6K5NK.mjs";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
text_button_default
|
|
4
|
-
} from "./chunk-Q364C3FI.mjs";
|
|
5
2
|
import {
|
|
6
3
|
Icon_default
|
|
7
4
|
} from "./chunk-YZ57UYAS.mjs";
|
|
5
|
+
import {
|
|
6
|
+
text_button_default
|
|
7
|
+
} from "./chunk-SDUDU3CU.mjs";
|
|
8
8
|
import {
|
|
9
9
|
tv
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-76QIZILI.mjs";
|
|
11
11
|
|
|
12
12
|
// src/components/breadcrumb/breadcrumb.tsx
|
|
13
13
|
import { forwardRef, useMemo } from "react";
|