@thewhileloop/whileui 2.0.0 → 3.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.
- package/README.md +18 -5
- package/dist/blocks/commerce/metric-card.d.ts +9 -29
- package/dist/blocks/datepicker/date-range-picker-modal.d.ts +1 -1
- package/dist/blocks/datepicker/date-range-picker-modal.js +6 -14
- package/dist/blocks/datepicker/datepicker-modal.d.ts +1 -1
- package/dist/blocks/datepicker/datepicker-modal.js +6 -12
- package/dist/blocks/layout/smart-input.d.ts +3 -2
- package/dist/blocks/layout/smart-input.js +33 -18
- package/dist/blocks/media/smart-image.d.ts +39 -98
- package/dist/blocks/navigation/drawer-menu.js +88 -72
- package/dist/components/alert/alert.d.ts +23 -55
- package/dist/components/alert/alert.js +1 -1
- package/dist/components/alert-dialog/alert-dialog.js +1 -4
- package/dist/components/avatar/avatar.d.ts +18 -45
- package/dist/components/avatar/avatar.js +1 -1
- package/dist/components/badge/badge.d.ts +84 -212
- package/dist/components/button/button.d.ts +69 -188
- package/dist/components/card/card.d.ts +29 -73
- package/dist/components/card/card.js +1 -1
- package/dist/components/container/container.d.ts +24 -96
- package/dist/components/data-row/data-row.d.ts +18 -38
- package/dist/components/data-row/data-row.js +1 -1
- package/dist/components/form-field/form-field.d.ts +31 -87
- package/dist/components/form-field/form-field.js +1 -1
- package/dist/components/hover-card/hover-card.d.ts +3 -2
- package/dist/components/input/input.d.ts +12 -31
- package/dist/components/label/label.d.ts +3 -3
- package/dist/components/labeled-field/labeled-field.d.ts +3 -2
- package/dist/components/numeric-input/numeric-input.d.ts +27 -82
- package/dist/components/numeric-input/numeric-input.js +69 -78
- package/dist/components/otp-input/otp-input.d.ts +21 -65
- package/dist/components/popover/popover.d.ts +4 -3
- package/dist/components/pressable/pressable.d.ts +3 -3
- package/dist/components/progress/progress.d.ts +15 -39
- package/dist/components/row/row.d.ts +63 -163
- package/dist/components/segmented-control/segmented-control.d.ts +69 -241
- package/dist/components/select/select.d.ts +10 -22
- package/dist/components/select/select.js +2 -2
- package/dist/components/separator/separator.d.ts +3 -3
- package/dist/components/skeleton/skeleton.d.ts +9 -29
- package/dist/components/spinner/spinner.d.ts +12 -36
- package/dist/components/stack/stack.d.ts +63 -163
- package/dist/components/tabs/tabs.d.ts +9 -29
- package/dist/components/text/text.d.ts +51 -131
- package/dist/components/textarea/textarea.d.ts +15 -39
- package/dist/components/textarea/textarea.js +1 -1
- package/dist/components/toast/toast.d.ts +12 -36
- package/dist/components/toggle/toggle.d.ts +42 -138
- package/dist/components/toggle-group/toggle-group.d.ts +42 -138
- package/dist/components/tooltip/tooltip.d.ts +3 -2
- package/dist/components/view/view.d.ts +3 -3
- package/dist/lib/ref-types.d.ts +3 -0
- package/dist/lib/ref-types.js +1 -0
- package/dist/lib/theme-bridge.d.ts +4 -2
- package/dist/lib/theme-bridge.js +13 -9
- package/package.json +29 -28
|
@@ -2,230 +2,102 @@ import { type ViewProps, type TextProps } from 'react-native';
|
|
|
2
2
|
import { type VariantProps } from '../../lib/tv';
|
|
3
3
|
declare const badgeVariants: import("tailwind-variants").TVReturnType<{
|
|
4
4
|
variant: {
|
|
5
|
-
default:
|
|
6
|
-
secondary:
|
|
7
|
-
destructive:
|
|
8
|
-
outline:
|
|
9
|
-
success:
|
|
10
|
-
warning:
|
|
11
|
-
info:
|
|
12
|
-
soft:
|
|
13
|
-
'soft-secondary':
|
|
14
|
-
'soft-destructive':
|
|
15
|
-
'soft-success':
|
|
16
|
-
'soft-warning':
|
|
17
|
-
'soft-info':
|
|
5
|
+
default: "bg-primary";
|
|
6
|
+
secondary: "bg-secondary";
|
|
7
|
+
destructive: "bg-destructive";
|
|
8
|
+
outline: "border-border bg-transparent";
|
|
9
|
+
success: "bg-success";
|
|
10
|
+
warning: "bg-warning";
|
|
11
|
+
info: "bg-info";
|
|
12
|
+
soft: "bg-primary-soft";
|
|
13
|
+
'soft-secondary': "bg-secondary-soft";
|
|
14
|
+
'soft-destructive': "bg-destructive-soft";
|
|
15
|
+
'soft-success': "bg-success-soft";
|
|
16
|
+
'soft-warning': "bg-warning-soft";
|
|
17
|
+
'soft-info': "bg-info-soft";
|
|
18
18
|
};
|
|
19
|
-
}, undefined, "inline-flex items-center",
|
|
19
|
+
}, undefined, "inline-flex items-center", {
|
|
20
20
|
variant: {
|
|
21
|
-
default:
|
|
22
|
-
secondary:
|
|
23
|
-
destructive:
|
|
24
|
-
outline:
|
|
25
|
-
success:
|
|
26
|
-
warning:
|
|
27
|
-
info:
|
|
28
|
-
soft:
|
|
29
|
-
'soft-secondary':
|
|
30
|
-
'soft-destructive':
|
|
31
|
-
'soft-success':
|
|
32
|
-
'soft-warning':
|
|
33
|
-
'soft-info':
|
|
21
|
+
default: "bg-primary";
|
|
22
|
+
secondary: "bg-secondary";
|
|
23
|
+
destructive: "bg-destructive";
|
|
24
|
+
outline: "border-border bg-transparent";
|
|
25
|
+
success: "bg-success";
|
|
26
|
+
warning: "bg-warning";
|
|
27
|
+
info: "bg-info";
|
|
28
|
+
soft: "bg-primary-soft";
|
|
29
|
+
'soft-secondary': "bg-secondary-soft";
|
|
30
|
+
'soft-destructive': "bg-destructive-soft";
|
|
31
|
+
'soft-success': "bg-success-soft";
|
|
32
|
+
'soft-warning': "bg-warning-soft";
|
|
33
|
+
'soft-info': "bg-info-soft";
|
|
34
34
|
};
|
|
35
|
-
}, {
|
|
35
|
+
}, undefined, import("tailwind-variants").TVReturnTypeLike<{
|
|
36
36
|
variant: {
|
|
37
|
-
default:
|
|
38
|
-
secondary:
|
|
39
|
-
destructive:
|
|
40
|
-
outline:
|
|
41
|
-
success:
|
|
42
|
-
warning:
|
|
43
|
-
info:
|
|
44
|
-
soft:
|
|
45
|
-
'soft-secondary':
|
|
46
|
-
'soft-destructive':
|
|
47
|
-
'soft-success':
|
|
48
|
-
'soft-warning':
|
|
49
|
-
'soft-info':
|
|
37
|
+
default: "bg-primary";
|
|
38
|
+
secondary: "bg-secondary";
|
|
39
|
+
destructive: "bg-destructive";
|
|
40
|
+
outline: "border-border bg-transparent";
|
|
41
|
+
success: "bg-success";
|
|
42
|
+
warning: "bg-warning";
|
|
43
|
+
info: "bg-info";
|
|
44
|
+
soft: "bg-primary-soft";
|
|
45
|
+
'soft-secondary': "bg-secondary-soft";
|
|
46
|
+
'soft-destructive': "bg-destructive-soft";
|
|
47
|
+
'soft-success': "bg-success-soft";
|
|
48
|
+
'soft-warning': "bg-warning-soft";
|
|
49
|
+
'soft-info': "bg-info-soft";
|
|
50
50
|
};
|
|
51
|
-
}
|
|
52
|
-
variant: {
|
|
53
|
-
default: string;
|
|
54
|
-
secondary: string;
|
|
55
|
-
destructive: string;
|
|
56
|
-
outline: string;
|
|
57
|
-
success: string;
|
|
58
|
-
warning: string;
|
|
59
|
-
info: string;
|
|
60
|
-
soft: string;
|
|
61
|
-
'soft-secondary': string;
|
|
62
|
-
'soft-destructive': string;
|
|
63
|
-
'soft-success': string;
|
|
64
|
-
'soft-warning': string;
|
|
65
|
-
'soft-info': string;
|
|
66
|
-
};
|
|
67
|
-
}, undefined, import("tailwind-variants").TVReturnType<{
|
|
68
|
-
variant: {
|
|
69
|
-
default: string;
|
|
70
|
-
secondary: string;
|
|
71
|
-
destructive: string;
|
|
72
|
-
outline: string;
|
|
73
|
-
success: string;
|
|
74
|
-
warning: string;
|
|
75
|
-
info: string;
|
|
76
|
-
soft: string;
|
|
77
|
-
'soft-secondary': string;
|
|
78
|
-
'soft-destructive': string;
|
|
79
|
-
'soft-success': string;
|
|
80
|
-
'soft-warning': string;
|
|
81
|
-
'soft-info': string;
|
|
82
|
-
};
|
|
83
|
-
}, undefined, "inline-flex items-center", import("tailwind-variants/dist/config.js").TVConfig<{
|
|
84
|
-
variant: {
|
|
85
|
-
default: string;
|
|
86
|
-
secondary: string;
|
|
87
|
-
destructive: string;
|
|
88
|
-
outline: string;
|
|
89
|
-
success: string;
|
|
90
|
-
warning: string;
|
|
91
|
-
info: string;
|
|
92
|
-
soft: string;
|
|
93
|
-
'soft-secondary': string;
|
|
94
|
-
'soft-destructive': string;
|
|
95
|
-
'soft-success': string;
|
|
96
|
-
'soft-warning': string;
|
|
97
|
-
'soft-info': string;
|
|
98
|
-
};
|
|
99
|
-
}, {
|
|
100
|
-
variant: {
|
|
101
|
-
default: string;
|
|
102
|
-
secondary: string;
|
|
103
|
-
destructive: string;
|
|
104
|
-
outline: string;
|
|
105
|
-
success: string;
|
|
106
|
-
warning: string;
|
|
107
|
-
info: string;
|
|
108
|
-
soft: string;
|
|
109
|
-
'soft-secondary': string;
|
|
110
|
-
'soft-destructive': string;
|
|
111
|
-
'soft-success': string;
|
|
112
|
-
'soft-warning': string;
|
|
113
|
-
'soft-info': string;
|
|
114
|
-
};
|
|
115
|
-
}>, unknown, unknown, undefined>>;
|
|
51
|
+
}, undefined>>;
|
|
116
52
|
declare const badgeTextVariants: import("tailwind-variants").TVReturnType<{
|
|
117
53
|
variant: {
|
|
118
|
-
default:
|
|
119
|
-
secondary:
|
|
120
|
-
destructive:
|
|
121
|
-
outline:
|
|
122
|
-
success:
|
|
123
|
-
warning:
|
|
124
|
-
info:
|
|
125
|
-
soft:
|
|
126
|
-
'soft-secondary':
|
|
127
|
-
'soft-destructive':
|
|
128
|
-
'soft-success':
|
|
129
|
-
'soft-warning':
|
|
130
|
-
'soft-info':
|
|
131
|
-
};
|
|
132
|
-
}, undefined, "font-semibold", import("tailwind-variants/dist/config.js").TVConfig<{
|
|
133
|
-
variant: {
|
|
134
|
-
default: string;
|
|
135
|
-
secondary: string;
|
|
136
|
-
destructive: string;
|
|
137
|
-
outline: string;
|
|
138
|
-
success: string;
|
|
139
|
-
warning: string;
|
|
140
|
-
info: string;
|
|
141
|
-
soft: string;
|
|
142
|
-
'soft-secondary': string;
|
|
143
|
-
'soft-destructive': string;
|
|
144
|
-
'soft-success': string;
|
|
145
|
-
'soft-warning': string;
|
|
146
|
-
'soft-info': string;
|
|
147
|
-
};
|
|
148
|
-
}, {
|
|
149
|
-
variant: {
|
|
150
|
-
default: string;
|
|
151
|
-
secondary: string;
|
|
152
|
-
destructive: string;
|
|
153
|
-
outline: string;
|
|
154
|
-
success: string;
|
|
155
|
-
warning: string;
|
|
156
|
-
info: string;
|
|
157
|
-
soft: string;
|
|
158
|
-
'soft-secondary': string;
|
|
159
|
-
'soft-destructive': string;
|
|
160
|
-
'soft-success': string;
|
|
161
|
-
'soft-warning': string;
|
|
162
|
-
'soft-info': string;
|
|
163
|
-
};
|
|
164
|
-
}>, {
|
|
165
|
-
variant: {
|
|
166
|
-
default: string;
|
|
167
|
-
secondary: string;
|
|
168
|
-
destructive: string;
|
|
169
|
-
outline: string;
|
|
170
|
-
success: string;
|
|
171
|
-
warning: string;
|
|
172
|
-
info: string;
|
|
173
|
-
soft: string;
|
|
174
|
-
'soft-secondary': string;
|
|
175
|
-
'soft-destructive': string;
|
|
176
|
-
'soft-success': string;
|
|
177
|
-
'soft-warning': string;
|
|
178
|
-
'soft-info': string;
|
|
179
|
-
};
|
|
180
|
-
}, undefined, import("tailwind-variants").TVReturnType<{
|
|
181
|
-
variant: {
|
|
182
|
-
default: string;
|
|
183
|
-
secondary: string;
|
|
184
|
-
destructive: string;
|
|
185
|
-
outline: string;
|
|
186
|
-
success: string;
|
|
187
|
-
warning: string;
|
|
188
|
-
info: string;
|
|
189
|
-
soft: string;
|
|
190
|
-
'soft-secondary': string;
|
|
191
|
-
'soft-destructive': string;
|
|
192
|
-
'soft-success': string;
|
|
193
|
-
'soft-warning': string;
|
|
194
|
-
'soft-info': string;
|
|
54
|
+
default: "text-primary-foreground";
|
|
55
|
+
secondary: "text-secondary-foreground";
|
|
56
|
+
destructive: "text-destructive-foreground";
|
|
57
|
+
outline: "text-foreground";
|
|
58
|
+
success: "text-success-foreground";
|
|
59
|
+
warning: "text-warning-foreground";
|
|
60
|
+
info: "text-info-foreground";
|
|
61
|
+
soft: "text-primary";
|
|
62
|
+
'soft-secondary': "text-secondary-foreground";
|
|
63
|
+
'soft-destructive': "text-destructive";
|
|
64
|
+
'soft-success': "text-success";
|
|
65
|
+
'soft-warning': "text-warning";
|
|
66
|
+
'soft-info': "text-info";
|
|
195
67
|
};
|
|
196
|
-
}, undefined, "font-semibold",
|
|
68
|
+
}, undefined, "font-semibold", {
|
|
197
69
|
variant: {
|
|
198
|
-
default:
|
|
199
|
-
secondary:
|
|
200
|
-
destructive:
|
|
201
|
-
outline:
|
|
202
|
-
success:
|
|
203
|
-
warning:
|
|
204
|
-
info:
|
|
205
|
-
soft:
|
|
206
|
-
'soft-secondary':
|
|
207
|
-
'soft-destructive':
|
|
208
|
-
'soft-success':
|
|
209
|
-
'soft-warning':
|
|
210
|
-
'soft-info':
|
|
70
|
+
default: "text-primary-foreground";
|
|
71
|
+
secondary: "text-secondary-foreground";
|
|
72
|
+
destructive: "text-destructive-foreground";
|
|
73
|
+
outline: "text-foreground";
|
|
74
|
+
success: "text-success-foreground";
|
|
75
|
+
warning: "text-warning-foreground";
|
|
76
|
+
info: "text-info-foreground";
|
|
77
|
+
soft: "text-primary";
|
|
78
|
+
'soft-secondary': "text-secondary-foreground";
|
|
79
|
+
'soft-destructive': "text-destructive";
|
|
80
|
+
'soft-success': "text-success";
|
|
81
|
+
'soft-warning': "text-warning";
|
|
82
|
+
'soft-info': "text-info";
|
|
211
83
|
};
|
|
212
|
-
}, {
|
|
84
|
+
}, undefined, import("tailwind-variants").TVReturnTypeLike<{
|
|
213
85
|
variant: {
|
|
214
|
-
default:
|
|
215
|
-
secondary:
|
|
216
|
-
destructive:
|
|
217
|
-
outline:
|
|
218
|
-
success:
|
|
219
|
-
warning:
|
|
220
|
-
info:
|
|
221
|
-
soft:
|
|
222
|
-
'soft-secondary':
|
|
223
|
-
'soft-destructive':
|
|
224
|
-
'soft-success':
|
|
225
|
-
'soft-warning':
|
|
226
|
-
'soft-info':
|
|
86
|
+
default: "text-primary-foreground";
|
|
87
|
+
secondary: "text-secondary-foreground";
|
|
88
|
+
destructive: "text-destructive-foreground";
|
|
89
|
+
outline: "text-foreground";
|
|
90
|
+
success: "text-success-foreground";
|
|
91
|
+
warning: "text-warning-foreground";
|
|
92
|
+
info: "text-info-foreground";
|
|
93
|
+
soft: "text-primary";
|
|
94
|
+
'soft-secondary': "text-secondary-foreground";
|
|
95
|
+
'soft-destructive': "text-destructive";
|
|
96
|
+
'soft-success': "text-success";
|
|
97
|
+
'soft-warning': "text-warning";
|
|
98
|
+
'soft-info': "text-info";
|
|
227
99
|
};
|
|
228
|
-
}
|
|
100
|
+
}, undefined>>;
|
|
229
101
|
export interface BadgeProps extends ViewProps, VariantProps<typeof badgeVariants> {
|
|
230
102
|
}
|
|
231
103
|
export interface BadgeTextProps extends TextProps, VariantProps<typeof badgeTextVariants> {
|
|
@@ -1,219 +1,100 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { type PressableInstance, type TextProps, type ViewProps } from 'react-native';
|
|
3
3
|
import { type PressableProps } from '../pressable';
|
|
4
4
|
import { type VariantProps } from '../../lib/tv';
|
|
5
|
+
import type { ForwardRefComponent } from '../../lib/ref-types';
|
|
5
6
|
declare const buttonVariants: import("tailwind-variants").TVReturnType<{
|
|
6
7
|
variant: {
|
|
7
|
-
default:
|
|
8
|
-
destructive:
|
|
9
|
-
outline:
|
|
10
|
-
secondary:
|
|
11
|
-
ghost:
|
|
12
|
-
link:
|
|
8
|
+
default: "bg-primary";
|
|
9
|
+
destructive: "bg-destructive";
|
|
10
|
+
outline: "border border-input bg-background";
|
|
11
|
+
secondary: "bg-secondary";
|
|
12
|
+
ghost: "bg-transparent";
|
|
13
|
+
link: "";
|
|
13
14
|
};
|
|
14
15
|
size: {
|
|
15
|
-
default:
|
|
16
|
-
sm:
|
|
17
|
-
lg:
|
|
18
|
-
icon:
|
|
16
|
+
default: "";
|
|
17
|
+
sm: "";
|
|
18
|
+
lg: "";
|
|
19
|
+
icon: "";
|
|
19
20
|
};
|
|
20
|
-
}, undefined, "flex-row items-center justify-center gap-2",
|
|
21
|
+
}, undefined, "flex-row items-center justify-center gap-2", {
|
|
21
22
|
variant: {
|
|
22
|
-
default:
|
|
23
|
-
destructive:
|
|
24
|
-
outline:
|
|
25
|
-
secondary:
|
|
26
|
-
ghost:
|
|
27
|
-
link:
|
|
23
|
+
default: "bg-primary";
|
|
24
|
+
destructive: "bg-destructive";
|
|
25
|
+
outline: "border border-input bg-background";
|
|
26
|
+
secondary: "bg-secondary";
|
|
27
|
+
ghost: "bg-transparent";
|
|
28
|
+
link: "";
|
|
28
29
|
};
|
|
29
30
|
size: {
|
|
30
|
-
default:
|
|
31
|
-
sm:
|
|
32
|
-
lg:
|
|
33
|
-
icon:
|
|
31
|
+
default: "";
|
|
32
|
+
sm: "";
|
|
33
|
+
lg: "";
|
|
34
|
+
icon: "";
|
|
34
35
|
};
|
|
35
|
-
}, {
|
|
36
|
+
}, undefined, import("tailwind-variants").TVReturnTypeLike<{
|
|
36
37
|
variant: {
|
|
37
|
-
default:
|
|
38
|
-
destructive:
|
|
39
|
-
outline:
|
|
40
|
-
secondary:
|
|
41
|
-
ghost:
|
|
42
|
-
link:
|
|
38
|
+
default: "bg-primary";
|
|
39
|
+
destructive: "bg-destructive";
|
|
40
|
+
outline: "border border-input bg-background";
|
|
41
|
+
secondary: "bg-secondary";
|
|
42
|
+
ghost: "bg-transparent";
|
|
43
|
+
link: "";
|
|
43
44
|
};
|
|
44
45
|
size: {
|
|
45
|
-
default:
|
|
46
|
-
sm:
|
|
47
|
-
lg:
|
|
48
|
-
icon:
|
|
46
|
+
default: "";
|
|
47
|
+
sm: "";
|
|
48
|
+
lg: "";
|
|
49
|
+
icon: "";
|
|
49
50
|
};
|
|
50
|
-
}
|
|
51
|
-
variant: {
|
|
52
|
-
default: string;
|
|
53
|
-
destructive: string;
|
|
54
|
-
outline: string;
|
|
55
|
-
secondary: string;
|
|
56
|
-
ghost: string;
|
|
57
|
-
link: string;
|
|
58
|
-
};
|
|
59
|
-
size: {
|
|
60
|
-
default: string;
|
|
61
|
-
sm: string;
|
|
62
|
-
lg: string;
|
|
63
|
-
icon: string;
|
|
64
|
-
};
|
|
65
|
-
}, undefined, import("tailwind-variants").TVReturnType<{
|
|
66
|
-
variant: {
|
|
67
|
-
default: string;
|
|
68
|
-
destructive: string;
|
|
69
|
-
outline: string;
|
|
70
|
-
secondary: string;
|
|
71
|
-
ghost: string;
|
|
72
|
-
link: string;
|
|
73
|
-
};
|
|
74
|
-
size: {
|
|
75
|
-
default: string;
|
|
76
|
-
sm: string;
|
|
77
|
-
lg: string;
|
|
78
|
-
icon: string;
|
|
79
|
-
};
|
|
80
|
-
}, undefined, "flex-row items-center justify-center gap-2", import("tailwind-variants/dist/config.js").TVConfig<{
|
|
81
|
-
variant: {
|
|
82
|
-
default: string;
|
|
83
|
-
destructive: string;
|
|
84
|
-
outline: string;
|
|
85
|
-
secondary: string;
|
|
86
|
-
ghost: string;
|
|
87
|
-
link: string;
|
|
88
|
-
};
|
|
89
|
-
size: {
|
|
90
|
-
default: string;
|
|
91
|
-
sm: string;
|
|
92
|
-
lg: string;
|
|
93
|
-
icon: string;
|
|
94
|
-
};
|
|
95
|
-
}, {
|
|
96
|
-
variant: {
|
|
97
|
-
default: string;
|
|
98
|
-
destructive: string;
|
|
99
|
-
outline: string;
|
|
100
|
-
secondary: string;
|
|
101
|
-
ghost: string;
|
|
102
|
-
link: string;
|
|
103
|
-
};
|
|
104
|
-
size: {
|
|
105
|
-
default: string;
|
|
106
|
-
sm: string;
|
|
107
|
-
lg: string;
|
|
108
|
-
icon: string;
|
|
109
|
-
};
|
|
110
|
-
}>, unknown, unknown, undefined>>;
|
|
51
|
+
}, undefined>>;
|
|
111
52
|
declare const buttonTextVariants: import("tailwind-variants").TVReturnType<{
|
|
112
53
|
variant: {
|
|
113
|
-
default:
|
|
114
|
-
destructive:
|
|
115
|
-
outline:
|
|
116
|
-
secondary:
|
|
117
|
-
ghost:
|
|
118
|
-
link:
|
|
119
|
-
};
|
|
120
|
-
size: {
|
|
121
|
-
default: string;
|
|
122
|
-
sm: string;
|
|
123
|
-
lg: string;
|
|
124
|
-
icon: string;
|
|
125
|
-
};
|
|
126
|
-
}, undefined, "font-medium text-center", import("tailwind-variants/dist/config.js").TVConfig<{
|
|
127
|
-
variant: {
|
|
128
|
-
default: string;
|
|
129
|
-
destructive: string;
|
|
130
|
-
outline: string;
|
|
131
|
-
secondary: string;
|
|
132
|
-
ghost: string;
|
|
133
|
-
link: string;
|
|
134
|
-
};
|
|
135
|
-
size: {
|
|
136
|
-
default: string;
|
|
137
|
-
sm: string;
|
|
138
|
-
lg: string;
|
|
139
|
-
icon: string;
|
|
140
|
-
};
|
|
141
|
-
}, {
|
|
142
|
-
variant: {
|
|
143
|
-
default: string;
|
|
144
|
-
destructive: string;
|
|
145
|
-
outline: string;
|
|
146
|
-
secondary: string;
|
|
147
|
-
ghost: string;
|
|
148
|
-
link: string;
|
|
149
|
-
};
|
|
150
|
-
size: {
|
|
151
|
-
default: string;
|
|
152
|
-
sm: string;
|
|
153
|
-
lg: string;
|
|
154
|
-
icon: string;
|
|
155
|
-
};
|
|
156
|
-
}>, {
|
|
157
|
-
variant: {
|
|
158
|
-
default: string;
|
|
159
|
-
destructive: string;
|
|
160
|
-
outline: string;
|
|
161
|
-
secondary: string;
|
|
162
|
-
ghost: string;
|
|
163
|
-
link: string;
|
|
164
|
-
};
|
|
165
|
-
size: {
|
|
166
|
-
default: string;
|
|
167
|
-
sm: string;
|
|
168
|
-
lg: string;
|
|
169
|
-
icon: string;
|
|
170
|
-
};
|
|
171
|
-
}, undefined, import("tailwind-variants").TVReturnType<{
|
|
172
|
-
variant: {
|
|
173
|
-
default: string;
|
|
174
|
-
destructive: string;
|
|
175
|
-
outline: string;
|
|
176
|
-
secondary: string;
|
|
177
|
-
ghost: string;
|
|
178
|
-
link: string;
|
|
54
|
+
default: "text-primary-foreground";
|
|
55
|
+
destructive: "text-destructive-foreground";
|
|
56
|
+
outline: "text-foreground";
|
|
57
|
+
secondary: "text-secondary-foreground";
|
|
58
|
+
ghost: "text-foreground";
|
|
59
|
+
link: "text-primary underline";
|
|
179
60
|
};
|
|
180
61
|
size: {
|
|
181
|
-
default:
|
|
182
|
-
sm:
|
|
183
|
-
lg:
|
|
184
|
-
icon:
|
|
62
|
+
default: "";
|
|
63
|
+
sm: "";
|
|
64
|
+
lg: "";
|
|
65
|
+
icon: "";
|
|
185
66
|
};
|
|
186
|
-
}, undefined, "font-medium text-center",
|
|
67
|
+
}, undefined, "font-medium text-center", {
|
|
187
68
|
variant: {
|
|
188
|
-
default:
|
|
189
|
-
destructive:
|
|
190
|
-
outline:
|
|
191
|
-
secondary:
|
|
192
|
-
ghost:
|
|
193
|
-
link:
|
|
69
|
+
default: "text-primary-foreground";
|
|
70
|
+
destructive: "text-destructive-foreground";
|
|
71
|
+
outline: "text-foreground";
|
|
72
|
+
secondary: "text-secondary-foreground";
|
|
73
|
+
ghost: "text-foreground";
|
|
74
|
+
link: "text-primary underline";
|
|
194
75
|
};
|
|
195
76
|
size: {
|
|
196
|
-
default:
|
|
197
|
-
sm:
|
|
198
|
-
lg:
|
|
199
|
-
icon:
|
|
77
|
+
default: "";
|
|
78
|
+
sm: "";
|
|
79
|
+
lg: "";
|
|
80
|
+
icon: "";
|
|
200
81
|
};
|
|
201
|
-
}, {
|
|
82
|
+
}, undefined, import("tailwind-variants").TVReturnTypeLike<{
|
|
202
83
|
variant: {
|
|
203
|
-
default:
|
|
204
|
-
destructive:
|
|
205
|
-
outline:
|
|
206
|
-
secondary:
|
|
207
|
-
ghost:
|
|
208
|
-
link:
|
|
84
|
+
default: "text-primary-foreground";
|
|
85
|
+
destructive: "text-destructive-foreground";
|
|
86
|
+
outline: "text-foreground";
|
|
87
|
+
secondary: "text-secondary-foreground";
|
|
88
|
+
ghost: "text-foreground";
|
|
89
|
+
link: "text-primary underline";
|
|
209
90
|
};
|
|
210
91
|
size: {
|
|
211
|
-
default:
|
|
212
|
-
sm:
|
|
213
|
-
lg:
|
|
214
|
-
icon:
|
|
92
|
+
default: "";
|
|
93
|
+
sm: "";
|
|
94
|
+
lg: "";
|
|
95
|
+
icon: "";
|
|
215
96
|
};
|
|
216
|
-
}
|
|
97
|
+
}, undefined>>;
|
|
217
98
|
export interface ButtonProps extends Omit<PressableProps, 'children' | 'feedback' | 'loading'>, VariantProps<typeof buttonVariants> {
|
|
218
99
|
children?: React.ReactNode;
|
|
219
100
|
className?: string;
|
|
@@ -229,7 +110,7 @@ export interface ButtonTextProps extends TextProps {
|
|
|
229
110
|
export interface ButtonIconProps extends ViewProps {
|
|
230
111
|
className?: string;
|
|
231
112
|
}
|
|
232
|
-
declare const Button:
|
|
113
|
+
declare const Button: ForwardRefComponent<PressableInstance, ButtonProps>;
|
|
233
114
|
declare function ButtonText({ className, variant: variantProp, size: sizeProp, style, ...props }: ButtonTextProps): React.JSX.Element;
|
|
234
115
|
declare namespace ButtonText {
|
|
235
116
|
var displayName: string;
|