@react-native-ama/forms 1.0.1 → 1.1.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/dist/hooks/useTextInput.d.ts +19 -15
- package/package.json +4 -5
|
@@ -35,12 +35,12 @@ export declare const useTextInput: ({ onLayout, returnKeyType, onSubmitEditing,
|
|
|
35
35
|
onChangeText?: ((text: string) => void) | undefined;
|
|
36
36
|
onContentSizeChange?: ((e: NativeSyntheticEvent<import("react-native").TextInputContentSizeChangeEventData>) => void) | undefined;
|
|
37
37
|
onEndEditing?: ((e: NativeSyntheticEvent<import("react-native").TextInputEndEditingEventData>) => void) | undefined;
|
|
38
|
+
onPress?: ((e: NativeSyntheticEvent<import("react-native").NativeTouchEvent>) => void) | undefined;
|
|
38
39
|
onPressIn?: ((e: NativeSyntheticEvent<import("react-native").NativeTouchEvent>) => void) | undefined;
|
|
39
40
|
onPressOut?: ((e: NativeSyntheticEvent<import("react-native").NativeTouchEvent>) => void) | undefined;
|
|
40
41
|
onFocus?: ((e: NativeSyntheticEvent<import("react-native").TextInputFocusEventData>) => void) | undefined;
|
|
41
42
|
onSelectionChange?: ((e: NativeSyntheticEvent<import("react-native").TextInputSelectionChangeEventData>) => void) | undefined;
|
|
42
43
|
onSubmitEditing?: ((e: NativeSyntheticEvent<TextInputSubmitEditingEventData>) => void) | undefined;
|
|
43
|
-
onTextInput?: ((e: NativeSyntheticEvent<import("react-native").TextInputTextInputEventData>) => void) | undefined;
|
|
44
44
|
onScroll?: ((e: NativeSyntheticEvent<import("react-native").TextInputScrollEventData>) => void) | undefined;
|
|
45
45
|
onKeyPress?: ((e: NativeSyntheticEvent<import("react-native").TextInputKeyPressEventData>) => void) | undefined;
|
|
46
46
|
placeholder?: string | undefined;
|
|
@@ -61,20 +61,21 @@ export declare const useTextInput: ({ onLayout, returnKeyType, onSubmitEditing,
|
|
|
61
61
|
value?: string | undefined;
|
|
62
62
|
maxFontSizeMultiplier?: number | null | undefined;
|
|
63
63
|
children?: React.ReactNode;
|
|
64
|
-
hitSlop?: import("react-native").Insets | undefined;
|
|
64
|
+
hitSlop?: number | import("react-native").Insets | null | undefined;
|
|
65
65
|
id?: string | undefined;
|
|
66
|
+
needsOffscreenAlphaCompositing?: boolean | undefined;
|
|
66
67
|
onLayout?: ((event: LayoutChangeEvent) => void) | undefined;
|
|
67
68
|
pointerEvents?: "box-none" | "none" | "box-only" | "auto" | undefined;
|
|
68
69
|
removeClippedSubviews?: boolean | undefined;
|
|
69
70
|
nativeID?: string | undefined;
|
|
70
71
|
collapsable?: boolean | undefined;
|
|
71
|
-
|
|
72
|
+
collapsableChildren?: boolean | undefined;
|
|
72
73
|
renderToHardwareTextureAndroid?: boolean | undefined;
|
|
73
74
|
focusable?: boolean | undefined;
|
|
75
|
+
tabIndex?: 0 | -1 | undefined;
|
|
74
76
|
shouldRasterizeIOS?: boolean | undefined;
|
|
75
77
|
isTVSelectable?: boolean | undefined;
|
|
76
78
|
hasTVPreferredFocus?: boolean | undefined;
|
|
77
|
-
tvParallaxProperties?: import("react-native").TVParallaxProperties | undefined;
|
|
78
79
|
tvParallaxShiftDistanceX?: number | undefined;
|
|
79
80
|
tvParallaxShiftDistanceY?: number | undefined;
|
|
80
81
|
tvParallaxTiltAngle?: number | undefined;
|
|
@@ -122,7 +123,6 @@ export declare const useTextInput: ({ onLayout, returnKeyType, onSubmitEditing,
|
|
|
122
123
|
'aria-disabled'?: boolean | undefined;
|
|
123
124
|
'aria-expanded'?: boolean | undefined;
|
|
124
125
|
'aria-selected'?: boolean | undefined;
|
|
125
|
-
'aria-labelledby'?: string | undefined;
|
|
126
126
|
accessibilityHint: string;
|
|
127
127
|
accessibilityValue?: import("react-native").AccessibilityValue | undefined;
|
|
128
128
|
'aria-valuemax'?: number | undefined;
|
|
@@ -132,11 +132,12 @@ export declare const useTextInput: ({ onLayout, returnKeyType, onSubmitEditing,
|
|
|
132
132
|
onAccessibilityAction?: ((event: import("react-native").AccessibilityActionEvent) => void) | undefined;
|
|
133
133
|
importantForAccessibility?: "auto" | "yes" | "no" | "no-hide-descendants" | undefined;
|
|
134
134
|
'aria-hidden'?: boolean | undefined;
|
|
135
|
-
'aria-live'?: "polite" | "assertive" | "off" | undefined;
|
|
136
135
|
'aria-modal'?: boolean | undefined;
|
|
137
136
|
role?: import("react-native").Role | undefined;
|
|
138
|
-
accessibilityLiveRegion?: "none" | "polite" | "assertive" | undefined;
|
|
139
137
|
accessibilityLabelledBy?: string | string[] | undefined;
|
|
138
|
+
'aria-labelledby'?: string | undefined;
|
|
139
|
+
accessibilityLiveRegion?: "none" | "polite" | "assertive" | undefined;
|
|
140
|
+
'aria-live'?: "polite" | "assertive" | "off" | undefined;
|
|
140
141
|
accessibilityElementsHidden?: boolean | undefined;
|
|
141
142
|
accessibilityViewIsModal?: boolean | undefined;
|
|
142
143
|
onAccessibilityEscape?: (() => void) | undefined;
|
|
@@ -158,6 +159,7 @@ export declare const useTextInput: ({ onLayout, returnKeyType, onSubmitEditing,
|
|
|
158
159
|
lineBreakStrategyIOS?: "none" | "standard" | "hangul-word" | "push-out" | undefined;
|
|
159
160
|
smartInsertDelete?: boolean | undefined;
|
|
160
161
|
cursorColor?: import("react-native").ColorValue | null | undefined;
|
|
162
|
+
selectionHandleColor?: import("react-native").ColorValue | null | undefined;
|
|
161
163
|
importantForAutofill?: "auto" | "yes" | "no" | "noExcludeDescendants" | "yesExcludeDescendants" | undefined;
|
|
162
164
|
disableFullscreenUI?: boolean | undefined;
|
|
163
165
|
inlineImageLeft?: string | undefined;
|
|
@@ -203,12 +205,12 @@ export declare const useTextInput: ({ onLayout, returnKeyType, onSubmitEditing,
|
|
|
203
205
|
onChangeText?: ((text: string) => void) | undefined;
|
|
204
206
|
onContentSizeChange?: ((e: NativeSyntheticEvent<import("react-native").TextInputContentSizeChangeEventData>) => void) | undefined;
|
|
205
207
|
onEndEditing?: ((e: NativeSyntheticEvent<import("react-native").TextInputEndEditingEventData>) => void) | undefined;
|
|
208
|
+
onPress?: ((e: NativeSyntheticEvent<import("react-native").NativeTouchEvent>) => void) | undefined;
|
|
206
209
|
onPressIn?: ((e: NativeSyntheticEvent<import("react-native").NativeTouchEvent>) => void) | undefined;
|
|
207
210
|
onPressOut?: ((e: NativeSyntheticEvent<import("react-native").NativeTouchEvent>) => void) | undefined;
|
|
208
211
|
onFocus?: ((e: NativeSyntheticEvent<import("react-native").TextInputFocusEventData>) => void) | undefined;
|
|
209
212
|
onSelectionChange?: ((e: NativeSyntheticEvent<import("react-native").TextInputSelectionChangeEventData>) => void) | undefined;
|
|
210
213
|
onSubmitEditing?: ((e: NativeSyntheticEvent<TextInputSubmitEditingEventData>) => void) | undefined;
|
|
211
|
-
onTextInput?: ((e: NativeSyntheticEvent<import("react-native").TextInputTextInputEventData>) => void) | undefined;
|
|
212
214
|
onScroll?: ((e: NativeSyntheticEvent<import("react-native").TextInputScrollEventData>) => void) | undefined;
|
|
213
215
|
onKeyPress?: ((e: NativeSyntheticEvent<import("react-native").TextInputKeyPressEventData>) => void) | undefined;
|
|
214
216
|
placeholder?: string | undefined;
|
|
@@ -223,27 +225,28 @@ export declare const useTextInput: ({ onLayout, returnKeyType, onSubmitEditing,
|
|
|
223
225
|
end?: number | undefined;
|
|
224
226
|
} | undefined;
|
|
225
227
|
selectionColor?: import("react-native").ColorValue | undefined;
|
|
226
|
-
style?: false | ViewStyle | import("react-native").RegisteredStyle<TextStyle> | import("react-native").RecursiveArray<import("react-native").Falsy | TextStyle | import("react-native").RegisteredStyle<TextStyle>> | null | undefined;
|
|
228
|
+
style?: false | "" | ViewStyle | import("react-native").RegisteredStyle<TextStyle> | import("react-native").RecursiveArray<import("react-native").Falsy | TextStyle | import("react-native").RegisteredStyle<TextStyle>> | null | undefined;
|
|
227
229
|
textAlign?: "center" | "left" | "right" | undefined;
|
|
228
230
|
testID?: string | undefined;
|
|
229
231
|
inputAccessoryViewID?: string | undefined;
|
|
230
232
|
value?: string | undefined;
|
|
231
233
|
maxFontSizeMultiplier?: number | null | undefined;
|
|
232
234
|
children?: React.ReactNode;
|
|
233
|
-
hitSlop?: import("react-native").Insets | undefined;
|
|
235
|
+
hitSlop?: number | import("react-native").Insets | null | undefined;
|
|
234
236
|
id?: string | undefined;
|
|
237
|
+
needsOffscreenAlphaCompositing?: boolean | undefined;
|
|
235
238
|
onLayout?: ((event: LayoutChangeEvent) => void) | undefined;
|
|
236
239
|
pointerEvents?: "box-none" | "none" | "box-only" | "auto" | undefined;
|
|
237
240
|
removeClippedSubviews?: boolean | undefined;
|
|
238
241
|
nativeID?: string | undefined;
|
|
239
242
|
collapsable?: boolean | undefined;
|
|
240
|
-
|
|
243
|
+
collapsableChildren?: boolean | undefined;
|
|
241
244
|
renderToHardwareTextureAndroid?: boolean | undefined;
|
|
242
245
|
focusable?: boolean | undefined;
|
|
246
|
+
tabIndex?: 0 | -1 | undefined;
|
|
243
247
|
shouldRasterizeIOS?: boolean | undefined;
|
|
244
248
|
isTVSelectable?: boolean | undefined;
|
|
245
249
|
hasTVPreferredFocus?: boolean | undefined;
|
|
246
|
-
tvParallaxProperties?: import("react-native").TVParallaxProperties | undefined;
|
|
247
250
|
tvParallaxShiftDistanceX?: number | undefined;
|
|
248
251
|
tvParallaxShiftDistanceY?: number | undefined;
|
|
249
252
|
tvParallaxTiltAngle?: number | undefined;
|
|
@@ -291,7 +294,6 @@ export declare const useTextInput: ({ onLayout, returnKeyType, onSubmitEditing,
|
|
|
291
294
|
'aria-disabled'?: boolean | undefined;
|
|
292
295
|
'aria-expanded'?: boolean | undefined;
|
|
293
296
|
'aria-selected'?: boolean | undefined;
|
|
294
|
-
'aria-labelledby'?: string | undefined;
|
|
295
297
|
accessibilityHint: string;
|
|
296
298
|
accessibilityValue?: import("react-native").AccessibilityValue | undefined;
|
|
297
299
|
'aria-valuemax'?: number | undefined;
|
|
@@ -301,11 +303,12 @@ export declare const useTextInput: ({ onLayout, returnKeyType, onSubmitEditing,
|
|
|
301
303
|
onAccessibilityAction?: ((event: import("react-native").AccessibilityActionEvent) => void) | undefined;
|
|
302
304
|
importantForAccessibility?: "auto" | "yes" | "no" | "no-hide-descendants" | undefined;
|
|
303
305
|
'aria-hidden'?: boolean | undefined;
|
|
304
|
-
'aria-live'?: "polite" | "assertive" | "off" | undefined;
|
|
305
306
|
'aria-modal'?: boolean | undefined;
|
|
306
307
|
role?: import("react-native").Role | undefined;
|
|
307
|
-
accessibilityLiveRegion?: "none" | "polite" | "assertive" | undefined;
|
|
308
308
|
accessibilityLabelledBy?: string | string[] | undefined;
|
|
309
|
+
'aria-labelledby'?: string | undefined;
|
|
310
|
+
accessibilityLiveRegion?: "none" | "polite" | "assertive" | undefined;
|
|
311
|
+
'aria-live'?: "polite" | "assertive" | "off" | undefined;
|
|
309
312
|
accessibilityElementsHidden?: boolean | undefined;
|
|
310
313
|
accessibilityViewIsModal?: boolean | undefined;
|
|
311
314
|
onAccessibilityEscape?: (() => void) | undefined;
|
|
@@ -327,6 +330,7 @@ export declare const useTextInput: ({ onLayout, returnKeyType, onSubmitEditing,
|
|
|
327
330
|
lineBreakStrategyIOS?: "none" | "standard" | "hangul-word" | "push-out" | undefined;
|
|
328
331
|
smartInsertDelete?: boolean | undefined;
|
|
329
332
|
cursorColor?: import("react-native").ColorValue | null | undefined;
|
|
333
|
+
selectionHandleColor?: import("react-native").ColorValue | null | undefined;
|
|
330
334
|
importantForAutofill?: "auto" | "yes" | "no" | "noExcludeDescendants" | "yesExcludeDescendants" | undefined;
|
|
331
335
|
disableFullscreenUI?: boolean | undefined;
|
|
332
336
|
inlineImageLeft?: string | undefined;
|
package/package.json
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-native-ama/forms",
|
|
3
|
-
"version": "1.0
|
|
4
|
-
"private": false,
|
|
3
|
+
"version": "1.1.0",
|
|
5
4
|
"react-native": "src/index",
|
|
6
5
|
"types": "dist/index.d.ts",
|
|
7
6
|
"main": "dist/index.js",
|
|
@@ -24,9 +23,9 @@
|
|
|
24
23
|
"test": "jest"
|
|
25
24
|
},
|
|
26
25
|
"dependencies": {
|
|
27
|
-
"@react-native-ama/core": "~1.0
|
|
28
|
-
"@react-native-ama/internal": "~1.0
|
|
29
|
-
"@react-native-ama/react-native": "~1.0
|
|
26
|
+
"@react-native-ama/core": "~1.1.0",
|
|
27
|
+
"@react-native-ama/internal": "~1.1.0",
|
|
28
|
+
"@react-native-ama/react-native": "~1.1.0"
|
|
30
29
|
},
|
|
31
30
|
"peerDependencies": {
|
|
32
31
|
"react": "*",
|