rupoui 1.0.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 (77) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +611 -0
  3. package/dist/components/button/Button.d.ts +17 -0
  4. package/dist/components/button/button.styles.d.ts +217 -0
  5. package/dist/components/button/button.types.d.ts +17 -0
  6. package/dist/components/button/index.d.ts +2 -0
  7. package/dist/components/checkbox/Checkbox.d.ts +3 -0
  8. package/dist/components/checkbox/CheckboxGroup.d.ts +3 -0
  9. package/dist/components/checkbox/checkbox-group-context.d.ts +17 -0
  10. package/dist/components/checkbox/checkbox.styles.d.ts +377 -0
  11. package/dist/components/checkbox/checkbox.types.d.ts +159 -0
  12. package/dist/components/checkbox/example.d.ts +1 -0
  13. package/dist/components/checkbox/index.d.ts +3 -0
  14. package/dist/components/checkbox/useCheckbox.d.ts +314 -0
  15. package/dist/components/checkbox/useCheckboxGroup.d.ts +283 -0
  16. package/dist/components/input/Input.d.ts +18 -0
  17. package/dist/components/input/index.d.ts +2 -0
  18. package/dist/components/input/input.styles.d.ts +301 -0
  19. package/dist/components/input/input.types.d.ts +61 -0
  20. package/dist/components/input-number/InputNumber.d.ts +30 -0
  21. package/dist/components/input-number/index.d.ts +2 -0
  22. package/dist/components/input-number/input-number.styles.d.ts +403 -0
  23. package/dist/components/input-number/input-number.types.d.ts +120 -0
  24. package/dist/components/input-number/utils.d.ts +6 -0
  25. package/dist/components/radio/Radio.d.ts +3 -0
  26. package/dist/components/radio/RadioGroup.d.ts +3 -0
  27. package/dist/components/radio/index.d.ts +5 -0
  28. package/dist/components/radio/radio-group-context.d.ts +17 -0
  29. package/dist/components/radio/radio.styles.d.ts +371 -0
  30. package/dist/components/radio/radio.types.d.ts +143 -0
  31. package/dist/components/radio/useRadio.d.ts +314 -0
  32. package/dist/components/radio/useRadioGroup.d.ts +284 -0
  33. package/dist/components/select/Select.d.ts +4 -0
  34. package/dist/components/select/SelectItem.d.ts +6 -0
  35. package/dist/components/select/index.d.ts +5 -0
  36. package/dist/components/select/select.styles.d.ts +286 -0
  37. package/dist/components/select/select.types.d.ts +63 -0
  38. package/dist/components/select/useSelect.d.ts +19 -0
  39. package/dist/components/spinner/Spinner.d.ts +6 -0
  40. package/dist/components/spinner/index.d.ts +2 -0
  41. package/dist/components/spinner/spinner.styles.d.ts +103 -0
  42. package/dist/components/spinner/spinner.types.d.ts +6 -0
  43. package/dist/components/switch/Switch.d.ts +3 -0
  44. package/dist/components/switch/index.d.ts +4 -0
  45. package/dist/components/switch/switch.styles.d.ts +190 -0
  46. package/dist/components/switch/switch.types.d.ts +83 -0
  47. package/dist/components/switch/useSwitch.d.ts +314 -0
  48. package/dist/components/textarea/Textarea.d.ts +17 -0
  49. package/dist/components/textarea/index.d.ts +2 -0
  50. package/dist/components/textarea/textarea.styles.d.ts +352 -0
  51. package/dist/components/textarea/textarea.types.d.ts +58 -0
  52. package/dist/index.cjs +1 -0
  53. package/dist/index.d.ts +14 -0
  54. package/dist/index.js +5821 -0
  55. package/dist/motion/focus.d.ts +8 -0
  56. package/dist/motion/hover.d.ts +9 -0
  57. package/dist/motion/index.d.ts +5 -0
  58. package/dist/motion/press.d.ts +9 -0
  59. package/dist/motion/reveal.d.ts +18 -0
  60. package/dist/motion/tokens.d.ts +11 -0
  61. package/dist/provider/RupoUIContext.d.ts +3 -0
  62. package/dist/provider/RupoUIProvider.d.ts +8 -0
  63. package/dist/provider/types.d.ts +31 -0
  64. package/dist/provider/useRupoUI.d.ts +3 -0
  65. package/dist/style.css +1 -0
  66. package/dist/styles/tokens/colors.d.ts +26 -0
  67. package/dist/styles/tokens/index.d.ts +5 -0
  68. package/dist/styles/tokens/motion.d.ts +11 -0
  69. package/dist/styles/tokens/radius.d.ts +8 -0
  70. package/dist/styles/tokens/spacing.d.ts +13 -0
  71. package/dist/styles/tokens/typography.d.ts +34 -0
  72. package/dist/tailwind/index.cjs +1 -0
  73. package/dist/tailwind/index.d.ts +5 -0
  74. package/dist/tailwind/index.js +112 -0
  75. package/dist/tailwind/plugin-utils.d.ts +5 -0
  76. package/dist/tailwind/theme.d.ts +33 -0
  77. package/package.json +54 -0
@@ -0,0 +1,217 @@
1
+ export declare const button: import('tailwind-variants').TVReturnType<{
2
+ variant: {
3
+ solid: {};
4
+ flat: {};
5
+ bordered: {
6
+ base: string;
7
+ };
8
+ ghost: {
9
+ base: string;
10
+ };
11
+ };
12
+ color: {
13
+ primary: {
14
+ base: string;
15
+ };
16
+ secondary: {
17
+ base: string;
18
+ };
19
+ success: {
20
+ base: string;
21
+ };
22
+ warning: {
23
+ base: string;
24
+ };
25
+ danger: {
26
+ base: string;
27
+ };
28
+ };
29
+ size: {
30
+ sm: {
31
+ base: string;
32
+ };
33
+ md: {
34
+ base: string;
35
+ };
36
+ lg: {
37
+ base: string;
38
+ };
39
+ };
40
+ radius: {
41
+ sm: {
42
+ base: string;
43
+ };
44
+ md: {
45
+ base: string;
46
+ };
47
+ lg: {
48
+ base: string;
49
+ };
50
+ full: {
51
+ base: string;
52
+ };
53
+ };
54
+ fullWidth: {
55
+ true: {
56
+ base: string;
57
+ };
58
+ };
59
+ isDisabled: {
60
+ true: {
61
+ base: string;
62
+ };
63
+ };
64
+ isLoading: {
65
+ true: {
66
+ base: string;
67
+ };
68
+ };
69
+ }, {
70
+ base: string;
71
+ content: string;
72
+ spinner: string;
73
+ }, undefined, {
74
+ variant: {
75
+ solid: {};
76
+ flat: {};
77
+ bordered: {
78
+ base: string;
79
+ };
80
+ ghost: {
81
+ base: string;
82
+ };
83
+ };
84
+ color: {
85
+ primary: {
86
+ base: string;
87
+ };
88
+ secondary: {
89
+ base: string;
90
+ };
91
+ success: {
92
+ base: string;
93
+ };
94
+ warning: {
95
+ base: string;
96
+ };
97
+ danger: {
98
+ base: string;
99
+ };
100
+ };
101
+ size: {
102
+ sm: {
103
+ base: string;
104
+ };
105
+ md: {
106
+ base: string;
107
+ };
108
+ lg: {
109
+ base: string;
110
+ };
111
+ };
112
+ radius: {
113
+ sm: {
114
+ base: string;
115
+ };
116
+ md: {
117
+ base: string;
118
+ };
119
+ lg: {
120
+ base: string;
121
+ };
122
+ full: {
123
+ base: string;
124
+ };
125
+ };
126
+ fullWidth: {
127
+ true: {
128
+ base: string;
129
+ };
130
+ };
131
+ isDisabled: {
132
+ true: {
133
+ base: string;
134
+ };
135
+ };
136
+ isLoading: {
137
+ true: {
138
+ base: string;
139
+ };
140
+ };
141
+ }, {
142
+ base: string;
143
+ content: string;
144
+ spinner: string;
145
+ }, import('tailwind-variants').TVReturnType<{
146
+ variant: {
147
+ solid: {};
148
+ flat: {};
149
+ bordered: {
150
+ base: string;
151
+ };
152
+ ghost: {
153
+ base: string;
154
+ };
155
+ };
156
+ color: {
157
+ primary: {
158
+ base: string;
159
+ };
160
+ secondary: {
161
+ base: string;
162
+ };
163
+ success: {
164
+ base: string;
165
+ };
166
+ warning: {
167
+ base: string;
168
+ };
169
+ danger: {
170
+ base: string;
171
+ };
172
+ };
173
+ size: {
174
+ sm: {
175
+ base: string;
176
+ };
177
+ md: {
178
+ base: string;
179
+ };
180
+ lg: {
181
+ base: string;
182
+ };
183
+ };
184
+ radius: {
185
+ sm: {
186
+ base: string;
187
+ };
188
+ md: {
189
+ base: string;
190
+ };
191
+ lg: {
192
+ base: string;
193
+ };
194
+ full: {
195
+ base: string;
196
+ };
197
+ };
198
+ fullWidth: {
199
+ true: {
200
+ base: string;
201
+ };
202
+ };
203
+ isDisabled: {
204
+ true: {
205
+ base: string;
206
+ };
207
+ };
208
+ isLoading: {
209
+ true: {
210
+ base: string;
211
+ };
212
+ };
213
+ }, {
214
+ base: string;
215
+ content: string;
216
+ spinner: string;
217
+ }, undefined, unknown, unknown, undefined>>;
@@ -0,0 +1,17 @@
1
+ import { HTMLMotionProps } from 'framer-motion';
2
+
3
+ export type ButtonProps = {
4
+ children?: React.ReactNode;
5
+ size?: "sm" | "md" | "lg";
6
+ variant?: "solid" | "flat" | "ghost" | "bordered";
7
+ color?: "primary" | "secondary" | "success" | "warning" | "danger";
8
+ radius?: "sm" | "md" | "lg" | "full";
9
+ isLoading?: boolean;
10
+ isDisabled?: boolean;
11
+ fullWidth?: boolean;
12
+ startContent?: React.ReactNode;
13
+ endContent?: React.ReactNode;
14
+ as?: any;
15
+ href?: string;
16
+ classNames?: Partial<Record<"base" | "content" | "spinner", string>>;
17
+ } & Omit<HTMLMotionProps<"button">, "ref">;
@@ -0,0 +1,2 @@
1
+ export * from './Button';
2
+ export * from './button.types';
@@ -0,0 +1,3 @@
1
+ import { CheckboxProps } from './checkbox.types';
2
+
3
+ export declare const Checkbox: import('react').ForwardRefExoticComponent<Omit<CheckboxProps, "ref"> & import('react').RefAttributes<HTMLInputElement>>;
@@ -0,0 +1,3 @@
1
+ import { CheckboxGroupProps } from './checkbox.types';
2
+
3
+ export declare const CheckboxGroup: import('react').ForwardRefExoticComponent<CheckboxGroupProps & import('react').RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,17 @@
1
+ import { CheckboxGroupProps } from './checkbox.types';
2
+
3
+ interface CheckboxGroupContextValue {
4
+ groupState: string[];
5
+ setGroupState: (value: string[]) => void;
6
+ isDisabled?: boolean;
7
+ isReadOnly?: boolean;
8
+ isInvalid?: boolean;
9
+ name?: string;
10
+ size?: CheckboxGroupProps["size"];
11
+ color?: CheckboxGroupProps["color"];
12
+ radius?: CheckboxGroupProps["radius"];
13
+ variant?: CheckboxGroupProps["variant"];
14
+ }
15
+ export declare const CheckboxGroupContext: import('react').Context<CheckboxGroupContextValue | null>;
16
+ export declare const useCheckboxGroupContext: () => CheckboxGroupContextValue | null;
17
+ export {};
@@ -0,0 +1,377 @@
1
+ export declare const checkbox: import('tailwind-variants').TVReturnType<{
2
+ color: {
3
+ primary: {
4
+ wrapper: string;
5
+ label: string;
6
+ };
7
+ secondary: {
8
+ wrapper: string;
9
+ label: string;
10
+ };
11
+ success: {
12
+ wrapper: string;
13
+ label: string;
14
+ };
15
+ warning: {
16
+ wrapper: string;
17
+ label: string;
18
+ };
19
+ danger: {
20
+ wrapper: string;
21
+ label: string;
22
+ };
23
+ };
24
+ size: {
25
+ sm: {
26
+ wrapper: string;
27
+ label: string;
28
+ icon: string;
29
+ };
30
+ md: {
31
+ wrapper: string;
32
+ label: string;
33
+ icon: string;
34
+ };
35
+ lg: {
36
+ wrapper: string;
37
+ label: string;
38
+ icon: string;
39
+ };
40
+ };
41
+ radius: {
42
+ none: {
43
+ wrapper: string;
44
+ };
45
+ sm: {
46
+ wrapper: string;
47
+ };
48
+ md: {
49
+ wrapper: string;
50
+ };
51
+ lg: {
52
+ wrapper: string;
53
+ };
54
+ full: {
55
+ wrapper: string;
56
+ };
57
+ };
58
+ isDisabled: {
59
+ true: {
60
+ base: string;
61
+ };
62
+ };
63
+ isInvalid: {
64
+ true: {
65
+ wrapper: string;
66
+ label: string;
67
+ };
68
+ };
69
+ disableAnimation: {
70
+ true: {
71
+ wrapper: string;
72
+ icon: string;
73
+ };
74
+ };
75
+ isIndeterminate: {
76
+ true: {
77
+ wrapper: string;
78
+ };
79
+ };
80
+ variant: {
81
+ solid: {};
82
+ bordered: {
83
+ wrapper: string;
84
+ };
85
+ flat: {
86
+ wrapper: string;
87
+ };
88
+ ghost: {
89
+ wrapper: string;
90
+ };
91
+ light: {
92
+ wrapper: string;
93
+ };
94
+ };
95
+ }, {
96
+ base: string;
97
+ wrapper: string[];
98
+ icon: string;
99
+ label: string;
100
+ }, undefined, {
101
+ color: {
102
+ primary: {
103
+ wrapper: string;
104
+ label: string;
105
+ };
106
+ secondary: {
107
+ wrapper: string;
108
+ label: string;
109
+ };
110
+ success: {
111
+ wrapper: string;
112
+ label: string;
113
+ };
114
+ warning: {
115
+ wrapper: string;
116
+ label: string;
117
+ };
118
+ danger: {
119
+ wrapper: string;
120
+ label: string;
121
+ };
122
+ };
123
+ size: {
124
+ sm: {
125
+ wrapper: string;
126
+ label: string;
127
+ icon: string;
128
+ };
129
+ md: {
130
+ wrapper: string;
131
+ label: string;
132
+ icon: string;
133
+ };
134
+ lg: {
135
+ wrapper: string;
136
+ label: string;
137
+ icon: string;
138
+ };
139
+ };
140
+ radius: {
141
+ none: {
142
+ wrapper: string;
143
+ };
144
+ sm: {
145
+ wrapper: string;
146
+ };
147
+ md: {
148
+ wrapper: string;
149
+ };
150
+ lg: {
151
+ wrapper: string;
152
+ };
153
+ full: {
154
+ wrapper: string;
155
+ };
156
+ };
157
+ isDisabled: {
158
+ true: {
159
+ base: string;
160
+ };
161
+ };
162
+ isInvalid: {
163
+ true: {
164
+ wrapper: string;
165
+ label: string;
166
+ };
167
+ };
168
+ disableAnimation: {
169
+ true: {
170
+ wrapper: string;
171
+ icon: string;
172
+ };
173
+ };
174
+ isIndeterminate: {
175
+ true: {
176
+ wrapper: string;
177
+ };
178
+ };
179
+ variant: {
180
+ solid: {};
181
+ bordered: {
182
+ wrapper: string;
183
+ };
184
+ flat: {
185
+ wrapper: string;
186
+ };
187
+ ghost: {
188
+ wrapper: string;
189
+ };
190
+ light: {
191
+ wrapper: string;
192
+ };
193
+ };
194
+ }, {
195
+ base: string;
196
+ wrapper: string[];
197
+ icon: string;
198
+ label: string;
199
+ }, import('tailwind-variants').TVReturnType<{
200
+ color: {
201
+ primary: {
202
+ wrapper: string;
203
+ label: string;
204
+ };
205
+ secondary: {
206
+ wrapper: string;
207
+ label: string;
208
+ };
209
+ success: {
210
+ wrapper: string;
211
+ label: string;
212
+ };
213
+ warning: {
214
+ wrapper: string;
215
+ label: string;
216
+ };
217
+ danger: {
218
+ wrapper: string;
219
+ label: string;
220
+ };
221
+ };
222
+ size: {
223
+ sm: {
224
+ wrapper: string;
225
+ label: string;
226
+ icon: string;
227
+ };
228
+ md: {
229
+ wrapper: string;
230
+ label: string;
231
+ icon: string;
232
+ };
233
+ lg: {
234
+ wrapper: string;
235
+ label: string;
236
+ icon: string;
237
+ };
238
+ };
239
+ radius: {
240
+ none: {
241
+ wrapper: string;
242
+ };
243
+ sm: {
244
+ wrapper: string;
245
+ };
246
+ md: {
247
+ wrapper: string;
248
+ };
249
+ lg: {
250
+ wrapper: string;
251
+ };
252
+ full: {
253
+ wrapper: string;
254
+ };
255
+ };
256
+ isDisabled: {
257
+ true: {
258
+ base: string;
259
+ };
260
+ };
261
+ isInvalid: {
262
+ true: {
263
+ wrapper: string;
264
+ label: string;
265
+ };
266
+ };
267
+ disableAnimation: {
268
+ true: {
269
+ wrapper: string;
270
+ icon: string;
271
+ };
272
+ };
273
+ isIndeterminate: {
274
+ true: {
275
+ wrapper: string;
276
+ };
277
+ };
278
+ variant: {
279
+ solid: {};
280
+ bordered: {
281
+ wrapper: string;
282
+ };
283
+ flat: {
284
+ wrapper: string;
285
+ };
286
+ ghost: {
287
+ wrapper: string;
288
+ };
289
+ light: {
290
+ wrapper: string;
291
+ };
292
+ };
293
+ }, {
294
+ base: string;
295
+ wrapper: string[];
296
+ icon: string;
297
+ label: string;
298
+ }, undefined, unknown, unknown, undefined>>;
299
+ export declare const checkboxGroup: import('tailwind-variants').TVReturnType<{
300
+ orientation: {
301
+ horizontal: {
302
+ wrapper: string;
303
+ };
304
+ vertical: {
305
+ wrapper: string;
306
+ };
307
+ };
308
+ isInvalid: {
309
+ true: {
310
+ label: string;
311
+ errorMessage: string;
312
+ };
313
+ };
314
+ isDisabled: {
315
+ true: {
316
+ base: string;
317
+ };
318
+ };
319
+ }, {
320
+ base: string;
321
+ label: string;
322
+ wrapper: string;
323
+ description: string;
324
+ errorMessage: string;
325
+ }, undefined, {
326
+ orientation: {
327
+ horizontal: {
328
+ wrapper: string;
329
+ };
330
+ vertical: {
331
+ wrapper: string;
332
+ };
333
+ };
334
+ isInvalid: {
335
+ true: {
336
+ label: string;
337
+ errorMessage: string;
338
+ };
339
+ };
340
+ isDisabled: {
341
+ true: {
342
+ base: string;
343
+ };
344
+ };
345
+ }, {
346
+ base: string;
347
+ label: string;
348
+ wrapper: string;
349
+ description: string;
350
+ errorMessage: string;
351
+ }, import('tailwind-variants').TVReturnType<{
352
+ orientation: {
353
+ horizontal: {
354
+ wrapper: string;
355
+ };
356
+ vertical: {
357
+ wrapper: string;
358
+ };
359
+ };
360
+ isInvalid: {
361
+ true: {
362
+ label: string;
363
+ errorMessage: string;
364
+ };
365
+ };
366
+ isDisabled: {
367
+ true: {
368
+ base: string;
369
+ };
370
+ };
371
+ }, {
372
+ base: string;
373
+ label: string;
374
+ wrapper: string;
375
+ description: string;
376
+ errorMessage: string;
377
+ }, undefined, unknown, unknown, undefined>>;