@deepnoid/ui 0.1.123 → 0.1.126
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 +469 -461
- package/dist/{chunk-4DESGO3D.mjs → chunk-2TDHQLVV.mjs} +1 -1
- package/dist/{chunk-H6JGLPPF.mjs → chunk-3U5NJTRH.mjs} +1 -1
- package/dist/{chunk-2IOTRPCS.mjs → chunk-4WHX4RXX.mjs} +3 -3
- package/dist/{chunk-E2LGBO2H.mjs → chunk-4X67BUPA.mjs} +3 -3
- package/dist/{chunk-DLNGJVFS.mjs → chunk-5R3ARH2N.mjs} +2 -2
- package/dist/{chunk-S7Y7XUBL.mjs → chunk-5XV45JBV.mjs} +1 -1
- package/dist/{chunk-VB5NKWJG.mjs → chunk-5XW5QDIW.mjs} +1 -1
- package/dist/{chunk-CDXBML6O.mjs → chunk-76QIZILI.mjs} +6 -3
- package/dist/{chunk-27K5BTEL.mjs → chunk-ANILRUAS.mjs} +5 -4
- package/dist/{chunk-VOKDAIUY.mjs → chunk-BBEOPH6B.mjs} +2 -2
- package/dist/{chunk-NBJHZ4X2.mjs → chunk-BBRPAQON.mjs} +1 -1
- package/dist/{chunk-RVFSQFWS.mjs → chunk-BD4M2FZM.mjs} +4 -4
- package/dist/{chunk-I3ADJOUT.mjs → chunk-CVXLLXLE.mjs} +1 -1
- package/dist/{chunk-VEBJS4SC.mjs → chunk-DDK4NEDX.mjs} +4 -4
- package/dist/{chunk-BG4DIGKH.mjs → chunk-GQFNYXJZ.mjs} +30 -0
- package/dist/{chunk-ITWKPTSD.mjs → chunk-GUTGDPXH.mjs} +1 -1
- package/dist/{chunk-HX64P3XQ.mjs → chunk-IBYQBC6D.mjs} +115 -34
- package/dist/chunk-IHLCZM5T.mjs +198 -0
- package/dist/{chunk-AT6GNVOQ.mjs → chunk-IT6RD6KS.mjs} +2 -2
- package/dist/{chunk-AF4I7ZQS.mjs → chunk-IW2MDZBW.mjs} +1 -1
- package/dist/{chunk-FF56E2UQ.mjs → chunk-J7IIHQNA.mjs} +1 -1
- package/dist/{chunk-5MINOKNM.mjs → chunk-JC6635TJ.mjs} +2 -2
- package/dist/{chunk-DD6HAIW3.mjs → chunk-KP2KOY5Z.mjs} +1 -1
- package/dist/{chunk-2CLPU5LR.mjs → chunk-MCBAEW2Q.mjs} +1 -1
- package/dist/{chunk-ITDBI3X2.mjs → chunk-MPUZ5T7X.mjs} +9 -9
- package/dist/{chunk-JGQ5MLQ7.mjs → chunk-OEFILEL3.mjs} +1 -1
- package/dist/{chunk-6JLHCQH7.mjs → chunk-OLQJXFHU.mjs} +2 -2
- package/dist/{chunk-LOYDOCOR.mjs → chunk-ORZW6F6E.mjs} +3 -3
- package/dist/{chunk-3IILPVRA.mjs → chunk-P3PXIJTU.mjs} +1 -1
- package/dist/{chunk-Q364C3FI.mjs → chunk-SDUDU3CU.mjs} +1 -1
- package/dist/{chunk-D6MHTE5L.mjs → chunk-SJNXRXV5.mjs} +1 -1
- package/dist/{chunk-XOUAUSP4.mjs → chunk-TRLIC34S.mjs} +2 -2
- package/dist/{chunk-OGJONB7G.mjs → chunk-WNNOVISA.mjs} +1 -1
- package/dist/{chunk-EKLA6ZR4.mjs → chunk-XL3K55LE.mjs} +1 -1
- package/dist/{chunk-YZ57UYAS.mjs → chunk-XX2PHROM.mjs} +1 -1
- package/dist/{chunk-YBVJFHH6.mjs → chunk-YGOX6FBU.mjs} +1 -1
- package/dist/{chunk-GZEAMYAO.mjs → chunk-YWLC7KRK.mjs} +2 -3
- package/dist/{chunk-3F6OF2QS.mjs → chunk-ZI3MLO7X.mjs} +2 -2
- 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.js +30 -0
- package/dist/components/avatar/avatar.mjs +3 -3
- package/dist/components/avatar/index.js +30 -0
- package/dist/components/avatar/index.mjs +3 -3
- package/dist/components/backdrop/backdrop.mjs +2 -2
- package/dist/components/backdrop/index.mjs +2 -2
- package/dist/components/breadcrumb/breadcrumb.js +30 -0
- package/dist/components/breadcrumb/breadcrumb.mjs +8 -8
- package/dist/components/breadcrumb/index.js +30 -0
- package/dist/components/breadcrumb/index.mjs +8 -8
- package/dist/components/button/button-group.mjs +2 -2
- package/dist/components/button/button.js +30 -0
- package/dist/components/button/button.mjs +4 -4
- package/dist/components/button/icon-button.js +30 -0
- package/dist/components/button/icon-button.mjs +4 -4
- package/dist/components/button/index.js +30 -0
- 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 +8 -5
- 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.js +30 -0
- package/dist/components/chip/chip.mjs +4 -4
- package/dist/components/chip/index.js +30 -0
- package/dist/components/chip/index.mjs +4 -4
- package/dist/components/drawer/drawer.mjs +2 -2
- package/dist/components/drawer/index.mjs +2 -2
- package/dist/components/fileUpload/fileUpload.js +30 -0
- package/dist/components/fileUpload/fileUpload.mjs +10 -10
- package/dist/components/fileUpload/index.js +30 -0
- package/dist/components/fileUpload/index.mjs +10 -10
- package/dist/components/icon/Icon.d.mts +4 -0
- package/dist/components/icon/Icon.d.ts +4 -0
- package/dist/components/icon/Icon.js +30 -0
- package/dist/components/icon/Icon.mjs +2 -2
- package/dist/components/icon/index.js +30 -0
- package/dist/components/icon/index.mjs +2 -2
- package/dist/components/icon/template.d.mts +1 -0
- package/dist/components/icon/template.d.ts +1 -0
- package/dist/components/icon/template.js +30 -0
- package/dist/components/icon/template.mjs +1 -1
- package/dist/components/input/index.js +30 -0
- package/dist/components/input/index.mjs +4 -4
- package/dist/components/input/input.js +30 -0
- package/dist/components/input/input.mjs +4 -4
- package/dist/components/list/index.js +30 -0
- package/dist/components/list/index.mjs +6 -6
- package/dist/components/list/list.mjs +2 -2
- package/dist/components/list/listItem.js +30 -0
- package/dist/components/list/listItem.mjs +5 -5
- package/dist/components/modal/index.js +30 -0
- package/dist/components/modal/index.mjs +9 -9
- package/dist/components/modal/modal.js +30 -0
- package/dist/components/modal/modal.mjs +9 -9
- package/dist/components/pagination/index.js +141 -29
- package/dist/components/pagination/index.mjs +5 -5
- package/dist/components/pagination/pagination.d.mts +1 -1
- package/dist/components/pagination/pagination.d.ts +1 -1
- package/dist/components/pagination/pagination.js +142 -35
- package/dist/components/pagination/pagination.mjs +6 -8
- package/dist/components/picker/datePicker.js +30 -0
- package/dist/components/picker/datePicker.mjs +10 -10
- package/dist/components/picker/day.mjs +2 -2
- package/dist/components/picker/index.js +30 -1
- package/dist/components/picker/index.mjs +16 -16
- package/dist/components/picker/timePicker.js +30 -1
- package/dist/components/picker/timePicker.mjs +5 -5
- 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.js +30 -1
- package/dist/components/select/index.mjs +4 -4
- package/dist/components/select/select.js +30 -1
- package/dist/components/select/select.mjs +4 -4
- package/dist/components/table/definition-table.mjs +2 -2
- package/dist/components/table/form-table.mjs +1 -1
- package/dist/components/table/index.js +142 -29
- package/dist/components/table/index.mjs +10 -10
- package/dist/components/table/table-body.js +142 -29
- package/dist/components/table/table-body.mjs +9 -9
- package/dist/components/table/table-head.js +142 -29
- package/dist/components/table/table-head.mjs +9 -9
- package/dist/components/table/table.js +142 -29
- package/dist/components/table/table.mjs +9 -9
- package/dist/components/tabs/index.mjs +2 -2
- package/dist/components/tabs/tabs.mjs +2 -2
- package/dist/components/timePicker/calendar.d.mts +72 -0
- package/dist/components/timePicker/calendar.d.ts +72 -0
- package/dist/components/timePicker/calendar.js +5360 -0
- package/dist/components/timePicker/calendar.mjs +300 -0
- package/dist/components/timePicker/useDateTimePicker.d.mts +38 -0
- package/dist/components/timePicker/useDateTimePicker.d.ts +38 -0
- package/dist/components/timePicker/useDateTimePicker.js +126 -0
- package/dist/components/timePicker/useDateTimePicker.mjs +96 -0
- package/dist/components/toast/index.js +30 -0
- package/dist/components/toast/index.mjs +5 -5
- package/dist/components/toast/toast.js +30 -0
- package/dist/components/toast/toast.mjs +4 -4
- package/dist/components/toast/use-toast.js +30 -0
- package/dist/components/toast/use-toast.mjs +5 -5
- package/dist/components/tooltip/index.mjs +2 -2
- package/dist/components/tooltip/tooltip.mjs +2 -2
- package/dist/components/tree/index.js +30 -0
- package/dist/components/tree/index.mjs +4 -4
- package/dist/components/tree/tree.js +30 -0
- package/dist/components/tree/tree.mjs +4 -4
- package/dist/index.js +254 -99
- package/dist/index.mjs +55 -55
- package/dist/utils/tailwind-variants.mjs +1 -1
- package/package.json +1 -1
- package/dist/chunk-QKRCC26D.mjs +0 -155
package/dist/index.mjs
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import "./chunk-
|
|
2
|
+
import "./chunk-HIE2YRGA.mjs";
|
|
3
3
|
import {
|
|
4
|
-
|
|
5
|
-
} from "./chunk-
|
|
4
|
+
tooltip_default
|
|
5
|
+
} from "./chunk-YGOX6FBU.mjs";
|
|
6
|
+
import "./chunk-ZMOAFSYE.mjs";
|
|
7
|
+
import "./chunk-WSIADHVC.mjs";
|
|
6
8
|
import "./chunk-LUWGOKLG.mjs";
|
|
7
9
|
import {
|
|
8
10
|
ToastProvider,
|
|
9
11
|
useToast
|
|
10
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-KP2KOY5Z.mjs";
|
|
11
13
|
import "./chunk-ZOTHPHXA.mjs";
|
|
12
14
|
import {
|
|
13
15
|
toast_default
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
+
} from "./chunk-5R3ARH2N.mjs";
|
|
17
|
+
import "./chunk-MBLZYQCN.mjs";
|
|
16
18
|
import {
|
|
17
|
-
|
|
18
|
-
} from "./chunk-
|
|
19
|
-
import "./chunk-ZMOAFSYE.mjs";
|
|
20
|
-
import "./chunk-WSIADHVC.mjs";
|
|
19
|
+
tree_default
|
|
20
|
+
} from "./chunk-JC6635TJ.mjs";
|
|
21
21
|
import "./chunk-DX3KXNP6.mjs";
|
|
22
22
|
import {
|
|
23
23
|
definition_table_default
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-SJNXRXV5.mjs";
|
|
25
25
|
import {
|
|
26
26
|
table_default
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-ANILRUAS.mjs";
|
|
28
28
|
import "./chunk-RRAZM5D3.mjs";
|
|
29
29
|
import {
|
|
30
30
|
textarea_default
|
|
@@ -40,104 +40,104 @@ import {
|
|
|
40
40
|
import "./chunk-3MY6LO7N.mjs";
|
|
41
41
|
import {
|
|
42
42
|
tabs_default
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-BBRPAQON.mjs";
|
|
44
44
|
import "./chunk-TPFN22HR.mjs";
|
|
45
45
|
import {
|
|
46
46
|
radio_default
|
|
47
|
-
} from "./chunk-
|
|
48
|
-
import "./chunk-DQRAFUDA.mjs";
|
|
49
|
-
import {
|
|
50
|
-
scrollArea_default
|
|
51
|
-
} from "./chunk-M37VBNB3.mjs";
|
|
47
|
+
} from "./chunk-J7IIHQNA.mjs";
|
|
52
48
|
import "./chunk-7B7LRG5J.mjs";
|
|
53
49
|
import {
|
|
54
50
|
pagination_default
|
|
55
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-IBYQBC6D.mjs";
|
|
56
52
|
import "./chunk-F3HENRVM.mjs";
|
|
57
53
|
import "./chunk-4VWG4726.mjs";
|
|
54
|
+
import {
|
|
55
|
+
datePicker_default
|
|
56
|
+
} from "./chunk-MPUZ5T7X.mjs";
|
|
57
|
+
import {
|
|
58
|
+
day_default
|
|
59
|
+
} from "./chunk-2TDHQLVV.mjs";
|
|
58
60
|
import {
|
|
59
61
|
timePicker_default
|
|
60
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-4X67BUPA.mjs";
|
|
61
63
|
import "./chunk-QCEKPS7U.mjs";
|
|
62
64
|
import {
|
|
63
65
|
select_default
|
|
64
|
-
} from "./chunk-
|
|
65
|
-
import {
|
|
66
|
-
datePicker_default
|
|
67
|
-
} from "./chunk-ITDBI3X2.mjs";
|
|
66
|
+
} from "./chunk-YWLC7KRK.mjs";
|
|
68
67
|
import "./chunk-FWFEKWWD.mjs";
|
|
69
|
-
import {
|
|
70
|
-
day_default
|
|
71
|
-
} from "./chunk-4DESGO3D.mjs";
|
|
72
68
|
import "./chunk-7MVEAQ7Z.mjs";
|
|
73
69
|
import {
|
|
74
70
|
list_default
|
|
75
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-P3PXIJTU.mjs";
|
|
76
72
|
import {
|
|
77
73
|
listItem_default
|
|
78
|
-
} from "./chunk-
|
|
74
|
+
} from "./chunk-ORZW6F6E.mjs";
|
|
79
75
|
import "./chunk-DJOG6Z35.mjs";
|
|
80
76
|
import {
|
|
81
77
|
modal_default
|
|
82
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-DDK4NEDX.mjs";
|
|
83
79
|
import "./chunk-MGEWSREV.mjs";
|
|
84
80
|
import {
|
|
85
81
|
chip_default
|
|
86
|
-
} from "./chunk-
|
|
82
|
+
} from "./chunk-IT6RD6KS.mjs";
|
|
83
|
+
import "./chunk-32GA3YW4.mjs";
|
|
84
|
+
import {
|
|
85
|
+
drawer_default
|
|
86
|
+
} from "./chunk-5XV45JBV.mjs";
|
|
87
87
|
import "./chunk-RLXOHILK.mjs";
|
|
88
88
|
import {
|
|
89
89
|
fileUpload_default
|
|
90
|
-
} from "./chunk-
|
|
90
|
+
} from "./chunk-BD4M2FZM.mjs";
|
|
91
91
|
import "./chunk-7VOQKIIK.mjs";
|
|
92
92
|
import {
|
|
93
93
|
progress_default
|
|
94
|
-
} from "./chunk-
|
|
94
|
+
} from "./chunk-MCBAEW2Q.mjs";
|
|
95
95
|
import "./chunk-2GCSFWHD.mjs";
|
|
96
96
|
import {
|
|
97
97
|
input_default
|
|
98
|
-
} from "./chunk-
|
|
99
|
-
import "./chunk-32GA3YW4.mjs";
|
|
100
|
-
import {
|
|
101
|
-
drawer_default
|
|
102
|
-
} from "./chunk-S7Y7XUBL.mjs";
|
|
98
|
+
} from "./chunk-ZI3MLO7X.mjs";
|
|
103
99
|
import "./chunk-VYNBJBXD.mjs";
|
|
104
100
|
import {
|
|
105
101
|
areaChart_default
|
|
106
|
-
} from "./chunk-
|
|
102
|
+
} from "./chunk-IHLCZM5T.mjs";
|
|
103
|
+
import "./chunk-DQRAFUDA.mjs";
|
|
104
|
+
import {
|
|
105
|
+
scrollArea_default
|
|
106
|
+
} from "./chunk-M37VBNB3.mjs";
|
|
107
107
|
import {
|
|
108
108
|
barChart_default
|
|
109
|
-
} from "./chunk-
|
|
109
|
+
} from "./chunk-WNNOVISA.mjs";
|
|
110
110
|
import {
|
|
111
111
|
circularProgress_default
|
|
112
|
-
} from "./chunk-
|
|
112
|
+
} from "./chunk-5XW5QDIW.mjs";
|
|
113
113
|
import {
|
|
114
114
|
radarChart_default
|
|
115
|
-
} from "./chunk-
|
|
115
|
+
} from "./chunk-OEFILEL3.mjs";
|
|
116
116
|
import "./chunk-QZ3LVYJW.mjs";
|
|
117
117
|
import {
|
|
118
118
|
checkbox_default
|
|
119
|
-
} from "./chunk-
|
|
119
|
+
} from "./chunk-3U5NJTRH.mjs";
|
|
120
120
|
import "./chunk-SE5TU755.mjs";
|
|
121
121
|
import {
|
|
122
122
|
backdrop_default
|
|
123
|
-
} from "./chunk-
|
|
123
|
+
} from "./chunk-IW2MDZBW.mjs";
|
|
124
124
|
import "./chunk-KYIODWXL.mjs";
|
|
125
125
|
import {
|
|
126
126
|
breadcrumb_default
|
|
127
|
-
} from "./chunk-
|
|
127
|
+
} from "./chunk-4WHX4RXX.mjs";
|
|
128
128
|
import "./chunk-MY5U63QO.mjs";
|
|
129
129
|
import {
|
|
130
130
|
text_button_default
|
|
131
|
-
} from "./chunk-
|
|
131
|
+
} from "./chunk-SDUDU3CU.mjs";
|
|
132
132
|
import {
|
|
133
133
|
button_group_default
|
|
134
|
-
} from "./chunk-
|
|
134
|
+
} from "./chunk-GUTGDPXH.mjs";
|
|
135
135
|
import {
|
|
136
136
|
button_default
|
|
137
|
-
} from "./chunk-
|
|
137
|
+
} from "./chunk-TRLIC34S.mjs";
|
|
138
138
|
import {
|
|
139
139
|
icon_button_default
|
|
140
|
-
} from "./chunk-
|
|
140
|
+
} from "./chunk-OLQJXFHU.mjs";
|
|
141
141
|
import "./chunk-6WSACUIB.mjs";
|
|
142
142
|
import "./chunk-LXHUO6VM.mjs";
|
|
143
143
|
import "./chunk-SZL743JC.mjs";
|
|
@@ -145,24 +145,24 @@ import "./chunk-ZYIIXWVY.mjs";
|
|
|
145
145
|
import {
|
|
146
146
|
Icon_default,
|
|
147
147
|
iconTemplate
|
|
148
|
-
} from "./chunk-
|
|
148
|
+
} from "./chunk-XX2PHROM.mjs";
|
|
149
149
|
import "./chunk-NMSDSEBD.mjs";
|
|
150
150
|
import {
|
|
151
151
|
accordion_default
|
|
152
|
-
} from "./chunk-
|
|
152
|
+
} from "./chunk-XL3K55LE.mjs";
|
|
153
153
|
import {
|
|
154
154
|
accordionItem_default
|
|
155
|
-
} from "./chunk-
|
|
155
|
+
} from "./chunk-CVXLLXLE.mjs";
|
|
156
156
|
import "./chunk-E3G5QXSH.mjs";
|
|
157
157
|
import "./chunk-7DLOYKVC.mjs";
|
|
158
158
|
import {
|
|
159
159
|
avatar_default
|
|
160
|
-
} from "./chunk-
|
|
161
|
-
import "./chunk-
|
|
160
|
+
} from "./chunk-BBEOPH6B.mjs";
|
|
161
|
+
import "./chunk-GQFNYXJZ.mjs";
|
|
162
162
|
import {
|
|
163
163
|
deepnoidUi,
|
|
164
164
|
tv
|
|
165
|
-
} from "./chunk-
|
|
165
|
+
} from "./chunk-76QIZILI.mjs";
|
|
166
166
|
import "./chunk-3V4HT2K5.mjs";
|
|
167
167
|
import "./chunk-27Y6K5NK.mjs";
|
|
168
168
|
import "./chunk-AC6TWLRT.mjs";
|
package/package.json
CHANGED
package/dist/chunk-QKRCC26D.mjs
DELETED
|
@@ -1,155 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import {
|
|
3
|
-
mapPropsVariants
|
|
4
|
-
} from "./chunk-E3G5QXSH.mjs";
|
|
5
|
-
import {
|
|
6
|
-
tv
|
|
7
|
-
} from "./chunk-CDXBML6O.mjs";
|
|
8
|
-
|
|
9
|
-
// src/components/charts/areaChart.tsx
|
|
10
|
-
import { forwardRef, useMemo, useState, useRef, useEffect, useId } from "react";
|
|
11
|
-
import { AreaChart, Area, XAxis, YAxis, ResponsiveContainer, CartesianGrid } from "recharts";
|
|
12
|
-
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
13
|
-
var AreaChartComponent = forwardRef((originalProps, ref) => {
|
|
14
|
-
const uniqueId = useId();
|
|
15
|
-
const [props, variantProps] = mapPropsVariants(originalProps, areaChartStyle.variantKeys);
|
|
16
|
-
const { data, label, color = "primary", classNames } = { ...props, ...variantProps };
|
|
17
|
-
const slots = useMemo(() => areaChartStyle({ ...variantProps }), [variantProps]);
|
|
18
|
-
const COLOR_MAP = {
|
|
19
|
-
primary: "#3F9CF2",
|
|
20
|
-
danger: "#FF4684"
|
|
21
|
-
};
|
|
22
|
-
const colorHex = useMemo(() => COLOR_MAP[color], [color]);
|
|
23
|
-
const [tickPositions, setTickPositions] = useState([]);
|
|
24
|
-
const tickRef = useRef([]);
|
|
25
|
-
const CustomTick = ({ x, y, payload }) => {
|
|
26
|
-
if (x !== void 0) {
|
|
27
|
-
tickRef.current.push(x);
|
|
28
|
-
}
|
|
29
|
-
return /* @__PURE__ */ jsx(
|
|
30
|
-
"text",
|
|
31
|
-
{
|
|
32
|
-
x,
|
|
33
|
-
y: y + 14,
|
|
34
|
-
textAnchor: "middle",
|
|
35
|
-
fontSize: 12,
|
|
36
|
-
fontWeight: 700,
|
|
37
|
-
fill: "currentColor",
|
|
38
|
-
className: "text-body-foreground",
|
|
39
|
-
children: payload.value
|
|
40
|
-
}
|
|
41
|
-
);
|
|
42
|
-
};
|
|
43
|
-
useEffect(() => {
|
|
44
|
-
const raf = requestAnimationFrame(() => {
|
|
45
|
-
const unique = [...new Set(tickRef.current)].sort((a, b) => a - b);
|
|
46
|
-
const mids = [];
|
|
47
|
-
for (let i = 0; i < unique.length - 1; i++) {
|
|
48
|
-
mids.push((unique[i] + unique[i + 1]) / 2);
|
|
49
|
-
}
|
|
50
|
-
setTickPositions(mids);
|
|
51
|
-
tickRef.current = [];
|
|
52
|
-
});
|
|
53
|
-
return () => cancelAnimationFrame(raf);
|
|
54
|
-
}, [data]);
|
|
55
|
-
const CustomDotWithShadow = (props2) => {
|
|
56
|
-
const { cx, cy, fill, stroke } = props2;
|
|
57
|
-
if (cx === void 0 || cy === void 0) return null;
|
|
58
|
-
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
59
|
-
/* @__PURE__ */ jsx("circle", { cx, cy, r: 8, fill, opacity: 0.2 }),
|
|
60
|
-
/* @__PURE__ */ jsx("circle", { cx, cy, r: 3.5, fill, stroke, strokeWidth: 2 })
|
|
61
|
-
] });
|
|
62
|
-
};
|
|
63
|
-
return /* @__PURE__ */ jsxs("div", { ref, className: slots.base({ class: classNames == null ? void 0 : classNames.base }), children: [
|
|
64
|
-
label && /* @__PURE__ */ jsx("p", { className: slots.label({ class: classNames == null ? void 0 : classNames.label }), children: label }),
|
|
65
|
-
/* @__PURE__ */ jsx(ResponsiveContainer, { width: "100%", height: "100%", children: /* @__PURE__ */ jsxs(
|
|
66
|
-
AreaChart,
|
|
67
|
-
{
|
|
68
|
-
data,
|
|
69
|
-
margin: { left: -30 },
|
|
70
|
-
className: "[&_.recharts-surface]:outline-none [&_.recharts-surface]:focus:outline-none",
|
|
71
|
-
children: [
|
|
72
|
-
/* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsxs("linearGradient", { id: `colorGradient-${uniqueId}`, x1: "0", y1: "0", x2: "0", y2: "1", children: [
|
|
73
|
-
/* @__PURE__ */ jsx("stop", { offset: "5%", stopColor: colorHex, stopOpacity: 0.3 }),
|
|
74
|
-
/* @__PURE__ */ jsx("stop", { offset: "95%", stopColor: colorHex, stopOpacity: 0 })
|
|
75
|
-
] }) }),
|
|
76
|
-
/* @__PURE__ */ jsx(
|
|
77
|
-
CartesianGrid,
|
|
78
|
-
{
|
|
79
|
-
vertical: true,
|
|
80
|
-
horizontal: false,
|
|
81
|
-
strokeDasharray: "3 3",
|
|
82
|
-
className: "stroke-neutral-light",
|
|
83
|
-
verticalPoints: tickPositions
|
|
84
|
-
}
|
|
85
|
-
),
|
|
86
|
-
/* @__PURE__ */ jsx(
|
|
87
|
-
XAxis,
|
|
88
|
-
{
|
|
89
|
-
dataKey: "name",
|
|
90
|
-
axisLine: { stroke: "#DFE2E7", strokeWidth: 1 },
|
|
91
|
-
tickLine: false,
|
|
92
|
-
tick: CustomTick,
|
|
93
|
-
padding: { left: 35.5, right: 35.5 }
|
|
94
|
-
}
|
|
95
|
-
),
|
|
96
|
-
/* @__PURE__ */ jsx(
|
|
97
|
-
YAxis,
|
|
98
|
-
{
|
|
99
|
-
axisLine: { stroke: "#DFE2E7", strokeWidth: 1 },
|
|
100
|
-
tickLine: false,
|
|
101
|
-
tick: {
|
|
102
|
-
fontSize: 12,
|
|
103
|
-
fontWeight: 700,
|
|
104
|
-
fill: "text-body-foreground",
|
|
105
|
-
textAnchor: "middle",
|
|
106
|
-
dx: -10
|
|
107
|
-
},
|
|
108
|
-
ticks: [0, 20, 40, 60, 80, 100],
|
|
109
|
-
domain: [-6, 110]
|
|
110
|
-
}
|
|
111
|
-
),
|
|
112
|
-
/* @__PURE__ */ jsx(
|
|
113
|
-
Area,
|
|
114
|
-
{
|
|
115
|
-
type: "monotone",
|
|
116
|
-
dataKey: "value",
|
|
117
|
-
stroke: colorHex,
|
|
118
|
-
strokeWidth: 2,
|
|
119
|
-
fill: `url(#colorGradient-${uniqueId})`,
|
|
120
|
-
dot: /* @__PURE__ */ jsx(CustomDotWithShadow, { stroke: colorHex, fill: colorHex }),
|
|
121
|
-
activeDot: { r: 7, fill: colorHex }
|
|
122
|
-
}
|
|
123
|
-
)
|
|
124
|
-
]
|
|
125
|
-
}
|
|
126
|
-
) })
|
|
127
|
-
] });
|
|
128
|
-
});
|
|
129
|
-
AreaChartComponent.displayName = "AreaChart";
|
|
130
|
-
var areaChart_default = AreaChartComponent;
|
|
131
|
-
var areaChartStyle = tv({
|
|
132
|
-
slots: {
|
|
133
|
-
base: ["flex", "flex-col", "gap-[10px]", "select-none"],
|
|
134
|
-
color: [],
|
|
135
|
-
axis: ["text-sm", "font-bold", "text-center", "text-body-foreground"],
|
|
136
|
-
label: ["text-md", "font-bold", "text-body-foreground"]
|
|
137
|
-
},
|
|
138
|
-
variants: {
|
|
139
|
-
color: {
|
|
140
|
-
primary: {
|
|
141
|
-
color: ["text-primary-main"]
|
|
142
|
-
},
|
|
143
|
-
danger: {
|
|
144
|
-
color: ["text-danger-main"]
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
},
|
|
148
|
-
defaultVariants: {
|
|
149
|
-
color: "primary"
|
|
150
|
-
}
|
|
151
|
-
});
|
|
152
|
-
|
|
153
|
-
export {
|
|
154
|
-
areaChart_default
|
|
155
|
-
};
|