@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.
- package/.turbo/turbo-build.log +167 -167
- package/dist/{chunk-HD2PTCE6.mjs → chunk-27WK5334.mjs} +2 -2
- package/dist/{chunk-3ZH6PWFC.mjs → chunk-BBQNVDIA.mjs} +2 -2
- package/dist/{chunk-ER3SUAE2.mjs → chunk-CMMVXFHD.mjs} +1 -1
- package/dist/{chunk-LCWEO4U6.mjs → chunk-CTWYY7Z2.mjs} +28 -28
- package/dist/{chunk-HLYTCS7L.mjs → chunk-EM2NIGNZ.mjs} +1 -1
- package/dist/{chunk-VPGJ4HZ7.mjs → chunk-EXUHHLSA.mjs} +2 -2
- package/dist/{chunk-TO6OPRBH.mjs → chunk-IJS5AWD2.mjs} +1 -1
- package/dist/{chunk-PHWTRXOL.mjs → chunk-KCOS2KC6.mjs} +2 -2
- package/dist/{chunk-6VNOOJDQ.mjs → chunk-MHZ4BO5M.mjs} +2 -2
- package/dist/{chunk-RSD67ORA.mjs → chunk-MIVGSJFF.mjs} +1 -1
- package/dist/{chunk-LIHZG4KM.mjs → chunk-NITERGU5.mjs} +4 -4
- package/dist/{chunk-MG5E5YZ7.mjs → chunk-NMZFSNPE.mjs} +1 -1
- package/dist/{chunk-LZRBMVT7.mjs → chunk-NV5Z6ZUO.mjs} +1 -1
- package/dist/{chunk-TRNL3IXF.mjs → chunk-OBMO6LRA.mjs} +1 -1
- package/dist/{chunk-CUCLHYCE.mjs → chunk-Q5634WTM.mjs} +3 -3
- package/dist/{chunk-WIZDHK4O.mjs → chunk-QKRCC26D.mjs} +63 -55
- package/dist/{chunk-UPPNTDNG.mjs → chunk-RJPBLIEF.mjs} +1 -1
- package/dist/{chunk-F7PC2JAF.mjs → chunk-SS6EG5JO.mjs} +1 -1
- package/dist/{chunk-CF7LIQF6.mjs → chunk-U33MTXQX.mjs} +56 -22
- package/dist/{chunk-63KZGR73.mjs → chunk-UA24L44Z.mjs} +34 -26
- package/dist/{chunk-KIN2UK2C.mjs → chunk-VB5NKWJG.mjs} +1 -1
- package/dist/{chunk-PMSUPDDW.mjs → chunk-YLHOBT6S.mjs} +1 -1
- package/dist/{chunk-676Y7NKV.mjs → chunk-YUS5SELP.mjs} +1 -1
- package/dist/components/avatar/avatar.js +28 -28
- package/dist/components/avatar/avatar.mjs +2 -2
- package/dist/components/avatar/index.js +28 -28
- package/dist/components/avatar/index.mjs +2 -2
- package/dist/components/breadcrumb/breadcrumb.js +29 -29
- package/dist/components/breadcrumb/breadcrumb.mjs +5 -5
- package/dist/components/breadcrumb/index.js +29 -29
- package/dist/components/breadcrumb/index.mjs +5 -5
- package/dist/components/button/button.js +28 -28
- package/dist/components/button/button.mjs +3 -3
- package/dist/components/button/icon-button.js +28 -28
- package/dist/components/button/icon-button.mjs +3 -3
- package/dist/components/button/index.js +28 -28
- package/dist/components/button/index.mjs +4 -4
- package/dist/components/charts/areaChart.js +63 -55
- package/dist/components/charts/areaChart.mjs +1 -1
- package/dist/components/charts/barChart.d.mts +14 -4
- package/dist/components/charts/barChart.d.ts +14 -4
- package/dist/components/charts/barChart.js +55 -21
- package/dist/components/charts/barChart.mjs +1 -1
- package/dist/components/charts/circularProgress.js +1 -1
- package/dist/components/charts/circularProgress.mjs +1 -1
- package/dist/components/charts/index.js +153 -103
- package/dist/components/charts/index.mjs +4 -4
- package/dist/components/charts/radarChart.js +34 -26
- package/dist/components/charts/radarChart.mjs +1 -1
- package/dist/components/chip/chip.js +28 -28
- package/dist/components/chip/chip.mjs +3 -3
- package/dist/components/chip/index.js +28 -28
- package/dist/components/chip/index.mjs +3 -3
- package/dist/components/fileUpload/fileUpload.js +28 -28
- package/dist/components/fileUpload/fileUpload.mjs +6 -6
- package/dist/components/fileUpload/index.js +28 -28
- package/dist/components/fileUpload/index.mjs +6 -6
- package/dist/components/icon/Icon.d.mts +8 -8
- package/dist/components/icon/Icon.d.ts +8 -8
- package/dist/components/icon/Icon.js +28 -28
- package/dist/components/icon/Icon.mjs +2 -2
- package/dist/components/icon/index.js +28 -28
- package/dist/components/icon/index.mjs +2 -2
- package/dist/components/icon/template.d.mts +2 -2
- package/dist/components/icon/template.d.ts +2 -2
- package/dist/components/icon/template.js +28 -28
- package/dist/components/icon/template.mjs +1 -1
- package/dist/components/input/index.js +28 -28
- package/dist/components/input/index.mjs +3 -3
- package/dist/components/input/input.js +28 -28
- package/dist/components/input/input.mjs +3 -3
- package/dist/components/list/index.js +28 -28
- package/dist/components/list/index.mjs +4 -4
- package/dist/components/list/listItem.js +28 -28
- package/dist/components/list/listItem.mjs +4 -4
- package/dist/components/modal/index.js +28 -28
- package/dist/components/modal/index.mjs +5 -5
- package/dist/components/modal/modal.js +28 -28
- package/dist/components/modal/modal.mjs +5 -5
- package/dist/components/pagination/index.js +28 -28
- package/dist/components/pagination/index.mjs +4 -4
- package/dist/components/pagination/pagination.js +28 -28
- package/dist/components/pagination/pagination.mjs +4 -4
- package/dist/components/picker/datePicker.js +28 -28
- package/dist/components/picker/datePicker.mjs +6 -6
- package/dist/components/picker/index.js +28 -28
- package/dist/components/picker/index.mjs +8 -8
- package/dist/components/picker/timePicker.js +28 -28
- package/dist/components/picker/timePicker.mjs +4 -4
- package/dist/components/select/index.js +28 -28
- package/dist/components/select/index.mjs +3 -3
- package/dist/components/select/select.js +28 -28
- package/dist/components/select/select.mjs +3 -3
- package/dist/components/table/index.js +28 -28
- package/dist/components/table/index.mjs +5 -5
- package/dist/components/table/table-body.js +28 -28
- package/dist/components/table/table-body.mjs +5 -5
- package/dist/components/table/table-head.js +28 -28
- package/dist/components/table/table-head.mjs +5 -5
- package/dist/components/table/table.js +28 -28
- package/dist/components/table/table.mjs +5 -5
- package/dist/components/toast/index.js +28 -28
- package/dist/components/toast/index.mjs +4 -4
- package/dist/components/toast/toast.js +28 -28
- package/dist/components/toast/toast.mjs +3 -3
- package/dist/components/toast/use-toast.js +28 -28
- package/dist/components/toast/use-toast.mjs +4 -4
- package/dist/components/tree/index.js +28 -28
- package/dist/components/tree/index.mjs +3 -3
- package/dist/components/tree/tree.js +28 -28
- package/dist/components/tree/tree.mjs +3 -3
- package/dist/index.js +182 -132
- package/dist/index.mjs +27 -27
- package/package.json +1 -1
|
@@ -467,7 +467,7 @@ CircularProgress.displayName = "CircularProgress";
|
|
|
467
467
|
var circularProgress_default = CircularProgress;
|
|
468
468
|
var circularProgressStyle = tv({
|
|
469
469
|
slots: {
|
|
470
|
-
base: ["flex", "flex-col", "items-center", "gap-[20px]"],
|
|
470
|
+
base: ["flex", "flex-col", "items-center", "gap-[20px]", "select-none"],
|
|
471
471
|
background: ["fill-body-background", "border-neutral-light"],
|
|
472
472
|
progress: ["transition-all", "duration-1000 ease-out"],
|
|
473
473
|
percentage: ["text-xl", "font-bold", "text-body-foreground"],
|
|
@@ -548,67 +548,75 @@ var AreaChartComponent = (0, import_react2.forwardRef)((originalProps, ref) => {
|
|
|
548
548
|
};
|
|
549
549
|
return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { ref, className: slots.base({ class: classNames == null ? void 0 : classNames.base }), children: [
|
|
550
550
|
label && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("p", { className: slots.label({ class: classNames == null ? void 0 : classNames.label }), children: label }),
|
|
551
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_recharts2.ResponsiveContainer, { width: "100%", height: "100%", children: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
551
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_recharts2.ResponsiveContainer, { width: "100%", height: "100%", children: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
|
|
552
|
+
import_recharts2.AreaChart,
|
|
553
|
+
{
|
|
554
|
+
data,
|
|
555
|
+
margin: { left: -30 },
|
|
556
|
+
className: "[&_.recharts-surface]:outline-none [&_.recharts-surface]:focus:outline-none",
|
|
557
|
+
children: [
|
|
558
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("linearGradient", { id: `colorGradient-${uniqueId}`, x1: "0", y1: "0", x2: "0", y2: "1", children: [
|
|
559
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("stop", { offset: "5%", stopColor: colorHex, stopOpacity: 0.3 }),
|
|
560
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("stop", { offset: "95%", stopColor: colorHex, stopOpacity: 0 })
|
|
561
|
+
] }) }),
|
|
562
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
563
|
+
import_recharts2.CartesianGrid,
|
|
564
|
+
{
|
|
565
|
+
vertical: true,
|
|
566
|
+
horizontal: false,
|
|
567
|
+
strokeDasharray: "3 3",
|
|
568
|
+
className: "stroke-neutral-light",
|
|
569
|
+
verticalPoints: tickPositions
|
|
570
|
+
}
|
|
571
|
+
),
|
|
572
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
573
|
+
import_recharts2.XAxis,
|
|
574
|
+
{
|
|
575
|
+
dataKey: "name",
|
|
576
|
+
axisLine: { stroke: "#DFE2E7", strokeWidth: 1 },
|
|
577
|
+
tickLine: false,
|
|
578
|
+
tick: CustomTick,
|
|
579
|
+
padding: { left: 35.5, right: 35.5 }
|
|
580
|
+
}
|
|
581
|
+
),
|
|
582
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
583
|
+
import_recharts2.YAxis,
|
|
584
|
+
{
|
|
585
|
+
axisLine: { stroke: "#DFE2E7", strokeWidth: 1 },
|
|
586
|
+
tickLine: false,
|
|
587
|
+
tick: {
|
|
588
|
+
fontSize: 12,
|
|
589
|
+
fontWeight: 700,
|
|
590
|
+
fill: "text-body-foreground",
|
|
591
|
+
textAnchor: "middle",
|
|
592
|
+
dx: -10
|
|
593
|
+
},
|
|
594
|
+
ticks: [0, 20, 40, 60, 80, 100],
|
|
595
|
+
domain: [-6, 110]
|
|
596
|
+
}
|
|
597
|
+
),
|
|
598
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
599
|
+
import_recharts2.Area,
|
|
600
|
+
{
|
|
601
|
+
type: "monotone",
|
|
602
|
+
dataKey: "value",
|
|
603
|
+
stroke: colorHex,
|
|
604
|
+
strokeWidth: 2,
|
|
605
|
+
fill: `url(#colorGradient-${uniqueId})`,
|
|
606
|
+
dot: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(CustomDotWithShadow, { stroke: colorHex, fill: colorHex }),
|
|
607
|
+
activeDot: { r: 7, fill: colorHex }
|
|
608
|
+
}
|
|
609
|
+
)
|
|
610
|
+
]
|
|
611
|
+
}
|
|
612
|
+
) })
|
|
605
613
|
] });
|
|
606
614
|
});
|
|
607
615
|
AreaChartComponent.displayName = "AreaChart";
|
|
608
616
|
var areaChart_default = AreaChartComponent;
|
|
609
617
|
var areaChartStyle = tv({
|
|
610
618
|
slots: {
|
|
611
|
-
base: ["flex", "flex-col", "gap-[10px]"],
|
|
619
|
+
base: ["flex", "flex-col", "gap-[10px]", "select-none"],
|
|
612
620
|
color: [],
|
|
613
621
|
axis: ["text-sm", "font-bold", "text-center", "text-body-foreground"],
|
|
614
622
|
label: ["text-md", "font-bold", "text-body-foreground"]
|
|
@@ -634,13 +642,16 @@ var import_recharts3 = require("recharts");
|
|
|
634
642
|
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
635
643
|
var BarChartComponent = (0, import_react3.forwardRef)((originalProps, ref) => {
|
|
636
644
|
const [props, variantProps] = mapPropsVariants(originalProps, barChartStyle.variantKeys);
|
|
637
|
-
const {
|
|
645
|
+
const {
|
|
646
|
+
data,
|
|
647
|
+
label,
|
|
648
|
+
classNames,
|
|
649
|
+
yAxisTicks = [0, 20, 40, 60, 80, 100],
|
|
650
|
+
yAxisTickFormatter = (value) => `${value}%`,
|
|
651
|
+
yAxisDomain = [-6, 110],
|
|
652
|
+
customTooltip
|
|
653
|
+
} = { ...props, ...variantProps };
|
|
638
654
|
const slots = (0, import_react3.useMemo)(() => barChartStyle({ ...variantProps }), [variantProps]);
|
|
639
|
-
const COLOR_MAP = {
|
|
640
|
-
primary: "#C7E5FA",
|
|
641
|
-
secondary: "#92DCB2",
|
|
642
|
-
warning: "#DEC1FA"
|
|
643
|
-
};
|
|
644
655
|
const [tickPositions, setTickPositions] = (0, import_react3.useState)([]);
|
|
645
656
|
const tickRef = (0, import_react3.useRef)([]);
|
|
646
657
|
const CustomBarShape = (barProps) => {
|
|
@@ -676,6 +687,28 @@ var BarChartComponent = (0, import_react3.forwardRef)((originalProps, ref) => {
|
|
|
676
687
|
}
|
|
677
688
|
);
|
|
678
689
|
};
|
|
690
|
+
const CustomYAxisTick = ({ x, y, payload }) => {
|
|
691
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
692
|
+
"text",
|
|
693
|
+
{
|
|
694
|
+
x: x - 10,
|
|
695
|
+
y,
|
|
696
|
+
textAnchor: "middle",
|
|
697
|
+
fontSize: 12,
|
|
698
|
+
fontWeight: 700,
|
|
699
|
+
fill: "currentColor",
|
|
700
|
+
className: "text-body-foreground",
|
|
701
|
+
dy: 4,
|
|
702
|
+
children: yAxisTickFormatter(payload.value)
|
|
703
|
+
}
|
|
704
|
+
);
|
|
705
|
+
};
|
|
706
|
+
const CustomTooltip = ({ active, payload, label: label2 }) => {
|
|
707
|
+
if (customTooltip && active && payload && payload.length) {
|
|
708
|
+
return customTooltip({ active, payload, label: label2 });
|
|
709
|
+
}
|
|
710
|
+
return null;
|
|
711
|
+
};
|
|
679
712
|
(0, import_react3.useEffect)(() => {
|
|
680
713
|
const raf = requestAnimationFrame(() => {
|
|
681
714
|
const unique = [...new Set(tickRef.current)].sort((a, b) => a - b);
|
|
@@ -694,11 +727,25 @@ var BarChartComponent = (0, import_react3.forwardRef)((originalProps, ref) => {
|
|
|
694
727
|
import_recharts3.BarChart,
|
|
695
728
|
{
|
|
696
729
|
data,
|
|
697
|
-
margin: { left: -
|
|
730
|
+
margin: { left: -20 },
|
|
698
731
|
barSize: 20,
|
|
699
|
-
barGap:
|
|
732
|
+
barGap: 20,
|
|
700
733
|
className: "[&_.recharts-surface]:outline-none [&_.recharts-surface]:focus:outline-none",
|
|
701
734
|
children: [
|
|
735
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("defs", { children: [
|
|
736
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("linearGradient", { id: "blueGradient", x1: "0", y1: "0", x2: "0", y2: "1", children: [
|
|
737
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("stop", { offset: "0%", stopColor: "#DEC1FA" }),
|
|
738
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("stop", { offset: "100%", stopColor: "#3F9CF2" })
|
|
739
|
+
] }),
|
|
740
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("linearGradient", { id: "greenGradient", x1: "0", y1: "0", x2: "0", y2: "1", children: [
|
|
741
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("stop", { offset: "0%", stopColor: "#C2E59C" }),
|
|
742
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("stop", { offset: "100%", stopColor: "#64B3F4" })
|
|
743
|
+
] }),
|
|
744
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("linearGradient", { id: "pinkGradient", x1: "0", y1: "0", x2: "0", y2: "1", children: [
|
|
745
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("stop", { offset: "0%", stopColor: "#DDD6F3" }),
|
|
746
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("stop", { offset: "100%", stopColor: "#FAACA8" })
|
|
747
|
+
] })
|
|
748
|
+
] }),
|
|
702
749
|
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
703
750
|
import_recharts3.CartesianGrid,
|
|
704
751
|
{
|
|
@@ -712,7 +759,7 @@ var BarChartComponent = (0, import_react3.forwardRef)((originalProps, ref) => {
|
|
|
712
759
|
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
713
760
|
import_recharts3.XAxis,
|
|
714
761
|
{
|
|
715
|
-
dataKey: "
|
|
762
|
+
dataKey: "title",
|
|
716
763
|
axisLine: { stroke: "#DFE2E7", strokeWidth: 1 },
|
|
717
764
|
tickLine: false,
|
|
718
765
|
tick: CustomTick,
|
|
@@ -724,20 +771,15 @@ var BarChartComponent = (0, import_react3.forwardRef)((originalProps, ref) => {
|
|
|
724
771
|
{
|
|
725
772
|
axisLine: { stroke: "#DFE2E7", strokeWidth: 1 },
|
|
726
773
|
tickLine: false,
|
|
727
|
-
tick:
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
fill: "text-body-foreground",
|
|
731
|
-
textAnchor: "middle",
|
|
732
|
-
dx: -10
|
|
733
|
-
},
|
|
734
|
-
ticks: [0, 20, 40, 60, 80, 100],
|
|
735
|
-
domain: [-6, 110]
|
|
774
|
+
tick: CustomYAxisTick,
|
|
775
|
+
ticks: yAxisTicks,
|
|
776
|
+
domain: yAxisDomain
|
|
736
777
|
}
|
|
737
778
|
),
|
|
738
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_recharts3.
|
|
739
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_recharts3.Bar, { dataKey: "
|
|
740
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_recharts3.Bar, { dataKey: "
|
|
779
|
+
customTooltip && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_recharts3.Tooltip, { content: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(CustomTooltip, {}), cursor: { fill: "transparent" } }),
|
|
780
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_recharts3.Bar, { dataKey: "blue", fill: "url(#blueGradient)", width: 20, shape: CustomBarShape }),
|
|
781
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_recharts3.Bar, { dataKey: "green", fill: "url(#greenGradient)", width: 20, shape: CustomBarShape }),
|
|
782
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_recharts3.Bar, { dataKey: "pink", fill: "url(#pinkGradient)", width: 20, shape: CustomBarShape })
|
|
741
783
|
]
|
|
742
784
|
}
|
|
743
785
|
) })
|
|
@@ -769,31 +811,39 @@ var RadarChart = (0, import_react4.forwardRef)((originalProps, ref) => {
|
|
|
769
811
|
return Math.max(...data.map((item) => item.fullMark || 100));
|
|
770
812
|
}, [data]);
|
|
771
813
|
return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { ref, className: slots.base({ class: classNames == null ? void 0 : classNames.base }), children: [
|
|
772
|
-
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_recharts4.ResponsiveContainer, { width: 580, height: 330, children: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
814
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_recharts4.ResponsiveContainer, { width: 580, height: 330, children: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
|
|
815
|
+
import_recharts4.RadarChart,
|
|
816
|
+
{
|
|
817
|
+
data,
|
|
818
|
+
outerRadius: "80%",
|
|
819
|
+
className: "[&_.recharts-surface]:outline-none [&_.recharts-surface]:focus:outline-none",
|
|
820
|
+
children: [
|
|
821
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_recharts4.PolarGrid, { stroke: "#DFE2E7", strokeWidth: 1.75 }),
|
|
822
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
823
|
+
import_recharts4.PolarAngleAxis,
|
|
824
|
+
{
|
|
825
|
+
dataKey: "name",
|
|
826
|
+
tick: { fill: "#333", fontSize: 12, fontWeight: "bold" },
|
|
827
|
+
tickFormatter: (value) => value,
|
|
828
|
+
tickSize: 15
|
|
829
|
+
}
|
|
830
|
+
),
|
|
831
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_recharts4.PolarRadiusAxis, { domain: [0, maxFullMark], tick: false, tickCount: 6, axisLine: false }),
|
|
832
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
833
|
+
import_recharts4.Radar,
|
|
834
|
+
{
|
|
835
|
+
name: label,
|
|
836
|
+
dataKey: "value",
|
|
837
|
+
stroke: "#3F9CF2",
|
|
838
|
+
fill: "#EFF8FF",
|
|
839
|
+
strokeWidth: 1.75,
|
|
840
|
+
dot: false,
|
|
841
|
+
activeDot: false
|
|
842
|
+
}
|
|
843
|
+
)
|
|
844
|
+
]
|
|
845
|
+
}
|
|
846
|
+
) }),
|
|
797
847
|
label && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("p", { className: slots.label({ class: classNames == null ? void 0 : classNames.label }), children: label })
|
|
798
848
|
] });
|
|
799
849
|
});
|
|
@@ -801,7 +851,7 @@ RadarChart.displayName = "RadarChart";
|
|
|
801
851
|
var radarChart_default = RadarChart;
|
|
802
852
|
var radarChartStyle = tv({
|
|
803
853
|
slots: {
|
|
804
|
-
base: ["flex", "flex-col", "items-center", "gap-[10px]"],
|
|
854
|
+
base: ["flex", "flex-col", "items-center", "gap-[10px]", "select-none"],
|
|
805
855
|
label: ["text-sm", "font-bold", "text-left", "text-body-foreground"]
|
|
806
856
|
},
|
|
807
857
|
variants: {},
|
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
import "../../chunk-VYNBJBXD.mjs";
|
|
3
3
|
import {
|
|
4
4
|
areaChart_default
|
|
5
|
-
} from "../../chunk-
|
|
5
|
+
} from "../../chunk-QKRCC26D.mjs";
|
|
6
6
|
import {
|
|
7
7
|
barChart_default
|
|
8
|
-
} from "../../chunk-
|
|
8
|
+
} from "../../chunk-U33MTXQX.mjs";
|
|
9
9
|
import {
|
|
10
10
|
circularProgress_default
|
|
11
|
-
} from "../../chunk-
|
|
11
|
+
} from "../../chunk-VB5NKWJG.mjs";
|
|
12
12
|
import {
|
|
13
13
|
radarChart_default
|
|
14
|
-
} from "../../chunk-
|
|
14
|
+
} from "../../chunk-UA24L44Z.mjs";
|
|
15
15
|
import "../../chunk-E3G5QXSH.mjs";
|
|
16
16
|
import "../../chunk-CDXBML6O.mjs";
|
|
17
17
|
import "../../chunk-AC6TWLRT.mjs";
|
|
@@ -379,31 +379,39 @@ var RadarChart = (0, import_react.forwardRef)((originalProps, ref) => {
|
|
|
379
379
|
return Math.max(...data.map((item) => item.fullMark || 100));
|
|
380
380
|
}, [data]);
|
|
381
381
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { ref, className: slots.base({ class: classNames == null ? void 0 : classNames.base }), children: [
|
|
382
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_recharts.ResponsiveContainer, { width: 580, height: 330, children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
382
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_recharts.ResponsiveContainer, { width: 580, height: 330, children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
383
|
+
import_recharts.RadarChart,
|
|
384
|
+
{
|
|
385
|
+
data,
|
|
386
|
+
outerRadius: "80%",
|
|
387
|
+
className: "[&_.recharts-surface]:outline-none [&_.recharts-surface]:focus:outline-none",
|
|
388
|
+
children: [
|
|
389
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_recharts.PolarGrid, { stroke: "#DFE2E7", strokeWidth: 1.75 }),
|
|
390
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
391
|
+
import_recharts.PolarAngleAxis,
|
|
392
|
+
{
|
|
393
|
+
dataKey: "name",
|
|
394
|
+
tick: { fill: "#333", fontSize: 12, fontWeight: "bold" },
|
|
395
|
+
tickFormatter: (value) => value,
|
|
396
|
+
tickSize: 15
|
|
397
|
+
}
|
|
398
|
+
),
|
|
399
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_recharts.PolarRadiusAxis, { domain: [0, maxFullMark], tick: false, tickCount: 6, axisLine: false }),
|
|
400
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
401
|
+
import_recharts.Radar,
|
|
402
|
+
{
|
|
403
|
+
name: label,
|
|
404
|
+
dataKey: "value",
|
|
405
|
+
stroke: "#3F9CF2",
|
|
406
|
+
fill: "#EFF8FF",
|
|
407
|
+
strokeWidth: 1.75,
|
|
408
|
+
dot: false,
|
|
409
|
+
activeDot: false
|
|
410
|
+
}
|
|
411
|
+
)
|
|
412
|
+
]
|
|
413
|
+
}
|
|
414
|
+
) }),
|
|
407
415
|
label && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: slots.label({ class: classNames == null ? void 0 : classNames.label }), children: label })
|
|
408
416
|
] });
|
|
409
417
|
});
|
|
@@ -411,7 +419,7 @@ RadarChart.displayName = "RadarChart";
|
|
|
411
419
|
var radarChart_default = RadarChart;
|
|
412
420
|
var radarChartStyle = tv({
|
|
413
421
|
slots: {
|
|
414
|
-
base: ["flex", "flex-col", "items-center", "gap-[10px]"],
|
|
422
|
+
base: ["flex", "flex-col", "items-center", "gap-[10px]", "select-none"],
|
|
415
423
|
label: ["text-sm", "font-bold", "text-left", "text-body-foreground"]
|
|
416
424
|
},
|
|
417
425
|
variants: {},
|
|
@@ -1673,6 +1673,34 @@ var template = {
|
|
|
1673
1673
|
}
|
|
1674
1674
|
);
|
|
1675
1675
|
},
|
|
1676
|
+
"brace-left": ({ className }) => {
|
|
1677
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
1678
|
+
"svg",
|
|
1679
|
+
{
|
|
1680
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1681
|
+
width: "18",
|
|
1682
|
+
height: "18",
|
|
1683
|
+
viewBox: "0 0 18 18",
|
|
1684
|
+
fill: "none",
|
|
1685
|
+
className,
|
|
1686
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M11.5 14L6.5 9L11.5 4", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round" })
|
|
1687
|
+
}
|
|
1688
|
+
);
|
|
1689
|
+
},
|
|
1690
|
+
"brace-right": ({ className }) => {
|
|
1691
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
1692
|
+
"svg",
|
|
1693
|
+
{
|
|
1694
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1695
|
+
width: "18",
|
|
1696
|
+
height: "18",
|
|
1697
|
+
viewBox: "0 0 18 18",
|
|
1698
|
+
fill: "none",
|
|
1699
|
+
className,
|
|
1700
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M6.5 4L11.5 9L6.5 14", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round" })
|
|
1701
|
+
}
|
|
1702
|
+
);
|
|
1703
|
+
},
|
|
1676
1704
|
// ----------------------------------- old ---------------------------------
|
|
1677
1705
|
// ** Status **
|
|
1678
1706
|
check: ({ className, fill }) => {
|
|
@@ -4292,34 +4320,6 @@ var template = {
|
|
|
4292
4320
|
}
|
|
4293
4321
|
);
|
|
4294
4322
|
},
|
|
4295
|
-
"brace-left": ({ className, fill }) => {
|
|
4296
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
4297
|
-
"svg",
|
|
4298
|
-
{
|
|
4299
|
-
width: "24",
|
|
4300
|
-
height: "24",
|
|
4301
|
-
viewBox: "0 0 24 24",
|
|
4302
|
-
fill: "none",
|
|
4303
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
4304
|
-
className,
|
|
4305
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M15.75 19.5L8.25 12L15.75 4.5", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round" })
|
|
4306
|
-
}
|
|
4307
|
-
);
|
|
4308
|
-
},
|
|
4309
|
-
"brace-right": ({ className, fill }) => {
|
|
4310
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
4311
|
-
"svg",
|
|
4312
|
-
{
|
|
4313
|
-
width: "24",
|
|
4314
|
-
height: "24",
|
|
4315
|
-
viewBox: "0 0 24 24",
|
|
4316
|
-
fill: "none",
|
|
4317
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
4318
|
-
className,
|
|
4319
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M8.25 4.5L15.75 12L8.25 19.5", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round" })
|
|
4320
|
-
}
|
|
4321
|
-
);
|
|
4322
|
-
},
|
|
4323
4323
|
"brace-double-up": ({ className, fill }) => {
|
|
4324
4324
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
4325
4325
|
"svg",
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
chip_default
|
|
4
|
-
} from "../../chunk-
|
|
4
|
+
} from "../../chunk-YUS5SELP.mjs";
|
|
5
5
|
import "../../chunk-ZYIIXWVY.mjs";
|
|
6
|
-
import "../../chunk-
|
|
6
|
+
import "../../chunk-EM2NIGNZ.mjs";
|
|
7
7
|
import "../../chunk-E3G5QXSH.mjs";
|
|
8
|
-
import "../../chunk-
|
|
8
|
+
import "../../chunk-CTWYY7Z2.mjs";
|
|
9
9
|
import "../../chunk-CDXBML6O.mjs";
|
|
10
10
|
import "../../chunk-AC6TWLRT.mjs";
|
|
11
11
|
export {
|
|
@@ -1675,6 +1675,34 @@ var template = {
|
|
|
1675
1675
|
}
|
|
1676
1676
|
);
|
|
1677
1677
|
},
|
|
1678
|
+
"brace-left": ({ className }) => {
|
|
1679
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
1680
|
+
"svg",
|
|
1681
|
+
{
|
|
1682
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1683
|
+
width: "18",
|
|
1684
|
+
height: "18",
|
|
1685
|
+
viewBox: "0 0 18 18",
|
|
1686
|
+
fill: "none",
|
|
1687
|
+
className,
|
|
1688
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M11.5 14L6.5 9L11.5 4", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round" })
|
|
1689
|
+
}
|
|
1690
|
+
);
|
|
1691
|
+
},
|
|
1692
|
+
"brace-right": ({ className }) => {
|
|
1693
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
1694
|
+
"svg",
|
|
1695
|
+
{
|
|
1696
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1697
|
+
width: "18",
|
|
1698
|
+
height: "18",
|
|
1699
|
+
viewBox: "0 0 18 18",
|
|
1700
|
+
fill: "none",
|
|
1701
|
+
className,
|
|
1702
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M6.5 4L11.5 9L6.5 14", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round" })
|
|
1703
|
+
}
|
|
1704
|
+
);
|
|
1705
|
+
},
|
|
1678
1706
|
// ----------------------------------- old ---------------------------------
|
|
1679
1707
|
// ** Status **
|
|
1680
1708
|
check: ({ className, fill }) => {
|
|
@@ -4294,34 +4322,6 @@ var template = {
|
|
|
4294
4322
|
}
|
|
4295
4323
|
);
|
|
4296
4324
|
},
|
|
4297
|
-
"brace-left": ({ className, fill }) => {
|
|
4298
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
4299
|
-
"svg",
|
|
4300
|
-
{
|
|
4301
|
-
width: "24",
|
|
4302
|
-
height: "24",
|
|
4303
|
-
viewBox: "0 0 24 24",
|
|
4304
|
-
fill: "none",
|
|
4305
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
4306
|
-
className,
|
|
4307
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M15.75 19.5L8.25 12L15.75 4.5", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round" })
|
|
4308
|
-
}
|
|
4309
|
-
);
|
|
4310
|
-
},
|
|
4311
|
-
"brace-right": ({ className, fill }) => {
|
|
4312
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
4313
|
-
"svg",
|
|
4314
|
-
{
|
|
4315
|
-
width: "24",
|
|
4316
|
-
height: "24",
|
|
4317
|
-
viewBox: "0 0 24 24",
|
|
4318
|
-
fill: "none",
|
|
4319
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
4320
|
-
className,
|
|
4321
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M8.25 4.5L15.75 12L8.25 19.5", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round" })
|
|
4322
|
-
}
|
|
4323
|
-
);
|
|
4324
|
-
},
|
|
4325
4325
|
"brace-double-up": ({ className, fill }) => {
|
|
4326
4326
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
4327
4327
|
"svg",
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
import "../../chunk-MGEWSREV.mjs";
|
|
3
3
|
import {
|
|
4
4
|
chip_default
|
|
5
|
-
} from "../../chunk-
|
|
5
|
+
} from "../../chunk-YUS5SELP.mjs";
|
|
6
6
|
import "../../chunk-ZYIIXWVY.mjs";
|
|
7
|
-
import "../../chunk-
|
|
7
|
+
import "../../chunk-EM2NIGNZ.mjs";
|
|
8
8
|
import "../../chunk-E3G5QXSH.mjs";
|
|
9
|
-
import "../../chunk-
|
|
9
|
+
import "../../chunk-CTWYY7Z2.mjs";
|
|
10
10
|
import "../../chunk-CDXBML6O.mjs";
|
|
11
11
|
import "../../chunk-AC6TWLRT.mjs";
|
|
12
12
|
export {
|