@tamagui/button 1.2.3 → 1.2.5
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/dist/cjs/Button.js +58 -39
- package/dist/cjs/Button.js.map +2 -2
- package/dist/esm/Button.js +58 -39
- package/dist/esm/Button.js.map +2 -2
- package/dist/jsx/Button.js +58 -39
- package/dist/jsx/Button.js.map +2 -2
- package/package.json +6 -6
- package/src/Button.tsx +74 -53
- package/types/Button.d.ts +200 -192
- package/types/Button.d.ts.map +1 -1
package/types/Button.d.ts
CHANGED
|
@@ -17,9 +17,8 @@ export type ButtonProps = Omit<TextParentStyles, 'TextComponent'> & GetProps<typ
|
|
|
17
17
|
iconAfter?: IconProp;
|
|
18
18
|
/**
|
|
19
19
|
* adjust icon relative to size
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
* default: -1
|
|
20
|
+
*
|
|
21
|
+
* @default 1
|
|
23
22
|
*/
|
|
24
23
|
scaleIcon?: number;
|
|
25
24
|
/**
|
|
@@ -30,8 +29,12 @@ export type ButtonProps = Omit<TextParentStyles, 'TextComponent'> & GetProps<typ
|
|
|
30
29
|
* adjust internal space relative to icon size
|
|
31
30
|
*/
|
|
32
31
|
scaleSpace?: number;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
*/
|
|
35
|
+
unstyled?: boolean;
|
|
33
36
|
};
|
|
34
|
-
export declare const ButtonFrame: import("@tamagui/core").TamaguiComponent<Omit<import("react-native").ViewProps, "display" | "children"> & import("@tamagui/core").
|
|
37
|
+
export declare const ButtonFrame: import("@tamagui/core").TamaguiComponent<Omit<import("react-native").ViewProps, "display" | "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers> & import("@tamagui/core").ExtendBaseStackProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & import("@tamagui/core/types/reactNativeTypes").RNViewProps & Omit<{
|
|
35
38
|
readonly fullscreen?: boolean | undefined;
|
|
36
39
|
readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
|
|
37
40
|
} & {
|
|
@@ -46,11 +49,12 @@ export declare const ButtonFrame: import("@tamagui/core").TamaguiComponent<Omit<
|
|
|
46
49
|
readonly bordered?: number | boolean | undefined;
|
|
47
50
|
readonly transparent?: boolean | undefined;
|
|
48
51
|
readonly chromeless?: boolean | "all" | undefined;
|
|
49
|
-
}, "disabled" | "size" | "active"> & {
|
|
52
|
+
}, "disabled" | "size" | "defaultStyle" | "active"> & {
|
|
53
|
+
readonly defaultStyle?: boolean | undefined;
|
|
50
54
|
readonly size?: import("@tamagui/core").SizeTokens | undefined;
|
|
51
55
|
readonly active?: boolean | undefined;
|
|
52
56
|
readonly disabled?: boolean | undefined;
|
|
53
|
-
} & import("@tamagui/core").MediaProps<Partial<Omit<import("react-native").ViewProps, "display" | "children"> & import("@tamagui/core").
|
|
57
|
+
} & import("@tamagui/core").MediaProps<Partial<Omit<import("react-native").ViewProps, "display" | "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers> & import("@tamagui/core").ExtendBaseStackProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & import("@tamagui/core/types/reactNativeTypes").RNViewProps & Omit<{
|
|
54
58
|
readonly fullscreen?: boolean | undefined;
|
|
55
59
|
readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
|
|
56
60
|
} & {
|
|
@@ -65,11 +69,12 @@ export declare const ButtonFrame: import("@tamagui/core").TamaguiComponent<Omit<
|
|
|
65
69
|
readonly bordered?: number | boolean | undefined;
|
|
66
70
|
readonly transparent?: boolean | undefined;
|
|
67
71
|
readonly chromeless?: boolean | "all" | undefined;
|
|
68
|
-
}, "disabled" | "size" | "active"> & {
|
|
72
|
+
}, "disabled" | "size" | "defaultStyle" | "active"> & {
|
|
73
|
+
readonly defaultStyle?: boolean | undefined;
|
|
69
74
|
readonly size?: import("@tamagui/core").SizeTokens | undefined;
|
|
70
75
|
readonly active?: boolean | undefined;
|
|
71
76
|
readonly disabled?: boolean | undefined;
|
|
72
|
-
}>> & import("@tamagui/core").PseudoProps<Partial<Omit<import("react-native").ViewProps, "display" | "children"> & import("@tamagui/core").
|
|
77
|
+
}>> & import("@tamagui/core").PseudoProps<Partial<Omit<import("react-native").ViewProps, "display" | "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers> & import("@tamagui/core").ExtendBaseStackProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & import("@tamagui/core/types/reactNativeTypes").RNViewProps & Omit<{
|
|
73
78
|
readonly fullscreen?: boolean | undefined;
|
|
74
79
|
readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
|
|
75
80
|
} & {
|
|
@@ -84,11 +89,12 @@ export declare const ButtonFrame: import("@tamagui/core").TamaguiComponent<Omit<
|
|
|
84
89
|
readonly bordered?: number | boolean | undefined;
|
|
85
90
|
readonly transparent?: boolean | undefined;
|
|
86
91
|
readonly chromeless?: boolean | "all" | undefined;
|
|
87
|
-
}, "disabled" | "size" | "active"> & {
|
|
92
|
+
}, "disabled" | "size" | "defaultStyle" | "active"> & {
|
|
93
|
+
readonly defaultStyle?: boolean | undefined;
|
|
88
94
|
readonly size?: import("@tamagui/core").SizeTokens | undefined;
|
|
89
95
|
readonly active?: boolean | undefined;
|
|
90
96
|
readonly disabled?: boolean | undefined;
|
|
91
|
-
}>>, TamaguiElement, import("@tamagui/core").
|
|
97
|
+
}>>, TamaguiElement, Omit<import("react-native").ViewProps, "display" | "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers> & import("@tamagui/core").ExtendBaseStackProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & import("@tamagui/core/types/reactNativeTypes").RNViewProps, {
|
|
92
98
|
readonly fullscreen?: boolean | undefined;
|
|
93
99
|
readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
|
|
94
100
|
} & {
|
|
@@ -104,35 +110,119 @@ export declare const ButtonFrame: import("@tamagui/core").TamaguiComponent<Omit<
|
|
|
104
110
|
readonly transparent?: boolean | undefined;
|
|
105
111
|
readonly chromeless?: boolean | "all" | undefined;
|
|
106
112
|
} & {
|
|
113
|
+
readonly defaultStyle?: boolean | undefined;
|
|
107
114
|
readonly size?: import("@tamagui/core").SizeTokens | undefined;
|
|
108
115
|
readonly active?: boolean | undefined;
|
|
109
116
|
readonly disabled?: boolean | undefined;
|
|
110
117
|
}>;
|
|
111
|
-
export declare const ButtonText: import("@tamagui/core").TamaguiComponent<
|
|
112
|
-
readonly size?: import("@tamagui/core").FontSizeTokens | undefined;
|
|
113
|
-
} & import("@tamagui/core").MediaProps<Partial<Omit<import("react-native").TextProps, "children"> & import("@tamagui/core").RNWTextProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").TextStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").TextStylePropsBase>> & Omit<{}, "size"> & {
|
|
114
|
-
readonly size?: import("@tamagui/core").FontSizeTokens | undefined;
|
|
115
|
-
}>> & import("@tamagui/core").PseudoProps<Partial<Omit<import("react-native").TextProps, "children"> & import("@tamagui/core").RNWTextProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").TextStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").TextStylePropsBase>> & Omit<{}, "size"> & {
|
|
116
|
-
readonly size?: import("@tamagui/core").FontSizeTokens | undefined;
|
|
117
|
-
}>>) | (Omit<import("react-native").TextProps, "children"> & import("@tamagui/core").RNWTextProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").TextStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").TextStylePropsBase>> & Omit<{
|
|
118
|
-
readonly size?: import("@tamagui/core").FontSizeTokens | undefined;
|
|
119
|
-
}, string | number> & {
|
|
120
|
-
[x: string]: undefined;
|
|
121
|
-
} & import("@tamagui/core").MediaProps<Partial<Omit<import("react-native").TextProps, "children"> & import("@tamagui/core").RNWTextProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").TextStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").TextStylePropsBase>> & Omit<{
|
|
118
|
+
export declare const ButtonText: import("@tamagui/core").TamaguiComponent<Omit<import("react-native").TextProps, "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers> & import("@tamagui/core").ExtendsBaseTextProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").TextStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").TextStylePropsBase>> & import("@tamagui/core/types/reactNativeTypes").RNTextProps & Omit<{
|
|
122
119
|
readonly size?: import("@tamagui/core").FontSizeTokens | undefined;
|
|
123
|
-
},
|
|
124
|
-
|
|
125
|
-
}
|
|
120
|
+
}, "defaultStyle"> & {
|
|
121
|
+
defaultStyle?: boolean | undefined;
|
|
122
|
+
} & import("@tamagui/core").MediaProps<Partial<Omit<import("react-native").TextProps, "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers> & import("@tamagui/core").ExtendsBaseTextProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").TextStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").TextStylePropsBase>> & import("@tamagui/core/types/reactNativeTypes").RNTextProps & Omit<{
|
|
126
123
|
readonly size?: import("@tamagui/core").FontSizeTokens | undefined;
|
|
127
|
-
},
|
|
128
|
-
|
|
129
|
-
}>>),
|
|
124
|
+
}, "defaultStyle"> & {
|
|
125
|
+
defaultStyle?: boolean | undefined;
|
|
126
|
+
}>> & import("@tamagui/core").PseudoProps<Partial<Omit<import("react-native").TextProps, "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers> & import("@tamagui/core").ExtendsBaseTextProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").TextStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").TextStylePropsBase>> & import("@tamagui/core/types/reactNativeTypes").RNTextProps & Omit<{
|
|
130
127
|
readonly size?: import("@tamagui/core").FontSizeTokens | undefined;
|
|
131
|
-
}
|
|
128
|
+
}, "defaultStyle"> & {
|
|
129
|
+
defaultStyle?: boolean | undefined;
|
|
130
|
+
}>>, TamaguiElement, Omit<import("react-native").TextProps, "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers> & import("@tamagui/core").ExtendsBaseTextProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").TextStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").TextStylePropsBase>> & import("@tamagui/core/types/reactNativeTypes").RNTextProps, {
|
|
132
131
|
readonly size?: import("@tamagui/core").FontSizeTokens | undefined;
|
|
133
132
|
} & {
|
|
134
|
-
|
|
135
|
-
}
|
|
133
|
+
defaultStyle?: boolean | undefined;
|
|
134
|
+
}>;
|
|
135
|
+
export declare const buttonStaticConfig: {
|
|
136
|
+
inlineProps: Set<string>;
|
|
137
|
+
};
|
|
138
|
+
export declare const Button: (props: Omit<Omit<TextParentStyles, "TextComponent"> & Omit<import("react-native").ViewProps, "display" | "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers> & import("@tamagui/core").ExtendBaseStackProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & import("@tamagui/core/types/reactNativeTypes").RNViewProps & Omit<{
|
|
139
|
+
readonly fullscreen?: boolean | undefined;
|
|
140
|
+
readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
|
|
141
|
+
} & {
|
|
142
|
+
readonly backgrounded?: boolean | undefined;
|
|
143
|
+
readonly radiused?: boolean | undefined;
|
|
144
|
+
readonly hoverTheme?: boolean | undefined;
|
|
145
|
+
readonly pressTheme?: boolean | undefined;
|
|
146
|
+
readonly focusTheme?: boolean | undefined;
|
|
147
|
+
readonly circular?: boolean | undefined;
|
|
148
|
+
readonly padded?: boolean | undefined;
|
|
149
|
+
readonly elevate?: boolean | undefined;
|
|
150
|
+
readonly bordered?: number | boolean | undefined;
|
|
151
|
+
readonly transparent?: boolean | undefined;
|
|
152
|
+
readonly chromeless?: boolean | "all" | undefined;
|
|
153
|
+
}, "disabled" | "size" | "defaultStyle" | "active"> & {
|
|
154
|
+
readonly defaultStyle?: boolean | undefined;
|
|
155
|
+
readonly size?: import("@tamagui/core").SizeTokens | undefined;
|
|
156
|
+
readonly active?: boolean | undefined;
|
|
157
|
+
readonly disabled?: boolean | undefined;
|
|
158
|
+
} & import("@tamagui/core").MediaProps<Partial<Omit<import("react-native").ViewProps, "display" | "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers> & import("@tamagui/core").ExtendBaseStackProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & import("@tamagui/core/types/reactNativeTypes").RNViewProps & Omit<{
|
|
159
|
+
readonly fullscreen?: boolean | undefined;
|
|
160
|
+
readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
|
|
161
|
+
} & {
|
|
162
|
+
readonly backgrounded?: boolean | undefined;
|
|
163
|
+
readonly radiused?: boolean | undefined;
|
|
164
|
+
readonly hoverTheme?: boolean | undefined;
|
|
165
|
+
readonly pressTheme?: boolean | undefined;
|
|
166
|
+
readonly focusTheme?: boolean | undefined;
|
|
167
|
+
readonly circular?: boolean | undefined;
|
|
168
|
+
readonly padded?: boolean | undefined;
|
|
169
|
+
readonly elevate?: boolean | undefined;
|
|
170
|
+
readonly bordered?: number | boolean | undefined;
|
|
171
|
+
readonly transparent?: boolean | undefined;
|
|
172
|
+
readonly chromeless?: boolean | "all" | undefined;
|
|
173
|
+
}, "disabled" | "size" | "defaultStyle" | "active"> & {
|
|
174
|
+
readonly defaultStyle?: boolean | undefined;
|
|
175
|
+
readonly size?: import("@tamagui/core").SizeTokens | undefined;
|
|
176
|
+
readonly active?: boolean | undefined;
|
|
177
|
+
readonly disabled?: boolean | undefined;
|
|
178
|
+
}>> & import("@tamagui/core").PseudoProps<Partial<Omit<import("react-native").ViewProps, "display" | "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers> & import("@tamagui/core").ExtendBaseStackProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & import("@tamagui/core/types/reactNativeTypes").RNViewProps & Omit<{
|
|
179
|
+
readonly fullscreen?: boolean | undefined;
|
|
180
|
+
readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
|
|
181
|
+
} & {
|
|
182
|
+
readonly backgrounded?: boolean | undefined;
|
|
183
|
+
readonly radiused?: boolean | undefined;
|
|
184
|
+
readonly hoverTheme?: boolean | undefined;
|
|
185
|
+
readonly pressTheme?: boolean | undefined;
|
|
186
|
+
readonly focusTheme?: boolean | undefined;
|
|
187
|
+
readonly circular?: boolean | undefined;
|
|
188
|
+
readonly padded?: boolean | undefined;
|
|
189
|
+
readonly elevate?: boolean | undefined;
|
|
190
|
+
readonly bordered?: number | boolean | undefined;
|
|
191
|
+
readonly transparent?: boolean | undefined;
|
|
192
|
+
readonly chromeless?: boolean | "all" | undefined;
|
|
193
|
+
}, "disabled" | "size" | "defaultStyle" | "active"> & {
|
|
194
|
+
readonly defaultStyle?: boolean | undefined;
|
|
195
|
+
readonly size?: import("@tamagui/core").SizeTokens | undefined;
|
|
196
|
+
readonly active?: boolean | undefined;
|
|
197
|
+
readonly disabled?: boolean | undefined;
|
|
198
|
+
}>> & ThemeableProps & {
|
|
199
|
+
/**
|
|
200
|
+
* add icon before, passes color and size automatically if Component
|
|
201
|
+
*/
|
|
202
|
+
icon?: IconProp | undefined;
|
|
203
|
+
/**
|
|
204
|
+
* add icon after, passes color and size automatically if Component
|
|
205
|
+
*/
|
|
206
|
+
iconAfter?: IconProp | undefined;
|
|
207
|
+
/**
|
|
208
|
+
* adjust icon relative to size
|
|
209
|
+
*
|
|
210
|
+
* @default 1
|
|
211
|
+
*/
|
|
212
|
+
scaleIcon?: number | undefined;
|
|
213
|
+
/**
|
|
214
|
+
* make the spacing elements flex
|
|
215
|
+
*/
|
|
216
|
+
spaceFlex?: number | boolean | undefined;
|
|
217
|
+
/**
|
|
218
|
+
* adjust internal space relative to icon size
|
|
219
|
+
*/
|
|
220
|
+
scaleSpace?: number | undefined;
|
|
221
|
+
/**
|
|
222
|
+
*
|
|
223
|
+
*/
|
|
224
|
+
unstyled?: boolean | undefined;
|
|
225
|
+
} & import("react").RefAttributes<TamaguiElement>, "theme" | "themeInverse"> & ThemeableProps) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | null;
|
|
136
226
|
export declare function useButton(propsIn: ButtonProps, { Text }?: {
|
|
137
227
|
Text: any;
|
|
138
228
|
}): {
|
|
@@ -141,7 +231,6 @@ export declare function useButton(propsIn: ButtonProps, { Text }?: {
|
|
|
141
231
|
props: {
|
|
142
232
|
children: string | number | boolean | JSX.Element | import("react").ReactFragment | null | undefined;
|
|
143
233
|
hitSlop?: import("react-native").Insets | (import("react-native").Insets & number) | undefined;
|
|
144
|
-
onLayout?: ((event: import("react-native").LayoutChangeEvent) => void) | undefined;
|
|
145
234
|
pointerEvents?: "box-none" | "none" | "box-only" | "auto" | undefined;
|
|
146
235
|
removeClippedSubviews?: boolean | undefined;
|
|
147
236
|
style?: import("react-native").StyleProp<import("react-native").ViewStyle>;
|
|
@@ -159,18 +248,6 @@ export declare function useButton(propsIn: ButtonProps, { Text }?: {
|
|
|
159
248
|
tvParallaxShiftDistanceY?: number | undefined;
|
|
160
249
|
tvParallaxTiltAngle?: number | undefined;
|
|
161
250
|
tvParallaxMagnification?: number | undefined;
|
|
162
|
-
onStartShouldSetResponder?: ((event: import("react-native").GestureResponderEvent) => boolean) | undefined;
|
|
163
|
-
onMoveShouldSetResponder?: ((event: import("react-native").GestureResponderEvent) => boolean) | undefined;
|
|
164
|
-
onResponderEnd?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
|
|
165
|
-
onResponderGrant?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
|
|
166
|
-
onResponderReject?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
|
|
167
|
-
onResponderMove?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
|
|
168
|
-
onResponderRelease?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
|
|
169
|
-
onResponderStart?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
|
|
170
|
-
onResponderTerminationRequest?: ((event: import("react-native").GestureResponderEvent) => boolean) | undefined;
|
|
171
|
-
onResponderTerminate?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
|
|
172
|
-
onStartShouldSetResponderCapture?: ((event: import("react-native").GestureResponderEvent) => boolean) | undefined;
|
|
173
|
-
onMoveShouldSetResponderCapture?: ((event: import("react-native").GestureResponderEvent) => boolean) | undefined;
|
|
174
251
|
onTouchStart?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
|
|
175
252
|
onTouchMove?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
|
|
176
253
|
onTouchEnd?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
|
|
@@ -194,9 +271,7 @@ export declare function useButton(propsIn: ButtonProps, { Text }?: {
|
|
|
194
271
|
label?: string | undefined;
|
|
195
272
|
}>[] | undefined;
|
|
196
273
|
accessibilityLabel?: string | undefined;
|
|
197
|
-
accessibilityRole?: "
|
|
198
|
-
* adjust icon relative to size
|
|
199
|
-
*/
|
|
274
|
+
accessibilityRole?: import("react-native").AccessibilityRole | undefined;
|
|
200
275
|
accessibilityState?: import("react-native").AccessibilityState | undefined;
|
|
201
276
|
accessibilityHint?: string | undefined;
|
|
202
277
|
accessibilityValue?: import("react-native").AccessibilityValue | undefined;
|
|
@@ -211,31 +286,7 @@ export declare function useButton(propsIn: ButtonProps, { Text }?: {
|
|
|
211
286
|
onAccessibilityTap?: (() => void) | undefined;
|
|
212
287
|
onMagicTap?: (() => void) | undefined;
|
|
213
288
|
accessibilityIgnoresInvertColors?: boolean | undefined;
|
|
214
|
-
|
|
215
|
-
target?: any;
|
|
216
|
-
rel?: any;
|
|
217
|
-
download?: any;
|
|
218
|
-
/**
|
|
219
|
-
* default: -1
|
|
220
|
-
*/
|
|
221
|
-
href?: string | undefined;
|
|
222
|
-
hrefAttrs?: {
|
|
223
|
-
target?: "top" | "_blank" | "_self" | "_top" | "blank" | "self" | undefined; /**
|
|
224
|
-
* make the spacing elements flex
|
|
225
|
-
*/
|
|
226
|
-
rel?: string | undefined;
|
|
227
|
-
download?: boolean | undefined;
|
|
228
|
-
} | undefined;
|
|
229
|
-
onMouseDown?: (((event: import("react").MouseEvent<HTMLDivElement, MouseEvent>) => void) & import("react").MouseEventHandler<HTMLDivElement>) | undefined;
|
|
230
|
-
onMouseUp?: ((event: import("react").MouseEvent<HTMLDivElement, MouseEvent>) => void) | undefined;
|
|
231
|
-
onMouseEnter?: (((event: import("react").MouseEvent<HTMLDivElement, MouseEvent>) => void) & import("react").MouseEventHandler<HTMLDivElement>) | undefined;
|
|
232
|
-
onMouseLeave?: (((event: import("react").MouseEvent<HTMLDivElement, MouseEvent>) => void) & import("react").MouseEventHandler<HTMLDivElement>) | undefined;
|
|
233
|
-
onFocus?: ((event: import("react").FocusEvent<HTMLDivElement, Element>) => void) | undefined;
|
|
234
|
-
onScroll?: ((event: import("react").UIEvent<HTMLDivElement, UIEvent>) => void) | undefined;
|
|
235
|
-
onScrollShouldSetResponder?: unknown;
|
|
236
|
-
onScrollShouldSetResponderCapture?: unknown;
|
|
237
|
-
onSelectionChangeShouldSetResponder?: unknown;
|
|
238
|
-
onSelectionChangeShouldSetResponderCapture?: unknown;
|
|
289
|
+
target?: string | undefined;
|
|
239
290
|
asChild?: boolean | undefined;
|
|
240
291
|
spaceDirection?: import("@tamagui/core").SpaceDirection | undefined;
|
|
241
292
|
dangerouslySetInnerHTML?: {
|
|
@@ -251,32 +302,38 @@ export declare function useButton(propsIn: ButtonProps, { Text }?: {
|
|
|
251
302
|
tag: string | undefined;
|
|
252
303
|
componentName?: string | undefined;
|
|
253
304
|
forceStyle?: "focus" | "hover" | "press" | undefined;
|
|
254
|
-
onHoverIn?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
255
|
-
onHoverOut?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
256
305
|
onPress?: ((event: import("react-native").GestureResponderEvent) => void) | null | undefined;
|
|
257
306
|
onPressIn?: ((event: import("react-native").GestureResponderEvent) => void) | null | undefined;
|
|
258
307
|
onPressOut?: ((event: import("react-native").GestureResponderEvent) => void) | null | undefined;
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
308
|
+
onHoverIn?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
309
|
+
onHoverOut?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
310
|
+
onMouseEnter?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
311
|
+
onMouseLeave?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
312
|
+
onMouseDown?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
313
|
+
onMouseUp?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
314
|
+
onFocus?: ((event: import("react").FocusEvent<HTMLDivElement, Element>) => void) | undefined;
|
|
315
|
+
onScroll?: ((event: import("react").UIEvent<HTMLDivElement, UIEvent>) => void) | undefined;
|
|
316
|
+
backgroundColor?: import("@tamagui/core").ColorTokens | import("@tamagui/core").ThemeValueFallback | import("react-native").OpaqueColorValue | undefined;
|
|
317
|
+
borderBottomColor?: import("@tamagui/core").ColorTokens | import("@tamagui/core").ThemeValueFallback | import("react-native").OpaqueColorValue | undefined;
|
|
318
|
+
borderBottomEndRadius?: import("@tamagui/core").ThemeValueFallback | import("@tamagui/core").RadiusTokens | undefined;
|
|
319
|
+
borderBottomLeftRadius?: import("@tamagui/core").ThemeValueFallback | import("@tamagui/core").RadiusTokens | undefined;
|
|
320
|
+
borderBottomRightRadius?: import("@tamagui/core").ThemeValueFallback | import("@tamagui/core").RadiusTokens | undefined;
|
|
321
|
+
borderBottomStartRadius?: import("@tamagui/core").ThemeValueFallback | import("@tamagui/core").RadiusTokens | undefined;
|
|
265
322
|
borderBottomWidth?: import("@tamagui/core").ThemeValueFallback | import("@tamagui/core").SpaceTokens | undefined;
|
|
266
|
-
borderColor?: import("@tamagui/core").
|
|
323
|
+
borderColor?: import("@tamagui/core").ColorTokens | import("@tamagui/core").ThemeValueFallback | import("react-native").OpaqueColorValue | undefined;
|
|
267
324
|
borderEndColor?: import("react-native").ColorValue | undefined;
|
|
268
|
-
borderLeftColor?: import("@tamagui/core").
|
|
325
|
+
borderLeftColor?: import("@tamagui/core").ColorTokens | import("@tamagui/core").ThemeValueFallback | import("react-native").OpaqueColorValue | undefined;
|
|
269
326
|
borderLeftWidth?: import("@tamagui/core").ThemeValueFallback | import("@tamagui/core").SpaceTokens | undefined;
|
|
270
|
-
borderRadius?: import("@tamagui/core").
|
|
271
|
-
borderRightColor?: import("@tamagui/core").
|
|
327
|
+
borderRadius?: import("@tamagui/core").ThemeValueFallback | import("@tamagui/core").RadiusTokens | undefined;
|
|
328
|
+
borderRightColor?: import("@tamagui/core").ColorTokens | import("@tamagui/core").ThemeValueFallback | import("react-native").OpaqueColorValue | undefined;
|
|
272
329
|
borderRightWidth?: import("@tamagui/core").ThemeValueFallback | import("@tamagui/core").SpaceTokens | undefined;
|
|
273
330
|
borderStartColor?: import("react-native").ColorValue | undefined;
|
|
274
331
|
borderStyle?: "solid" | "dotted" | "dashed" | undefined;
|
|
275
|
-
borderTopColor?: import("@tamagui/core").
|
|
276
|
-
borderTopEndRadius?: import("@tamagui/core").
|
|
277
|
-
borderTopLeftRadius?: import("@tamagui/core").
|
|
278
|
-
borderTopRightRadius?: import("@tamagui/core").
|
|
279
|
-
borderTopStartRadius?: import("@tamagui/core").
|
|
332
|
+
borderTopColor?: import("@tamagui/core").ColorTokens | import("@tamagui/core").ThemeValueFallback | import("react-native").OpaqueColorValue | undefined;
|
|
333
|
+
borderTopEndRadius?: import("@tamagui/core").ThemeValueFallback | import("@tamagui/core").RadiusTokens | undefined;
|
|
334
|
+
borderTopLeftRadius?: import("@tamagui/core").ThemeValueFallback | import("@tamagui/core").RadiusTokens | undefined;
|
|
335
|
+
borderTopRightRadius?: import("@tamagui/core").ThemeValueFallback | import("@tamagui/core").RadiusTokens | undefined;
|
|
336
|
+
borderTopStartRadius?: import("@tamagui/core").ThemeValueFallback | import("@tamagui/core").RadiusTokens | undefined;
|
|
280
337
|
borderTopWidth?: import("@tamagui/core").ThemeValueFallback | import("@tamagui/core").SpaceTokens | undefined;
|
|
281
338
|
borderWidth?: import("@tamagui/core").ThemeValueFallback | import("@tamagui/core").SpaceTokens | undefined;
|
|
282
339
|
opacity?: number | undefined;
|
|
@@ -294,7 +351,7 @@ export declare function useButton(propsIn: ButtonProps, { Text }?: {
|
|
|
294
351
|
flexGrow?: number | undefined;
|
|
295
352
|
flexShrink?: number | undefined;
|
|
296
353
|
flexWrap?: "nowrap" | "wrap" | "wrap-reverse" | undefined;
|
|
297
|
-
height?: import("@tamagui/core").
|
|
354
|
+
height?: import("@tamagui/core").ThemeValueFallback | import("@tamagui/core").SizeTokens | undefined;
|
|
298
355
|
justifyContent?: "center" | "flex-start" | "flex-end" | "space-between" | "space-around" | "space-evenly" | undefined;
|
|
299
356
|
left?: import("@tamagui/core").ThemeValueFallback | import("@tamagui/core").SpaceTokens | undefined;
|
|
300
357
|
margin?: import("@tamagui/core").ThemeValueFallback | import("@tamagui/core").SpaceTokens | undefined;
|
|
@@ -306,10 +363,10 @@ export declare function useButton(propsIn: ButtonProps, { Text }?: {
|
|
|
306
363
|
marginStart?: import("@tamagui/core").ThemeValueFallback | import("@tamagui/core").SpaceTokens | undefined;
|
|
307
364
|
marginTop?: import("@tamagui/core").ThemeValueFallback | import("@tamagui/core").SpaceTokens | undefined;
|
|
308
365
|
marginVertical?: import("@tamagui/core").ThemeValueFallback | import("@tamagui/core").SpaceTokens | undefined;
|
|
309
|
-
maxHeight?: import("@tamagui/core").
|
|
310
|
-
maxWidth?: import("@tamagui/core").
|
|
311
|
-
minHeight?: import("@tamagui/core").
|
|
312
|
-
minWidth?: import("@tamagui/core").
|
|
366
|
+
maxHeight?: import("@tamagui/core").ThemeValueFallback | import("@tamagui/core").SizeTokens | undefined;
|
|
367
|
+
maxWidth?: import("@tamagui/core").ThemeValueFallback | import("@tamagui/core").SizeTokens | undefined;
|
|
368
|
+
minHeight?: import("@tamagui/core").ThemeValueFallback | import("@tamagui/core").SizeTokens | undefined;
|
|
369
|
+
minWidth?: import("@tamagui/core").ThemeValueFallback | import("@tamagui/core").SizeTokens | undefined;
|
|
313
370
|
overflow?: "visible" | "hidden" | "scroll" | undefined;
|
|
314
371
|
padding?: import("@tamagui/core").ThemeValueFallback | import("@tamagui/core").SpaceTokens | undefined;
|
|
315
372
|
paddingBottom?: import("@tamagui/core").ThemeValueFallback | import("@tamagui/core").SpaceTokens | undefined;
|
|
@@ -324,10 +381,10 @@ export declare function useButton(propsIn: ButtonProps, { Text }?: {
|
|
|
324
381
|
right?: import("@tamagui/core").ThemeValueFallback | import("@tamagui/core").SpaceTokens | undefined;
|
|
325
382
|
start?: string | number | undefined;
|
|
326
383
|
top?: import("@tamagui/core").ThemeValueFallback | import("@tamagui/core").SpaceTokens | undefined;
|
|
327
|
-
width?: import("@tamagui/core").
|
|
384
|
+
width?: import("@tamagui/core").ThemeValueFallback | import("@tamagui/core").SizeTokens | undefined;
|
|
328
385
|
zIndex?: import("@tamagui/core").ThemeValueFallback | import("@tamagui/core").ZIndexTokens | undefined;
|
|
329
386
|
direction?: "inherit" | "ltr" | "rtl" | undefined;
|
|
330
|
-
shadowColor?: import("@tamagui/core").
|
|
387
|
+
shadowColor?: import("@tamagui/core").ColorTokens | import("@tamagui/core").ThemeValueFallback | import("react-native").OpaqueColorValue | undefined;
|
|
331
388
|
shadowOffset?: import("@tamagui/core").ThemeValueFallback | {
|
|
332
389
|
width: import("@tamagui/core").SpaceTokens;
|
|
333
390
|
height: import("@tamagui/core").SpaceTokens;
|
|
@@ -336,7 +393,7 @@ export declare function useButton(propsIn: ButtonProps, { Text }?: {
|
|
|
336
393
|
height: number;
|
|
337
394
|
} | undefined;
|
|
338
395
|
shadowOpacity?: number | undefined;
|
|
339
|
-
shadowRadius?: import("@tamagui/core").
|
|
396
|
+
shadowRadius?: import("@tamagui/core").ThemeValueFallback | import("@tamagui/core").SizeTokens | undefined;
|
|
340
397
|
transform?: (import("react-native").PerpectiveTransform | import("react-native").RotateTransform | import("react-native").RotateXTransform | import("react-native").RotateYTransform | import("react-native").RotateZTransform | import("react-native").ScaleTransform | import("react-native").ScaleXTransform | import("react-native").ScaleYTransform | import("react-native").TranslateXTransform | import("react-native").TranslateYTransform | import("react-native").SkewXTransform | import("react-native").SkewYTransform | import("react-native").MatrixTransform)[] | undefined;
|
|
341
398
|
transformMatrix?: number[] | undefined;
|
|
342
399
|
rotation?: number | undefined;
|
|
@@ -365,22 +422,49 @@ export declare function useButton(propsIn: ButtonProps, { Text }?: {
|
|
|
365
422
|
outlineWidth?: import("csstype").Property.OutlineWidth<0 | (string & {})> | undefined;
|
|
366
423
|
tabIndex?: string | number | undefined;
|
|
367
424
|
role?: string | undefined;
|
|
425
|
+
rel?: any;
|
|
426
|
+
download?: any;
|
|
427
|
+
onStartShouldSetResponder?: ((event: import("react-native").GestureResponderEvent) => boolean) | undefined;
|
|
428
|
+
onMoveShouldSetResponder?: ((event: import("react-native").GestureResponderEvent) => boolean) | undefined;
|
|
429
|
+
onResponderEnd?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
|
|
430
|
+
onResponderGrant?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
|
|
431
|
+
onResponderReject?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
|
|
432
|
+
onResponderMove?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
|
|
433
|
+
onResponderRelease?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
|
|
434
|
+
onResponderStart?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
|
|
435
|
+
onResponderTerminationRequest?: ((event: import("react-native").GestureResponderEvent) => boolean) | undefined;
|
|
436
|
+
onResponderTerminate?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
|
|
437
|
+
onStartShouldSetResponderCapture?: ((event: import("react-native").GestureResponderEvent) => boolean) | undefined;
|
|
438
|
+
onMoveShouldSetResponderCapture?: ((event: import("react-native").GestureResponderEvent) => boolean) | undefined;
|
|
439
|
+
dataSet?: Record<string, string | number | null | undefined> | undefined;
|
|
440
|
+
onScrollShouldSetResponder?: unknown;
|
|
441
|
+
onScrollShouldSetResponderCapture?: unknown;
|
|
442
|
+
onSelectionChangeShouldSetResponder?: unknown;
|
|
443
|
+
onSelectionChangeShouldSetResponderCapture?: unknown;
|
|
444
|
+
onLayout?: ((event: import("react-native").LayoutChangeEvent) => void) | undefined;
|
|
445
|
+
href?: string | undefined;
|
|
446
|
+
hrefAttrs?: {
|
|
447
|
+
target?: "top" | "_blank" | "_self" | "_top" | "blank" | "self" | undefined;
|
|
448
|
+
rel?: string | undefined;
|
|
449
|
+
download?: boolean | undefined;
|
|
450
|
+
} | undefined;
|
|
368
451
|
elevation?: import("@tamagui/core").SizeTokens | undefined;
|
|
452
|
+
transparent?: boolean | undefined;
|
|
369
453
|
hoverTheme?: boolean | undefined;
|
|
370
454
|
pressTheme?: boolean | undefined;
|
|
371
455
|
focusTheme?: boolean | undefined;
|
|
372
456
|
circular?: boolean | undefined;
|
|
373
457
|
elevate?: boolean | undefined;
|
|
374
|
-
transparent?: boolean | undefined;
|
|
375
458
|
bordered?: number | boolean | undefined;
|
|
376
459
|
backgrounded?: boolean | undefined;
|
|
377
460
|
radiused?: boolean | undefined;
|
|
378
461
|
padded?: boolean | undefined;
|
|
379
462
|
chromeless?: boolean | "all" | undefined;
|
|
380
463
|
fullscreen?: boolean | undefined;
|
|
464
|
+
defaultStyle?: boolean | undefined;
|
|
381
465
|
size?: import("@tamagui/core").SizeTokens | undefined;
|
|
382
466
|
active?: boolean | undefined;
|
|
383
|
-
hoverStyle?: Partial<Omit<import("react-native").ViewProps, "display" | "children"> & import("@tamagui/core").
|
|
467
|
+
hoverStyle?: Partial<Omit<import("react-native").ViewProps, "display" | "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers> & import("@tamagui/core").ExtendBaseStackProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & import("@tamagui/core/types/reactNativeTypes").RNViewProps & Omit<{
|
|
384
468
|
readonly fullscreen?: boolean | undefined;
|
|
385
469
|
readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
|
|
386
470
|
} & {
|
|
@@ -395,12 +479,13 @@ export declare function useButton(propsIn: ButtonProps, { Text }?: {
|
|
|
395
479
|
readonly bordered?: number | boolean | undefined;
|
|
396
480
|
readonly transparent?: boolean | undefined;
|
|
397
481
|
readonly chromeless?: boolean | "all" | undefined;
|
|
398
|
-
}, "disabled" | "size" | "active"> & {
|
|
482
|
+
}, "disabled" | "size" | "defaultStyle" | "active"> & {
|
|
483
|
+
readonly defaultStyle?: boolean | undefined;
|
|
399
484
|
readonly size?: import("@tamagui/core").SizeTokens | undefined;
|
|
400
485
|
readonly active?: boolean | undefined;
|
|
401
486
|
readonly disabled?: boolean | undefined;
|
|
402
487
|
}> | null | undefined;
|
|
403
|
-
pressStyle?: Partial<Omit<import("react-native").ViewProps, "display" | "children"> & import("@tamagui/core").
|
|
488
|
+
pressStyle?: Partial<Omit<import("react-native").ViewProps, "display" | "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers> & import("@tamagui/core").ExtendBaseStackProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & import("@tamagui/core/types/reactNativeTypes").RNViewProps & Omit<{
|
|
404
489
|
readonly fullscreen?: boolean | undefined;
|
|
405
490
|
readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
|
|
406
491
|
} & {
|
|
@@ -415,12 +500,13 @@ export declare function useButton(propsIn: ButtonProps, { Text }?: {
|
|
|
415
500
|
readonly bordered?: number | boolean | undefined;
|
|
416
501
|
readonly transparent?: boolean | undefined;
|
|
417
502
|
readonly chromeless?: boolean | "all" | undefined;
|
|
418
|
-
}, "disabled" | "size" | "active"> & {
|
|
503
|
+
}, "disabled" | "size" | "defaultStyle" | "active"> & {
|
|
504
|
+
readonly defaultStyle?: boolean | undefined;
|
|
419
505
|
readonly size?: import("@tamagui/core").SizeTokens | undefined;
|
|
420
506
|
readonly active?: boolean | undefined;
|
|
421
507
|
readonly disabled?: boolean | undefined;
|
|
422
508
|
}> | null | undefined;
|
|
423
|
-
focusStyle?: Partial<Omit<import("react-native").ViewProps, "display" | "children"> & import("@tamagui/core").
|
|
509
|
+
focusStyle?: Partial<Omit<import("react-native").ViewProps, "display" | "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers> & import("@tamagui/core").ExtendBaseStackProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & import("@tamagui/core/types/reactNativeTypes").RNViewProps & Omit<{
|
|
424
510
|
readonly fullscreen?: boolean | undefined;
|
|
425
511
|
readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
|
|
426
512
|
} & {
|
|
@@ -435,12 +521,13 @@ export declare function useButton(propsIn: ButtonProps, { Text }?: {
|
|
|
435
521
|
readonly bordered?: number | boolean | undefined;
|
|
436
522
|
readonly transparent?: boolean | undefined;
|
|
437
523
|
readonly chromeless?: boolean | "all" | undefined;
|
|
438
|
-
}, "disabled" | "size" | "active"> & {
|
|
524
|
+
}, "disabled" | "size" | "defaultStyle" | "active"> & {
|
|
525
|
+
readonly defaultStyle?: boolean | undefined;
|
|
439
526
|
readonly size?: import("@tamagui/core").SizeTokens | undefined;
|
|
440
527
|
readonly active?: boolean | undefined;
|
|
441
528
|
readonly disabled?: boolean | undefined;
|
|
442
529
|
}> | null | undefined;
|
|
443
|
-
exitStyle?: Partial<Omit<import("react-native").ViewProps, "display" | "children"> & import("@tamagui/core").
|
|
530
|
+
exitStyle?: Partial<Omit<import("react-native").ViewProps, "display" | "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers> & import("@tamagui/core").ExtendBaseStackProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & import("@tamagui/core/types/reactNativeTypes").RNViewProps & Omit<{
|
|
444
531
|
readonly fullscreen?: boolean | undefined;
|
|
445
532
|
readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
|
|
446
533
|
} & {
|
|
@@ -455,12 +542,13 @@ export declare function useButton(propsIn: ButtonProps, { Text }?: {
|
|
|
455
542
|
readonly bordered?: number | boolean | undefined;
|
|
456
543
|
readonly transparent?: boolean | undefined;
|
|
457
544
|
readonly chromeless?: boolean | "all" | undefined;
|
|
458
|
-
}, "disabled" | "size" | "active"> & {
|
|
545
|
+
}, "disabled" | "size" | "defaultStyle" | "active"> & {
|
|
546
|
+
readonly defaultStyle?: boolean | undefined;
|
|
459
547
|
readonly size?: import("@tamagui/core").SizeTokens | undefined;
|
|
460
548
|
readonly active?: boolean | undefined;
|
|
461
549
|
readonly disabled?: boolean | undefined;
|
|
462
550
|
}> | null | undefined;
|
|
463
|
-
enterStyle?: Partial<Omit<import("react-native").ViewProps, "display" | "children"> & import("@tamagui/core").
|
|
551
|
+
enterStyle?: Partial<Omit<import("react-native").ViewProps, "display" | "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers> & import("@tamagui/core").ExtendBaseStackProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & import("@tamagui/core/types/reactNativeTypes").RNViewProps & Omit<{
|
|
464
552
|
readonly fullscreen?: boolean | undefined;
|
|
465
553
|
readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
|
|
466
554
|
} & {
|
|
@@ -475,99 +563,19 @@ export declare function useButton(propsIn: ButtonProps, { Text }?: {
|
|
|
475
563
|
readonly bordered?: number | boolean | undefined;
|
|
476
564
|
readonly transparent?: boolean | undefined;
|
|
477
565
|
readonly chromeless?: boolean | "all" | undefined;
|
|
478
|
-
}, "disabled" | "size" | "active"> & {
|
|
566
|
+
}, "disabled" | "size" | "defaultStyle" | "active"> & {
|
|
567
|
+
readonly defaultStyle?: boolean | undefined;
|
|
479
568
|
readonly size?: import("@tamagui/core").SizeTokens | undefined;
|
|
480
569
|
readonly active?: boolean | undefined;
|
|
481
570
|
readonly disabled?: boolean | undefined;
|
|
482
571
|
}> | null | undefined;
|
|
483
572
|
themeInverse?: boolean | undefined;
|
|
484
573
|
themeReset?: boolean | undefined;
|
|
574
|
+
/**
|
|
575
|
+
*
|
|
576
|
+
*/
|
|
577
|
+
unstyled?: boolean | undefined;
|
|
485
578
|
};
|
|
486
579
|
};
|
|
487
|
-
export declare const buttonStaticConfig: {
|
|
488
|
-
inlineProps: Set<string>;
|
|
489
|
-
};
|
|
490
|
-
export declare const Button: (props: Omit<Omit<TextParentStyles, "TextComponent"> & Omit<import("react-native").ViewProps, "display" | "children"> & import("@tamagui/core").RNWViewProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & Omit<{
|
|
491
|
-
readonly fullscreen?: boolean | undefined;
|
|
492
|
-
readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
|
|
493
|
-
} & {
|
|
494
|
-
readonly backgrounded?: boolean | undefined;
|
|
495
|
-
readonly radiused?: boolean | undefined;
|
|
496
|
-
readonly hoverTheme?: boolean | undefined;
|
|
497
|
-
readonly pressTheme?: boolean | undefined;
|
|
498
|
-
readonly focusTheme?: boolean | undefined;
|
|
499
|
-
readonly circular?: boolean | undefined;
|
|
500
|
-
readonly padded?: boolean | undefined;
|
|
501
|
-
readonly elevate?: boolean | undefined;
|
|
502
|
-
readonly bordered?: number | boolean | undefined;
|
|
503
|
-
readonly transparent?: boolean | undefined;
|
|
504
|
-
readonly chromeless?: boolean | "all" | undefined;
|
|
505
|
-
}, "disabled" | "size" | "active"> & {
|
|
506
|
-
readonly size?: import("@tamagui/core").SizeTokens | undefined;
|
|
507
|
-
readonly active?: boolean | undefined;
|
|
508
|
-
readonly disabled?: boolean | undefined;
|
|
509
|
-
} & import("@tamagui/core").MediaProps<Partial<Omit<import("react-native").ViewProps, "display" | "children"> & import("@tamagui/core").RNWViewProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & Omit<{
|
|
510
|
-
readonly fullscreen?: boolean | undefined;
|
|
511
|
-
readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
|
|
512
|
-
} & {
|
|
513
|
-
readonly backgrounded?: boolean | undefined;
|
|
514
|
-
readonly radiused?: boolean | undefined;
|
|
515
|
-
readonly hoverTheme?: boolean | undefined;
|
|
516
|
-
readonly pressTheme?: boolean | undefined;
|
|
517
|
-
readonly focusTheme?: boolean | undefined;
|
|
518
|
-
readonly circular?: boolean | undefined;
|
|
519
|
-
readonly padded?: boolean | undefined;
|
|
520
|
-
readonly elevate?: boolean | undefined;
|
|
521
|
-
readonly bordered?: number | boolean | undefined;
|
|
522
|
-
readonly transparent?: boolean | undefined;
|
|
523
|
-
readonly chromeless?: boolean | "all" | undefined;
|
|
524
|
-
}, "disabled" | "size" | "active"> & {
|
|
525
|
-
readonly size?: import("@tamagui/core").SizeTokens | undefined;
|
|
526
|
-
readonly active?: boolean | undefined;
|
|
527
|
-
readonly disabled?: boolean | undefined;
|
|
528
|
-
}>> & import("@tamagui/core").PseudoProps<Partial<Omit<import("react-native").ViewProps, "display" | "children"> & import("@tamagui/core").RNWViewProps & import("@tamagui/core").TamaguiComponentPropsBase & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStylePropsBase>> & Omit<{
|
|
529
|
-
readonly fullscreen?: boolean | undefined;
|
|
530
|
-
readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
|
|
531
|
-
} & {
|
|
532
|
-
readonly backgrounded?: boolean | undefined;
|
|
533
|
-
readonly radiused?: boolean | undefined;
|
|
534
|
-
readonly hoverTheme?: boolean | undefined;
|
|
535
|
-
readonly pressTheme?: boolean | undefined;
|
|
536
|
-
readonly focusTheme?: boolean | undefined;
|
|
537
|
-
readonly circular?: boolean | undefined;
|
|
538
|
-
readonly padded?: boolean | undefined;
|
|
539
|
-
readonly elevate?: boolean | undefined;
|
|
540
|
-
readonly bordered?: number | boolean | undefined;
|
|
541
|
-
readonly transparent?: boolean | undefined;
|
|
542
|
-
readonly chromeless?: boolean | "all" | undefined;
|
|
543
|
-
}, "disabled" | "size" | "active"> & {
|
|
544
|
-
readonly size?: import("@tamagui/core").SizeTokens | undefined;
|
|
545
|
-
readonly active?: boolean | undefined;
|
|
546
|
-
readonly disabled?: boolean | undefined;
|
|
547
|
-
}>> & ThemeableProps & {
|
|
548
|
-
/**
|
|
549
|
-
* add icon before, passes color and size automatically if Component
|
|
550
|
-
*/
|
|
551
|
-
icon?: IconProp | undefined;
|
|
552
|
-
/**
|
|
553
|
-
* add icon after, passes color and size automatically if Component
|
|
554
|
-
*/
|
|
555
|
-
iconAfter?: IconProp | undefined;
|
|
556
|
-
/**
|
|
557
|
-
* adjust icon relative to size
|
|
558
|
-
*/
|
|
559
|
-
/**
|
|
560
|
-
* default: -1
|
|
561
|
-
*/
|
|
562
|
-
scaleIcon?: number | undefined;
|
|
563
|
-
/**
|
|
564
|
-
* make the spacing elements flex
|
|
565
|
-
*/
|
|
566
|
-
spaceFlex?: number | boolean | undefined;
|
|
567
|
-
/**
|
|
568
|
-
* adjust internal space relative to icon size
|
|
569
|
-
*/
|
|
570
|
-
scaleSpace?: number | undefined;
|
|
571
|
-
} & import("react").RefAttributes<TamaguiElement>, "theme" | "themeInverse"> & ThemeableProps) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | null;
|
|
572
580
|
export {};
|
|
573
581
|
//# sourceMappingURL=Button.d.ts.map
|