@deepnoid/ui 0.1.160 → 0.1.162

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.
@@ -1,6 +1,6 @@
1
1
  yarn run v1.22.22
2
2
  $ cross-env NODE_OPTIONS=--max-old-space-size=8192 tsup src --dts && yarn copy:font
3
- CLI Building entry: src/index.ts, src/fonts/NanumSquare_acB.ttf, src/fonts/NanumSquare_acEB.ttf, src/fonts/NanumSquare_acL.ttf, src/fonts/NanumSquare_acR.ttf, src/fonts/font.css, src/hooks/useIsMounted.ts, src/utils/clsx.ts, src/utils/props.ts, src/utils/tailwind-variants.ts, src/utils/types.ts, src/components/accordion/accordion.tsx, src/components/accordion/accordionItem.tsx, src/components/accordion/index.ts, src/components/avatar/avatar.tsx, src/components/avatar/index.ts, src/components/backdrop/backdrop.tsx, src/components/backdrop/index.ts, src/components/breadcrumb/breadcrumb.tsx, src/components/breadcrumb/index.ts, src/components/button/button-group.tsx, src/components/button/button.tsx, src/components/button/icon-button.tsx, src/components/button/index.ts, src/components/button/text-button.tsx, src/components/charts/areaChart.tsx, src/components/charts/barChart.tsx, src/components/charts/circularProgress.tsx, src/components/charts/index.ts, src/components/charts/radarChart.tsx, src/components/checkbox/checkbox.tsx, src/components/checkbox/index.tsx, src/components/chip/chip.tsx, src/components/chip/index.ts, src/components/drawer/drawer.tsx, src/components/drawer/index.ts, src/components/fileUpload/fileUpload.tsx, src/components/fileUpload/index.ts, src/components/icon/Icon.tsx, src/components/icon/index.ts, src/components/icon/template.tsx, src/components/input/index.ts, src/components/input/input.tsx, src/components/list/index.ts, src/components/list/list.tsx, src/components/list/listItem.tsx, src/components/modal/index.ts, src/components/modal/modal.tsx, src/components/pagination/index.ts, src/components/pagination/pagination.tsx, src/components/pagination/usePagination.ts, src/components/picker/datePicker.tsx, src/components/picker/day.tsx, src/components/picker/index.ts, src/components/picker/timePicker.tsx, src/components/picker/utils.ts, src/components/progress/index.ts, src/components/progress/progress.tsx, src/components/radio/index.ts, src/components/radio/radio.tsx, src/components/ripple/index.ts, src/components/ripple/ripple.tsx, src/components/ripple/useRipple.ts, src/components/scroll/index.ts, src/components/scroll/scrollArea.tsx, src/components/select/index.ts, src/components/select/select.tsx, src/components/skeleton/index.ts, src/components/skeleton/skeleton.tsx, src/components/starRating/index.ts, src/components/starRating/starRating.tsx, src/components/switch/index.ts, src/components/switch/switch.tsx, src/components/table/definition-table.tsx, src/components/table/form-table.tsx, src/components/table/index.ts, src/components/table/table-body.tsx, src/components/table/table-head.tsx, src/components/table/table.tsx, src/components/tabs/index.ts, src/components/tabs/tabs.tsx, src/components/textarea/index.ts, src/components/textarea/textarea.tsx, src/components/timePicker/calendar.tsx, src/components/timePicker/useDateTimePicker.tsx, src/components/toast/index.ts, src/components/toast/toast-utils.ts, src/components/toast/toast.tsx, src/components/toast/use-toast.tsx, src/components/tooltip/index.ts, src/components/tooltip/tooltip-utils.ts, src/components/tooltip/tooltip.tsx, src/components/tooltip/useTooltip.ts, src/components/tree/index.ts, src/components/tree/tree.tsx
3
+ CLI Building entry: src/index.ts, src/hooks/useIsMounted.ts, src/fonts/NanumSquare_acB.ttf, src/fonts/NanumSquare_acEB.ttf, src/fonts/NanumSquare_acL.ttf, src/fonts/NanumSquare_acR.ttf, src/fonts/font.css, src/utils/clsx.ts, src/utils/props.ts, src/utils/tailwind-variants.ts, src/utils/types.ts, src/components/accordion/accordion.tsx, src/components/accordion/accordionItem.tsx, src/components/accordion/index.ts, src/components/avatar/avatar.tsx, src/components/avatar/index.ts, src/components/backdrop/backdrop.tsx, src/components/backdrop/index.ts, src/components/breadcrumb/breadcrumb.tsx, src/components/breadcrumb/index.ts, src/components/button/button-group.tsx, src/components/button/button.tsx, src/components/button/icon-button.tsx, src/components/button/index.ts, src/components/button/text-button.tsx, src/components/charts/areaChart.tsx, src/components/charts/barChart.tsx, src/components/charts/circularProgress.tsx, src/components/charts/index.ts, src/components/charts/radarChart.tsx, src/components/checkbox/checkbox.tsx, src/components/checkbox/index.tsx, src/components/chip/chip.tsx, src/components/chip/index.ts, src/components/drawer/drawer.tsx, src/components/drawer/index.ts, src/components/fileUpload/fileUpload.tsx, src/components/fileUpload/index.ts, src/components/icon/Icon.tsx, src/components/icon/index.ts, src/components/icon/template.tsx, src/components/input/index.ts, src/components/input/input.tsx, src/components/list/index.ts, src/components/list/list.tsx, src/components/list/listItem.tsx, src/components/modal/index.ts, src/components/modal/modal.tsx, src/components/pagination/index.ts, src/components/pagination/pagination.tsx, src/components/pagination/usePagination.ts, src/components/picker/datePicker.tsx, src/components/picker/day.tsx, src/components/picker/index.ts, src/components/picker/timePicker.tsx, src/components/picker/utils.ts, src/components/progress/index.ts, src/components/progress/progress.tsx, src/components/radio/index.ts, src/components/radio/radio.tsx, src/components/ripple/index.ts, src/components/ripple/ripple.tsx, src/components/ripple/useRipple.ts, src/components/scroll/index.ts, src/components/scroll/scrollArea.tsx, src/components/select/index.ts, src/components/select/select.tsx, src/components/skeleton/index.ts, src/components/skeleton/skeleton.tsx, src/components/starRating/index.ts, src/components/starRating/starRating.tsx, src/components/switch/index.ts, src/components/switch/switch.tsx, src/components/table/definition-table.tsx, src/components/table/form-table.tsx, src/components/table/index.ts, src/components/table/table-body.tsx, src/components/table/table-head.tsx, src/components/table/table.tsx, src/components/tabs/index.ts, src/components/tabs/tabs.tsx, src/components/textarea/index.ts, src/components/textarea/textarea.tsx, src/components/timePicker/calendar.tsx, src/components/timePicker/useDateTimePicker.tsx, src/components/toast/index.ts, src/components/toast/toast-utils.ts, src/components/toast/toast.tsx, src/components/toast/use-toast.tsx, src/components/tooltip/index.ts, src/components/tooltip/tooltip-utils.ts, src/components/tooltip/tooltip.tsx, src/components/tooltip/useTooltip.ts, src/components/tree/index.ts, src/components/tree/tree.tsx
4
4
  CLI Using tsconfig: tsconfig.json
5
5
  CLI tsup v8.4.0
6
6
  CLI Using tsup config: /builds/front/deepnoid-ui/packages/ui/tsup.config.ts
@@ -12,292 +12,292 @@ $ cross-env NODE_OPTIONS=--max-old-space-size=8192 tsup src --dts && yarn copy:f
12
12
  ESM dist/utils/props.mjs 137.00 B
13
13
  ESM dist/fonts/NanumSquare_acB.mjs 194.00 B
14
14
  ESM dist/hooks/useIsMounted.mjs 129.00 B
15
- ESM dist/index.mjs 5.04 KB
16
15
  ESM dist/chunk-ZMOAFSYE.mjs 1.43 KB
17
- ESM dist/chunk-WSIADHVC.mjs 3.80 KB
16
+ ESM dist/index.mjs 5.08 KB
18
17
  ESM dist/chunk-HIE2YRGA.mjs 14.00 B
19
- ESM dist/chunk-MBLZYQCN.mjs 14.00 B
18
+ ESM dist/chunk-5KC3IFNR.mjs 4.21 KB
19
+ ESM dist/chunk-WSIADHVC.mjs 3.80 KB
20
20
  ESM dist/chunk-WSBUOY2M.mjs 5.53 KB
21
+ ESM dist/chunk-MBLZYQCN.mjs 14.00 B
21
22
  ESM dist/chunk-RRAZM5D3.mjs 14.00 B
23
+ ESM dist/chunk-LUWGOKLG.mjs 14.00 B
24
+ ESM dist/chunk-EQLBG32V.mjs 2.58 KB
22
25
  ESM dist/chunk-3CRSSRCH.mjs 9.13 KB
23
26
  ESM dist/chunk-ZOTHPHXA.mjs 857.00 B
24
- ESM dist/chunk-5KC3IFNR.mjs 4.21 KB
25
- ESM dist/chunk-EQLBG32V.mjs 2.58 KB
26
- ESM dist/chunk-LUWGOKLG.mjs 14.00 B
27
27
  ESM dist/chunk-DX3KXNP6.mjs 14.00 B
28
28
  ESM dist/chunk-6574ITBF.mjs 4.10 KB
29
29
  ESM dist/chunk-3MY6LO7N.mjs 14.00 B
30
- ESM dist/chunk-PX4RCHOE.mjs 14.66 KB
31
30
  ESM dist/chunk-DS5CGU2X.mjs 4.12 KB
32
- ESM dist/utils/tailwind-variants.mjs 109.00 B
33
31
  ESM dist/chunk-DW3BX4M2.mjs 6.13 KB
34
32
  ESM dist/chunk-MZ76AA76.mjs 14.00 B
35
- ESM dist/utils/types.mjs 14.00 B
33
+ ESM dist/chunk-PX4RCHOE.mjs 14.66 KB
34
+ ESM dist/chunk-6PN3DGOE.mjs 1.78 KB
36
35
  ESM dist/chunk-INRA6IED.mjs 3.49 KB
37
- ESM dist/chunk-OLQOLLKG.mjs 14.00 B
38
36
  ESM dist/chunk-LVFI2NOH.mjs 14.00 B
39
- ESM dist/chunk-TPFN22HR.mjs 14.00 B
40
- ESM dist/NanumSquare_acB-VMSVRKSM.ttf 625.04 KB
41
- ESM dist/chunk-AGE57VDD.mjs 4.16 KB
42
37
  ESM dist/chunk-7B7LRG5J.mjs 14.00 B
38
+ ESM dist/chunk-AGE57VDD.mjs 4.16 KB
39
+ ESM dist/chunk-TPFN22HR.mjs 14.00 B
43
40
  ESM dist/chunk-PRNE3U26.mjs 5.65 KB
44
- ESM dist/chunk-4VWG4726.mjs 14.00 B
41
+ ESM dist/chunk-WLTBJF4I.mjs 10.24 KB
42
+ ESM dist/chunk-OLQOLLKG.mjs 14.00 B
45
43
  ESM dist/chunk-F3HENRVM.mjs 934.00 B
44
+ ESM dist/chunk-4VWG4726.mjs 14.00 B
45
+ ESM dist/chunk-BM3MR3JR.mjs 12.45 KB
46
46
  ESM dist/chunk-XZYQFBCT.mjs 1.51 KB
47
47
  ESM dist/chunk-QCEKPS7U.mjs 14.00 B
48
- ESM dist/chunk-6PN3DGOE.mjs 1.78 KB
49
- ESM dist/chunk-WLTBJF4I.mjs 10.24 KB
50
- ESM dist/chunk-7MVEAQ7Z.mjs 14.00 B
51
48
  ESM dist/chunk-NJFJJIWK.mjs 18.32 KB
52
- ESM dist/chunk-HKLVFMYQ.mjs 7.20 KB
53
49
  ESM dist/chunk-FWFEKWWD.mjs 437.00 B
54
- ESM dist/chunk-BM3MR3JR.mjs 12.45 KB
50
+ ESM dist/chunk-7MVEAQ7Z.mjs 14.00 B
51
+ ESM dist/chunk-NGRGAY42.mjs 1.27 KB
52
+ ESM dist/utils/tailwind-variants.mjs 109.00 B
53
+ ESM dist/chunk-HKLVFMYQ.mjs 7.20 KB
55
54
  ESM dist/chunk-5G6CCE55.mjs 15.68 KB
56
55
  ESM dist/chunk-DJOG6Z35.mjs 14.00 B
56
+ ESM dist/utils/types.mjs 14.00 B
57
57
  ESM dist/chunk-MGEWSREV.mjs 14.00 B
58
- ESM dist/chunk-SCQCMQDP.mjs 4.67 KB
59
58
  ESM dist/chunk-32GA3YW4.mjs 14.00 B
59
+ ESM dist/chunk-SCQCMQDP.mjs 4.67 KB
60
60
  ESM dist/chunk-2B3HDC26.mjs 4.03 KB
61
61
  ESM dist/chunk-45Y7ANPK.mjs 5.03 KB
62
62
  ESM dist/chunk-RLXOHILK.mjs 14.00 B
63
+ ESM dist/chunk-OOX5X2MN.mjs 4.55 KB
63
64
  ESM dist/chunk-7VOQKIIK.mjs 14.00 B
64
- ESM dist/chunk-NGRGAY42.mjs 1.27 KB
65
- ESM dist/chunk-KH63CD55.mjs 3.75 KB
65
+ ESM dist/chunk-VYNBJBXD.mjs 14.00 B
66
66
  ESM dist/chunk-2GCSFWHD.mjs 14.00 B
67
- ESM dist/chunk-OOX5X2MN.mjs 4.55 KB
67
+ ESM dist/chunk-KH63CD55.mjs 3.75 KB
68
+ ESM dist/chunk-DQRAFUDA.mjs 14.00 B
68
69
  ESM dist/chunk-ARNMOGRH.mjs 6.32 KB
69
70
  ESM dist/chunk-EWS3FESG.mjs 1.03 KB
70
- ESM dist/chunk-VYNBJBXD.mjs 14.00 B
71
- ESM dist/chunk-DQRAFUDA.mjs 14.00 B
72
- ESM dist/chunk-553TGKS6.mjs 4.65 KB
73
- ESM dist/chunk-U7SYKG2C.mjs 4.33 KB
74
- ESM dist/chunk-QZ3LVYJW.mjs 14.00 B
71
+ ESM dist/NanumSquare_acB-VMSVRKSM.ttf 625.04 KB
75
72
  ESM dist/chunk-VNRGOOSY.mjs 13.42 KB
76
- ESM dist/chunk-YQGN2DER.mjs 7.07 KB
73
+ ESM dist/chunk-BRVQTI2T.mjs 8.34 KB
74
+ ESM dist/chunk-U7SYKG2C.mjs 4.33 KB
75
+ ESM dist/chunk-553TGKS6.mjs 4.65 KB
77
76
  ESM dist/chunk-SE5TU755.mjs 14.00 B
78
77
  ESM dist/chunk-OEIEALIP.mjs 6.54 KB
79
78
  ESM dist/chunk-IH3BJRTV.mjs 778.00 B
80
79
  ESM dist/chunk-KYIODWXL.mjs 14.00 B
80
+ ESM dist/chunk-4LUASWAN.mjs 4.40 KB
81
81
  ESM dist/chunk-6DOAZ27E.mjs 2.87 KB
82
82
  ESM dist/chunk-5VTYO3RF.mjs 724.00 B
83
83
  ESM dist/chunk-MY5U63QO.mjs 14.00 B
84
- ESM dist/chunk-4LUASWAN.mjs 4.40 KB
85
- ESM dist/chunk-AKAGWXXP.mjs 9.36 KB
86
84
  ESM dist/chunk-LXHUO6VM.mjs 1.49 KB
87
- ESM dist/chunk-6WSACUIB.mjs 14.00 B
88
- ESM dist/chunk-DO56H4BN.mjs 12.17 KB
85
+ ESM dist/chunk-QZ3LVYJW.mjs 14.00 B
89
86
  ESM dist/chunk-SZL743JC.mjs 1.00 KB
90
- ESM dist/chunk-NMSDSEBD.mjs 14.00 B
91
- ESM dist/chunk-R7KUEH3N.mjs 929.00 B
87
+ ESM dist/chunk-DO56H4BN.mjs 12.17 KB
92
88
  ESM dist/chunk-ZYIIXWVY.mjs 14.00 B
93
- ESM dist/chunk-7DLOYKVC.mjs 14.00 B
89
+ ESM dist/chunk-6WSACUIB.mjs 14.00 B
90
+ ESM dist/chunk-NMSDSEBD.mjs 14.00 B
94
91
  ESM dist/chunk-E3G5QXSH.mjs 608.00 B
95
- ESM dist/chunk-CPFFP7L6.mjs 2.01 KB
96
- ESM dist/chunk-VO332GRO.mjs 1.65 KB
92
+ ESM dist/chunk-R7KUEH3N.mjs 929.00 B
97
93
  ESM dist/chunk-DU7L4GA7.mjs 6.02 KB
98
- ESM dist/fonts/NanumSquare_acEB.mjs 198.00 B
99
- ESM dist/fonts/font.css 777.00 B
100
- ESM dist/fonts/NanumSquare_acL.mjs 194.00 B
101
- ESM dist/chunk-3V4HT2K5.mjs 837.00 B
94
+ ESM dist/chunk-AKAGWXXP.mjs 9.36 KB
95
+ ESM dist/utils/clsx.mjs 113.00 B
96
+ ESM dist/chunk-VO332GRO.mjs 1.65 KB
97
+ ESM dist/chunk-CPFFP7L6.mjs 2.01 KB
102
98
  ESM dist/chunk-27Y6K5NK.mjs 823.00 B
103
- ESM dist/chunk-U4DJHAM5.mjs 15.38 KB
99
+ ESM dist/chunk-7DLOYKVC.mjs 14.00 B
104
100
  ESM dist/chunk-AC6TWLRT.mjs 1.34 KB
101
+ ESM dist/fonts/font.css 777.00 B
102
+ ESM dist/fonts/NanumSquare_acEB.mjs 198.00 B
103
+ ESM dist/chunk-3V4HT2K5.mjs 837.00 B
105
104
  ESM dist/fonts/NanumSquare_acR.mjs 194.00 B
106
- ESM dist/utils/clsx.mjs 113.00 B
105
+ ESM dist/fonts/NanumSquare_acL.mjs 194.00 B
106
+ ESM dist/chunk-U4DJHAM5.mjs 15.38 KB
107
107
  ESM dist/NanumSquare_acR-RZCHPXSJ.ttf 631.56 KB
108
108
  ESM dist/NanumSquare_acEB-HRZ3QLG2.ttf 618.41 KB
109
109
  ESM dist/NanumSquare_acL-FSAAP5CK.ttf 642.08 KB
110
110
  ESM dist/components/toast/use-toast.mjs 441.00 B
111
- ESM dist/components/tooltip/tooltip-utils.mjs 221.00 B
111
+ ESM dist/components/textarea/index.mjs 260.00 B
112
+ ESM dist/components/tooltip/useTooltip.mjs 166.00 B
112
113
  ESM dist/components/tree/index.mjs 353.00 B
114
+ ESM dist/chunk-DDFJMHBC.mjs 760.18 KB
115
+ ESM dist/components/table/definition-table.mjs 240.00 B
113
116
  ESM dist/components/tabs/tabs.mjs 232.00 B
114
- ESM dist/components/switch/switch.mjs 185.00 B
115
117
  ESM dist/components/timePicker/useDateTimePicker.mjs 3.37 KB
118
+ ESM dist/components/select/index.mjs 394.00 B
116
119
  ESM dist/components/scroll/scrollArea.mjs 193.00 B
117
- ESM dist/components/select/select.mjs 360.00 B
118
- ESM dist/components/skeleton/index.mjs 225.00 B
119
- ESM dist/components/starRating/starRating.mjs 371.00 B
120
- ESM dist/components/progress/index.mjs 295.00 B
121
- ESM dist/components/radio/index.mjs 286.00 B
120
+ ESM dist/components/starRating/index.mjs 371.00 B
121
+ ESM dist/components/skeleton/skeleton.mjs 189.00 B
122
122
  ESM dist/components/ripple/index.mjs 253.00 B
123
+ ESM dist/components/radio/radio.mjs 253.00 B
123
124
  ESM dist/components/pagination/index.mjs 511.00 B
124
- ESM dist/chunk-DDFJMHBC.mjs 760.18 KB
125
125
  ESM dist/components/picker/day.mjs 238.00 B
126
- ESM dist/components/table/definition-table.mjs 240.00 B
126
+ ESM dist/components/input/index.mjs 391.00 B
127
127
  ESM dist/components/icon/template.mjs 127.00 B
128
- ESM dist/components/input/input.mjs 386.00 B
129
- ESM dist/components/textarea/index.mjs 260.00 B
130
- ESM dist/components/fileUpload/fileUpload.mjs 889.00 B
131
128
  ESM dist/components/list/list.mjs 216.00 B
132
- ESM dist/components/chip/index.mjs 353.00 B
133
129
  ESM dist/components/modal/index.mjs 741.00 B
130
+ ESM dist/components/switch/switch.mjs 185.00 B
131
+ ESM dist/components/chip/index.mjs 353.00 B
134
132
  ESM dist/components/drawer/drawer.mjs 255.00 B
135
- ESM dist/components/button/text-button.mjs 265.00 B
133
+ ESM dist/components/fileUpload/fileUpload.mjs 889.00 B
136
134
  ESM dist/components/checkbox/checkbox.mjs 259.00 B
135
+ ESM dist/components/button/text-button.mjs 265.00 B
137
136
  ESM dist/components/charts/areaChart.mjs 331.00 B
138
- ESM dist/components/backdrop/index.mjs 260.00 B
139
- ESM dist/components/breadcrumb/breadcrumb.mjs 648.00 B
140
- ESM dist/components/accordion/accordion.mjs 226.00 B
137
+ ESM dist/components/progress/index.mjs 295.00 B
138
+ ESM dist/components/breadcrumb/index.mjs 686.00 B
139
+ ESM dist/components/backdrop/backdrop.mjs 224.00 B
140
+ ESM dist/components/accordion/accordionItem.mjs 234.00 B
141
141
  ESM dist/components/avatar/index.mjs 254.00 B
142
- ESM dist/components/tooltip/index.mjs 327.00 B
143
- ESM dist/components/tooltip/useTooltip.mjs 166.00 B
144
- ESM dist/components/tooltip/tooltip.mjs 292.00 B
145
142
  ESM dist/components/tree/tree.mjs 337.00 B
143
+ ESM dist/components/tooltip/index.mjs 327.00 B
144
+ ESM dist/components/toast/index.mjs 527.00 B
146
145
  ESM dist/components/textarea/textarea.mjs 224.00 B
147
146
  ESM dist/components/timePicker/calendar.mjs 11.09 KB
148
- ESM dist/components/toast/index.mjs 527.00 B
149
147
  ESM dist/components/toast/toast.mjs 358.00 B
150
- ESM dist/components/table/table-body.mjs 683.00 B
151
- ESM dist/components/table/table-head.mjs 683.00 B
152
148
  ESM dist/components/toast/toast-utils.mjs 143.00 B
149
+ ESM dist/components/table/table.mjs 705.00 B
150
+ ESM dist/components/table/table-body.mjs 683.00 B
151
+ ESM dist/components/tabs/index.mjs 248.00 B
153
152
  ESM dist/components/table/index.mjs 824.00 B
154
153
  ESM dist/components/table/form-table.mjs 1.92 KB
155
- ESM dist/components/tabs/index.mjs 248.00 B
156
- ESM dist/components/select/index.mjs 394.00 B
157
- ESM dist/components/skeleton/skeleton.mjs 189.00 B
158
- ESM dist/components/starRating/index.mjs 371.00 B
154
+ ESM dist/components/table/table-head.mjs 683.00 B
155
+ ESM dist/components/select/select.mjs 360.00 B
156
+ ESM dist/components/skeleton/index.mjs 225.00 B
159
157
  ESM dist/components/switch/index.mjs 219.00 B
160
- ESM dist/components/table/table.mjs 705.00 B
161
- ESM dist/components/radio/radio.mjs 253.00 B
162
- ESM dist/components/progress/progress.mjs 259.00 B
158
+ ESM dist/components/starRating/starRating.mjs 371.00 B
163
159
  ESM dist/components/ripple/useRipple.mjs 158.00 B
164
160
  ESM dist/components/ripple/ripple.mjs 150.00 B
165
- ESM dist/components/scroll/index.mjs 231.00 B
166
161
  ESM dist/components/pagination/pagination.mjs 473.00 B
162
+ ESM dist/components/radio/index.mjs 286.00 B
163
+ ESM dist/components/scroll/index.mjs 231.00 B
167
164
  ESM dist/components/pagination/usePagination.mjs 164.00 B
168
- ESM dist/components/picker/timePicker.mjs 476.00 B
165
+ ESM dist/components/tooltip/tooltip.mjs 292.00 B
169
166
  ESM dist/components/picker/utils.mjs 191.00 B
170
167
  ESM dist/components/picker/datePicker.mjs 826.00 B
171
- ESM dist/components/input/index.mjs 391.00 B
168
+ ESM dist/components/picker/timePicker.mjs 476.00 B
172
169
  ESM dist/components/picker/index.mjs 1.02 KB
170
+ ESM dist/components/progress/progress.mjs 259.00 B
171
+ ESM dist/components/tooltip/tooltip-utils.mjs 221.00 B
172
+ ESM dist/components/list/index.mjs 483.00 B
173
+ ESM dist/components/input/input.mjs 386.00 B
173
174
  ESM dist/components/list/listItem.mjs 364.00 B
174
- ESM dist/components/modal/modal.mjs 708.00 B
175
+ ESM dist/components/chip/chip.mjs 321.00 B
176
+ ESM dist/components/icon/index.mjs 245.00 B
175
177
  ESM dist/components/drawer/index.mjs 289.00 B
176
178
  ESM dist/components/fileUpload/index.mjs 861.00 B
177
- ESM dist/components/chip/chip.mjs 321.00 B
179
+ ESM dist/components/modal/modal.mjs 708.00 B
178
180
  ESM dist/components/icon/Icon.mjs 213.00 B
179
- ESM dist/components/charts/index.mjs 683.00 B
180
- ESM dist/components/list/index.mjs 483.00 B
181
- ESM dist/components/charts/barChart.mjs 224.00 B
182
- ESM dist/components/checkbox/index.mjs 295.00 B
181
+ ESM dist/components/charts/circularProgress.mjs 240.00 B
182
+ ESM dist/components/charts/barChart.mjs 262.00 B
183
183
  ESM dist/components/charts/radarChart.mjs 228.00 B
184
- ESM dist/components/backdrop/backdrop.mjs 224.00 B
185
- ESM dist/components/button/button.mjs 430.00 B
186
- ESM dist/components/breadcrumb/index.mjs 686.00 B
187
- ESM dist/components/accordion/accordionItem.mjs 234.00 B
188
- ESM dist/components/accordion/index.mjs 373.00 B
189
- ESM dist/components/button/icon-button.mjs 440.00 B
184
+ ESM dist/components/backdrop/index.mjs 260.00 B
185
+ ESM dist/components/charts/index.mjs 721.00 B
186
+ ESM dist/components/checkbox/index.mjs 295.00 B
190
187
  ESM dist/components/button/index.mjs 811.00 B
191
- ESM dist/components/avatar/avatar.mjs 220.00 B
192
188
  ESM dist/components/button/button-group.mjs 197.00 B
193
- ESM dist/components/charts/circularProgress.mjs 240.00 B
194
- ESM dist/components/icon/index.mjs 245.00 B
195
- ESM ⚡️ Build success in 376ms
189
+ ESM dist/components/button/icon-button.mjs 440.00 B
190
+ ESM dist/components/button/button.mjs 430.00 B
191
+ ESM dist/components/accordion/accordion.mjs 226.00 B
192
+ ESM dist/components/avatar/avatar.mjs 220.00 B
193
+ ESM dist/components/accordion/index.mjs 373.00 B
194
+ ESM dist/components/breadcrumb/breadcrumb.mjs 648.00 B
195
+ ESM ⚡️ Build success in 401ms
196
196
  CJS dist/fonts/NanumSquare_acB.js 113.00 B
197
197
  CJS dist/fonts/NanumSquare_acEB.js 116.00 B
198
- CJS dist/fonts/NanumSquare_acL.js 113.00 B
199
- CJS dist/fonts/NanumSquare_acR.js 113.00 B
200
198
  CJS dist/hooks/useIsMounted.js 1.87 KB
201
- CJS dist/utils/props.js 1.59 KB
202
- CJS dist/utils/tailwind-variants.js 8.79 KB
199
+ CJS dist/fonts/NanumSquare_acL.js 113.00 B
203
200
  CJS dist/utils/clsx.js 1.77 KB
204
- CJS dist/utils/types.js 778.00 B
205
- CJS dist/components/accordion/accordionItem.js 15.37 KB
201
+ CJS dist/fonts/NanumSquare_acR.js 113.00 B
206
202
  CJS dist/components/accordion/accordion.js 11.25 KB
203
+ CJS dist/components/accordion/accordionItem.js 15.37 KB
207
204
  CJS dist/components/accordion/index.js 17.53 KB
205
+ CJS dist/utils/props.js 1.59 KB
206
+ CJS dist/utils/types.js 778.00 B
207
+ CJS dist/utils/tailwind-variants.js 8.79 KB
208
208
  CJS dist/components/backdrop/backdrop.js 10.19 KB
209
209
  CJS dist/components/backdrop/index.js 10.33 KB
210
210
  CJS dist/fonts/font.css 777.00 B
211
211
  CJS dist/components/button/button-group.js 9.45 KB
212
212
  CJS dist/components/button/text-button.js 14.35 KB
213
213
  CJS dist/components/charts/areaChart.js 17.94 KB
214
- CJS dist/components/charts/barChart.js 16.95 KB
215
214
  CJS dist/components/charts/circularProgress.js 14.22 KB
215
+ CJS dist/components/charts/barChart.js 18.42 KB
216
216
  CJS dist/components/charts/radarChart.js 13.85 KB
217
+ CJS dist/components/charts/index.js 36.85 KB
217
218
  CJS dist/components/checkbox/checkbox.js 16.64 KB
218
219
  CJS dist/components/checkbox/index.js 16.78 KB
219
- CJS dist/components/charts/index.js 35.46 KB
220
220
  CJS dist/components/drawer/drawer.js 15.10 KB
221
221
  CJS dist/components/drawer/index.js 15.23 KB
222
222
  CJS dist/components/list/list.js 10.46 KB
223
223
  CJS dist/components/pagination/usePagination.js 1.88 KB
224
224
  CJS dist/components/picker/day.js 10.81 KB
225
+ CJS dist/components/picker/utils.js 1.47 KB
225
226
  CJS dist/components/progress/progress.js 13.77 KB
226
- CJS dist/components/radio/index.js 15.85 KB
227
+ CJS dist/components/radio/radio.js 15.72 KB
227
228
  CJS dist/components/ripple/index.js 3.66 KB
229
+ CJS dist/components/radio/index.js 15.85 KB
228
230
  CJS dist/components/ripple/ripple.js 2.57 KB
229
231
  CJS dist/components/ripple/useRipple.js 2.04 KB
230
- CJS dist/components/radio/radio.js 15.72 KB
231
- CJS dist/components/scroll/scrollArea.js 2.78 KB
232
232
  CJS dist/components/scroll/index.js 2.90 KB
233
+ CJS dist/components/scroll/scrollArea.js 2.78 KB
234
+ CJS dist/components/progress/index.js 13.91 KB
233
235
  CJS dist/components/skeleton/index.js 3.68 KB
234
236
  CJS dist/components/skeleton/skeleton.js 3.54 KB
235
237
  CJS dist/components/switch/index.js 5.90 KB
236
238
  CJS dist/components/table/definition-table.js 13.78 KB
237
- CJS dist/components/table/form-table.js 10.78 KB
238
239
  CJS dist/components/switch/switch.js 5.77 KB
239
- CJS dist/components/tabs/tabs.js 15.59 KB
240
- CJS dist/components/tabs/index.js 15.60 KB
240
+ CJS dist/components/table/form-table.js 10.78 KB
241
241
  CJS dist/components/textarea/index.js 11.72 KB
242
242
  CJS dist/components/textarea/textarea.js 11.58 KB
243
243
  CJS dist/components/timePicker/useDateTimePicker.js 4.81 KB
244
244
  CJS dist/components/toast/toast-utils.js 1.85 KB
245
- CJS dist/components/picker/utils.js 1.47 KB
246
- CJS dist/components/tooltip/index.js 18.73 KB
247
245
  CJS dist/components/tooltip/tooltip-utils.js 4.90 KB
246
+ CJS dist/components/tooltip/index.js 18.73 KB
248
247
  CJS dist/components/tooltip/useTooltip.js 4.19 KB
249
248
  CJS dist/components/tooltip/tooltip.js 18.59 KB
250
- CJS dist/components/progress/index.js 13.91 KB
249
+ CJS dist/components/tabs/index.js 15.60 KB
250
+ CJS dist/components/tabs/tabs.js 15.59 KB
251
251
  CJS dist/NanumSquare_acB-VMSVRKSM.ttf 625.04 KB
252
- CJS dist/NanumSquare_acR-RZCHPXSJ.ttf 631.56 KB
253
- CJS dist/components/avatar/index.js 784.05 KB
252
+ CJS dist/NanumSquare_acEB-HRZ3QLG2.ttf 618.41 KB
253
+ CJS dist/NanumSquare_acL-FSAAP5CK.ttf 642.08 KB
254
254
  CJS dist/components/avatar/avatar.js 783.92 KB
255
- CJS dist/components/breadcrumb/index.js 791.86 KB
255
+ CJS dist/components/avatar/index.js 784.05 KB
256
256
  CJS dist/components/breadcrumb/breadcrumb.js 791.71 KB
257
- CJS dist/components/button/icon-button.js 795.54 KB
258
- CJS dist/components/button/button.js 798.60 KB
259
257
  CJS dist/components/button/index.js 813.96 KB
258
+ CJS dist/components/button/button.js 798.60 KB
259
+ CJS dist/components/button/icon-button.js 795.54 KB
260
260
  CJS dist/components/chip/chip.js 787.60 KB
261
+ CJS dist/components/breadcrumb/index.js 791.86 KB
261
262
  CJS dist/components/chip/index.js 787.72 KB
262
263
  CJS dist/components/fileUpload/fileUpload.js 831.69 KB
263
264
  CJS dist/components/fileUpload/index.js 831.64 KB
264
- CJS dist/components/icon/template.js 774.62 KB
265
- CJS dist/components/input/index.js 798.19 KB
266
265
  CJS dist/components/icon/index.js 775.55 KB
267
- CJS dist/components/icon/Icon.js 775.54 KB
268
266
  CJS dist/components/input/input.js 798.19 KB
267
+ CJS dist/components/input/index.js 798.19 KB
268
+ CJS dist/components/icon/Icon.js 775.54 KB
269
269
  CJS dist/components/list/listItem.js 792.52 KB
270
- CJS dist/components/modal/index.js 804.95 KB
271
- CJS dist/components/modal/modal.js 804.83 KB
272
- CJS dist/NanumSquare_acEB-HRZ3QLG2.ttf 618.41 KB
270
+ CJS dist/components/icon/template.js 774.62 KB
273
271
  CJS dist/components/list/index.js 794.48 KB
274
- CJS dist/components/picker/datePicker.js 847.47 KB
272
+ CJS dist/components/modal/modal.js 804.83 KB
273
+ CJS dist/components/modal/index.js 804.95 KB
275
274
  CJS dist/components/pagination/index.js 809.43 KB
276
275
  CJS dist/components/pagination/pagination.js 809.29 KB
276
+ CJS dist/components/picker/timePicker.js 813.48 KB
277
277
  CJS dist/components/picker/index.js 877.03 KB
278
+ CJS dist/components/picker/datePicker.js 847.47 KB
278
279
  CJS dist/components/select/index.js 800.59 KB
279
- CJS dist/components/picker/timePicker.js 813.48 KB
280
280
  CJS dist/components/select/select.js 800.46 KB
281
281
  CJS dist/components/starRating/index.js 787.38 KB
282
- CJS dist/components/starRating/starRating.js 787.38 KB
283
- CJS dist/components/table/table-body.js 832.43 KB
284
282
  CJS dist/components/table/index.js 836.86 KB
285
- CJS dist/components/timePicker/calendar.js 795.34 KB
286
- CJS dist/components/table/table-head.js 832.43 KB
283
+ CJS dist/components/table/table-body.js 832.43 KB
284
+ CJS dist/components/starRating/starRating.js 787.38 KB
287
285
  CJS dist/components/table/table.js 832.53 KB
286
+ CJS dist/NanumSquare_acR-RZCHPXSJ.ttf 631.56 KB
287
+ CJS dist/components/timePicker/calendar.js 795.34 KB
288
288
  CJS dist/components/toast/toast.js 788.51 KB
289
+ CJS dist/components/table/table-head.js 832.43 KB
290
+ CJS dist/components/tree/index.js 789.74 KB
291
+ CJS dist/index.js 1.03 MB
289
292
  CJS dist/components/toast/index.js 792.16 KB
290
293
  CJS dist/components/toast/use-toast.js 792.10 KB
291
- CJS dist/NanumSquare_acL-FSAAP5CK.ttf 642.08 KB
292
- CJS dist/components/tree/index.js 789.74 KB
293
294
  CJS dist/components/tree/tree.js 789.73 KB
294
- CJS dist/index.js 1.02 MB
295
- CJS ⚡️ Build success in 473ms
296
- DTS ⚡️ Build success in 17921ms
297
- DTS dist/index.d.ts 3.53 KB
295
+ CJS ⚡️ Build success in 463ms
296
+ DTS ⚡️ Build success in 17852ms
297
+ DTS dist/index.d.ts 3.55 KB
298
298
  DTS dist/components/accordion/index.d.ts 229.00 B
299
299
  DTS dist/components/button/index.d.ts 415.00 B
300
- DTS dist/components/charts/index.d.ts 309.00 B
300
+ DTS dist/components/charts/index.d.ts 354.00 B
301
301
  DTS dist/components/list/index.d.ts 302.00 B
302
302
  DTS dist/components/picker/index.d.ts 293.00 B
303
303
  DTS dist/components/table/index.d.ts 304.00 B
@@ -314,7 +314,7 @@ $ cross-env NODE_OPTIONS=--max-old-space-size=8192 tsup src --dts && yarn copy:f
314
314
  DTS dist/components/button/icon-button.d.ts 3.32 KB
315
315
  DTS dist/components/button/text-button.d.ts 3.53 KB
316
316
  DTS dist/components/charts/areaChart.d.ts 1.68 KB
317
- DTS dist/components/charts/barChart.d.ts 1.37 KB
317
+ DTS dist/components/charts/barChart.d.ts 1.54 KB
318
318
  DTS dist/components/charts/circularProgress.d.ts 1.93 KB
319
319
  DTS dist/components/charts/radarChart.d.ts 1.21 KB
320
320
  DTS dist/components/table/table.d.ts 5.86 KB
@@ -390,10 +390,10 @@ $ cross-env NODE_OPTIONS=--max-old-space-size=8192 tsup src --dts && yarn copy:f
390
390
  DTS dist/components/tooltip/index.d.ts 182.00 B
391
391
  DTS dist/components/tree/index.d.ts 183.00 B
392
392
  DTS dist/tooltip-utils-DO3LQaVM.d.ts 2.05 KB
393
- DTS dist/index.d.mts 3.57 KB
393
+ DTS dist/index.d.mts 3.59 KB
394
394
  DTS dist/components/accordion/index.d.mts 232.00 B
395
395
  DTS dist/components/button/index.d.mts 422.00 B
396
- DTS dist/components/charts/index.d.mts 314.00 B
396
+ DTS dist/components/charts/index.d.mts 359.00 B
397
397
  DTS dist/components/list/index.d.mts 308.00 B
398
398
  DTS dist/components/picker/index.d.mts 297.00 B
399
399
  DTS dist/components/table/index.d.mts 307.00 B
@@ -410,7 +410,7 @@ $ cross-env NODE_OPTIONS=--max-old-space-size=8192 tsup src --dts && yarn copy:f
410
410
  DTS dist/components/button/icon-button.d.mts 3.33 KB
411
411
  DTS dist/components/button/text-button.d.mts 3.54 KB
412
412
  DTS dist/components/charts/areaChart.d.mts 1.68 KB
413
- DTS dist/components/charts/barChart.d.mts 1.37 KB
413
+ DTS dist/components/charts/barChart.d.mts 1.54 KB
414
414
  DTS dist/components/charts/circularProgress.d.mts 1.93 KB
415
415
  DTS dist/components/charts/radarChart.d.mts 1.21 KB
416
416
  DTS dist/components/table/table.d.mts 5.86 KB
@@ -487,4 +487,4 @@ $ cross-env NODE_OPTIONS=--max-old-space-size=8192 tsup src --dts && yarn copy:f
487
487
  DTS dist/components/tree/index.d.mts 185.00 B
488
488
  DTS dist/tooltip-utils-DO3LQaVM.d.mts 2.05 KB
489
489
  $ copyfiles -u 2 src/fonts/**/* dist/fonts
490
- Done in 18.76s.
490
+ Done in 18.70s.
@@ -7,7 +7,7 @@ import {
7
7
  } from "./chunk-U4DJHAM5.mjs";
8
8
 
9
9
  // src/components/charts/barChart.tsx
10
- import { forwardRef, useEffect, useMemo, useRef, useState } from "react";
10
+ import { forwardRef, useEffect, useLayoutEffect, useMemo, useRef, useState } from "react";
11
11
  import { XAxis, YAxis, ResponsiveContainer, CartesianGrid, BarChart, Bar } from "recharts";
12
12
  import { jsx, jsxs } from "react/jsx-runtime";
13
13
  var BarChartComponent = forwardRef((originalProps, ref) => {
@@ -23,11 +23,14 @@ var BarChartComponent = forwardRef((originalProps, ref) => {
23
23
  tooltipFormatter
24
24
  } = { ...props, ...variantProps };
25
25
  const slots = useMemo(() => barChartStyle({ ...variantProps }), [variantProps]);
26
+ const chartRef = useRef(null);
27
+ const tooltipRef = useRef(null);
28
+ const [tooltipLeft, setTooltipLeft] = useState(0);
26
29
  const [tickPositions, setTickPositions] = useState([]);
27
30
  const tickRef = useRef([]);
28
31
  const [tooltipState, setTooltipState] = useState(null);
29
32
  const handleMouseEnter = (e, dataKey) => {
30
- if (!tooltipFormatter) return;
33
+ if (!tooltipFormatter || !chartRef.current) return;
31
34
  const { payload, x, y } = e;
32
35
  if (!payload || !payload[dataKey]) return;
33
36
  setTooltipState({
@@ -97,7 +100,22 @@ var BarChartComponent = forwardRef((originalProps, ref) => {
97
100
  });
98
101
  return () => cancelAnimationFrame(raf);
99
102
  }, [data]);
100
- return /* @__PURE__ */ jsxs("div", { ref, className: slots.base({ class: classNames == null ? void 0 : classNames.base }), onMouseLeave: handleMouseLeave, children: [
103
+ useLayoutEffect(() => {
104
+ if (!tooltipState || !chartRef.current || !tooltipRef.current) return;
105
+ const chartRect = chartRef.current.getBoundingClientRect();
106
+ const tooltipRect = tooltipRef.current.getBoundingClientRect();
107
+ const chartWidth = chartRect.width;
108
+ const tooltipWidth = tooltipRect.width;
109
+ let left = tooltipState.x - tooltipWidth / 2;
110
+ const padding = 8;
111
+ if (left < padding) {
112
+ left = padding;
113
+ } else if (left + tooltipWidth > chartWidth - padding) {
114
+ left = chartWidth - tooltipWidth - padding;
115
+ }
116
+ setTooltipLeft(left);
117
+ }, [tooltipState]);
118
+ return /* @__PURE__ */ jsxs("div", { ref: chartRef, className: slots.base({ class: classNames == null ? void 0 : classNames.base }), onMouseLeave: handleMouseLeave, children: [
101
119
  label && /* @__PURE__ */ jsx("p", { className: slots.label({ class: classNames == null ? void 0 : classNames.label }), children: label }),
102
120
  /* @__PURE__ */ jsx(ResponsiveContainer, { width: "100%", height: "100%", children: /* @__PURE__ */ jsxs(
103
121
  BarChart,
@@ -185,17 +203,23 @@ var BarChartComponent = forwardRef((originalProps, ref) => {
185
203
  ]
186
204
  }
187
205
  ) }),
188
- tooltipFormatter && tooltipState && /* @__PURE__ */ jsx(
206
+ tooltipFormatter && /* @__PURE__ */ jsx(
189
207
  "div",
190
208
  {
209
+ ref: tooltipRef,
191
210
  style: {
192
211
  position: "absolute",
193
- left: tooltipState.x + 10,
194
- top: tooltipState.y - 40,
195
- transform: "translateX(-50%)",
196
- pointerEvents: "none"
212
+ left: tooltipLeft + 10,
213
+ top: (tooltipState == null ? void 0 : tooltipState.y) ? tooltipState.y - 40 : 0,
214
+ pointerEvents: "none",
215
+ zIndex: 10,
216
+ opacity: tooltipState ? 1 : 0,
217
+ transition: "opacity 0.1s ease-out",
218
+ visibility: tooltipState ? "visible" : "hidden",
219
+ width: "fit-content",
220
+ whiteSpace: "nowrap"
197
221
  },
198
- children: tooltipFormatter(tooltipState)
222
+ children: tooltipState && tooltipFormatter(tooltipState)
199
223
  }
200
224
  )
201
225
  ] });
@@ -210,7 +234,11 @@ var barChartStyle = tv({
210
234
  variants: {},
211
235
  defaultVariants: {}
212
236
  });
237
+ function BarChartTooltip({ children }) {
238
+ return /* @__PURE__ */ jsx("div", { className: "text-md text-common-white bg-common-black max-w-[160px] whitespace-nowrap rounded-[5px] px-[10px] py-[6px] text-center font-bold", children });
239
+ }
213
240
 
214
241
  export {
215
- barChart_default
242
+ barChart_default,
243
+ BarChartTooltip
216
244
  };
@@ -1,3 +1,4 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
1
2
  import * as tailwind_variants from 'tailwind-variants';
2
3
  import { VariantProps } from 'tailwind-variants';
3
4
  import * as react from 'react';
@@ -40,5 +41,8 @@ declare const barChartStyle: tailwind_variants.TVReturnType<{}, {
40
41
  }, undefined, unknown, unknown, undefined>>;
41
42
  type barChartVariantProps = VariantProps<typeof barChartStyle>;
42
43
  type barChartSlots = keyof ReturnType<typeof barChartStyle>;
44
+ declare function BarChartTooltip({ children }: {
45
+ children: ReactNode;
46
+ }): react_jsx_runtime.JSX.Element;
43
47
 
44
- export { type barChartProps, BarChartComponent as default };
48
+ export { BarChartTooltip, type barChartProps, BarChartComponent as default };
@@ -1,3 +1,4 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
1
2
  import * as tailwind_variants from 'tailwind-variants';
2
3
  import { VariantProps } from 'tailwind-variants';
3
4
  import * as react from 'react';
@@ -40,5 +41,8 @@ declare const barChartStyle: tailwind_variants.TVReturnType<{}, {
40
41
  }, undefined, unknown, unknown, undefined>>;
41
42
  type barChartVariantProps = VariantProps<typeof barChartStyle>;
42
43
  type barChartSlots = keyof ReturnType<typeof barChartStyle>;
44
+ declare function BarChartTooltip({ children }: {
45
+ children: ReactNode;
46
+ }): react_jsx_runtime.JSX.Element;
43
47
 
44
- export { type barChartProps, BarChartComponent as default };
48
+ export { BarChartTooltip, type barChartProps, BarChartComponent as default };
@@ -102,6 +102,7 @@ var require_plugin = __commonJS({
102
102
  // src/components/charts/barChart.tsx
103
103
  var barChart_exports = {};
104
104
  __export(barChart_exports, {
105
+ BarChartTooltip: () => BarChartTooltip,
105
106
  default: () => barChart_default
106
107
  });
107
108
  module.exports = __toCommonJS(barChart_exports);
@@ -390,11 +391,14 @@ var BarChartComponent = (0, import_react.forwardRef)((originalProps, ref) => {
390
391
  tooltipFormatter
391
392
  } = { ...props, ...variantProps };
392
393
  const slots = (0, import_react.useMemo)(() => barChartStyle({ ...variantProps }), [variantProps]);
394
+ const chartRef = (0, import_react.useRef)(null);
395
+ const tooltipRef = (0, import_react.useRef)(null);
396
+ const [tooltipLeft, setTooltipLeft] = (0, import_react.useState)(0);
393
397
  const [tickPositions, setTickPositions] = (0, import_react.useState)([]);
394
398
  const tickRef = (0, import_react.useRef)([]);
395
399
  const [tooltipState, setTooltipState] = (0, import_react.useState)(null);
396
400
  const handleMouseEnter = (e, dataKey) => {
397
- if (!tooltipFormatter) return;
401
+ if (!tooltipFormatter || !chartRef.current) return;
398
402
  const { payload, x, y } = e;
399
403
  if (!payload || !payload[dataKey]) return;
400
404
  setTooltipState({
@@ -464,7 +468,22 @@ var BarChartComponent = (0, import_react.forwardRef)((originalProps, ref) => {
464
468
  });
465
469
  return () => cancelAnimationFrame(raf);
466
470
  }, [data]);
467
- return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { ref, className: slots.base({ class: classNames == null ? void 0 : classNames.base }), onMouseLeave: handleMouseLeave, children: [
471
+ (0, import_react.useLayoutEffect)(() => {
472
+ if (!tooltipState || !chartRef.current || !tooltipRef.current) return;
473
+ const chartRect = chartRef.current.getBoundingClientRect();
474
+ const tooltipRect = tooltipRef.current.getBoundingClientRect();
475
+ const chartWidth = chartRect.width;
476
+ const tooltipWidth = tooltipRect.width;
477
+ let left = tooltipState.x - tooltipWidth / 2;
478
+ const padding2 = 8;
479
+ if (left < padding2) {
480
+ left = padding2;
481
+ } else if (left + tooltipWidth > chartWidth - padding2) {
482
+ left = chartWidth - tooltipWidth - padding2;
483
+ }
484
+ setTooltipLeft(left);
485
+ }, [tooltipState]);
486
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { ref: chartRef, className: slots.base({ class: classNames == null ? void 0 : classNames.base }), onMouseLeave: handleMouseLeave, children: [
468
487
  label && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: slots.label({ class: classNames == null ? void 0 : classNames.label }), children: label }),
469
488
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_recharts.ResponsiveContainer, { width: "100%", height: "100%", children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
470
489
  import_recharts.BarChart,
@@ -552,17 +571,23 @@ var BarChartComponent = (0, import_react.forwardRef)((originalProps, ref) => {
552
571
  ]
553
572
  }
554
573
  ) }),
555
- tooltipFormatter && tooltipState && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
574
+ tooltipFormatter && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
556
575
  "div",
557
576
  {
577
+ ref: tooltipRef,
558
578
  style: {
559
579
  position: "absolute",
560
- left: tooltipState.x + 10,
561
- top: tooltipState.y - 40,
562
- transform: "translateX(-50%)",
563
- pointerEvents: "none"
580
+ left: tooltipLeft + 10,
581
+ top: (tooltipState == null ? void 0 : tooltipState.y) ? tooltipState.y - 40 : 0,
582
+ pointerEvents: "none",
583
+ zIndex: 10,
584
+ opacity: tooltipState ? 1 : 0,
585
+ transition: "opacity 0.1s ease-out",
586
+ visibility: tooltipState ? "visible" : "hidden",
587
+ width: "fit-content",
588
+ whiteSpace: "nowrap"
564
589
  },
565
- children: tooltipFormatter(tooltipState)
590
+ children: tooltipState && tooltipFormatter(tooltipState)
566
591
  }
567
592
  )
568
593
  ] });
@@ -577,3 +602,10 @@ var barChartStyle = tv({
577
602
  variants: {},
578
603
  defaultVariants: {}
579
604
  });
605
+ function BarChartTooltip({ children }) {
606
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "text-md text-common-white bg-common-black max-w-[160px] whitespace-nowrap rounded-[5px] px-[10px] py-[6px] text-center font-bold", children });
607
+ }
608
+ // Annotate the CommonJS export names for ESM import in node:
609
+ 0 && (module.exports = {
610
+ BarChartTooltip
611
+ });
@@ -1,10 +1,12 @@
1
1
  "use client";
2
2
  import {
3
+ BarChartTooltip,
3
4
  barChart_default
4
- } from "../../chunk-YQGN2DER.mjs";
5
+ } from "../../chunk-BRVQTI2T.mjs";
5
6
  import "../../chunk-E3G5QXSH.mjs";
6
7
  import "../../chunk-U4DJHAM5.mjs";
7
8
  import "../../chunk-AC6TWLRT.mjs";
8
9
  export {
10
+ BarChartTooltip,
9
11
  barChart_default as default
10
12
  };
@@ -1,7 +1,8 @@
1
1
  export { default as CircularProgress } from './circularProgress.mjs';
2
2
  export { default as AreaChart } from './areaChart.mjs';
3
- export { default as BarChart } from './barChart.mjs';
3
+ export { default as BarChart, BarChartTooltip } from './barChart.mjs';
4
4
  export { default as RadarChart } from './radarChart.mjs';
5
5
  import 'tailwind-variants';
6
6
  import 'react';
7
7
  import '../../utils/types.mjs';
8
+ import 'react/jsx-runtime';
@@ -1,7 +1,8 @@
1
1
  export { default as CircularProgress } from './circularProgress.js';
2
2
  export { default as AreaChart } from './areaChart.js';
3
- export { default as BarChart } from './barChart.js';
3
+ export { default as BarChart, BarChartTooltip } from './barChart.js';
4
4
  export { default as RadarChart } from './radarChart.js';
5
5
  import 'tailwind-variants';
6
6
  import 'react';
7
7
  import '../../utils/types.js';
8
+ import 'react/jsx-runtime';
@@ -104,6 +104,7 @@ var charts_exports = {};
104
104
  __export(charts_exports, {
105
105
  AreaChart: () => areaChart_default,
106
106
  BarChart: () => barChart_default,
107
+ BarChartTooltip: () => BarChartTooltip,
107
108
  CircularProgress: () => circularProgress_default,
108
109
  RadarChart: () => radarChart_default
109
110
  });
@@ -779,11 +780,14 @@ var BarChartComponent = (0, import_react3.forwardRef)((originalProps, ref) => {
779
780
  tooltipFormatter
780
781
  } = { ...props, ...variantProps };
781
782
  const slots = (0, import_react3.useMemo)(() => barChartStyle({ ...variantProps }), [variantProps]);
783
+ const chartRef = (0, import_react3.useRef)(null);
784
+ const tooltipRef = (0, import_react3.useRef)(null);
785
+ const [tooltipLeft, setTooltipLeft] = (0, import_react3.useState)(0);
782
786
  const [tickPositions, setTickPositions] = (0, import_react3.useState)([]);
783
787
  const tickRef = (0, import_react3.useRef)([]);
784
788
  const [tooltipState, setTooltipState] = (0, import_react3.useState)(null);
785
789
  const handleMouseEnter = (e, dataKey) => {
786
- if (!tooltipFormatter) return;
790
+ if (!tooltipFormatter || !chartRef.current) return;
787
791
  const { payload, x, y } = e;
788
792
  if (!payload || !payload[dataKey]) return;
789
793
  setTooltipState({
@@ -853,7 +857,22 @@ var BarChartComponent = (0, import_react3.forwardRef)((originalProps, ref) => {
853
857
  });
854
858
  return () => cancelAnimationFrame(raf);
855
859
  }, [data]);
856
- return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { ref, className: slots.base({ class: classNames == null ? void 0 : classNames.base }), onMouseLeave: handleMouseLeave, children: [
860
+ (0, import_react3.useLayoutEffect)(() => {
861
+ if (!tooltipState || !chartRef.current || !tooltipRef.current) return;
862
+ const chartRect = chartRef.current.getBoundingClientRect();
863
+ const tooltipRect = tooltipRef.current.getBoundingClientRect();
864
+ const chartWidth = chartRect.width;
865
+ const tooltipWidth = tooltipRect.width;
866
+ let left = tooltipState.x - tooltipWidth / 2;
867
+ const padding2 = 8;
868
+ if (left < padding2) {
869
+ left = padding2;
870
+ } else if (left + tooltipWidth > chartWidth - padding2) {
871
+ left = chartWidth - tooltipWidth - padding2;
872
+ }
873
+ setTooltipLeft(left);
874
+ }, [tooltipState]);
875
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { ref: chartRef, className: slots.base({ class: classNames == null ? void 0 : classNames.base }), onMouseLeave: handleMouseLeave, children: [
857
876
  label && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("p", { className: slots.label({ class: classNames == null ? void 0 : classNames.label }), children: label }),
858
877
  /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_recharts3.ResponsiveContainer, { width: "100%", height: "100%", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
859
878
  import_recharts3.BarChart,
@@ -941,17 +960,23 @@ var BarChartComponent = (0, import_react3.forwardRef)((originalProps, ref) => {
941
960
  ]
942
961
  }
943
962
  ) }),
944
- tooltipFormatter && tooltipState && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
963
+ tooltipFormatter && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
945
964
  "div",
946
965
  {
966
+ ref: tooltipRef,
947
967
  style: {
948
968
  position: "absolute",
949
- left: tooltipState.x + 10,
950
- top: tooltipState.y - 40,
951
- transform: "translateX(-50%)",
952
- pointerEvents: "none"
969
+ left: tooltipLeft + 10,
970
+ top: (tooltipState == null ? void 0 : tooltipState.y) ? tooltipState.y - 40 : 0,
971
+ pointerEvents: "none",
972
+ zIndex: 10,
973
+ opacity: tooltipState ? 1 : 0,
974
+ transition: "opacity 0.1s ease-out",
975
+ visibility: tooltipState ? "visible" : "hidden",
976
+ width: "fit-content",
977
+ whiteSpace: "nowrap"
953
978
  },
954
- children: tooltipFormatter(tooltipState)
979
+ children: tooltipState && tooltipFormatter(tooltipState)
955
980
  }
956
981
  )
957
982
  ] });
@@ -966,6 +991,9 @@ var barChartStyle = tv({
966
991
  variants: {},
967
992
  defaultVariants: {}
968
993
  });
994
+ function BarChartTooltip({ children }) {
995
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: "text-md text-common-white bg-common-black max-w-[160px] whitespace-nowrap rounded-[5px] px-[10px] py-[6px] text-center font-bold", children });
996
+ }
969
997
 
970
998
  // src/components/charts/radarChart.tsx
971
999
  var import_recharts4 = require("recharts");
@@ -1074,6 +1102,7 @@ var radarChartStyle = tv({
1074
1102
  0 && (module.exports = {
1075
1103
  AreaChart,
1076
1104
  BarChart,
1105
+ BarChartTooltip,
1077
1106
  CircularProgress,
1078
1107
  RadarChart
1079
1108
  });
@@ -6,8 +6,9 @@ import {
6
6
  import "../../chunk-DQRAFUDA.mjs";
7
7
  import "../../chunk-EWS3FESG.mjs";
8
8
  import {
9
+ BarChartTooltip,
9
10
  barChart_default
10
- } from "../../chunk-YQGN2DER.mjs";
11
+ } from "../../chunk-BRVQTI2T.mjs";
11
12
  import {
12
13
  circularProgress_default
13
14
  } from "../../chunk-553TGKS6.mjs";
@@ -21,6 +22,7 @@ import "../../chunk-AC6TWLRT.mjs";
21
22
  export {
22
23
  areaChart_default as AreaChart,
23
24
  barChart_default as BarChart,
25
+ BarChartTooltip,
24
26
  circularProgress_default as CircularProgress,
25
27
  radarChart_default as RadarChart
26
28
  };
package/dist/index.d.mts CHANGED
@@ -35,7 +35,7 @@ export { default as FileUpload } from './components/fileUpload/fileUpload.mjs';
35
35
  export { default as Skeleton } from './components/skeleton/skeleton.mjs';
36
36
  export { default as CircularProgress } from './components/charts/circularProgress.mjs';
37
37
  export { default as AreaChart } from './components/charts/areaChart.mjs';
38
- export { default as BarChart } from './components/charts/barChart.mjs';
38
+ export { default as BarChart, BarChartTooltip } from './components/charts/barChart.mjs';
39
39
  export { default as RadarChart } from './components/charts/radarChart.mjs';
40
40
  export { default as Progress } from './components/progress/progress.mjs';
41
41
  export { default as StarRating, StarRatingProps } from './components/starRating/starRating.mjs';
package/dist/index.d.ts CHANGED
@@ -35,7 +35,7 @@ export { default as FileUpload } from './components/fileUpload/fileUpload.js';
35
35
  export { default as Skeleton } from './components/skeleton/skeleton.js';
36
36
  export { default as CircularProgress } from './components/charts/circularProgress.js';
37
37
  export { default as AreaChart } from './components/charts/areaChart.js';
38
- export { default as BarChart } from './components/charts/barChart.js';
38
+ export { default as BarChart, BarChartTooltip } from './components/charts/barChart.js';
39
39
  export { default as RadarChart } from './components/charts/radarChart.js';
40
40
  export { default as Progress } from './components/progress/progress.js';
41
41
  export { default as StarRating, StarRatingProps } from './components/starRating/starRating.js';
package/dist/index.js CHANGED
@@ -108,6 +108,7 @@ __export(index_exports, {
108
108
  Avatar: () => avatar_default,
109
109
  Backdrop: () => backdrop_default,
110
110
  BarChart: () => barChart_default,
111
+ BarChartTooltip: () => BarChartTooltip,
111
112
  Breadcrumb: () => breadcrumb_default,
112
113
  Button: () => button_default,
113
114
  ButtonGroup: () => button_group_default,
@@ -12846,11 +12847,14 @@ var BarChartComponent = (0, import_react40.forwardRef)((originalProps, ref) => {
12846
12847
  tooltipFormatter
12847
12848
  } = { ...props, ...variantProps };
12848
12849
  const slots = (0, import_react40.useMemo)(() => barChartStyle({ ...variantProps }), [variantProps]);
12850
+ const chartRef = (0, import_react40.useRef)(null);
12851
+ const tooltipRef = (0, import_react40.useRef)(null);
12852
+ const [tooltipLeft, setTooltipLeft] = (0, import_react40.useState)(0);
12849
12853
  const [tickPositions, setTickPositions] = (0, import_react40.useState)([]);
12850
12854
  const tickRef = (0, import_react40.useRef)([]);
12851
12855
  const [tooltipState, setTooltipState] = (0, import_react40.useState)(null);
12852
12856
  const handleMouseEnter = (e, dataKey) => {
12853
- if (!tooltipFormatter) return;
12857
+ if (!tooltipFormatter || !chartRef.current) return;
12854
12858
  const { payload, x, y } = e;
12855
12859
  if (!payload || !payload[dataKey]) return;
12856
12860
  setTooltipState({
@@ -12920,7 +12924,22 @@ var BarChartComponent = (0, import_react40.forwardRef)((originalProps, ref) => {
12920
12924
  });
12921
12925
  return () => cancelAnimationFrame(raf);
12922
12926
  }, [data]);
12923
- return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("div", { ref, className: slots.base({ class: classNames == null ? void 0 : classNames.base }), onMouseLeave: handleMouseLeave, children: [
12927
+ (0, import_react40.useLayoutEffect)(() => {
12928
+ if (!tooltipState || !chartRef.current || !tooltipRef.current) return;
12929
+ const chartRect = chartRef.current.getBoundingClientRect();
12930
+ const tooltipRect = tooltipRef.current.getBoundingClientRect();
12931
+ const chartWidth = chartRect.width;
12932
+ const tooltipWidth = tooltipRect.width;
12933
+ let left = tooltipState.x - tooltipWidth / 2;
12934
+ const padding2 = 8;
12935
+ if (left < padding2) {
12936
+ left = padding2;
12937
+ } else if (left + tooltipWidth > chartWidth - padding2) {
12938
+ left = chartWidth - tooltipWidth - padding2;
12939
+ }
12940
+ setTooltipLeft(left);
12941
+ }, [tooltipState]);
12942
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("div", { ref: chartRef, className: slots.base({ class: classNames == null ? void 0 : classNames.base }), onMouseLeave: handleMouseLeave, children: [
12924
12943
  label && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("p", { className: slots.label({ class: classNames == null ? void 0 : classNames.label }), children: label }),
12925
12944
  /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_recharts3.ResponsiveContainer, { width: "100%", height: "100%", children: /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(
12926
12945
  import_recharts3.BarChart,
@@ -13008,17 +13027,23 @@ var BarChartComponent = (0, import_react40.forwardRef)((originalProps, ref) => {
13008
13027
  ]
13009
13028
  }
13010
13029
  ) }),
13011
- tooltipFormatter && tooltipState && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
13030
+ tooltipFormatter && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
13012
13031
  "div",
13013
13032
  {
13033
+ ref: tooltipRef,
13014
13034
  style: {
13015
13035
  position: "absolute",
13016
- left: tooltipState.x + 10,
13017
- top: tooltipState.y - 40,
13018
- transform: "translateX(-50%)",
13019
- pointerEvents: "none"
13036
+ left: tooltipLeft + 10,
13037
+ top: (tooltipState == null ? void 0 : tooltipState.y) ? tooltipState.y - 40 : 0,
13038
+ pointerEvents: "none",
13039
+ zIndex: 10,
13040
+ opacity: tooltipState ? 1 : 0,
13041
+ transition: "opacity 0.1s ease-out",
13042
+ visibility: tooltipState ? "visible" : "hidden",
13043
+ width: "fit-content",
13044
+ whiteSpace: "nowrap"
13020
13045
  },
13021
- children: tooltipFormatter(tooltipState)
13046
+ children: tooltipState && tooltipFormatter(tooltipState)
13022
13047
  }
13023
13048
  )
13024
13049
  ] });
@@ -13033,6 +13058,9 @@ var barChartStyle = tv({
13033
13058
  variants: {},
13034
13059
  defaultVariants: {}
13035
13060
  });
13061
+ function BarChartTooltip({ children }) {
13062
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { className: "text-md text-common-white bg-common-black max-w-[160px] whitespace-nowrap rounded-[5px] px-[10px] py-[6px] text-center font-bold", children });
13063
+ }
13036
13064
 
13037
13065
  // src/components/charts/radarChart.tsx
13038
13066
  var import_recharts4 = require("recharts");
@@ -13230,6 +13258,7 @@ var starRatingStyle = tv({
13230
13258
  Avatar,
13231
13259
  Backdrop,
13232
13260
  BarChart,
13261
+ BarChartTooltip,
13233
13262
  Breadcrumb,
13234
13263
  Button,
13235
13264
  ButtonGroup,
package/dist/index.mjs CHANGED
@@ -109,8 +109,9 @@ import {
109
109
  scrollArea_default
110
110
  } from "./chunk-EWS3FESG.mjs";
111
111
  import {
112
+ BarChartTooltip,
112
113
  barChart_default
113
- } from "./chunk-YQGN2DER.mjs";
114
+ } from "./chunk-BRVQTI2T.mjs";
114
115
  import {
115
116
  circularProgress_default
116
117
  } from "./chunk-553TGKS6.mjs";
@@ -177,6 +178,7 @@ export {
177
178
  avatar_default as Avatar,
178
179
  backdrop_default as Backdrop,
179
180
  barChart_default as BarChart,
181
+ BarChartTooltip,
180
182
  breadcrumb_default as Breadcrumb,
181
183
  button_default as Button,
182
184
  button_group_default as ButtonGroup,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deepnoid/ui",
3
- "version": "0.1.160",
3
+ "version": "0.1.162",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "exports": {