react-native-external-keyboard 0.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/LICENSE +20 -0
- package/README.md +113 -0
- package/android/Android.mk +45 -0
- package/android/build.gradle +139 -0
- package/android/gradle.properties +5 -0
- package/android/registration.cpp +18 -0
- package/android/src/main/AndroidManifest.xml +4 -0
- package/android/src/main/java/com/externalkeyboard/A11yKeyboardModule.java +46 -0
- package/android/src/main/java/com/externalkeyboard/ExternalKeyboardViewPackage.java +63 -0
- package/android/src/main/java/com/externalkeyboard/events/FocusChangeEvent.java +39 -0
- package/android/src/main/java/com/externalkeyboard/events/KeyPressDownEvent.java +49 -0
- package/android/src/main/java/com/externalkeyboard/events/KeyPressUpEvent.java +49 -0
- package/android/src/main/java/com/externalkeyboard/services/KeyboardKeyPressHandler.java +56 -0
- package/android/src/main/java/com/externalkeyboard/services/KeyboardService.java +52 -0
- package/android/src/main/java/com/externalkeyboard/views/ExternalKeyboardView/ExternalKeyboardView.java +28 -0
- package/android/src/main/java/com/externalkeyboard/views/ExternalKeyboardView/ExternalKeyboardViewManager.java +101 -0
- package/android/src/newarch/A11yKeyboardModuleSpec.java +9 -0
- package/android/src/newarch/ExternalKeyboardViewManagerSpec.java +31 -0
- package/android/src/oldarch/A11yKeyboardModuleSpec.java +15 -0
- package/android/src/oldarch/ExternalKeyboardViewManagerSpec.java +9 -0
- package/ios/ExternalKeyboard.xcodeproj/project.pbxproj +384 -0
- package/ios/ExternalKeyboard.xcodeproj/project.xcworkspace/contents.xcworkspacedata +4 -0
- package/ios/ExternalKeyboard.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
- package/ios/ExternalKeyboard.xcodeproj/project.xcworkspace/xcuserdata/Artur_Kalach.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
- package/ios/ExternalKeyboard.xcodeproj/xcuserdata/Artur_Kalach.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist +24 -0
- package/ios/ExternalKeyboard.xcodeproj/xcuserdata/Artur_Kalach.xcuserdatad/xcschemes/xcschememanagement.plist +14 -0
- package/ios/ExternalKeyboardView/ExternalKeyboardView.h +41 -0
- package/ios/ExternalKeyboardView/ExternalKeyboardView.mm +186 -0
- package/ios/Helpers/FocusWrapper/FocusWrapper.h +32 -0
- package/ios/Helpers/FocusWrapper/FocusWrapper.mm +63 -0
- package/ios/Helpers/KeyboardKeyPressHandler/KeyboardKeyPressHandler.h +27 -0
- package/ios/Helpers/KeyboardKeyPressHandler/KeyboardKeyPressHandler.mm +73 -0
- package/ios/Modules/A11yKeyboardModule/A11yKeyboardModule.h +20 -0
- package/ios/Modules/A11yKeyboardModule/A11yKeyboardModule.mm +86 -0
- package/ios/ViewManagers/ExternalKeyboardViewManager/ExternalKeyboardViewManager.h +16 -0
- package/ios/ViewManagers/ExternalKeyboardViewManager/ExternalKeyboardViewManager.mm +29 -0
- package/lib/commonjs/NativeModules/A11yKeyboardModule/A11yKeyboardModule.js +33 -0
- package/lib/commonjs/NativeModules/A11yKeyboardModule/A11yKeyboardModule.js.map +1 -0
- package/lib/commonjs/NativeModules/A11yKeyboardModule/index.js +13 -0
- package/lib/commonjs/NativeModules/A11yKeyboardModule/index.js.map +1 -0
- package/lib/commonjs/NativeModules/index.js +13 -0
- package/lib/commonjs/NativeModules/index.js.map +1 -0
- package/lib/commonjs/components/KeyboardFocusView/KeyboardFocusView.android.js +41 -0
- package/lib/commonjs/components/KeyboardFocusView/KeyboardFocusView.android.js.map +1 -0
- package/lib/commonjs/components/KeyboardFocusView/KeyboardFocusView.d.js +6 -0
- package/lib/commonjs/components/KeyboardFocusView/KeyboardFocusView.d.js.map +1 -0
- package/lib/commonjs/components/KeyboardFocusView/KeyboardFocusView.ios.js +46 -0
- package/lib/commonjs/components/KeyboardFocusView/KeyboardFocusView.ios.js.map +1 -0
- package/lib/commonjs/components/KeyboardFocusView/hooks/index.js +13 -0
- package/lib/commonjs/components/KeyboardFocusView/hooks/index.js.map +1 -0
- package/lib/commonjs/components/KeyboardFocusView/hooks/useFocusStyle/index.js +13 -0
- package/lib/commonjs/components/KeyboardFocusView/hooks/useFocusStyle/index.js.map +1 -0
- package/lib/commonjs/components/KeyboardFocusView/hooks/useFocusStyle/useFocusStyle.js +33 -0
- package/lib/commonjs/components/KeyboardFocusView/hooks/useFocusStyle/useFocusStyle.js.map +1 -0
- package/lib/commonjs/components/KeyboardFocusView/index.js +13 -0
- package/lib/commonjs/components/KeyboardFocusView/index.js.map +1 -0
- package/lib/commonjs/components/Pressable/Pressable.android.js +76 -0
- package/lib/commonjs/components/Pressable/Pressable.android.js.map +1 -0
- package/lib/commonjs/components/Pressable/Pressable.d.js +6 -0
- package/lib/commonjs/components/Pressable/Pressable.d.js.map +1 -0
- package/lib/commonjs/components/Pressable/Pressable.ios.js +157 -0
- package/lib/commonjs/components/Pressable/Pressable.ios.js.map +1 -0
- package/lib/commonjs/components/Pressable/index.js +13 -0
- package/lib/commonjs/components/Pressable/index.js.map +1 -0
- package/lib/commonjs/components/index.js +20 -0
- package/lib/commonjs/components/index.js.map +1 -0
- package/lib/commonjs/index.js +46 -0
- package/lib/commonjs/index.js.map +1 -0
- package/lib/commonjs/nativeSpec/ExternalKeyboardViewNativeComponent.js +11 -0
- package/lib/commonjs/nativeSpec/ExternalKeyboardViewNativeComponent.js.map +1 -0
- package/lib/commonjs/nativeSpec/NativeKeyboardModule.js +10 -0
- package/lib/commonjs/nativeSpec/NativeKeyboardModule.js.map +1 -0
- package/lib/commonjs/nativeSpec/index.js +21 -0
- package/lib/commonjs/nativeSpec/index.js.map +1 -0
- package/lib/commonjs/services/A11yModule/A11yModule.android.js +22 -0
- package/lib/commonjs/services/A11yModule/A11yModule.android.js.map +1 -0
- package/lib/commonjs/services/A11yModule/A11yModule.d.js +6 -0
- package/lib/commonjs/services/A11yModule/A11yModule.d.js.map +1 -0
- package/lib/commonjs/services/A11yModule/A11yModule.ios.js +28 -0
- package/lib/commonjs/services/A11yModule/A11yModule.ios.js.map +1 -0
- package/lib/commonjs/services/A11yModule/A11yModule.types.js +6 -0
- package/lib/commonjs/services/A11yModule/A11yModule.types.js.map +1 -0
- package/lib/commonjs/services/A11yModule/index.js +13 -0
- package/lib/commonjs/services/A11yModule/index.js.map +1 -0
- package/lib/commonjs/services/index.js +13 -0
- package/lib/commonjs/services/index.js.map +1 -0
- package/lib/commonjs/types/FocusStyle.js +6 -0
- package/lib/commonjs/types/FocusStyle.js.map +1 -0
- package/lib/commonjs/types/KeyboardFocusView.types.js +6 -0
- package/lib/commonjs/types/KeyboardFocusView.types.js.map +1 -0
- package/lib/commonjs/types/index.js +38 -0
- package/lib/commonjs/types/index.js.map +1 -0
- package/lib/module/NativeModules/A11yKeyboardModule/A11yKeyboardModule.js +26 -0
- package/lib/module/NativeModules/A11yKeyboardModule/A11yKeyboardModule.js.map +1 -0
- package/lib/module/NativeModules/A11yKeyboardModule/index.js +2 -0
- package/lib/module/NativeModules/A11yKeyboardModule/index.js.map +1 -0
- package/lib/module/NativeModules/index.js +2 -0
- package/lib/module/NativeModules/index.js.map +1 -0
- package/lib/module/components/KeyboardFocusView/KeyboardFocusView.android.js +33 -0
- package/lib/module/components/KeyboardFocusView/KeyboardFocusView.android.js.map +1 -0
- package/lib/module/components/KeyboardFocusView/KeyboardFocusView.d.js +2 -0
- package/lib/module/components/KeyboardFocusView/KeyboardFocusView.d.js.map +1 -0
- package/lib/module/components/KeyboardFocusView/KeyboardFocusView.ios.js +37 -0
- package/lib/module/components/KeyboardFocusView/KeyboardFocusView.ios.js.map +1 -0
- package/lib/module/components/KeyboardFocusView/hooks/index.js +2 -0
- package/lib/module/components/KeyboardFocusView/hooks/index.js.map +1 -0
- package/lib/module/components/KeyboardFocusView/hooks/useFocusStyle/index.js +2 -0
- package/lib/module/components/KeyboardFocusView/hooks/useFocusStyle/index.js.map +1 -0
- package/lib/module/components/KeyboardFocusView/hooks/useFocusStyle/useFocusStyle.js +26 -0
- package/lib/module/components/KeyboardFocusView/hooks/useFocusStyle/useFocusStyle.js.map +1 -0
- package/lib/module/components/KeyboardFocusView/index.js +2 -0
- package/lib/module/components/KeyboardFocusView/index.js.map +1 -0
- package/lib/module/components/Pressable/Pressable.android.js +70 -0
- package/lib/module/components/Pressable/Pressable.android.js.map +1 -0
- package/lib/module/components/Pressable/Pressable.d.js +2 -0
- package/lib/module/components/Pressable/Pressable.d.js.map +1 -0
- package/lib/module/components/Pressable/Pressable.ios.js +148 -0
- package/lib/module/components/Pressable/Pressable.ios.js.map +1 -0
- package/lib/module/components/Pressable/index.js +2 -0
- package/lib/module/components/Pressable/index.js.map +1 -0
- package/lib/module/components/index.js +3 -0
- package/lib/module/components/index.js.map +1 -0
- package/lib/module/index.js +5 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/nativeSpec/ExternalKeyboardViewNativeComponent.js +3 -0
- package/lib/module/nativeSpec/ExternalKeyboardViewNativeComponent.js.map +1 -0
- package/lib/module/nativeSpec/NativeKeyboardModule.js +3 -0
- package/lib/module/nativeSpec/NativeKeyboardModule.js.map +1 -0
- package/lib/module/nativeSpec/index.js +4 -0
- package/lib/module/nativeSpec/index.js.map +1 -0
- package/lib/module/services/A11yModule/A11yModule.android.js +15 -0
- package/lib/module/services/A11yModule/A11yModule.android.js.map +1 -0
- package/lib/module/services/A11yModule/A11yModule.d.js +2 -0
- package/lib/module/services/A11yModule/A11yModule.d.js.map +1 -0
- package/lib/module/services/A11yModule/A11yModule.ios.js +21 -0
- package/lib/module/services/A11yModule/A11yModule.ios.js.map +1 -0
- package/lib/module/services/A11yModule/A11yModule.types.js +2 -0
- package/lib/module/services/A11yModule/A11yModule.types.js.map +1 -0
- package/lib/module/services/A11yModule/index.js +2 -0
- package/lib/module/services/A11yModule/index.js.map +1 -0
- package/lib/module/services/index.js +2 -0
- package/lib/module/services/index.js.map +1 -0
- package/lib/module/types/FocusStyle.js +2 -0
- package/lib/module/types/FocusStyle.js.map +1 -0
- package/lib/module/types/KeyboardFocusView.types.js +2 -0
- package/lib/module/types/KeyboardFocusView.types.js.map +1 -0
- package/lib/module/types/index.js +3 -0
- package/lib/module/types/index.js.map +1 -0
- package/lib/typescript/NativeModules/A11yKeyboardModule/A11yKeyboardModule.d.ts +5 -0
- package/lib/typescript/NativeModules/A11yKeyboardModule/A11yKeyboardModule.d.ts.map +1 -0
- package/lib/typescript/NativeModules/A11yKeyboardModule/index.d.ts +2 -0
- package/lib/typescript/NativeModules/A11yKeyboardModule/index.d.ts.map +1 -0
- package/lib/typescript/NativeModules/index.d.ts +2 -0
- package/lib/typescript/NativeModules/index.d.ts.map +1 -0
- package/lib/typescript/components/KeyboardFocusView/KeyboardFocusView.android.d.ts +14 -0
- package/lib/typescript/components/KeyboardFocusView/KeyboardFocusView.android.d.ts.map +1 -0
- package/lib/typescript/components/KeyboardFocusView/KeyboardFocusView.ios.d.ts +14 -0
- package/lib/typescript/components/KeyboardFocusView/KeyboardFocusView.ios.d.ts.map +1 -0
- package/lib/typescript/components/KeyboardFocusView/hooks/index.d.ts +2 -0
- package/lib/typescript/components/KeyboardFocusView/hooks/index.d.ts.map +1 -0
- package/lib/typescript/components/KeyboardFocusView/hooks/useFocusStyle/index.d.ts +2 -0
- package/lib/typescript/components/KeyboardFocusView/hooks/useFocusStyle/index.d.ts.map +1 -0
- package/lib/typescript/components/KeyboardFocusView/hooks/useFocusStyle/useFocusStyle.d.ts +8 -0
- package/lib/typescript/components/KeyboardFocusView/hooks/useFocusStyle/useFocusStyle.d.ts.map +1 -0
- package/lib/typescript/components/KeyboardFocusView/index.d.ts +2 -0
- package/lib/typescript/components/KeyboardFocusView/index.d.ts.map +1 -0
- package/lib/typescript/components/Pressable/Pressable.android.d.ts +24 -0
- package/lib/typescript/components/Pressable/Pressable.android.d.ts.map +1 -0
- package/lib/typescript/components/Pressable/Pressable.ios.d.ts +88 -0
- package/lib/typescript/components/Pressable/Pressable.ios.d.ts.map +1 -0
- package/lib/typescript/components/Pressable/index.d.ts +2 -0
- package/lib/typescript/components/Pressable/index.d.ts.map +1 -0
- package/lib/typescript/components/index.d.ts +3 -0
- package/lib/typescript/components/index.d.ts.map +1 -0
- package/lib/typescript/index.d.ts +5 -0
- package/lib/typescript/index.d.ts.map +1 -0
- package/lib/typescript/nativeSpec/ExternalKeyboardViewNativeComponent.d.ts +30 -0
- package/lib/typescript/nativeSpec/ExternalKeyboardViewNativeComponent.d.ts.map +1 -0
- package/lib/typescript/nativeSpec/NativeKeyboardModule.d.ts +8 -0
- package/lib/typescript/nativeSpec/NativeKeyboardModule.d.ts.map +1 -0
- package/lib/typescript/nativeSpec/index.d.ts +5 -0
- package/lib/typescript/nativeSpec/index.d.ts.map +1 -0
- package/lib/typescript/services/A11yModule/A11yModule.android.d.ts +9 -0
- package/lib/typescript/services/A11yModule/A11yModule.android.d.ts.map +1 -0
- package/lib/typescript/services/A11yModule/A11yModule.ios.d.ts +10 -0
- package/lib/typescript/services/A11yModule/A11yModule.ios.d.ts.map +1 -0
- package/lib/typescript/services/A11yModule/A11yModule.types.d.ts +12 -0
- package/lib/typescript/services/A11yModule/A11yModule.types.d.ts.map +1 -0
- package/lib/typescript/services/A11yModule/index.d.ts +2 -0
- package/lib/typescript/services/A11yModule/index.d.ts.map +1 -0
- package/lib/typescript/services/index.d.ts +2 -0
- package/lib/typescript/services/index.d.ts.map +1 -0
- package/lib/typescript/types/FocusStyle.d.ts +6 -0
- package/lib/typescript/types/FocusStyle.d.ts.map +1 -0
- package/lib/typescript/types/KeyboardFocusView.types.d.ts +36 -0
- package/lib/typescript/types/KeyboardFocusView.types.d.ts.map +1 -0
- package/lib/typescript/types/index.d.ts +3 -0
- package/lib/typescript/types/index.d.ts.map +1 -0
- package/package.json +165 -0
- package/react-native-external-keyboard.podspec +36 -0
- package/src/NativeModules/A11yKeyboardModule/A11yKeyboardModule.ts +37 -0
- package/src/NativeModules/A11yKeyboardModule/index.ts +1 -0
- package/src/NativeModules/index.ts +1 -0
- package/src/components/KeyboardFocusView/KeyboardFocusView.android.tsx +41 -0
- package/src/components/KeyboardFocusView/KeyboardFocusView.d.ts +7 -0
- package/src/components/KeyboardFocusView/KeyboardFocusView.ios.tsx +51 -0
- package/src/components/KeyboardFocusView/hooks/index.ts +1 -0
- package/src/components/KeyboardFocusView/hooks/useFocusStyle/index.ts +1 -0
- package/src/components/KeyboardFocusView/hooks/useFocusStyle/useFocusStyle.ts +31 -0
- package/src/components/KeyboardFocusView/index.ts +1 -0
- package/src/components/Pressable/Pressable.android.tsx +95 -0
- package/src/components/Pressable/Pressable.d.ts +7 -0
- package/src/components/Pressable/Pressable.ios.tsx +282 -0
- package/src/components/Pressable/index.ts +1 -0
- package/src/components/index.ts +2 -0
- package/src/index.tsx +5 -0
- package/src/nativeSpec/ExternalKeyboardViewNativeComponent.ts +37 -0
- package/src/nativeSpec/NativeKeyboardModule.ts +9 -0
- package/src/nativeSpec/index.ts +6 -0
- package/src/services/A11yModule/A11yModule.android.ts +20 -0
- package/src/services/A11yModule/A11yModule.d.ts +3 -0
- package/src/services/A11yModule/A11yModule.ios.ts +33 -0
- package/src/services/A11yModule/A11yModule.types.ts +15 -0
- package/src/services/A11yModule/index.ts +1 -0
- package/src/services/index.ts +1 -0
- package/src/types/FocusStyle.ts +10 -0
- package/src/types/KeyboardFocusView.types.ts +43 -0
- package/src/types/index.ts +6 -0
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
import React, { useMemo, useState, useRef, useImperativeHandle } from 'react';
|
|
3
|
+
// @ts-ignore: import from origin pressable
|
|
4
|
+
import { normalizeRect } from 'react-native/Libraries/StyleSheet/Rect';
|
|
5
|
+
// @ts-ignore: import from origin pressable
|
|
6
|
+
import usePressability from 'react-native/Libraries/Pressability/usePressability';
|
|
7
|
+
// @ts-ignore: import from origin pressable
|
|
8
|
+
import useAndroidRippleForView from 'react-native/Libraries/Components/Pressable/useAndroidRippleForView';
|
|
9
|
+
import { KeyboardFocusView } from '../KeyboardFocusView';
|
|
10
|
+
const IOS_SPACE_KEY_CODE = 44;
|
|
11
|
+
export const Pressable = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef((props, forwardedRef) => {
|
|
12
|
+
var _props$accessibilityV, _props$accessibilityV2, _props$accessibilityV3, _props$accessibilityV4;
|
|
13
|
+
const {
|
|
14
|
+
accessibilityState,
|
|
15
|
+
'aria-live': ariaLive,
|
|
16
|
+
android_disableSound,
|
|
17
|
+
android_ripple,
|
|
18
|
+
'aria-busy': ariaBusy,
|
|
19
|
+
'aria-checked': ariaChecked,
|
|
20
|
+
'aria-disabled': ariaDisabled,
|
|
21
|
+
'aria-expanded': ariaExpanded,
|
|
22
|
+
'aria-label': ariaLabel,
|
|
23
|
+
'aria-selected': ariaSelected,
|
|
24
|
+
cancelable,
|
|
25
|
+
children,
|
|
26
|
+
delayHoverIn,
|
|
27
|
+
delayHoverOut,
|
|
28
|
+
delayLongPress,
|
|
29
|
+
disabled,
|
|
30
|
+
focusable,
|
|
31
|
+
onHoverIn,
|
|
32
|
+
onHoverOut,
|
|
33
|
+
onLongPress,
|
|
34
|
+
onPress,
|
|
35
|
+
onPressIn,
|
|
36
|
+
onPressOut,
|
|
37
|
+
pressRetentionOffset,
|
|
38
|
+
style,
|
|
39
|
+
testOnly_pressed,
|
|
40
|
+
unstable_pressDelay,
|
|
41
|
+
canBeFocused,
|
|
42
|
+
onFocusChange,
|
|
43
|
+
...restProps
|
|
44
|
+
} = props;
|
|
45
|
+
const viewRef = useRef(null);
|
|
46
|
+
useImperativeHandle(forwardedRef, () => viewRef.current);
|
|
47
|
+
const hitSlop = normalizeRect(restProps === null || restProps === void 0 ? void 0 : restProps.hitSlop);
|
|
48
|
+
const android_rippleConfig = useAndroidRippleForView(android_ripple, viewRef);
|
|
49
|
+
const [pressed, setPressed] = usePressState(testOnly_pressed === true);
|
|
50
|
+
let _accessibilityState = {
|
|
51
|
+
busy: ariaBusy ?? (accessibilityState === null || accessibilityState === void 0 ? void 0 : accessibilityState.busy),
|
|
52
|
+
checked: ariaChecked ?? (accessibilityState === null || accessibilityState === void 0 ? void 0 : accessibilityState.checked),
|
|
53
|
+
disabled: ariaDisabled ?? (accessibilityState === null || accessibilityState === void 0 ? void 0 : accessibilityState.disabled),
|
|
54
|
+
expanded: ariaExpanded ?? (accessibilityState === null || accessibilityState === void 0 ? void 0 : accessibilityState.expanded),
|
|
55
|
+
selected: ariaSelected ?? (accessibilityState === null || accessibilityState === void 0 ? void 0 : accessibilityState.selected)
|
|
56
|
+
};
|
|
57
|
+
_accessibilityState = disabled != null ? {
|
|
58
|
+
..._accessibilityState,
|
|
59
|
+
disabled
|
|
60
|
+
} : _accessibilityState;
|
|
61
|
+
const accessibilityValue = {
|
|
62
|
+
max: props['aria-valuemax'] ?? ((_props$accessibilityV = props.accessibilityValue) === null || _props$accessibilityV === void 0 ? void 0 : _props$accessibilityV.max),
|
|
63
|
+
min: props['aria-valuemin'] ?? ((_props$accessibilityV2 = props.accessibilityValue) === null || _props$accessibilityV2 === void 0 ? void 0 : _props$accessibilityV2.min),
|
|
64
|
+
now: props['aria-valuenow'] ?? ((_props$accessibilityV3 = props.accessibilityValue) === null || _props$accessibilityV3 === void 0 ? void 0 : _props$accessibilityV3.now),
|
|
65
|
+
text: props['aria-valuetext'] ?? ((_props$accessibilityV4 = props.accessibilityValue) === null || _props$accessibilityV4 === void 0 ? void 0 : _props$accessibilityV4.text)
|
|
66
|
+
};
|
|
67
|
+
const accessibilityLiveRegion = ariaLive === 'off' ? 'none' : ariaLive ?? props.accessibilityLiveRegion;
|
|
68
|
+
const accessibilityLabel = ariaLabel ?? props.accessibilityLabel;
|
|
69
|
+
const restPropsWithDefaults = {
|
|
70
|
+
...restProps,
|
|
71
|
+
...(android_rippleConfig === null || android_rippleConfig === void 0 ? void 0 : android_rippleConfig.viewProps),
|
|
72
|
+
accessibilityState: _accessibilityState,
|
|
73
|
+
accessibilityValue,
|
|
74
|
+
accessibilityViewIsModal: restProps['aria-modal'] ?? restProps.accessibilityViewIsModal,
|
|
75
|
+
accessibilityLiveRegion,
|
|
76
|
+
accessibilityLabel,
|
|
77
|
+
focusable: focusable !== false,
|
|
78
|
+
hitSlop
|
|
79
|
+
};
|
|
80
|
+
const config = useMemo(() => ({
|
|
81
|
+
cancelable,
|
|
82
|
+
disabled,
|
|
83
|
+
hitSlop,
|
|
84
|
+
pressRectOffset: pressRetentionOffset,
|
|
85
|
+
android_disableSound,
|
|
86
|
+
delayHoverIn,
|
|
87
|
+
delayHoverOut,
|
|
88
|
+
delayLongPress,
|
|
89
|
+
delayPressIn: unstable_pressDelay,
|
|
90
|
+
onHoverIn,
|
|
91
|
+
onHoverOut,
|
|
92
|
+
onLongPress,
|
|
93
|
+
onPress,
|
|
94
|
+
onPressIn(event) {
|
|
95
|
+
if (android_rippleConfig != null) {
|
|
96
|
+
android_rippleConfig.onPressIn(event);
|
|
97
|
+
}
|
|
98
|
+
setPressed(true);
|
|
99
|
+
if (onPressIn != null) {
|
|
100
|
+
onPressIn(event);
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
onPressMove: android_rippleConfig === null || android_rippleConfig === void 0 ? void 0 : android_rippleConfig.onPressMove,
|
|
104
|
+
onPressOut(event) {
|
|
105
|
+
if (android_rippleConfig != null) {
|
|
106
|
+
android_rippleConfig.onPressOut(event);
|
|
107
|
+
}
|
|
108
|
+
setPressed(false);
|
|
109
|
+
if (onPressOut != null) {
|
|
110
|
+
onPressOut(event);
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}), [android_disableSound, android_rippleConfig, cancelable, delayHoverIn, delayHoverOut, delayLongPress, disabled, hitSlop, onHoverIn, onHoverOut, onLongPress, onPress, onPressIn, onPressOut, pressRetentionOffset, setPressed, unstable_pressDelay]);
|
|
114
|
+
const eventHandlers = usePressability(config);
|
|
115
|
+
const onKeyUpPress = React.useCallback(e => {
|
|
116
|
+
if (e.nativeEvent.keyCode === IOS_SPACE_KEY_CODE) {
|
|
117
|
+
onPressOut(e);
|
|
118
|
+
if (e.nativeEvent.isLongPress) {
|
|
119
|
+
onLongPress === null || onLongPress === void 0 ? void 0 : onLongPress(e);
|
|
120
|
+
} else {
|
|
121
|
+
onPress === null || onPress === void 0 ? void 0 : onPress(e);
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
}, [onLongPress, onPress, onPressOut]);
|
|
125
|
+
const onKeyDownPress = React.useCallback(e => {
|
|
126
|
+
if (e.nativeEvent.keyCode === IOS_SPACE_KEY_CODE) {
|
|
127
|
+
onPressIn(e);
|
|
128
|
+
}
|
|
129
|
+
}, [onPressIn]);
|
|
130
|
+
return /*#__PURE__*/React.createElement(KeyboardFocusView, _extends({}, restPropsWithDefaults, eventHandlers, {
|
|
131
|
+
canBeFocused: canBeFocused,
|
|
132
|
+
onFocusChange: onFocusChange,
|
|
133
|
+
onKeyUpPress: onKeyUpPress,
|
|
134
|
+
onKeyDownPress: onKeyDownPress,
|
|
135
|
+
ref: viewRef,
|
|
136
|
+
style: typeof style === 'function' ? style({
|
|
137
|
+
pressed
|
|
138
|
+
}) : style,
|
|
139
|
+
collapsable: false
|
|
140
|
+
}), typeof children === 'function' ? children({
|
|
141
|
+
pressed
|
|
142
|
+
}) : children);
|
|
143
|
+
}));
|
|
144
|
+
function usePressState(forcePressed) {
|
|
145
|
+
const [pressed, setPressed] = useState(false);
|
|
146
|
+
return [pressed || forcePressed, setPressed];
|
|
147
|
+
}
|
|
148
|
+
//# sourceMappingURL=Pressable.ios.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","useMemo","useState","useRef","useImperativeHandle","normalizeRect","usePressability","useAndroidRippleForView","KeyboardFocusView","IOS_SPACE_KEY_CODE","Pressable","memo","forwardRef","props","forwardedRef","_props$accessibilityV","_props$accessibilityV2","_props$accessibilityV3","_props$accessibilityV4","accessibilityState","ariaLive","android_disableSound","android_ripple","ariaBusy","ariaChecked","ariaDisabled","ariaExpanded","ariaLabel","ariaSelected","cancelable","children","delayHoverIn","delayHoverOut","delayLongPress","disabled","focusable","onHoverIn","onHoverOut","onLongPress","onPress","onPressIn","onPressOut","pressRetentionOffset","style","testOnly_pressed","unstable_pressDelay","canBeFocused","onFocusChange","restProps","viewRef","current","hitSlop","android_rippleConfig","pressed","setPressed","usePressState","_accessibilityState","busy","checked","expanded","selected","accessibilityValue","max","min","now","text","accessibilityLiveRegion","accessibilityLabel","restPropsWithDefaults","viewProps","accessibilityViewIsModal","config","pressRectOffset","delayPressIn","event","onPressMove","eventHandlers","onKeyUpPress","useCallback","e","nativeEvent","keyCode","isLongPress","onKeyDownPress","createElement","_extends","ref","collapsable","forcePressed"],"sourceRoot":"../../../../src","sources":["components/Pressable/Pressable.ios.tsx"],"mappings":";AAAA,OAAOA,KAAK,IAAIC,OAAO,EAAEC,QAAQ,EAAEC,MAAM,EAAEC,mBAAmB,QAAQ,OAAO;AAG7E;AACA,SAASC,aAAa,QAAQ,wCAAwC;AACtE;AACA,OAAOC,eAAe,MAAM,qDAAqD;AACjF;AACA,OAAOC,uBAAuB,MAAM,qEAAqE;AAEzG,SAASC,iBAAiB,QAAQ,sBAAsB;AAoFxD,MAAMC,kBAAkB,GAAG,EAAE;AAE7B,OAAO,MAAMC,SAAS,gBAAGV,KAAK,CAACW,IAAI,eACjCX,KAAK,CAACY,UAAU,CAAc,CAACC,KAAY,EAAEC,YAAY,KAAK;EAAA,IAAAC,qBAAA,EAAAC,sBAAA,EAAAC,sBAAA,EAAAC,sBAAA;EAC5D,MAAM;IACJC,kBAAkB;IAClB,WAAW,EAAEC,QAAQ;IACrBC,oBAAoB;IACpBC,cAAc;IACd,WAAW,EAAEC,QAAQ;IACrB,cAAc,EAAEC,WAAW;IAC3B,eAAe,EAAEC,YAAY;IAC7B,eAAe,EA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version":3,"names":["Pressable"],"sourceRoot":"../../../../src","sources":["components/Pressable/index.ts"],"mappings":"AAAA,SAASA,SAAS,QAAQ,aAAa"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["KeyboardFocusView","Pressable"],"sourceRoot":"../../../src","sources":["components/index.ts"],"mappings":"AAAA,SAASA,iBAAiB,QAAQ,qBAAqB;AACvD,SAASC,SAAS,QAAQ,aAAa"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["A11yKeyboardModule","ExternalKeyboardView","KeyPress","KeyboardFocusView","Pressable","A11yModule"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":"AAAA,SAASA,kBAAkB,QAAQ,iBAAiB;AACpD,SAASC,oBAAoB,EAAEC,QAAQ,QAAQ,cAAc;AAE7D,SAASC,iBAAiB,EAAEC,SAAS,QAAQ,cAAc;AAC3D,SAASC,UAAU,QAAQ,YAAY"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["codegenNativeComponent"],"sourceRoot":"../../../src","sources":["nativeSpec/ExternalKeyboardViewNativeComponent.ts"],"mappings":"AAAA,OAAOA,sBAAsB,MAAM,yDAAyD;AAkC5F,eAAeA,sBAAsB,CACnC,sBACF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["TurboModuleRegistry","get"],"sourceRoot":"../../../src","sources":["nativeSpec/NativeKeyboardModule.ts"],"mappings":"AACA,SAASA,mBAAmB,QAAQ,cAAc;AAOlD,eAAeA,mBAAmB,CAACC,GAAG,CAAO,oBAAoB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["ExternalKeyboardView","NativeKeyboardModule"],"sourceRoot":"../../../src","sources":["nativeSpec/index.ts"],"mappings":"AAAA,OAAOA,oBAAoB,MAAM,uCAAuC;AACxE,OAAOC,oBAAoB,MAAM,wBAAwB;AAIzD,SAASD,oBAAoB,EAAEC,oBAAoB"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { findNodeHandle, InteractionManager } from 'react-native';
|
|
2
|
+
import { A11yKeyboardModule } from '../../NativeModules';
|
|
3
|
+
class A11yAndroidImpl {
|
|
4
|
+
setKeyboardFocus(ref) {
|
|
5
|
+
const tag = findNodeHandle(ref.current);
|
|
6
|
+
if (tag) {
|
|
7
|
+
InteractionManager.runAfterInteractions(() => {
|
|
8
|
+
A11yKeyboardModule.setKeyboardFocus(tag);
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
setPreferredKeyboardFocus = () => {};
|
|
13
|
+
}
|
|
14
|
+
export const A11yModule = new A11yAndroidImpl();
|
|
15
|
+
//# sourceMappingURL=A11yModule.android.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["findNodeHandle","InteractionManager","A11yKeyboardModule","A11yAndroidImpl","setKeyboardFocus","ref","tag","current","runAfterInteractions","setPreferredKeyboardFocus","A11yModule"],"sourceRoot":"../../../../src","sources":["services/A11yModule/A11yModule.android.ts"],"mappings":"AACA,SAASA,cAAc,EAAEC,kBAAkB,QAAQ,cAAc;AAGjE,SAASC,kBAAkB,QAAQ,qBAAqB;AAExD,MAAMC,eAAe,CAAwB;EAC3CC,gBAAgBA,CAACC,GAAqC,EAAE;IACtD,MAAMC,GAAG,GAAGN,cAAc,CAACK,GAAG,CAACE,OAAO,CAAC;IACvC,IAAID,GAAG,EAAE;MACPL,kBAAkB,CAACO,oBAAoB,CAAC,MAAM;QAC5CN,kBAAkB,CAACE,gBAAgB,CAACE,GAAG,CAAC;MAC1C,CAAC,CAAC;IACJ;EACF;EAEAG,yBAAyB,GAAGA,CAAA,KAAM,CAAC,CAAC;AACtC;AAEA,OAAO,MAAMC,UAAU,GAAG,IAAIP,eAAe,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["services/A11yModule/A11yModule.d.ts"],"mappings":""}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { findNodeHandle } from 'react-native';
|
|
2
|
+
import { A11yKeyboardModule } from '../../NativeModules';
|
|
3
|
+
class A11yModuleIOSImpl {
|
|
4
|
+
_currentFocusedTag = null;
|
|
5
|
+
set currentFocusedTag(value) {
|
|
6
|
+
this._currentFocusedTag = value;
|
|
7
|
+
}
|
|
8
|
+
setPreferredKeyboardFocus = (tag, targetTag) => {
|
|
9
|
+
if (Number.isInteger(tag) && Number.isInteger(targetTag)) {
|
|
10
|
+
A11yKeyboardModule.setPreferredKeyboardFocus(tag, targetTag);
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
setKeyboardFocus = ref => {
|
|
14
|
+
const tag = findNodeHandle(ref.current);
|
|
15
|
+
if (this._currentFocusedTag && tag && Number.isInteger(this._currentFocusedTag) && Number.isInteger(tag)) {
|
|
16
|
+
A11yKeyboardModule.setKeyboardFocus(this._currentFocusedTag, tag);
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
export const A11yModule = new A11yModuleIOSImpl();
|
|
21
|
+
//# sourceMappingURL=A11yModule.ios.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["findNodeHandle","A11yKeyboardModule","A11yModuleIOSImpl","_currentFocusedTag","currentFocusedTag","value","setPreferredKeyboardFocus","tag","targetTag","Number","isInteger","setKeyboardFocus","ref","current","A11yModule"],"sourceRoot":"../../../../src","sources":["services/A11yModule/A11yModule.ios.ts"],"mappings":"AAAA,SAASA,cAAc,QAAQ,cAAc;AAG7C,SAASC,kBAAkB,QAAQ,qBAAqB;AAExD,MAAMC,iBAAiB,CAAwB;EACrCC,kBAAkB,GAAkB,IAAI;EAEhD,IAAIC,iBAAiBA,CAACC,KAAa,EAAE;IACnC,IAAI,CAACF,kBAAkB,GAAGE,KAAK;EACjC;EAEAC,yBAAyB,GAAGA,CAACC,GAAW,EAAEC,SAAiB,KAAK;IAC9D,IAAIC,MAAM,CAACC,SAAS,CAACH,GAAG,CAAC,IAAIE,MAAM,CAACC,SAAS,CAACF,SAAS,CAAC,EAAE;MACxDP,kBAAkB,CAACK,yBAAyB,CAACC,GAAG,EAAEC,SAAS,CAAC;IAC9D;EACF,CAAC;EAEDG,gBAAgB,GAAIC,GAAe,IAAK;IACtC,MAAML,GAAG,GAAGP,cAAc,CAACY,GAAG,CAACC,OAAO,CAAC;IAEvC,IACE,IAAI,CAACV,kBAAkB,IACvBI,GAAG,IACHE,MAAM,CAACC,SAAS,CAAC,IAAI,CAACP,kBAAkB,CAAC,IACzCM,MAAM,CAACC,SAAS,CAACH,GAAG,CAAC,EACrB;MACAN,kBAAkB,CAACU,gBAAgB,CAAC,IAAI,CAACR,kBAAkB,EAAEI,GAAG,CAAC;IACnE;EACF,CAAC;AACH;AAEA,OAAO,MAAMO,UAAU,GAAG,IAAIZ,iBAAiB,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["services/A11yModule/A11yModule.types.ts"],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["A11yModule"],"sourceRoot":"../../../../src","sources":["services/A11yModule/index.ts"],"mappings":"AAAA,SAASA,UAAU,QAAQ,cAAc"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["A11yModule"],"sourceRoot":"../../../src","sources":["services/index.ts"],"mappings":"AAAA,SAASA,UAAU,QAAQ,cAAc"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["types/FocusStyle.ts"],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["types/KeyboardFocusView.types.ts"],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["KeyboardFocusViewProps","OnFocusChangeFn","OnKeyPressFn","FocusStateCallbackType","FocusStyle"],"sourceRoot":"../../../src","sources":["types/index.ts"],"mappings":"AAAA,SACEA,sBAAsB,EACtBC,eAAe,EACfC,YAAY,QACP,2BAA2B;AAClC,SAASC,sBAAsB,EAAEC,UAAU,QAAQ,cAAc"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"A11yKeyboardModule.d.ts","sourceRoot":"","sources":["../../../../src/NativeModules/A11yKeyboardModule/A11yKeyboardModule.ts"],"names":[],"mappings":"AAiCA,eAAO,MAAM,kBAAkB;kCARM,MAAM;2CAIG,MAAM,WAAW,MAAM;CAOpE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/NativeModules/A11yKeyboardModule/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/NativeModules/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { View } from 'react-native';
|
|
3
|
+
export declare const KeyboardFocusView: React.ForwardRefExoticComponent<import("react-native").ViewProps & {
|
|
4
|
+
onFocusChange?: import("../../types").OnFocusChangeFn | undefined;
|
|
5
|
+
onKeyUpPress?: import("../../types").OnKeyPressFn | undefined;
|
|
6
|
+
onKeyDownPress?: import("../../types").OnKeyPressFn | undefined;
|
|
7
|
+
canBeFocused?: boolean | undefined;
|
|
8
|
+
} & {
|
|
9
|
+
focusStyle?: import("../../types").FocusStyle;
|
|
10
|
+
onPress?: ((e: import("../../types/KeyboardFocusView.types").OnKeyPress | import("react-native").GestureResponderEvent) => void) | undefined;
|
|
11
|
+
onLongPress?: ((e: import("../../types/KeyboardFocusView.types").OnKeyPress | import("react-native").GestureResponderEvent) => void) | undefined;
|
|
12
|
+
withView?: boolean | undefined;
|
|
13
|
+
} & React.RefAttributes<View>>;
|
|
14
|
+
//# sourceMappingURL=KeyboardFocusView.android.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"KeyboardFocusView.android.d.ts","sourceRoot":"","sources":["../../../../src/components/KeyboardFocusView/KeyboardFocusView.android.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAKpC,eAAO,MAAM,iBAAiB;;;;;;;;;;8BAkC7B,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { View } from 'react-native';
|
|
3
|
+
export declare const KeyboardFocusView: React.ForwardRefExoticComponent<import("react-native").ViewProps & {
|
|
4
|
+
onFocusChange?: import("../../types").OnFocusChangeFn | undefined;
|
|
5
|
+
onKeyUpPress?: import("../../types").OnKeyPressFn | undefined;
|
|
6
|
+
onKeyDownPress?: import("../../types").OnKeyPressFn | undefined;
|
|
7
|
+
canBeFocused?: boolean | undefined;
|
|
8
|
+
} & {
|
|
9
|
+
focusStyle?: import("../../types").FocusStyle;
|
|
10
|
+
onPress?: ((e: import("../../types/KeyboardFocusView.types").OnKeyPress | import("react-native").GestureResponderEvent) => void) | undefined;
|
|
11
|
+
onLongPress?: ((e: import("../../types/KeyboardFocusView.types").OnKeyPress | import("react-native").GestureResponderEvent) => void) | undefined;
|
|
12
|
+
withView?: boolean | undefined;
|
|
13
|
+
} & React.RefAttributes<View>>;
|
|
14
|
+
//# sourceMappingURL=KeyboardFocusView.ios.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"KeyboardFocusView.ios.d.ts","sourceRoot":"","sources":["../../../../src/components/KeyboardFocusView/KeyboardFocusView.ios.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsB,MAAM,OAAO,CAAC;AAC3C,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAOzC,eAAO,MAAM,iBAAiB;;;;;;;;;;8BA0C7B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/KeyboardFocusView/hooks/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/KeyboardFocusView/hooks/useFocusStyle/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { FocusStyle, OnFocusChangeFn } from 'src/types';
|
|
2
|
+
export declare const useFocusStyle: (focusStyle?: FocusStyle, onFocusChange?: OnFocusChangeFn) => {
|
|
3
|
+
onFocusChangeHandler: OnFocusChangeFn;
|
|
4
|
+
fStyle: import("react-native").StyleProp<import("react-native").ViewStyle> | {
|
|
5
|
+
backgroundColor: string;
|
|
6
|
+
};
|
|
7
|
+
};
|
|
8
|
+
//# sourceMappingURL=useFocusStyle.d.ts.map
|
package/lib/typescript/components/KeyboardFocusView/hooks/useFocusStyle/useFocusStyle.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useFocusStyle.d.ts","sourceRoot":"","sources":["../../../../../../src/components/KeyboardFocusView/hooks/useFocusStyle/useFocusStyle.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAE7D,eAAO,MAAM,aAAa,gBACX,UAAU,kBACP,eAAe;;;;;CAoBhC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/KeyboardFocusView/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*
|
|
7
|
+
* @flow strict-local
|
|
8
|
+
* @format
|
|
9
|
+
*/
|
|
10
|
+
import React from 'react';
|
|
11
|
+
import { GestureResponderEvent, View, PressableProps } from 'react-native';
|
|
12
|
+
import type { OnKeyPressFn } from '../../types';
|
|
13
|
+
export declare const Pressable: React.ForwardRefExoticComponent<PressableProps & import("react-native").ViewProps & {
|
|
14
|
+
onFocusChange?: import("../../types").OnFocusChangeFn | undefined;
|
|
15
|
+
onKeyUpPress?: OnKeyPressFn | undefined;
|
|
16
|
+
onKeyDownPress?: OnKeyPressFn | undefined;
|
|
17
|
+
canBeFocused?: boolean | undefined;
|
|
18
|
+
} & {
|
|
19
|
+
focusStyle?: import("../../types").FocusStyle;
|
|
20
|
+
onPress?: ((e: import("../../types/KeyboardFocusView.types").OnKeyPress | GestureResponderEvent) => void) | undefined;
|
|
21
|
+
onLongPress?: ((e: import("../../types/KeyboardFocusView.types").OnKeyPress | GestureResponderEvent) => void) | undefined;
|
|
22
|
+
withView?: boolean | undefined;
|
|
23
|
+
} & React.RefAttributes<View>>;
|
|
24
|
+
//# sourceMappingURL=Pressable.android.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Pressable.android.d.ts","sourceRoot":"","sources":["../../../../src/components/Pressable/Pressable.android.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EACL,qBAAqB,EAErB,IAAI,EACJ,cAAc,EACf,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EAA0B,YAAY,EAAE,MAAM,aAAa,CAAC;AAKxE,eAAO,MAAM,SAAS;;;;;;;;;;8BAwErB,CAAC"}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { GestureResponderEvent, PressableProps, View } from 'react-native';
|
|
3
|
+
import type { OnKeyPressFn } from '../../types';
|
|
4
|
+
export type SyntheticEvent<T> = {
|
|
5
|
+
bubbles?: boolean;
|
|
6
|
+
cancelable?: boolean;
|
|
7
|
+
currentTarget: number | unknown;
|
|
8
|
+
defaultPrevented?: boolean;
|
|
9
|
+
dispatchConfig: {
|
|
10
|
+
registrationName: string;
|
|
11
|
+
};
|
|
12
|
+
eventPhase?: number;
|
|
13
|
+
preventDefault: () => void;
|
|
14
|
+
isDefaultPrevented: () => boolean;
|
|
15
|
+
stopPropagation: () => void;
|
|
16
|
+
isPropagationStopped: () => boolean;
|
|
17
|
+
isTrusted?: boolean;
|
|
18
|
+
nativeEvent: T;
|
|
19
|
+
persist: () => void;
|
|
20
|
+
target?: number | unknown;
|
|
21
|
+
timeStamp: number;
|
|
22
|
+
type?: string;
|
|
23
|
+
};
|
|
24
|
+
export type ResponderSyntheticEvent<T> = SyntheticEvent<T> & {
|
|
25
|
+
touchHistory: {
|
|
26
|
+
indexOfSingleActiveTouch: number;
|
|
27
|
+
mostRecentTimeStamp: number;
|
|
28
|
+
numberActiveTouches: number;
|
|
29
|
+
touchBank: Array<{
|
|
30
|
+
touchActive: boolean;
|
|
31
|
+
startPageX: number;
|
|
32
|
+
startPageY: number;
|
|
33
|
+
startTimeStamp: number;
|
|
34
|
+
currentPageX: number;
|
|
35
|
+
currentPageY: number;
|
|
36
|
+
currentTimeStamp: number;
|
|
37
|
+
previousPageX: number;
|
|
38
|
+
previousPageY: number;
|
|
39
|
+
previousTimeStamp: number;
|
|
40
|
+
}>;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
export type PressEvent = ResponderSyntheticEvent<{
|
|
44
|
+
force?: number;
|
|
45
|
+
identifier: number;
|
|
46
|
+
locationX: number;
|
|
47
|
+
locationY: number;
|
|
48
|
+
pageX: number;
|
|
49
|
+
pageY: number;
|
|
50
|
+
target?: number;
|
|
51
|
+
timestamp: number;
|
|
52
|
+
}>;
|
|
53
|
+
type CombinedPressEvent = GestureResponderEvent | PressEvent;
|
|
54
|
+
type NAProps = {
|
|
55
|
+
'onPressOut': (event: CombinedPressEvent) => void;
|
|
56
|
+
'onPressIn': (event: CombinedPressEvent) => void;
|
|
57
|
+
'aria-live'?: 'polite' | 'assertive' | 'off';
|
|
58
|
+
'aria-busy'?: boolean;
|
|
59
|
+
'aria-checked'?: boolean;
|
|
60
|
+
'aria-disabled'?: boolean;
|
|
61
|
+
'aria-expanded'?: boolean;
|
|
62
|
+
'aria-label'?: string;
|
|
63
|
+
'aria-selected'?: boolean;
|
|
64
|
+
'aria-valuemax'?: number;
|
|
65
|
+
'aria-valuemin'?: number;
|
|
66
|
+
'aria-valuenow'?: number;
|
|
67
|
+
'aria-modal'?: boolean;
|
|
68
|
+
'aria-valuetext'?: string;
|
|
69
|
+
};
|
|
70
|
+
export declare const Pressable: React.MemoExoticComponent<React.ForwardRefExoticComponent<PressableProps & NAProps & import("react-native").ViewProps & {
|
|
71
|
+
onFocusChange?: import("../../types").OnFocusChangeFn | undefined;
|
|
72
|
+
onKeyUpPress?: OnKeyPressFn | undefined;
|
|
73
|
+
onKeyDownPress?: OnKeyPressFn | undefined;
|
|
74
|
+
canBeFocused?: boolean | undefined;
|
|
75
|
+
} & {
|
|
76
|
+
focusStyle?: import("../../types").FocusStyle;
|
|
77
|
+
onPress?: ((e: import("../../types/KeyboardFocusView.types").OnKeyPress | GestureResponderEvent) => void) | undefined;
|
|
78
|
+
onLongPress?: ((e: import("../../types/KeyboardFocusView.types").OnKeyPress | GestureResponderEvent) => void) | undefined;
|
|
79
|
+
withView?: boolean | undefined;
|
|
80
|
+
} & {
|
|
81
|
+
unstable_pressDelay?: number | undefined;
|
|
82
|
+
delayHoverIn: unknown;
|
|
83
|
+
delayHoverOut: unknown;
|
|
84
|
+
onHoverIn: unknown;
|
|
85
|
+
onHoverOut: unknown;
|
|
86
|
+
} & React.RefAttributes<View>>>;
|
|
87
|
+
export {};
|
|
88
|
+
//# sourceMappingURL=Pressable.ios.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Pressable.ios.d.ts","sourceRoot":"","sources":["../../../../src/components/Pressable/Pressable.ios.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyD,MAAM,OAAO,CAAC;AAC9E,OAAO,KAAK,EAAE,qBAAqB,EAAE,cAAc,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAUhF,OAAO,KAAK,EAAE,YAAY,EAA0B,MAAM,aAAa,CAAC;AAExE,MAAM,MAAM,cAAc,CAAC,CAAC,IAAI;IAC9B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,aAAa,EAAE,MAAM,GAAG,OAAO,CAAC;IAChC,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,cAAc,EAAE;QACd,gBAAgB,EAAE,MAAM,CAAC;KAC1B,CAAC;IACF,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE,MAAM,IAAI,CAAC;IAC3B,kBAAkB,EAAE,MAAM,OAAO,CAAC;IAClC,eAAe,EAAE,MAAM,IAAI,CAAC;IAC5B,oBAAoB,EAAE,MAAM,OAAO,CAAC;IACpC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,EAAE,CAAC,CAAC;IACf,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IAC1B,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,MA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AO,CAAC;IAC1B,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B,CAAC;AAcF,eAAO,MAAM,SAAS;;;;;;;;;;;;kBARJ,OAAO;mBACN,OAAO;eACX,OAAO;gBACN,OAAO;+BAyLtB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Pressable/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,EAAE,oBAAoB,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAE9D,OAAO,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC5D,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/// <reference types="react-native/types/modules/codegen" />
|
|
2
|
+
/// <reference types="react-native/codegen" />
|
|
3
|
+
import type { ViewProps } from 'react-native';
|
|
4
|
+
import type { BubblingEventHandler, Int32 } from 'react-native/Libraries/Types/CodegenTypes';
|
|
5
|
+
export type FocusChange = Readonly<{
|
|
6
|
+
isFocused: boolean;
|
|
7
|
+
}>;
|
|
8
|
+
export type EnterPress = Readonly<{
|
|
9
|
+
isShiftPressed: boolean;
|
|
10
|
+
isAltPressed: boolean;
|
|
11
|
+
isEnterPress: boolean;
|
|
12
|
+
}>;
|
|
13
|
+
export type KeyPress = Readonly<{
|
|
14
|
+
keyCode: Int32;
|
|
15
|
+
isLongPress: boolean;
|
|
16
|
+
isAltPressed: boolean;
|
|
17
|
+
isShiftPressed: boolean;
|
|
18
|
+
isCtrlPressed: boolean;
|
|
19
|
+
isCapsLockOn: boolean;
|
|
20
|
+
hasNoModifiers: boolean;
|
|
21
|
+
}>;
|
|
22
|
+
export interface ExternalKeyboardNativeProps extends ViewProps {
|
|
23
|
+
onFocusChange?: BubblingEventHandler<FocusChange>;
|
|
24
|
+
onKeyUpPress?: BubblingEventHandler<KeyPress>;
|
|
25
|
+
onKeyDownPress?: BubblingEventHandler<KeyPress>;
|
|
26
|
+
canBeFocused?: boolean;
|
|
27
|
+
}
|
|
28
|
+
declare const _default: import("react-native/Libraries/Utilities/codegenNativeComponent").NativeComponentType<ExternalKeyboardNativeProps>;
|
|
29
|
+
export default _default;
|
|
30
|
+
//# sourceMappingURL=ExternalKeyboardViewNativeComponent.d.ts.map
|