@deepnoid/ui 0.1.123 → 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 +180 -180
- 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-ITDBI3X2.mjs → chunk-HO533YTO.mjs} +8 -8
- 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-JGQ5MLQ7.mjs → chunk-OEFILEL3.mjs} +1 -1
- 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 +225 -105
- package/dist/components/charts/index.mjs +10 -7
- 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 +13 -13
- 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 +8 -8
- 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 +112 -69
- 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
|
@@ -495,28 +495,132 @@ var circularProgressStyle = tv({
|
|
|
495
495
|
// src/components/charts/areaChart.tsx
|
|
496
496
|
var import_react2 = require("react");
|
|
497
497
|
var import_recharts2 = require("recharts");
|
|
498
|
+
|
|
499
|
+
// src/components/scroll/scrollArea.tsx
|
|
500
|
+
var import_tailwind_variants3 = require("tailwind-variants");
|
|
501
|
+
|
|
502
|
+
// src/utils/clsx.ts
|
|
503
|
+
function clsx(...args) {
|
|
504
|
+
var i = 0, tmp, x, str = "";
|
|
505
|
+
while (i < args.length) {
|
|
506
|
+
if (tmp = args[i++]) {
|
|
507
|
+
if (x = toVal(tmp)) {
|
|
508
|
+
str && (str += " ");
|
|
509
|
+
str += x;
|
|
510
|
+
}
|
|
511
|
+
}
|
|
512
|
+
}
|
|
513
|
+
return str;
|
|
514
|
+
}
|
|
515
|
+
function toVal(mix) {
|
|
516
|
+
var k, y, str = "";
|
|
517
|
+
if (typeof mix === "string" || typeof mix === "number") {
|
|
518
|
+
str += mix;
|
|
519
|
+
} else if (typeof mix === "object") {
|
|
520
|
+
if (Array.isArray(mix)) {
|
|
521
|
+
var len = mix.length;
|
|
522
|
+
for (k = 0; k < len; k++) {
|
|
523
|
+
if (mix[k]) {
|
|
524
|
+
if (y = toVal(mix[k])) {
|
|
525
|
+
str && (str += " ");
|
|
526
|
+
str += y;
|
|
527
|
+
}
|
|
528
|
+
}
|
|
529
|
+
}
|
|
530
|
+
} else {
|
|
531
|
+
for (y in mix) {
|
|
532
|
+
if (mix[y]) {
|
|
533
|
+
str && (str += " ");
|
|
534
|
+
str += y;
|
|
535
|
+
}
|
|
536
|
+
}
|
|
537
|
+
}
|
|
538
|
+
}
|
|
539
|
+
return str;
|
|
540
|
+
}
|
|
541
|
+
|
|
542
|
+
// src/components/scroll/scrollArea.tsx
|
|
498
543
|
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
544
|
+
var ScrollArea = ({ children, className, direction, size }) => {
|
|
545
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { className: clsx(scrollAreaStyle({ direction, size }), className), children });
|
|
546
|
+
};
|
|
547
|
+
ScrollArea.displayName = "ScrollArea";
|
|
548
|
+
var scrollArea_default = ScrollArea;
|
|
549
|
+
var scrollAreaStyle = (0, import_tailwind_variants3.tv)({
|
|
550
|
+
base: [
|
|
551
|
+
"h-full",
|
|
552
|
+
"x-full",
|
|
553
|
+
"scrollbar-thumb-trans-soft",
|
|
554
|
+
"hover:scrollbar-thumb-neutral-light",
|
|
555
|
+
"scrollbar-track-neutral-soft",
|
|
556
|
+
"scrollbar-button-neutral-main"
|
|
557
|
+
],
|
|
558
|
+
variants: {
|
|
559
|
+
direction: {
|
|
560
|
+
x: ["overflow-x-auto", "overflow-y-hidden"],
|
|
561
|
+
y: ["overflow-y-auto", "overflow-x-hidden"],
|
|
562
|
+
both: ["overflow-auto"]
|
|
563
|
+
},
|
|
564
|
+
size: {
|
|
565
|
+
sm: ["scrollbar-sm"],
|
|
566
|
+
// "scrollbar-thin",
|
|
567
|
+
md: ["scrollbar-md"],
|
|
568
|
+
lg: ["scrollbar-lg"]
|
|
569
|
+
}
|
|
570
|
+
},
|
|
571
|
+
defaultVariants: {
|
|
572
|
+
direction: "both",
|
|
573
|
+
size: "md"
|
|
574
|
+
}
|
|
575
|
+
});
|
|
576
|
+
|
|
577
|
+
// src/components/charts/areaChart.tsx
|
|
578
|
+
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
499
579
|
var AreaChartComponent = (0, import_react2.forwardRef)((originalProps, ref) => {
|
|
500
580
|
const uniqueId = (0, import_react2.useId)();
|
|
501
581
|
const [props, variantProps] = mapPropsVariants(originalProps, areaChartStyle.variantKeys);
|
|
502
|
-
const {
|
|
582
|
+
const {
|
|
583
|
+
data,
|
|
584
|
+
label,
|
|
585
|
+
headerContent,
|
|
586
|
+
color = "primary",
|
|
587
|
+
startFromZero = false,
|
|
588
|
+
itemWidth,
|
|
589
|
+
chartHeight = 240,
|
|
590
|
+
classNames
|
|
591
|
+
} = { ...props, ...variantProps };
|
|
503
592
|
const slots = (0, import_react2.useMemo)(() => areaChartStyle({ ...variantProps }), [variantProps]);
|
|
504
593
|
const COLOR_MAP = {
|
|
505
594
|
primary: "#3F9CF2",
|
|
506
595
|
danger: "#FF4684"
|
|
507
596
|
};
|
|
508
597
|
const colorHex = (0, import_react2.useMemo)(() => COLOR_MAP[color], [color]);
|
|
598
|
+
const totalChartWidth = (0, import_react2.useMemo)(() => {
|
|
599
|
+
if (!data || !itemWidth) return void 0;
|
|
600
|
+
const dataLength = startFromZero ? data.length + 1 : data.length;
|
|
601
|
+
return dataLength * itemWidth;
|
|
602
|
+
}, [data, itemWidth, startFromZero]);
|
|
603
|
+
const needsScroll = (0, import_react2.useMemo)(() => {
|
|
604
|
+
return totalChartWidth;
|
|
605
|
+
}, [totalChartWidth]);
|
|
606
|
+
const processedData = (0, import_react2.useMemo)(() => {
|
|
607
|
+
if (!data) return [];
|
|
608
|
+
return data;
|
|
609
|
+
}, [data, startFromZero]);
|
|
509
610
|
const [tickPositions, setTickPositions] = (0, import_react2.useState)([]);
|
|
510
611
|
const tickRef = (0, import_react2.useRef)([]);
|
|
511
612
|
const CustomTick = ({ x, y, payload }) => {
|
|
512
613
|
if (x !== void 0) {
|
|
513
614
|
tickRef.current.push(x);
|
|
514
615
|
}
|
|
515
|
-
|
|
616
|
+
if (startFromZero && payload.value === "") {
|
|
617
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("g", {});
|
|
618
|
+
}
|
|
619
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
516
620
|
"text",
|
|
517
621
|
{
|
|
518
622
|
x,
|
|
519
|
-
y: y +
|
|
623
|
+
y: y + 11,
|
|
520
624
|
textAnchor: "middle",
|
|
521
625
|
fontSize: 12,
|
|
522
626
|
fontWeight: 700,
|
|
@@ -537,79 +641,95 @@ var AreaChartComponent = (0, import_react2.forwardRef)((originalProps, ref) => {
|
|
|
537
641
|
tickRef.current = [];
|
|
538
642
|
});
|
|
539
643
|
return () => cancelAnimationFrame(raf);
|
|
540
|
-
}, [
|
|
644
|
+
}, [processedData]);
|
|
541
645
|
const CustomDotWithShadow = (props2) => {
|
|
542
|
-
const { cx, cy, fill, stroke } = props2;
|
|
646
|
+
const { cx, cy, fill, stroke, payload } = props2;
|
|
543
647
|
if (cx === void 0 || cy === void 0) return null;
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
648
|
+
if (startFromZero && (payload == null ? void 0 : payload.name) === "") {
|
|
649
|
+
return null;
|
|
650
|
+
}
|
|
651
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_jsx_runtime3.Fragment, { children: [
|
|
652
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("circle", { cx, cy, r: 8, fill, opacity: 0.2 }),
|
|
653
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("circle", { cx, cy, r: 3.5, fill, stroke, strokeWidth: 2 })
|
|
547
654
|
] });
|
|
548
655
|
};
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
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
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
656
|
+
const chartContent = /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
657
|
+
"div",
|
|
658
|
+
{
|
|
659
|
+
style: {
|
|
660
|
+
width: totalChartWidth || "100%",
|
|
661
|
+
minWidth: totalChartWidth || "100%"
|
|
662
|
+
},
|
|
663
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
|
|
664
|
+
import_recharts2.AreaChart,
|
|
665
|
+
{
|
|
666
|
+
width: totalChartWidth || 400,
|
|
667
|
+
height: chartHeight + 30,
|
|
668
|
+
data: processedData,
|
|
669
|
+
margin: { left: -30 },
|
|
670
|
+
className: "bg-body-background [&_.recharts-surface]:outline-none [&_.recharts-surface]:focus:outline-none",
|
|
671
|
+
children: [
|
|
672
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("linearGradient", { id: `colorGradient-${uniqueId}`, x1: "0", y1: "0", x2: "0", y2: "1", children: [
|
|
673
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("stop", { offset: "5%", stopColor: colorHex, stopOpacity: 0.3 }),
|
|
674
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("stop", { offset: "95%", stopColor: colorHex, stopOpacity: 0 })
|
|
675
|
+
] }) }),
|
|
676
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
677
|
+
import_recharts2.CartesianGrid,
|
|
678
|
+
{
|
|
679
|
+
vertical: true,
|
|
680
|
+
horizontal: false,
|
|
681
|
+
strokeDasharray: "3 3",
|
|
682
|
+
className: "stroke-neutral-light",
|
|
683
|
+
verticalPoints: tickPositions
|
|
684
|
+
}
|
|
685
|
+
),
|
|
686
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
687
|
+
import_recharts2.XAxis,
|
|
688
|
+
{
|
|
689
|
+
dataKey: "name",
|
|
690
|
+
axisLine: { stroke: "#DFE2E7", strokeWidth: 1 },
|
|
691
|
+
tickLine: false,
|
|
692
|
+
tick: CustomTick,
|
|
693
|
+
padding: { left: 35.5, right: 35.5 }
|
|
694
|
+
}
|
|
695
|
+
),
|
|
696
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
697
|
+
import_recharts2.YAxis,
|
|
698
|
+
{
|
|
699
|
+
axisLine: { stroke: "#DFE2E7", strokeWidth: 1 },
|
|
700
|
+
tickLine: false,
|
|
701
|
+
tick: {
|
|
702
|
+
fontSize: 12,
|
|
703
|
+
fontWeight: 700,
|
|
704
|
+
fill: "text-body-foreground",
|
|
705
|
+
textAnchor: "middle",
|
|
706
|
+
dx: -10
|
|
707
|
+
},
|
|
708
|
+
ticks: [0, 20, 40, 60, 80, 100],
|
|
709
|
+
domain: [-6, 110]
|
|
710
|
+
}
|
|
711
|
+
),
|
|
712
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
713
|
+
import_recharts2.Area,
|
|
714
|
+
{
|
|
715
|
+
type: "monotone",
|
|
716
|
+
dataKey: "value",
|
|
717
|
+
stroke: colorHex,
|
|
718
|
+
strokeWidth: 2,
|
|
719
|
+
fill: `url(#colorGradient-${uniqueId})`,
|
|
720
|
+
dot: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(CustomDotWithShadow, { stroke: colorHex, fill: colorHex }),
|
|
721
|
+
activeDot: false
|
|
722
|
+
}
|
|
723
|
+
)
|
|
724
|
+
]
|
|
725
|
+
}
|
|
726
|
+
)
|
|
727
|
+
}
|
|
728
|
+
);
|
|
729
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { ref, className: slots.base({ class: classNames == null ? void 0 : classNames.base }), children: [
|
|
730
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("p", { className: slots.label({ class: classNames == null ? void 0 : classNames.label }), children: label }),
|
|
731
|
+
headerContent,
|
|
732
|
+
needsScroll ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(scrollArea_default, { direction: "x", size: "sm", children: chartContent }) : chartContent
|
|
613
733
|
] });
|
|
614
734
|
});
|
|
615
735
|
AreaChartComponent.displayName = "AreaChart";
|
|
@@ -639,7 +759,7 @@ var areaChartStyle = tv({
|
|
|
639
759
|
// src/components/charts/barChart.tsx
|
|
640
760
|
var import_react3 = require("react");
|
|
641
761
|
var import_recharts3 = require("recharts");
|
|
642
|
-
var
|
|
762
|
+
var import_jsx_runtime4 = require("react/jsx-runtime");
|
|
643
763
|
var BarChartComponent = (0, import_react3.forwardRef)((originalProps, ref) => {
|
|
644
764
|
const [props, variantProps] = mapPropsVariants(originalProps, barChartStyle.variantKeys);
|
|
645
765
|
const {
|
|
@@ -661,19 +781,19 @@ var BarChartComponent = (0, import_react3.forwardRef)((originalProps, ref) => {
|
|
|
661
781
|
const adjustedHeight = height + extraHeight;
|
|
662
782
|
const adjustedY = y;
|
|
663
783
|
const bottomY = adjustedY + adjustedHeight;
|
|
664
|
-
return height ? /* @__PURE__ */ (0,
|
|
784
|
+
return height ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
665
785
|
"path",
|
|
666
786
|
{
|
|
667
787
|
d: `M${x},${bottomY} L${x},${adjustedY + radius} Q${x},${adjustedY} ${x + radius},${adjustedY} L${x + width - radius},${adjustedY} Q${x + width},${adjustedY} ${x + width},${adjustedY + radius} L${x + width},${bottomY} Z`,
|
|
668
788
|
fill
|
|
669
789
|
}
|
|
670
|
-
) : /* @__PURE__ */ (0,
|
|
790
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("rect", { x, y, width, height: 0, fill });
|
|
671
791
|
};
|
|
672
792
|
const CustomTick = ({ x, y, payload }) => {
|
|
673
793
|
if (x !== void 0) {
|
|
674
794
|
tickRef.current.push(x);
|
|
675
795
|
}
|
|
676
|
-
return /* @__PURE__ */ (0,
|
|
796
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
677
797
|
"text",
|
|
678
798
|
{
|
|
679
799
|
x,
|
|
@@ -688,7 +808,7 @@ var BarChartComponent = (0, import_react3.forwardRef)((originalProps, ref) => {
|
|
|
688
808
|
);
|
|
689
809
|
};
|
|
690
810
|
const CustomYAxisTick = ({ x, y, payload }) => {
|
|
691
|
-
return /* @__PURE__ */ (0,
|
|
811
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
692
812
|
"text",
|
|
693
813
|
{
|
|
694
814
|
x: x - 10,
|
|
@@ -721,9 +841,9 @@ var BarChartComponent = (0, import_react3.forwardRef)((originalProps, ref) => {
|
|
|
721
841
|
});
|
|
722
842
|
return () => cancelAnimationFrame(raf);
|
|
723
843
|
}, [data]);
|
|
724
|
-
return /* @__PURE__ */ (0,
|
|
725
|
-
label && /* @__PURE__ */ (0,
|
|
726
|
-
/* @__PURE__ */ (0,
|
|
844
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { ref, className: slots.base({ class: classNames == null ? void 0 : classNames.base }), children: [
|
|
845
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("p", { className: slots.label({ class: classNames == null ? void 0 : classNames.label }), children: label }),
|
|
846
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_recharts3.ResponsiveContainer, { width: "100%", height: "100%", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
|
|
727
847
|
import_recharts3.BarChart,
|
|
728
848
|
{
|
|
729
849
|
data,
|
|
@@ -732,21 +852,21 @@ var BarChartComponent = (0, import_react3.forwardRef)((originalProps, ref) => {
|
|
|
732
852
|
barGap: 20,
|
|
733
853
|
className: "[&_.recharts-surface]:outline-none [&_.recharts-surface]:focus:outline-none",
|
|
734
854
|
children: [
|
|
735
|
-
/* @__PURE__ */ (0,
|
|
736
|
-
/* @__PURE__ */ (0,
|
|
737
|
-
/* @__PURE__ */ (0,
|
|
738
|
-
/* @__PURE__ */ (0,
|
|
855
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("defs", { children: [
|
|
856
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("linearGradient", { id: "blueGradient", x1: "0", y1: "0", x2: "0", y2: "1", children: [
|
|
857
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("stop", { offset: "0%", stopColor: "#DEC1FA" }),
|
|
858
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("stop", { offset: "100%", stopColor: "#3F9CF2" })
|
|
739
859
|
] }),
|
|
740
|
-
/* @__PURE__ */ (0,
|
|
741
|
-
/* @__PURE__ */ (0,
|
|
742
|
-
/* @__PURE__ */ (0,
|
|
860
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("linearGradient", { id: "greenGradient", x1: "0", y1: "0", x2: "0", y2: "1", children: [
|
|
861
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("stop", { offset: "0%", stopColor: "#C2E59C" }),
|
|
862
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("stop", { offset: "100%", stopColor: "#64B3F4" })
|
|
743
863
|
] }),
|
|
744
|
-
/* @__PURE__ */ (0,
|
|
745
|
-
/* @__PURE__ */ (0,
|
|
746
|
-
/* @__PURE__ */ (0,
|
|
864
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("linearGradient", { id: "pinkGradient", x1: "0", y1: "0", x2: "0", y2: "1", children: [
|
|
865
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("stop", { offset: "0%", stopColor: "#DDD6F3" }),
|
|
866
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("stop", { offset: "100%", stopColor: "#FAACA8" })
|
|
747
867
|
] })
|
|
748
868
|
] }),
|
|
749
|
-
/* @__PURE__ */ (0,
|
|
869
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
750
870
|
import_recharts3.CartesianGrid,
|
|
751
871
|
{
|
|
752
872
|
vertical: true,
|
|
@@ -756,7 +876,7 @@ var BarChartComponent = (0, import_react3.forwardRef)((originalProps, ref) => {
|
|
|
756
876
|
verticalPoints: tickPositions
|
|
757
877
|
}
|
|
758
878
|
),
|
|
759
|
-
/* @__PURE__ */ (0,
|
|
879
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
760
880
|
import_recharts3.XAxis,
|
|
761
881
|
{
|
|
762
882
|
dataKey: "title",
|
|
@@ -766,7 +886,7 @@ var BarChartComponent = (0, import_react3.forwardRef)((originalProps, ref) => {
|
|
|
766
886
|
padding: { left: 0, right: 0 }
|
|
767
887
|
}
|
|
768
888
|
),
|
|
769
|
-
/* @__PURE__ */ (0,
|
|
889
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
770
890
|
import_recharts3.YAxis,
|
|
771
891
|
{
|
|
772
892
|
axisLine: { stroke: "#DFE2E7", strokeWidth: 1 },
|
|
@@ -776,10 +896,10 @@ var BarChartComponent = (0, import_react3.forwardRef)((originalProps, ref) => {
|
|
|
776
896
|
domain: yAxisDomain
|
|
777
897
|
}
|
|
778
898
|
),
|
|
779
|
-
customTooltip && /* @__PURE__ */ (0,
|
|
780
|
-
/* @__PURE__ */ (0,
|
|
781
|
-
/* @__PURE__ */ (0,
|
|
782
|
-
/* @__PURE__ */ (0,
|
|
899
|
+
customTooltip && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_recharts3.Tooltip, { content: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(CustomTooltip, {}), cursor: { fill: "transparent" } }),
|
|
900
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_recharts3.Bar, { dataKey: "blue", fill: "url(#blueGradient)", width: 20, shape: CustomBarShape }),
|
|
901
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_recharts3.Bar, { dataKey: "green", fill: "url(#greenGradient)", width: 20, shape: CustomBarShape }),
|
|
902
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_recharts3.Bar, { dataKey: "pink", fill: "url(#pinkGradient)", width: 20, shape: CustomBarShape })
|
|
783
903
|
]
|
|
784
904
|
}
|
|
785
905
|
) })
|
|
@@ -801,7 +921,7 @@ var barChartStyle = tv({
|
|
|
801
921
|
// src/components/charts/radarChart.tsx
|
|
802
922
|
var import_recharts4 = require("recharts");
|
|
803
923
|
var import_react4 = require("react");
|
|
804
|
-
var
|
|
924
|
+
var import_jsx_runtime5 = require("react/jsx-runtime");
|
|
805
925
|
var RadarChart = (0, import_react4.forwardRef)((originalProps, ref) => {
|
|
806
926
|
const [props, variantProps] = mapPropsVariants(originalProps, radarChartStyle.variantKeys);
|
|
807
927
|
const { data, label, classNames } = { ...props, ...variantProps };
|
|
@@ -826,9 +946,9 @@ var RadarChart = (0, import_react4.forwardRef)((originalProps, ref) => {
|
|
|
826
946
|
if (data.length === 3) return { cx: "50%", cy: "65%" };
|
|
827
947
|
return {};
|
|
828
948
|
}, [data]);
|
|
829
|
-
return /* @__PURE__ */ (0,
|
|
830
|
-
label && /* @__PURE__ */ (0,
|
|
831
|
-
/* @__PURE__ */ (0,
|
|
949
|
+
return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { ref, className: slots.base({ class: classNames == null ? void 0 : classNames.base }), children: [
|
|
950
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("p", { className: slots.label({ class: classNames == null ? void 0 : classNames.label }), children: label }),
|
|
951
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { style: { width: "100%" }, children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_recharts4.ResponsiveContainer, { width: "100%", height: containerHeight, children: /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
|
|
832
952
|
import_recharts4.RadarChart,
|
|
833
953
|
{
|
|
834
954
|
data,
|
|
@@ -837,8 +957,8 @@ var RadarChart = (0, import_react4.forwardRef)((originalProps, ref) => {
|
|
|
837
957
|
...chartCenter,
|
|
838
958
|
className: "[&_.recharts-surface]:outline-none [&_.recharts-surface]:focus:outline-none",
|
|
839
959
|
children: [
|
|
840
|
-
/* @__PURE__ */ (0,
|
|
841
|
-
/* @__PURE__ */ (0,
|
|
960
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_recharts4.PolarGrid, { stroke: "#DFE2E7", strokeWidth: 1.75 }),
|
|
961
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
842
962
|
import_recharts4.PolarAngleAxis,
|
|
843
963
|
{
|
|
844
964
|
dataKey: "name",
|
|
@@ -847,8 +967,8 @@ var RadarChart = (0, import_react4.forwardRef)((originalProps, ref) => {
|
|
|
847
967
|
tickSize: 15
|
|
848
968
|
}
|
|
849
969
|
),
|
|
850
|
-
/* @__PURE__ */ (0,
|
|
851
|
-
/* @__PURE__ */ (0,
|
|
970
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_recharts4.PolarRadiusAxis, { domain: [0, maxFullMark], tick: false, tickCount: 6, axisLine: false }),
|
|
971
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
852
972
|
import_recharts4.Radar,
|
|
853
973
|
{
|
|
854
974
|
name: label,
|
|
@@ -1,19 +1,22 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import "../../chunk-VYNBJBXD.mjs";
|
|
3
|
+
import {
|
|
4
|
+
radarChart_default
|
|
5
|
+
} from "../../chunk-OEFILEL3.mjs";
|
|
3
6
|
import {
|
|
4
7
|
areaChart_default
|
|
5
|
-
} from "../../chunk-
|
|
8
|
+
} from "../../chunk-IHLCZM5T.mjs";
|
|
9
|
+
import "../../chunk-DQRAFUDA.mjs";
|
|
10
|
+
import "../../chunk-M37VBNB3.mjs";
|
|
6
11
|
import {
|
|
7
12
|
barChart_default
|
|
8
|
-
} from "../../chunk-
|
|
13
|
+
} from "../../chunk-WNNOVISA.mjs";
|
|
9
14
|
import {
|
|
10
15
|
circularProgress_default
|
|
11
|
-
} from "../../chunk-
|
|
12
|
-
import {
|
|
13
|
-
radarChart_default
|
|
14
|
-
} from "../../chunk-JGQ5MLQ7.mjs";
|
|
16
|
+
} from "../../chunk-5XW5QDIW.mjs";
|
|
15
17
|
import "../../chunk-E3G5QXSH.mjs";
|
|
16
|
-
import "../../chunk-
|
|
18
|
+
import "../../chunk-76QIZILI.mjs";
|
|
19
|
+
import "../../chunk-27Y6K5NK.mjs";
|
|
17
20
|
import "../../chunk-AC6TWLRT.mjs";
|
|
18
21
|
export {
|
|
19
22
|
areaChart_default as AreaChart,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
radarChart_default
|
|
4
|
-
} from "../../chunk-
|
|
4
|
+
} from "../../chunk-OEFILEL3.mjs";
|
|
5
5
|
import "../../chunk-E3G5QXSH.mjs";
|
|
6
|
-
import "../../chunk-
|
|
6
|
+
import "../../chunk-76QIZILI.mjs";
|
|
7
7
|
import "../../chunk-AC6TWLRT.mjs";
|
|
8
8
|
export {
|
|
9
9
|
radarChart_default as default
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
checkbox_default
|
|
4
|
-
} from "../../chunk-
|
|
4
|
+
} from "../../chunk-3U5NJTRH.mjs";
|
|
5
5
|
import "../../chunk-E3G5QXSH.mjs";
|
|
6
|
-
import "../../chunk-
|
|
6
|
+
import "../../chunk-76QIZILI.mjs";
|
|
7
7
|
import "../../chunk-27Y6K5NK.mjs";
|
|
8
8
|
import "../../chunk-AC6TWLRT.mjs";
|
|
9
9
|
export {
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import "../../chunk-QZ3LVYJW.mjs";
|
|
3
3
|
import {
|
|
4
4
|
checkbox_default
|
|
5
|
-
} from "../../chunk-
|
|
5
|
+
} from "../../chunk-3U5NJTRH.mjs";
|
|
6
6
|
import "../../chunk-E3G5QXSH.mjs";
|
|
7
|
-
import "../../chunk-
|
|
7
|
+
import "../../chunk-76QIZILI.mjs";
|
|
8
8
|
import "../../chunk-27Y6K5NK.mjs";
|
|
9
9
|
import "../../chunk-AC6TWLRT.mjs";
|
|
10
10
|
export {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
chip_default
|
|
4
|
-
} from "../../chunk-
|
|
4
|
+
} from "../../chunk-WOGNHRNX.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-AC6TWLRT.mjs";
|
|
11
11
|
export {
|
|
12
12
|
chip_default as default
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
import "../../chunk-MGEWSREV.mjs";
|
|
3
3
|
import {
|
|
4
4
|
chip_default
|
|
5
|
-
} from "../../chunk-
|
|
5
|
+
} from "../../chunk-WOGNHRNX.mjs";
|
|
6
6
|
import "../../chunk-ZYIIXWVY.mjs";
|
|
7
7
|
import "../../chunk-YZ57UYAS.mjs";
|
|
8
8
|
import "../../chunk-E3G5QXSH.mjs";
|
|
9
9
|
import "../../chunk-BG4DIGKH.mjs";
|
|
10
|
-
import "../../chunk-
|
|
10
|
+
import "../../chunk-76QIZILI.mjs";
|
|
11
11
|
import "../../chunk-AC6TWLRT.mjs";
|
|
12
12
|
export {
|
|
13
13
|
chip_default as Chip
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
drawer_default
|
|
4
|
-
} from "../../chunk-
|
|
4
|
+
} from "../../chunk-5XV45JBV.mjs";
|
|
5
5
|
import "../../chunk-E3G5QXSH.mjs";
|
|
6
|
-
import "../../chunk-
|
|
6
|
+
import "../../chunk-76QIZILI.mjs";
|
|
7
7
|
import "../../chunk-27Y6K5NK.mjs";
|
|
8
8
|
import "../../chunk-AC6TWLRT.mjs";
|
|
9
9
|
export {
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import "../../chunk-32GA3YW4.mjs";
|
|
3
3
|
import {
|
|
4
4
|
drawer_default
|
|
5
|
-
} from "../../chunk-
|
|
5
|
+
} from "../../chunk-5XV45JBV.mjs";
|
|
6
6
|
import "../../chunk-E3G5QXSH.mjs";
|
|
7
|
-
import "../../chunk-
|
|
7
|
+
import "../../chunk-76QIZILI.mjs";
|
|
8
8
|
import "../../chunk-27Y6K5NK.mjs";
|
|
9
9
|
import "../../chunk-AC6TWLRT.mjs";
|
|
10
10
|
export {
|
|
@@ -3,24 +3,24 @@ import {
|
|
|
3
3
|
FileUpload,
|
|
4
4
|
fileUploadStyle,
|
|
5
5
|
fileUpload_default
|
|
6
|
-
} from "../../chunk-
|
|
6
|
+
} from "../../chunk-C5IJSWWJ.mjs";
|
|
7
7
|
import "../../chunk-7VOQKIIK.mjs";
|
|
8
|
-
import "../../chunk-
|
|
8
|
+
import "../../chunk-MCBAEW2Q.mjs";
|
|
9
9
|
import "../../chunk-2GCSFWHD.mjs";
|
|
10
|
-
import "../../chunk-
|
|
10
|
+
import "../../chunk-HKONMHXA.mjs";
|
|
11
11
|
import "../../chunk-MY5U63QO.mjs";
|
|
12
|
-
import "../../chunk-
|
|
13
|
-
import "../../chunk-
|
|
14
|
-
import "../../chunk-
|
|
15
|
-
import "../../chunk-6JLHCQH7.mjs";
|
|
12
|
+
import "../../chunk-GUTGDPXH.mjs";
|
|
13
|
+
import "../../chunk-3HY74IGR.mjs";
|
|
14
|
+
import "../../chunk-6UKNZTOL.mjs";
|
|
16
15
|
import "../../chunk-6WSACUIB.mjs";
|
|
17
16
|
import "../../chunk-LXHUO6VM.mjs";
|
|
18
17
|
import "../../chunk-SZL743JC.mjs";
|
|
19
18
|
import "../../chunk-ZYIIXWVY.mjs";
|
|
20
19
|
import "../../chunk-YZ57UYAS.mjs";
|
|
20
|
+
import "../../chunk-SDUDU3CU.mjs";
|
|
21
21
|
import "../../chunk-E3G5QXSH.mjs";
|
|
22
22
|
import "../../chunk-BG4DIGKH.mjs";
|
|
23
|
-
import "../../chunk-
|
|
23
|
+
import "../../chunk-76QIZILI.mjs";
|
|
24
24
|
import "../../chunk-3V4HT2K5.mjs";
|
|
25
25
|
import "../../chunk-27Y6K5NK.mjs";
|
|
26
26
|
import "../../chunk-AC6TWLRT.mjs";
|