@tamagui/button 1.2.4 → 1.2.6
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/package.json +6 -6
- package/types/Button.d.ts +54 -60
- package/types/Button.d.ts.map +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/button",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.6",
|
|
4
4
|
"sideEffects": [
|
|
5
5
|
"*.css"
|
|
6
6
|
],
|
|
@@ -29,17 +29,17 @@
|
|
|
29
29
|
}
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@tamagui/core": "^1.2.
|
|
33
|
-
"@tamagui/font-size": "^1.2.
|
|
34
|
-
"@tamagui/get-button-sized": "^1.2.
|
|
35
|
-
"@tamagui/helpers-tamagui": "^1.2.
|
|
32
|
+
"@tamagui/core": "^1.2.6",
|
|
33
|
+
"@tamagui/font-size": "^1.2.6",
|
|
34
|
+
"@tamagui/get-button-sized": "^1.2.6",
|
|
35
|
+
"@tamagui/helpers-tamagui": "^1.2.6"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
38
|
"react": "*",
|
|
39
39
|
"react-dom": "*"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@tamagui/build": "^1.2.
|
|
42
|
+
"@tamagui/build": "^1.2.6",
|
|
43
43
|
"react": "^18.2.0",
|
|
44
44
|
"react-dom": "^18.2.0",
|
|
45
45
|
"vitest": "^0.26.3"
|
package/types/Button.d.ts
CHANGED
|
@@ -34,7 +34,7 @@ export type ButtonProps = Omit<TextParentStyles, 'TextComponent'> & GetProps<typ
|
|
|
34
34
|
*/
|
|
35
35
|
unstyled?: boolean;
|
|
36
36
|
};
|
|
37
|
-
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<{
|
|
38
38
|
readonly fullscreen?: boolean | undefined;
|
|
39
39
|
readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
|
|
40
40
|
} & {
|
|
@@ -54,7 +54,7 @@ export declare const ButtonFrame: import("@tamagui/core").TamaguiComponent<Omit<
|
|
|
54
54
|
readonly size?: import("@tamagui/core").SizeTokens | undefined;
|
|
55
55
|
readonly active?: boolean | undefined;
|
|
56
56
|
readonly disabled?: boolean | undefined;
|
|
57
|
-
} & 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<{
|
|
58
58
|
readonly fullscreen?: boolean | undefined;
|
|
59
59
|
readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
|
|
60
60
|
} & {
|
|
@@ -74,7 +74,7 @@ export declare const ButtonFrame: import("@tamagui/core").TamaguiComponent<Omit<
|
|
|
74
74
|
readonly size?: import("@tamagui/core").SizeTokens | undefined;
|
|
75
75
|
readonly active?: boolean | undefined;
|
|
76
76
|
readonly disabled?: boolean | undefined;
|
|
77
|
-
}>> & 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<{
|
|
78
78
|
readonly fullscreen?: boolean | undefined;
|
|
79
79
|
readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
|
|
80
80
|
} & {
|
|
@@ -94,7 +94,7 @@ export declare const ButtonFrame: import("@tamagui/core").TamaguiComponent<Omit<
|
|
|
94
94
|
readonly size?: import("@tamagui/core").SizeTokens | undefined;
|
|
95
95
|
readonly active?: boolean | undefined;
|
|
96
96
|
readonly disabled?: boolean | undefined;
|
|
97
|
-
}>>, 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, {
|
|
98
98
|
readonly fullscreen?: boolean | undefined;
|
|
99
99
|
readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
|
|
100
100
|
} & {
|
|
@@ -115,19 +115,19 @@ export declare const ButtonFrame: import("@tamagui/core").TamaguiComponent<Omit<
|
|
|
115
115
|
readonly active?: boolean | undefined;
|
|
116
116
|
readonly disabled?: boolean | undefined;
|
|
117
117
|
}>;
|
|
118
|
-
export declare const ButtonText: import("@tamagui/core").TamaguiComponent<Omit<import("react-native").TextProps, "children"> & import("@tamagui/core").
|
|
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<{
|
|
119
119
|
readonly size?: import("@tamagui/core").FontSizeTokens | undefined;
|
|
120
120
|
}, "defaultStyle"> & {
|
|
121
121
|
defaultStyle?: boolean | undefined;
|
|
122
|
-
} & import("@tamagui/core").MediaProps<Partial<Omit<import("react-native").TextProps, "children"> & import("@tamagui/core").
|
|
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<{
|
|
123
123
|
readonly size?: import("@tamagui/core").FontSizeTokens | undefined;
|
|
124
124
|
}, "defaultStyle"> & {
|
|
125
125
|
defaultStyle?: boolean | undefined;
|
|
126
|
-
}>> & import("@tamagui/core").PseudoProps<Partial<Omit<import("react-native").TextProps, "children"> & import("@tamagui/core").
|
|
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<{
|
|
127
127
|
readonly size?: import("@tamagui/core").FontSizeTokens | undefined;
|
|
128
128
|
}, "defaultStyle"> & {
|
|
129
129
|
defaultStyle?: boolean | undefined;
|
|
130
|
-
}>>, TamaguiElement, import("@tamagui/core").
|
|
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, {
|
|
131
131
|
readonly size?: import("@tamagui/core").FontSizeTokens | undefined;
|
|
132
132
|
} & {
|
|
133
133
|
defaultStyle?: boolean | undefined;
|
|
@@ -135,7 +135,7 @@ export declare const ButtonText: import("@tamagui/core").TamaguiComponent<Omit<i
|
|
|
135
135
|
export declare const buttonStaticConfig: {
|
|
136
136
|
inlineProps: Set<string>;
|
|
137
137
|
};
|
|
138
|
-
export declare const Button: (props: Omit<Omit<TextParentStyles, "TextComponent"> & Omit<import("react-native").ViewProps, "display" | "children"> & import("@tamagui/core").
|
|
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
139
|
readonly fullscreen?: boolean | undefined;
|
|
140
140
|
readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
|
|
141
141
|
} & {
|
|
@@ -155,7 +155,7 @@ export declare const Button: (props: Omit<Omit<TextParentStyles, "TextComponent"
|
|
|
155
155
|
readonly size?: import("@tamagui/core").SizeTokens | undefined;
|
|
156
156
|
readonly active?: boolean | undefined;
|
|
157
157
|
readonly disabled?: boolean | undefined;
|
|
158
|
-
} & import("@tamagui/core").MediaProps<Partial<Omit<import("react-native").ViewProps, "display" | "children"> & import("@tamagui/core").
|
|
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
159
|
readonly fullscreen?: boolean | undefined;
|
|
160
160
|
readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
|
|
161
161
|
} & {
|
|
@@ -175,7 +175,7 @@ export declare const Button: (props: Omit<Omit<TextParentStyles, "TextComponent"
|
|
|
175
175
|
readonly size?: import("@tamagui/core").SizeTokens | undefined;
|
|
176
176
|
readonly active?: boolean | undefined;
|
|
177
177
|
readonly disabled?: boolean | undefined;
|
|
178
|
-
}>> & import("@tamagui/core").PseudoProps<Partial<Omit<import("react-native").ViewProps, "display" | "children"> & import("@tamagui/core").
|
|
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
179
|
readonly fullscreen?: boolean | undefined;
|
|
180
180
|
readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
|
|
181
181
|
} & {
|
|
@@ -231,7 +231,6 @@ export declare function useButton(propsIn: ButtonProps, { Text }?: {
|
|
|
231
231
|
props: {
|
|
232
232
|
children: string | number | boolean | JSX.Element | import("react").ReactFragment | null | undefined;
|
|
233
233
|
hitSlop?: import("react-native").Insets | (import("react-native").Insets & number) | undefined;
|
|
234
|
-
onLayout?: ((event: import("react-native").LayoutChangeEvent) => void) | undefined;
|
|
235
234
|
pointerEvents?: "box-none" | "none" | "box-only" | "auto" | undefined;
|
|
236
235
|
removeClippedSubviews?: boolean | undefined;
|
|
237
236
|
style?: import("react-native").StyleProp<import("react-native").ViewStyle>;
|
|
@@ -249,18 +248,6 @@ export declare function useButton(propsIn: ButtonProps, { Text }?: {
|
|
|
249
248
|
tvParallaxShiftDistanceY?: number | undefined;
|
|
250
249
|
tvParallaxTiltAngle?: number | undefined;
|
|
251
250
|
tvParallaxMagnification?: number | undefined;
|
|
252
|
-
onStartShouldSetResponder?: ((event: import("react-native").GestureResponderEvent) => boolean) | undefined;
|
|
253
|
-
onMoveShouldSetResponder?: ((event: import("react-native").GestureResponderEvent) => boolean) | undefined;
|
|
254
|
-
onResponderEnd?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
|
|
255
|
-
onResponderGrant?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
|
|
256
|
-
onResponderReject?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
|
|
257
|
-
onResponderMove?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
|
|
258
|
-
onResponderRelease?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
|
|
259
|
-
onResponderStart?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
|
|
260
|
-
onResponderTerminationRequest?: ((event: import("react-native").GestureResponderEvent) => boolean) | undefined;
|
|
261
|
-
onResponderTerminate?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
|
|
262
|
-
onStartShouldSetResponderCapture?: ((event: import("react-native").GestureResponderEvent) => boolean) | undefined;
|
|
263
|
-
onMoveShouldSetResponderCapture?: ((event: import("react-native").GestureResponderEvent) => boolean) | undefined;
|
|
264
251
|
onTouchStart?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
|
|
265
252
|
onTouchMove?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
|
|
266
253
|
onTouchEnd?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
|
|
@@ -284,11 +271,7 @@ export declare function useButton(propsIn: ButtonProps, { Text }?: {
|
|
|
284
271
|
label?: string | undefined;
|
|
285
272
|
}>[] | undefined;
|
|
286
273
|
accessibilityLabel?: string | undefined;
|
|
287
|
-
accessibilityRole?: "
|
|
288
|
-
* adjust icon relative to size
|
|
289
|
-
*
|
|
290
|
-
* @default 1
|
|
291
|
-
*/
|
|
274
|
+
accessibilityRole?: import("react-native").AccessibilityRole | undefined;
|
|
292
275
|
accessibilityState?: import("react-native").AccessibilityState | undefined;
|
|
293
276
|
accessibilityHint?: string | undefined;
|
|
294
277
|
accessibilityValue?: import("react-native").AccessibilityValue | undefined;
|
|
@@ -303,34 +286,13 @@ export declare function useButton(propsIn: ButtonProps, { Text }?: {
|
|
|
303
286
|
onAccessibilityTap?: (() => void) | undefined;
|
|
304
287
|
onMagicTap?: (() => void) | undefined;
|
|
305
288
|
accessibilityIgnoresInvertColors?: boolean | undefined;
|
|
306
|
-
|
|
307
|
-
target?: any;
|
|
308
|
-
rel?: any;
|
|
309
|
-
download?: any;
|
|
310
|
-
href?: string | undefined;
|
|
311
|
-
hrefAttrs?: {
|
|
312
|
-
target?: "top" | "_blank" | "_self" | "_top" | "blank" | "self" | undefined;
|
|
313
|
-
rel?: string | undefined;
|
|
314
|
-
download?: boolean | undefined;
|
|
315
|
-
} | undefined;
|
|
316
|
-
onMouseDown?: (((event: import("react").MouseEvent<HTMLDivElement, MouseEvent>) => void) & import("react").MouseEventHandler<HTMLDivElement>) | undefined;
|
|
317
|
-
onMouseUp?: ((event: import("react").MouseEvent<HTMLDivElement, MouseEvent>) => void) | undefined;
|
|
318
|
-
onMouseEnter?: (((event: import("react").MouseEvent<HTMLDivElement, MouseEvent>) => void) & import("react").MouseEventHandler<HTMLDivElement>) | undefined;
|
|
319
|
-
onMouseLeave?: (((event: import("react").MouseEvent<HTMLDivElement, MouseEvent>) => void) & import("react").MouseEventHandler<HTMLDivElement>) | undefined;
|
|
320
|
-
onFocus?: ((event: import("react").FocusEvent<HTMLDivElement, Element>) => void) | undefined;
|
|
321
|
-
onScroll?: ((event: import("react").UIEvent<HTMLDivElement, UIEvent>) => void) | undefined;
|
|
322
|
-
onScrollShouldSetResponder?: unknown;
|
|
323
|
-
onScrollShouldSetResponderCapture?: unknown;
|
|
324
|
-
onSelectionChangeShouldSetResponder?: unknown;
|
|
325
|
-
onSelectionChangeShouldSetResponderCapture?: unknown;
|
|
289
|
+
target?: string | undefined;
|
|
326
290
|
asChild?: boolean | undefined;
|
|
327
291
|
spaceDirection?: import("@tamagui/core").SpaceDirection | undefined;
|
|
328
292
|
dangerouslySetInnerHTML?: {
|
|
329
293
|
__html: string;
|
|
330
294
|
} | undefined;
|
|
331
|
-
animation?: import("@tamagui/core").AnimationProp | null | undefined;
|
|
332
|
-
* adjust internal space relative to icon size
|
|
333
|
-
*/
|
|
295
|
+
animation?: import("@tamagui/core").AnimationProp | null | undefined;
|
|
334
296
|
animateOnly?: string[] | undefined;
|
|
335
297
|
debug?: boolean | "verbose" | undefined;
|
|
336
298
|
disabled?: boolean | undefined;
|
|
@@ -340,11 +302,17 @@ export declare function useButton(propsIn: ButtonProps, { Text }?: {
|
|
|
340
302
|
tag: string | undefined;
|
|
341
303
|
componentName?: string | undefined;
|
|
342
304
|
forceStyle?: "focus" | "hover" | "press" | undefined;
|
|
343
|
-
onHoverIn?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
344
|
-
onHoverOut?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
345
305
|
onPress?: ((event: import("react-native").GestureResponderEvent) => void) | null | undefined;
|
|
346
306
|
onPressIn?: ((event: import("react-native").GestureResponderEvent) => void) | null | undefined;
|
|
347
307
|
onPressOut?: ((event: import("react-native").GestureResponderEvent) => void) | null | undefined;
|
|
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;
|
|
348
316
|
backgroundColor?: import("@tamagui/core").ColorTokens | import("@tamagui/core").ThemeValueFallback | import("react-native").OpaqueColorValue | undefined;
|
|
349
317
|
borderBottomColor?: import("@tamagui/core").ColorTokens | import("@tamagui/core").ThemeValueFallback | import("react-native").OpaqueColorValue | undefined;
|
|
350
318
|
borderBottomEndRadius?: import("@tamagui/core").ThemeValueFallback | import("@tamagui/core").RadiusTokens | undefined;
|
|
@@ -454,13 +422,39 @@ export declare function useButton(propsIn: ButtonProps, { Text }?: {
|
|
|
454
422
|
outlineWidth?: import("csstype").Property.OutlineWidth<0 | (string & {})> | undefined;
|
|
455
423
|
tabIndex?: string | number | undefined;
|
|
456
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;
|
|
457
451
|
elevation?: import("@tamagui/core").SizeTokens | undefined;
|
|
452
|
+
transparent?: boolean | undefined;
|
|
458
453
|
hoverTheme?: boolean | undefined;
|
|
459
454
|
pressTheme?: boolean | undefined;
|
|
460
455
|
focusTheme?: boolean | undefined;
|
|
461
456
|
circular?: boolean | undefined;
|
|
462
457
|
elevate?: boolean | undefined;
|
|
463
|
-
transparent?: boolean | undefined;
|
|
464
458
|
bordered?: number | boolean | undefined;
|
|
465
459
|
backgrounded?: boolean | undefined;
|
|
466
460
|
radiused?: boolean | undefined;
|
|
@@ -470,7 +464,7 @@ export declare function useButton(propsIn: ButtonProps, { Text }?: {
|
|
|
470
464
|
defaultStyle?: boolean | undefined;
|
|
471
465
|
size?: import("@tamagui/core").SizeTokens | undefined;
|
|
472
466
|
active?: boolean | undefined;
|
|
473
|
-
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<{
|
|
474
468
|
readonly fullscreen?: boolean | undefined;
|
|
475
469
|
readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
|
|
476
470
|
} & {
|
|
@@ -491,7 +485,7 @@ export declare function useButton(propsIn: ButtonProps, { Text }?: {
|
|
|
491
485
|
readonly active?: boolean | undefined;
|
|
492
486
|
readonly disabled?: boolean | undefined;
|
|
493
487
|
}> | null | undefined;
|
|
494
|
-
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<{
|
|
495
489
|
readonly fullscreen?: boolean | undefined;
|
|
496
490
|
readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
|
|
497
491
|
} & {
|
|
@@ -512,7 +506,7 @@ export declare function useButton(propsIn: ButtonProps, { Text }?: {
|
|
|
512
506
|
readonly active?: boolean | undefined;
|
|
513
507
|
readonly disabled?: boolean | undefined;
|
|
514
508
|
}> | null | undefined;
|
|
515
|
-
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<{
|
|
516
510
|
readonly fullscreen?: boolean | undefined;
|
|
517
511
|
readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
|
|
518
512
|
} & {
|
|
@@ -533,7 +527,7 @@ export declare function useButton(propsIn: ButtonProps, { Text }?: {
|
|
|
533
527
|
readonly active?: boolean | undefined;
|
|
534
528
|
readonly disabled?: boolean | undefined;
|
|
535
529
|
}> | null | undefined;
|
|
536
|
-
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<{
|
|
537
531
|
readonly fullscreen?: boolean | undefined;
|
|
538
532
|
readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
|
|
539
533
|
} & {
|
|
@@ -554,7 +548,7 @@ export declare function useButton(propsIn: ButtonProps, { Text }?: {
|
|
|
554
548
|
readonly active?: boolean | undefined;
|
|
555
549
|
readonly disabled?: boolean | undefined;
|
|
556
550
|
}> | null | undefined;
|
|
557
|
-
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<{
|
|
558
552
|
readonly fullscreen?: boolean | undefined;
|
|
559
553
|
readonly elevation?: import("@tamagui/core").SizeTokens | undefined;
|
|
560
554
|
} & {
|
package/types/Button.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../src/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,QAAQ,EACR,cAAc,EACd,cAAc,EAOf,MAAM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