@choice-ui/react 1.6.8 → 1.7.0

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 (81) hide show
  1. package/dist/components/description/dist/index.d.ts +8 -0
  2. package/dist/components/description/dist/index.js +29 -0
  3. package/dist/components/description/src/description.d.ts +6 -0
  4. package/dist/components/description/src/description.js +18 -0
  5. package/dist/components/description/src/index.d.ts +2 -0
  6. package/dist/components/description/src/tv.d.ts +13 -0
  7. package/dist/components/description/src/tv.js +15 -0
  8. package/dist/components/description/tsup.config.d.ts +2 -0
  9. package/dist/components/emoji-picker/dist/index.d.ts +1 -0
  10. package/dist/components/emoji-picker/dist/index.js +4 -2
  11. package/dist/components/emoji-picker/src/emoji-picker.d.ts +1 -0
  12. package/dist/components/emoji-picker/src/emoji-picker.js +4 -2
  13. package/dist/components/error-message/dist/index.d.ts +8 -0
  14. package/dist/components/error-message/dist/index.js +30 -0
  15. package/dist/components/error-message/src/error-message.d.ts +6 -0
  16. package/dist/components/error-message/src/error-message.js +19 -0
  17. package/dist/components/error-message/src/index.d.ts +2 -0
  18. package/dist/components/error-message/src/tv.d.ts +13 -0
  19. package/dist/components/error-message/src/tv.js +15 -0
  20. package/dist/components/error-message/tsup.config.d.ts +2 -0
  21. package/dist/components/form/src/adapters/base-adapter.js +4 -2
  22. package/dist/components/form/src/tv.d.ts +0 -12
  23. package/dist/components/form/src/tv.js +1 -13
  24. package/dist/components/index.d.ts +3 -0
  25. package/dist/components/md-render/dist/index.d.ts +2 -1
  26. package/dist/components/md-render/dist/index.js +3 -1
  27. package/dist/components/md-render/src/md-render.js +3 -1
  28. package/dist/components/md-render/src/types.d.ts +2 -1
  29. package/dist/components/notifications/dist/index.d.ts +1 -5
  30. package/dist/components/notifications/src/notifications.d.ts +0 -1
  31. package/dist/components/notifications/src/notifications.js +0 -1
  32. package/dist/components/numeric-input/dist/index.d.ts +23 -9
  33. package/dist/components/numeric-input/dist/index.js +26 -3
  34. package/dist/components/numeric-input/src/components/numeric-input-menu-trigger.js +4 -1
  35. package/dist/components/numeric-input/src/hooks/index.d.ts +1 -0
  36. package/dist/components/numeric-input/src/hooks/use-numeric-long-press.d.ts +13 -0
  37. package/dist/components/numeric-input/src/hooks/use-numeric-long-press.js +27 -0
  38. package/dist/components/numeric-input/src/index.d.ts +1 -0
  39. package/dist/components/numeric-input/src/tv.js +22 -2
  40. package/dist/components/picture-preview/dist/index.d.ts +5 -0
  41. package/dist/components/picture-preview/dist/index.js +287 -140
  42. package/dist/components/picture-preview/src/hooks/useWheelHandler.d.ts +6 -1
  43. package/dist/components/picture-preview/src/hooks/useWheelHandler.js +25 -7
  44. package/dist/components/picture-preview/src/picture-preview.d.ts +5 -0
  45. package/dist/components/picture-preview/src/picture-preview.js +214 -123
  46. package/dist/components/picture-preview/src/tv.d.ts +93 -3
  47. package/dist/components/picture-preview/src/tv.js +48 -10
  48. package/dist/components/separator/dist/index.d.ts +1 -8
  49. package/dist/components/separator/src/separator.d.ts +1 -8
  50. package/dist/components/separator/src/separator.js +33 -5
  51. package/dist/components/separator/src/tv.d.ts +39 -18
  52. package/dist/components/separator/src/tv.js +37 -7
  53. package/dist/components/text-field/dist/index.d.ts +2 -3
  54. package/dist/components/text-field/dist/index.js +4 -19
  55. package/dist/components/text-field/src/components/index.d.ts +0 -1
  56. package/dist/components/text-field/src/text-field.d.ts +3 -2
  57. package/dist/components/text-field/src/text-field.js +2 -2
  58. package/dist/components/text-field/src/tv.d.ts +3 -3
  59. package/dist/components/text-field/src/tv.js +1 -6
  60. package/dist/components/toast/dist/index.d.ts +260 -0
  61. package/dist/components/toast/src/components/index.d.ts +3 -0
  62. package/dist/components/toast/src/components/toast-progress-bar.d.ts +7 -0
  63. package/dist/components/toast/src/components/toast-progress-bar.js +53 -0
  64. package/dist/components/toast/src/components/toaster-item.d.ts +26 -0
  65. package/dist/components/toast/src/components/toaster-item.js +412 -0
  66. package/dist/components/toast/src/components/toaster-slots.d.ts +87 -0
  67. package/dist/components/toast/src/components/toaster-slots.js +38 -0
  68. package/dist/components/toast/src/index.d.ts +5 -0
  69. package/dist/components/toast/src/store.d.ts +113 -0
  70. package/dist/components/toast/src/store.js +204 -0
  71. package/dist/components/toast/src/toaster.d.ts +87 -0
  72. package/dist/components/toast/src/toaster.js +271 -0
  73. package/dist/components/toast/src/tv.d.ts +365 -0
  74. package/dist/components/toast/src/tv.js +412 -0
  75. package/dist/components/toast/src/types.d.ts +79 -0
  76. package/dist/components/toast/tsup.config.d.ts +2 -0
  77. package/dist/index.js +11 -2
  78. package/dist/styles/components.css +2 -0
  79. package/package.json +1 -1
  80. package/dist/components/text-field/src/components/field-description.d.ts +0 -2
  81. package/dist/components/text-field/src/components/field-description.js +0 -16
@@ -0,0 +1,365 @@
1
+ export declare const toastViewportTv: import('tailwind-variants').TVReturnType<{
2
+ expanded: {
3
+ true: {};
4
+ false: {};
5
+ };
6
+ layout: {
7
+ default: string;
8
+ compact: string;
9
+ };
10
+ position: {
11
+ "top-left": string;
12
+ "top-center": string;
13
+ "top-right": string;
14
+ "bottom-left": string;
15
+ "bottom-center": string;
16
+ "bottom-right": string;
17
+ };
18
+ }, undefined, string[], {
19
+ expanded: {
20
+ true: {};
21
+ false: {};
22
+ };
23
+ layout: {
24
+ default: string;
25
+ compact: string;
26
+ };
27
+ position: {
28
+ "top-left": string;
29
+ "top-center": string;
30
+ "top-right": string;
31
+ "bottom-left": string;
32
+ "bottom-center": string;
33
+ "bottom-right": string;
34
+ };
35
+ }, undefined, import('tailwind-variants').TVReturnType<{
36
+ expanded: {
37
+ true: {};
38
+ false: {};
39
+ };
40
+ layout: {
41
+ default: string;
42
+ compact: string;
43
+ };
44
+ position: {
45
+ "top-left": string;
46
+ "top-center": string;
47
+ "top-right": string;
48
+ "bottom-left": string;
49
+ "bottom-center": string;
50
+ "bottom-right": string;
51
+ };
52
+ }, undefined, string[], unknown, unknown, undefined>>;
53
+ export declare const toastRootTv: import('tailwind-variants').TVReturnType<{
54
+ position: {
55
+ "top-left": {
56
+ root: string;
57
+ };
58
+ "top-center": {
59
+ root: string;
60
+ };
61
+ "top-right": {
62
+ root: string;
63
+ };
64
+ "bottom-left": {
65
+ root: string;
66
+ };
67
+ "bottom-center": {
68
+ root: string;
69
+ };
70
+ "bottom-right": {
71
+ root: string;
72
+ };
73
+ };
74
+ hasDescription: {
75
+ true: {
76
+ icon: string;
77
+ };
78
+ };
79
+ hasActions: {
80
+ true: {
81
+ root: string;
82
+ };
83
+ false: {
84
+ content: string;
85
+ };
86
+ };
87
+ hasIcon: {
88
+ true: {
89
+ content: string;
90
+ };
91
+ false: {
92
+ content: string;
93
+ };
94
+ };
95
+ expanded: {
96
+ true: {
97
+ icon: string;
98
+ content: string;
99
+ actions: string;
100
+ };
101
+ };
102
+ behind: {
103
+ true: {
104
+ icon: string;
105
+ content: string;
106
+ actions: string;
107
+ };
108
+ };
109
+ layout: {
110
+ default: {
111
+ root: string;
112
+ content: string;
113
+ title: string;
114
+ description: string;
115
+ actions: string;
116
+ button: string;
117
+ };
118
+ compact: {
119
+ root: string;
120
+ content: string;
121
+ title: string;
122
+ actions: string;
123
+ button: string;
124
+ };
125
+ };
126
+ variant: {
127
+ default: {};
128
+ accent: {};
129
+ success: {};
130
+ warning: {};
131
+ error: {};
132
+ assistive: {};
133
+ reset: {};
134
+ };
135
+ type: {
136
+ default: {};
137
+ info: {};
138
+ success: {};
139
+ warning: {};
140
+ error: {};
141
+ loading: {};
142
+ };
143
+ buttonVariant: {
144
+ action: {};
145
+ cancel: {};
146
+ };
147
+ }, {
148
+ root: string[];
149
+ icon: string[];
150
+ content: string[];
151
+ actions: string[];
152
+ button: string;
153
+ title: string;
154
+ description: string;
155
+ progressTrack: string;
156
+ progressIndicator: string;
157
+ }, undefined, {
158
+ position: {
159
+ "top-left": {
160
+ root: string;
161
+ };
162
+ "top-center": {
163
+ root: string;
164
+ };
165
+ "top-right": {
166
+ root: string;
167
+ };
168
+ "bottom-left": {
169
+ root: string;
170
+ };
171
+ "bottom-center": {
172
+ root: string;
173
+ };
174
+ "bottom-right": {
175
+ root: string;
176
+ };
177
+ };
178
+ hasDescription: {
179
+ true: {
180
+ icon: string;
181
+ };
182
+ };
183
+ hasActions: {
184
+ true: {
185
+ root: string;
186
+ };
187
+ false: {
188
+ content: string;
189
+ };
190
+ };
191
+ hasIcon: {
192
+ true: {
193
+ content: string;
194
+ };
195
+ false: {
196
+ content: string;
197
+ };
198
+ };
199
+ expanded: {
200
+ true: {
201
+ icon: string;
202
+ content: string;
203
+ actions: string;
204
+ };
205
+ };
206
+ behind: {
207
+ true: {
208
+ icon: string;
209
+ content: string;
210
+ actions: string;
211
+ };
212
+ };
213
+ layout: {
214
+ default: {
215
+ root: string;
216
+ content: string;
217
+ title: string;
218
+ description: string;
219
+ actions: string;
220
+ button: string;
221
+ };
222
+ compact: {
223
+ root: string;
224
+ content: string;
225
+ title: string;
226
+ actions: string;
227
+ button: string;
228
+ };
229
+ };
230
+ variant: {
231
+ default: {};
232
+ accent: {};
233
+ success: {};
234
+ warning: {};
235
+ error: {};
236
+ assistive: {};
237
+ reset: {};
238
+ };
239
+ type: {
240
+ default: {};
241
+ info: {};
242
+ success: {};
243
+ warning: {};
244
+ error: {};
245
+ loading: {};
246
+ };
247
+ buttonVariant: {
248
+ action: {};
249
+ cancel: {};
250
+ };
251
+ }, {
252
+ root: string[];
253
+ icon: string[];
254
+ content: string[];
255
+ actions: string[];
256
+ button: string;
257
+ title: string;
258
+ description: string;
259
+ progressTrack: string;
260
+ progressIndicator: string;
261
+ }, import('tailwind-variants').TVReturnType<{
262
+ position: {
263
+ "top-left": {
264
+ root: string;
265
+ };
266
+ "top-center": {
267
+ root: string;
268
+ };
269
+ "top-right": {
270
+ root: string;
271
+ };
272
+ "bottom-left": {
273
+ root: string;
274
+ };
275
+ "bottom-center": {
276
+ root: string;
277
+ };
278
+ "bottom-right": {
279
+ root: string;
280
+ };
281
+ };
282
+ hasDescription: {
283
+ true: {
284
+ icon: string;
285
+ };
286
+ };
287
+ hasActions: {
288
+ true: {
289
+ root: string;
290
+ };
291
+ false: {
292
+ content: string;
293
+ };
294
+ };
295
+ hasIcon: {
296
+ true: {
297
+ content: string;
298
+ };
299
+ false: {
300
+ content: string;
301
+ };
302
+ };
303
+ expanded: {
304
+ true: {
305
+ icon: string;
306
+ content: string;
307
+ actions: string;
308
+ };
309
+ };
310
+ behind: {
311
+ true: {
312
+ icon: string;
313
+ content: string;
314
+ actions: string;
315
+ };
316
+ };
317
+ layout: {
318
+ default: {
319
+ root: string;
320
+ content: string;
321
+ title: string;
322
+ description: string;
323
+ actions: string;
324
+ button: string;
325
+ };
326
+ compact: {
327
+ root: string;
328
+ content: string;
329
+ title: string;
330
+ actions: string;
331
+ button: string;
332
+ };
333
+ };
334
+ variant: {
335
+ default: {};
336
+ accent: {};
337
+ success: {};
338
+ warning: {};
339
+ error: {};
340
+ assistive: {};
341
+ reset: {};
342
+ };
343
+ type: {
344
+ default: {};
345
+ info: {};
346
+ success: {};
347
+ warning: {};
348
+ error: {};
349
+ loading: {};
350
+ };
351
+ buttonVariant: {
352
+ action: {};
353
+ cancel: {};
354
+ };
355
+ }, {
356
+ root: string[];
357
+ icon: string[];
358
+ content: string[];
359
+ actions: string[];
360
+ button: string;
361
+ title: string;
362
+ description: string;
363
+ progressTrack: string;
364
+ progressIndicator: string;
365
+ }, undefined, unknown, unknown, undefined>>;