@deepnoid/ui 0.1.22 → 0.1.23

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/utils/clsx.ts, src/utils/props.ts, src/utils/tailwind-variants.ts, src/utils/types.ts, src/assets/images/cogwheel.png, src/assets/images/folder.svg, 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/checkbox/checkbox.tsx, src/components/checkbox/index.tsx, src/components/dateTimePicker/calendar.tsx, src/components/dateTimePicker/dateTimePicker.tsx, src/components/dateTimePicker/index.ts, src/components/dateTimePicker/timePicker.tsx, src/components/dateTimePicker/useDateTimePicker.tsx, src/components/dateTimePicker/util.ts, src/components/icon/Icon.tsx, src/components/icon/index.ts, src/components/icon/template.tsx, src/components/chip/chip.tsx, src/components/chip/index.ts, 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/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/switch/index.ts, src/components/switch/switch.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/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/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/avatar/avatar.tsx, src/components/avatar/index.ts, src/assets/images/cogwheel.png, src/assets/images/folder.svg, 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/checkbox/checkbox.tsx, src/components/checkbox/index.tsx, src/components/chip/chip.tsx, src/components/chip/index.ts, src/components/dateTimePicker/calendar.tsx, src/components/dateTimePicker/dateTimePicker.tsx, src/components/dateTimePicker/index.ts, src/components/dateTimePicker/timePicker.tsx, src/components/dateTimePicker/useDateTimePicker.tsx, src/components/dateTimePicker/util.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/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/select/index.ts, src/components/select/select.tsx, src/components/scroll/index.ts, src/components/scroll/scrollArea.tsx, src/components/switch/index.ts, src/components/switch/switch.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/tooltip/index.ts, src/components/tooltip/tooltip-utils.ts, src/components/tooltip/tooltip.tsx, src/components/tooltip/useTooltip.ts, src/components/toast/index.ts, src/components/toast/toast-utils.ts, src/components/toast/toast.tsx, src/components/toast/use-toast.tsx, 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
@@ -10,243 +10,243 @@ $ cross-env NODE_OPTIONS=--max-old-space-size=8192 tsup src --dts && yarn copy:f
10
10
  ESM Build start
11
11
  DTS Build start
12
12
  ESM dist/cogwheel-U2B3CWEL.png 649.00 B
13
- ESM dist/utils/types.mjs 14.00 B
13
+ ESM dist/utils/tailwind-variants.mjs 109.00 B
14
14
  ESM dist/fonts/NanumSquare_acB.mjs 194.00 B
15
15
  ESM dist/folder-RO3QTLGS.svg 24.61 KB
16
+ ESM dist/utils/types.mjs 14.00 B
16
17
  ESM dist/index.mjs 3.81 KB
17
18
  ESM dist/chunk-MBLZYQCN.mjs 14.00 B
18
- ESM dist/chunk-BPVRXFIC.mjs 2.58 KB
19
+ ESM dist/chunk-BZGUSIX5.mjs 3.06 KB
19
20
  ESM dist/chunk-RRAZM5D3.mjs 14.00 B
20
- ESM dist/chunk-YBDA3WQP.mjs 2.58 KB
21
- ESM dist/chunk-ZOTHPHXA.mjs 857.00 B
22
- ESM dist/chunk-HIE2YRGA.mjs 14.00 B
23
- ESM dist/chunk-OUAKGMDW.mjs 4.10 KB
24
- ESM dist/chunk-LUWGOKLG.mjs 14.00 B
25
21
  ESM dist/chunk-BKE6QF6W.mjs 5.94 KB
26
- ESM dist/chunk-Z2537DF6.mjs 4.17 KB
22
+ ESM dist/chunk-HIE2YRGA.mjs 14.00 B
27
23
  ESM dist/chunk-ZMOAFSYE.mjs 1.43 KB
24
+ ESM dist/chunk-Z2537DF6.mjs 4.17 KB
25
+ ESM dist/chunk-WSIADHVC.mjs 3.80 KB
26
+ ESM dist/chunk-ZOTHPHXA.mjs 857.00 B
28
27
  ESM dist/chunk-DX3KXNP6.mjs 14.00 B
28
+ ESM dist/chunk-LUWGOKLG.mjs 14.00 B
29
29
  ESM dist/chunk-ICZTNO4V.mjs 1.87 KB
30
+ ESM dist/chunk-OUAKGMDW.mjs 4.10 KB
30
31
  ESM dist/chunk-XRC5OUYQ.mjs 3.44 KB
32
+ ESM dist/chunk-EAK5DVWA.mjs 1.69 KB
31
33
  ESM dist/chunk-6OMHIMIA.mjs 7.42 KB
34
+ ESM dist/chunk-QCEKPS7U.mjs 14.00 B
32
35
  ESM dist/chunk-3MY6LO7N.mjs 14.00 B
33
- ESM dist/chunk-EAK5DVWA.mjs 1.69 KB
34
- ESM dist/chunk-M37VBNB3.mjs 1.04 KB
35
36
  ESM dist/chunk-2YMAKIZ6.mjs 6.14 KB
37
+ ESM dist/chunk-M37VBNB3.mjs 1.04 KB
38
+ ESM dist/chunk-MSAULFDB.mjs 11.76 KB
36
39
  ESM dist/chunk-DQRAFUDA.mjs 14.00 B
37
- ESM dist/chunk-QCEKPS7U.mjs 14.00 B
38
40
  ESM dist/chunk-Z74QNVPG.mjs 4.04 KB
41
+ ESM dist/chunk-UAHTRCKG.mjs 2.58 KB
39
42
  ESM dist/chunk-DJOG6Z35.mjs 14.00 B
40
- ESM dist/chunk-MSAULFDB.mjs 11.76 KB
41
43
  ESM dist/chunk-LVFI2NOH.mjs 14.00 B
42
- ESM dist/chunk-ZUSUVPYV.mjs 4.40 KB
43
- ESM dist/chunk-WSIADHVC.mjs 3.80 KB
44
44
  ESM dist/chunk-F3HENRVM.mjs 934.00 B
45
- ESM dist/chunk-MGEWSREV.mjs 14.00 B
46
- ESM dist/chunk-6HX3PPL6.mjs 4.03 KB
47
- ESM dist/chunk-QZ3LVYJW.mjs 14.00 B
48
- ESM dist/chunk-P5PJTJLY.mjs 11.46 KB
49
- ESM dist/chunk-75HLCORR.mjs 14.00 B
50
- ESM dist/chunk-TPFN22HR.mjs 14.00 B
51
45
  ESM dist/chunk-7B7LRG5J.mjs 14.00 B
46
+ ESM dist/chunk-ZUSUVPYV.mjs 4.40 KB
47
+ ESM dist/chunk-2GCSFWHD.mjs 14.00 B
52
48
  ESM dist/chunk-IVK24VIL.mjs 8.19 KB
53
- ESM dist/chunk-QIRL6HY6.mjs 5.07 KB
49
+ ESM dist/chunk-TPFN22HR.mjs 14.00 B
50
+ ESM dist/chunk-P5PJTJLY.mjs 11.46 KB
51
+ ESM dist/chunk-QZ3LVYJW.mjs 14.00 B
52
+ ESM dist/chunk-75HLCORR.mjs 14.00 B
53
+ ESM dist/chunk-6HX3PPL6.mjs 4.03 KB
54
54
  ESM dist/chunk-Q72LZAPG.mjs 7.40 KB
55
- ESM dist/chunk-7MVEAQ7Z.mjs 14.00 B
56
55
  ESM dist/chunk-EYVRTVRM.mjs 11.03 KB
57
- ESM dist/chunk-OWG4RL2T.mjs 4.42 KB
58
56
  ESM dist/chunk-PZIVMTKX.mjs 7.20 KB
57
+ ESM dist/chunk-7MVEAQ7Z.mjs 14.00 B
58
+ ESM dist/chunk-QIRL6HY6.mjs 5.07 KB
59
59
  ESM dist/chunk-FWJ2ZKH6.mjs 3.07 KB
60
60
  ESM dist/chunk-HIVPDIEP.mjs 1.27 KB
61
61
  ESM dist/chunk-P732YGHO.mjs 444.00 B
62
62
  ESM dist/chunk-KYIODWXL.mjs 14.00 B
63
63
  ESM dist/chunk-6KXBXGYR.mjs 2.79 KB
64
64
  ESM dist/chunk-MY5U63QO.mjs 14.00 B
65
- ESM dist/utils/tailwind-variants.mjs 109.00 B
66
65
  ESM dist/chunk-LPZOH3RP.mjs 700.00 B
66
+ ESM dist/chunk-MGEWSREV.mjs 14.00 B
67
67
  ESM dist/chunk-6WSACUIB.mjs 14.00 B
68
- ESM dist/chunk-6PNKRBUT.mjs 1017.00 B
69
68
  ESM dist/chunk-PNRS23HE.mjs 10.86 KB
70
- ESM dist/chunk-VQROXH43.mjs 9.25 KB
69
+ ESM dist/chunk-HWL7TPUN.mjs 929.00 B
70
+ ESM dist/chunk-OWG4RL2T.mjs 4.42 KB
71
+ ESM dist/chunk-6PNKRBUT.mjs 1017.00 B
71
72
  ESM dist/chunk-ZYIIXWVY.mjs 14.00 B
72
73
  ESM dist/chunk-WFMFC7R6.mjs 3.68 KB
73
- ESM dist/chunk-LXHUO6VM.mjs 1.49 KB
74
- ESM dist/chunk-HWL7TPUN.mjs 929.00 B
75
- ESM dist/chunk-7USF56CT.mjs 131.00 B
76
74
  ESM dist/chunk-7DLOYKVC.mjs 14.00 B
77
- ESM dist/chunk-IZM66FHP.mjs 123.00 B
78
- ESM dist/chunk-D6QI3DJG.mjs 6.55 KB
79
- ESM dist/chunk-2GCSFWHD.mjs 14.00 B
80
75
  ESM dist/chunk-XQGD4ZIX.mjs 1.65 KB
76
+ ESM dist/chunk-D6QI3DJG.mjs 6.55 KB
77
+ ESM dist/chunk-7USF56CT.mjs 131.00 B
78
+ ESM dist/chunk-LXHUO6VM.mjs 1.49 KB
79
+ ESM dist/chunk-IZM66FHP.mjs 123.00 B
81
80
  ESM dist/chunk-SE5TU755.mjs 14.00 B
81
+ ESM dist/fonts/NanumSquare_acEB.mjs 198.00 B
82
+ ESM dist/fonts/NanumSquare_acL.mjs 194.00 B
82
83
  ESM dist/chunk-LL6F3WDX.mjs 778.00 B
83
84
  ESM dist/utils/clsx.mjs 113.00 B
85
+ ESM dist/fonts/NanumSquare_acR.mjs 194.00 B
86
+ ESM dist/chunk-4ZJFD3L3.mjs 14.50 KB
84
87
  ESM dist/utils/props.mjs 137.00 B
85
- ESM dist/fonts/NanumSquare_acL.mjs 194.00 B
86
- ESM dist/fonts/font.css 777.00 B
88
+ ESM dist/chunk-VQROXH43.mjs 9.25 KB
87
89
  ESM dist/chunk-E3G5QXSH.mjs 608.00 B
90
+ ESM dist/fonts/font.css 777.00 B
88
91
  ESM dist/chunk-AC6TWLRT.mjs 1.34 KB
89
- ESM dist/chunk-4ZJFD3L3.mjs 14.50 KB
90
- ESM dist/fonts/NanumSquare_acR.mjs 194.00 B
91
- ESM dist/fonts/NanumSquare_acEB.mjs 198.00 B
92
+ ESM dist/chunk-27Y6K5NK.mjs 823.00 B
93
+ ESM dist/NanumSquare_acR-RZCHPXSJ.ttf 631.56 KB
94
+ ESM dist/NanumSquare_acEB-HRZ3QLG2.ttf 618.41 KB
92
95
  ESM dist/NanumSquare_acB-VMSVRKSM.ttf 625.04 KB
93
96
  ESM dist/NanumSquare_acL-FSAAP5CK.ttf 642.08 KB
94
- ESM dist/NanumSquare_acEB-HRZ3QLG2.ttf 618.41 KB
95
97
  ESM dist/chunk-3IU2RPSM.mjs 339.05 KB
96
- ESM dist/NanumSquare_acR-RZCHPXSJ.ttf 631.56 KB
97
- ESM dist/chunk-27Y6K5NK.mjs 823.00 B
98
- ESM dist/components/tooltip/tooltip.mjs 292.00 B
98
+ ESM dist/components/toast/use-toast.mjs 441.00 B
99
99
  ESM dist/assets/images/cogwheel.mjs 154.00 B
100
- ESM dist/components/tree/tree.mjs 356.00 B
101
- ESM dist/components/textarea/textarea.mjs 189.00 B
102
- ESM dist/components/toast/index.mjs 527.00 B
103
- ESM dist/components/table/form-table.mjs 193.00 B
100
+ ESM dist/components/textarea/index.mjs 225.00 B
101
+ ESM dist/components/tree/index.mjs 388.00 B
102
+ ESM dist/components/tooltip/tooltip-utils.mjs 221.00 B
103
+ ESM dist/components/switch/switch.mjs 185.00 B
104
+ ESM dist/components/table/index.mjs 876.00 B
104
105
  ESM dist/components/tabs/index.mjs 248.00 B
105
106
  ESM dist/components/ripple/index.mjs 253.00 B
106
- ESM dist/components/scroll/index.mjs 231.00 B
107
107
  ESM dist/components/select/index.mjs 394.00 B
108
- ESM dist/components/switch/index.mjs 219.00 B
109
- ESM dist/components/modal/modal.mjs 708.00 B
110
- ESM dist/components/pagination/index.mjs 511.00 B
108
+ ESM dist/components/scroll/index.mjs 231.00 B
109
+ ESM dist/components/pagination/usePagination.mjs 164.00 B
110
+ ESM dist/components/radio/index.mjs 286.00 B
111
+ ESM dist/components/dateTimePicker/util.mjs 191.00 B
112
+ ESM dist/components/icon/Icon.mjs 213.00 B
113
+ ESM dist/components/modal/index.mjs 741.00 B
114
+ ESM dist/components/input/index.mjs 391.00 B
111
115
  ESM dist/components/list/listItem.mjs 364.00 B
112
- ESM dist/components/radio/radio.mjs 253.00 B
116
+ ESM dist/components/checkbox/index.mjs 295.00 B
117
+ ESM dist/components/button/button-group.mjs 197.00 B
118
+ ESM dist/components/avatar/avatar.mjs 220.00 B
113
119
  ESM dist/components/chip/index.mjs 353.00 B
114
- ESM dist/components/icon/template.mjs 127.00 B
115
- ESM dist/components/input/input.mjs 386.00 B
116
- ESM dist/components/dateTimePicker/calendar.mjs 398.00 B
117
- ESM dist/components/breadcrumb/breadcrumb.mjs 648.00 B
118
120
  ESM dist/components/backdrop/backdrop.mjs 224.00 B
119
- ESM dist/components/avatar/index.mjs 254.00 B
120
- ESM dist/components/button/button-group.mjs 197.00 B
121
- ESM dist/components/checkbox/index.mjs 295.00 B
122
- ESM dist/components/tree/index.mjs 388.00 B
123
- ESM dist/components/tooltip/useTooltip.mjs 166.00 B
121
+ ESM dist/components/breadcrumb/breadcrumb.mjs 648.00 B
124
122
  ESM dist/components/toast/toast.mjs 358.00 B
125
- ESM dist/components/textarea/index.mjs 225.00 B
123
+ ESM dist/components/tooltip/tooltip.mjs 292.00 B
124
+ ESM dist/components/tree/tree.mjs 356.00 B
126
125
  ESM dist/components/tooltip/index.mjs 327.00 B
126
+ ESM dist/components/textarea/textarea.mjs 189.00 B
127
+ ESM dist/components/tooltip/useTooltip.mjs 166.00 B
128
+ ESM dist/components/toast/index.mjs 527.00 B
127
129
  ESM dist/components/toast/toast-utils.mjs 143.00 B
128
- ESM dist/components/table/table.mjs 743.00 B
129
- ESM dist/components/toast/use-toast.mjs 441.00 B
130
+ ESM dist/components/table/form-table.mjs 193.00 B
131
+ ESM dist/components/table/table-head.mjs 333.00 B
130
132
  ESM dist/components/tabs/tabs.mjs 232.00 B
131
- ESM dist/components/ripple/useRipple.mjs 158.00 B
132
- ESM dist/components/table/index.mjs 876.00 B
133
133
  ESM dist/components/table/table-body.mjs 333.00 B
134
+ ESM dist/components/ripple/useRipple.mjs 158.00 B
135
+ ESM dist/components/table/table.mjs 743.00 B
134
136
  ESM dist/components/ripple/ripple.mjs 150.00 B
135
- ESM dist/components/scroll/scrollArea.mjs 193.00 B
137
+ ESM dist/components/switch/index.mjs 219.00 B
136
138
  ESM dist/components/select/select.mjs 360.00 B
137
- ESM dist/components/table/table-head.mjs 333.00 B
138
- ESM dist/components/modal/index.mjs 741.00 B
139
- ESM dist/components/pagination/usePagination.mjs 164.00 B
140
- ESM dist/components/radio/index.mjs 286.00 B
139
+ ESM dist/components/modal/modal.mjs 708.00 B
140
+ ESM dist/components/scroll/scrollArea.mjs 193.00 B
141
+ ESM dist/components/pagination/index.mjs 511.00 B
141
142
  ESM dist/components/pagination/pagination.mjs 511.00 B
142
- ESM dist/components/list/index.mjs 483.00 B
143
143
  ESM dist/components/icon/index.mjs 245.00 B
144
- ESM dist/components/chip/chip.mjs 321.00 B
145
- ESM dist/components/input/index.mjs 391.00 B
144
+ ESM dist/components/icon/template.mjs 127.00 B
145
+ ESM dist/components/radio/radio.mjs 253.00 B
146
+ ESM dist/components/input/input.mjs 386.00 B
146
147
  ESM dist/components/list/list.mjs 216.00 B
147
- ESM dist/components/dateTimePicker/dateTimePicker.mjs 667.00 B
148
+ ESM dist/components/list/index.mjs 483.00 B
148
149
  ESM dist/components/dateTimePicker/index.mjs 663.00 B
150
+ ESM dist/components/chip/chip.mjs 321.00 B
149
151
  ESM dist/components/dateTimePicker/useDateTimePicker.mjs 172.00 B
150
- ESM dist/components/switch/switch.mjs 185.00 B
151
- ESM dist/components/icon/Icon.mjs 213.00 B
152
152
  ESM dist/components/dateTimePicker/timePicker.mjs 473.00 B
153
+ ESM dist/components/button/index.mjs 811.00 B
154
+ ESM dist/components/dateTimePicker/calendar.mjs 398.00 B
155
+ ESM dist/components/breadcrumb/index.mjs 686.00 B
153
156
  ESM dist/components/button/text-button.mjs 265.00 B
157
+ ESM dist/components/dateTimePicker/dateTimePicker.mjs 667.00 B
158
+ ESM dist/components/button/button.mjs 430.00 B
154
159
  ESM dist/components/checkbox/checkbox.mjs 259.00 B
155
- ESM dist/components/dateTimePicker/util.mjs 191.00 B
156
160
  ESM dist/components/button/icon-button.mjs 440.00 B
157
- ESM dist/components/button/index.mjs 811.00 B
158
- ESM dist/components/avatar/avatar.mjs 220.00 B
159
- ESM dist/components/button/button.mjs 430.00 B
160
- ESM dist/components/breadcrumb/index.mjs 686.00 B
161
- ESM dist/components/backdrop/index.mjs 260.00 B
162
- ESM dist/components/tooltip/tooltip-utils.mjs 221.00 B
163
161
  ESM dist/assets/images/folder.mjs 150.00 B
164
- ESM ⚡️ Build success in 434ms
162
+ ESM dist/components/backdrop/index.mjs 260.00 B
163
+ ESM dist/components/avatar/index.mjs 254.00 B
164
+ ESM ⚡️ Build success in 400ms
165
165
  CJS dist/folder-RO3QTLGS.svg 24.61 KB
166
166
  CJS dist/cogwheel-U2B3CWEL.png 649.00 B
167
- CJS dist/fonts/NanumSquare_acB.js 113.00 B
168
167
  CJS dist/fonts/NanumSquare_acL.js 113.00 B
169
168
  CJS dist/fonts/NanumSquare_acEB.js 116.00 B
170
- CJS dist/fonts/font.css 777.00 B
171
169
  CJS dist/utils/clsx.js 1.77 KB
170
+ CJS dist/fonts/NanumSquare_acB.js 113.00 B
172
171
  CJS dist/utils/props.js 1.59 KB
173
- CJS dist/fonts/NanumSquare_acR.js 113.00 B
172
+ CJS dist/fonts/font.css 777.00 B
174
173
  CJS dist/utils/tailwind-variants.js 7.91 KB
175
- CJS dist/assets/images/cogwheel.js 103.00 B
174
+ CJS dist/fonts/NanumSquare_acR.js 113.00 B
176
175
  CJS dist/utils/types.js 778.00 B
176
+ CJS dist/components/avatar/avatar.js 359.01 KB
177
+ CJS dist/assets/images/cogwheel.js 103.00 B
177
178
  CJS dist/assets/images/folder.js 97.00 B
178
179
  CJS dist/components/backdrop/backdrop.js 9.31 KB
179
- CJS dist/components/avatar/avatar.js 359.01 KB
180
+ CJS dist/components/backdrop/index.js 9.45 KB
181
+ CJS dist/components/avatar/index.js 359.14 KB
180
182
  CJS dist/components/button/button-group.js 8.54 KB
181
183
  CJS dist/components/breadcrumb/breadcrumb.js 366.03 KB
182
- CJS dist/components/avatar/index.js 359.14 KB
183
184
  CJS dist/components/breadcrumb/index.js 366.17 KB
184
- CJS dist/components/button/text-button.js 12.75 KB
185
185
  CJS dist/components/checkbox/checkbox.js 15.76 KB
186
+ CJS dist/components/button/text-button.js 12.75 KB
186
187
  CJS dist/components/checkbox/index.js 15.90 KB
187
188
  CJS dist/components/button/button.js 372.18 KB
188
189
  CJS dist/components/button/icon-button.js 370.52 KB
189
- CJS dist/components/dateTimePicker/useDateTimePicker.js 4.53 KB
190
190
  CJS dist/components/button/index.js 386.70 KB
191
+ CJS dist/components/chip/index.js 362.82 KB
192
+ CJS dist/components/chip/chip.js 362.69 KB
193
+ CJS dist/components/dateTimePicker/dateTimePicker.js 396.06 KB
191
194
  CJS dist/components/dateTimePicker/util.js 1.48 KB
192
195
  CJS dist/components/dateTimePicker/calendar.js 366.80 KB
193
- CJS dist/components/dateTimePicker/dateTimePicker.js 396.06 KB
194
- CJS dist/components/icon/Icon.js 351.52 KB
195
- CJS dist/components/icon/index.js 351.53 KB
196
+ CJS dist/components/dateTimePicker/timePicker.js 373.93 KB
197
+ CJS dist/components/dateTimePicker/useDateTimePicker.js 4.53 KB
196
198
  CJS dist/components/dateTimePicker/index.js 396.05 KB
199
+ CJS dist/components/icon/Icon.js 351.52 KB
197
200
  CJS dist/components/icon/template.js 350.59 KB
198
- CJS dist/components/backdrop/index.js 9.45 KB
199
- CJS dist/components/chip/chip.js 362.69 KB
200
- CJS dist/components/chip/index.js 362.82 KB
201
- CJS dist/components/list/list.js 9.58 KB
201
+ CJS dist/components/icon/index.js 351.53 KB
202
202
  CJS dist/components/input/index.js 371.33 KB
203
- CJS dist/components/list/index.js 369.46 KB
204
203
  CJS dist/components/input/input.js 371.33 KB
205
204
  CJS dist/components/list/listItem.js 367.62 KB
205
+ CJS dist/components/list/list.js 9.58 KB
206
206
  CJS dist/components/modal/index.js 378.25 KB
207
- CJS dist/components/pagination/usePagination.js 1.88 KB
208
- CJS dist/components/radio/index.js 14.36 KB
209
207
  CJS dist/components/modal/modal.js 378.12 KB
208
+ CJS dist/components/pagination/index.js 380.51 KB
209
+ CJS dist/components/radio/index.js 14.36 KB
210
+ CJS dist/components/pagination/usePagination.js 1.88 KB
211
+ CJS dist/components/ripple/index.js 3.65 KB
210
212
  CJS dist/components/radio/radio.js 14.23 KB
213
+ CJS dist/components/ripple/ripple.js 2.57 KB
214
+ CJS dist/components/list/index.js 369.46 KB
211
215
  CJS dist/components/ripple/useRipple.js 2.04 KB
212
216
  CJS dist/components/scroll/scrollArea.js 2.79 KB
213
- CJS dist/components/ripple/index.js 3.65 KB
214
- CJS dist/components/ripple/ripple.js 2.57 KB
215
- CJS dist/components/pagination/index.js 380.51 KB
216
- CJS dist/components/scroll/index.js 2.92 KB
217
- CJS dist/components/pagination/pagination.js 380.51 KB
218
217
  CJS dist/components/switch/index.js 5.79 KB
218
+ CJS dist/components/pagination/pagination.js 380.51 KB
219
219
  CJS dist/components/table/form-table.js 9.89 KB
220
- CJS dist/components/select/index.js 371.72 KB
221
220
  CJS dist/components/switch/switch.js 5.66 KB
222
- CJS dist/components/table/table-body.js 19.33 KB
221
+ CJS dist/components/scroll/index.js 2.92 KB
223
222
  CJS dist/components/table/table-head.js 17.50 KB
224
- CJS dist/components/dateTimePicker/timePicker.js 373.93 KB
223
+ CJS dist/components/table/table-body.js 19.33 KB
224
+ CJS dist/components/select/index.js 371.72 KB
225
225
  CJS dist/components/tabs/index.js 14.72 KB
226
- CJS dist/components/tabs/tabs.js 14.71 KB
226
+ CJS dist/components/select/select.js 371.59 KB
227
227
  CJS dist/components/textarea/index.js 7.82 KB
228
228
  CJS dist/components/textarea/textarea.js 7.68 KB
229
- CJS dist/components/table/index.js 403.27 KB
230
229
  CJS dist/components/tooltip/index.js 17.80 KB
231
- CJS dist/components/select/select.js 371.59 KB
232
- CJS dist/components/table/table.js 401.03 KB
233
230
  CJS dist/components/tooltip/tooltip-utils.js 4.90 KB
234
- CJS dist/components/tooltip/tooltip.js 17.67 KB
235
231
  CJS dist/components/tooltip/useTooltip.js 4.19 KB
232
+ CJS dist/components/table/table.js 401.03 KB
233
+ CJS dist/components/toast/toast-utils.js 1.85 KB
234
+ CJS dist/components/tooltip/tooltip.js 17.67 KB
235
+ CJS dist/components/table/index.js 403.27 KB
236
236
  CJS dist/components/toast/index.js 367.25 KB
237
+ CJS dist/components/tabs/tabs.js 14.71 KB
238
+ CJS dist/components/tree/tree.js 361.61 KB
237
239
  CJS dist/components/toast/toast.js 363.60 KB
238
- CJS dist/components/toast/toast-utils.js 1.85 KB
239
- CJS dist/components/tree/index.js 361.21 KB
240
- CJS dist/components/toast/use-toast.js 367.19 KB
241
- CJS dist/index.js 542.07 KB
242
- CJS dist/NanumSquare_acL-FSAAP5CK.ttf 642.08 KB
240
+ CJS dist/components/tree/index.js 361.73 KB
243
241
  CJS dist/NanumSquare_acEB-HRZ3QLG2.ttf 618.41 KB
244
- CJS dist/components/tree/tree.js 361.08 KB
245
- CJS dist/NanumSquare_acR-RZCHPXSJ.ttf 631.56 KB
242
+ CJS dist/index.js 542.59 KB
246
243
  CJS dist/NanumSquare_acB-VMSVRKSM.ttf 625.04 KB
247
- CJS ⚡️ Build success in 435ms
248
- DTS ⚡️ Build success in 11165ms
249
- DTS dist/index.d.ts 2.35 KB
244
+ CJS dist/NanumSquare_acR-RZCHPXSJ.ttf 631.56 KB
245
+ CJS dist/NanumSquare_acL-FSAAP5CK.ttf 642.08 KB
246
+ CJS dist/components/toast/use-toast.js 367.19 KB
247
+ CJS ⚡️ Build success in 402ms
248
+ DTS ⚡️ Build success in 11235ms
249
+ DTS dist/index.d.ts 2.36 KB
250
250
  DTS dist/components/button/index.d.ts 415.00 B
251
251
  DTS dist/components/list/index.d.ts 302.00 B
252
252
  DTS dist/components/table/index.d.ts 236.00 B
@@ -262,7 +262,6 @@ $ cross-env NODE_OPTIONS=--max-old-space-size=8192 tsup src --dts && yarn copy:f
262
262
  DTS dist/components/dateTimePicker/calendar.d.ts 1.82 KB
263
263
  DTS dist/components/dateTimePicker/timePicker.d.ts 380.00 B
264
264
  DTS dist/components/dateTimePicker/useDateTimePicker.d.ts 1.01 KB
265
- DTS dist/components/dateTimePicker/util.d.ts 168.00 B
266
265
  DTS dist/components/table/table.d.ts 4.96 KB
267
266
  DTS dist/components/table/form-table.d.ts 1.59 KB
268
267
  DTS dist/components/list/list.d.ts 1.46 KB
@@ -272,6 +271,7 @@ $ cross-env NODE_OPTIONS=--max-old-space-size=8192 tsup src --dts && yarn copy:f
272
271
  DTS dist/utils/types.d.ts 371.00 B
273
272
  DTS dist/components/icon/template.d.ts 11.34 KB
274
273
  DTS dist/components/toast/toast-utils.d.ts 386.00 B
274
+ DTS dist/components/dateTimePicker/util.d.ts 168.00 B
275
275
  DTS dist/components/pagination/usePagination.d.ts 488.00 B
276
276
  DTS dist/components/ripple/useRipple.d.ts 518.00 B
277
277
  DTS dist/components/table/table-body.d.ts 926.00 B
@@ -280,21 +280,21 @@ $ cross-env NODE_OPTIONS=--max-old-space-size=8192 tsup src --dts && yarn copy:f
280
280
  DTS dist/components/backdrop/backdrop.d.ts 330.00 B
281
281
  DTS dist/components/breadcrumb/breadcrumb.d.ts 2.11 KB
282
282
  DTS dist/components/checkbox/checkbox.d.ts 4.44 KB
283
+ DTS dist/components/chip/chip.d.ts 2.57 KB
283
284
  DTS dist/components/dateTimePicker/dateTimePicker.d.ts 6.99 KB
284
285
  DTS dist/components/icon/Icon.d.ts 18.50 KB
285
- DTS dist/components/chip/chip.d.ts 2.57 KB
286
286
  DTS dist/components/input/input.d.ts 7.33 KB
287
287
  DTS dist/components/modal/modal.d.ts 1.99 KB
288
288
  DTS dist/components/pagination/pagination.d.ts 3.09 KB
289
289
  DTS dist/components/radio/radio.d.ts 4.96 KB
290
290
  DTS dist/components/ripple/ripple.d.ts 820.00 B
291
- DTS dist/components/scroll/scrollArea.d.ts 423.00 B
292
291
  DTS dist/components/select/select.d.ts 7.50 KB
292
+ DTS dist/components/scroll/scrollArea.d.ts 423.00 B
293
293
  DTS dist/components/switch/switch.d.ts 4.00 KB
294
294
  DTS dist/components/tabs/tabs.d.ts 3.10 KB
295
295
  DTS dist/components/textarea/textarea.d.ts 6.25 KB
296
296
  DTS dist/components/tooltip/tooltip.d.ts 2.16 KB
297
- DTS dist/components/tree/tree.d.ts 462.00 B
297
+ DTS dist/components/tree/tree.d.ts 1.82 KB
298
298
  DTS dist/fonts/NanumSquare_acEB.d.ts 13.00 B
299
299
  DTS dist/fonts/NanumSquare_acL.d.ts 13.00 B
300
300
  DTS dist/fonts/NanumSquare_acR.d.ts 13.00 B
@@ -307,23 +307,23 @@ $ cross-env NODE_OPTIONS=--max-old-space-size=8192 tsup src --dts && yarn copy:f
307
307
  DTS dist/components/backdrop/index.d.ts 81.00 B
308
308
  DTS dist/components/breadcrumb/index.d.ts 216.00 B
309
309
  DTS dist/components/checkbox/index.d.ts 143.00 B
310
+ DTS dist/components/chip/index.d.ts 204.00 B
310
311
  DTS dist/components/dateTimePicker/index.d.ts 161.00 B
311
312
  DTS dist/components/icon/index.d.ts 179.00 B
312
- DTS dist/components/chip/index.d.ts 204.00 B
313
313
  DTS dist/components/input/index.d.ts 122.00 B
314
314
  DTS dist/components/modal/index.d.ts 134.00 B
315
315
  DTS dist/components/pagination/index.d.ts 132.00 B
316
316
  DTS dist/components/radio/index.d.ts 122.00 B
317
317
  DTS dist/components/ripple/index.d.ts 157.00 B
318
- DTS dist/components/scroll/index.d.ts 101.00 B
319
318
  DTS dist/components/select/index.d.ts 137.00 B
319
+ DTS dist/components/scroll/index.d.ts 101.00 B
320
320
  DTS dist/components/switch/index.d.ts 124.00 B
321
321
  DTS dist/components/tabs/index.d.ts 179.00 B
322
322
  DTS dist/components/textarea/index.d.ts 143.00 B
323
323
  DTS dist/components/tooltip/index.d.ts 182.00 B
324
- DTS dist/components/tree/index.d.ts 61.00 B
324
+ DTS dist/components/tree/index.d.ts 155.00 B
325
325
  DTS dist/tooltip-utils-DO3LQaVM.d.ts 2.05 KB
326
- DTS dist/index.d.mts 2.38 KB
326
+ DTS dist/index.d.mts 2.39 KB
327
327
  DTS dist/components/button/index.d.mts 422.00 B
328
328
  DTS dist/components/list/index.d.mts 308.00 B
329
329
  DTS dist/components/table/index.d.mts 239.00 B
@@ -339,7 +339,6 @@ $ cross-env NODE_OPTIONS=--max-old-space-size=8192 tsup src --dts && yarn copy:f
339
339
  DTS dist/components/dateTimePicker/calendar.d.mts 1.82 KB
340
340
  DTS dist/components/dateTimePicker/timePicker.d.mts 380.00 B
341
341
  DTS dist/components/dateTimePicker/useDateTimePicker.d.mts 1.01 KB
342
- DTS dist/components/dateTimePicker/util.d.mts 168.00 B
343
342
  DTS dist/components/table/table.d.mts 4.96 KB
344
343
  DTS dist/components/table/form-table.d.mts 1.59 KB
345
344
  DTS dist/components/list/list.d.mts 1.46 KB
@@ -349,6 +348,7 @@ $ cross-env NODE_OPTIONS=--max-old-space-size=8192 tsup src --dts && yarn copy:f
349
348
  DTS dist/utils/types.d.mts 371.00 B
350
349
  DTS dist/components/icon/template.d.mts 11.34 KB
351
350
  DTS dist/components/toast/toast-utils.d.mts 386.00 B
351
+ DTS dist/components/dateTimePicker/util.d.mts 168.00 B
352
352
  DTS dist/components/pagination/usePagination.d.mts 488.00 B
353
353
  DTS dist/components/ripple/useRipple.d.mts 518.00 B
354
354
  DTS dist/components/table/table-body.d.mts 928.00 B
@@ -357,21 +357,21 @@ $ cross-env NODE_OPTIONS=--max-old-space-size=8192 tsup src --dts && yarn copy:f
357
357
  DTS dist/components/backdrop/backdrop.d.mts 330.00 B
358
358
  DTS dist/components/breadcrumb/breadcrumb.d.mts 2.11 KB
359
359
  DTS dist/components/checkbox/checkbox.d.mts 4.44 KB
360
+ DTS dist/components/chip/chip.d.mts 2.58 KB
360
361
  DTS dist/components/dateTimePicker/dateTimePicker.d.mts 6.99 KB
361
362
  DTS dist/components/icon/Icon.d.mts 18.50 KB
362
- DTS dist/components/chip/chip.d.mts 2.58 KB
363
363
  DTS dist/components/input/input.d.mts 7.33 KB
364
364
  DTS dist/components/modal/modal.d.mts 2.00 KB
365
365
  DTS dist/components/pagination/pagination.d.mts 3.09 KB
366
366
  DTS dist/components/radio/radio.d.mts 4.96 KB
367
367
  DTS dist/components/ripple/ripple.d.mts 821.00 B
368
- DTS dist/components/scroll/scrollArea.d.mts 423.00 B
369
368
  DTS dist/components/select/select.d.mts 7.50 KB
369
+ DTS dist/components/scroll/scrollArea.d.mts 423.00 B
370
370
  DTS dist/components/switch/switch.d.mts 4.00 KB
371
371
  DTS dist/components/tabs/tabs.d.mts 3.11 KB
372
372
  DTS dist/components/textarea/textarea.d.mts 6.25 KB
373
373
  DTS dist/components/tooltip/tooltip.d.mts 2.17 KB
374
- DTS dist/components/tree/tree.d.mts 462.00 B
374
+ DTS dist/components/tree/tree.d.mts 1.82 KB
375
375
  DTS dist/fonts/NanumSquare_acEB.d.mts 13.00 B
376
376
  DTS dist/fonts/NanumSquare_acL.d.mts 13.00 B
377
377
  DTS dist/fonts/NanumSquare_acR.d.mts 13.00 B
@@ -384,21 +384,21 @@ $ cross-env NODE_OPTIONS=--max-old-space-size=8192 tsup src --dts && yarn copy:f
384
384
  DTS dist/components/backdrop/index.d.mts 82.00 B
385
385
  DTS dist/components/breadcrumb/index.d.mts 220.00 B
386
386
  DTS dist/components/checkbox/index.d.mts 145.00 B
387
+ DTS dist/components/chip/index.d.mts 208.00 B
387
388
  DTS dist/components/dateTimePicker/index.d.mts 163.00 B
388
389
  DTS dist/components/icon/index.d.mts 182.00 B
389
- DTS dist/components/chip/index.d.mts 208.00 B
390
390
  DTS dist/components/input/index.d.mts 124.00 B
391
391
  DTS dist/components/modal/index.d.mts 136.00 B
392
392
  DTS dist/components/pagination/index.d.mts 134.00 B
393
393
  DTS dist/components/radio/index.d.mts 124.00 B
394
394
  DTS dist/components/ripple/index.d.mts 159.00 B
395
- DTS dist/components/scroll/index.d.mts 102.00 B
396
395
  DTS dist/components/select/index.d.mts 139.00 B
396
+ DTS dist/components/scroll/index.d.mts 102.00 B
397
397
  DTS dist/components/switch/index.d.mts 126.00 B
398
398
  DTS dist/components/tabs/index.d.mts 181.00 B
399
399
  DTS dist/components/textarea/index.d.mts 145.00 B
400
400
  DTS dist/components/tooltip/index.d.mts 185.00 B
401
- DTS dist/components/tree/index.d.mts 62.00 B
401
+ DTS dist/components/tree/index.d.mts 157.00 B
402
402
  DTS dist/tooltip-utils-DO3LQaVM.d.mts 2.05 KB
403
403
  $ copyfiles -u 2 src/fonts/**/* dist/fonts
404
- Done in 11.93s.
404
+ Done in 12.02s.
@@ -15,44 +15,42 @@ import {
15
15
  // src/components/tree/tree.tsx
16
16
  import { forwardRef, useMemo, useState, useCallback } from "react";
17
17
  import { jsx, jsxs } from "react/jsx-runtime";
18
- var TreeNodeItem = forwardRef(({ node, depth }, _ref) => {
18
+ var TreeNodeItem = forwardRef(({ node, depth, classNames }) => {
19
19
  var _a;
20
20
  const [isOpen, setIsOpen] = useState(false);
21
21
  const slots = useMemo(() => treeStyle(), []);
22
22
  const toggleOpen = useCallback(() => {
23
23
  setIsOpen((prev) => !prev);
24
24
  }, []);
25
- const handleClick = () => {
26
- var _a2;
27
- toggleOpen();
28
- (_a2 = node.onClick) == null ? void 0 : _a2.call(node);
29
- };
30
25
  return /* @__PURE__ */ jsxs("div", { className: depth > 1 ? "ml-[30px]" : "", children: [
31
- /* @__PURE__ */ jsxs("div", { className: slots.label(), onClick: handleClick, children: [
26
+ /* @__PURE__ */ jsxs("div", { className: slots.wrapper({ class: classNames == null ? void 0 : classNames.wrapper }), onClick: toggleOpen, children: [
32
27
  node.children && /* @__PURE__ */ jsx(
33
28
  Icon_default,
34
29
  {
35
30
  name: "right-chevron",
36
- className: `text-neutral-main transition-transform duration-150 ${isOpen ? "rotate-90" : "rotate-0"}`
31
+ className: `text-neutral-main cursor-pointer transition-transform duration-150 ${isOpen ? "rotate-90" : "rotate-0"}`
37
32
  }
38
33
  ),
39
34
  /* @__PURE__ */ jsx("img", { src: folder_default, alt: "folder", width: 25, height: 25 }),
40
- node.label
35
+ /* @__PURE__ */ jsx("span", { className: slots.label({ class: classNames == null ? void 0 : classNames.label }), onClick: () => {
36
+ var _a2;
37
+ return (_a2 = node.onClick) == null ? void 0 : _a2.call(node);
38
+ }, children: node.label })
41
39
  ] }),
42
- isOpen && ((_a = node.children) == null ? void 0 : _a.map((child) => /* @__PURE__ */ jsx(TreeNodeItem, { node: child, depth: depth + 1 }, child.id)))
40
+ isOpen && ((_a = node.children) == null ? void 0 : _a.map((child) => /* @__PURE__ */ jsx(TreeNodeItem, { node: child, depth: depth + 1, classNames }, child.id)))
43
41
  ] });
44
42
  });
45
- var Tree = forwardRef(({ headerContent, group }, ref) => {
43
+ var Tree = forwardRef(({ headerContent, group, classNames }) => {
46
44
  const { label, data, onClick } = group;
47
45
  const slots = useMemo(() => treeStyle(), []);
48
- return /* @__PURE__ */ jsxs("div", { className: slots.base(), ref, children: [
46
+ return /* @__PURE__ */ jsxs("div", { className: slots.base({ class: classNames == null ? void 0 : classNames.base }), children: [
49
47
  headerContent && /* @__PURE__ */ jsx("div", { children: headerContent }),
50
48
  /* @__PURE__ */ jsxs("div", { children: [
51
- /* @__PURE__ */ jsxs("div", { className: slots.label(), onClick, children: [
49
+ /* @__PURE__ */ jsxs("div", { className: slots.wrapper({ class: classNames == null ? void 0 : classNames.wrapper }), children: [
52
50
  /* @__PURE__ */ jsx("img", { src: cogwheel_default, alt: "cogwheel", width: 25, height: 25 }),
53
- label
51
+ /* @__PURE__ */ jsx("span", { className: slots.label({ class: classNames == null ? void 0 : classNames.label }), onClick, children: label })
54
52
  ] }),
55
- data.map((node) => /* @__PURE__ */ jsx(TreeNodeItem, { node, depth: 1 }, node.id))
53
+ data.map((node) => /* @__PURE__ */ jsx(TreeNodeItem, { node, depth: 1, classNames }, node.id))
56
54
  ] })
57
55
  ] });
58
56
  });
@@ -61,8 +59,8 @@ Tree.displayName = "Tree";
61
59
  var tree_default = Tree;
62
60
  var treeStyle = tv({
63
61
  slots: {
64
- base: ["border", "border-neutral-light", "rounded-xl", "p-[20px]", "flex", "flex-col", "gap-[20px]"],
65
- label: [
62
+ base: ["border", "border-neutral-light", "rounded-xl", "p-[20px]", "flex", "flex-col", "gap-[20px]", "select-none"],
63
+ wrapper: [
66
64
  "flex",
67
65
  "items-center",
68
66
  "gap-[5px]",
@@ -71,9 +69,9 @@ var treeStyle = tv({
71
69
  "text-body-foreground",
72
70
  "hover:bg-neutral-soft",
73
71
  "p-[5px]",
74
- "rounded-[5px]",
75
- "cursor-pointer"
76
- ]
72
+ "rounded-[5px]"
73
+ ],
74
+ label: ["cursor-pointer"]
77
75
  }
78
76
  });
79
77
 
@@ -3,11 +3,11 @@ import "../../chunk-LUWGOKLG.mjs";
3
3
  import {
4
4
  ToastProvider,
5
5
  useToast
6
- } from "../../chunk-YBDA3WQP.mjs";
7
- import "../../chunk-ZOTHPHXA.mjs";
6
+ } from "../../chunk-UAHTRCKG.mjs";
8
7
  import {
9
8
  toast_default
10
9
  } from "../../chunk-OUAKGMDW.mjs";
10
+ import "../../chunk-ZOTHPHXA.mjs";
11
11
  import "../../chunk-ZYIIXWVY.mjs";
12
12
  import "../../chunk-HWL7TPUN.mjs";
13
13
  import "../../chunk-3IU2RPSM.mjs";
@@ -2,9 +2,9 @@
2
2
  import {
3
3
  ToastProvider,
4
4
  useToast
5
- } from "../../chunk-YBDA3WQP.mjs";
6
- import "../../chunk-ZOTHPHXA.mjs";
5
+ } from "../../chunk-UAHTRCKG.mjs";
7
6
  import "../../chunk-OUAKGMDW.mjs";
7
+ import "../../chunk-ZOTHPHXA.mjs";
8
8
  import "../../chunk-ZYIIXWVY.mjs";
9
9
  import "../../chunk-HWL7TPUN.mjs";
10
10
  import "../../chunk-3IU2RPSM.mjs";
@@ -1,2 +1,5 @@
1
- export { default as Tree } from './tree.mjs';
1
+ export { default as Tree, TreeNode } from './tree.mjs';
2
+ import 'tailwind-variants';
3
+ import 'tailwind-merge';
2
4
  import 'react';
5
+ import '../../utils/types.mjs';
@@ -1,2 +1,5 @@
1
- export { default as Tree } from './tree.js';
1
+ export { default as Tree, TreeNode } from './tree.js';
2
+ import 'tailwind-variants';
3
+ import 'tailwind-merge';
2
4
  import 'react';
5
+ import '../../utils/types.js';
@@ -4304,44 +4304,42 @@ var folder_default = "../../folder-RO3QTLGS.svg";
4304
4304
 
4305
4305
  // src/components/tree/tree.tsx
4306
4306
  var import_jsx_runtime3 = require("react/jsx-runtime");
4307
- var TreeNodeItem = (0, import_react.forwardRef)(({ node, depth }, _ref) => {
4307
+ var TreeNodeItem = (0, import_react.forwardRef)(({ node, depth, classNames }) => {
4308
4308
  var _a;
4309
4309
  const [isOpen, setIsOpen] = (0, import_react.useState)(false);
4310
4310
  const slots = (0, import_react.useMemo)(() => treeStyle(), []);
4311
4311
  const toggleOpen = (0, import_react.useCallback)(() => {
4312
4312
  setIsOpen((prev) => !prev);
4313
4313
  }, []);
4314
- const handleClick = () => {
4315
- var _a2;
4316
- toggleOpen();
4317
- (_a2 = node.onClick) == null ? void 0 : _a2.call(node);
4318
- };
4319
4314
  return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: depth > 1 ? "ml-[30px]" : "", children: [
4320
- /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: slots.label(), onClick: handleClick, children: [
4315
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: slots.wrapper({ class: classNames == null ? void 0 : classNames.wrapper }), onClick: toggleOpen, children: [
4321
4316
  node.children && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
4322
4317
  Icon_default,
4323
4318
  {
4324
4319
  name: "right-chevron",
4325
- className: `text-neutral-main transition-transform duration-150 ${isOpen ? "rotate-90" : "rotate-0"}`
4320
+ className: `text-neutral-main cursor-pointer transition-transform duration-150 ${isOpen ? "rotate-90" : "rotate-0"}`
4326
4321
  }
4327
4322
  ),
4328
4323
  /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("img", { src: folder_default, alt: "folder", width: 25, height: 25 }),
4329
- node.label
4324
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: slots.label({ class: classNames == null ? void 0 : classNames.label }), onClick: () => {
4325
+ var _a2;
4326
+ return (_a2 = node.onClick) == null ? void 0 : _a2.call(node);
4327
+ }, children: node.label })
4330
4328
  ] }),
4331
- isOpen && ((_a = node.children) == null ? void 0 : _a.map((child) => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(TreeNodeItem, { node: child, depth: depth + 1 }, child.id)))
4329
+ isOpen && ((_a = node.children) == null ? void 0 : _a.map((child) => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(TreeNodeItem, { node: child, depth: depth + 1, classNames }, child.id)))
4332
4330
  ] });
4333
4331
  });
4334
- var Tree = (0, import_react.forwardRef)(({ headerContent, group }, ref) => {
4332
+ var Tree = (0, import_react.forwardRef)(({ headerContent, group, classNames }) => {
4335
4333
  const { label, data, onClick } = group;
4336
4334
  const slots = (0, import_react.useMemo)(() => treeStyle(), []);
4337
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: slots.base(), ref, children: [
4335
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: slots.base({ class: classNames == null ? void 0 : classNames.base }), children: [
4338
4336
  headerContent && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { children: headerContent }),
4339
4337
  /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { children: [
4340
- /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: slots.label(), onClick, children: [
4338
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: slots.wrapper({ class: classNames == null ? void 0 : classNames.wrapper }), children: [
4341
4339
  /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("img", { src: cogwheel_default, alt: "cogwheel", width: 25, height: 25 }),
4342
- label
4340
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: slots.label({ class: classNames == null ? void 0 : classNames.label }), onClick, children: label })
4343
4341
  ] }),
4344
- data.map((node) => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(TreeNodeItem, { node, depth: 1 }, node.id))
4342
+ data.map((node) => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(TreeNodeItem, { node, depth: 1, classNames }, node.id))
4345
4343
  ] })
4346
4344
  ] });
4347
4345
  });
@@ -4350,8 +4348,8 @@ Tree.displayName = "Tree";
4350
4348
  var tree_default = Tree;
4351
4349
  var treeStyle = tv({
4352
4350
  slots: {
4353
- base: ["border", "border-neutral-light", "rounded-xl", "p-[20px]", "flex", "flex-col", "gap-[20px]"],
4354
- label: [
4351
+ base: ["border", "border-neutral-light", "rounded-xl", "p-[20px]", "flex", "flex-col", "gap-[20px]", "select-none"],
4352
+ wrapper: [
4355
4353
  "flex",
4356
4354
  "items-center",
4357
4355
  "gap-[5px]",
@@ -4360,9 +4358,9 @@ var treeStyle = tv({
4360
4358
  "text-body-foreground",
4361
4359
  "hover:bg-neutral-soft",
4362
4360
  "p-[5px]",
4363
- "rounded-[5px]",
4364
- "cursor-pointer"
4365
- ]
4361
+ "rounded-[5px]"
4362
+ ],
4363
+ label: ["cursor-pointer"]
4366
4364
  }
4367
4365
  });
4368
4366
  // Annotate the CommonJS export names for ESM import in node:
@@ -2,12 +2,12 @@
2
2
  import "../../chunk-MBLZYQCN.mjs";
3
3
  import {
4
4
  tree_default
5
- } from "../../chunk-BPVRXFIC.mjs";
5
+ } from "../../chunk-BZGUSIX5.mjs";
6
6
  import "../../chunk-ZYIIXWVY.mjs";
7
7
  import "../../chunk-HWL7TPUN.mjs";
8
+ import "../../chunk-3IU2RPSM.mjs";
8
9
  import "../../chunk-7USF56CT.mjs";
9
10
  import "../../chunk-IZM66FHP.mjs";
10
- import "../../chunk-3IU2RPSM.mjs";
11
11
  import "../../chunk-4ZJFD3L3.mjs";
12
12
  import "../../chunk-AC6TWLRT.mjs";
13
13
  export {
@@ -1,5 +1,8 @@
1
+ import * as tailwind_variants from 'tailwind-variants';
2
+ import * as tailwind_merge from 'tailwind-merge';
1
3
  import * as react from 'react';
2
4
  import { ReactNode } from 'react';
5
+ import { SlotsToClasses } from '../../utils/types.mjs';
3
6
 
4
7
  type TreeNode = {
5
8
  id: number;
@@ -14,7 +17,47 @@ interface TreeProps {
14
17
  data: TreeNode[];
15
18
  onClick?: () => void;
16
19
  };
20
+ classNames?: SlotsToClasses<TreeSlots>;
17
21
  }
18
22
  declare const Tree: react.ForwardRefExoticComponent<TreeProps & react.RefAttributes<HTMLDivElement>>;
19
23
 
20
- export { Tree as default };
24
+ declare const treeStyle: tailwind_variants.TVReturnType<{
25
+ [key: string]: {
26
+ [key: string]: tailwind_merge.ClassNameValue | {
27
+ base?: tailwind_merge.ClassNameValue;
28
+ label?: tailwind_merge.ClassNameValue;
29
+ wrapper?: tailwind_merge.ClassNameValue;
30
+ };
31
+ };
32
+ } | {
33
+ [x: string]: {
34
+ [x: string]: tailwind_merge.ClassNameValue | {
35
+ base?: tailwind_merge.ClassNameValue;
36
+ label?: tailwind_merge.ClassNameValue;
37
+ wrapper?: tailwind_merge.ClassNameValue;
38
+ };
39
+ };
40
+ } | {}, {
41
+ base: string[];
42
+ wrapper: string[];
43
+ label: string[];
44
+ }, undefined, {
45
+ [key: string]: {
46
+ [key: string]: tailwind_merge.ClassNameValue | {
47
+ base?: tailwind_merge.ClassNameValue;
48
+ label?: tailwind_merge.ClassNameValue;
49
+ wrapper?: tailwind_merge.ClassNameValue;
50
+ };
51
+ };
52
+ } | {}, {
53
+ base: string[];
54
+ wrapper: string[];
55
+ label: string[];
56
+ }, tailwind_variants.TVReturnType<unknown, {
57
+ base: string[];
58
+ wrapper: string[];
59
+ label: string[];
60
+ }, undefined, unknown, unknown, undefined>>;
61
+ type TreeSlots = keyof ReturnType<typeof treeStyle>;
62
+
63
+ export { type TreeNode, Tree as default };
@@ -1,5 +1,8 @@
1
+ import * as tailwind_variants from 'tailwind-variants';
2
+ import * as tailwind_merge from 'tailwind-merge';
1
3
  import * as react from 'react';
2
4
  import { ReactNode } from 'react';
5
+ import { SlotsToClasses } from '../../utils/types.js';
3
6
 
4
7
  type TreeNode = {
5
8
  id: number;
@@ -14,7 +17,47 @@ interface TreeProps {
14
17
  data: TreeNode[];
15
18
  onClick?: () => void;
16
19
  };
20
+ classNames?: SlotsToClasses<TreeSlots>;
17
21
  }
18
22
  declare const Tree: react.ForwardRefExoticComponent<TreeProps & react.RefAttributes<HTMLDivElement>>;
19
23
 
20
- export { Tree as default };
24
+ declare const treeStyle: tailwind_variants.TVReturnType<{
25
+ [key: string]: {
26
+ [key: string]: tailwind_merge.ClassNameValue | {
27
+ base?: tailwind_merge.ClassNameValue;
28
+ label?: tailwind_merge.ClassNameValue;
29
+ wrapper?: tailwind_merge.ClassNameValue;
30
+ };
31
+ };
32
+ } | {
33
+ [x: string]: {
34
+ [x: string]: tailwind_merge.ClassNameValue | {
35
+ base?: tailwind_merge.ClassNameValue;
36
+ label?: tailwind_merge.ClassNameValue;
37
+ wrapper?: tailwind_merge.ClassNameValue;
38
+ };
39
+ };
40
+ } | {}, {
41
+ base: string[];
42
+ wrapper: string[];
43
+ label: string[];
44
+ }, undefined, {
45
+ [key: string]: {
46
+ [key: string]: tailwind_merge.ClassNameValue | {
47
+ base?: tailwind_merge.ClassNameValue;
48
+ label?: tailwind_merge.ClassNameValue;
49
+ wrapper?: tailwind_merge.ClassNameValue;
50
+ };
51
+ };
52
+ } | {}, {
53
+ base: string[];
54
+ wrapper: string[];
55
+ label: string[];
56
+ }, tailwind_variants.TVReturnType<unknown, {
57
+ base: string[];
58
+ wrapper: string[];
59
+ label: string[];
60
+ }, undefined, unknown, unknown, undefined>>;
61
+ type TreeSlots = keyof ReturnType<typeof treeStyle>;
62
+
63
+ export { type TreeNode, Tree as default };
@@ -4302,44 +4302,42 @@ var folder_default = "../../folder-RO3QTLGS.svg";
4302
4302
 
4303
4303
  // src/components/tree/tree.tsx
4304
4304
  var import_jsx_runtime3 = require("react/jsx-runtime");
4305
- var TreeNodeItem = (0, import_react.forwardRef)(({ node, depth }, _ref) => {
4305
+ var TreeNodeItem = (0, import_react.forwardRef)(({ node, depth, classNames }) => {
4306
4306
  var _a;
4307
4307
  const [isOpen, setIsOpen] = (0, import_react.useState)(false);
4308
4308
  const slots = (0, import_react.useMemo)(() => treeStyle(), []);
4309
4309
  const toggleOpen = (0, import_react.useCallback)(() => {
4310
4310
  setIsOpen((prev) => !prev);
4311
4311
  }, []);
4312
- const handleClick = () => {
4313
- var _a2;
4314
- toggleOpen();
4315
- (_a2 = node.onClick) == null ? void 0 : _a2.call(node);
4316
- };
4317
4312
  return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: depth > 1 ? "ml-[30px]" : "", children: [
4318
- /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: slots.label(), onClick: handleClick, children: [
4313
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: slots.wrapper({ class: classNames == null ? void 0 : classNames.wrapper }), onClick: toggleOpen, children: [
4319
4314
  node.children && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
4320
4315
  Icon_default,
4321
4316
  {
4322
4317
  name: "right-chevron",
4323
- className: `text-neutral-main transition-transform duration-150 ${isOpen ? "rotate-90" : "rotate-0"}`
4318
+ className: `text-neutral-main cursor-pointer transition-transform duration-150 ${isOpen ? "rotate-90" : "rotate-0"}`
4324
4319
  }
4325
4320
  ),
4326
4321
  /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("img", { src: folder_default, alt: "folder", width: 25, height: 25 }),
4327
- node.label
4322
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: slots.label({ class: classNames == null ? void 0 : classNames.label }), onClick: () => {
4323
+ var _a2;
4324
+ return (_a2 = node.onClick) == null ? void 0 : _a2.call(node);
4325
+ }, children: node.label })
4328
4326
  ] }),
4329
- isOpen && ((_a = node.children) == null ? void 0 : _a.map((child) => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(TreeNodeItem, { node: child, depth: depth + 1 }, child.id)))
4327
+ isOpen && ((_a = node.children) == null ? void 0 : _a.map((child) => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(TreeNodeItem, { node: child, depth: depth + 1, classNames }, child.id)))
4330
4328
  ] });
4331
4329
  });
4332
- var Tree = (0, import_react.forwardRef)(({ headerContent, group }, ref) => {
4330
+ var Tree = (0, import_react.forwardRef)(({ headerContent, group, classNames }) => {
4333
4331
  const { label, data, onClick } = group;
4334
4332
  const slots = (0, import_react.useMemo)(() => treeStyle(), []);
4335
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: slots.base(), ref, children: [
4333
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: slots.base({ class: classNames == null ? void 0 : classNames.base }), children: [
4336
4334
  headerContent && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { children: headerContent }),
4337
4335
  /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { children: [
4338
- /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: slots.label(), onClick, children: [
4336
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: slots.wrapper({ class: classNames == null ? void 0 : classNames.wrapper }), children: [
4339
4337
  /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("img", { src: cogwheel_default, alt: "cogwheel", width: 25, height: 25 }),
4340
- label
4338
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: slots.label({ class: classNames == null ? void 0 : classNames.label }), onClick, children: label })
4341
4339
  ] }),
4342
- data.map((node) => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(TreeNodeItem, { node, depth: 1 }, node.id))
4340
+ data.map((node) => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(TreeNodeItem, { node, depth: 1, classNames }, node.id))
4343
4341
  ] })
4344
4342
  ] });
4345
4343
  });
@@ -4348,8 +4346,8 @@ Tree.displayName = "Tree";
4348
4346
  var tree_default = Tree;
4349
4347
  var treeStyle = tv({
4350
4348
  slots: {
4351
- base: ["border", "border-neutral-light", "rounded-xl", "p-[20px]", "flex", "flex-col", "gap-[20px]"],
4352
- label: [
4349
+ base: ["border", "border-neutral-light", "rounded-xl", "p-[20px]", "flex", "flex-col", "gap-[20px]", "select-none"],
4350
+ wrapper: [
4353
4351
  "flex",
4354
4352
  "items-center",
4355
4353
  "gap-[5px]",
@@ -4358,8 +4356,8 @@ var treeStyle = tv({
4358
4356
  "text-body-foreground",
4359
4357
  "hover:bg-neutral-soft",
4360
4358
  "p-[5px]",
4361
- "rounded-[5px]",
4362
- "cursor-pointer"
4363
- ]
4359
+ "rounded-[5px]"
4360
+ ],
4361
+ label: ["cursor-pointer"]
4364
4362
  }
4365
4363
  });
@@ -1,12 +1,12 @@
1
1
  "use client";
2
2
  import {
3
3
  tree_default
4
- } from "../../chunk-BPVRXFIC.mjs";
4
+ } from "../../chunk-BZGUSIX5.mjs";
5
5
  import "../../chunk-ZYIIXWVY.mjs";
6
6
  import "../../chunk-HWL7TPUN.mjs";
7
+ import "../../chunk-3IU2RPSM.mjs";
7
8
  import "../../chunk-7USF56CT.mjs";
8
9
  import "../../chunk-IZM66FHP.mjs";
9
- import "../../chunk-3IU2RPSM.mjs";
10
10
  import "../../chunk-4ZJFD3L3.mjs";
11
11
  import "../../chunk-AC6TWLRT.mjs";
12
12
  export {
package/dist/index.d.mts CHANGED
@@ -25,7 +25,7 @@ export { default as Toast } from './components/toast/toast.mjs';
25
25
  export { ToastProvider, useToast } from './components/toast/use-toast.mjs';
26
26
  export { default as DateTimePicker } from './components/dateTimePicker/dateTimePicker.mjs';
27
27
  export { default as ScrollArea } from './components/scroll/scrollArea.mjs';
28
- export { default as Tree } from './components/tree/tree.mjs';
28
+ export { default as Tree, TreeNode } from './components/tree/tree.mjs';
29
29
  export { tv } from './utils/tailwind-variants.mjs';
30
30
  export { deepnoidUi } from '@deepnoid/tailwind-config';
31
31
  export { VariantProps } from 'tailwind-variants';
package/dist/index.d.ts CHANGED
@@ -25,7 +25,7 @@ export { default as Toast } from './components/toast/toast.js';
25
25
  export { ToastProvider, useToast } from './components/toast/use-toast.js';
26
26
  export { default as DateTimePicker } from './components/dateTimePicker/dateTimePicker.js';
27
27
  export { default as ScrollArea } from './components/scroll/scrollArea.js';
28
- export { default as Tree } from './components/tree/tree.js';
28
+ export { default as Tree, TreeNode } from './components/tree/tree.js';
29
29
  export { tv } from './utils/tailwind-variants.js';
30
30
  export { deepnoidUi } from '@deepnoid/tailwind-config';
31
31
  export { VariantProps } from 'tailwind-variants';
package/dist/index.js CHANGED
@@ -10009,44 +10009,42 @@ var folder_default = "./folder-RO3QTLGS.svg";
10009
10009
 
10010
10010
  // src/components/tree/tree.tsx
10011
10011
  var import_jsx_runtime34 = require("react/jsx-runtime");
10012
- var TreeNodeItem = (0, import_react34.forwardRef)(({ node, depth }, _ref) => {
10012
+ var TreeNodeItem = (0, import_react34.forwardRef)(({ node, depth, classNames }) => {
10013
10013
  var _a;
10014
10014
  const [isOpen, setIsOpen] = (0, import_react34.useState)(false);
10015
10015
  const slots = (0, import_react34.useMemo)(() => treeStyle(), []);
10016
10016
  const toggleOpen = (0, import_react34.useCallback)(() => {
10017
10017
  setIsOpen((prev) => !prev);
10018
10018
  }, []);
10019
- const handleClick = () => {
10020
- var _a2;
10021
- toggleOpen();
10022
- (_a2 = node.onClick) == null ? void 0 : _a2.call(node);
10023
- };
10024
10019
  return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: depth > 1 ? "ml-[30px]" : "", children: [
10025
- /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: slots.label(), onClick: handleClick, children: [
10020
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: slots.wrapper({ class: classNames == null ? void 0 : classNames.wrapper }), onClick: toggleOpen, children: [
10026
10021
  node.children && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
10027
10022
  Icon_default,
10028
10023
  {
10029
10024
  name: "right-chevron",
10030
- className: `text-neutral-main transition-transform duration-150 ${isOpen ? "rotate-90" : "rotate-0"}`
10025
+ className: `text-neutral-main cursor-pointer transition-transform duration-150 ${isOpen ? "rotate-90" : "rotate-0"}`
10031
10026
  }
10032
10027
  ),
10033
10028
  /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("img", { src: folder_default, alt: "folder", width: 25, height: 25 }),
10034
- node.label
10029
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("span", { className: slots.label({ class: classNames == null ? void 0 : classNames.label }), onClick: () => {
10030
+ var _a2;
10031
+ return (_a2 = node.onClick) == null ? void 0 : _a2.call(node);
10032
+ }, children: node.label })
10035
10033
  ] }),
10036
- isOpen && ((_a = node.children) == null ? void 0 : _a.map((child) => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(TreeNodeItem, { node: child, depth: depth + 1 }, child.id)))
10034
+ isOpen && ((_a = node.children) == null ? void 0 : _a.map((child) => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(TreeNodeItem, { node: child, depth: depth + 1, classNames }, child.id)))
10037
10035
  ] });
10038
10036
  });
10039
- var Tree = (0, import_react34.forwardRef)(({ headerContent, group }, ref) => {
10037
+ var Tree = (0, import_react34.forwardRef)(({ headerContent, group, classNames }) => {
10040
10038
  const { label, data, onClick } = group;
10041
10039
  const slots = (0, import_react34.useMemo)(() => treeStyle(), []);
10042
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: slots.base(), ref, children: [
10040
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: slots.base({ class: classNames == null ? void 0 : classNames.base }), children: [
10043
10041
  headerContent && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { children: headerContent }),
10044
10042
  /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { children: [
10045
- /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: slots.label(), onClick, children: [
10043
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: slots.wrapper({ class: classNames == null ? void 0 : classNames.wrapper }), children: [
10046
10044
  /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("img", { src: cogwheel_default, alt: "cogwheel", width: 25, height: 25 }),
10047
- label
10045
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("span", { className: slots.label({ class: classNames == null ? void 0 : classNames.label }), onClick, children: label })
10048
10046
  ] }),
10049
- data.map((node) => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(TreeNodeItem, { node, depth: 1 }, node.id))
10047
+ data.map((node) => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(TreeNodeItem, { node, depth: 1, classNames }, node.id))
10050
10048
  ] })
10051
10049
  ] });
10052
10050
  });
@@ -10055,8 +10053,8 @@ Tree.displayName = "Tree";
10055
10053
  var tree_default = Tree;
10056
10054
  var treeStyle = tv({
10057
10055
  slots: {
10058
- base: ["border", "border-neutral-light", "rounded-xl", "p-[20px]", "flex", "flex-col", "gap-[20px]"],
10059
- label: [
10056
+ base: ["border", "border-neutral-light", "rounded-xl", "p-[20px]", "flex", "flex-col", "gap-[20px]", "select-none"],
10057
+ wrapper: [
10060
10058
  "flex",
10061
10059
  "items-center",
10062
10060
  "gap-[5px]",
@@ -10065,9 +10063,9 @@ var treeStyle = tv({
10065
10063
  "text-body-foreground",
10066
10064
  "hover:bg-neutral-soft",
10067
10065
  "p-[5px]",
10068
- "rounded-[5px]",
10069
- "cursor-pointer"
10070
- ]
10066
+ "rounded-[5px]"
10067
+ ],
10068
+ label: ["cursor-pointer"]
10071
10069
  }
10072
10070
  });
10073
10071
  // Annotate the CommonJS export names for ESM import in node:
package/dist/index.mjs CHANGED
@@ -2,26 +2,26 @@
2
2
  import "./chunk-MBLZYQCN.mjs";
3
3
  import {
4
4
  tree_default
5
- } from "./chunk-BPVRXFIC.mjs";
5
+ } from "./chunk-BZGUSIX5.mjs";
6
6
  import "./chunk-RRAZM5D3.mjs";
7
7
  import {
8
8
  textarea_default
9
9
  } from "./chunk-BKE6QF6W.mjs";
10
+ import "./chunk-HIE2YRGA.mjs";
11
+ import {
12
+ tooltip_default
13
+ } from "./chunk-Z2537DF6.mjs";
14
+ import "./chunk-ZMOAFSYE.mjs";
15
+ import "./chunk-WSIADHVC.mjs";
10
16
  import "./chunk-LUWGOKLG.mjs";
11
17
  import {
12
18
  ToastProvider,
13
19
  useToast
14
- } from "./chunk-YBDA3WQP.mjs";
15
- import "./chunk-ZOTHPHXA.mjs";
20
+ } from "./chunk-UAHTRCKG.mjs";
16
21
  import {
17
22
  toast_default
18
23
  } from "./chunk-OUAKGMDW.mjs";
19
- import "./chunk-HIE2YRGA.mjs";
20
- import {
21
- tooltip_default
22
- } from "./chunk-Z2537DF6.mjs";
23
- import "./chunk-ZMOAFSYE.mjs";
24
- import "./chunk-WSIADHVC.mjs";
24
+ import "./chunk-ZOTHPHXA.mjs";
25
25
  import "./chunk-DX3KXNP6.mjs";
26
26
  import {
27
27
  form_table_default
@@ -35,14 +35,14 @@ import "./chunk-3MY6LO7N.mjs";
35
35
  import {
36
36
  tabs_default
37
37
  } from "./chunk-2YMAKIZ6.mjs";
38
- import "./chunk-DQRAFUDA.mjs";
39
- import {
40
- scrollArea_default
41
- } from "./chunk-M37VBNB3.mjs";
42
38
  import "./chunk-QCEKPS7U.mjs";
43
39
  import {
44
40
  select_default
45
41
  } from "./chunk-MSAULFDB.mjs";
42
+ import "./chunk-DQRAFUDA.mjs";
43
+ import {
44
+ scrollArea_default
45
+ } from "./chunk-M37VBNB3.mjs";
46
46
  import "./chunk-LVFI2NOH.mjs";
47
47
  import {
48
48
  switch_default
@@ -60,15 +60,15 @@ import "./chunk-TPFN22HR.mjs";
60
60
  import {
61
61
  radio_default
62
62
  } from "./chunk-QIRL6HY6.mjs";
63
- import "./chunk-MGEWSREV.mjs";
64
- import {
65
- chip_default
66
- } from "./chunk-6HX3PPL6.mjs";
67
63
  import "./chunk-2GCSFWHD.mjs";
68
64
  import {
69
65
  input_default
70
66
  } from "./chunk-P5PJTJLY.mjs";
71
67
  import "./chunk-QZ3LVYJW.mjs";
68
+ import "./chunk-MGEWSREV.mjs";
69
+ import {
70
+ chip_default
71
+ } from "./chunk-6HX3PPL6.mjs";
72
72
  import "./chunk-75HLCORR.mjs";
73
73
  import {
74
74
  dateTimePicker_default
@@ -112,13 +112,13 @@ import {
112
112
  import {
113
113
  checkbox_default
114
114
  } from "./chunk-D6QI3DJG.mjs";
115
- import "./chunk-7USF56CT.mjs";
116
- import "./chunk-IZM66FHP.mjs";
117
115
  import "./chunk-7DLOYKVC.mjs";
118
116
  import {
119
117
  avatar_default
120
118
  } from "./chunk-XQGD4ZIX.mjs";
121
119
  import "./chunk-3IU2RPSM.mjs";
120
+ import "./chunk-7USF56CT.mjs";
121
+ import "./chunk-IZM66FHP.mjs";
122
122
  import "./chunk-SE5TU755.mjs";
123
123
  import {
124
124
  backdrop_default
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deepnoid/ui",
3
- "version": "0.1.22",
3
+ "version": "0.1.23",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "exports": {
@@ -1,10 +1,10 @@
1
1
  "use client";
2
- import {
3
- getToastPosition
4
- } from "./chunk-ZOTHPHXA.mjs";
5
2
  import {
6
3
  toast_default
7
4
  } from "./chunk-OUAKGMDW.mjs";
5
+ import {
6
+ getToastPosition
7
+ } from "./chunk-ZOTHPHXA.mjs";
8
8
 
9
9
  // src/components/toast/use-toast.tsx
10
10
  import { createContext, useContext, useState, useCallback, useEffect, useRef } from "react";