@deepnoid/ui 0.0.88 → 0.0.89

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 (170) hide show
  1. package/dist/{chunk-4DLTBZUQ.mjs → chunk-3DRIHQOM.mjs} +7 -5
  2. package/dist/{chunk-IXFP2WQ4.mjs → chunk-6YE26GOI.mjs} +10 -8
  3. package/dist/{chunk-K6HPMTN4.mjs → chunk-7HHFRKJU.mjs} +1 -1
  4. package/dist/{chunk-H2HUJ4N2.mjs → chunk-A3RWT3JJ.mjs} +9 -4
  5. package/dist/{chunk-BE2OG6M4.mjs → chunk-ANYPMQH4.mjs} +28 -21
  6. package/dist/{chunk-5HSZ5AYM.mjs → chunk-B4KZBOGT.mjs} +16 -16
  7. package/dist/{chunk-KHWFCTPX.mjs → chunk-DWROPKZW.mjs} +6 -6
  8. package/dist/{chunk-YGTJU3GD.mjs → chunk-HFVZFUC3.mjs} +9 -16
  9. package/dist/{chunk-IOV7MEPG.mjs → chunk-IOCRFIQF.mjs} +30 -0
  10. package/dist/{chunk-4VIEZ5FT.mjs → chunk-JN7EGKJL.mjs} +8 -7
  11. package/dist/{chunk-SFNR4F3J.mjs → chunk-L6BQA6GI.mjs} +2 -2
  12. package/dist/{chunk-PRUAIZTU.mjs → chunk-LCI6RPWE.mjs} +1 -1
  13. package/dist/{chunk-IZOMH2SL.mjs → chunk-MOINJECK.mjs} +16 -15
  14. package/dist/{chunk-QVGXHUYW.mjs → chunk-N2JULHST.mjs} +9 -9
  15. package/dist/chunk-OJ2OEI5B.mjs +202 -0
  16. package/dist/{chunk-QRHT7MSO.mjs → chunk-PXUBPWKU.mjs} +1 -1
  17. package/dist/{chunk-PCIONGEJ.mjs → chunk-QWFOYO3D.mjs} +37 -19
  18. package/dist/{chunk-LY6LJRUX.mjs → chunk-RZZWHI6O.mjs} +1 -1
  19. package/dist/chunk-UR64ZUAU.mjs +671 -0
  20. package/dist/{chunk-PUFNT5LS.mjs → chunk-VG4644BG.mjs} +1 -1
  21. package/dist/components/accordion/accordion.d.mts +1 -1
  22. package/dist/components/accordion/accordion.d.ts +1 -1
  23. package/dist/components/accordion/accordion.test.mjs +1 -1
  24. package/dist/components/accordion/accordionItem.d.mts +1 -1
  25. package/dist/components/accordion/accordionItem.d.ts +1 -1
  26. package/dist/components/accordion/accordionItem.js +31 -1
  27. package/dist/components/accordion/accordionItem.mjs +3 -3
  28. package/dist/components/accordion/index.js +31 -1
  29. package/dist/components/accordion/index.mjs +3 -3
  30. package/dist/components/button/button-group.test.js +4103 -167
  31. package/dist/components/button/button-group.test.mjs +5 -1
  32. package/dist/components/button/button.d.mts +360 -12
  33. package/dist/components/button/button.d.ts +360 -12
  34. package/dist/components/button/button.js +4054 -110
  35. package/dist/components/button/button.mjs +5 -1
  36. package/dist/components/button/button.test.js +4059 -125
  37. package/dist/components/button/button.test.mjs +5 -1
  38. package/dist/components/button/index.d.mts +3 -0
  39. package/dist/components/button/index.d.ts +3 -0
  40. package/dist/components/button/index.js +4046 -112
  41. package/dist/components/button/index.mjs +5 -1
  42. package/dist/components/card/card.d.mts +1 -1
  43. package/dist/components/card/card.d.ts +1 -1
  44. package/dist/components/checkbox/checkbox.d.mts +69 -69
  45. package/dist/components/checkbox/checkbox.d.ts +69 -69
  46. package/dist/components/checkbox/checkbox.js +28 -21
  47. package/dist/components/checkbox/checkbox.mjs +1 -1
  48. package/dist/components/checkbox/checkbox.test.js +28 -21
  49. package/dist/components/checkbox/checkbox.test.mjs +2 -2
  50. package/dist/components/checkbox/index.js +28 -21
  51. package/dist/components/checkbox/index.mjs +1 -1
  52. package/dist/components/icon/Icon.d.mts +4 -0
  53. package/dist/components/icon/Icon.d.ts +4 -0
  54. package/dist/components/icon/Icon.js +30 -0
  55. package/dist/components/icon/Icon.mjs +2 -2
  56. package/dist/components/icon/index.js +30 -0
  57. package/dist/components/icon/index.mjs +2 -2
  58. package/dist/components/icon/template.d.mts +1 -0
  59. package/dist/components/icon/template.d.ts +1 -0
  60. package/dist/components/icon/template.js +30 -0
  61. package/dist/components/icon/template.mjs +1 -1
  62. package/dist/components/input/index.js +36 -4
  63. package/dist/components/input/index.mjs +3 -3
  64. package/dist/components/input/input.d.mts +7 -2
  65. package/dist/components/input/input.d.ts +7 -2
  66. package/dist/components/input/input.js +36 -4
  67. package/dist/components/input/input.mjs +3 -3
  68. package/dist/components/input/input.test.js +36 -4
  69. package/dist/components/input/input.test.mjs +5 -5
  70. package/dist/components/list/list.d.mts +1 -1
  71. package/dist/components/list/list.d.ts +1 -1
  72. package/dist/components/list/list.test.mjs +1 -1
  73. package/dist/components/list/listItem.d.mts +1 -1
  74. package/dist/components/list/listItem.d.ts +1 -1
  75. package/dist/components/modal/index.js +505 -127
  76. package/dist/components/modal/index.mjs +6 -5
  77. package/dist/components/modal/modal.js +505 -127
  78. package/dist/components/modal/modal.mjs +6 -5
  79. package/dist/components/modal/modal.test.js +497 -129
  80. package/dist/components/modal/modal.test.mjs +6 -5
  81. package/dist/components/pagination/index.js +16 -16
  82. package/dist/components/pagination/index.mjs +1 -1
  83. package/dist/components/pagination/pagination.js +16 -16
  84. package/dist/components/pagination/pagination.mjs +1 -1
  85. package/dist/components/pagination/pagination.test.js +16 -16
  86. package/dist/components/pagination/pagination.test.mjs +2 -2
  87. package/dist/components/progress/index.js +9 -9
  88. package/dist/components/progress/index.mjs +1 -1
  89. package/dist/components/progress/progress.d.mts +33 -33
  90. package/dist/components/progress/progress.d.ts +33 -33
  91. package/dist/components/progress/progress.js +9 -9
  92. package/dist/components/progress/progress.mjs +1 -1
  93. package/dist/components/progress/progress.test.js +9 -9
  94. package/dist/components/progress/progress.test.mjs +1 -1
  95. package/dist/components/radio/index.js +37 -19
  96. package/dist/components/radio/index.mjs +1 -1
  97. package/dist/components/radio/radio.d.mts +33 -33
  98. package/dist/components/radio/radio.d.ts +33 -33
  99. package/dist/components/radio/radio.js +37 -19
  100. package/dist/components/radio/radio.mjs +1 -1
  101. package/dist/components/radio/radio.test.js +37 -19
  102. package/dist/components/radio/radio.test.mjs +2 -2
  103. package/dist/components/select/index.js +36 -5
  104. package/dist/components/select/index.mjs +4 -4
  105. package/dist/components/select/option.js +30 -0
  106. package/dist/components/select/option.mjs +3 -3
  107. package/dist/components/select/select.d.mts +2 -2
  108. package/dist/components/select/select.d.ts +2 -2
  109. package/dist/components/select/select.js +36 -5
  110. package/dist/components/select/select.mjs +4 -4
  111. package/dist/components/select/select.test.js +36 -5
  112. package/dist/components/select/select.test.mjs +6 -6
  113. package/dist/components/slider/index.js +9 -4
  114. package/dist/components/slider/index.mjs +1 -1
  115. package/dist/components/slider/slider.d.mts +26 -0
  116. package/dist/components/slider/slider.d.ts +26 -0
  117. package/dist/components/slider/slider.js +9 -4
  118. package/dist/components/slider/slider.mjs +1 -1
  119. package/dist/components/slider/slider.test.js +9 -4
  120. package/dist/components/slider/slider.test.mjs +1 -1
  121. package/dist/components/switch/index.js +16 -15
  122. package/dist/components/switch/index.mjs +1 -1
  123. package/dist/components/switch/switch.d.mts +48 -48
  124. package/dist/components/switch/switch.d.ts +48 -48
  125. package/dist/components/switch/switch.js +16 -15
  126. package/dist/components/switch/switch.mjs +1 -1
  127. package/dist/components/switch/switch.test.js +16 -15
  128. package/dist/components/switch/switch.test.mjs +2 -2
  129. package/dist/components/table/index.js +66 -27
  130. package/dist/components/table/index.mjs +7 -7
  131. package/dist/components/table/table-body.js +60 -23
  132. package/dist/components/table/table-body.mjs +5 -5
  133. package/dist/components/table/table-head.js +28 -21
  134. package/dist/components/table/table-head.mjs +2 -2
  135. package/dist/components/table/table.d.mts +21 -7
  136. package/dist/components/table/table.d.ts +21 -7
  137. package/dist/components/table/table.js +66 -27
  138. package/dist/components/table/table.mjs +7 -7
  139. package/dist/components/table/table.test.js +66 -27
  140. package/dist/components/table/table.test.mjs +8 -8
  141. package/dist/components/tabs/tabs.d.mts +1 -1
  142. package/dist/components/tabs/tabs.d.ts +1 -1
  143. package/dist/components/tabs/tabs.test.mjs +1 -1
  144. package/dist/components/textarea/index.d.mts +3 -0
  145. package/dist/components/textarea/index.d.ts +3 -0
  146. package/dist/components/textarea/index.js +89 -30
  147. package/dist/components/textarea/index.mjs +2 -1
  148. package/dist/components/textarea/textarea.d.mts +510 -9
  149. package/dist/components/textarea/textarea.d.ts +510 -9
  150. package/dist/components/textarea/textarea.js +89 -30
  151. package/dist/components/textarea/textarea.mjs +2 -1
  152. package/dist/components/textarea/textarea.test.js +89 -30
  153. package/dist/components/textarea/textarea.test.mjs +2 -1
  154. package/dist/components/toast/index.js +30 -0
  155. package/dist/components/toast/index.mjs +4 -4
  156. package/dist/components/toast/toast.js +30 -0
  157. package/dist/components/toast/toast.mjs +3 -3
  158. package/dist/components/toast/toast.test.js +30 -0
  159. package/dist/components/toast/toast.test.mjs +5 -5
  160. package/dist/components/toast/use-toast.js +30 -0
  161. package/dist/components/toast/use-toast.mjs +4 -4
  162. package/dist/components/tooltip/tooltip.test.js +4034 -118
  163. package/dist/components/tooltip/tooltip.test.mjs +5 -2
  164. package/dist/index.d.mts +1 -1
  165. package/dist/index.d.ts +1 -1
  166. package/dist/index.js +2771 -2332
  167. package/dist/index.mjs +38 -38
  168. package/package.json +1 -1
  169. package/dist/chunk-66WCZEEU.mjs +0 -320
  170. package/dist/chunk-WOX3SLJB.mjs +0 -162
@@ -10,7 +10,11 @@ import {
10
10
  } from "../../chunk-FNPWLOGV.mjs";
11
11
  import {
12
12
  button_default
13
- } from "../../chunk-66WCZEEU.mjs";
13
+ } from "../../chunk-UR64ZUAU.mjs";
14
+ import "../../chunk-ZYIIXWVY.mjs";
15
+ import "../../chunk-LCI6RPWE.mjs";
16
+ import "../../chunk-IOCRFIQF.mjs";
17
+ import "../../chunk-E3G5QXSH.mjs";
14
18
  import "../../chunk-J725QONZ.mjs";
15
19
  import "../../chunk-IZ6II3QA.mjs";
16
20
 
@@ -1,18 +1,366 @@
1
- import * as react from 'react';
2
- import { ButtonHTMLAttributes, ReactNode } from 'react';
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 react__default, { ButtonHTMLAttributes, ReactNode } from 'react';
5
+ import { SlotsToClasses } from '../../utils/types.mjs';
3
6
 
4
- interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
7
+ interface Props extends ButtonHTMLAttributes<HTMLButtonElement> {
5
8
  children?: ReactNode;
6
- color?: "primary" | "secondary" | "neutral" | "info" | "success" | "warning" | "danger";
7
- size?: "sm" | "md" | "lg";
8
- variant?: "solid" | "line" | "tonal" | "trans" | "ghost";
9
- radius?: "default" | "full" | "none";
10
- fullWidth?: boolean;
11
- isInGroup?: boolean;
12
- isDisabled?: boolean;
13
9
  startContent?: ReactNode;
14
10
  endContent?: ReactNode;
11
+ classNames?: SlotsToClasses<ButtonSlots>;
15
12
  }
16
- declare const Button: react.ForwardRefExoticComponent<ButtonProps & react.RefAttributes<HTMLButtonElement>>;
13
+ type ButtonProps = Props & ButtonVariantProps;
14
+ declare const Button: react__default.ForwardRefExoticComponent<Props & ButtonVariantProps & react__default.RefAttributes<HTMLButtonElement>>;
17
15
 
18
- export { type ButtonProps, Button as default };
16
+ declare const buttonStyle: tailwind_variants.TVReturnType<{
17
+ variant: {
18
+ solid: string;
19
+ line: string;
20
+ tonal: string;
21
+ trans: {
22
+ base: string;
23
+ };
24
+ ghost: string;
25
+ };
26
+ color: {
27
+ primary: string;
28
+ secondary: string;
29
+ neutral: string;
30
+ info: string;
31
+ success: string;
32
+ warning: string;
33
+ danger: string;
34
+ };
35
+ size: {
36
+ sm: {
37
+ base: string;
38
+ };
39
+ md: {
40
+ base: string;
41
+ };
42
+ lg: {
43
+ base: string;
44
+ };
45
+ };
46
+ radius: {
47
+ default: {
48
+ base: string;
49
+ };
50
+ full: {
51
+ base: string;
52
+ };
53
+ none: {
54
+ base: string;
55
+ };
56
+ };
57
+ fullWidth: {
58
+ true: {
59
+ base: string;
60
+ };
61
+ };
62
+ isDisabled: {
63
+ true: {
64
+ base: string;
65
+ };
66
+ };
67
+ isLoading: {
68
+ true: {
69
+ base: string;
70
+ };
71
+ };
72
+ isInGroup: {
73
+ true: {
74
+ base: string;
75
+ };
76
+ };
77
+ }, {
78
+ base: string;
79
+ content: string;
80
+ }, undefined, {
81
+ responsiveVariants?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | {
82
+ size?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
83
+ variant?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
84
+ color?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
85
+ fullWidth?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
86
+ isDisabled?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
87
+ isLoading?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
88
+ isInGroup?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
89
+ radius?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
90
+ } | undefined;
91
+ } & tailwind_variants_dist_config.TWMConfig & {
92
+ twMergeConfig: {
93
+ classGroups: {
94
+ fontSize: {
95
+ text: string[];
96
+ }[];
97
+ borderRadius: {
98
+ rounded: string[];
99
+ }[];
100
+ boxShadow: {
101
+ shadow: string[];
102
+ }[];
103
+ padding: {
104
+ p: string[];
105
+ }[];
106
+ gap: {
107
+ gap: string[];
108
+ }[];
109
+ };
110
+ };
111
+ }, {
112
+ variant: {
113
+ solid: string;
114
+ line: string;
115
+ tonal: string;
116
+ trans: {
117
+ base: string;
118
+ };
119
+ ghost: string;
120
+ };
121
+ color: {
122
+ primary: string;
123
+ secondary: string;
124
+ neutral: string;
125
+ info: string;
126
+ success: string;
127
+ warning: string;
128
+ danger: string;
129
+ };
130
+ size: {
131
+ sm: {
132
+ base: string;
133
+ };
134
+ md: {
135
+ base: string;
136
+ };
137
+ lg: {
138
+ base: string;
139
+ };
140
+ };
141
+ radius: {
142
+ default: {
143
+ base: string;
144
+ };
145
+ full: {
146
+ base: string;
147
+ };
148
+ none: {
149
+ base: string;
150
+ };
151
+ };
152
+ fullWidth: {
153
+ true: {
154
+ base: string;
155
+ };
156
+ };
157
+ isDisabled: {
158
+ true: {
159
+ base: string;
160
+ };
161
+ };
162
+ isLoading: {
163
+ true: {
164
+ base: string;
165
+ };
166
+ };
167
+ isInGroup: {
168
+ true: {
169
+ base: string;
170
+ };
171
+ };
172
+ }, {
173
+ base: string;
174
+ content: string;
175
+ }, tailwind_variants.TVReturnType<{
176
+ variant: {
177
+ solid: string;
178
+ line: string;
179
+ tonal: string;
180
+ trans: {
181
+ base: string;
182
+ };
183
+ ghost: string;
184
+ };
185
+ color: {
186
+ primary: string;
187
+ secondary: string;
188
+ neutral: string;
189
+ info: string;
190
+ success: string;
191
+ warning: string;
192
+ danger: string;
193
+ };
194
+ size: {
195
+ sm: {
196
+ base: string;
197
+ };
198
+ md: {
199
+ base: string;
200
+ };
201
+ lg: {
202
+ base: string;
203
+ };
204
+ };
205
+ radius: {
206
+ default: {
207
+ base: string;
208
+ };
209
+ full: {
210
+ base: string;
211
+ };
212
+ none: {
213
+ base: string;
214
+ };
215
+ };
216
+ fullWidth: {
217
+ true: {
218
+ base: string;
219
+ };
220
+ };
221
+ isDisabled: {
222
+ true: {
223
+ base: string;
224
+ };
225
+ };
226
+ isLoading: {
227
+ true: {
228
+ base: string;
229
+ };
230
+ };
231
+ isInGroup: {
232
+ true: {
233
+ base: string;
234
+ };
235
+ };
236
+ }, {
237
+ base: string;
238
+ content: string;
239
+ }, undefined, tailwind_variants_dist_config.TVConfig<{
240
+ variant: {
241
+ solid: string;
242
+ line: string;
243
+ tonal: string;
244
+ trans: {
245
+ base: string;
246
+ };
247
+ ghost: string;
248
+ };
249
+ color: {
250
+ primary: string;
251
+ secondary: string;
252
+ neutral: string;
253
+ info: string;
254
+ success: string;
255
+ warning: string;
256
+ danger: string;
257
+ };
258
+ size: {
259
+ sm: {
260
+ base: string;
261
+ };
262
+ md: {
263
+ base: string;
264
+ };
265
+ lg: {
266
+ base: string;
267
+ };
268
+ };
269
+ radius: {
270
+ default: {
271
+ base: string;
272
+ };
273
+ full: {
274
+ base: string;
275
+ };
276
+ none: {
277
+ base: string;
278
+ };
279
+ };
280
+ fullWidth: {
281
+ true: {
282
+ base: string;
283
+ };
284
+ };
285
+ isDisabled: {
286
+ true: {
287
+ base: string;
288
+ };
289
+ };
290
+ isLoading: {
291
+ true: {
292
+ base: string;
293
+ };
294
+ };
295
+ isInGroup: {
296
+ true: {
297
+ base: string;
298
+ };
299
+ };
300
+ }, {
301
+ variant: {
302
+ solid: string;
303
+ line: string;
304
+ tonal: string;
305
+ trans: {
306
+ base: string;
307
+ };
308
+ ghost: string;
309
+ };
310
+ color: {
311
+ primary: string;
312
+ secondary: string;
313
+ neutral: string;
314
+ info: string;
315
+ success: string;
316
+ warning: string;
317
+ danger: string;
318
+ };
319
+ size: {
320
+ sm: {
321
+ base: string;
322
+ };
323
+ md: {
324
+ base: string;
325
+ };
326
+ lg: {
327
+ base: string;
328
+ };
329
+ };
330
+ radius: {
331
+ default: {
332
+ base: string;
333
+ };
334
+ full: {
335
+ base: string;
336
+ };
337
+ none: {
338
+ base: string;
339
+ };
340
+ };
341
+ fullWidth: {
342
+ true: {
343
+ base: string;
344
+ };
345
+ };
346
+ isDisabled: {
347
+ true: {
348
+ base: string;
349
+ };
350
+ };
351
+ isLoading: {
352
+ true: {
353
+ base: string;
354
+ };
355
+ };
356
+ isInGroup: {
357
+ true: {
358
+ base: string;
359
+ };
360
+ };
361
+ }>, unknown, unknown, undefined>>;
362
+ type ButtonVariantProps = VariantProps<typeof buttonStyle>;
363
+ type ButtonSlots = keyof ReturnType<typeof buttonStyle>;
364
+ type ButtonReturnType = ReturnType<typeof buttonStyle>;
365
+
366
+ export { type ButtonProps, type ButtonReturnType, type ButtonSlots, type ButtonVariantProps, type Props, Button as default };