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,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.KeyboardFocusView = void 0;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
var _useFocusStyle = require("./hooks/useFocusStyle");
|
|
10
|
+
var _nativeSpec = require("../../nativeSpec");
|
|
11
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
12
|
+
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); }
|
|
13
|
+
const KeyboardFocusView = /*#__PURE__*/_react.default.forwardRef((_ref, ref) => {
|
|
14
|
+
let {
|
|
15
|
+
canBeFocused = true,
|
|
16
|
+
onFocusChange,
|
|
17
|
+
focusStyle,
|
|
18
|
+
children,
|
|
19
|
+
style,
|
|
20
|
+
withView = true,
|
|
21
|
+
onKeyUpPress,
|
|
22
|
+
onKeyDownPress,
|
|
23
|
+
...props
|
|
24
|
+
} = _ref;
|
|
25
|
+
const {
|
|
26
|
+
fStyle,
|
|
27
|
+
onFocusChangeHandler
|
|
28
|
+
} = (0, _useFocusStyle.useFocusStyle)(focusStyle, onFocusChange);
|
|
29
|
+
return /*#__PURE__*/_react.default.createElement(_nativeSpec.ExternalKeyboardView, _extends({
|
|
30
|
+
onFocusChange: onFocusChangeHandler,
|
|
31
|
+
style: [style, fStyle],
|
|
32
|
+
canBeFocused: canBeFocused,
|
|
33
|
+
ref: ref,
|
|
34
|
+
onKeyUpPress: onKeyUpPress,
|
|
35
|
+
onKeyDownPress: onKeyDownPress
|
|
36
|
+
}, props), withView ? /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
37
|
+
accessible: true
|
|
38
|
+
}, children) : children);
|
|
39
|
+
});
|
|
40
|
+
exports.KeyboardFocusView = KeyboardFocusView;
|
|
41
|
+
//# sourceMappingURL=KeyboardFocusView.android.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_useFocusStyle","_nativeSpec","obj","__esModule","default","_extends","Object","assign","bind","target","i","arguments","length","source","key","prototype","hasOwnProperty","call","apply","KeyboardFocusView","React","forwardRef","_ref","ref","canBeFocused","onFocusChange","focusStyle","children","style","withView","onKeyUpPress","onKeyDownPress","props","fStyle","onFocusChangeHandler","useFocusStyle","createElement","ExternalKeyboardView","View","accessible","exports"],"sourceRoot":"../../../../src","sources":["components/KeyboardFocusView/KeyboardFocusView.android.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,cAAA,GAAAF,OAAA;AACA,IAAAG,WAAA,GAAAH,OAAA;AAAwD,SAAAD,uBAAAK,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAAA,SAAAG,SAAA,IAAAA,QAAA,GAAAC,MAAA,CAAAC,MAAA,GAAAD,MAAA,CAAAC,MAAA,CAAAC,IAAA,eAAAC,MAAA,aAAAC,CAAA,MAAAA,CAAA,GAAAC,SAAA,CAAAC,MAAA,EAAAF,CAAA,UAAAG,MAAA,GAAAF,SAAA,CAAAD,CAAA,YAAAI,GAAA,IAAAD,MAAA,QAAAP,MAAA,CAAAS,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAJ,MAAA,EAAAC,GAAA,KAAAL,MAAA,CAAAK,GAAA,IAAAD,MAAA,CAAAC,GAAA,gBAAAL,MAAA,YAAAJ,QAAA,CAAAa,KAAA,OAAAP,SAAA;AAGjD,MAAMQ,iBAAiB,gBAAGC,cAAK,CAACC,UAAU,CAC/C,CAAAC,IAAA,EAYEC,GAAG,KACA;EAAA,IAZH;IACEC,YAAY,GAAG,IAAI;IACnBC,aAAa;IACbC,UAAU;IACVC,QAAQ;IACRC,KAAK;IACLC,QAAQ,GAAG,IAAI;IACfC,YAAY;IACZC,cAAc;IACd,GAAGC;EACL,CAAC,GAAAV,IAAA;EAGD,MAAM;IAAEW,MAAM;IAAEC;EAAqB,CAAC,GAAG,IAAAC,4BAAa,EACpDT,UAAU,EACVD,aACF,CAAC;EAED,oBACE7B,MAAA,CAAAQ,OAAA,CAAAgC,aAAA,CAACnC,WAAA,CAAAoC,oBAAoB,EAAAhC,QAAA;IACnBoB,aAAa,EAAES,oBAAqB;IACpCN,KAAK,EAAE,CAACA,KAAK,EAAEK,MAAM,CAAE;IACvBT,YAAY,EAAEA,YAAa;IAC3BD,GAAG,EAAEA,GAAI;IACTO,YAAY,EAAEA,YAAa;IAC3BC,cAAc,EAAEA;EAAe,GAC3BC,KAAK,GAERH,QAAQ,gBAAGjC,MAAA,CAAAQ,OAAA,CAAAgC,aAAA,CAACrC,YAAA,CAAAuC,IAAI;IAACC,UAAU;EAAA,GAAEZ,QAAe,CAAC,GAAGA,QAC7B,CAAC;AAE3B,CACF,CAAC;AAACa,OAAA,CAAArB,iBAAA,GAAAA,iBAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["components/KeyboardFocusView/KeyboardFocusView.d.ts"],"mappings":""}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.KeyboardFocusView = void 0;
|
|
7
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
+
var _nativeSpec = require("../../nativeSpec");
|
|
9
|
+
var _services = require("../../services");
|
|
10
|
+
var _hooks = require("./hooks");
|
|
11
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
12
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
13
|
+
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); }
|
|
14
|
+
const KeyboardFocusView = /*#__PURE__*/_react.default.forwardRef((_ref, ref) => {
|
|
15
|
+
let {
|
|
16
|
+
onFocusChange,
|
|
17
|
+
style,
|
|
18
|
+
focusStyle,
|
|
19
|
+
canBeFocused = true,
|
|
20
|
+
onKeyUpPress,
|
|
21
|
+
onKeyDownPress,
|
|
22
|
+
...props
|
|
23
|
+
} = _ref;
|
|
24
|
+
const setCurrentFocusTag = (0, _react.useCallback)(e => {
|
|
25
|
+
var _e$nativeEvent;
|
|
26
|
+
_services.A11yModule.currentFocusedTag = (e === null || e === void 0 ? void 0 : (_e$nativeEvent = e.nativeEvent) === null || _e$nativeEvent === void 0 ? void 0 : _e$nativeEvent.target) || undefined;
|
|
27
|
+
}, []);
|
|
28
|
+
const onFocus = (0, _react.useCallback)(e => {
|
|
29
|
+
setCurrentFocusTag(e);
|
|
30
|
+
onFocusChange === null || onFocusChange === void 0 ? void 0 : onFocusChange(e);
|
|
31
|
+
}, [onFocusChange, setCurrentFocusTag]);
|
|
32
|
+
const {
|
|
33
|
+
fStyle,
|
|
34
|
+
onFocusChangeHandler
|
|
35
|
+
} = (0, _hooks.useFocusStyle)(focusStyle, onFocus);
|
|
36
|
+
return /*#__PURE__*/_react.default.createElement(_nativeSpec.ExternalKeyboardView, _extends({
|
|
37
|
+
ref: ref,
|
|
38
|
+
style: [style, fStyle],
|
|
39
|
+
canBeFocused: canBeFocused,
|
|
40
|
+
onKeyUpPress: onKeyUpPress,
|
|
41
|
+
onKeyDownPress: onKeyDownPress,
|
|
42
|
+
onFocusChange: onFocusChangeHandler
|
|
43
|
+
}, props));
|
|
44
|
+
});
|
|
45
|
+
exports.KeyboardFocusView = KeyboardFocusView;
|
|
46
|
+
//# sourceMappingURL=KeyboardFocusView.ios.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_nativeSpec","_services","_hooks","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","default","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","_extends","assign","bind","target","i","arguments","length","source","apply","KeyboardFocusView","React","forwardRef","_ref","ref","onFocusChange","style","focusStyle","canBeFocused","onKeyUpPress","onKeyDownPress","props","setCurrentFocusTag","useCallback","e","_e$nativeEvent","A11yModule","currentFocusedTag","nativeEvent","undefined","onFocus","fStyle","onFocusChangeHandler","useFocusStyle","createElement","ExternalKeyboardView","exports"],"sourceRoot":"../../../../src","sources":["components/KeyboardFocusView/KeyboardFocusView.ios.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAEA,IAAAC,WAAA,GAAAD,OAAA;AAEA,IAAAE,SAAA,GAAAF,OAAA;AAEA,IAAAG,MAAA,GAAAH,OAAA;AAAwC,SAAAI,yBAAAC,WAAA,eAAAC,OAAA,kCAAAC,iBAAA,OAAAD,OAAA,QAAAE,gBAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,WAAA,WAAAA,WAAA,GAAAG,gBAAA,GAAAD,iBAAA,KAAAF,WAAA;AAAA,SAAAN,wBAAAU,GAAA,EAAAJ,WAAA,SAAAA,WAAA,IAAAI,GAAA,IAAAA,GAAA,CAAAC,UAAA,WAAAD,GAAA,QA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perty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "useFocusStyle", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _useFocusStyle.useFocusStyle;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
var _useFocusStyle = require("./useFocusStyle");
|
|
13
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_useFocusStyle","require"],"sourceRoot":"../../../../../src","sources":["components/KeyboardFocusView/hooks/index.ts"],"mappings":";;;;;;;;;;;AAAA,IAAAA,cAAA,GAAAC,OAAA"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "useFocusStyle", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _useFocusStyle.useFocusStyle;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
var _useFocusStyle = require("./useFocusStyle");
|
|
13
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_useFocusStyle","require"],"sourceRoot":"../../../../../../src","sources":["components/KeyboardFocusView/hooks/useFocusStyle/index.ts"],"mappings":";;;;;;;;;;;AAAA,IAAAA,cAAA,GAAAC,OAAA"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.useFocusStyle = void 0;
|
|
7
|
+
var _react = require("react");
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
const useFocusStyle = (focusStyle, onFocusChange) => {
|
|
10
|
+
const [focused, setFocusStatus] = (0, _react.useState)(false);
|
|
11
|
+
const onFocusChangeHandler = event => {
|
|
12
|
+
setFocusStatus(event.nativeEvent.isFocused);
|
|
13
|
+
onFocusChange === null || onFocusChange === void 0 ? void 0 : onFocusChange(event);
|
|
14
|
+
};
|
|
15
|
+
const fStyle = (0, _react.useMemo)(() => {
|
|
16
|
+
if (!focusStyle) return focused ? styles.defaultHighlight : undefined;
|
|
17
|
+
const specificStyle = typeof focusStyle === 'function' ? focusStyle({
|
|
18
|
+
focused
|
|
19
|
+
}) : focusStyle;
|
|
20
|
+
return focused ? specificStyle : undefined;
|
|
21
|
+
}, [focused, focusStyle]);
|
|
22
|
+
return {
|
|
23
|
+
onFocusChangeHandler,
|
|
24
|
+
fStyle
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
exports.useFocusStyle = useFocusStyle;
|
|
28
|
+
const styles = _reactNative.StyleSheet.create({
|
|
29
|
+
defaultHighlight: {
|
|
30
|
+
backgroundColor: '#d8e2d9'
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
//# sourceMappingURL=useFocusStyle.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","require","_reactNative","useFocusStyle","focusStyle","onFocusChange","focused","setFocusStatus","useState","onFocusChangeHandler","event","nativeEvent","isFocused","fStyle","useMemo","styles","defaultHighlight","undefined","specificStyle","exports","StyleSheet","create","backgroundColor"],"sourceRoot":"../../../../../../src","sources":["components/KeyboardFocusView/hooks/useFocusStyle/useFocusStyle.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAGO,MAAME,aAAa,GAAGA,CAC3BC,UAAuB,EACvBC,aAA+B,KAC5B;EACH,MAAM,CAACC,OAAO,EAAEC,cAAc,CAAC,GAAG,IAAAC,eAAQ,EAAC,KAAK,CAAC;EAEjD,MAAMC,oBAAqC,GAAIC,KAAK,IAAK;IACvDH,cAAc,CAACG,KAAK,CAACC,WAAW,CAACC,SAAS,CAAC;IAC3CP,aAAa,aAAbA,aAAa,uBAAbA,aAAa,CAAGK,KAAK,CAAC;EACxB,CAAC;EAED,MAAMG,MAAM,GAAG,IAAAC,cAAO,EAAC,MAAM;IAC3B,IAAI,CAACV,UAAU,EAAE,OAAOE,OAAO,GAAGS,MAAM,CAACC,gBAAgB,GAAGC,SAAS;IACrE,MAAMC,aAAa,GACjB,OAAOd,UAAU,KAAK,UAAU,GAAGA,UAAU,CAAC;MAAEE;IAAQ,CAAC,CAAC,GAAGF,UAAU;IACzE,OAAOE,OAAO,GAAGY,aAAa,GAAGD,SAAS;EAC5C,CAAC,EAAE,CAACX,OAAO,EAAEF,UAAU,CAAC,CAAC;EAEzB,OAAO;IACLK,oBAAoB;IACpBI;EACF,CAAC;AACH,CAAC;AAACM,OAAA,CAAAhB,aAAA,GAAAA,aAAA;AAEF,MAAMY,MAAM,GAAGK,uBAAU,CAACC,MAAM,CAAC;EAC/BL,gBAAgB,EAAE;IAAEM,eAAe,EAAE;EAAU;AACjD,CAAC,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "KeyboardFocusView", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _KeyboardFocusView.KeyboardFocusView;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
var _KeyboardFocusView = require("./KeyboardFocusView");
|
|
13
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_KeyboardFocusView","require"],"sourceRoot":"../../../../src","sources":["components/KeyboardFocusView/index.ts"],"mappings":";;;;;;;;;;;AAAA,IAAAA,kBAAA,GAAAC,OAAA"}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.Pressable = void 0;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
var _KeyboardFocusView = require("../KeyboardFocusView");
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
+
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); } /**
|
|
12
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
13
|
+
*
|
|
14
|
+
* This source code is licensed under the MIT license found in the
|
|
15
|
+
* LICENSE file in the root directory of this source tree.
|
|
16
|
+
*
|
|
17
|
+
*
|
|
18
|
+
* @format
|
|
19
|
+
*/
|
|
20
|
+
const ANDROID_SPACE_KEY_CODE = 62;
|
|
21
|
+
const Pressable = /*#__PURE__*/_react.default.forwardRef((_ref, ref) => {
|
|
22
|
+
let {
|
|
23
|
+
canBeFocused,
|
|
24
|
+
focusStyle,
|
|
25
|
+
style,
|
|
26
|
+
onFocusChange,
|
|
27
|
+
onPress,
|
|
28
|
+
onLongPress,
|
|
29
|
+
onKeyDownPress,
|
|
30
|
+
onPressOut,
|
|
31
|
+
onPressIn,
|
|
32
|
+
...props
|
|
33
|
+
} = _ref;
|
|
34
|
+
const onKeyUpPressHandler = _react.default.useCallback(e => {
|
|
35
|
+
const {
|
|
36
|
+
nativeEvent: {
|
|
37
|
+
keyCode,
|
|
38
|
+
isLongPress
|
|
39
|
+
}
|
|
40
|
+
} = e;
|
|
41
|
+
if (keyCode === ANDROID_SPACE_KEY_CODE) {
|
|
42
|
+
onPressOut === null || onPressOut === void 0 ? void 0 : onPressOut(e);
|
|
43
|
+
if (isLongPress) {
|
|
44
|
+
onLongPress === null || onLongPress === void 0 ? void 0 : onLongPress(e);
|
|
45
|
+
} else {
|
|
46
|
+
onPress === null || onPress === void 0 ? void 0 : onPress(e);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}, [onLongPress, onPress, onPressOut]);
|
|
50
|
+
const onPressablePressHandler = event => {
|
|
51
|
+
if (event.nativeEvent.identifier !== undefined) {
|
|
52
|
+
onPress === null || onPress === void 0 ? void 0 : onPress(event);
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
const onKeyDownHandler = _react.default.useCallback(e => {
|
|
56
|
+
onKeyDownPress === null || onKeyDownPress === void 0 ? void 0 : onKeyDownPress(e);
|
|
57
|
+
onPressIn === null || onPressIn === void 0 ? void 0 : onPressIn(e);
|
|
58
|
+
}, [onKeyDownPress, onPressIn]);
|
|
59
|
+
return /*#__PURE__*/_react.default.createElement(_KeyboardFocusView.KeyboardFocusView, {
|
|
60
|
+
style: style,
|
|
61
|
+
focusStyle: focusStyle,
|
|
62
|
+
ref: ref,
|
|
63
|
+
withView: false,
|
|
64
|
+
onKeyUpPress: onKeyUpPressHandler,
|
|
65
|
+
onKeyDownPress: onKeyDownHandler,
|
|
66
|
+
canBeFocused: canBeFocused,
|
|
67
|
+
onFocusChange: onFocusChange
|
|
68
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.Pressable, _extends({
|
|
69
|
+
onPressOut: onPressOut,
|
|
70
|
+
onPressIn: onPressIn,
|
|
71
|
+
onPress: onPressablePressHandler,
|
|
72
|
+
onLongPress: onLongPress
|
|
73
|
+
}, props)));
|
|
74
|
+
});
|
|
75
|
+
exports.Pressable = Pressable;
|
|
76
|
+
//# sourceMappingURL=Pressable.android.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_KeyboardFocusView","obj","__esModule","default","_extends","Object","assign","bind","target","i","arguments","length","source","key","prototype","hasOwnProperty","call","apply","ANDROID_SPACE_KEY_CODE","Pressable","React","forwardRef","_ref","ref","canBeFocused","focusStyle","style","onFocusChange","onPress","onLongPress","onKeyDownPress","onPressOut","onPressIn","props","onKeyUpPressHandler","useCallback","e","nativeEvent","keyCode","isLongPress","onPressablePressHandler","event","identifier","undefined","onKeyDownHandler","createElement","KeyboardFocusView","withView","onKeyUpPress","exports"],"sourceRoot":"../../../../src","sources":["components/Pressable/Pressable.android.tsx"],"mappings":";;;;;;AAUA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAOA,IAAAE,kBAAA,GAAAF,OAAA;AAAyD,SAAAD,uBAAAI,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAAA,SAAAG,SAAA,IAAAA,QAAA,GAAAC,MAAA,CAAAC,MAAA,GAAAD,MAAA,CAAAC,MAAA,CAAAC,IAAA,eAAAC,MAAA,aAAAC,CAAA,MAAAA,CAAA,GAAAC,SAAA,CAAAC,MAAA,EAAAF,CAAA,UAAAG,MAAA,GAAAF,SAAA,CAAAD,CAAA,YAAAI,GAAA,IAAAD,MAAA,QAAAP,MAAA,CAAAS,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAJ,MAAA,EAAAC,GAAA,KAAAL,MAAA,CAAAK,GAAA,IAAAD,MAAA,CAAAC,GAAA,gBAAAL,MAAA,YAAAJ,QAAA,CAAAa,KAAA,OAAAP,SAAA,KAlBzD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAYA,MAAMQ,sBAAsB,GAAG,EAAE;AAE1B,MAAMC,SAAS,gBAAGC,cAAK,CAACC,UAAU,CAIvC,CAAAC,IAAA,EAaEC,GAAG,KACA;EAAA,IAbH;IACEC,YAAY;IACZC,UAAU;IACVC,KAAK;IACLC,aAAa;IACbC,OAAO;IACPC,WAAW;IACXC,cAAc;IACdC,UAAU;IACVC,SAAS;IACT,GAA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A;EAAc,gBAE7B/B,MAAA,CAAAO,OAAA,CAAA0C,aAAA,CAAC9C,YAAA,CAAAoB,SAAW,EAAAf,QAAA;IACV2B,UAAU,EAAEA,UAAW;IACvBC,SAAS,EAAEA,SAAU;IACrBJ,OAAO,EAAEY,uBAAwB;IACjCX,WAAW,EAAEA;EAAY,GACrBI,KAAK,CACV,CACgB,CAAC;AAExB,CACF,CAAC;AAACgB,OAAA,CAAA9B,SAAA,GAAAA,SAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["components/Pressable/Pressable.d.ts"],"mappings":""}
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.Pressable = void 0;
|
|
7
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
+
var _Rect = require("react-native/Libraries/StyleSheet/Rect");
|
|
9
|
+
var _usePressability = _interopRequireDefault(require("react-native/Libraries/Pressability/usePressability"));
|
|
10
|
+
var _useAndroidRippleForView = _interopRequireDefault(require("react-native/Libraries/Components/Pressable/useAndroidRippleForView"));
|
|
11
|
+
var _KeyboardFocusView = require("../KeyboardFocusView");
|
|
12
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
14
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
15
|
+
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); } // @ts-ignore: import from origin pressable
|
|
16
|
+
// @ts-ignore: import from origin pressable
|
|
17
|
+
// @ts-ignore: import from origin pressable
|
|
18
|
+
const IOS_SPACE_KEY_CODE = 44;
|
|
19
|
+
const Pressable = /*#__PURE__*/_react.default.memo( /*#__PURE__*/_react.default.forwardRef((props, forwardedRef) => {
|
|
20
|
+
var _props$accessibilityV, _props$accessibilityV2, _props$accessibilityV3, _props$accessibilityV4;
|
|
21
|
+
const {
|
|
22
|
+
accessibilityState,
|
|
23
|
+
'aria-live': ariaLive,
|
|
24
|
+
android_disableSound,
|
|
25
|
+
android_ripple,
|
|
26
|
+
'aria-busy': ariaBusy,
|
|
27
|
+
'aria-checked': ariaChecked,
|
|
28
|
+
'aria-disabled': ariaDisabled,
|
|
29
|
+
'aria-expanded': ariaExpanded,
|
|
30
|
+
'aria-label': ariaLabel,
|
|
31
|
+
'aria-selected': ariaSelected,
|
|
32
|
+
cancelable,
|
|
33
|
+
children,
|
|
34
|
+
delayHoverIn,
|
|
35
|
+
delayHoverOut,
|
|
36
|
+
delayLongPress,
|
|
37
|
+
disabled,
|
|
38
|
+
focusable,
|
|
39
|
+
onHoverIn,
|
|
40
|
+
onHoverOut,
|
|
41
|
+
onLongPress,
|
|
42
|
+
onPress,
|
|
43
|
+
onPressIn,
|
|
44
|
+
onPressOut,
|
|
45
|
+
pressRetentionOffset,
|
|
46
|
+
style,
|
|
47
|
+
testOnly_pressed,
|
|
48
|
+
unstable_pressDelay,
|
|
49
|
+
canBeFocused,
|
|
50
|
+
onFocusChange,
|
|
51
|
+
...restProps
|
|
52
|
+
} = props;
|
|
53
|
+
const viewRef = (0, _react.useRef)(null);
|
|
54
|
+
(0, _react.useImperativeHandle)(forwardedRef, () => viewRef.current);
|
|
55
|
+
const hitSlop = (0, _Rect.normalizeRect)(restProps === null || restProps === void 0 ? void 0 : restProps.hitSlop);
|
|
56
|
+
const android_rippleConfig = (0, _useAndroidRippleForView.default)(android_ripple, viewRef);
|
|
57
|
+
const [pressed, setPressed] = usePressState(testOnly_pressed === true);
|
|
58
|
+
let _accessibilityState = {
|
|
59
|
+
busy: ariaBusy ?? (accessibilityState === null || accessibilityState === void 0 ? void 0 : accessibilityState.busy),
|
|
60
|
+
checked: ariaChecked ?? (accessibilityState === null || accessibilityState === void 0 ? void 0 : accessibilityState.checked),
|
|
61
|
+
disabled: ariaDisabled ?? (accessibilityState === null || accessibilityState === void 0 ? void 0 : accessibilityState.disabled),
|
|
62
|
+
expanded: ariaExpanded ?? (accessibilityState === null || accessibilityState === void 0 ? void 0 : accessibilityState.expanded),
|
|
63
|
+
selected: ariaSelected ?? (accessibilityState === null || accessibilityState === void 0 ? void 0 : accessibilityState.selected)
|
|
64
|
+
};
|
|
65
|
+
_accessibilityState = disabled != null ? {
|
|
66
|
+
..._accessibilityState,
|
|
67
|
+
disabled
|
|
68
|
+
} : _accessibilityState;
|
|
69
|
+
const accessibilityValue = {
|
|
70
|
+
max: props['aria-valuemax'] ?? ((_props$accessibilityV = props.accessibilityValue) === null || _props$accessibilityV === void 0 ? void 0 : _props$accessibilityV.max),
|
|
71
|
+
min: props['aria-valuemin'] ?? ((_props$accessibilityV2 = props.accessibilityValue) === null || _props$accessibilityV2 === void 0 ? void 0 : _props$accessibilityV2.min),
|
|
72
|
+
now: props['aria-valuenow'] ?? ((_props$accessibilityV3 = props.accessibilityValue) === null || _props$accessibilityV3 === void 0 ? void 0 : _props$accessibilityV3.now),
|
|
73
|
+
text: props['aria-valuetext'] ?? ((_props$accessibilityV4 = props.accessibilityValue) === null || _props$accessibilityV4 === void 0 ? void 0 : _props$accessibilityV4.text)
|
|
74
|
+
};
|
|
75
|
+
const accessibilityLiveRegion = ariaLive === 'off' ? 'none' : ariaLive ?? props.accessibilityLiveRegion;
|
|
76
|
+
const accessibilityLabel = ariaLabel ?? props.accessibilityLabel;
|
|
77
|
+
const restPropsWithDefaults = {
|
|
78
|
+
...restProps,
|
|
79
|
+
...(android_rippleConfig === null || android_rippleConfig === void 0 ? void 0 : android_rippleConfig.viewProps),
|
|
80
|
+
accessibilityState: _accessibilityState,
|
|
81
|
+
accessibilityValue,
|
|
82
|
+
accessibilityViewIsModal: restProps['aria-modal'] ?? restProps.accessibilityViewIsModal,
|
|
83
|
+
accessibilityLiveRegion,
|
|
84
|
+
accessibilityLabel,
|
|
85
|
+
focusable: focusable !== false,
|
|
86
|
+
hitSlop
|
|
87
|
+
};
|
|
88
|
+
const config = (0, _react.useMemo)(() => ({
|
|
89
|
+
cancelable,
|
|
90
|
+
disabled,
|
|
91
|
+
hitSlop,
|
|
92
|
+
pressRectOffset: pressRetentionOffset,
|
|
93
|
+
android_disableSound,
|
|
94
|
+
delayHoverIn,
|
|
95
|
+
delayHoverOut,
|
|
96
|
+
delayLongPress,
|
|
97
|
+
delayPressIn: unstable_pressDelay,
|
|
98
|
+
onHoverIn,
|
|
99
|
+
onHoverOut,
|
|
100
|
+
onLongPress,
|
|
101
|
+
onPress,
|
|
102
|
+
onPressIn(event) {
|
|
103
|
+
if (android_rippleConfig != null) {
|
|
104
|
+
android_rippleConfig.onPressIn(event);
|
|
105
|
+
}
|
|
106
|
+
setPressed(true);
|
|
107
|
+
if (onPressIn != null) {
|
|
108
|
+
onPressIn(event);
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
onPressMove: android_rippleConfig === null || android_rippleConfig === void 0 ? void 0 : android_rippleConfig.onPressMove,
|
|
112
|
+
onPressOut(event) {
|
|
113
|
+
if (android_rippleConfig != null) {
|
|
114
|
+
android_rippleConfig.onPressOut(event);
|
|
115
|
+
}
|
|
116
|
+
setPressed(false);
|
|
117
|
+
if (onPressOut != null) {
|
|
118
|
+
onPressOut(event);
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
}), [android_disableSound, android_rippleConfig, cancelable, delayHoverIn, delayHoverOut, delayLongPress, disabled, hitSlop, onHoverIn, onHoverOut, onLongPress, onPress, onPressIn, onPressOut, pressRetentionOffset, setPressed, unstable_pressDelay]);
|
|
122
|
+
const eventHandlers = (0, _usePressability.default)(config);
|
|
123
|
+
const onKeyUpPress = _react.default.useCallback(e => {
|
|
124
|
+
if (e.nativeEvent.keyCode === IOS_SPACE_KEY_CODE) {
|
|
125
|
+
onPressOut(e);
|
|
126
|
+
if (e.nativeEvent.isLongPress) {
|
|
127
|
+
onLongPress === null || onLongPress === void 0 ? void 0 : onLongPress(e);
|
|
128
|
+
} else {
|
|
129
|
+
onPress === null || onPress === void 0 ? void 0 : onPress(e);
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
}, [onLongPress, onPress, onPressOut]);
|
|
133
|
+
const onKeyDownPress = _react.default.useCallback(e => {
|
|
134
|
+
if (e.nativeEvent.keyCode === IOS_SPACE_KEY_CODE) {
|
|
135
|
+
onPressIn(e);
|
|
136
|
+
}
|
|
137
|
+
}, [onPressIn]);
|
|
138
|
+
return /*#__PURE__*/_react.default.createElement(_KeyboardFocusView.KeyboardFocusView, _extends({}, restPropsWithDefaults, eventHandlers, {
|
|
139
|
+
canBeFocused: canBeFocused,
|
|
140
|
+
onFocusChange: onFocusChange,
|
|
141
|
+
onKeyUpPress: onKeyUpPress,
|
|
142
|
+
onKeyDownPress: onKeyDownPress,
|
|
143
|
+
ref: viewRef,
|
|
144
|
+
style: typeof style === 'function' ? style({
|
|
145
|
+
pressed
|
|
146
|
+
}) : style,
|
|
147
|
+
collapsable: false
|
|
148
|
+
}), typeof children === 'function' ? children({
|
|
149
|
+
pressed
|
|
150
|
+
}) : children);
|
|
151
|
+
}));
|
|
152
|
+
exports.Pressable = Pressable;
|
|
153
|
+
function usePressState(forcePressed) {
|
|
154
|
+
const [pressed, setPressed] = (0, _react.useState)(false);
|
|
155
|
+
return [pressed || forcePressed, setPressed];
|
|
156
|
+
}
|
|
157
|
+
//# sourceMappingURL=Pressable.ios.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_Rect","_usePressability","_interopRequireDefault","_useAndroidRippleForView","_KeyboardFocusView","obj","__esModule","default","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","_extends","assign","bind","target","i","arguments","length","source","apply","IOS_SPACE_KEY_CODE","Pressable","React","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","useRef","useImperativeHandle","current","hitSlop","normalizeRect","android_rippleConfig","useAndroidRippleForView","pressed","setPressed","usePressState","_accessibilityState","busy","checked","expanded","selected","accessibilityValue","max","min","now","text","accessibilityLiveRegion","accessibilityLabel","restPropsWithDefaults","viewProps","accessibilityViewIsModal","config","useMemo","pressRectOffset","delayPressIn","event","onPressMove","eventHandlers","usePressability","onKeyUpPress","useCallback","e","nativeEvent","keyCode","isLongPress","onKeyDownPress","createElement","KeyboardFocusView","ref","collapsable","exports","forcePressed","useState"],"sourceRoot":"../../../../src","sources":["components/Pressable/Pressable.ios.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAIA,IAAAC,KAAA,GAAAD,OAAA;AAEA,IAAAE,gBAAA,GAAAC,sBAAA,CAAAH,OAAA;AAEA,IAAAI,wBAAA,GAAAD,sBAAA,CAAAH,OAAA;AAEA,IAAAK,kBAAA,GAAAL,OAAA;AAAyD,SAAAG,uBAAAG,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAAA,SAAAG,yBAAAC,WAAA,eAAAC,OAAA,kCAAAC,iBAAA,OAAAD,OAAA,QAAAE,gBAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,WAAA,WAAAA,WAAA,GAAAG,gBAAA,GAAAD,iBAAA,KAAAF,WAAA;AAAA,SAAAX,wBAAAO,GAAA,EAAAI,WAAA,SAAAA,WAAA,IAAAJ,GAAA,IAAAA,GAAA,CAAAC,UAAA,WAAAD,GAAA,QAAAA,GAAA,oBAAAA,GAAA,wBAAAA,GAAA,4BAAAE,OAAA,EAAAF,GAAA,UAAAQ,KAAA,GAAAL,wBAAA,CAAAC,WAAA,OAAAI,KAAA,IAAAA,KAAA,CAAAC,GAAA,CAAAT,GAAA,YAAAQ,KAAA,CAAAE,GAAA,CAAAV,GAAA,SAAAW,MAAA,WAAAC,qBAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,GAAA,IAAAhB,GAAA,QAAAgB,GAAA,kBAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAnB,GAAA,EAAAgB,GAAA,SAAAI,IAAA,GAAAR,qBAAA,GAAAC,MAAA,CAAAE,wBAAA,CAAAf,GAAA,EAAAgB,GAAA,c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|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "Pressable", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _Pressable.Pressable;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
var _Pressable = require("./Pressable");
|
|
13
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_Pressable","require"],"sourceRoot":"../../../../src","sources":["components/Pressable/index.ts"],"mappings":";;;;;;;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "KeyboardFocusView", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _KeyboardFocusView.KeyboardFocusView;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, "Pressable", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function () {
|
|
15
|
+
return _Pressable.Pressable;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
var _KeyboardFocusView = require("./KeyboardFocusView");
|
|
19
|
+
var _Pressable = require("./Pressable");
|
|
20
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_KeyboardFocusView","require","_Pressable"],"sourceRoot":"../../../src","sources":["components/index.ts"],"mappings":";;;;;;;;;;;;;;;;;AAAA,IAAAA,kBAAA,GAAAC,OAAA;AACA,IAAAC,UAAA,GAAAD,OAAA"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "A11yKeyboardModule", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _NativeModules.A11yKeyboardModule;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, "A11yModule", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function () {
|
|
15
|
+
return _services.A11yModule;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
Object.defineProperty(exports, "ExternalKeyboardView", {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function () {
|
|
21
|
+
return _nativeSpec.ExternalKeyboardView;
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
Object.defineProperty(exports, "KeyPress", {
|
|
25
|
+
enumerable: true,
|
|
26
|
+
get: function () {
|
|
27
|
+
return _nativeSpec.KeyPress;
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
Object.defineProperty(exports, "KeyboardFocusView", {
|
|
31
|
+
enumerable: true,
|
|
32
|
+
get: function () {
|
|
33
|
+
return _components.KeyboardFocusView;
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
Object.defineProperty(exports, "Pressable", {
|
|
37
|
+
enumerable: true,
|
|
38
|
+
get: function () {
|
|
39
|
+
return _components.Pressable;
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
var _NativeModules = require("./NativeModules");
|
|
43
|
+
var _nativeSpec = require("./nativeSpec");
|
|
44
|
+
var _components = require("./components");
|
|
45
|
+
var _services = require("./services");
|
|
46
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_NativeModules","require","_nativeSpec","_components","_services"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,cAAA,GAAAC,OAAA;AACA,IAAAC,WAAA,GAAAD,OAAA;AAEA,IAAAE,WAAA,GAAAF,OAAA;AACA,IAAAG,SAAA,GAAAH,OAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _codegenNativeComponent = _interopRequireDefault(require("react-native/Libraries/Utilities/codegenNativeComponent"));
|
|
8
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
9
|
+
var _default = (0, _codegenNativeComponent.default)('ExternalKeyboardView');
|
|
10
|
+
exports.default = _default;
|
|
11
|
+
//# sourceMappingURL=ExternalKeyboardViewNativeComponent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_codegenNativeComponent","_interopRequireDefault","require","obj","__esModule","default","_default","codegenNativeComponent","exports"],"sourceRoot":"../../../src","sources":["nativeSpec/ExternalKeyboardViewNativeComponent.ts"],"mappings":";;;;;;AAAA,IAAAA,uBAAA,GAAAC,sBAAA,CAAAC,OAAA;AAA6F,SAAAD,uBAAAE,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAAA,IAAAG,QAAA,GAkC9E,IAAAC,+BAAsB,EACnC,sBACF,CAAC;AAAAC,OAAA,CAAAH,OAAA,GAAAC,QAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _reactNative = require("react-native");
|
|
8
|
+
var _default = _reactNative.TurboModuleRegistry.get('A11yKeyboardModule');
|
|
9
|
+
exports.default = _default;
|
|
10
|
+
//# sourceMappingURL=NativeKeyboardModule.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_default","TurboModuleRegistry","get","exports","default"],"sourceRoot":"../../../src","sources":["nativeSpec/NativeKeyboardModule.ts"],"mappings":";;;;;;AACA,IAAAA,YAAA,GAAAC,OAAA;AAAmD,IAAAC,QAAA,GAOpCC,gCAAmB,CAACC,GAAG,CAAO,oBAAoB,CAAC;AAAAC,OAAA,CAAAC,OAAA,GAAAJ,QAAA"}
|