@deepnoid/ui 0.1.210 → 0.1.211

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/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/charts/simpleBarChart.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/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/starRating/index.ts, src/components/starRating/starRating.tsx, src/components/skeleton/index.ts, src/components/skeleton/skeleton.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/switch/index.ts, src/components/switch/switch.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, src/components/picker/timePicker/Panel.tsx, src/components/picker/timePicker/WheelColumn.tsx, src/components/picker/timePicker/index.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/charts/simpleBarChart.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/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, src/components/picker/timePicker/Panel.tsx, src/components/picker/timePicker/WheelColumn.tsx, src/components/picker/timePicker/index.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
@@ -15,297 +15,297 @@ Browserslist: browsers data (caniuse-lite) is 8 months old. Please run:
15
15
  ESM dist/utils/props.mjs 137.00 B
16
16
  ESM dist/hooks/useIsMounted.mjs 129.00 B
17
17
  ESM dist/fonts/NanumSquare_acB.mjs 194.00 B
18
+ ESM dist/index.mjs 5.25 KB
19
+ ESM dist/NanumSquare_acB-VMSVRKSM.ttf 625.04 KB
18
20
  ESM dist/chunk-HIE2YRGA.mjs 14.00 B
19
- ESM dist/chunk-5KC3IFNR.mjs 4.21 KB
20
21
  ESM dist/chunk-ZMOAFSYE.mjs 1.43 KB
21
- ESM dist/chunk-WSIADHVC.mjs 3.80 KB
22
- ESM dist/index.mjs 5.25 KB
22
+ ESM dist/chunk-5KC3IFNR.mjs 4.21 KB
23
23
  ESM dist/chunk-MBLZYQCN.mjs 14.00 B
24
- ESM dist/chunk-F6BQCZ54.mjs 6.35 KB
25
- ESM dist/NanumSquare_acB-VMSVRKSM.ttf 625.04 KB
26
- ESM dist/chunk-SSGCTWWW.mjs 2.58 KB
24
+ ESM dist/chunk-WSIADHVC.mjs 3.80 KB
27
25
  ESM dist/chunk-RRAZM5D3.mjs 14.00 B
26
+ ESM dist/chunk-F6BQCZ54.mjs 6.35 KB
28
27
  ESM dist/chunk-LUWGOKLG.mjs 14.00 B
28
+ ESM dist/chunk-Q22PRT24.mjs 9.26 KB
29
+ ESM dist/chunk-SSGCTWWW.mjs 2.58 KB
30
+ ESM dist/chunk-DX3KXNP6.mjs 14.00 B
29
31
  ESM dist/chunk-ZOTHPHXA.mjs 857.00 B
30
32
  ESM dist/chunk-4F7SIDZB.mjs 4.10 KB
31
- ESM dist/chunk-DX3KXNP6.mjs 14.00 B
32
- ESM dist/chunk-W3V4SZV5.mjs 16.69 KB
33
- ESM dist/chunk-Q22PRT24.mjs 9.26 KB
33
+ ESM dist/chunk-DS5CGU2X.mjs 4.12 KB
34
34
  ESM dist/chunk-3MY6LO7N.mjs 14.00 B
35
+ ESM dist/chunk-W3V4SZV5.mjs 16.69 KB
35
36
  ESM dist/chunk-DW3BX4M2.mjs 6.13 KB
36
- ESM dist/chunk-LVFI2NOH.mjs 14.00 B
37
- ESM dist/chunk-AGE57VDD.mjs 4.16 KB
38
37
  ESM dist/chunk-QCEKPS7U.mjs 14.00 B
38
+ ESM dist/chunk-MZ76AA76.mjs 14.00 B
39
39
  ESM dist/chunk-K2RW5KLO.mjs 17.29 KB
40
40
  ESM dist/chunk-OLQOLLKG.mjs 14.00 B
41
- ESM dist/chunk-MZ76AA76.mjs 14.00 B
42
41
  ESM dist/chunk-6PN3DGOE.mjs 1.78 KB
42
+ ESM dist/chunk-LVFI2NOH.mjs 14.00 B
43
43
  ESM dist/chunk-OX4T7OBC.mjs 4.19 KB
44
- ESM dist/chunk-DS5CGU2X.mjs 4.12 KB
44
+ ESM dist/chunk-AGE57VDD.mjs 4.16 KB
45
45
  ESM dist/chunk-TPFN22HR.mjs 14.00 B
46
46
  ESM dist/chunk-RNMD44IQ.mjs 5.71 KB
47
47
  ESM dist/chunk-4VWG4726.mjs 14.00 B
48
48
  ESM dist/chunk-7B7LRG5J.mjs 14.00 B
49
- ESM dist/chunk-CELXDJP2.mjs 8.46 KB
50
- ESM dist/chunk-F3HENRVM.mjs 934.00 B
49
+ ESM dist/utils/tailwind-variants.mjs 109.00 B
50
+ ESM dist/chunk-XKWKJQEF.mjs 8.46 KB
51
51
  ESM dist/chunk-VVCSY7DG.mjs 11.06 KB
52
- ESM dist/chunk-GNT7VXXE.mjs 2.76 KB
53
- ESM dist/chunk-D6BMDE2K.mjs 2.93 KB
54
- ESM dist/chunk-JPNMYMDN.mjs 19.56 KB
52
+ ESM dist/utils/types.mjs 14.00 B
53
+ ESM dist/chunk-F3HENRVM.mjs 934.00 B
54
+ ESM dist/chunk-HYLTIUH3.mjs 2.76 KB
55
55
  ESM dist/chunk-XZYQFBCT.mjs 1.51 KB
56
+ ESM dist/chunk-RKHH3CUS.mjs 2.14 KB
56
57
  ESM dist/chunk-3IBJXQTJ.mjs 1.07 KB
57
- ESM dist/utils/tailwind-variants.mjs 109.00 B
58
58
  ESM dist/chunk-7MVEAQ7Z.mjs 14.00 B
59
- ESM dist/chunk-NGRGAY42.mjs 1.27 KB
59
+ ESM dist/chunk-JPNMYMDN.mjs 19.56 KB
60
60
  ESM dist/chunk-K3M3QEEV.mjs 7.20 KB
61
61
  ESM dist/chunk-DJOG6Z35.mjs 14.00 B
62
- ESM dist/chunk-D72ILS4A.mjs 4.67 KB
62
+ ESM dist/chunk-NGRGAY42.mjs 1.27 KB
63
63
  ESM dist/chunk-QZ3LVYJW.mjs 14.00 B
64
- ESM dist/utils/types.mjs 14.00 B
65
64
  ESM dist/chunk-MGEWSREV.mjs 14.00 B
66
- ESM dist/chunk-RLXOHILK.mjs 14.00 B
65
+ ESM dist/chunk-D72ILS4A.mjs 4.67 KB
67
66
  ESM dist/chunk-32GA3YW4.mjs 14.00 B
68
- ESM dist/chunk-5JRZQLXQ.mjs 5.70 KB
69
67
  ESM dist/chunk-XPFBM2RK.mjs 4.03 KB
68
+ ESM dist/chunk-RLXOHILK.mjs 14.00 B
70
69
  ESM dist/chunk-45Y7ANPK.mjs 5.03 KB
71
- ESM dist/chunk-3RTVVQA3.mjs 13.42 KB
72
70
  ESM dist/chunk-7VOQKIIK.mjs 14.00 B
73
- ESM dist/chunk-LH6Z7SDZ.mjs 6.32 KB
74
- ESM dist/chunk-2GCSFWHD.mjs 14.00 B
75
71
  ESM dist/chunk-KH63CD55.mjs 3.75 KB
76
- ESM dist/chunk-DQRAFUDA.mjs 14.00 B
72
+ ESM dist/chunk-5JRZQLXQ.mjs 5.70 KB
73
+ ESM dist/chunk-2GCSFWHD.mjs 14.00 B
74
+ ESM dist/chunk-LH6Z7SDZ.mjs 6.32 KB
77
75
  ESM dist/chunk-3OCNT22V.mjs 14.00 B
76
+ ESM dist/chunk-3RTVVQA3.mjs 13.42 KB
78
77
  ESM dist/chunk-EWS3FESG.mjs 1.03 KB
79
- ESM dist/chunk-WA7CSZQ3.mjs 5.17 KB
78
+ ESM dist/chunk-DQRAFUDA.mjs 14.00 B
80
79
  ESM dist/chunk-U52FBRJ3.mjs 9.59 KB
81
- ESM dist/chunk-OEIEALIP.mjs 6.54 KB
80
+ ESM dist/chunk-WA7CSZQ3.mjs 5.17 KB
82
81
  ESM dist/chunk-U7SYKG2C.mjs 4.33 KB
83
- ESM dist/chunk-SE5TU755.mjs 14.00 B
84
82
  ESM dist/chunk-6WD32ERF.mjs 7.52 KB
85
- ESM dist/chunk-KYIODWXL.mjs 14.00 B
83
+ ESM dist/chunk-SE5TU755.mjs 14.00 B
86
84
  ESM dist/chunk-IH3BJRTV.mjs 778.00 B
85
+ ESM dist/chunk-OEIEALIP.mjs 6.54 KB
87
86
  ESM dist/chunk-EMQML6YB.mjs 2.87 KB
88
87
  ESM dist/chunk-4LUASWAN.mjs 4.40 KB
89
- ESM dist/chunk-MY5U63QO.mjs 14.00 B
90
88
  ESM dist/chunk-FFUZAOFL.mjs 13.26 KB
89
+ ESM dist/chunk-MY5U63QO.mjs 14.00 B
90
+ ESM dist/chunk-KYIODWXL.mjs 14.00 B
91
91
  ESM dist/chunk-5VTYO3RF.mjs 724.00 B
92
92
  ESM dist/chunk-6WSACUIB.mjs 14.00 B
93
93
  ESM dist/chunk-LXHUO6VM.mjs 1.49 KB
94
+ ESM dist/chunk-NMSDSEBD.mjs 14.00 B
94
95
  ESM dist/chunk-TB2DOWSM.mjs 9.36 KB
95
- ESM dist/chunk-ZYIIXWVY.mjs 14.00 B
96
96
  ESM dist/chunk-SZL743JC.mjs 1.00 KB
97
97
  ESM dist/chunk-YEYUS6DW.mjs 929.00 B
98
- ESM dist/chunk-NTNF5T5I.mjs 6.03 KB
98
+ ESM dist/chunk-ZYIIXWVY.mjs 14.00 B
99
99
  ESM dist/chunk-JGG3ZUNG.mjs 2.01 KB
100
- ESM dist/chunk-NMSDSEBD.mjs 14.00 B
101
- ESM dist/chunk-7DLOYKVC.mjs 14.00 B
100
+ ESM dist/chunk-NTNF5T5I.mjs 6.03 KB
102
101
  ESM dist/chunk-E3G5QXSH.mjs 608.00 B
103
- ESM dist/chunk-U4DJHAM5.mjs 15.38 KB
104
102
  ESM dist/chunk-JQ5C2U5I.mjs 1.65 KB
105
- ESM dist/fonts/NanumSquare_acEB.mjs 198.00 B
106
- ESM dist/chunk-3V4HT2K5.mjs 837.00 B
107
- ESM dist/fonts/NanumSquare_acL.mjs 194.00 B
103
+ ESM dist/chunk-U4DJHAM5.mjs 15.38 KB
104
+ ESM dist/chunk-7DLOYKVC.mjs 14.00 B
108
105
  ESM dist/utils/clsx.mjs 113.00 B
106
+ ESM dist/fonts/font.css 777.00 B
107
+ ESM dist/chunk-3V4HT2K5.mjs 837.00 B
109
108
  ESM dist/chunk-AC6TWLRT.mjs 1.34 KB
110
109
  ESM dist/fonts/NanumSquare_acR.mjs 194.00 B
111
- ESM dist/NanumSquare_acL-FSAAP5CK.ttf 642.08 KB
110
+ ESM dist/chunk-27Y6K5NK.mjs 823.00 B
112
111
  ESM dist/NanumSquare_acR-RZCHPXSJ.ttf 631.56 KB
112
+ ESM dist/NanumSquare_acL-FSAAP5CK.ttf 642.08 KB
113
113
  ESM dist/NanumSquare_acEB-HRZ3QLG2.ttf 618.41 KB
114
+ ESM dist/components/tooltip/tooltip.mjs 292.00 B
114
115
  ESM dist/components/picker/timePicker/Panel.mjs 800.00 B
115
116
  ESM dist/components/tree/index.mjs 353.00 B
116
- ESM dist/components/toast/use-toast.mjs 441.00 B
117
- ESM dist/chunk-5BT37SLM.mjs 766.82 KB
118
- ESM dist/chunk-27Y6K5NK.mjs 823.00 B
119
- ESM dist/components/tooltip/index.mjs 327.00 B
120
117
  ESM dist/components/textarea/textarea.mjs 224.00 B
118
+ ESM dist/components/toast/use-toast.mjs 441.00 B
119
+ ESM dist/fonts/NanumSquare_acEB.mjs 198.00 B
121
120
  ESM dist/components/timePicker/calendar.mjs 11.09 KB
122
- ESM dist/components/table/form-table.mjs 1.92 KB
123
- ESM dist/components/tabs/index.mjs 248.00 B
124
- ESM dist/components/scroll/scrollArea.mjs 193.00 B
125
- ESM dist/components/select/index.mjs 674.00 B
126
- ESM dist/components/starRating/starRating.mjs 371.00 B
121
+ ESM dist/components/tabs/tabs.mjs 232.00 B
122
+ ESM dist/components/table/definition-table.mjs 240.00 B
127
123
  ESM dist/components/switch/switch.mjs 185.00 B
124
+ ESM dist/components/select/index.mjs 674.00 B
128
125
  ESM dist/components/skeleton/index.mjs 225.00 B
129
- ESM dist/components/progress/progress.mjs 259.00 B
126
+ ESM dist/components/starRating/index.mjs 371.00 B
127
+ ESM dist/chunk-5BT37SLM.mjs 766.82 KB
130
128
  ESM dist/components/radio/index.mjs 286.00 B
131
129
  ESM dist/components/ripple/index.mjs 253.00 B
132
- ESM dist/fonts/font.css 777.00 B
133
- ESM dist/components/pagination/index.mjs 511.00 B
130
+ ESM dist/components/scroll/scrollArea.mjs 193.00 B
131
+ ESM dist/components/progress/index.mjs 295.00 B
134
132
  ESM dist/components/modal/modal.mjs 708.00 B
133
+ ESM dist/components/pagination/index.mjs 511.00 B
135
134
  ESM dist/components/icon/index.mjs 245.00 B
135
+ ESM dist/components/input/index.mjs 391.00 B
136
136
  ESM dist/components/checkbox/index.mjs 295.00 B
137
- ESM dist/components/input/input.mjs 386.00 B
137
+ ESM dist/components/list/index.mjs 483.00 B
138
138
  ESM dist/components/chip/chip.mjs 321.00 B
139
139
  ESM dist/components/drawer/drawer.mjs 255.00 B
140
140
  ESM dist/components/fileUpload/fileUpload.mjs 889.00 B
141
141
  ESM dist/components/button/text-button.mjs 265.00 B
142
- ESM dist/components/list/index.mjs 483.00 B
143
142
  ESM dist/components/charts/areaChart.mjs 331.00 B
144
- ESM dist/components/breadcrumb/breadcrumb.mjs 648.00 B
145
143
  ESM dist/components/backdrop/backdrop.mjs 224.00 B
146
- ESM dist/components/accordion/accordion.mjs 226.00 B
144
+ ESM dist/components/breadcrumb/breadcrumb.mjs 648.00 B
145
+ ESM dist/fonts/NanumSquare_acL.mjs 194.00 B
147
146
  ESM dist/components/avatar/avatar.mjs 220.00 B
148
- ESM dist/components/tooltip/tooltip-utils.mjs 221.00 B
149
- ESM dist/components/tooltip/tooltip.mjs 292.00 B
150
- ESM dist/components/tree/tree.mjs 369.00 B
151
147
  ESM dist/components/tooltip/useTooltip.mjs 166.00 B
152
- ESM dist/components/textarea/index.mjs 260.00 B
153
- ESM dist/components/toast/toast-utils.mjs 143.00 B
154
- ESM dist/components/table/index.mjs 824.00 B
155
- ESM dist/components/timePicker/useDateTimePicker.mjs 3.37 KB
148
+ ESM dist/components/tree/tree.mjs 369.00 B
149
+ ESM dist/components/tooltip/index.mjs 327.00 B
150
+ ESM dist/components/tooltip/tooltip-utils.mjs 221.00 B
151
+ ESM dist/components/accordion/accordion.mjs 226.00 B
156
152
  ESM dist/components/toast/index.mjs 527.00 B
153
+ ESM dist/components/timePicker/useDateTimePicker.mjs 3.37 KB
154
+ ESM dist/components/textarea/index.mjs 260.00 B
157
155
  ESM dist/components/table/table-body.mjs 683.00 B
158
- ESM dist/components/toast/toast.mjs 358.00 B
156
+ ESM dist/components/toast/toast-utils.mjs 143.00 B
159
157
  ESM dist/components/table/table-head.mjs 683.00 B
160
- ESM dist/components/tabs/tabs.mjs 232.00 B
161
- ESM dist/components/switch/index.mjs 219.00 B
162
- ESM dist/components/select/select.mjs 640.00 B
158
+ ESM dist/components/toast/toast.mjs 358.00 B
159
+ ESM dist/components/table/index.mjs 824.00 B
160
+ ESM dist/components/tabs/index.mjs 248.00 B
163
161
  ESM dist/components/table/table.mjs 705.00 B
162
+ ESM dist/components/table/form-table.mjs 1.92 KB
163
+ ESM dist/components/select/select.mjs 640.00 B
164
164
  ESM dist/components/skeleton/skeleton.mjs 189.00 B
165
- ESM dist/components/table/definition-table.mjs 240.00 B
166
- ESM dist/components/starRating/index.mjs 371.00 B
167
- ESM dist/components/progress/index.mjs 295.00 B
165
+ ESM dist/components/switch/index.mjs 219.00 B
166
+ ESM dist/components/starRating/starRating.mjs 371.00 B
168
167
  ESM dist/components/radio/radio.mjs 253.00 B
168
+ ESM dist/components/progress/progress.mjs 259.00 B
169
169
  ESM dist/components/ripple/useRipple.mjs 158.00 B
170
- ESM dist/components/ripple/ripple.mjs 150.00 B
171
170
  ESM dist/components/scroll/index.mjs 231.00 B
172
- ESM dist/components/pagination/pagination.mjs 473.00 B
173
- ESM dist/components/pagination/usePagination.mjs 164.00 B
171
+ ESM dist/components/ripple/ripple.mjs 150.00 B
174
172
  ESM dist/components/picker/day.mjs 238.00 B
173
+ ESM dist/components/pagination/usePagination.mjs 164.00 B
175
174
  ESM dist/components/picker/datePicker.mjs 826.00 B
176
- ESM dist/components/picker/utils.mjs 265.00 B
175
+ ESM dist/components/pagination/pagination.mjs 473.00 B
176
+ ESM dist/components/input/input.mjs 386.00 B
177
177
  ESM dist/components/icon/template.mjs 127.00 B
178
178
  ESM dist/components/picker/index.mjs 1.02 KB
179
179
  ESM dist/components/list/listItem.mjs 364.00 B
180
180
  ESM dist/components/modal/index.mjs 741.00 B
181
+ ESM dist/components/picker/utils.mjs 265.00 B
181
182
  ESM dist/components/list/list.mjs 216.00 B
182
- ESM dist/components/input/index.mjs 391.00 B
183
+ ESM dist/components/chip/index.mjs 353.00 B
183
184
  ESM dist/components/drawer/index.mjs 289.00 B
184
- ESM dist/components/icon/Icon.mjs 213.00 B
185
185
  ESM dist/components/fileUpload/index.mjs 861.00 B
186
186
  ESM dist/components/charts/circularProgress.mjs 240.00 B
187
- ESM dist/components/checkbox/checkbox.mjs 259.00 B
188
- ESM dist/components/chip/index.mjs 353.00 B
189
- ESM dist/components/charts/simpleBarChart.mjs 236.00 B
187
+ ESM dist/components/icon/Icon.mjs 213.00 B
190
188
  ESM dist/components/charts/index.mjs 834.00 B
191
- ESM dist/components/charts/barChart.mjs 262.00 B
189
+ ESM dist/components/charts/radarChart.mjs 228.00 B
192
190
  ESM dist/components/backdrop/index.mjs 260.00 B
193
- ESM dist/components/button/button-group.mjs 197.00 B
191
+ ESM dist/components/charts/barChart.mjs 262.00 B
192
+ ESM dist/components/checkbox/checkbox.mjs 259.00 B
194
193
  ESM dist/components/button/button.mjs 430.00 B
195
- ESM dist/components/charts/radarChart.mjs 228.00 B
196
- ESM dist/components/button/icon-button.mjs 440.00 B
194
+ ESM dist/components/charts/simpleBarChart.mjs 236.00 B
195
+ ESM dist/components/button/button-group.mjs 197.00 B
197
196
  ESM dist/components/breadcrumb/index.mjs 686.00 B
197
+ ESM dist/components/button/icon-button.mjs 440.00 B
198
198
  ESM dist/components/button/index.mjs 811.00 B
199
199
  ESM dist/components/accordion/index.mjs 373.00 B
200
- ESM dist/components/accordion/accordionItem.mjs 234.00 B
201
200
  ESM dist/components/avatar/index.mjs 254.00 B
202
- ESM dist/components/picker/timePicker/index.mjs 924.00 B
201
+ ESM dist/components/accordion/accordionItem.mjs 234.00 B
203
202
  ESM dist/components/picker/timePicker/WheelColumn.mjs 150.00 B
204
- ESM ⚡️ Build success in 397ms
203
+ ESM dist/components/picker/timePicker/index.mjs 924.00 B
204
+ ESM ⚡️ Build success in 405ms
205
205
  CJS dist/hooks/useIsMounted.js 1.87 KB
206
206
  CJS dist/fonts/NanumSquare_acB.js 113.00 B
207
- CJS dist/fonts/NanumSquare_acL.js 113.00 B
208
- CJS dist/fonts/NanumSquare_acR.js 113.00 B
209
- CJS dist/fonts/font.css 777.00 B
207
+ CJS dist/utils/clsx.js 1.77 KB
210
208
  CJS dist/utils/props.js 1.59 KB
209
+ CJS dist/fonts/NanumSquare_acEB.js 116.00 B
211
210
  CJS dist/utils/tailwind-variants.js 8.79 KB
212
211
  CJS dist/utils/types.js 778.00 B
213
- CJS dist/fonts/NanumSquare_acEB.js 116.00 B
214
- CJS dist/components/accordion/accordion.js 11.23 KB
215
212
  CJS dist/components/accordion/accordionItem.js 15.38 KB
216
213
  CJS dist/components/accordion/index.js 17.52 KB
217
214
  CJS dist/components/backdrop/backdrop.js 10.19 KB
218
215
  CJS dist/components/backdrop/index.js 10.33 KB
216
+ CJS dist/fonts/NanumSquare_acR.js 113.00 B
217
+ CJS dist/fonts/NanumSquare_acL.js 113.00 B
219
218
  CJS dist/components/button/button-group.js 9.45 KB
219
+ CJS dist/fonts/font.css 777.00 B
220
+ CJS dist/components/charts/barChart.js 19.68 KB
220
221
  CJS dist/components/button/text-button.js 14.35 KB
221
- CJS dist/components/charts/areaChart.js 17.94 KB
222
222
  CJS dist/components/charts/circularProgress.js 14.74 KB
223
- CJS dist/components/charts/barChart.js 19.68 KB
224
- CJS dist/components/charts/index.js 46.57 KB
225
223
  CJS dist/components/charts/radarChart.js 13.85 KB
226
- CJS dist/utils/clsx.js 1.77 KB
227
- CJS dist/components/checkbox/checkbox.js 16.64 KB
228
224
  CJS dist/components/charts/simpleBarChart.js 17.16 KB
225
+ CJS dist/components/checkbox/checkbox.js 16.64 KB
226
+ CJS dist/components/charts/areaChart.js 17.94 KB
227
+ CJS dist/components/accordion/accordion.js 11.23 KB
229
228
  CJS dist/components/checkbox/index.js 16.78 KB
230
229
  CJS dist/components/drawer/drawer.js 15.10 KB
230
+ CJS dist/components/charts/index.js 46.57 KB
231
231
  CJS dist/components/drawer/index.js 15.23 KB
232
232
  CJS dist/components/list/list.js 10.46 KB
233
233
  CJS dist/components/pagination/usePagination.js 1.88 KB
234
234
  CJS dist/components/picker/day.js 10.81 KB
235
+ CJS dist/components/picker/utils.js 2.20 KB
235
236
  CJS dist/components/progress/index.js 13.91 KB
236
237
  CJS dist/components/progress/progress.js 13.77 KB
237
- CJS dist/components/radio/index.js 15.91 KB
238
- CJS dist/components/radio/radio.js 15.78 KB
239
238
  CJS dist/components/ripple/index.js 3.66 KB
240
- CJS dist/components/ripple/ripple.js 2.57 KB
241
239
  CJS dist/components/ripple/useRipple.js 2.04 KB
242
240
  CJS dist/components/scroll/index.js 2.90 KB
241
+ CJS dist/components/ripple/ripple.js 2.57 KB
243
242
  CJS dist/components/scroll/scrollArea.js 2.78 KB
244
- CJS dist/components/picker/utils.js 2.20 KB
245
243
  CJS dist/components/skeleton/index.js 3.68 KB
244
+ CJS dist/components/radio/index.js 15.91 KB
246
245
  CJS dist/components/skeleton/skeleton.js 3.54 KB
246
+ CJS dist/components/radio/radio.js 15.78 KB
247
+ CJS dist/components/switch/index.js 5.90 KB
247
248
  CJS dist/components/table/definition-table.js 13.78 KB
249
+ CJS dist/components/switch/switch.js 5.77 KB
248
250
  CJS dist/components/table/form-table.js 10.78 KB
249
- CJS dist/components/tabs/index.js 15.60 KB
250
251
  CJS dist/components/tabs/tabs.js 15.59 KB
251
- CJS dist/components/switch/switch.js 5.77 KB
252
- CJS dist/components/textarea/index.js 11.84 KB
252
+ CJS dist/components/tabs/index.js 15.60 KB
253
253
  CJS dist/components/textarea/textarea.js 11.71 KB
254
- CJS dist/components/switch/index.js 5.90 KB
254
+ CJS dist/components/textarea/index.js 11.84 KB
255
255
  CJS dist/components/timePicker/useDateTimePicker.js 4.81 KB
256
256
  CJS dist/components/toast/toast-utils.js 1.85 KB
257
- CJS dist/components/tooltip/index.js 18.73 KB
258
- CJS dist/components/tooltip/tooltip-utils.js 4.90 KB
259
257
  CJS dist/components/tooltip/tooltip.js 18.59 KB
260
258
  CJS dist/components/tooltip/useTooltip.js 4.19 KB
261
- CJS dist/components/picker/timePicker/WheelColumn.js 4.04 KB
262
- CJS dist/components/picker/timePicker/Panel.js 21.09 KB
263
- CJS dist/NanumSquare_acB-VMSVRKSM.ttf 625.04 KB
259
+ CJS dist/components/tooltip/index.js 18.73 KB
260
+ CJS dist/components/picker/timePicker/Panel.js 20.29 KB
261
+ CJS dist/components/picker/timePicker/WheelColumn.js 3.24 KB
262
+ CJS dist/components/tooltip/tooltip-utils.js 4.90 KB
264
263
  CJS dist/NanumSquare_acR-RZCHPXSJ.ttf 631.56 KB
265
264
  CJS dist/NanumSquare_acL-FSAAP5CK.ttf 642.08 KB
266
- CJS dist/components/avatar/avatar.js 790.68 KB
265
+ CJS dist/NanumSquare_acEB-HRZ3QLG2.ttf 618.41 KB
267
266
  CJS dist/components/avatar/index.js 790.81 KB
268
- CJS dist/components/breadcrumb/breadcrumb.js 798.48 KB
267
+ CJS dist/components/button/button.js 806.49 KB
268
+ CJS dist/NanumSquare_acB-VMSVRKSM.ttf 625.04 KB
269
269
  CJS dist/components/breadcrumb/index.js 798.62 KB
270
270
  CJS dist/components/button/icon-button.js 802.31 KB
271
- CJS dist/components/button/button.js 806.49 KB
271
+ CJS dist/components/breadcrumb/breadcrumb.js 798.48 KB
272
272
  CJS dist/components/button/index.js 821.85 KB
273
- CJS dist/components/chip/index.js 794.49 KB
274
- CJS dist/components/fileUpload/fileUpload.js 831.63 KB
275
273
  CJS dist/components/chip/chip.js 794.36 KB
274
+ CJS dist/components/avatar/avatar.js 790.68 KB
275
+ CJS dist/components/fileUpload/fileUpload.js 831.63 KB
276
+ CJS dist/components/chip/index.js 794.49 KB
276
277
  CJS dist/components/icon/Icon.js 782.31 KB
277
278
  CJS dist/components/fileUpload/index.js 831.58 KB
278
- CJS dist/components/input/index.js 804.95 KB
279
- CJS dist/components/icon/template.js 781.38 KB
280
279
  CJS dist/components/input/input.js 804.96 KB
281
- CJS dist/components/icon/index.js 782.31 KB
282
- CJS dist/components/list/listItem.js 799.29 KB
283
280
  CJS dist/components/list/index.js 801.25 KB
281
+ CJS dist/components/icon/index.js 782.31 KB
282
+ CJS dist/components/input/index.js 804.95 KB
283
+ CJS dist/components/icon/template.js 781.38 KB
284
+ CJS dist/components/pagination/pagination.js 816.88 KB
284
285
  CJS dist/components/modal/index.js 812.84 KB
285
286
  CJS dist/components/modal/modal.js 812.71 KB
286
287
  CJS dist/components/pagination/index.js 817.02 KB
287
- CJS dist/NanumSquare_acEB-HRZ3QLG2.ttf 618.41 KB
288
- CJS dist/components/pagination/pagination.js 816.88 KB
288
+ CJS dist/components/list/listItem.js 799.29 KB
289
+ CJS dist/components/picker/index.js 871.55 KB
290
+ CJS dist/components/select/select.js 820.63 KB
289
291
  CJS dist/components/picker/datePicker.js 856.64 KB
290
- CJS dist/components/picker/index.js 872.36 KB
291
292
  CJS dist/components/select/index.js 820.76 KB
292
- CJS dist/components/select/select.js 820.63 KB
293
- CJS dist/components/starRating/index.js 794.93 KB
294
293
  CJS dist/components/starRating/starRating.js 794.94 KB
295
- CJS dist/components/table/index.js 846.56 KB
294
+ CJS dist/components/starRating/index.js 794.93 KB
296
295
  CJS dist/components/table/table-body.js 842.13 KB
296
+ CJS dist/components/table/index.js 846.56 KB
297
297
  CJS dist/components/table/table.js 842.24 KB
298
- CJS dist/components/table/table-head.js 842.13 KB
299
298
  CJS dist/components/timePicker/calendar.js 802.10 KB
300
- CJS dist/components/toast/index.js 798.92 KB
301
- CJS dist/components/toast/toast.js 795.28 KB
302
299
  CJS dist/components/toast/use-toast.js 798.86 KB
303
300
  CJS dist/components/tree/index.js 797.35 KB
304
- CJS dist/index.js 1.05 MB
305
- CJS dist/components/picker/timePicker/index.js 824.34 KB
306
301
  CJS dist/components/tree/tree.js 797.39 KB
307
- CJS ⚡️ Build success in 462ms
308
- DTS ⚡️ Build success in 19923ms
302
+ CJS dist/components/toast/index.js 798.92 KB
303
+ CJS dist/components/table/table-head.js 842.13 KB
304
+ CJS dist/components/toast/toast.js 795.28 KB
305
+ CJS dist/index.js 1.05 MB
306
+ CJS dist/components/picker/timePicker/index.js 823.53 KB
307
+ CJS ⚡️ Build success in 689ms
308
+ DTS ⚡️ Build success in 19489ms
309
309
  DTS dist/index.d.ts 3.74 KB
310
310
  DTS dist/components/accordion/index.d.ts 229.00 B
311
311
  DTS dist/components/button/index.d.ts 415.00 B
@@ -368,10 +368,10 @@ Browserslist: browsers data (caniuse-lite) is 8 months old. Please run:
368
368
  DTS dist/components/ripple/ripple.d.ts 820.00 B
369
369
  DTS dist/components/scroll/scrollArea.d.ts 423.00 B
370
370
  DTS dist/components/select/select.d.ts 9.95 KB
371
- DTS dist/components/starRating/starRating.d.ts 1.63 KB
372
371
  DTS dist/components/skeleton/skeleton.d.ts 425.00 B
373
- DTS dist/components/tabs/tabs.d.ts 3.09 KB
372
+ DTS dist/components/starRating/starRating.d.ts 1.63 KB
374
373
  DTS dist/components/switch/switch.d.ts 4.08 KB
374
+ DTS dist/components/tabs/tabs.d.ts 3.09 KB
375
375
  DTS dist/components/textarea/textarea.d.ts 6.85 KB
376
376
  DTS dist/components/tooltip/tooltip.d.ts 2.19 KB
377
377
  DTS dist/components/tree/tree.d.ts 3.63 KB
@@ -397,10 +397,10 @@ Browserslist: browsers data (caniuse-lite) is 8 months old. Please run:
397
397
  DTS dist/components/ripple/index.d.ts 157.00 B
398
398
  DTS dist/components/scroll/index.d.ts 101.00 B
399
399
  DTS dist/components/select/index.d.ts 272.00 B
400
- DTS dist/components/starRating/index.d.ts 149.00 B
401
400
  DTS dist/components/skeleton/index.d.ts 81.00 B
402
- DTS dist/components/tabs/index.d.ts 179.00 B
401
+ DTS dist/components/starRating/index.d.ts 149.00 B
403
402
  DTS dist/components/switch/index.d.ts 124.00 B
403
+ DTS dist/components/tabs/index.d.ts 179.00 B
404
404
  DTS dist/components/textarea/index.d.ts 143.00 B
405
405
  DTS dist/components/tooltip/index.d.ts 182.00 B
406
406
  DTS dist/components/tree/index.d.ts 183.00 B
@@ -467,10 +467,10 @@ Browserslist: browsers data (caniuse-lite) is 8 months old. Please run:
467
467
  DTS dist/components/ripple/ripple.d.mts 821.00 B
468
468
  DTS dist/components/scroll/scrollArea.d.mts 423.00 B
469
469
  DTS dist/components/select/select.d.mts 9.95 KB
470
- DTS dist/components/starRating/starRating.d.mts 1.63 KB
471
470
  DTS dist/components/skeleton/skeleton.d.mts 425.00 B
472
- DTS dist/components/tabs/tabs.d.mts 3.09 KB
471
+ DTS dist/components/starRating/starRating.d.mts 1.63 KB
473
472
  DTS dist/components/switch/switch.d.mts 4.08 KB
473
+ DTS dist/components/tabs/tabs.d.mts 3.09 KB
474
474
  DTS dist/components/textarea/textarea.d.mts 6.85 KB
475
475
  DTS dist/components/tooltip/tooltip.d.mts 2.20 KB
476
476
  DTS dist/components/tree/tree.d.mts 3.63 KB
@@ -496,13 +496,13 @@ Browserslist: browsers data (caniuse-lite) is 8 months old. Please run:
496
496
  DTS dist/components/ripple/index.d.mts 159.00 B
497
497
  DTS dist/components/scroll/index.d.mts 102.00 B
498
498
  DTS dist/components/select/index.d.mts 276.00 B
499
- DTS dist/components/starRating/index.d.mts 151.00 B
500
499
  DTS dist/components/skeleton/index.d.mts 82.00 B
501
- DTS dist/components/tabs/index.d.mts 181.00 B
500
+ DTS dist/components/starRating/index.d.mts 151.00 B
502
501
  DTS dist/components/switch/index.d.mts 126.00 B
502
+ DTS dist/components/tabs/index.d.mts 181.00 B
503
503
  DTS dist/components/textarea/index.d.mts 145.00 B
504
504
  DTS dist/components/tooltip/index.d.mts 185.00 B
505
505
  DTS dist/components/tree/index.d.mts 185.00 B
506
506
  DTS dist/tooltip-utils-DO3LQaVM.d.mts 2.05 KB
507
507
  $ copyfiles -u 2 src/fonts/**/* dist/fonts
508
- Done in 20.74s.
508
+ Done in 20.28s.
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  WheelColumn
4
- } from "./chunk-D6BMDE2K.mjs";
4
+ } from "./chunk-RKHH3CUS.mjs";
5
5
  import {
6
6
  convert24To12,
7
7
  getCurrent12Hour
@@ -1,75 +1,57 @@
1
1
  "use client";
2
2
 
3
3
  // src/components/picker/timePicker/WheelColumn.tsx
4
- import { useEffect, useRef, useState } from "react";
4
+ import { useEffect, useRef } from "react";
5
5
  import { jsx, jsxs } from "react/jsx-runtime";
6
6
  var ITEM_HEIGHT = 30;
7
7
  var ACTIVE_HEIGHT = 34;
8
8
  function WheelColumn({ list, value, onChange }) {
9
9
  const ref = useRef(null);
10
- const internalChangeRef = useRef(false);
11
- const [currentIndex, setCurrentIndex] = useState(0);
12
- const scrollToIndex = (index, behavior = "smooth") => {
13
- if (!ref.current) return;
14
- const diff = ACTIVE_HEIGHT - ITEM_HEIGHT;
15
- let centerOffset = index > 0 && behavior === "auto" ? diff : 0;
16
- if (behavior === "auto" && (currentIndex !== 0 || index === 1)) centerOffset -= 4;
17
- const top = index * ITEM_HEIGHT + centerOffset;
18
- ref.current.scrollTo({ top, behavior });
19
- };
10
+ const idx = list.indexOf(value);
20
11
  const finalizeScroll = (index) => {
21
- internalChangeRef.current = true;
22
12
  const v = list[index];
23
- setCurrentIndex(index);
24
- scrollToIndex(index, "smooth");
25
13
  if (v) onChange(v);
26
14
  };
27
15
  const handleClick = (index) => finalizeScroll(index);
28
- useEffect(() => {
29
- if (!ref.current || !value) return;
30
- const idx = list.indexOf(value);
31
- if (idx < 0) return;
32
- if (internalChangeRef.current) {
33
- internalChangeRef.current = false;
34
- return;
35
- }
36
- setCurrentIndex(idx);
37
- scrollToIndex(idx, "auto");
38
- }, [value]);
39
16
  useEffect(() => {
40
17
  const el = ref.current;
41
- if (!el) return;
18
+ if (!el || idx < 0) return;
42
19
  const handleWheel = (e) => {
43
20
  e.preventDefault();
44
- let newIndex = currentIndex;
21
+ let newIndex = idx;
45
22
  if (e.deltaY > 0) {
46
- newIndex = Math.min(currentIndex + 1, list.length - 1);
23
+ newIndex = Math.min(idx + 1, list.length - 1);
47
24
  } else if (e.deltaY < 0) {
48
- newIndex = Math.max(currentIndex - 1, 0);
25
+ newIndex = Math.max(idx - 1, 0);
49
26
  }
50
27
  finalizeScroll(newIndex);
51
28
  };
52
29
  el.addEventListener("wheel", handleWheel, { passive: false });
53
30
  return () => el.removeEventListener("wheel", handleWheel);
54
- }, [currentIndex, list, onChange]);
31
+ }, [idx, list, onChange]);
32
+ useEffect(() => {
33
+ const el = ref.current;
34
+ if (!el || idx < 0) return;
35
+ el.scrollTo({ top: idx * ITEM_HEIGHT });
36
+ }, [idx]);
55
37
  return /* @__PURE__ */ jsxs("div", { className: "relative h-[94px] w-[40px]", children: [
56
38
  /* @__PURE__ */ jsx("div", { className: "pointer-events-none absolute left-1/2 top-[30px] h-[34px] w-[40px] -translate-x-1/2 rounded-[10px] shadow-[inset_0_0_0_1.5px_var(--dn-primary-light)]" }),
57
39
  /* @__PURE__ */ jsxs("div", { ref, className: "scrollbar-none relative h-full select-none overflow-y-scroll py-[0]", children: [
58
40
  /* @__PURE__ */ jsx("div", { style: { height: ITEM_HEIGHT } }),
59
41
  list.map((v, i) => {
60
- const isActive = i === currentIndex;
42
+ const highlight = i === idx;
61
43
  return /* @__PURE__ */ jsx(
62
44
  "div",
63
45
  {
64
46
  onClick: () => handleClick(i),
65
- className: `flex items-center justify-center text-sm font-bold transition-all ${isActive ? "text-body-foreground" : "text-neutral-light"}`,
66
- style: { height: isActive ? ACTIVE_HEIGHT : ITEM_HEIGHT },
47
+ className: `flex items-center justify-center text-sm font-bold ${highlight ? "text-body-foreground" : "text-neutral-light"}`,
48
+ style: { height: highlight ? ACTIVE_HEIGHT : ITEM_HEIGHT },
67
49
  children: v
68
50
  },
69
51
  i
70
52
  );
71
53
  }),
72
- /* @__PURE__ */ jsx("div", { style: { height: list.length >= 3 ? ITEM_HEIGHT + 4 : ITEM_HEIGHT } })
54
+ /* @__PURE__ */ jsx("div", { style: { height: ITEM_HEIGHT + 4 } })
73
55
  ] })
74
56
  ] });
75
57
  }
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  Panel_default
4
- } from "./chunk-GNT7VXXE.mjs";
4
+ } from "./chunk-HYLTIUH3.mjs";
5
5
  import {
6
6
  convert24To12
7
7
  } from "./chunk-3IBJXQTJ.mjs";
@@ -7209,69 +7209,51 @@ var ITEM_HEIGHT = 30;
7209
7209
  var ACTIVE_HEIGHT = 34;
7210
7210
  function WheelColumn({ list, value, onChange }) {
7211
7211
  const ref = (0, import_react8.useRef)(null);
7212
- const internalChangeRef = (0, import_react8.useRef)(false);
7213
- const [currentIndex, setCurrentIndex] = (0, import_react8.useState)(0);
7214
- const scrollToIndex = (index, behavior = "smooth") => {
7215
- if (!ref.current) return;
7216
- const diff = ACTIVE_HEIGHT - ITEM_HEIGHT;
7217
- let centerOffset = index > 0 && behavior === "auto" ? diff : 0;
7218
- if (behavior === "auto" && (currentIndex !== 0 || index === 1)) centerOffset -= 4;
7219
- const top = index * ITEM_HEIGHT + centerOffset;
7220
- ref.current.scrollTo({ top, behavior });
7221
- };
7212
+ const idx = list.indexOf(value);
7222
7213
  const finalizeScroll = (index) => {
7223
- internalChangeRef.current = true;
7224
7214
  const v = list[index];
7225
- setCurrentIndex(index);
7226
- scrollToIndex(index, "smooth");
7227
7215
  if (v) onChange(v);
7228
7216
  };
7229
7217
  const handleClick = (index) => finalizeScroll(index);
7230
- (0, import_react8.useEffect)(() => {
7231
- if (!ref.current || !value) return;
7232
- const idx = list.indexOf(value);
7233
- if (idx < 0) return;
7234
- if (internalChangeRef.current) {
7235
- internalChangeRef.current = false;
7236
- return;
7237
- }
7238
- setCurrentIndex(idx);
7239
- scrollToIndex(idx, "auto");
7240
- }, [value]);
7241
7218
  (0, import_react8.useEffect)(() => {
7242
7219
  const el = ref.current;
7243
- if (!el) return;
7220
+ if (!el || idx < 0) return;
7244
7221
  const handleWheel = (e) => {
7245
7222
  e.preventDefault();
7246
- let newIndex = currentIndex;
7223
+ let newIndex = idx;
7247
7224
  if (e.deltaY > 0) {
7248
- newIndex = Math.min(currentIndex + 1, list.length - 1);
7225
+ newIndex = Math.min(idx + 1, list.length - 1);
7249
7226
  } else if (e.deltaY < 0) {
7250
- newIndex = Math.max(currentIndex - 1, 0);
7227
+ newIndex = Math.max(idx - 1, 0);
7251
7228
  }
7252
7229
  finalizeScroll(newIndex);
7253
7230
  };
7254
7231
  el.addEventListener("wheel", handleWheel, { passive: false });
7255
7232
  return () => el.removeEventListener("wheel", handleWheel);
7256
- }, [currentIndex, list, onChange]);
7233
+ }, [idx, list, onChange]);
7234
+ (0, import_react8.useEffect)(() => {
7235
+ const el = ref.current;
7236
+ if (!el || idx < 0) return;
7237
+ el.scrollTo({ top: idx * ITEM_HEIGHT });
7238
+ }, [idx]);
7257
7239
  return /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("div", { className: "relative h-[94px] w-[40px]", children: [
7258
7240
  /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { className: "pointer-events-none absolute left-1/2 top-[30px] h-[34px] w-[40px] -translate-x-1/2 rounded-[10px] shadow-[inset_0_0_0_1.5px_var(--dn-primary-light)]" }),
7259
7241
  /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("div", { ref, className: "scrollbar-none relative h-full select-none overflow-y-scroll py-[0]", children: [
7260
7242
  /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { style: { height: ITEM_HEIGHT } }),
7261
7243
  list.map((v, i) => {
7262
- const isActive = i === currentIndex;
7244
+ const highlight = i === idx;
7263
7245
  return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
7264
7246
  "div",
7265
7247
  {
7266
7248
  onClick: () => handleClick(i),
7267
- className: `flex items-center justify-center text-sm font-bold transition-all ${isActive ? "text-body-foreground" : "text-neutral-light"}`,
7268
- style: { height: isActive ? ACTIVE_HEIGHT : ITEM_HEIGHT },
7249
+ className: `flex items-center justify-center text-sm font-bold ${highlight ? "text-body-foreground" : "text-neutral-light"}`,
7250
+ style: { height: highlight ? ACTIVE_HEIGHT : ITEM_HEIGHT },
7269
7251
  children: v
7270
7252
  },
7271
7253
  i
7272
7254
  );
7273
7255
  }),
7274
- /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { style: { height: list.length >= 3 ? ITEM_HEIGHT + 4 : ITEM_HEIGHT } })
7256
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { style: { height: ITEM_HEIGHT + 4 } })
7275
7257
  ] })
7276
7258
  ] });
7277
7259
  }
@@ -2,9 +2,9 @@
2
2
  import "../../chunk-4VWG4726.mjs";
3
3
  import {
4
4
  timePicker_default
5
- } from "../../chunk-CELXDJP2.mjs";
6
- import "../../chunk-GNT7VXXE.mjs";
7
- import "../../chunk-D6BMDE2K.mjs";
5
+ } from "../../chunk-XKWKJQEF.mjs";
6
+ import "../../chunk-HYLTIUH3.mjs";
7
+ import "../../chunk-RKHH3CUS.mjs";
8
8
  import {
9
9
  datePicker_default
10
10
  } from "../../chunk-JPNMYMDN.mjs";
@@ -115,69 +115,51 @@ var ITEM_HEIGHT = 30;
115
115
  var ACTIVE_HEIGHT = 34;
116
116
  function WheelColumn({ list, value, onChange }) {
117
117
  const ref = (0, import_react.useRef)(null);
118
- const internalChangeRef = (0, import_react.useRef)(false);
119
- const [currentIndex, setCurrentIndex] = (0, import_react.useState)(0);
120
- const scrollToIndex = (index, behavior = "smooth") => {
121
- if (!ref.current) return;
122
- const diff = ACTIVE_HEIGHT - ITEM_HEIGHT;
123
- let centerOffset = index > 0 && behavior === "auto" ? diff : 0;
124
- if (behavior === "auto" && (currentIndex !== 0 || index === 1)) centerOffset -= 4;
125
- const top = index * ITEM_HEIGHT + centerOffset;
126
- ref.current.scrollTo({ top, behavior });
127
- };
118
+ const idx = list.indexOf(value);
128
119
  const finalizeScroll = (index) => {
129
- internalChangeRef.current = true;
130
120
  const v = list[index];
131
- setCurrentIndex(index);
132
- scrollToIndex(index, "smooth");
133
121
  if (v) onChange(v);
134
122
  };
135
123
  const handleClick = (index) => finalizeScroll(index);
136
- (0, import_react.useEffect)(() => {
137
- if (!ref.current || !value) return;
138
- const idx = list.indexOf(value);
139
- if (idx < 0) return;
140
- if (internalChangeRef.current) {
141
- internalChangeRef.current = false;
142
- return;
143
- }
144
- setCurrentIndex(idx);
145
- scrollToIndex(idx, "auto");
146
- }, [value]);
147
124
  (0, import_react.useEffect)(() => {
148
125
  const el = ref.current;
149
- if (!el) return;
126
+ if (!el || idx < 0) return;
150
127
  const handleWheel = (e) => {
151
128
  e.preventDefault();
152
- let newIndex = currentIndex;
129
+ let newIndex = idx;
153
130
  if (e.deltaY > 0) {
154
- newIndex = Math.min(currentIndex + 1, list.length - 1);
131
+ newIndex = Math.min(idx + 1, list.length - 1);
155
132
  } else if (e.deltaY < 0) {
156
- newIndex = Math.max(currentIndex - 1, 0);
133
+ newIndex = Math.max(idx - 1, 0);
157
134
  }
158
135
  finalizeScroll(newIndex);
159
136
  };
160
137
  el.addEventListener("wheel", handleWheel, { passive: false });
161
138
  return () => el.removeEventListener("wheel", handleWheel);
162
- }, [currentIndex, list, onChange]);
139
+ }, [idx, list, onChange]);
140
+ (0, import_react.useEffect)(() => {
141
+ const el = ref.current;
142
+ if (!el || idx < 0) return;
143
+ el.scrollTo({ top: idx * ITEM_HEIGHT });
144
+ }, [idx]);
163
145
  return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "relative h-[94px] w-[40px]", children: [
164
146
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "pointer-events-none absolute left-1/2 top-[30px] h-[34px] w-[40px] -translate-x-1/2 rounded-[10px] shadow-[inset_0_0_0_1.5px_var(--dn-primary-light)]" }),
165
147
  /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { ref, className: "scrollbar-none relative h-full select-none overflow-y-scroll py-[0]", children: [
166
148
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { style: { height: ITEM_HEIGHT } }),
167
149
  list.map((v, i) => {
168
- const isActive = i === currentIndex;
150
+ const highlight = i === idx;
169
151
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
170
152
  "div",
171
153
  {
172
154
  onClick: () => handleClick(i),
173
- className: `flex items-center justify-center text-sm font-bold transition-all ${isActive ? "text-body-foreground" : "text-neutral-light"}`,
174
- style: { height: isActive ? ACTIVE_HEIGHT : ITEM_HEIGHT },
155
+ className: `flex items-center justify-center text-sm font-bold ${highlight ? "text-body-foreground" : "text-neutral-light"}`,
156
+ style: { height: highlight ? ACTIVE_HEIGHT : ITEM_HEIGHT },
175
157
  children: v
176
158
  },
177
159
  i
178
160
  );
179
161
  }),
180
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { style: { height: list.length >= 3 ? ITEM_HEIGHT + 4 : ITEM_HEIGHT } })
162
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { style: { height: ITEM_HEIGHT + 4 } })
181
163
  ] })
182
164
  ] });
183
165
  }
@@ -2,8 +2,8 @@
2
2
  import {
3
3
  Panel_default,
4
4
  TimePickerPanel
5
- } from "../../../chunk-GNT7VXXE.mjs";
6
- import "../../../chunk-D6BMDE2K.mjs";
5
+ } from "../../../chunk-HYLTIUH3.mjs";
6
+ import "../../../chunk-RKHH3CUS.mjs";
7
7
  import "../../../chunk-3IBJXQTJ.mjs";
8
8
  import "../../../chunk-MY5U63QO.mjs";
9
9
  import "../../../chunk-4LUASWAN.mjs";
@@ -30,69 +30,51 @@ var ITEM_HEIGHT = 30;
30
30
  var ACTIVE_HEIGHT = 34;
31
31
  function WheelColumn({ list, value, onChange }) {
32
32
  const ref = (0, import_react.useRef)(null);
33
- const internalChangeRef = (0, import_react.useRef)(false);
34
- const [currentIndex, setCurrentIndex] = (0, import_react.useState)(0);
35
- const scrollToIndex = (index, behavior = "smooth") => {
36
- if (!ref.current) return;
37
- const diff = ACTIVE_HEIGHT - ITEM_HEIGHT;
38
- let centerOffset = index > 0 && behavior === "auto" ? diff : 0;
39
- if (behavior === "auto" && (currentIndex !== 0 || index === 1)) centerOffset -= 4;
40
- const top = index * ITEM_HEIGHT + centerOffset;
41
- ref.current.scrollTo({ top, behavior });
42
- };
33
+ const idx = list.indexOf(value);
43
34
  const finalizeScroll = (index) => {
44
- internalChangeRef.current = true;
45
35
  const v = list[index];
46
- setCurrentIndex(index);
47
- scrollToIndex(index, "smooth");
48
36
  if (v) onChange(v);
49
37
  };
50
38
  const handleClick = (index) => finalizeScroll(index);
51
- (0, import_react.useEffect)(() => {
52
- if (!ref.current || !value) return;
53
- const idx = list.indexOf(value);
54
- if (idx < 0) return;
55
- if (internalChangeRef.current) {
56
- internalChangeRef.current = false;
57
- return;
58
- }
59
- setCurrentIndex(idx);
60
- scrollToIndex(idx, "auto");
61
- }, [value]);
62
39
  (0, import_react.useEffect)(() => {
63
40
  const el = ref.current;
64
- if (!el) return;
41
+ if (!el || idx < 0) return;
65
42
  const handleWheel = (e) => {
66
43
  e.preventDefault();
67
- let newIndex = currentIndex;
44
+ let newIndex = idx;
68
45
  if (e.deltaY > 0) {
69
- newIndex = Math.min(currentIndex + 1, list.length - 1);
46
+ newIndex = Math.min(idx + 1, list.length - 1);
70
47
  } else if (e.deltaY < 0) {
71
- newIndex = Math.max(currentIndex - 1, 0);
48
+ newIndex = Math.max(idx - 1, 0);
72
49
  }
73
50
  finalizeScroll(newIndex);
74
51
  };
75
52
  el.addEventListener("wheel", handleWheel, { passive: false });
76
53
  return () => el.removeEventListener("wheel", handleWheel);
77
- }, [currentIndex, list, onChange]);
54
+ }, [idx, list, onChange]);
55
+ (0, import_react.useEffect)(() => {
56
+ const el = ref.current;
57
+ if (!el || idx < 0) return;
58
+ el.scrollTo({ top: idx * ITEM_HEIGHT });
59
+ }, [idx]);
78
60
  return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "relative h-[94px] w-[40px]", children: [
79
61
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "pointer-events-none absolute left-1/2 top-[30px] h-[34px] w-[40px] -translate-x-1/2 rounded-[10px] shadow-[inset_0_0_0_1.5px_var(--dn-primary-light)]" }),
80
62
  /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { ref, className: "scrollbar-none relative h-full select-none overflow-y-scroll py-[0]", children: [
81
63
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { style: { height: ITEM_HEIGHT } }),
82
64
  list.map((v, i) => {
83
- const isActive = i === currentIndex;
65
+ const highlight = i === idx;
84
66
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
85
67
  "div",
86
68
  {
87
69
  onClick: () => handleClick(i),
88
- className: `flex items-center justify-center text-sm font-bold transition-all ${isActive ? "text-body-foreground" : "text-neutral-light"}`,
89
- style: { height: isActive ? ACTIVE_HEIGHT : ITEM_HEIGHT },
70
+ className: `flex items-center justify-center text-sm font-bold ${highlight ? "text-body-foreground" : "text-neutral-light"}`,
71
+ style: { height: highlight ? ACTIVE_HEIGHT : ITEM_HEIGHT },
90
72
  children: v
91
73
  },
92
74
  i
93
75
  );
94
76
  }),
95
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { style: { height: list.length >= 3 ? ITEM_HEIGHT + 4 : ITEM_HEIGHT } })
77
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { style: { height: ITEM_HEIGHT + 4 } })
96
78
  ] })
97
79
  ] });
98
80
  }
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  WheelColumn
4
- } from "../../../chunk-D6BMDE2K.mjs";
4
+ } from "../../../chunk-RKHH3CUS.mjs";
5
5
  import "../../../chunk-AC6TWLRT.mjs";
6
6
  export {
7
7
  WheelColumn as default
@@ -5167,69 +5167,51 @@ var ITEM_HEIGHT = 30;
5167
5167
  var ACTIVE_HEIGHT = 34;
5168
5168
  function WheelColumn({ list, value, onChange }) {
5169
5169
  const ref = (0, import_react.useRef)(null);
5170
- const internalChangeRef = (0, import_react.useRef)(false);
5171
- const [currentIndex, setCurrentIndex] = (0, import_react.useState)(0);
5172
- const scrollToIndex = (index, behavior = "smooth") => {
5173
- if (!ref.current) return;
5174
- const diff = ACTIVE_HEIGHT - ITEM_HEIGHT;
5175
- let centerOffset = index > 0 && behavior === "auto" ? diff : 0;
5176
- if (behavior === "auto" && (currentIndex !== 0 || index === 1)) centerOffset -= 4;
5177
- const top = index * ITEM_HEIGHT + centerOffset;
5178
- ref.current.scrollTo({ top, behavior });
5179
- };
5170
+ const idx = list.indexOf(value);
5180
5171
  const finalizeScroll = (index) => {
5181
- internalChangeRef.current = true;
5182
5172
  const v = list[index];
5183
- setCurrentIndex(index);
5184
- scrollToIndex(index, "smooth");
5185
5173
  if (v) onChange(v);
5186
5174
  };
5187
5175
  const handleClick = (index) => finalizeScroll(index);
5188
- (0, import_react.useEffect)(() => {
5189
- if (!ref.current || !value) return;
5190
- const idx = list.indexOf(value);
5191
- if (idx < 0) return;
5192
- if (internalChangeRef.current) {
5193
- internalChangeRef.current = false;
5194
- return;
5195
- }
5196
- setCurrentIndex(idx);
5197
- scrollToIndex(idx, "auto");
5198
- }, [value]);
5199
5176
  (0, import_react.useEffect)(() => {
5200
5177
  const el = ref.current;
5201
- if (!el) return;
5178
+ if (!el || idx < 0) return;
5202
5179
  const handleWheel = (e) => {
5203
5180
  e.preventDefault();
5204
- let newIndex = currentIndex;
5181
+ let newIndex = idx;
5205
5182
  if (e.deltaY > 0) {
5206
- newIndex = Math.min(currentIndex + 1, list.length - 1);
5183
+ newIndex = Math.min(idx + 1, list.length - 1);
5207
5184
  } else if (e.deltaY < 0) {
5208
- newIndex = Math.max(currentIndex - 1, 0);
5185
+ newIndex = Math.max(idx - 1, 0);
5209
5186
  }
5210
5187
  finalizeScroll(newIndex);
5211
5188
  };
5212
5189
  el.addEventListener("wheel", handleWheel, { passive: false });
5213
5190
  return () => el.removeEventListener("wheel", handleWheel);
5214
- }, [currentIndex, list, onChange]);
5191
+ }, [idx, list, onChange]);
5192
+ (0, import_react.useEffect)(() => {
5193
+ const el = ref.current;
5194
+ if (!el || idx < 0) return;
5195
+ el.scrollTo({ top: idx * ITEM_HEIGHT });
5196
+ }, [idx]);
5215
5197
  return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "relative h-[94px] w-[40px]", children: [
5216
5198
  /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { className: "pointer-events-none absolute left-1/2 top-[30px] h-[34px] w-[40px] -translate-x-1/2 rounded-[10px] shadow-[inset_0_0_0_1.5px_var(--dn-primary-light)]" }),
5217
5199
  /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { ref, className: "scrollbar-none relative h-full select-none overflow-y-scroll py-[0]", children: [
5218
5200
  /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { style: { height: ITEM_HEIGHT } }),
5219
5201
  list.map((v, i) => {
5220
- const isActive = i === currentIndex;
5202
+ const highlight = i === idx;
5221
5203
  return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
5222
5204
  "div",
5223
5205
  {
5224
5206
  onClick: () => handleClick(i),
5225
- className: `flex items-center justify-center text-sm font-bold transition-all ${isActive ? "text-body-foreground" : "text-neutral-light"}`,
5226
- style: { height: isActive ? ACTIVE_HEIGHT : ITEM_HEIGHT },
5207
+ className: `flex items-center justify-center text-sm font-bold ${highlight ? "text-body-foreground" : "text-neutral-light"}`,
5208
+ style: { height: highlight ? ACTIVE_HEIGHT : ITEM_HEIGHT },
5227
5209
  children: v
5228
5210
  },
5229
5211
  i
5230
5212
  );
5231
5213
  }),
5232
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { style: { height: list.length >= 3 ? ITEM_HEIGHT + 4 : ITEM_HEIGHT } })
5214
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { style: { height: ITEM_HEIGHT + 4 } })
5233
5215
  ] })
5234
5216
  ] });
5235
5217
  }
@@ -2,9 +2,9 @@
2
2
  import {
3
3
  timePickerStyle,
4
4
  timePicker_default
5
- } from "../../../chunk-CELXDJP2.mjs";
6
- import "../../../chunk-GNT7VXXE.mjs";
7
- import "../../../chunk-D6BMDE2K.mjs";
5
+ } from "../../../chunk-XKWKJQEF.mjs";
6
+ import "../../../chunk-HYLTIUH3.mjs";
7
+ import "../../../chunk-RKHH3CUS.mjs";
8
8
  import "../../../chunk-3IBJXQTJ.mjs";
9
9
  import "../../../chunk-2GCSFWHD.mjs";
10
10
  import "../../../chunk-3RTVVQA3.mjs";
@@ -1,11 +1,11 @@
1
1
  "use client";
2
2
  import "../../chunk-DX3KXNP6.mjs";
3
- import {
4
- table_default
5
- } from "../../chunk-W3V4SZV5.mjs";
6
3
  import {
7
4
  definition_table_default
8
5
  } from "../../chunk-DS5CGU2X.mjs";
6
+ import {
7
+ table_default
8
+ } from "../../chunk-W3V4SZV5.mjs";
9
9
  import "../../chunk-7B7LRG5J.mjs";
10
10
  import "../../chunk-VVCSY7DG.mjs";
11
11
  import "../../chunk-F3HENRVM.mjs";
package/dist/index.js CHANGED
@@ -11922,69 +11922,51 @@ var ITEM_HEIGHT = 30;
11922
11922
  var ACTIVE_HEIGHT = 34;
11923
11923
  function WheelColumn({ list, value, onChange }) {
11924
11924
  const ref = (0, import_react35.useRef)(null);
11925
- const internalChangeRef = (0, import_react35.useRef)(false);
11926
- const [currentIndex, setCurrentIndex] = (0, import_react35.useState)(0);
11927
- const scrollToIndex = (index, behavior = "smooth") => {
11928
- if (!ref.current) return;
11929
- const diff = ACTIVE_HEIGHT - ITEM_HEIGHT;
11930
- let centerOffset = index > 0 && behavior === "auto" ? diff : 0;
11931
- if (behavior === "auto" && (currentIndex !== 0 || index === 1)) centerOffset -= 4;
11932
- const top = index * ITEM_HEIGHT + centerOffset;
11933
- ref.current.scrollTo({ top, behavior });
11934
- };
11925
+ const idx = list.indexOf(value);
11935
11926
  const finalizeScroll = (index) => {
11936
- internalChangeRef.current = true;
11937
11927
  const v = list[index];
11938
- setCurrentIndex(index);
11939
- scrollToIndex(index, "smooth");
11940
11928
  if (v) onChange(v);
11941
11929
  };
11942
11930
  const handleClick = (index) => finalizeScroll(index);
11943
- (0, import_react35.useEffect)(() => {
11944
- if (!ref.current || !value) return;
11945
- const idx = list.indexOf(value);
11946
- if (idx < 0) return;
11947
- if (internalChangeRef.current) {
11948
- internalChangeRef.current = false;
11949
- return;
11950
- }
11951
- setCurrentIndex(idx);
11952
- scrollToIndex(idx, "auto");
11953
- }, [value]);
11954
11931
  (0, import_react35.useEffect)(() => {
11955
11932
  const el = ref.current;
11956
- if (!el) return;
11933
+ if (!el || idx < 0) return;
11957
11934
  const handleWheel = (e) => {
11958
11935
  e.preventDefault();
11959
- let newIndex = currentIndex;
11936
+ let newIndex = idx;
11960
11937
  if (e.deltaY > 0) {
11961
- newIndex = Math.min(currentIndex + 1, list.length - 1);
11938
+ newIndex = Math.min(idx + 1, list.length - 1);
11962
11939
  } else if (e.deltaY < 0) {
11963
- newIndex = Math.max(currentIndex - 1, 0);
11940
+ newIndex = Math.max(idx - 1, 0);
11964
11941
  }
11965
11942
  finalizeScroll(newIndex);
11966
11943
  };
11967
11944
  el.addEventListener("wheel", handleWheel, { passive: false });
11968
11945
  return () => el.removeEventListener("wheel", handleWheel);
11969
- }, [currentIndex, list, onChange]);
11946
+ }, [idx, list, onChange]);
11947
+ (0, import_react35.useEffect)(() => {
11948
+ const el = ref.current;
11949
+ if (!el || idx < 0) return;
11950
+ el.scrollTo({ top: idx * ITEM_HEIGHT });
11951
+ }, [idx]);
11970
11952
  return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className: "relative h-[94px] w-[40px]", children: [
11971
11953
  /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: "pointer-events-none absolute left-1/2 top-[30px] h-[34px] w-[40px] -translate-x-1/2 rounded-[10px] shadow-[inset_0_0_0_1.5px_var(--dn-primary-light)]" }),
11972
11954
  /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { ref, className: "scrollbar-none relative h-full select-none overflow-y-scroll py-[0]", children: [
11973
11955
  /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { style: { height: ITEM_HEIGHT } }),
11974
11956
  list.map((v, i) => {
11975
- const isActive = i === currentIndex;
11957
+ const highlight = i === idx;
11976
11958
  return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
11977
11959
  "div",
11978
11960
  {
11979
11961
  onClick: () => handleClick(i),
11980
- className: `flex items-center justify-center text-sm font-bold transition-all ${isActive ? "text-body-foreground" : "text-neutral-light"}`,
11981
- style: { height: isActive ? ACTIVE_HEIGHT : ITEM_HEIGHT },
11962
+ className: `flex items-center justify-center text-sm font-bold ${highlight ? "text-body-foreground" : "text-neutral-light"}`,
11963
+ style: { height: highlight ? ACTIVE_HEIGHT : ITEM_HEIGHT },
11982
11964
  children: v
11983
11965
  },
11984
11966
  i
11985
11967
  );
11986
11968
  }),
11987
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { style: { height: list.length >= 3 ? ITEM_HEIGHT + 4 : ITEM_HEIGHT } })
11969
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { style: { height: ITEM_HEIGHT + 4 } })
11988
11970
  ] })
11989
11971
  ] });
11990
11972
  }
package/dist/index.mjs CHANGED
@@ -23,6 +23,9 @@ import {
23
23
  toast_default
24
24
  } from "./chunk-4F7SIDZB.mjs";
25
25
  import "./chunk-DX3KXNP6.mjs";
26
+ import {
27
+ definition_table_default
28
+ } from "./chunk-DS5CGU2X.mjs";
26
29
  import {
27
30
  table_default
28
31
  } from "./chunk-W3V4SZV5.mjs";
@@ -30,25 +33,22 @@ import "./chunk-3MY6LO7N.mjs";
30
33
  import {
31
34
  tabs_default
32
35
  } from "./chunk-DW3BX4M2.mjs";
33
- import "./chunk-LVFI2NOH.mjs";
34
- import {
35
- switch_default
36
- } from "./chunk-AGE57VDD.mjs";
37
36
  import "./chunk-QCEKPS7U.mjs";
38
37
  import {
39
38
  select_default
40
39
  } from "./chunk-K2RW5KLO.mjs";
41
- import "./chunk-OLQOLLKG.mjs";
42
- import {
43
- starRating_default
44
- } from "./chunk-OX4T7OBC.mjs";
45
40
  import "./chunk-MZ76AA76.mjs";
46
41
  import {
47
42
  skeleton_default
48
43
  } from "./chunk-6PN3DGOE.mjs";
44
+ import "./chunk-OLQOLLKG.mjs";
49
45
  import {
50
- definition_table_default
51
- } from "./chunk-DS5CGU2X.mjs";
46
+ starRating_default
47
+ } from "./chunk-OX4T7OBC.mjs";
48
+ import "./chunk-LVFI2NOH.mjs";
49
+ import {
50
+ switch_default
51
+ } from "./chunk-AGE57VDD.mjs";
52
52
  import "./chunk-TPFN22HR.mjs";
53
53
  import {
54
54
  radio_default
@@ -61,9 +61,9 @@ import "./chunk-F3HENRVM.mjs";
61
61
  import "./chunk-4VWG4726.mjs";
62
62
  import {
63
63
  timePicker_default
64
- } from "./chunk-CELXDJP2.mjs";
65
- import "./chunk-GNT7VXXE.mjs";
66
- import "./chunk-D6BMDE2K.mjs";
64
+ } from "./chunk-XKWKJQEF.mjs";
65
+ import "./chunk-HYLTIUH3.mjs";
66
+ import "./chunk-RKHH3CUS.mjs";
67
67
  import {
68
68
  datePicker_default
69
69
  } from "./chunk-JPNMYMDN.mjs";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deepnoid/ui",
3
- "version": "0.1.210",
3
+ "version": "0.1.211",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "exports": {