@deepnoid/ui 0.1.42 → 0.1.44
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 +186 -171
- package/dist/chunk-3YMMVZDL.mjs +1 -0
- package/dist/chunk-NZOVUADT.mjs +136 -0
- package/dist/{chunk-6ZL5NEEI.mjs → chunk-RIW4TT6V.mjs} +1 -1
- package/dist/chunk-TBZSYI6R.mjs +107 -0
- package/dist/{chunk-K7V4VE7R.mjs → chunk-WOEZHDJR.mjs} +1 -1
- package/dist/components/breadcrumb/breadcrumb.mjs +2 -2
- package/dist/components/breadcrumb/index.mjs +2 -2
- package/dist/components/button/index.mjs +6 -6
- package/dist/components/charts/areaCharts.d.mts +66 -0
- package/dist/components/charts/areaCharts.d.ts +66 -0
- package/dist/components/charts/areaCharts.js +471 -0
- package/dist/components/charts/areaCharts.mjs +10 -0
- package/dist/components/charts/circularProgress.d.mts +92 -0
- package/dist/components/charts/circularProgress.d.ts +92 -0
- package/dist/components/charts/circularProgress.js +441 -0
- package/dist/components/charts/circularProgress.mjs +11 -0
- package/dist/components/charts/index.d.mts +5 -0
- package/dist/components/charts/index.d.ts +5 -0
- package/dist/components/charts/index.js +573 -0
- package/dist/components/charts/index.mjs +15 -0
- package/dist/components/dateTimePicker/dateTimePicker.mjs +3 -3
- package/dist/components/dateTimePicker/index.mjs +3 -3
- package/dist/components/dateTimePicker/timePicker.mjs +2 -2
- package/dist/components/fileUpload/fileUpload.mjs +3 -3
- package/dist/components/fileUpload/index.mjs +3 -3
- package/dist/components/list/index.mjs +3 -3
- package/dist/components/modal/index.mjs +3 -3
- package/dist/components/modal/modal.mjs +3 -3
- package/dist/components/table/index.js +1 -1
- package/dist/components/table/index.mjs +5 -5
- package/dist/components/table/table.js +1 -1
- package/dist/components/table/table.mjs +3 -3
- package/dist/components/toast/index.mjs +2 -2
- package/dist/components/toast/use-toast.mjs +2 -2
- package/dist/index.d.mts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +226 -1
- package/dist/index.mjs +61 -52
- package/package.json +4 -3
- package/dist/{chunk-IBI3OVQI.mjs → chunk-CTBTYNSM.mjs} +3 -3
- package/dist/{chunk-BFOK4HVC.mjs → chunk-KYJTZPXY.mjs} +3 -3
- package/dist/{chunk-25QOEKXS.mjs → chunk-TRR232FS.mjs} +3 -3
|
@@ -3,16 +3,16 @@ import "../../chunk-DJOG6Z35.mjs";
|
|
|
3
3
|
import {
|
|
4
4
|
modal_default
|
|
5
5
|
} from "../../chunk-IC25OKBJ.mjs";
|
|
6
|
+
import "../../chunk-MY5U63QO.mjs";
|
|
7
|
+
import "../../chunk-7TAGGLNY.mjs";
|
|
8
|
+
import "../../chunk-WFMFC7R6.mjs";
|
|
6
9
|
import "../../chunk-SE5TU755.mjs";
|
|
7
10
|
import "../../chunk-LL6F3WDX.mjs";
|
|
8
|
-
import "../../chunk-MY5U63QO.mjs";
|
|
9
11
|
import "../../chunk-LPZOH3RP.mjs";
|
|
10
12
|
import "../../chunk-UB4YBFOT.mjs";
|
|
11
|
-
import "../../chunk-7TAGGLNY.mjs";
|
|
12
13
|
import "../../chunk-6WSACUIB.mjs";
|
|
13
14
|
import "../../chunk-LXHUO6VM.mjs";
|
|
14
15
|
import "../../chunk-6PNKRBUT.mjs";
|
|
15
|
-
import "../../chunk-WFMFC7R6.mjs";
|
|
16
16
|
import "../../chunk-ZYIIXWVY.mjs";
|
|
17
17
|
import "../../chunk-2TKEWFGH.mjs";
|
|
18
18
|
import "../../chunk-2SDYFOZL.mjs";
|
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
import {
|
|
3
3
|
modal_default
|
|
4
4
|
} from "../../chunk-IC25OKBJ.mjs";
|
|
5
|
+
import "../../chunk-MY5U63QO.mjs";
|
|
6
|
+
import "../../chunk-7TAGGLNY.mjs";
|
|
7
|
+
import "../../chunk-WFMFC7R6.mjs";
|
|
5
8
|
import "../../chunk-SE5TU755.mjs";
|
|
6
9
|
import "../../chunk-LL6F3WDX.mjs";
|
|
7
|
-
import "../../chunk-MY5U63QO.mjs";
|
|
8
10
|
import "../../chunk-LPZOH3RP.mjs";
|
|
9
11
|
import "../../chunk-UB4YBFOT.mjs";
|
|
10
|
-
import "../../chunk-7TAGGLNY.mjs";
|
|
11
12
|
import "../../chunk-6WSACUIB.mjs";
|
|
12
13
|
import "../../chunk-LXHUO6VM.mjs";
|
|
13
14
|
import "../../chunk-6PNKRBUT.mjs";
|
|
14
|
-
import "../../chunk-WFMFC7R6.mjs";
|
|
15
15
|
import "../../chunk-ZYIIXWVY.mjs";
|
|
16
16
|
import "../../chunk-2TKEWFGH.mjs";
|
|
17
17
|
import "../../chunk-2SDYFOZL.mjs";
|
|
@@ -5569,7 +5569,7 @@ var tableStyle = (0, import_tailwind_variants7.tv)({
|
|
|
5569
5569
|
table: ["w-full", "h-auto"],
|
|
5570
5570
|
thead: ["w-full"],
|
|
5571
5571
|
tbody: ["w-full"],
|
|
5572
|
-
tr: ["group", "outline-none", "w-full", "h-full"],
|
|
5572
|
+
tr: ["group/tr", "outline-none", "w-full", "h-full"],
|
|
5573
5573
|
th: [
|
|
5574
5574
|
"text-body-foreground",
|
|
5575
5575
|
"font-bold",
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import "../../chunk-DX3KXNP6.mjs";
|
|
3
|
-
import {
|
|
4
|
-
table_default
|
|
5
|
-
} from "../../chunk-6ZL5NEEI.mjs";
|
|
6
3
|
import {
|
|
7
4
|
definition_table_default
|
|
8
5
|
} from "../../chunk-6TIIBU7J.mjs";
|
|
6
|
+
import {
|
|
7
|
+
table_default
|
|
8
|
+
} from "../../chunk-RIW4TT6V.mjs";
|
|
9
9
|
import "../../chunk-BPEMHZH3.mjs";
|
|
10
10
|
import "../../chunk-P7YYNA6L.mjs";
|
|
11
|
-
import "../../chunk-DQRAFUDA.mjs";
|
|
12
|
-
import "../../chunk-M37VBNB3.mjs";
|
|
13
11
|
import "../../chunk-MZ76AA76.mjs";
|
|
14
12
|
import "../../chunk-6PN3DGOE.mjs";
|
|
13
|
+
import "../../chunk-DQRAFUDA.mjs";
|
|
14
|
+
import "../../chunk-M37VBNB3.mjs";
|
|
15
15
|
import "../../chunk-7B7LRG5J.mjs";
|
|
16
16
|
import "../../chunk-MCNCHQ33.mjs";
|
|
17
17
|
import "../../chunk-F3HENRVM.mjs";
|
|
@@ -5566,7 +5566,7 @@ var tableStyle = (0, import_tailwind_variants7.tv)({
|
|
|
5566
5566
|
table: ["w-full", "h-auto"],
|
|
5567
5567
|
thead: ["w-full"],
|
|
5568
5568
|
tbody: ["w-full"],
|
|
5569
|
-
tr: ["group", "outline-none", "w-full", "h-full"],
|
|
5569
|
+
tr: ["group/tr", "outline-none", "w-full", "h-full"],
|
|
5570
5570
|
th: [
|
|
5571
5571
|
"text-body-foreground",
|
|
5572
5572
|
"font-bold",
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
table_default
|
|
4
|
-
} from "../../chunk-
|
|
4
|
+
} from "../../chunk-RIW4TT6V.mjs";
|
|
5
5
|
import "../../chunk-BPEMHZH3.mjs";
|
|
6
6
|
import "../../chunk-P7YYNA6L.mjs";
|
|
7
|
-
import "../../chunk-DQRAFUDA.mjs";
|
|
8
|
-
import "../../chunk-M37VBNB3.mjs";
|
|
9
7
|
import "../../chunk-MZ76AA76.mjs";
|
|
10
8
|
import "../../chunk-6PN3DGOE.mjs";
|
|
9
|
+
import "../../chunk-DQRAFUDA.mjs";
|
|
10
|
+
import "../../chunk-M37VBNB3.mjs";
|
|
11
11
|
import "../../chunk-7B7LRG5J.mjs";
|
|
12
12
|
import "../../chunk-MCNCHQ33.mjs";
|
|
13
13
|
import "../../chunk-F3HENRVM.mjs";
|
|
@@ -3,11 +3,11 @@ import "../../chunk-LUWGOKLG.mjs";
|
|
|
3
3
|
import {
|
|
4
4
|
ToastProvider,
|
|
5
5
|
useToast
|
|
6
|
-
} from "../../chunk-
|
|
7
|
-
import "../../chunk-ZOTHPHXA.mjs";
|
|
6
|
+
} from "../../chunk-CTBTYNSM.mjs";
|
|
8
7
|
import {
|
|
9
8
|
toast_default
|
|
10
9
|
} from "../../chunk-MEY4IL7D.mjs";
|
|
10
|
+
import "../../chunk-ZOTHPHXA.mjs";
|
|
11
11
|
import "../../chunk-ZYIIXWVY.mjs";
|
|
12
12
|
import "../../chunk-2TKEWFGH.mjs";
|
|
13
13
|
import "../../chunk-2SDYFOZL.mjs";
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import {
|
|
3
3
|
ToastProvider,
|
|
4
4
|
useToast
|
|
5
|
-
} from "../../chunk-
|
|
6
|
-
import "../../chunk-ZOTHPHXA.mjs";
|
|
5
|
+
} from "../../chunk-CTBTYNSM.mjs";
|
|
7
6
|
import "../../chunk-MEY4IL7D.mjs";
|
|
7
|
+
import "../../chunk-ZOTHPHXA.mjs";
|
|
8
8
|
import "../../chunk-ZYIIXWVY.mjs";
|
|
9
9
|
import "../../chunk-2TKEWFGH.mjs";
|
|
10
10
|
import "../../chunk-2SDYFOZL.mjs";
|
package/dist/index.d.mts
CHANGED
|
@@ -28,6 +28,8 @@ export { default as ScrollArea } from './components/scroll/scrollArea.mjs';
|
|
|
28
28
|
export { default as Tree, TreeNode } from './components/tree/tree.mjs';
|
|
29
29
|
export { default as FileUpload } from './components/fileUpload/fileUpload.mjs';
|
|
30
30
|
export { default as Skeleton } from './components/skeleton/skeleton.mjs';
|
|
31
|
+
export { default as CircularProgress } from './components/charts/circularProgress.mjs';
|
|
32
|
+
export { default as AreaChart } from './components/charts/areaCharts.mjs';
|
|
31
33
|
export { tv } from './utils/tailwind-variants.mjs';
|
|
32
34
|
export { deepnoidUi } from '@deepnoid/tailwind-config';
|
|
33
35
|
export { VariantProps } from 'tailwind-variants';
|
package/dist/index.d.ts
CHANGED
|
@@ -28,6 +28,8 @@ export { default as ScrollArea } from './components/scroll/scrollArea.js';
|
|
|
28
28
|
export { default as Tree, TreeNode } from './components/tree/tree.js';
|
|
29
29
|
export { default as FileUpload } from './components/fileUpload/fileUpload.js';
|
|
30
30
|
export { default as Skeleton } from './components/skeleton/skeleton.js';
|
|
31
|
+
export { default as CircularProgress } from './components/charts/circularProgress.js';
|
|
32
|
+
export { default as AreaChart } from './components/charts/areaCharts.js';
|
|
31
33
|
export { tv } from './utils/tailwind-variants.js';
|
|
32
34
|
export { deepnoidUi } from '@deepnoid/tailwind-config';
|
|
33
35
|
export { VariantProps } from 'tailwind-variants';
|
package/dist/index.js
CHANGED
|
@@ -102,6 +102,7 @@ var require_plugin = __commonJS({
|
|
|
102
102
|
// src/index.ts
|
|
103
103
|
var index_exports = {};
|
|
104
104
|
__export(index_exports, {
|
|
105
|
+
AreaChart: () => areaCharts_default,
|
|
105
106
|
Avatar: () => avatar_default,
|
|
106
107
|
Backdrop: () => backdrop_default,
|
|
107
108
|
Breadcrumb: () => breadcrumb_default,
|
|
@@ -109,6 +110,7 @@ __export(index_exports, {
|
|
|
109
110
|
ButtonGroup: () => button_group_default,
|
|
110
111
|
CheckBox: () => checkbox_default,
|
|
111
112
|
Chip: () => chip_default,
|
|
113
|
+
CircularProgress: () => circularProgress_default,
|
|
112
114
|
DateTimePicker: () => dateTimePicker_default,
|
|
113
115
|
DefinitionTable: () => definition_table_default,
|
|
114
116
|
FileUpload: () => fileUpload_default,
|
|
@@ -7550,7 +7552,7 @@ var tableStyle = (0, import_tailwind_variants16.tv)({
|
|
|
7550
7552
|
table: ["w-full", "h-auto"],
|
|
7551
7553
|
thead: ["w-full"],
|
|
7552
7554
|
tbody: ["w-full"],
|
|
7553
|
-
tr: ["group", "outline-none", "w-full", "h-full"],
|
|
7555
|
+
tr: ["group/tr", "outline-none", "w-full", "h-full"],
|
|
7554
7556
|
th: [
|
|
7555
7557
|
"text-body-foreground",
|
|
7556
7558
|
"font-bold",
|
|
@@ -10514,8 +10516,230 @@ var fileUploadStyle = (0, import_tailwind_variants30.tv)({
|
|
|
10514
10516
|
helperMessage: ["text-neutral-main", "text-sm"]
|
|
10515
10517
|
}
|
|
10516
10518
|
});
|
|
10519
|
+
|
|
10520
|
+
// src/components/charts/circularProgress.tsx
|
|
10521
|
+
var import_recharts = require("recharts");
|
|
10522
|
+
var import_react34 = require("react");
|
|
10523
|
+
var import_jsx_runtime37 = require("react/jsx-runtime");
|
|
10524
|
+
var CircularProgress = (0, import_react34.forwardRef)((originalProps, ref) => {
|
|
10525
|
+
const [props, variantProps] = mapPropsVariants(originalProps, circularProgressStyle.variantKeys);
|
|
10526
|
+
const { title, size = 150, color, percentage, unit, classNames } = { ...props, ...variantProps };
|
|
10527
|
+
const slots = (0, import_react34.useMemo)(() => circularProgressStyle({ ...variantProps }), [variantProps]);
|
|
10528
|
+
const data = [
|
|
10529
|
+
{
|
|
10530
|
+
name: title,
|
|
10531
|
+
value: percentage
|
|
10532
|
+
}
|
|
10533
|
+
];
|
|
10534
|
+
const BAR_SIZE = 24;
|
|
10535
|
+
const OUTER_RADIUS = 88;
|
|
10536
|
+
const INNER_RADIUS = OUTER_RADIUS - BAR_SIZE;
|
|
10537
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { ref, className: slots.base({ class: classNames == null ? void 0 : classNames.base }), children: [
|
|
10538
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { className: `relative h-[${size}px] w-[${size}px]`, children: [
|
|
10539
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(
|
|
10540
|
+
import_recharts.RadialBarChart,
|
|
10541
|
+
{
|
|
10542
|
+
width: size,
|
|
10543
|
+
height: size,
|
|
10544
|
+
innerRadius: INNER_RADIUS,
|
|
10545
|
+
outerRadius: OUTER_RADIUS,
|
|
10546
|
+
barSize: BAR_SIZE,
|
|
10547
|
+
data,
|
|
10548
|
+
startAngle: 90,
|
|
10549
|
+
endAngle: -270,
|
|
10550
|
+
children: [
|
|
10551
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
10552
|
+
"circle",
|
|
10553
|
+
{
|
|
10554
|
+
cx: size / 2,
|
|
10555
|
+
cy: size / 2,
|
|
10556
|
+
r: INNER_RADIUS + BAR_SIZE / 2,
|
|
10557
|
+
className: slots.background({ class: classNames == null ? void 0 : classNames.background }),
|
|
10558
|
+
fill: "currentColor"
|
|
10559
|
+
}
|
|
10560
|
+
),
|
|
10561
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_recharts.PolarAngleAxis, { type: "number", domain: [0, 100], angleAxisId: 0, tick: false }),
|
|
10562
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
10563
|
+
import_recharts.RadialBar,
|
|
10564
|
+
{
|
|
10565
|
+
dataKey: "value",
|
|
10566
|
+
cornerRadius: 12,
|
|
10567
|
+
animationDuration: 1e3,
|
|
10568
|
+
className: slots.progress({ class: classNames == null ? void 0 : classNames.progress })
|
|
10569
|
+
}
|
|
10570
|
+
)
|
|
10571
|
+
]
|
|
10572
|
+
}
|
|
10573
|
+
),
|
|
10574
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { className: "absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("span", { className: slots.text({ class: classNames == null ? void 0 : classNames.text }), children: [
|
|
10575
|
+
percentage,
|
|
10576
|
+
unit
|
|
10577
|
+
] }) })
|
|
10578
|
+
] }),
|
|
10579
|
+
title && /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("p", { className: slots.title({ class: classNames == null ? void 0 : classNames.title }), children: title })
|
|
10580
|
+
] });
|
|
10581
|
+
});
|
|
10582
|
+
CircularProgress.displayName = "CircularProgress";
|
|
10583
|
+
var circularProgress_default = CircularProgress;
|
|
10584
|
+
var circularProgressStyle = tv({
|
|
10585
|
+
slots: {
|
|
10586
|
+
base: ["flex", "flex-col", "items-center", "gap-[20px]"],
|
|
10587
|
+
background: [],
|
|
10588
|
+
progress: ["transition-all", "duration-1000 ease-out"],
|
|
10589
|
+
text: ["text-xl", "font-bold"],
|
|
10590
|
+
title: ["text-md", "font-bold", "text-center", "text-body-foreground"]
|
|
10591
|
+
},
|
|
10592
|
+
variants: {
|
|
10593
|
+
color: {
|
|
10594
|
+
primary: {
|
|
10595
|
+
background: ["fill-primary-soft"],
|
|
10596
|
+
progress: ["fill-primary-main"],
|
|
10597
|
+
text: ["text-primary-dark"]
|
|
10598
|
+
},
|
|
10599
|
+
secondary: {
|
|
10600
|
+
background: ["fill-secondary-soft"],
|
|
10601
|
+
progress: ["fill-secondary-main"],
|
|
10602
|
+
text: ["text-secondary-dark"]
|
|
10603
|
+
},
|
|
10604
|
+
warning: {
|
|
10605
|
+
background: ["fill-warning-soft"],
|
|
10606
|
+
progress: ["fill-warning-main"],
|
|
10607
|
+
text: ["text-warning-dark"]
|
|
10608
|
+
}
|
|
10609
|
+
}
|
|
10610
|
+
},
|
|
10611
|
+
defaultVariants: {
|
|
10612
|
+
color: "primary"
|
|
10613
|
+
}
|
|
10614
|
+
});
|
|
10615
|
+
|
|
10616
|
+
// src/components/charts/areaCharts.tsx
|
|
10617
|
+
var import_react35 = require("react");
|
|
10618
|
+
var import_recharts2 = require("recharts");
|
|
10619
|
+
var import_jsx_runtime38 = require("react/jsx-runtime");
|
|
10620
|
+
var AreaChartComponent = (0, import_react35.forwardRef)((originalProps, ref) => {
|
|
10621
|
+
var _a, _b;
|
|
10622
|
+
const [props, variantProps] = mapPropsVariants(originalProps, areaChartStyle.variantKeys);
|
|
10623
|
+
const { areaData, color, classNames } = { ...props, ...variantProps };
|
|
10624
|
+
const slots = (0, import_react35.useMemo)(() => areaChartStyle({ ...variantProps }), [variantProps]);
|
|
10625
|
+
const colorHex = (_b = (_a = areaChartStyle.variants.color) == null ? void 0 : _a[color || "primary"]) == null ? void 0 : _b._colorValue;
|
|
10626
|
+
const [xTickPositions, setXTickPositions] = (0, import_react35.useState)([]);
|
|
10627
|
+
const midPoints = (0, import_react35.useMemo)(() => {
|
|
10628
|
+
const sorted = [...xTickPositions].sort((a, b) => a - b);
|
|
10629
|
+
const mids = [];
|
|
10630
|
+
for (let i = 0; i < sorted.length - 1; i++) {
|
|
10631
|
+
mids.push((sorted[i] + sorted[i + 1]) / 2);
|
|
10632
|
+
}
|
|
10633
|
+
return mids;
|
|
10634
|
+
}, [xTickPositions]);
|
|
10635
|
+
const CustomDotWithShadow = (props2) => {
|
|
10636
|
+
const { cx, cy, fill, stroke } = props2;
|
|
10637
|
+
if (cx === void 0 || cy === void 0) return null;
|
|
10638
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(import_jsx_runtime38.Fragment, { children: [
|
|
10639
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)("circle", { cx, cy, r: 8, fill, opacity: 0.2 }),
|
|
10640
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)("circle", { cx, cy, r: 3.5, fill, stroke, strokeWidth: 2 })
|
|
10641
|
+
] });
|
|
10642
|
+
};
|
|
10643
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("div", { ref, className: slots.base({ class: classNames == null ? void 0 : classNames.base }), children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_recharts2.ResponsiveContainer, { width: "100%", height: "100%", children: /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(import_recharts2.AreaChart, { data: areaData, children: [
|
|
10644
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("linearGradient", { id: "colorGradient", x1: "0", y1: "0", x2: "0", y2: "1", children: [
|
|
10645
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)("stop", { offset: "5%", stopColor: colorHex, stopOpacity: 0.3 }),
|
|
10646
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)("stop", { offset: "95%", stopColor: colorHex, stopOpacity: 0 })
|
|
10647
|
+
] }) }),
|
|
10648
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
10649
|
+
import_recharts2.CartesianGrid,
|
|
10650
|
+
{
|
|
10651
|
+
vertical: true,
|
|
10652
|
+
horizontal: false,
|
|
10653
|
+
strokeDasharray: "3 3",
|
|
10654
|
+
className: "stroke-neutral-light",
|
|
10655
|
+
verticalPoints: midPoints
|
|
10656
|
+
}
|
|
10657
|
+
),
|
|
10658
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
10659
|
+
import_recharts2.XAxis,
|
|
10660
|
+
{
|
|
10661
|
+
dataKey: "name",
|
|
10662
|
+
axisLine: { stroke: "#DFE2E7", strokeWidth: 1 },
|
|
10663
|
+
tickLine: false,
|
|
10664
|
+
tick: ({ x, y, payload }) => {
|
|
10665
|
+
setXTickPositions((prev) => {
|
|
10666
|
+
if (!prev.includes(x)) return [...prev, x];
|
|
10667
|
+
return prev;
|
|
10668
|
+
});
|
|
10669
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
10670
|
+
"text",
|
|
10671
|
+
{
|
|
10672
|
+
x,
|
|
10673
|
+
y: y + 14,
|
|
10674
|
+
textAnchor: "middle",
|
|
10675
|
+
fontSize: 12,
|
|
10676
|
+
fontWeight: 700,
|
|
10677
|
+
fill: "currentColor",
|
|
10678
|
+
className: "text-body-foreground",
|
|
10679
|
+
children: payload.value
|
|
10680
|
+
}
|
|
10681
|
+
);
|
|
10682
|
+
},
|
|
10683
|
+
padding: { left: 35.5, right: 35.5 }
|
|
10684
|
+
}
|
|
10685
|
+
),
|
|
10686
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
10687
|
+
import_recharts2.YAxis,
|
|
10688
|
+
{
|
|
10689
|
+
axisLine: { stroke: "#DFE2E7", strokeWidth: 1 },
|
|
10690
|
+
tickLine: false,
|
|
10691
|
+
tick: {
|
|
10692
|
+
fontSize: 12,
|
|
10693
|
+
fontWeight: 700,
|
|
10694
|
+
fill: "text-body-foreground",
|
|
10695
|
+
textAnchor: "middle",
|
|
10696
|
+
dx: -10
|
|
10697
|
+
},
|
|
10698
|
+
ticks: [0, 20, 40, 60, 80, 100],
|
|
10699
|
+
domain: [-10, 110]
|
|
10700
|
+
}
|
|
10701
|
+
),
|
|
10702
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
10703
|
+
import_recharts2.Area,
|
|
10704
|
+
{
|
|
10705
|
+
type: "monotone",
|
|
10706
|
+
dataKey: "value",
|
|
10707
|
+
stroke: colorHex,
|
|
10708
|
+
strokeWidth: 2,
|
|
10709
|
+
fill: "url(#colorGradient)",
|
|
10710
|
+
dot: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(CustomDotWithShadow, { stroke: colorHex, fill: colorHex }),
|
|
10711
|
+
activeDot: { r: 7, fill: colorHex }
|
|
10712
|
+
}
|
|
10713
|
+
)
|
|
10714
|
+
] }) }) });
|
|
10715
|
+
});
|
|
10716
|
+
AreaChartComponent.displayName = "AreaChart";
|
|
10717
|
+
var areaCharts_default = AreaChartComponent;
|
|
10718
|
+
var areaChartStyle = tv({
|
|
10719
|
+
slots: {
|
|
10720
|
+
base: [],
|
|
10721
|
+
color: [],
|
|
10722
|
+
axis: ["text-sm", "font-bold", "text-center", "text-body-foreground"]
|
|
10723
|
+
},
|
|
10724
|
+
variants: {
|
|
10725
|
+
color: {
|
|
10726
|
+
primary: {
|
|
10727
|
+
color: ["text-primary-main"],
|
|
10728
|
+
_colorValue: "#3F9CF2"
|
|
10729
|
+
},
|
|
10730
|
+
danger: {
|
|
10731
|
+
color: ["text-danger-main"],
|
|
10732
|
+
_colorValue: "#FF4684"
|
|
10733
|
+
}
|
|
10734
|
+
}
|
|
10735
|
+
},
|
|
10736
|
+
defaultVariants: {
|
|
10737
|
+
color: "primary"
|
|
10738
|
+
}
|
|
10739
|
+
});
|
|
10517
10740
|
// Annotate the CommonJS export names for ESM import in node:
|
|
10518
10741
|
0 && (module.exports = {
|
|
10742
|
+
AreaChart,
|
|
10519
10743
|
Avatar,
|
|
10520
10744
|
Backdrop,
|
|
10521
10745
|
Breadcrumb,
|
|
@@ -10523,6 +10747,7 @@ var fileUploadStyle = (0, import_tailwind_variants30.tv)({
|
|
|
10523
10747
|
ButtonGroup,
|
|
10524
10748
|
CheckBox,
|
|
10525
10749
|
Chip,
|
|
10750
|
+
CircularProgress,
|
|
10526
10751
|
DateTimePicker,
|
|
10527
10752
|
DefinitionTable,
|
|
10528
10753
|
FileUpload,
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import "./chunk-RRAZM5D3.mjs";
|
|
3
|
+
import {
|
|
4
|
+
textarea_default
|
|
5
|
+
} from "./chunk-4EIGHKUO.mjs";
|
|
2
6
|
import "./chunk-HIE2YRGA.mjs";
|
|
3
7
|
import {
|
|
4
8
|
tooltip_default
|
|
@@ -9,36 +13,40 @@ import "./chunk-MBLZYQCN.mjs";
|
|
|
9
13
|
import {
|
|
10
14
|
tree_default
|
|
11
15
|
} from "./chunk-NFQMXW4Z.mjs";
|
|
12
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-DX3KXNP6.mjs";
|
|
13
17
|
import {
|
|
14
|
-
|
|
15
|
-
} from "./chunk-
|
|
16
|
-
import "./chunk-RRAZM5D3.mjs";
|
|
18
|
+
definition_table_default
|
|
19
|
+
} from "./chunk-6TIIBU7J.mjs";
|
|
17
20
|
import {
|
|
18
|
-
|
|
19
|
-
} from "./chunk-
|
|
21
|
+
table_default
|
|
22
|
+
} from "./chunk-RIW4TT6V.mjs";
|
|
23
|
+
import "./chunk-BPEMHZH3.mjs";
|
|
24
|
+
import "./chunk-P7YYNA6L.mjs";
|
|
20
25
|
import "./chunk-LUWGOKLG.mjs";
|
|
21
26
|
import {
|
|
22
27
|
ToastProvider,
|
|
23
28
|
useToast
|
|
24
|
-
} from "./chunk-
|
|
25
|
-
import "./chunk-ZOTHPHXA.mjs";
|
|
29
|
+
} from "./chunk-CTBTYNSM.mjs";
|
|
26
30
|
import {
|
|
27
31
|
toast_default
|
|
28
32
|
} from "./chunk-MEY4IL7D.mjs";
|
|
33
|
+
import "./chunk-ZOTHPHXA.mjs";
|
|
34
|
+
import "./chunk-MZ76AA76.mjs";
|
|
35
|
+
import {
|
|
36
|
+
skeleton_default
|
|
37
|
+
} from "./chunk-6PN3DGOE.mjs";
|
|
29
38
|
import "./chunk-LVFI2NOH.mjs";
|
|
30
39
|
import {
|
|
31
40
|
switch_default
|
|
32
41
|
} from "./chunk-AJUQBMSV.mjs";
|
|
33
|
-
import "./chunk-
|
|
42
|
+
import "./chunk-MGEWSREV.mjs";
|
|
34
43
|
import {
|
|
35
|
-
|
|
36
|
-
} from "./chunk-
|
|
44
|
+
chip_default
|
|
45
|
+
} from "./chunk-WLNLVX7Q.mjs";
|
|
46
|
+
import "./chunk-3MY6LO7N.mjs";
|
|
37
47
|
import {
|
|
38
|
-
|
|
39
|
-
} from "./chunk-
|
|
40
|
-
import "./chunk-BPEMHZH3.mjs";
|
|
41
|
-
import "./chunk-P7YYNA6L.mjs";
|
|
48
|
+
tabs_default
|
|
49
|
+
} from "./chunk-2YMAKIZ6.mjs";
|
|
42
50
|
import "./chunk-DQRAFUDA.mjs";
|
|
43
51
|
import {
|
|
44
52
|
scrollArea_default
|
|
@@ -47,82 +55,81 @@ import "./chunk-QCEKPS7U.mjs";
|
|
|
47
55
|
import {
|
|
48
56
|
select_default
|
|
49
57
|
} from "./chunk-NLYGDZK3.mjs";
|
|
50
|
-
import "./chunk-MZ76AA76.mjs";
|
|
51
|
-
import {
|
|
52
|
-
skeleton_default
|
|
53
|
-
} from "./chunk-6PN3DGOE.mjs";
|
|
54
|
-
import "./chunk-DJOG6Z35.mjs";
|
|
55
|
-
import {
|
|
56
|
-
modal_default
|
|
57
|
-
} from "./chunk-IC25OKBJ.mjs";
|
|
58
58
|
import "./chunk-7B7LRG5J.mjs";
|
|
59
59
|
import {
|
|
60
60
|
pagination_default
|
|
61
61
|
} from "./chunk-MCNCHQ33.mjs";
|
|
62
62
|
import "./chunk-F3HENRVM.mjs";
|
|
63
|
+
import "./chunk-DJOG6Z35.mjs";
|
|
64
|
+
import {
|
|
65
|
+
modal_default
|
|
66
|
+
} from "./chunk-IC25OKBJ.mjs";
|
|
63
67
|
import "./chunk-TPFN22HR.mjs";
|
|
64
68
|
import {
|
|
65
69
|
radio_default
|
|
66
70
|
} from "./chunk-QIRL6HY6.mjs";
|
|
67
71
|
import "./chunk-RLXOHILK.mjs";
|
|
68
|
-
import
|
|
72
|
+
import {
|
|
73
|
+
fileUpload_default
|
|
74
|
+
} from "./chunk-TRR232FS.mjs";
|
|
75
|
+
import "./chunk-2GCSFWHD.mjs";
|
|
76
|
+
import {
|
|
77
|
+
input_default
|
|
78
|
+
} from "./chunk-GH6CPGFN.mjs";
|
|
79
|
+
import "./chunk-QZ3LVYJW.mjs";
|
|
80
|
+
import {
|
|
81
|
+
checkbox_default
|
|
82
|
+
} from "./chunk-D6QI3DJG.mjs";
|
|
69
83
|
import "./chunk-75HLCORR.mjs";
|
|
70
84
|
import {
|
|
71
85
|
dateTimePicker_default
|
|
72
|
-
} from "./chunk-
|
|
86
|
+
} from "./chunk-WOEZHDJR.mjs";
|
|
73
87
|
import "./chunk-A7RU3FU5.mjs";
|
|
74
|
-
import "./chunk-
|
|
88
|
+
import "./chunk-KYJTZPXY.mjs";
|
|
75
89
|
import "./chunk-7MVEAQ7Z.mjs";
|
|
76
|
-
import {
|
|
77
|
-
listItem_default
|
|
78
|
-
} from "./chunk-RT3S3VVJ.mjs";
|
|
79
90
|
import {
|
|
80
91
|
list_default
|
|
81
92
|
} from "./chunk-HIVPDIEP.mjs";
|
|
93
|
+
import {
|
|
94
|
+
listItem_default
|
|
95
|
+
} from "./chunk-RT3S3VVJ.mjs";
|
|
82
96
|
import "./chunk-FWJ2ZKH6.mjs";
|
|
83
97
|
import "./chunk-P732YGHO.mjs";
|
|
98
|
+
import "./chunk-KYIODWXL.mjs";
|
|
84
99
|
import {
|
|
85
|
-
|
|
86
|
-
} from "./chunk-
|
|
87
|
-
import "./chunk-
|
|
100
|
+
breadcrumb_default
|
|
101
|
+
} from "./chunk-G67WUZO3.mjs";
|
|
102
|
+
import "./chunk-MY5U63QO.mjs";
|
|
88
103
|
import {
|
|
89
|
-
|
|
90
|
-
} from "./chunk-
|
|
91
|
-
import "./chunk-QZ3LVYJW.mjs";
|
|
104
|
+
icon_button_default
|
|
105
|
+
} from "./chunk-7TAGGLNY.mjs";
|
|
92
106
|
import {
|
|
93
|
-
|
|
94
|
-
} from "./chunk-
|
|
107
|
+
text_button_default
|
|
108
|
+
} from "./chunk-WFMFC7R6.mjs";
|
|
109
|
+
import "./chunk-3YMMVZDL.mjs";
|
|
95
110
|
import {
|
|
96
|
-
|
|
97
|
-
} from "./chunk-
|
|
98
|
-
import "./chunk-SE5TU755.mjs";
|
|
111
|
+
areaCharts_default
|
|
112
|
+
} from "./chunk-NZOVUADT.mjs";
|
|
99
113
|
import {
|
|
100
|
-
|
|
101
|
-
} from "./chunk-
|
|
114
|
+
circularProgress_default
|
|
115
|
+
} from "./chunk-TBZSYI6R.mjs";
|
|
102
116
|
import "./chunk-7DLOYKVC.mjs";
|
|
103
117
|
import {
|
|
104
118
|
avatar_default
|
|
105
119
|
} from "./chunk-SP3JVQY3.mjs";
|
|
106
|
-
import "./chunk-
|
|
120
|
+
import "./chunk-SE5TU755.mjs";
|
|
107
121
|
import {
|
|
108
|
-
|
|
109
|
-
} from "./chunk-
|
|
110
|
-
import "./chunk-MY5U63QO.mjs";
|
|
122
|
+
backdrop_default
|
|
123
|
+
} from "./chunk-LL6F3WDX.mjs";
|
|
111
124
|
import {
|
|
112
125
|
button_group_default
|
|
113
126
|
} from "./chunk-LPZOH3RP.mjs";
|
|
114
127
|
import {
|
|
115
128
|
button_default
|
|
116
129
|
} from "./chunk-UB4YBFOT.mjs";
|
|
117
|
-
import {
|
|
118
|
-
icon_button_default
|
|
119
|
-
} from "./chunk-7TAGGLNY.mjs";
|
|
120
130
|
import "./chunk-6WSACUIB.mjs";
|
|
121
131
|
import "./chunk-LXHUO6VM.mjs";
|
|
122
132
|
import "./chunk-6PNKRBUT.mjs";
|
|
123
|
-
import {
|
|
124
|
-
text_button_default
|
|
125
|
-
} from "./chunk-WFMFC7R6.mjs";
|
|
126
133
|
import "./chunk-ZYIIXWVY.mjs";
|
|
127
134
|
import {
|
|
128
135
|
Icon_default,
|
|
@@ -137,6 +144,7 @@ import "./chunk-27Y6K5NK.mjs";
|
|
|
137
144
|
import "./chunk-E3G5QXSH.mjs";
|
|
138
145
|
import "./chunk-AC6TWLRT.mjs";
|
|
139
146
|
export {
|
|
147
|
+
areaCharts_default as AreaChart,
|
|
140
148
|
avatar_default as Avatar,
|
|
141
149
|
backdrop_default as Backdrop,
|
|
142
150
|
breadcrumb_default as Breadcrumb,
|
|
@@ -144,6 +152,7 @@ export {
|
|
|
144
152
|
button_group_default as ButtonGroup,
|
|
145
153
|
checkbox_default as CheckBox,
|
|
146
154
|
chip_default as Chip,
|
|
155
|
+
circularProgress_default as CircularProgress,
|
|
147
156
|
dateTimePicker_default as DateTimePicker,
|
|
148
157
|
definition_table_default as DefinitionTable,
|
|
149
158
|
fileUpload_default as FileUpload,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deepnoid/ui",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.44",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"exports": {
|
|
@@ -28,6 +28,7 @@
|
|
|
28
28
|
"framer-motion": "^12.10.0",
|
|
29
29
|
"react": "^19.1.0",
|
|
30
30
|
"react-dom": "^19.1.0",
|
|
31
|
+
"recharts": "^2.15.3",
|
|
31
32
|
"tailwind-variants": "^1.0.0"
|
|
32
33
|
},
|
|
33
34
|
"devDependencies": {
|
|
@@ -47,9 +48,9 @@
|
|
|
47
48
|
"typescript": "^5.8.2"
|
|
48
49
|
},
|
|
49
50
|
"peerDependencies": {
|
|
51
|
+
"framer-motion": ">=12.10.0",
|
|
50
52
|
"react": ">=19.1.0",
|
|
51
|
-
"react-dom": ">=19.1.0"
|
|
52
|
-
"framer-motion": ">=12.10.0"
|
|
53
|
+
"react-dom": ">=19.1.0"
|
|
53
54
|
},
|
|
54
55
|
"publishConfig": {
|
|
55
56
|
"access": "public",
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
getToastPosition
|
|
4
|
-
} from "./chunk-ZOTHPHXA.mjs";
|
|
5
2
|
import {
|
|
6
3
|
toast_default
|
|
7
4
|
} from "./chunk-MEY4IL7D.mjs";
|
|
5
|
+
import {
|
|
6
|
+
getToastPosition
|
|
7
|
+
} from "./chunk-ZOTHPHXA.mjs";
|
|
8
8
|
|
|
9
9
|
// src/components/toast/use-toast.tsx
|
|
10
10
|
import { createContext, useContext, useState, useCallback, useEffect, useRef } from "react";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
listItem_default
|
|
4
|
-
} from "./chunk-RT3S3VVJ.mjs";
|
|
5
2
|
import {
|
|
6
3
|
list_default
|
|
7
4
|
} from "./chunk-HIVPDIEP.mjs";
|
|
5
|
+
import {
|
|
6
|
+
listItem_default
|
|
7
|
+
} from "./chunk-RT3S3VVJ.mjs";
|
|
8
8
|
|
|
9
9
|
// src/components/dateTimePicker/timePicker.tsx
|
|
10
10
|
import { useState, useRef, useEffect } from "react";
|