@deepnoid/ui 0.1.113 → 0.1.115
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 +146 -146
- package/dist/{chunk-H6G6INED.mjs → chunk-7YCUFFKZ.mjs} +1 -1
- package/dist/{chunk-LXDKYJ5H.mjs → chunk-AHBBUMPX.mjs} +4 -4
- package/dist/{chunk-4NVZMJGS.mjs → chunk-AX3FVJMY.mjs} +1 -1
- package/dist/{chunk-3ER5WNGC.mjs → chunk-CEMBGO4V.mjs} +2 -2
- package/dist/{chunk-GAZ472ZU.mjs → chunk-CF7LIQF6.mjs} +54 -44
- package/dist/chunk-KIN2UK2C.mjs +132 -0
- package/dist/{chunk-JFWWH3LL.mjs → chunk-MTQGHQ7Z.mjs} +3 -3
- package/dist/{chunk-I7QMOYZO.mjs → chunk-NEBMBSKV.mjs} +4 -4
- package/dist/{chunk-6PNKRBUT.mjs → chunk-SZL743JC.mjs} +1 -1
- package/dist/{chunk-77EXMT5I.mjs → chunk-TMHYS2DC.mjs} +5 -5
- package/dist/{chunk-TLOKYBIC.mjs → chunk-UNYKQTEP.mjs} +4 -4
- package/dist/{chunk-2PZRTIRD.mjs → chunk-WKMBRUGX.mjs} +1 -1
- package/dist/components/backdrop/backdrop.mjs +2 -2
- package/dist/components/backdrop/index.mjs +2 -2
- package/dist/components/breadcrumb/breadcrumb.mjs +7 -7
- package/dist/components/breadcrumb/index.mjs +7 -7
- package/dist/components/button/button.js +1 -1
- package/dist/components/button/button.mjs +3 -3
- package/dist/components/button/icon-button.js +1 -1
- package/dist/components/button/icon-button.mjs +3 -3
- package/dist/components/button/index.js +1 -1
- package/dist/components/button/index.mjs +6 -6
- package/dist/components/button/text-button.mjs +2 -2
- package/dist/components/charts/barChart.js +54 -44
- package/dist/components/charts/barChart.mjs +1 -1
- package/dist/components/charts/circularProgress.d.mts +18 -33
- package/dist/components/charts/circularProgress.d.ts +18 -33
- package/dist/components/charts/circularProgress.js +56 -31
- package/dist/components/charts/circularProgress.mjs +1 -1
- package/dist/components/charts/index.js +110 -75
- package/dist/components/charts/index.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 +1 -1
- package/dist/components/chip/index.mjs +1 -1
- package/dist/components/drawer/drawer.mjs +2 -2
- package/dist/components/drawer/index.mjs +2 -2
- package/dist/components/fileUpload/fileUpload.js +1 -1
- package/dist/components/fileUpload/fileUpload.mjs +9 -9
- package/dist/components/fileUpload/index.js +1 -1
- package/dist/components/fileUpload/index.mjs +9 -9
- package/dist/components/input/index.mjs +3 -3
- package/dist/components/input/input.mjs +3 -3
- package/dist/components/list/index.mjs +2 -2
- package/dist/components/list/listItem.mjs +2 -2
- package/dist/components/modal/index.js +1 -1
- package/dist/components/modal/index.mjs +8 -8
- package/dist/components/modal/modal.js +1 -1
- package/dist/components/modal/modal.mjs +8 -8
- package/dist/components/pagination/index.mjs +4 -4
- package/dist/components/pagination/pagination.mjs +4 -4
- package/dist/components/picker/datePicker.mjs +3 -3
- package/dist/components/picker/index.mjs +5 -5
- package/dist/components/picker/timePicker.mjs +4 -4
- 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/ripple/index.js +1 -1
- package/dist/components/ripple/index.mjs +1 -1
- package/dist/components/ripple/useRipple.js +1 -1
- package/dist/components/ripple/useRipple.mjs +1 -1
- package/dist/components/select/index.mjs +3 -3
- package/dist/components/select/select.mjs +3 -3
- package/dist/components/table/definition-table.mjs +2 -2
- package/dist/components/table/index.mjs +7 -7
- package/dist/components/table/table-body.mjs +6 -6
- package/dist/components/table/table-head.mjs +6 -6
- package/dist/components/table/table.mjs +6 -6
- package/dist/components/textarea/index.mjs +2 -2
- package/dist/components/textarea/textarea.mjs +2 -2
- package/dist/components/toast/index.mjs +5 -5
- package/dist/components/toast/toast.mjs +3 -3
- package/dist/components/toast/use-toast.mjs +4 -4
- package/dist/components/tree/index.mjs +2 -2
- package/dist/components/tree/tree.mjs +2 -2
- package/dist/index.js +111 -76
- package/dist/index.mjs +37 -37
- package/package.json +1 -1
- package/dist/chunk-ZWLRSZTC.mjs +0 -107
- package/dist/{chunk-AZ5SQYZE.mjs → chunk-2CLPU5LR.mjs} +3 -3
- package/dist/{chunk-K4XJAP6G.mjs → chunk-2VQM2ZBF.mjs} +3 -3
- package/dist/{chunk-3HXNAVAN.mjs → chunk-3CRSSRCH.mjs} +3 -3
- package/dist/{chunk-KY3W7MBV.mjs → chunk-3M6VYLOU.mjs} +3 -3
- package/dist/{chunk-KOELCZTB.mjs → chunk-5AEN7QTL.mjs} +3 -3
- package/dist/{chunk-NUELPELQ.mjs → chunk-AF4I7ZQS.mjs} +3 -3
- package/dist/{chunk-OMVVASRP.mjs → chunk-BFZ6OTVA.mjs} +3 -3
- package/dist/{chunk-3KWZHPVV.mjs → chunk-EDAREIAN.mjs} +3 -3
- package/dist/{chunk-AS2CSVBQ.mjs → chunk-FF56E2UQ.mjs} +3 -3
- package/dist/{chunk-TMI3QBKD.mjs → chunk-H6JGLPPF.mjs} +3 -3
- package/dist/{chunk-PYCIG6N3.mjs → chunk-L3WKBOWY.mjs} +3 -3
- package/dist/{chunk-XHSTRFLS.mjs → chunk-Q364C3FI.mjs} +3 -3
- package/dist/{chunk-S6ZXK2UP.mjs → chunk-QREBEXKF.mjs} +3 -3
- package/dist/{chunk-NO6RDCY7.mjs → chunk-S7Y7XUBL.mjs} +3 -3
|
@@ -378,8 +378,8 @@ var BarChartComponent = (0, import_react.forwardRef)((originalProps, ref) => {
|
|
|
378
378
|
const slots = (0, import_react.useMemo)(() => barChartStyle({ ...variantProps }), [variantProps]);
|
|
379
379
|
const COLOR_MAP = {
|
|
380
380
|
primary: "#C7E5FA",
|
|
381
|
-
secondary: "#
|
|
382
|
-
warning: "#
|
|
381
|
+
secondary: "#92DCB2",
|
|
382
|
+
warning: "#DEC1FA"
|
|
383
383
|
};
|
|
384
384
|
const [tickPositions, setTickPositions] = (0, import_react.useState)([]);
|
|
385
385
|
const tickRef = (0, import_react.useRef)([]);
|
|
@@ -430,54 +430,64 @@ var BarChartComponent = (0, import_react.forwardRef)((originalProps, ref) => {
|
|
|
430
430
|
}, [data]);
|
|
431
431
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { ref, className: slots.base({ class: classNames == null ? void 0 : classNames.base }), children: [
|
|
432
432
|
label && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: slots.label({ class: classNames == null ? void 0 : classNames.label }), children: label }),
|
|
433
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_recharts.ResponsiveContainer, { width: "100%", height: "100%", children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
433
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_recharts.ResponsiveContainer, { width: "100%", height: "100%", children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
434
|
+
import_recharts.BarChart,
|
|
435
|
+
{
|
|
436
|
+
data,
|
|
437
|
+
margin: { left: -30 },
|
|
438
|
+
barSize: 20,
|
|
439
|
+
barGap: 10,
|
|
440
|
+
className: "[&_.recharts-surface]:outline-none [&_.recharts-surface]:focus:outline-none",
|
|
441
|
+
children: [
|
|
442
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
443
|
+
import_recharts.CartesianGrid,
|
|
444
|
+
{
|
|
445
|
+
vertical: true,
|
|
446
|
+
horizontal: false,
|
|
447
|
+
strokeDasharray: "3 3",
|
|
448
|
+
className: "stroke-neutral-light",
|
|
449
|
+
verticalPoints: tickPositions
|
|
450
|
+
}
|
|
451
|
+
),
|
|
452
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
453
|
+
import_recharts.XAxis,
|
|
454
|
+
{
|
|
455
|
+
dataKey: "name",
|
|
456
|
+
axisLine: { stroke: "#DFE2E7", strokeWidth: 1 },
|
|
457
|
+
tickLine: false,
|
|
458
|
+
tick: CustomTick,
|
|
459
|
+
padding: { left: 32, right: 32 }
|
|
460
|
+
}
|
|
461
|
+
),
|
|
462
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
463
|
+
import_recharts.YAxis,
|
|
464
|
+
{
|
|
465
|
+
axisLine: { stroke: "#DFE2E7", strokeWidth: 1 },
|
|
466
|
+
tickLine: false,
|
|
467
|
+
tick: {
|
|
468
|
+
fontSize: 12,
|
|
469
|
+
fontWeight: 700,
|
|
470
|
+
fill: "text-body-foreground",
|
|
471
|
+
textAnchor: "middle",
|
|
472
|
+
dx: -10
|
|
473
|
+
},
|
|
474
|
+
ticks: [0, 20, 40, 60, 80, 100],
|
|
475
|
+
domain: [-6, 110]
|
|
476
|
+
}
|
|
477
|
+
),
|
|
478
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_recharts.Bar, { dataKey: "avg", fill: COLOR_MAP.primary, width: 20, shape: CustomBarShape }),
|
|
479
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_recharts.Bar, { dataKey: "high", fill: COLOR_MAP.secondary, width: 20, shape: CustomBarShape }),
|
|
480
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_recharts.Bar, { dataKey: "low", fill: COLOR_MAP.warning, width: 20, shape: CustomBarShape })
|
|
481
|
+
]
|
|
482
|
+
}
|
|
483
|
+
) })
|
|
474
484
|
] });
|
|
475
485
|
});
|
|
476
486
|
BarChartComponent.displayName = "barChart";
|
|
477
487
|
var barChart_default = BarChartComponent;
|
|
478
488
|
var barChartStyle = tv({
|
|
479
489
|
slots: {
|
|
480
|
-
base: ["flex", "flex-col", "gap-[10px]"],
|
|
490
|
+
base: ["flex", "flex-col", "gap-[10px]", "select-none"],
|
|
481
491
|
label: ["text-md", "font-bold", "text-body-foreground"]
|
|
482
492
|
},
|
|
483
493
|
variants: {},
|
|
@@ -15,75 +15,60 @@ declare const CircularProgress: react.ForwardRefExoticComponent<Props & Circular
|
|
|
15
15
|
|
|
16
16
|
declare const circularProgressStyle: tailwind_variants.TVReturnType<{
|
|
17
17
|
color: {
|
|
18
|
-
|
|
19
|
-
background: string[];
|
|
18
|
+
blue: {
|
|
20
19
|
progress: string[];
|
|
21
|
-
text: string[];
|
|
22
20
|
};
|
|
23
|
-
|
|
24
|
-
background: string[];
|
|
21
|
+
green: {
|
|
25
22
|
progress: string[];
|
|
26
|
-
text: string[];
|
|
27
23
|
};
|
|
28
|
-
|
|
29
|
-
background: string[];
|
|
24
|
+
pink: {
|
|
30
25
|
progress: string[];
|
|
31
|
-
text: string[];
|
|
32
26
|
};
|
|
33
27
|
};
|
|
34
28
|
}, {
|
|
35
29
|
base: string[];
|
|
36
|
-
background:
|
|
30
|
+
background: string[];
|
|
37
31
|
progress: string[];
|
|
38
|
-
|
|
32
|
+
percentage: string[];
|
|
33
|
+
unit: string[];
|
|
39
34
|
label: string[];
|
|
40
35
|
}, undefined, {
|
|
41
36
|
color: {
|
|
42
|
-
|
|
43
|
-
background: string[];
|
|
37
|
+
blue: {
|
|
44
38
|
progress: string[];
|
|
45
|
-
text: string[];
|
|
46
39
|
};
|
|
47
|
-
|
|
48
|
-
background: string[];
|
|
40
|
+
green: {
|
|
49
41
|
progress: string[];
|
|
50
|
-
text: string[];
|
|
51
42
|
};
|
|
52
|
-
|
|
53
|
-
background: string[];
|
|
43
|
+
pink: {
|
|
54
44
|
progress: string[];
|
|
55
|
-
text: string[];
|
|
56
45
|
};
|
|
57
46
|
};
|
|
58
47
|
}, {
|
|
59
48
|
base: string[];
|
|
60
|
-
background:
|
|
49
|
+
background: string[];
|
|
61
50
|
progress: string[];
|
|
62
|
-
|
|
51
|
+
percentage: string[];
|
|
52
|
+
unit: string[];
|
|
63
53
|
label: string[];
|
|
64
54
|
}, tailwind_variants.TVReturnType<{
|
|
65
55
|
color: {
|
|
66
|
-
|
|
67
|
-
background: string[];
|
|
56
|
+
blue: {
|
|
68
57
|
progress: string[];
|
|
69
|
-
text: string[];
|
|
70
58
|
};
|
|
71
|
-
|
|
72
|
-
background: string[];
|
|
59
|
+
green: {
|
|
73
60
|
progress: string[];
|
|
74
|
-
text: string[];
|
|
75
61
|
};
|
|
76
|
-
|
|
77
|
-
background: string[];
|
|
62
|
+
pink: {
|
|
78
63
|
progress: string[];
|
|
79
|
-
text: string[];
|
|
80
64
|
};
|
|
81
65
|
};
|
|
82
66
|
}, {
|
|
83
67
|
base: string[];
|
|
84
|
-
background:
|
|
68
|
+
background: string[];
|
|
85
69
|
progress: string[];
|
|
86
|
-
|
|
70
|
+
percentage: string[];
|
|
71
|
+
unit: string[];
|
|
87
72
|
label: string[];
|
|
88
73
|
}, undefined, unknown, unknown, undefined>>;
|
|
89
74
|
type CircularProgressVariantProps = VariantProps<typeof circularProgressStyle>;
|
|
@@ -15,75 +15,60 @@ declare const CircularProgress: react.ForwardRefExoticComponent<Props & Circular
|
|
|
15
15
|
|
|
16
16
|
declare const circularProgressStyle: tailwind_variants.TVReturnType<{
|
|
17
17
|
color: {
|
|
18
|
-
|
|
19
|
-
background: string[];
|
|
18
|
+
blue: {
|
|
20
19
|
progress: string[];
|
|
21
|
-
text: string[];
|
|
22
20
|
};
|
|
23
|
-
|
|
24
|
-
background: string[];
|
|
21
|
+
green: {
|
|
25
22
|
progress: string[];
|
|
26
|
-
text: string[];
|
|
27
23
|
};
|
|
28
|
-
|
|
29
|
-
background: string[];
|
|
24
|
+
pink: {
|
|
30
25
|
progress: string[];
|
|
31
|
-
text: string[];
|
|
32
26
|
};
|
|
33
27
|
};
|
|
34
28
|
}, {
|
|
35
29
|
base: string[];
|
|
36
|
-
background:
|
|
30
|
+
background: string[];
|
|
37
31
|
progress: string[];
|
|
38
|
-
|
|
32
|
+
percentage: string[];
|
|
33
|
+
unit: string[];
|
|
39
34
|
label: string[];
|
|
40
35
|
}, undefined, {
|
|
41
36
|
color: {
|
|
42
|
-
|
|
43
|
-
background: string[];
|
|
37
|
+
blue: {
|
|
44
38
|
progress: string[];
|
|
45
|
-
text: string[];
|
|
46
39
|
};
|
|
47
|
-
|
|
48
|
-
background: string[];
|
|
40
|
+
green: {
|
|
49
41
|
progress: string[];
|
|
50
|
-
text: string[];
|
|
51
42
|
};
|
|
52
|
-
|
|
53
|
-
background: string[];
|
|
43
|
+
pink: {
|
|
54
44
|
progress: string[];
|
|
55
|
-
text: string[];
|
|
56
45
|
};
|
|
57
46
|
};
|
|
58
47
|
}, {
|
|
59
48
|
base: string[];
|
|
60
|
-
background:
|
|
49
|
+
background: string[];
|
|
61
50
|
progress: string[];
|
|
62
|
-
|
|
51
|
+
percentage: string[];
|
|
52
|
+
unit: string[];
|
|
63
53
|
label: string[];
|
|
64
54
|
}, tailwind_variants.TVReturnType<{
|
|
65
55
|
color: {
|
|
66
|
-
|
|
67
|
-
background: string[];
|
|
56
|
+
blue: {
|
|
68
57
|
progress: string[];
|
|
69
|
-
text: string[];
|
|
70
58
|
};
|
|
71
|
-
|
|
72
|
-
background: string[];
|
|
59
|
+
green: {
|
|
73
60
|
progress: string[];
|
|
74
|
-
text: string[];
|
|
75
61
|
};
|
|
76
|
-
|
|
77
|
-
background: string[];
|
|
62
|
+
pink: {
|
|
78
63
|
progress: string[];
|
|
79
|
-
text: string[];
|
|
80
64
|
};
|
|
81
65
|
};
|
|
82
66
|
}, {
|
|
83
67
|
base: string[];
|
|
84
|
-
background:
|
|
68
|
+
background: string[];
|
|
85
69
|
progress: string[];
|
|
86
|
-
|
|
70
|
+
percentage: string[];
|
|
71
|
+
unit: string[];
|
|
87
72
|
label: string[];
|
|
88
73
|
}, undefined, unknown, unknown, undefined>>;
|
|
89
74
|
type CircularProgressVariantProps = VariantProps<typeof circularProgressStyle>;
|
|
@@ -381,8 +381,30 @@ var CircularProgress = (0, import_react.forwardRef)((originalProps, ref) => {
|
|
|
381
381
|
}
|
|
382
382
|
];
|
|
383
383
|
const BAR_SIZE = 24;
|
|
384
|
-
const
|
|
384
|
+
const STROKE_WIDTH = 1;
|
|
385
|
+
const BORDER_MARGIN = 5;
|
|
386
|
+
const CONTAINER_PADDING = BORDER_MARGIN + STROKE_WIDTH + 1;
|
|
387
|
+
const OUTER_RADIUS = (size - CONTAINER_PADDING * 2) / 2;
|
|
385
388
|
const INNER_RADIUS = OUTER_RADIUS - BAR_SIZE;
|
|
389
|
+
const BACKGROUND_RADIUS = (INNER_RADIUS + OUTER_RADIUS) / 2;
|
|
390
|
+
const gradientId = `gradient-${Math.random().toString(36).slice(2)}`;
|
|
391
|
+
const gradientColors = {
|
|
392
|
+
blue: {
|
|
393
|
+
start: "#DEC1FA",
|
|
394
|
+
end: "#3F9CF2"
|
|
395
|
+
},
|
|
396
|
+
green: {
|
|
397
|
+
start: "#C2E59C",
|
|
398
|
+
end: "#64B3F4"
|
|
399
|
+
},
|
|
400
|
+
pink: {
|
|
401
|
+
start: "#DDD6F3",
|
|
402
|
+
end: "#FAACA8"
|
|
403
|
+
}
|
|
404
|
+
};
|
|
405
|
+
const colorValue = originalProps.color;
|
|
406
|
+
const colorKey = colorValue || "blue";
|
|
407
|
+
const currentGradient = gradientColors[colorKey];
|
|
386
408
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { ref, className: slots.base({ class: classNames == null ? void 0 : classNames.base }), children: [
|
|
387
409
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "relative", style: { width: size, height: size }, children: [
|
|
388
410
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
@@ -390,40 +412,48 @@ var CircularProgress = (0, import_react.forwardRef)((originalProps, ref) => {
|
|
|
390
412
|
{
|
|
391
413
|
width: size,
|
|
392
414
|
height: size,
|
|
393
|
-
innerRadius: INNER_RADIUS,
|
|
415
|
+
innerRadius: INNER_RADIUS - 0.1,
|
|
394
416
|
outerRadius: OUTER_RADIUS,
|
|
395
417
|
barSize: BAR_SIZE,
|
|
396
418
|
data,
|
|
397
419
|
startAngle: 90,
|
|
398
420
|
endAngle: -270,
|
|
399
421
|
children: [
|
|
422
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("linearGradient", { id: gradientId, x1: "0%", y1: "0%", x2: "100%", y2: "100%", children: [
|
|
423
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("stop", { offset: "0%", stopColor: currentGradient.start }),
|
|
424
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("stop", { offset: "100%", stopColor: currentGradient.end })
|
|
425
|
+
] }) }),
|
|
400
426
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
401
427
|
"circle",
|
|
402
428
|
{
|
|
403
429
|
cx: size / 2,
|
|
404
430
|
cy: size / 2,
|
|
405
|
-
r: OUTER_RADIUS,
|
|
406
|
-
|
|
407
|
-
|
|
431
|
+
r: OUTER_RADIUS + BORDER_MARGIN,
|
|
432
|
+
fill: "none",
|
|
433
|
+
stroke: "#DFE2E7",
|
|
434
|
+
strokeWidth: "1"
|
|
408
435
|
}
|
|
409
436
|
),
|
|
410
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_recharts.PolarAngleAxis, { type: "number", domain: [0, 100], angleAxisId: 0, tick: false }),
|
|
411
437
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
412
|
-
|
|
438
|
+
"circle",
|
|
413
439
|
{
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
440
|
+
cx: size / 2,
|
|
441
|
+
cy: size / 2,
|
|
442
|
+
r: BACKGROUND_RADIUS,
|
|
443
|
+
fill: "none",
|
|
444
|
+
stroke: "rgba(0, 0, 0, 0.05)",
|
|
445
|
+
strokeWidth: BAR_SIZE
|
|
418
446
|
}
|
|
419
|
-
)
|
|
447
|
+
),
|
|
448
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_recharts.PolarAngleAxis, { type: "number", domain: [0, 100], angleAxisId: 0, tick: false }),
|
|
449
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_recharts.RadialBar, { dataKey: "value", cornerRadius: 12, animationDuration: 1e3, fill: `url(#${gradientId})` })
|
|
420
450
|
]
|
|
421
451
|
}
|
|
422
452
|
),
|
|
423
|
-
/* @__PURE__ */ (0, import_jsx_runtime.
|
|
424
|
-
percentage,
|
|
425
|
-
unit
|
|
426
|
-
] })
|
|
453
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "absolute inset-0 flex items-center justify-center", children: [
|
|
454
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: slots.percentage({ class: classNames == null ? void 0 : classNames.percentage }), children: percentage }),
|
|
455
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: slots.unit({ class: classNames == null ? void 0 : classNames.unit }), children: unit })
|
|
456
|
+
] })
|
|
427
457
|
] }),
|
|
428
458
|
label && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: slots.label({ class: classNames == null ? void 0 : classNames.label }), children: label })
|
|
429
459
|
] });
|
|
@@ -433,31 +463,26 @@ var circularProgress_default = CircularProgress;
|
|
|
433
463
|
var circularProgressStyle = tv({
|
|
434
464
|
slots: {
|
|
435
465
|
base: ["flex", "flex-col", "items-center", "gap-[20px]"],
|
|
436
|
-
background: [],
|
|
466
|
+
background: ["fill-body-background", "border-neutral-light"],
|
|
437
467
|
progress: ["transition-all", "duration-1000 ease-out"],
|
|
438
|
-
|
|
468
|
+
percentage: ["text-xl", "font-bold", "text-body-foreground"],
|
|
469
|
+
unit: ["text-md", "font-bold", "text-body-foreground"],
|
|
439
470
|
label: ["text-md", "font-bold", "text-left", "text-body-foreground"]
|
|
440
471
|
},
|
|
441
472
|
variants: {
|
|
442
473
|
color: {
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
progress: ["fill-primary-main"],
|
|
446
|
-
text: ["text-primary-dark"]
|
|
474
|
+
blue: {
|
|
475
|
+
progress: ["fill-blue-main"]
|
|
447
476
|
},
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
progress: ["fill-secondary-main"],
|
|
451
|
-
text: ["text-secondary-dark"]
|
|
477
|
+
green: {
|
|
478
|
+
progress: ["fill-green-main"]
|
|
452
479
|
},
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
progress: ["fill-warning-main"],
|
|
456
|
-
text: ["text-warning-dark"]
|
|
480
|
+
pink: {
|
|
481
|
+
progress: ["fill-pink-main"]
|
|
457
482
|
}
|
|
458
483
|
}
|
|
459
484
|
},
|
|
460
485
|
defaultVariants: {
|
|
461
|
-
color: "
|
|
486
|
+
color: "blue"
|
|
462
487
|
}
|
|
463
488
|
});
|