@deepnoid/ui 0.0.83 → 0.0.84

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.
Files changed (207) hide show
  1. package/dist/{chunk-KWOLWE6I.mjs → chunk-463XE4SI.mjs} +4 -4
  2. package/dist/chunk-5T5F5WVS.mjs +32 -0
  3. package/dist/{chunk-S4DTK5GI.mjs → chunk-ADDUBJ4I.mjs} +1 -1
  4. package/dist/{chunk-GJKNTX2T.mjs → chunk-AHORH5PH.mjs} +6 -4
  5. package/dist/{chunk-7LYJAJIS.mjs → chunk-EWKYBS7I.mjs} +13 -6
  6. package/dist/{chunk-H7BLXC5M.mjs → chunk-ILMIS63S.mjs} +14 -14
  7. package/dist/{chunk-H737LHAY.mjs → chunk-KA4L5SCT.mjs} +8 -8
  8. package/dist/{chunk-BHSCW5D6.mjs → chunk-LGELMZCN.mjs} +1 -1
  9. package/dist/chunk-LXPWTJ3F.mjs +58 -0
  10. package/dist/{chunk-FNPWLOGV.mjs → chunk-NTTHTGDK.mjs} +39 -37
  11. package/dist/{chunk-WIKB37T7.mjs → chunk-QCOPD2HG.mjs} +1 -1
  12. package/dist/{chunk-TLYAFXE2.mjs → chunk-QURXBWKK.mjs} +1902 -746
  13. package/dist/{chunk-6U736HAX.mjs → chunk-RTH3FPAS.mjs} +3 -3
  14. package/dist/chunk-SDNTEP5C.mjs +61 -0
  15. package/dist/{chunk-FLJ4ZZXV.mjs → chunk-SQLRQTFC.mjs} +1 -1
  16. package/dist/chunk-W7ABNK3K.mjs +1 -0
  17. package/dist/chunk-XTJL67KM.mjs +127 -0
  18. package/dist/chunk-ZYIIXWVY.mjs +1 -0
  19. package/dist/components/accordion/accordion.test.js +39 -37
  20. package/dist/components/accordion/accordion.test.mjs +1 -1
  21. package/dist/components/accordion/accordionItem.js +1905 -749
  22. package/dist/components/accordion/accordionItem.mjs +4 -4
  23. package/dist/components/accordion/index.js +1905 -749
  24. package/dist/components/accordion/index.mjs +4 -4
  25. package/dist/components/button/button-group.test.js +39 -37
  26. package/dist/components/button/button-group.test.mjs +2 -2
  27. package/dist/components/button/button.test.js +52 -50
  28. package/dist/components/button/button.test.mjs +2 -2
  29. package/dist/components/card/card.test.js +39 -37
  30. package/dist/components/card/card.test.mjs +1 -1
  31. package/dist/components/checkbox/checkbox.test.js +39 -37
  32. package/dist/components/checkbox/checkbox.test.mjs +2 -2
  33. package/dist/components/{list/list.d.mts → dropdown/dropdown.d.ts} +9 -9
  34. package/dist/components/dropdown/dropdown.js +122 -0
  35. package/dist/components/dropdown/dropdown.mjs +10 -0
  36. package/dist/components/dropdown/dropdown.test.js +12997 -0
  37. package/dist/components/dropdown/dropdown.test.mjs +25 -0
  38. package/dist/components/dropdown/index.js +128 -0
  39. package/dist/components/dropdown/index.mjs +11 -0
  40. package/dist/components/icon/Icon.d.ts +499 -1
  41. package/dist/components/icon/Icon.js +1940 -778
  42. package/dist/components/icon/Icon.mjs +6 -4
  43. package/dist/components/icon/index.js +1910 -751
  44. package/dist/components/icon/index.mjs +7 -5
  45. package/dist/components/icon/template.d.ts +98 -61
  46. package/dist/components/icon/template.js +1902 -746
  47. package/dist/components/icon/template.mjs +1 -1
  48. package/dist/components/input/index.js +1912 -756
  49. package/dist/components/input/index.mjs +4 -4
  50. package/dist/components/input/input.js +1912 -756
  51. package/dist/components/input/input.mjs +4 -4
  52. package/dist/components/input/input.test.js +1983 -825
  53. package/dist/components/input/input.test.mjs +6 -6
  54. package/dist/components/list/index.mjs +3 -3
  55. package/dist/components/list/list.test.js +39 -37
  56. package/dist/components/list/list.test.mjs +1 -1
  57. package/dist/components/modal/index.js +1942 -779
  58. package/dist/components/modal/index.mjs +3 -3
  59. package/dist/components/modal/modal.js +1942 -779
  60. package/dist/components/modal/modal.mjs +3 -3
  61. package/dist/components/modal/modal.test.js +1981 -816
  62. package/dist/components/modal/modal.test.mjs +4 -4
  63. package/dist/components/pagination/pagination.test.js +39 -37
  64. package/dist/components/pagination/pagination.test.mjs +1 -1
  65. package/dist/components/progress/progress.test.d.ts +0 -2
  66. package/dist/components/progress/progress.test.js +39 -37
  67. package/dist/components/progress/progress.test.mjs +1 -1
  68. package/dist/components/radio/radio.test.js +39 -37
  69. package/dist/components/radio/radio.test.mjs +1 -1
  70. package/dist/components/select/index.js +1905 -749
  71. package/dist/components/select/index.mjs +5 -5
  72. package/dist/components/select/option.js +1905 -749
  73. package/dist/components/select/option.mjs +4 -4
  74. package/dist/components/select/select.js +1905 -749
  75. package/dist/components/select/select.mjs +5 -5
  76. package/dist/components/select/select.test.js +1951 -793
  77. package/dist/components/select/select.test.mjs +7 -7
  78. package/dist/components/slider/slider.test.d.ts +0 -2
  79. package/dist/components/slider/slider.test.js +39 -37
  80. package/dist/components/slider/slider.test.mjs +1 -1
  81. package/dist/components/switch/switch.test.d.ts +0 -2
  82. package/dist/components/switch/switch.test.js +39 -37
  83. package/dist/components/switch/switch.test.mjs +1 -1
  84. package/dist/components/table/index.js +1905 -749
  85. package/dist/components/table/index.mjs +5 -5
  86. package/dist/components/table/table-body.js +1905 -749
  87. package/dist/components/table/table-body.mjs +4 -4
  88. package/dist/components/table/table.js +1905 -749
  89. package/dist/components/table/table.mjs +5 -5
  90. package/dist/components/table/table.test.d.ts +0 -2
  91. package/dist/components/table/table.test.js +1951 -793
  92. package/dist/components/table/table.test.mjs +6 -6
  93. package/dist/components/tabs/tabs.test.d.ts +0 -2
  94. package/dist/components/tabs/tabs.test.js +39 -37
  95. package/dist/components/tabs/tabs.test.mjs +2 -2
  96. package/dist/components/textarea/textarea.test.d.ts +0 -2
  97. package/dist/components/textarea/textarea.test.js +52 -50
  98. package/dist/components/textarea/textarea.test.mjs +2 -2
  99. package/dist/components/toast/index.js +3810 -0
  100. package/dist/components/toast/index.mjs +16 -0
  101. package/dist/components/toast/toast-utils.js +84 -0
  102. package/dist/components/toast/toast-utils.mjs +8 -0
  103. package/dist/components/toast/toast.d.ts +204 -0
  104. package/dist/components/toast/toast.js +3804 -0
  105. package/dist/components/toast/toast.mjs +15 -0
  106. package/dist/components/toast/toast.test.d.ts +0 -0
  107. package/dist/components/toast/toast.test.js +16689 -0
  108. package/dist/components/toast/toast.test.mjs +30 -0
  109. package/dist/components/toast/useToast.d.ts +0 -0
  110. package/dist/components/toast/useToast.js +110 -0
  111. package/dist/components/toast/useToast.mjs +9 -0
  112. package/dist/components/tooltip/tooltip-utils.d.ts +0 -2
  113. package/dist/components/tooltip/tooltip.test.d.ts +0 -2
  114. package/dist/components/tooltip/tooltip.test.js +39 -37
  115. package/dist/components/tooltip/tooltip.test.mjs +1 -1
  116. package/dist/components/tooltip/useTooltip.d.ts +0 -2
  117. package/dist/index.d.ts +4 -1
  118. package/dist/index.js +2172 -761
  119. package/dist/index.mjs +44 -30
  120. package/package.json +4 -3
  121. package/dist/components/accordion/accordion.d.mts +0 -154
  122. package/dist/components/accordion/accordionItem.d.mts +0 -282
  123. package/dist/components/accordion/index.d.mts +0 -6
  124. package/dist/components/button/button-group.d.mts +0 -14
  125. package/dist/components/button/button-group.test.d.mts +0 -2
  126. package/dist/components/button/button.d.mts +0 -18
  127. package/dist/components/button/button.test.d.mts +0 -2
  128. package/dist/components/button/index.d.mts +0 -3
  129. package/dist/components/card/card.d.mts +0 -124
  130. package/dist/components/card/card.test.d.mts +0 -2
  131. package/dist/components/card/index.d.mts +0 -5
  132. package/dist/components/card/index.d.ts +0 -5
  133. package/dist/components/checkbox/checkbox.d.mts +0 -349
  134. package/dist/components/checkbox/checkbox.test.d.mts +0 -2
  135. package/dist/components/checkbox/index.d.mts +0 -5
  136. package/dist/components/checkbox/index.d.ts +0 -5
  137. package/dist/components/icon/Icon.d.mts +0 -15
  138. package/dist/components/icon/index.d.mts +0 -4
  139. package/dist/components/icon/index.d.ts +0 -4
  140. package/dist/components/icon/template.d.mts +0 -97
  141. package/dist/components/input/index.d.mts +0 -5
  142. package/dist/components/input/index.d.ts +0 -5
  143. package/dist/components/input/input.d.mts +0 -437
  144. package/dist/components/input/input.test.d.mts +0 -2
  145. package/dist/components/list/index.d.mts +0 -6
  146. package/dist/components/list/list.test.d.mts +0 -2
  147. package/dist/components/list/listItem.d.mts +0 -183
  148. package/dist/components/modal/index.d.mts +0 -8
  149. package/dist/components/modal/index.d.ts +0 -8
  150. package/dist/components/modal/modal.d.mts +0 -214
  151. package/dist/components/modal/modal.test.d.mts +0 -2
  152. package/dist/components/pagination/index.d.mts +0 -4
  153. package/dist/components/pagination/index.d.ts +0 -4
  154. package/dist/components/pagination/pagination.d.mts +0 -186
  155. package/dist/components/pagination/pagination.test.d.mts +0 -2
  156. package/dist/components/pagination/usePagination.d.mts +0 -16
  157. package/dist/components/progress/index.d.mts +0 -5
  158. package/dist/components/progress/index.d.ts +0 -5
  159. package/dist/components/progress/progress.d.mts +0 -281
  160. package/dist/components/progress/progress.test.d.mts +0 -2
  161. package/dist/components/radio/index.d.mts +0 -5
  162. package/dist/components/radio/index.d.ts +0 -5
  163. package/dist/components/radio/radio.d.mts +0 -278
  164. package/dist/components/radio/radio.test.d.mts +0 -2
  165. package/dist/components/select/index.d.mts +0 -5
  166. package/dist/components/select/index.d.ts +0 -5
  167. package/dist/components/select/option.d.mts +0 -18
  168. package/dist/components/select/select.d.mts +0 -449
  169. package/dist/components/select/select.test.d.mts +0 -2
  170. package/dist/components/select/useSelect.d.mts +0 -32
  171. package/dist/components/slider/index.d.mts +0 -5
  172. package/dist/components/slider/index.d.ts +0 -5
  173. package/dist/components/slider/slider.d.mts +0 -333
  174. package/dist/components/slider/slider.test.d.mts +0 -2
  175. package/dist/components/switch/index.d.mts +0 -5
  176. package/dist/components/switch/index.d.ts +0 -5
  177. package/dist/components/switch/switch.d.mts +0 -304
  178. package/dist/components/switch/switch.test.d.mts +0 -2
  179. package/dist/components/table/index.d.mts +0 -5
  180. package/dist/components/table/index.d.ts +0 -5
  181. package/dist/components/table/table-body.d.mts +0 -26
  182. package/dist/components/table/table-head.d.mts +0 -21
  183. package/dist/components/table/table.d.mts +0 -583
  184. package/dist/components/table/table.test.d.mts +0 -2
  185. package/dist/components/tabs/index.d.mts +0 -5
  186. package/dist/components/tabs/index.d.ts +0 -5
  187. package/dist/components/tabs/tabs.d.mts +0 -241
  188. package/dist/components/tabs/tabs.test.d.mts +0 -2
  189. package/dist/components/textarea/index.d.mts +0 -2
  190. package/dist/components/textarea/index.d.ts +0 -2
  191. package/dist/components/textarea/textarea.d.mts +0 -17
  192. package/dist/components/textarea/textarea.test.d.mts +0 -2
  193. package/dist/components/tooltip/index.d.mts +0 -6
  194. package/dist/components/tooltip/index.d.ts +0 -6
  195. package/dist/components/tooltip/tooltip-utils.d.mts +0 -2
  196. package/dist/components/tooltip/tooltip.d.mts +0 -143
  197. package/dist/components/tooltip/tooltip.test.d.mts +0 -2
  198. package/dist/components/tooltip/useTooltip.d.mts +0 -2
  199. package/dist/index.d.mts +0 -30
  200. package/dist/tooltip-utils-DCKA5gnI.d.mts +0 -30
  201. package/dist/tooltip-utils-DCKA5gnI.d.ts +0 -30
  202. package/dist/utils/clsx.d.mts +0 -3
  203. package/dist/utils/props.d.mts +0 -3
  204. package/dist/utils/tailwind-variants.d.mts +0 -26
  205. package/dist/utils/types.d.mts +0 -10
  206. /package/dist/{chunk-M5PMA3CT.mjs → chunk-RDEWIZV3.mjs} +0 -0
  207. /package/dist/components/{accordion/accordion.test.d.mts → dropdown/dropdown.test.d.ts} +0 -0
@@ -1,449 +0,0 @@
1
- import * as tailwind_variants from 'tailwind-variants';
2
- import { VariantProps } from 'tailwind-variants';
3
- import * as tailwind_variants_dist_config from 'tailwind-variants/dist/config';
4
- import * as react from 'react';
5
- import { ComponentPropsWithRef } from 'react';
6
- import { SlotsToClasses } from '../../utils/types.mjs';
7
-
8
- interface Props extends Omit<ComponentPropsWithRef<"input">, "onChange" | keyof SelectVariantProps> {
9
- options: SelectOption[];
10
- defaultOption?: SelectOption;
11
- label?: string;
12
- errorMessage?: string;
13
- classNames?: SlotsToClasses<SelectSlots>;
14
- onChange?: (option: SelectOption) => void;
15
- }
16
- type SelectProps = Props & SelectVariantProps;
17
- type SelectOption = {
18
- key: string | number;
19
- value: string;
20
- };
21
- declare const Select: react.ForwardRefExoticComponent<Omit<SelectProps, "ref"> & react.RefAttributes<HTMLInputElement>>;
22
-
23
- declare const select: tailwind_variants.TVReturnType<{
24
- variant: {
25
- solid: {
26
- selectWrapper: string;
27
- };
28
- normal: {
29
- selectWrapper: string;
30
- };
31
- line: {
32
- selectWrapper: string;
33
- optionsWrapper: string;
34
- };
35
- };
36
- color: {
37
- primary: {
38
- selectWrapper: string;
39
- optionsWrapper: string;
40
- select: string;
41
- };
42
- secondary: {
43
- selectWrapper: string;
44
- optionsWrapper: string;
45
- select: string;
46
- };
47
- };
48
- size: {
49
- sm: {
50
- base: string;
51
- selectWrapper: string;
52
- optionsWrapper: string;
53
- errorMessage: string;
54
- };
55
- md: {
56
- base: string;
57
- selectWrapper: string;
58
- optionsWrapper: string;
59
- errorMessage: string;
60
- };
61
- lg: {
62
- base: string;
63
- selectWrapper: string;
64
- optionsWrapper: string;
65
- errorMessage: string;
66
- };
67
- };
68
- radius: {
69
- default: string;
70
- none: {
71
- selectWrapper: string;
72
- optionsWrapper: string;
73
- };
74
- full: {
75
- selectWrapper: string;
76
- };
77
- };
78
- fullWidth: {
79
- true: {
80
- selectWrapper: string;
81
- optionsWrapper: string;
82
- };
83
- };
84
- isDisabled: {
85
- true: {
86
- base: string;
87
- selectWrapper: string;
88
- select: string;
89
- label: string;
90
- };
91
- };
92
- isRequired: {
93
- true: {
94
- label: string;
95
- };
96
- };
97
- }, {
98
- base: string[];
99
- label: string[];
100
- selectWrapper: string[];
101
- select: string[];
102
- optionsWrapper: string[];
103
- errorMessage: string[];
104
- }, undefined, {
105
- responsiveVariants?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | {
106
- size?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
107
- color?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
108
- variant?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
109
- radius?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
110
- fullWidth?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
111
- isDisabled?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
112
- isRequired?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
113
- } | undefined;
114
- } & tailwind_variants_dist_config.TWMConfig & {
115
- twMergeConfig: {
116
- classGroups: {
117
- fontSize: {
118
- text: string[];
119
- }[];
120
- borderRadius: {
121
- rounded: string[];
122
- }[];
123
- boxShadow: {
124
- shadow: string[];
125
- }[];
126
- padding: {
127
- p: string[];
128
- }[];
129
- gap: {
130
- gap: string[];
131
- }[];
132
- };
133
- };
134
- }, {
135
- variant: {
136
- solid: {
137
- selectWrapper: string;
138
- };
139
- normal: {
140
- selectWrapper: string;
141
- };
142
- line: {
143
- selectWrapper: string;
144
- optionsWrapper: string;
145
- };
146
- };
147
- color: {
148
- primary: {
149
- selectWrapper: string;
150
- optionsWrapper: string;
151
- select: string;
152
- };
153
- secondary: {
154
- selectWrapper: string;
155
- optionsWrapper: string;
156
- select: string;
157
- };
158
- };
159
- size: {
160
- sm: {
161
- base: string;
162
- selectWrapper: string;
163
- optionsWrapper: string;
164
- errorMessage: string;
165
- };
166
- md: {
167
- base: string;
168
- selectWrapper: string;
169
- optionsWrapper: string;
170
- errorMessage: string;
171
- };
172
- lg: {
173
- base: string;
174
- selectWrapper: string;
175
- optionsWrapper: string;
176
- errorMessage: string;
177
- };
178
- };
179
- radius: {
180
- default: string;
181
- none: {
182
- selectWrapper: string;
183
- optionsWrapper: string;
184
- };
185
- full: {
186
- selectWrapper: string;
187
- };
188
- };
189
- fullWidth: {
190
- true: {
191
- selectWrapper: string;
192
- optionsWrapper: string;
193
- };
194
- };
195
- isDisabled: {
196
- true: {
197
- base: string;
198
- selectWrapper: string;
199
- select: string;
200
- label: string;
201
- };
202
- };
203
- isRequired: {
204
- true: {
205
- label: string;
206
- };
207
- };
208
- }, {
209
- base: string[];
210
- label: string[];
211
- selectWrapper: string[];
212
- select: string[];
213
- optionsWrapper: string[];
214
- errorMessage: string[];
215
- }, tailwind_variants.TVReturnType<{
216
- variant: {
217
- solid: {
218
- selectWrapper: string;
219
- };
220
- normal: {
221
- selectWrapper: string;
222
- };
223
- line: {
224
- selectWrapper: string;
225
- optionsWrapper: string;
226
- };
227
- };
228
- color: {
229
- primary: {
230
- selectWrapper: string;
231
- optionsWrapper: string;
232
- select: string;
233
- };
234
- secondary: {
235
- selectWrapper: string;
236
- optionsWrapper: string;
237
- select: string;
238
- };
239
- };
240
- size: {
241
- sm: {
242
- base: string;
243
- selectWrapper: string;
244
- optionsWrapper: string;
245
- errorMessage: string;
246
- };
247
- md: {
248
- base: string;
249
- selectWrapper: string;
250
- optionsWrapper: string;
251
- errorMessage: string;
252
- };
253
- lg: {
254
- base: string;
255
- selectWrapper: string;
256
- optionsWrapper: string;
257
- errorMessage: string;
258
- };
259
- };
260
- radius: {
261
- default: string;
262
- none: {
263
- selectWrapper: string;
264
- optionsWrapper: string;
265
- };
266
- full: {
267
- selectWrapper: string;
268
- };
269
- };
270
- fullWidth: {
271
- true: {
272
- selectWrapper: string;
273
- optionsWrapper: string;
274
- };
275
- };
276
- isDisabled: {
277
- true: {
278
- base: string;
279
- selectWrapper: string;
280
- select: string;
281
- label: string;
282
- };
283
- };
284
- isRequired: {
285
- true: {
286
- label: string;
287
- };
288
- };
289
- }, {
290
- base: string[];
291
- label: string[];
292
- selectWrapper: string[];
293
- select: string[];
294
- optionsWrapper: string[];
295
- errorMessage: string[];
296
- }, undefined, tailwind_variants_dist_config.TVConfig<{
297
- variant: {
298
- solid: {
299
- selectWrapper: string;
300
- };
301
- normal: {
302
- selectWrapper: string;
303
- };
304
- line: {
305
- selectWrapper: string;
306
- optionsWrapper: string;
307
- };
308
- };
309
- color: {
310
- primary: {
311
- selectWrapper: string;
312
- optionsWrapper: string;
313
- select: string;
314
- };
315
- secondary: {
316
- selectWrapper: string;
317
- optionsWrapper: string;
318
- select: string;
319
- };
320
- };
321
- size: {
322
- sm: {
323
- base: string;
324
- selectWrapper: string;
325
- optionsWrapper: string;
326
- errorMessage: string;
327
- };
328
- md: {
329
- base: string;
330
- selectWrapper: string;
331
- optionsWrapper: string;
332
- errorMessage: string;
333
- };
334
- lg: {
335
- base: string;
336
- selectWrapper: string;
337
- optionsWrapper: string;
338
- errorMessage: string;
339
- };
340
- };
341
- radius: {
342
- default: string;
343
- none: {
344
- selectWrapper: string;
345
- optionsWrapper: string;
346
- };
347
- full: {
348
- selectWrapper: string;
349
- };
350
- };
351
- fullWidth: {
352
- true: {
353
- selectWrapper: string;
354
- optionsWrapper: string;
355
- };
356
- };
357
- isDisabled: {
358
- true: {
359
- base: string;
360
- selectWrapper: string;
361
- select: string;
362
- label: string;
363
- };
364
- };
365
- isRequired: {
366
- true: {
367
- label: string;
368
- };
369
- };
370
- }, {
371
- variant: {
372
- solid: {
373
- selectWrapper: string;
374
- };
375
- normal: {
376
- selectWrapper: string;
377
- };
378
- line: {
379
- selectWrapper: string;
380
- optionsWrapper: string;
381
- };
382
- };
383
- color: {
384
- primary: {
385
- selectWrapper: string;
386
- optionsWrapper: string;
387
- select: string;
388
- };
389
- secondary: {
390
- selectWrapper: string;
391
- optionsWrapper: string;
392
- select: string;
393
- };
394
- };
395
- size: {
396
- sm: {
397
- base: string;
398
- selectWrapper: string;
399
- optionsWrapper: string;
400
- errorMessage: string;
401
- };
402
- md: {
403
- base: string;
404
- selectWrapper: string;
405
- optionsWrapper: string;
406
- errorMessage: string;
407
- };
408
- lg: {
409
- base: string;
410
- selectWrapper: string;
411
- optionsWrapper: string;
412
- errorMessage: string;
413
- };
414
- };
415
- radius: {
416
- default: string;
417
- none: {
418
- selectWrapper: string;
419
- optionsWrapper: string;
420
- };
421
- full: {
422
- selectWrapper: string;
423
- };
424
- };
425
- fullWidth: {
426
- true: {
427
- selectWrapper: string;
428
- optionsWrapper: string;
429
- };
430
- };
431
- isDisabled: {
432
- true: {
433
- base: string;
434
- selectWrapper: string;
435
- select: string;
436
- label: string;
437
- };
438
- };
439
- isRequired: {
440
- true: {
441
- label: string;
442
- };
443
- };
444
- }>, unknown, unknown, undefined>>;
445
- type SelectVariantProps = VariantProps<typeof select>;
446
- type SelectSlots = keyof ReturnType<typeof select>;
447
- type SelectReturnType = ReturnType<typeof select>;
448
-
449
- export { type SelectOption, type SelectProps, type SelectReturnType, type SelectSlots, type SelectVariantProps, Select as default };
@@ -1,2 +0,0 @@
1
-
2
- export { }
@@ -1,32 +0,0 @@
1
- import * as react from 'react';
2
- import { SelectOption } from './select.mjs';
3
- import 'tailwind-variants';
4
- import 'tailwind-variants/dist/config';
5
- import '../../utils/types.mjs';
6
-
7
- interface SelectHookProps {
8
- options: SelectOption[];
9
- defaultOption?: SelectOption;
10
- onChange?: (option: SelectOption) => void;
11
- }
12
- type TargetRect = {
13
- x: number;
14
- y: number;
15
- width: number;
16
- height: number;
17
- };
18
- declare const useSelect: ({ options, defaultOption, onChange }: SelectHookProps) => {
19
- selectedOption: SelectOption | undefined;
20
- targetRect: TargetRect | null;
21
- optionWrapperHeight: number;
22
- selectWrapperRef: react.RefObject<HTMLDivElement>;
23
- optionWrapperRef: react.RefObject<HTMLDivElement>;
24
- handleToggleSelect: () => void;
25
- handleChangeOption: (option: SelectOption) => void;
26
- calculatePositionWithScroll: (targetRect: TargetRect, optionWrapperHeight: number) => {
27
- top: number;
28
- left: number;
29
- };
30
- };
31
-
32
- export { useSelect };
@@ -1,5 +0,0 @@
1
- export { default as Slider, SliderProps } from './slider.mjs';
2
- import 'tailwind-variants';
3
- import 'tailwind-variants/dist/config';
4
- import 'react';
5
- import '../../utils/types.mjs';
@@ -1,5 +0,0 @@
1
- export { default as Slider, SliderProps } from './slider.js';
2
- import 'tailwind-variants';
3
- import 'tailwind-variants/dist/config';
4
- import 'react';
5
- import '../../utils/types.js';