@deepnoid/ui 0.1.122 → 0.1.124
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +168 -168
- package/dist/{chunk-5MINOKNM.mjs → chunk-2GFE25AI.mjs} +1 -1
- package/dist/{chunk-4DESGO3D.mjs → chunk-2TDHQLVV.mjs} +1 -1
- package/dist/{chunk-XOUAUSP4.mjs → chunk-3HY74IGR.mjs} +1 -1
- package/dist/{chunk-H6JGLPPF.mjs → chunk-3U5NJTRH.mjs} +1 -1
- package/dist/{chunk-27K5BTEL.mjs → chunk-3ZF7LQOM.mjs} +5 -5
- package/dist/{chunk-S7Y7XUBL.mjs → chunk-5XV45JBV.mjs} +1 -1
- package/dist/{chunk-VB5NKWJG.mjs → chunk-5XW5QDIW.mjs} +1 -1
- package/dist/{chunk-6JLHCQH7.mjs → chunk-6UKNZTOL.mjs} +1 -1
- package/dist/{chunk-CDXBML6O.mjs → chunk-76QIZILI.mjs} +6 -3
- package/dist/{chunk-NBJHZ4X2.mjs → chunk-BBRPAQON.mjs} +1 -1
- package/dist/{chunk-RVFSQFWS.mjs → chunk-C5IJSWWJ.mjs} +4 -4
- package/dist/{chunk-I3ADJOUT.mjs → chunk-CVXLLXLE.mjs} +1 -1
- package/dist/{chunk-LOYDOCOR.mjs → chunk-F4ORNNYB.mjs} +2 -2
- package/dist/{chunk-ITWKPTSD.mjs → chunk-GUTGDPXH.mjs} +1 -1
- package/dist/{chunk-3F6OF2QS.mjs → chunk-HKONMHXA.mjs} +1 -1
- package/dist/{chunk-WB7Z54CF.mjs → chunk-HO533YTO.mjs} +10 -10
- package/dist/chunk-IHLCZM5T.mjs +198 -0
- package/dist/{chunk-AF4I7ZQS.mjs → chunk-IW2MDZBW.mjs} +1 -1
- package/dist/{chunk-FF56E2UQ.mjs → chunk-J7IIHQNA.mjs} +1 -1
- package/dist/{chunk-DD6HAIW3.mjs → chunk-KJ7L6CO6.mjs} +1 -1
- package/dist/{chunk-HX64P3XQ.mjs → chunk-KRGI6HW7.mjs} +2 -2
- package/dist/{chunk-GZEAMYAO.mjs → chunk-LX7NPKFE.mjs} +1 -1
- package/dist/{chunk-2CLPU5LR.mjs → chunk-MCBAEW2Q.mjs} +1 -1
- package/dist/{chunk-UA24L44Z.mjs → chunk-OEFILEL3.mjs} +25 -7
- package/dist/{chunk-VOKDAIUY.mjs → chunk-OL22LVBG.mjs} +1 -1
- package/dist/{chunk-3IILPVRA.mjs → chunk-P3PXIJTU.mjs} +1 -1
- package/dist/{chunk-E2LGBO2H.mjs → chunk-QXYGQPY3.mjs} +2 -2
- package/dist/{chunk-Q364C3FI.mjs → chunk-SDUDU3CU.mjs} +1 -1
- package/dist/{chunk-D6MHTE5L.mjs → chunk-SJNXRXV5.mjs} +1 -1
- package/dist/{chunk-DLNGJVFS.mjs → chunk-TSBG5FXL.mjs} +1 -1
- package/dist/{chunk-OGJONB7G.mjs → chunk-WNNOVISA.mjs} +1 -1
- package/dist/{chunk-AT6GNVOQ.mjs → chunk-WOGNHRNX.mjs} +1 -1
- package/dist/{chunk-2IOTRPCS.mjs → chunk-WUGITHV6.mjs} +4 -4
- package/dist/{chunk-EKLA6ZR4.mjs → chunk-XL3K55LE.mjs} +1 -1
- package/dist/{chunk-VEBJS4SC.mjs → chunk-Y3CGQN3I.mjs} +3 -3
- package/dist/{chunk-YBVJFHH6.mjs → chunk-YGOX6FBU.mjs} +1 -1
- package/dist/components/accordion/accordion.mjs +2 -2
- package/dist/components/accordion/accordionItem.mjs +2 -2
- package/dist/components/accordion/index.mjs +3 -3
- package/dist/components/avatar/avatar.mjs +2 -2
- package/dist/components/avatar/index.mjs +2 -2
- package/dist/components/backdrop/backdrop.mjs +2 -2
- package/dist/components/backdrop/index.mjs +2 -2
- package/dist/components/breadcrumb/breadcrumb.mjs +6 -6
- package/dist/components/breadcrumb/index.mjs +6 -6
- package/dist/components/button/button-group.mjs +2 -2
- package/dist/components/button/button.mjs +2 -2
- package/dist/components/button/icon-button.mjs +2 -2
- package/dist/components/button/index.mjs +7 -7
- package/dist/components/button/text-button.mjs +2 -2
- package/dist/components/charts/areaChart.d.mts +5 -0
- package/dist/components/charts/areaChart.d.ts +5 -0
- package/dist/components/charts/areaChart.js +191 -73
- package/dist/components/charts/areaChart.mjs +5 -2
- package/dist/components/charts/barChart.mjs +2 -2
- package/dist/components/charts/circularProgress.mjs +2 -2
- package/dist/components/charts/index.js +247 -109
- package/dist/components/charts/index.mjs +10 -7
- package/dist/components/charts/radarChart.js +24 -6
- package/dist/components/charts/radarChart.mjs +2 -2
- package/dist/components/checkbox/checkbox.mjs +2 -2
- package/dist/components/checkbox/index.mjs +2 -2
- package/dist/components/chip/chip.mjs +2 -2
- package/dist/components/chip/index.mjs +2 -2
- package/dist/components/drawer/drawer.mjs +2 -2
- package/dist/components/drawer/index.mjs +2 -2
- package/dist/components/fileUpload/fileUpload.mjs +8 -8
- package/dist/components/fileUpload/index.mjs +8 -8
- package/dist/components/input/index.mjs +2 -2
- package/dist/components/input/input.mjs +2 -2
- package/dist/components/list/index.mjs +4 -4
- package/dist/components/list/list.mjs +2 -2
- package/dist/components/list/listItem.mjs +3 -3
- package/dist/components/modal/index.mjs +7 -7
- package/dist/components/modal/modal.mjs +7 -7
- package/dist/components/pagination/index.mjs +3 -3
- package/dist/components/pagination/pagination.mjs +3 -3
- package/dist/components/picker/datePicker.mjs +8 -8
- package/dist/components/picker/day.mjs +2 -2
- package/dist/components/picker/index.mjs +11 -11
- package/dist/components/picker/timePicker.mjs +3 -3
- package/dist/components/progress/index.mjs +2 -2
- package/dist/components/progress/progress.mjs +2 -2
- package/dist/components/radio/index.mjs +2 -2
- package/dist/components/radio/radio.mjs +2 -2
- package/dist/components/select/index.mjs +2 -2
- package/dist/components/select/select.mjs +2 -2
- package/dist/components/table/definition-table.mjs +2 -2
- package/dist/components/table/form-table.mjs +1 -1
- package/dist/components/table/index.mjs +10 -10
- package/dist/components/table/table-body.mjs +7 -7
- package/dist/components/table/table-head.mjs +7 -7
- package/dist/components/table/table.mjs +7 -7
- package/dist/components/tabs/index.mjs +2 -2
- package/dist/components/tabs/tabs.mjs +2 -2
- package/dist/components/toast/index.mjs +3 -3
- package/dist/components/toast/toast.mjs +2 -2
- package/dist/components/toast/use-toast.mjs +3 -3
- package/dist/components/tooltip/index.mjs +2 -2
- package/dist/components/tooltip/tooltip.mjs +2 -2
- package/dist/components/tree/index.mjs +2 -2
- package/dist/components/tree/tree.mjs +2 -2
- package/dist/index.js +136 -75
- package/dist/index.mjs +63 -63
- package/dist/utils/tailwind-variants.mjs +1 -1
- package/package.json +1 -1
- package/dist/chunk-QKRCC26D.mjs +0 -155
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
backdrop_default
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-IW2MDZBW.mjs";
|
|
5
5
|
import {
|
|
6
6
|
button_default
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-3HY74IGR.mjs";
|
|
8
8
|
import {
|
|
9
9
|
Icon_default
|
|
10
10
|
} from "./chunk-YZ57UYAS.mjs";
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
} from "./chunk-E3G5QXSH.mjs";
|
|
14
14
|
import {
|
|
15
15
|
tv
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-76QIZILI.mjs";
|
|
17
17
|
|
|
18
18
|
// src/components/modal/modal.tsx
|
|
19
19
|
import { forwardRef, useMemo, useEffect } from "react";
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
} from "./chunk-E3G5QXSH.mjs";
|
|
12
12
|
import {
|
|
13
13
|
tv
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-76QIZILI.mjs";
|
|
15
15
|
|
|
16
16
|
// src/components/tooltip/tooltip.tsx
|
|
17
17
|
import { forwardRef, useCallback, useMemo, useRef, useState, useEffect } from "react";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
accordion_default
|
|
4
|
-
} from "../../chunk-
|
|
4
|
+
} from "../../chunk-XL3K55LE.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
|
accordion_default as default
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
accordionItem_default
|
|
4
|
-
} from "../../chunk-
|
|
4
|
+
} from "../../chunk-CVXLLXLE.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
|
accordionItem_default as default
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
import "../../chunk-NMSDSEBD.mjs";
|
|
3
3
|
import {
|
|
4
4
|
accordion_default
|
|
5
|
-
} from "../../chunk-
|
|
5
|
+
} from "../../chunk-XL3K55LE.mjs";
|
|
6
6
|
import {
|
|
7
7
|
accordionItem_default
|
|
8
|
-
} from "../../chunk-
|
|
8
|
+
} from "../../chunk-CVXLLXLE.mjs";
|
|
9
9
|
import "../../chunk-E3G5QXSH.mjs";
|
|
10
|
-
import "../../chunk-
|
|
10
|
+
import "../../chunk-76QIZILI.mjs";
|
|
11
11
|
import "../../chunk-AC6TWLRT.mjs";
|
|
12
12
|
export {
|
|
13
13
|
accordion_default as Accordion,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
avatar_default
|
|
4
|
-
} from "../../chunk-
|
|
4
|
+
} from "../../chunk-OL22LVBG.mjs";
|
|
5
5
|
import "../../chunk-BG4DIGKH.mjs";
|
|
6
|
-
import "../../chunk-
|
|
6
|
+
import "../../chunk-76QIZILI.mjs";
|
|
7
7
|
import "../../chunk-AC6TWLRT.mjs";
|
|
8
8
|
export {
|
|
9
9
|
avatar_default as default
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import "../../chunk-7DLOYKVC.mjs";
|
|
3
3
|
import {
|
|
4
4
|
avatar_default
|
|
5
|
-
} from "../../chunk-
|
|
5
|
+
} from "../../chunk-OL22LVBG.mjs";
|
|
6
6
|
import "../../chunk-BG4DIGKH.mjs";
|
|
7
|
-
import "../../chunk-
|
|
7
|
+
import "../../chunk-76QIZILI.mjs";
|
|
8
8
|
import "../../chunk-AC6TWLRT.mjs";
|
|
9
9
|
export {
|
|
10
10
|
avatar_default as Avatar
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
backdrop_default
|
|
4
|
-
} from "../../chunk-
|
|
5
|
-
import "../../chunk-
|
|
4
|
+
} from "../../chunk-IW2MDZBW.mjs";
|
|
5
|
+
import "../../chunk-76QIZILI.mjs";
|
|
6
6
|
import "../../chunk-27Y6K5NK.mjs";
|
|
7
7
|
import "../../chunk-AC6TWLRT.mjs";
|
|
8
8
|
export {
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import "../../chunk-SE5TU755.mjs";
|
|
3
3
|
import {
|
|
4
4
|
backdrop_default
|
|
5
|
-
} from "../../chunk-
|
|
6
|
-
import "../../chunk-
|
|
5
|
+
} from "../../chunk-IW2MDZBW.mjs";
|
|
6
|
+
import "../../chunk-76QIZILI.mjs";
|
|
7
7
|
import "../../chunk-27Y6K5NK.mjs";
|
|
8
8
|
import "../../chunk-AC6TWLRT.mjs";
|
|
9
9
|
export {
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
breadcrumb_default
|
|
4
|
-
} from "../../chunk-
|
|
4
|
+
} from "../../chunk-WUGITHV6.mjs";
|
|
5
5
|
import "../../chunk-MY5U63QO.mjs";
|
|
6
|
-
import "../../chunk-
|
|
7
|
-
import "../../chunk-
|
|
8
|
-
import "../../chunk-
|
|
9
|
-
import "../../chunk-6JLHCQH7.mjs";
|
|
6
|
+
import "../../chunk-GUTGDPXH.mjs";
|
|
7
|
+
import "../../chunk-3HY74IGR.mjs";
|
|
8
|
+
import "../../chunk-6UKNZTOL.mjs";
|
|
10
9
|
import "../../chunk-6WSACUIB.mjs";
|
|
11
10
|
import "../../chunk-LXHUO6VM.mjs";
|
|
12
11
|
import "../../chunk-SZL743JC.mjs";
|
|
13
12
|
import "../../chunk-ZYIIXWVY.mjs";
|
|
14
13
|
import "../../chunk-YZ57UYAS.mjs";
|
|
14
|
+
import "../../chunk-SDUDU3CU.mjs";
|
|
15
15
|
import "../../chunk-E3G5QXSH.mjs";
|
|
16
16
|
import "../../chunk-BG4DIGKH.mjs";
|
|
17
|
-
import "../../chunk-
|
|
17
|
+
import "../../chunk-76QIZILI.mjs";
|
|
18
18
|
import "../../chunk-27Y6K5NK.mjs";
|
|
19
19
|
import "../../chunk-AC6TWLRT.mjs";
|
|
20
20
|
export {
|
|
@@ -2,20 +2,20 @@
|
|
|
2
2
|
import "../../chunk-KYIODWXL.mjs";
|
|
3
3
|
import {
|
|
4
4
|
breadcrumb_default
|
|
5
|
-
} from "../../chunk-
|
|
5
|
+
} from "../../chunk-WUGITHV6.mjs";
|
|
6
6
|
import "../../chunk-MY5U63QO.mjs";
|
|
7
|
-
import "../../chunk-
|
|
8
|
-
import "../../chunk-
|
|
9
|
-
import "../../chunk-
|
|
10
|
-
import "../../chunk-6JLHCQH7.mjs";
|
|
7
|
+
import "../../chunk-GUTGDPXH.mjs";
|
|
8
|
+
import "../../chunk-3HY74IGR.mjs";
|
|
9
|
+
import "../../chunk-6UKNZTOL.mjs";
|
|
11
10
|
import "../../chunk-6WSACUIB.mjs";
|
|
12
11
|
import "../../chunk-LXHUO6VM.mjs";
|
|
13
12
|
import "../../chunk-SZL743JC.mjs";
|
|
14
13
|
import "../../chunk-ZYIIXWVY.mjs";
|
|
15
14
|
import "../../chunk-YZ57UYAS.mjs";
|
|
15
|
+
import "../../chunk-SDUDU3CU.mjs";
|
|
16
16
|
import "../../chunk-E3G5QXSH.mjs";
|
|
17
17
|
import "../../chunk-BG4DIGKH.mjs";
|
|
18
|
-
import "../../chunk-
|
|
18
|
+
import "../../chunk-76QIZILI.mjs";
|
|
19
19
|
import "../../chunk-27Y6K5NK.mjs";
|
|
20
20
|
import "../../chunk-AC6TWLRT.mjs";
|
|
21
21
|
export {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
button_group_default
|
|
4
|
-
} from "../../chunk-
|
|
5
|
-
import "../../chunk-
|
|
4
|
+
} from "../../chunk-GUTGDPXH.mjs";
|
|
5
|
+
import "../../chunk-76QIZILI.mjs";
|
|
6
6
|
import "../../chunk-AC6TWLRT.mjs";
|
|
7
7
|
export {
|
|
8
8
|
button_group_default as default
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
button_default
|
|
4
|
-
} from "../../chunk-
|
|
4
|
+
} from "../../chunk-3HY74IGR.mjs";
|
|
5
5
|
import "../../chunk-6WSACUIB.mjs";
|
|
6
6
|
import "../../chunk-LXHUO6VM.mjs";
|
|
7
7
|
import "../../chunk-SZL743JC.mjs";
|
|
@@ -9,7 +9,7 @@ import "../../chunk-ZYIIXWVY.mjs";
|
|
|
9
9
|
import "../../chunk-YZ57UYAS.mjs";
|
|
10
10
|
import "../../chunk-E3G5QXSH.mjs";
|
|
11
11
|
import "../../chunk-BG4DIGKH.mjs";
|
|
12
|
-
import "../../chunk-
|
|
12
|
+
import "../../chunk-76QIZILI.mjs";
|
|
13
13
|
import "../../chunk-AC6TWLRT.mjs";
|
|
14
14
|
export {
|
|
15
15
|
button_default as default
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
icon_button_default
|
|
4
|
-
} from "../../chunk-
|
|
4
|
+
} from "../../chunk-6UKNZTOL.mjs";
|
|
5
5
|
import "../../chunk-6WSACUIB.mjs";
|
|
6
6
|
import "../../chunk-LXHUO6VM.mjs";
|
|
7
7
|
import "../../chunk-SZL743JC.mjs";
|
|
@@ -9,7 +9,7 @@ import "../../chunk-ZYIIXWVY.mjs";
|
|
|
9
9
|
import "../../chunk-YZ57UYAS.mjs";
|
|
10
10
|
import "../../chunk-E3G5QXSH.mjs";
|
|
11
11
|
import "../../chunk-BG4DIGKH.mjs";
|
|
12
|
-
import "../../chunk-
|
|
12
|
+
import "../../chunk-76QIZILI.mjs";
|
|
13
13
|
import "../../chunk-AC6TWLRT.mjs";
|
|
14
14
|
export {
|
|
15
15
|
icon_button_default as default
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import "../../chunk-MY5U63QO.mjs";
|
|
3
|
-
import {
|
|
4
|
-
text_button_default
|
|
5
|
-
} from "../../chunk-Q364C3FI.mjs";
|
|
6
3
|
import {
|
|
7
4
|
button_group_default
|
|
8
|
-
} from "../../chunk-
|
|
5
|
+
} from "../../chunk-GUTGDPXH.mjs";
|
|
9
6
|
import {
|
|
10
7
|
button_default
|
|
11
|
-
} from "../../chunk-
|
|
8
|
+
} from "../../chunk-3HY74IGR.mjs";
|
|
12
9
|
import {
|
|
13
10
|
icon_button_default
|
|
14
|
-
} from "../../chunk-
|
|
11
|
+
} from "../../chunk-6UKNZTOL.mjs";
|
|
15
12
|
import "../../chunk-6WSACUIB.mjs";
|
|
16
13
|
import "../../chunk-LXHUO6VM.mjs";
|
|
17
14
|
import "../../chunk-SZL743JC.mjs";
|
|
18
15
|
import "../../chunk-ZYIIXWVY.mjs";
|
|
19
16
|
import "../../chunk-YZ57UYAS.mjs";
|
|
17
|
+
import {
|
|
18
|
+
text_button_default
|
|
19
|
+
} from "../../chunk-SDUDU3CU.mjs";
|
|
20
20
|
import "../../chunk-E3G5QXSH.mjs";
|
|
21
21
|
import "../../chunk-BG4DIGKH.mjs";
|
|
22
|
-
import "../../chunk-
|
|
22
|
+
import "../../chunk-76QIZILI.mjs";
|
|
23
23
|
import "../../chunk-27Y6K5NK.mjs";
|
|
24
24
|
import "../../chunk-AC6TWLRT.mjs";
|
|
25
25
|
export {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
text_button_default
|
|
4
|
-
} from "../../chunk-
|
|
4
|
+
} from "../../chunk-SDUDU3CU.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 {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as tailwind_variants from 'tailwind-variants';
|
|
2
2
|
import { VariantProps } from 'tailwind-variants';
|
|
3
3
|
import * as react from 'react';
|
|
4
|
+
import { ReactNode } from 'react';
|
|
4
5
|
import { SlotsToClasses } from '../../utils/types.mjs';
|
|
5
6
|
|
|
6
7
|
type AreaData = {
|
|
@@ -10,6 +11,10 @@ type AreaData = {
|
|
|
10
11
|
type Props = {
|
|
11
12
|
data?: AreaData[];
|
|
12
13
|
label?: string;
|
|
14
|
+
headerContent?: ReactNode;
|
|
15
|
+
startFromZero?: boolean;
|
|
16
|
+
itemWidth?: number;
|
|
17
|
+
chartHeight?: number;
|
|
13
18
|
classNames?: SlotsToClasses<AreaChartSlots>;
|
|
14
19
|
};
|
|
15
20
|
type AreaChartProps = Props & AreaChartVariantProps;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as tailwind_variants from 'tailwind-variants';
|
|
2
2
|
import { VariantProps } from 'tailwind-variants';
|
|
3
3
|
import * as react from 'react';
|
|
4
|
+
import { ReactNode } from 'react';
|
|
4
5
|
import { SlotsToClasses } from '../../utils/types.js';
|
|
5
6
|
|
|
6
7
|
type AreaData = {
|
|
@@ -10,6 +11,10 @@ type AreaData = {
|
|
|
10
11
|
type Props = {
|
|
11
12
|
data?: AreaData[];
|
|
12
13
|
label?: string;
|
|
14
|
+
headerContent?: ReactNode;
|
|
15
|
+
startFromZero?: boolean;
|
|
16
|
+
itemWidth?: number;
|
|
17
|
+
chartHeight?: number;
|
|
13
18
|
classNames?: SlotsToClasses<AreaChartSlots>;
|
|
14
19
|
};
|
|
15
20
|
type AreaChartProps = Props & AreaChartVariantProps;
|
|
@@ -370,29 +370,131 @@ var mapPropsVariants = (props, variantKeys, removeVariantProps = true) => {
|
|
|
370
370
|
}
|
|
371
371
|
};
|
|
372
372
|
|
|
373
|
-
// src/components/
|
|
373
|
+
// src/components/scroll/scrollArea.tsx
|
|
374
|
+
var import_tailwind_variants2 = require("tailwind-variants");
|
|
375
|
+
|
|
376
|
+
// src/utils/clsx.ts
|
|
377
|
+
function clsx(...args) {
|
|
378
|
+
var i = 0, tmp, x, str = "";
|
|
379
|
+
while (i < args.length) {
|
|
380
|
+
if (tmp = args[i++]) {
|
|
381
|
+
if (x = toVal(tmp)) {
|
|
382
|
+
str && (str += " ");
|
|
383
|
+
str += x;
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
return str;
|
|
388
|
+
}
|
|
389
|
+
function toVal(mix) {
|
|
390
|
+
var k, y, str = "";
|
|
391
|
+
if (typeof mix === "string" || typeof mix === "number") {
|
|
392
|
+
str += mix;
|
|
393
|
+
} else if (typeof mix === "object") {
|
|
394
|
+
if (Array.isArray(mix)) {
|
|
395
|
+
var len = mix.length;
|
|
396
|
+
for (k = 0; k < len; k++) {
|
|
397
|
+
if (mix[k]) {
|
|
398
|
+
if (y = toVal(mix[k])) {
|
|
399
|
+
str && (str += " ");
|
|
400
|
+
str += y;
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
}
|
|
404
|
+
} else {
|
|
405
|
+
for (y in mix) {
|
|
406
|
+
if (mix[y]) {
|
|
407
|
+
str && (str += " ");
|
|
408
|
+
str += y;
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
}
|
|
412
|
+
}
|
|
413
|
+
return str;
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
// src/components/scroll/scrollArea.tsx
|
|
374
417
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
418
|
+
var ScrollArea = ({ children, className, direction, size }) => {
|
|
419
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: clsx(scrollAreaStyle({ direction, size }), className), children });
|
|
420
|
+
};
|
|
421
|
+
ScrollArea.displayName = "ScrollArea";
|
|
422
|
+
var scrollArea_default = ScrollArea;
|
|
423
|
+
var scrollAreaStyle = (0, import_tailwind_variants2.tv)({
|
|
424
|
+
base: [
|
|
425
|
+
"h-full",
|
|
426
|
+
"x-full",
|
|
427
|
+
"scrollbar-thumb-trans-soft",
|
|
428
|
+
"hover:scrollbar-thumb-neutral-light",
|
|
429
|
+
"scrollbar-track-neutral-soft",
|
|
430
|
+
"scrollbar-button-neutral-main"
|
|
431
|
+
],
|
|
432
|
+
variants: {
|
|
433
|
+
direction: {
|
|
434
|
+
x: ["overflow-x-auto", "overflow-y-hidden"],
|
|
435
|
+
y: ["overflow-y-auto", "overflow-x-hidden"],
|
|
436
|
+
both: ["overflow-auto"]
|
|
437
|
+
},
|
|
438
|
+
size: {
|
|
439
|
+
sm: ["scrollbar-sm"],
|
|
440
|
+
// "scrollbar-thin",
|
|
441
|
+
md: ["scrollbar-md"],
|
|
442
|
+
lg: ["scrollbar-lg"]
|
|
443
|
+
}
|
|
444
|
+
},
|
|
445
|
+
defaultVariants: {
|
|
446
|
+
direction: "both",
|
|
447
|
+
size: "md"
|
|
448
|
+
}
|
|
449
|
+
});
|
|
450
|
+
|
|
451
|
+
// src/components/charts/areaChart.tsx
|
|
452
|
+
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
375
453
|
var AreaChartComponent = (0, import_react.forwardRef)((originalProps, ref) => {
|
|
376
454
|
const uniqueId = (0, import_react.useId)();
|
|
377
455
|
const [props, variantProps] = mapPropsVariants(originalProps, areaChartStyle.variantKeys);
|
|
378
|
-
const {
|
|
456
|
+
const {
|
|
457
|
+
data,
|
|
458
|
+
label,
|
|
459
|
+
headerContent,
|
|
460
|
+
color = "primary",
|
|
461
|
+
startFromZero = false,
|
|
462
|
+
itemWidth,
|
|
463
|
+
chartHeight = 240,
|
|
464
|
+
classNames
|
|
465
|
+
} = { ...props, ...variantProps };
|
|
379
466
|
const slots = (0, import_react.useMemo)(() => areaChartStyle({ ...variantProps }), [variantProps]);
|
|
380
467
|
const COLOR_MAP = {
|
|
381
468
|
primary: "#3F9CF2",
|
|
382
469
|
danger: "#FF4684"
|
|
383
470
|
};
|
|
384
471
|
const colorHex = (0, import_react.useMemo)(() => COLOR_MAP[color], [color]);
|
|
472
|
+
const totalChartWidth = (0, import_react.useMemo)(() => {
|
|
473
|
+
if (!data || !itemWidth) return void 0;
|
|
474
|
+
const dataLength = startFromZero ? data.length + 1 : data.length;
|
|
475
|
+
return dataLength * itemWidth;
|
|
476
|
+
}, [data, itemWidth, startFromZero]);
|
|
477
|
+
const needsScroll = (0, import_react.useMemo)(() => {
|
|
478
|
+
return totalChartWidth;
|
|
479
|
+
}, [totalChartWidth]);
|
|
480
|
+
const processedData = (0, import_react.useMemo)(() => {
|
|
481
|
+
if (!data) return [];
|
|
482
|
+
return data;
|
|
483
|
+
}, [data, startFromZero]);
|
|
385
484
|
const [tickPositions, setTickPositions] = (0, import_react.useState)([]);
|
|
386
485
|
const tickRef = (0, import_react.useRef)([]);
|
|
387
486
|
const CustomTick = ({ x, y, payload }) => {
|
|
388
487
|
if (x !== void 0) {
|
|
389
488
|
tickRef.current.push(x);
|
|
390
489
|
}
|
|
391
|
-
|
|
490
|
+
if (startFromZero && payload.value === "") {
|
|
491
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("g", {});
|
|
492
|
+
}
|
|
493
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
392
494
|
"text",
|
|
393
495
|
{
|
|
394
496
|
x,
|
|
395
|
-
y: y +
|
|
497
|
+
y: y + 11,
|
|
396
498
|
textAnchor: "middle",
|
|
397
499
|
fontSize: 12,
|
|
398
500
|
fontWeight: 700,
|
|
@@ -413,79 +515,95 @@ var AreaChartComponent = (0, import_react.forwardRef)((originalProps, ref) => {
|
|
|
413
515
|
tickRef.current = [];
|
|
414
516
|
});
|
|
415
517
|
return () => cancelAnimationFrame(raf);
|
|
416
|
-
}, [
|
|
518
|
+
}, [processedData]);
|
|
417
519
|
const CustomDotWithShadow = (props2) => {
|
|
418
|
-
const { cx, cy, fill, stroke } = props2;
|
|
520
|
+
const { cx, cy, fill, stroke, payload } = props2;
|
|
419
521
|
if (cx === void 0 || cy === void 0) return null;
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
522
|
+
if (startFromZero && (payload == null ? void 0 : payload.name) === "") {
|
|
523
|
+
return null;
|
|
524
|
+
}
|
|
525
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
|
|
526
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("circle", { cx, cy, r: 8, fill, opacity: 0.2 }),
|
|
527
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("circle", { cx, cy, r: 3.5, fill, stroke, strokeWidth: 2 })
|
|
423
528
|
] });
|
|
424
529
|
};
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
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
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
530
|
+
const chartContent = /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
531
|
+
"div",
|
|
532
|
+
{
|
|
533
|
+
style: {
|
|
534
|
+
width: totalChartWidth || "100%",
|
|
535
|
+
minWidth: totalChartWidth || "100%"
|
|
536
|
+
},
|
|
537
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
|
|
538
|
+
import_recharts.AreaChart,
|
|
539
|
+
{
|
|
540
|
+
width: totalChartWidth || 400,
|
|
541
|
+
height: chartHeight + 30,
|
|
542
|
+
data: processedData,
|
|
543
|
+
margin: { left: -30 },
|
|
544
|
+
className: "bg-body-background [&_.recharts-surface]:outline-none [&_.recharts-surface]:focus:outline-none",
|
|
545
|
+
children: [
|
|
546
|
+
/* @__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: [
|
|
547
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("stop", { offset: "5%", stopColor: colorHex, stopOpacity: 0.3 }),
|
|
548
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("stop", { offset: "95%", stopColor: colorHex, stopOpacity: 0 })
|
|
549
|
+
] }) }),
|
|
550
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
551
|
+
import_recharts.CartesianGrid,
|
|
552
|
+
{
|
|
553
|
+
vertical: true,
|
|
554
|
+
horizontal: false,
|
|
555
|
+
strokeDasharray: "3 3",
|
|
556
|
+
className: "stroke-neutral-light",
|
|
557
|
+
verticalPoints: tickPositions
|
|
558
|
+
}
|
|
559
|
+
),
|
|
560
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
561
|
+
import_recharts.XAxis,
|
|
562
|
+
{
|
|
563
|
+
dataKey: "name",
|
|
564
|
+
axisLine: { stroke: "#DFE2E7", strokeWidth: 1 },
|
|
565
|
+
tickLine: false,
|
|
566
|
+
tick: CustomTick,
|
|
567
|
+
padding: { left: 35.5, right: 35.5 }
|
|
568
|
+
}
|
|
569
|
+
),
|
|
570
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
571
|
+
import_recharts.YAxis,
|
|
572
|
+
{
|
|
573
|
+
axisLine: { stroke: "#DFE2E7", strokeWidth: 1 },
|
|
574
|
+
tickLine: false,
|
|
575
|
+
tick: {
|
|
576
|
+
fontSize: 12,
|
|
577
|
+
fontWeight: 700,
|
|
578
|
+
fill: "text-body-foreground",
|
|
579
|
+
textAnchor: "middle",
|
|
580
|
+
dx: -10
|
|
581
|
+
},
|
|
582
|
+
ticks: [0, 20, 40, 60, 80, 100],
|
|
583
|
+
domain: [-6, 110]
|
|
584
|
+
}
|
|
585
|
+
),
|
|
586
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
587
|
+
import_recharts.Area,
|
|
588
|
+
{
|
|
589
|
+
type: "monotone",
|
|
590
|
+
dataKey: "value",
|
|
591
|
+
stroke: colorHex,
|
|
592
|
+
strokeWidth: 2,
|
|
593
|
+
fill: `url(#colorGradient-${uniqueId})`,
|
|
594
|
+
dot: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(CustomDotWithShadow, { stroke: colorHex, fill: colorHex }),
|
|
595
|
+
activeDot: false
|
|
596
|
+
}
|
|
597
|
+
)
|
|
598
|
+
]
|
|
599
|
+
}
|
|
600
|
+
)
|
|
601
|
+
}
|
|
602
|
+
);
|
|
603
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { ref, className: slots.base({ class: classNames == null ? void 0 : classNames.base }), children: [
|
|
604
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("p", { className: slots.label({ class: classNames == null ? void 0 : classNames.label }), children: label }),
|
|
605
|
+
headerContent,
|
|
606
|
+
needsScroll ? /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(scrollArea_default, { direction: "x", size: "sm", children: chartContent }) : chartContent
|
|
489
607
|
] });
|
|
490
608
|
});
|
|
491
609
|
AreaChartComponent.displayName = "AreaChart";
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
areaChart_default
|
|
4
|
-
} from "../../chunk-
|
|
4
|
+
} from "../../chunk-IHLCZM5T.mjs";
|
|
5
|
+
import "../../chunk-DQRAFUDA.mjs";
|
|
6
|
+
import "../../chunk-M37VBNB3.mjs";
|
|
5
7
|
import "../../chunk-E3G5QXSH.mjs";
|
|
6
|
-
import "../../chunk-
|
|
8
|
+
import "../../chunk-76QIZILI.mjs";
|
|
9
|
+
import "../../chunk-27Y6K5NK.mjs";
|
|
7
10
|
import "../../chunk-AC6TWLRT.mjs";
|
|
8
11
|
export {
|
|
9
12
|
areaChart_default as default
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
barChart_default
|
|
4
|
-
} from "../../chunk-
|
|
4
|
+
} from "../../chunk-WNNOVISA.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
|
barChart_default as default
|