react-native-external-keyboard 0.9.1 → 1.0.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/README.md +95 -600
- package/android/build.gradle +0 -18
- package/android/src/main/java/com/externalkeyboard/ExternalKeyboardViewPackage.java +24 -22
- package/android/src/main/java/com/externalkeyboard/events/EventHelper.java +10 -13
- package/android/src/main/java/com/externalkeyboard/helper/FocusHelper.java +1 -2
- package/android/src/main/java/com/externalkeyboard/services/FocusMemoryService.java +64 -0
- package/android/src/main/java/com/externalkeyboard/services/KeyboardFocusService.java +41 -0
- package/android/src/main/java/com/externalkeyboard/services/KeyboardService.java +4 -13
- package/android/src/main/java/com/externalkeyboard/views/ExternalKeyboardView/ExternalKeyboardView.java +2 -8
- package/android/src/main/java/com/externalkeyboard/views/ExternalKeyboardView/ExternalKeyboardViewManager.java +20 -13
- package/android/src/main/java/com/externalkeyboard/views/TextInputFocusWrapper/TextInputFocusWrapper.java +99 -21
- package/android/src/main/java/com/externalkeyboard/views/TextInputFocusWrapper/TextInputFocusWrapperManager.java +11 -0
- package/android/src/main/java/com/externalkeyboard/views/base/FocusHighlightBase.java +11 -5
- package/android/src/main/java/com/externalkeyboard/views/base/FocusableBase.java +36 -0
- package/android/src/main/java/com/externalkeyboard/views/base/keyboard/ViewFocusChangeBase.java +2 -3
- package/android/src/main/java/com/externalkeyboard/views/base/keyboard/ViewFocusRequestBase.java +10 -61
- package/android/src/newarch/ExternalKeyboardLockViewManagerInterface.java +11 -0
- package/android/src/newarch/ExternalKeyboardLockViewManagerSpec.java +0 -1
- package/android/src/newarch/ExternalKeyboardViewManagerInterface.java +42 -0
- package/android/src/newarch/ExternalKeyboardViewManagerSpec.java +0 -1
- package/android/src/newarch/KeyboardFocusGroupManagerInterface.java +12 -0
- package/android/src/newarch/KeyboardFocusGroupManagerSpec.java +0 -1
- package/android/src/newarch/TextInputFocusWrapperManagerInterface.java +34 -0
- package/android/src/newarch/TextInputFocusWrapperManagerSpec.java +0 -10
- package/android/src/newarch/helper/ReactNativeEventDispatcher.java +28 -0
- package/android/src/oldarch/ExternalKeyboardViewManagerSpec.java +6 -4
- package/android/src/oldarch/TextInputFocusWrapperManagerSpec.java +4 -0
- package/android/src/oldarch/helper/ReactNativeEventDispatcher.java +15 -0
- package/ios/Delegates/RNCEKVFocusDelegate/RNCEKVFocusDelegate.mm +1 -1
- package/ios/Delegates/RNCEKVFocusDelegate/RNCEKVFocusProtocol.h +1 -1
- package/ios/Delegates/RNCEKVHaloDelegate/RNCEKVHaloDelegate.h +2 -1
- package/ios/Delegates/RNCEKVHaloDelegate/RNCEKVHaloDelegate.mm +41 -5
- package/ios/Delegates/RNCEKVHaloDelegate/RNCEKVHaloProtocol.h +1 -0
- package/ios/Extensions/RCTCustomScrollView+RNCEKVExternalKeyboard.mm +5 -6
- package/ios/Extensions/RCTEnhancedScrollView+RNCEKVExternalKeyboard.mm +8 -9
- package/ios/Extensions/RCTTextInputComponentView+RNCEKVExternalKeyboard.mm +1 -1
- package/ios/Extensions/RCTViewComponentView+RNCEKVExternalKeyboard.h +0 -1
- package/ios/Extensions/RCTViewComponentView+RNCEKVExternalKeyboard.mm +16 -4
- package/ios/Extensions/UIViewController+RNCEKVExternalKeyboard.mm +7 -10
- package/ios/Helpers/RNCEKVNativeProps/RNCEKVNativeProps.h +4 -4
- package/ios/Helpers/RNCEKVSwizzleInstanceMethod/RNCEKVSwizzleInstanceMethod.h +19 -0
- package/ios/Protocols/RNCEKVCustomFocusEffectProtocol.h +1 -1
- package/ios/Services/RNCEKVFocusMemoryService.h +39 -0
- package/ios/Services/RNCEKVFocusMemoryService.mm +42 -0
- package/ios/Services/RNCEKVKeyboardFocusService.h +28 -0
- package/ios/Services/RNCEKVKeyboardFocusService.mm +54 -0
- package/ios/Views/Base/FocusChange/RNCEKVViewFocusChangeBase.h +2 -0
- package/ios/Views/Base/FocusChange/RNCEKVViewFocusChangeBase.mm +12 -10
- package/ios/Views/Base/FocusRequest/RNCEKVViewFocusRequestBase.h +1 -1
- package/ios/Views/Base/FocusRequest/RNCEKVViewFocusRequestBase.mm +6 -17
- package/ios/Views/Base/KeyboardHallo/RNCEKVExternalKeyboardHalloBase.h +1 -0
- package/ios/Views/Base/KeyboardHallo/RNCEKVExternalKeyboardHalloBase.mm +146 -6
- package/ios/Views/Base/ViewGroup/RNCEKVViewGroupBase.h +2 -0
- package/ios/Views/Base/ViewGroup/RNCEKVViewGroupBase.mm +4 -0
- package/ios/Views/RNCEKVExternalKeyboardView/RNCEKVExternalKeyboardView.h +1 -1
- package/ios/Views/RNCEKVExternalKeyboardView/RNCEKVExternalKeyboardView.mm +8 -4
- package/ios/Views/RNCEKVExternalKeyboardView/RNCEKVExternalKeyboardViewManager.mm +22 -11
- package/ios/Views/RNCEKVTextInputFocusWrapper/RNCEKVTextInputFocusWrapper.mm +17 -0
- package/ios/Views/RNCEKVTextInputFocusWrapper/RNCEKVTextInputFocusWrapperManager.mm +12 -0
- package/lib/commonjs/components/BaseKeyboardView/BaseKeyboardView.js +67 -65
- package/lib/commonjs/components/BaseKeyboardView/BaseKeyboardView.js.map +1 -1
- package/lib/commonjs/components/KeyboardExtendedInput/KeyboardExtendedInput.js +49 -97
- package/lib/commonjs/components/KeyboardExtendedInput/KeyboardExtendedInput.js.map +1 -1
- package/lib/commonjs/components/KeyboardFocusGroup/KeyboardFocusGroup.android.js.map +1 -1
- package/lib/commonjs/components/KeyboardFocusGroup/KeyboardFocusGroup.ios.js.map +1 -1
- package/lib/commonjs/components/KeyboardFocusGroup/KeyboardFocusGroup.js.map +1 -1
- package/lib/commonjs/components/{KeyboardExtendedInput/KeyboardExtendedInput.types.js → KeyboardFocusGroup/KeyboardFocusGroup.types.js} +1 -1
- package/lib/commonjs/components/KeyboardFocusGroup/KeyboardFocusGroup.types.js.map +1 -0
- package/lib/commonjs/components/KeyboardFocusLock/FocusFrame/FocusFrame.android.js +2 -1
- package/lib/commonjs/components/KeyboardFocusLock/FocusFrame/FocusFrame.android.js.map +1 -1
- package/lib/commonjs/components/KeyboardFocusLock/FocusTrap/FocusTrap.android.js +2 -1
- package/lib/commonjs/components/KeyboardFocusLock/FocusTrap/FocusTrap.android.js.map +1 -1
- package/lib/commonjs/components/KeyboardFocusLock/KeyboardFocusLockBase/KeyboardFocusLockBase.js +2 -1
- package/lib/commonjs/components/KeyboardFocusLock/KeyboardFocusLockBase/KeyboardFocusLockBase.js.map +1 -1
- package/lib/commonjs/components/KeyboardFocusView/KeyboardFocusView.js +14 -51
- package/lib/commonjs/components/KeyboardFocusView/KeyboardFocusView.js.map +1 -1
- package/lib/commonjs/components/index.js +47 -0
- package/lib/commonjs/components/index.js.map +1 -1
- package/lib/commonjs/index.js +37 -19
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/nativeSpec/ExternalKeyboardLockViewNativeComponent.ts +1 -3
- package/lib/commonjs/nativeSpec/ExternalKeyboardViewNativeComponent.ts +12 -9
- package/lib/commonjs/nativeSpec/KeyboardFocusGroupNativeComponent.ts +5 -3
- package/lib/commonjs/nativeSpec/TextInputFocusWrapperNativeComponent.ts +7 -3
- package/lib/commonjs/types/KeyboardFocusLock.types.js +13 -0
- package/lib/commonjs/types/KeyboardFocusLock.types.js.map +1 -1
- package/lib/commonjs/types/baseKeyboardView.types.js +6 -0
- package/lib/commonjs/types/baseKeyboardView.types.js.map +1 -0
- package/lib/commonjs/types/{FocusStyle.js → focus.types.js} +1 -1
- package/lib/commonjs/types/{FocusStyle.js.map → focus.types.js.map} +1 -1
- package/lib/commonjs/types/focusOrder.types.js +33 -0
- package/lib/commonjs/types/focusOrder.types.js.map +1 -0
- package/lib/commonjs/types/{WithKeyboardFocus.js → focusStyle.types.js} +1 -1
- package/lib/commonjs/types/{WithKeyboardFocus.js.map → focusStyle.types.js.map} +1 -1
- package/lib/commonjs/types/index.js +18 -0
- package/lib/commonjs/types/index.js.map +1 -1
- package/lib/commonjs/types/keyPress.types.js +6 -0
- package/lib/{module/types/WithKeyboardFocus.js.map → commonjs/types/keyPress.types.js.map} +1 -1
- package/lib/commonjs/types/keyboardInput.types.js +6 -0
- package/lib/commonjs/types/keyboardInput.types.js.map +1 -0
- package/lib/commonjs/types/withKeyboardFocus.types.js +6 -0
- package/lib/commonjs/types/withKeyboardFocus.types.js.map +1 -0
- package/lib/commonjs/utils/mapLockFocus.js +37 -0
- package/lib/commonjs/utils/mapLockFocus.js.map +1 -0
- package/lib/commonjs/utils/useFocusStyle.js +4 -21
- package/lib/commonjs/utils/useFocusStyle.js.map +1 -1
- package/lib/commonjs/utils/useKeyboardFocusContainer.js +79 -0
- package/lib/commonjs/utils/useKeyboardFocusContainer.js.map +1 -0
- package/lib/commonjs/utils/useKeyboardPress/useKeyboardPress.android.js +4 -7
- package/lib/commonjs/utils/useKeyboardPress/useKeyboardPress.android.js.map +1 -1
- package/lib/commonjs/utils/useKeyboardPress/useKeyboardPress.ios.js +3 -6
- package/lib/commonjs/utils/useKeyboardPress/useKeyboardPress.ios.js.map +1 -1
- package/lib/commonjs/utils/useKeyboardPress/useKeyboardPress.js +9 -7
- package/lib/commonjs/utils/useKeyboardPress/useKeyboardPress.js.map +1 -1
- package/lib/commonjs/utils/useKeyboardPressState.js +65 -0
- package/lib/commonjs/utils/useKeyboardPressState.js.map +1 -0
- package/lib/commonjs/utils/useOnFocusChange.js +1 -1
- package/lib/commonjs/utils/useOnFocusChange.js.map +1 -1
- package/lib/commonjs/utils/useOrderValidation.js +35 -0
- package/lib/commonjs/utils/useOrderValidation.js.map +1 -0
- package/lib/commonjs/utils/useRenderedChildren.js +34 -0
- package/lib/commonjs/utils/useRenderedChildren.js.map +1 -0
- package/lib/commonjs/utils/useWrappedOrderProps.js +35 -0
- package/lib/commonjs/utils/useWrappedOrderProps.js.map +1 -0
- package/lib/commonjs/utils/withKeyboardFocus.js +81 -96
- package/lib/commonjs/utils/withKeyboardFocus.js.map +1 -1
- package/lib/module/components/BaseKeyboardView/BaseKeyboardView.js +57 -55
- package/lib/module/components/BaseKeyboardView/BaseKeyboardView.js.map +1 -1
- package/lib/module/components/KeyboardExtendedInput/KeyboardExtendedInput.js +51 -99
- package/lib/module/components/KeyboardExtendedInput/KeyboardExtendedInput.js.map +1 -1
- package/lib/module/components/KeyboardFocusGroup/KeyboardFocusGroup.android.js.map +1 -1
- package/lib/module/components/KeyboardFocusGroup/KeyboardFocusGroup.ios.js.map +1 -1
- package/lib/module/components/KeyboardFocusGroup/KeyboardFocusGroup.js.map +1 -1
- package/lib/module/components/KeyboardFocusGroup/KeyboardFocusGroup.types.js +4 -0
- package/lib/module/components/KeyboardFocusGroup/KeyboardFocusGroup.types.js.map +1 -0
- package/lib/module/components/KeyboardFocusLock/FocusFrame/FocusFrame.android.js +2 -1
- package/lib/module/components/KeyboardFocusLock/FocusFrame/FocusFrame.android.js.map +1 -1
- package/lib/module/components/KeyboardFocusLock/FocusTrap/FocusTrap.android.js +2 -1
- package/lib/module/components/KeyboardFocusLock/FocusTrap/FocusTrap.android.js.map +1 -1
- package/lib/module/components/KeyboardFocusLock/KeyboardFocusLockBase/KeyboardFocusLockBase.js +2 -1
- package/lib/module/components/KeyboardFocusLock/KeyboardFocusLockBase/KeyboardFocusLockBase.js.map +1 -1
- package/lib/module/components/KeyboardFocusView/KeyboardFocusView.js +16 -53
- package/lib/module/components/KeyboardFocusView/KeyboardFocusView.js.map +1 -1
- package/lib/module/components/index.js +5 -0
- package/lib/module/components/index.js.map +1 -1
- package/lib/module/index.js +20 -7
- package/lib/module/index.js.map +1 -1
- package/lib/module/nativeSpec/ExternalKeyboardLockViewNativeComponent.ts +1 -3
- package/lib/module/nativeSpec/ExternalKeyboardViewNativeComponent.ts +12 -9
- package/lib/module/nativeSpec/KeyboardFocusGroupNativeComponent.ts +5 -3
- package/lib/module/nativeSpec/TextInputFocusWrapperNativeComponent.ts +7 -3
- package/lib/module/types/KeyboardFocusLock.types.js +12 -1
- package/lib/module/types/KeyboardFocusLock.types.js.map +1 -1
- package/lib/module/types/baseKeyboardView.types.js +4 -0
- package/lib/module/types/baseKeyboardView.types.js.map +1 -0
- package/lib/module/types/focus.types.js +4 -0
- package/lib/module/types/{FocusStyle.js.map → focus.types.js.map} +1 -1
- package/lib/module/types/focusOrder.types.js +31 -0
- package/lib/module/types/focusOrder.types.js.map +1 -0
- package/lib/module/types/focusStyle.types.js +4 -0
- package/lib/module/types/focusStyle.types.js.map +1 -0
- package/lib/module/types/index.js +3 -0
- package/lib/module/types/index.js.map +1 -1
- package/lib/module/types/keyPress.types.js +4 -0
- package/lib/module/types/keyPress.types.js.map +1 -0
- package/lib/module/types/keyboardInput.types.js +4 -0
- package/lib/module/types/keyboardInput.types.js.map +1 -0
- package/lib/module/types/withKeyboardFocus.types.js +4 -0
- package/lib/module/types/withKeyboardFocus.types.js.map +1 -0
- package/lib/module/utils/mapLockFocus.js +32 -0
- package/lib/module/utils/mapLockFocus.js.map +1 -0
- package/lib/module/utils/useFocusStyle.js +4 -21
- package/lib/module/utils/useFocusStyle.js.map +1 -1
- package/lib/module/utils/useKeyboardFocusContainer.js +74 -0
- package/lib/module/utils/useKeyboardFocusContainer.js.map +1 -0
- package/lib/module/utils/useKeyboardPress/useKeyboardPress.android.js +4 -7
- package/lib/module/utils/useKeyboardPress/useKeyboardPress.android.js.map +1 -1
- package/lib/module/utils/useKeyboardPress/useKeyboardPress.ios.js +3 -6
- package/lib/module/utils/useKeyboardPress/useKeyboardPress.ios.js.map +1 -1
- package/lib/module/utils/useKeyboardPress/useKeyboardPress.js +9 -7
- package/lib/module/utils/useKeyboardPress/useKeyboardPress.js.map +1 -1
- package/lib/module/utils/useKeyboardPressState.js +60 -0
- package/lib/module/utils/useKeyboardPressState.js.map +1 -0
- package/lib/module/utils/useOnFocusChange.js +1 -1
- package/lib/module/utils/useOnFocusChange.js.map +1 -1
- package/lib/module/utils/useOrderValidation.js +30 -0
- package/lib/module/utils/useOrderValidation.js.map +1 -0
- package/lib/module/utils/useRenderedChildren.js +29 -0
- package/lib/module/utils/useRenderedChildren.js.map +1 -0
- package/lib/module/utils/useWrappedOrderProps.js +30 -0
- package/lib/module/utils/useWrappedOrderProps.js.map +1 -0
- package/lib/module/utils/withKeyboardFocus.js +84 -99
- package/lib/module/utils/withKeyboardFocus.js.map +1 -1
- package/lib/typescript/src/components/BaseKeyboardView/BaseKeyboardView.d.ts +30 -10
- package/lib/typescript/src/components/BaseKeyboardView/BaseKeyboardView.d.ts.map +1 -1
- package/lib/typescript/src/components/KeyboardExtendedInput/KeyboardExtendedInput.d.ts +187 -12
- package/lib/typescript/src/components/KeyboardExtendedInput/KeyboardExtendedInput.d.ts.map +1 -1
- package/lib/typescript/src/components/KeyboardFocusGroup/KeyboardFocusGroup.android.d.ts +4 -146
- package/lib/typescript/src/components/KeyboardFocusGroup/KeyboardFocusGroup.android.d.ts.map +1 -1
- package/lib/typescript/src/components/KeyboardFocusGroup/KeyboardFocusGroup.d.ts +2 -12
- package/lib/typescript/src/components/KeyboardFocusGroup/KeyboardFocusGroup.d.ts.map +1 -1
- package/lib/typescript/src/components/KeyboardFocusGroup/KeyboardFocusGroup.ios.d.ts +4 -146
- package/lib/typescript/src/components/KeyboardFocusGroup/KeyboardFocusGroup.ios.d.ts.map +1 -1
- package/lib/typescript/src/components/KeyboardFocusGroup/KeyboardFocusGroup.types.d.ts +13 -0
- package/lib/typescript/src/components/KeyboardFocusGroup/KeyboardFocusGroup.types.d.ts.map +1 -0
- package/lib/typescript/src/components/KeyboardFocusLock/FocusFrame/FocusFrame.android.d.ts +1 -1
- package/lib/typescript/src/components/KeyboardFocusLock/FocusFrame/FocusFrame.android.d.ts.map +1 -1
- package/lib/typescript/src/components/KeyboardFocusLock/FocusTrap/FocusTrap.android.d.ts +1 -1
- package/lib/typescript/src/components/KeyboardFocusLock/FocusTrap/FocusTrap.android.d.ts.map +1 -1
- package/lib/typescript/src/components/KeyboardFocusLock/FocusTrap/FocusTrap.d.ts +1 -1
- package/lib/typescript/src/components/KeyboardFocusLock/FocusTrap/FocusTrap.d.ts.map +1 -1
- package/lib/typescript/src/components/KeyboardFocusLock/KeyboardFocusLockBase/KeyboardFocusLockBase.d.ts +1 -1
- package/lib/typescript/src/components/KeyboardFocusLock/KeyboardFocusLockBase/KeyboardFocusLockBase.d.ts.map +1 -1
- package/lib/typescript/src/components/KeyboardFocusView/KeyboardFocusView.d.ts +28 -18
- package/lib/typescript/src/components/KeyboardFocusView/KeyboardFocusView.d.ts.map +1 -1
- package/lib/typescript/src/components/Touchable/Pressable.d.ts +14 -14
- package/lib/typescript/src/components/Touchable/Pressable.d.ts.map +1 -1
- package/lib/typescript/src/components/index.d.ts +5 -0
- package/lib/typescript/src/components/index.d.ts.map +1 -1
- package/lib/typescript/src/index.d.ts +694 -9
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/lib/typescript/src/nativeSpec/ExternalKeyboardLockViewNativeComponent.d.ts +2 -4
- package/lib/typescript/src/nativeSpec/ExternalKeyboardLockViewNativeComponent.d.ts.map +1 -1
- package/lib/typescript/src/nativeSpec/ExternalKeyboardViewNativeComponent.d.ts +6 -7
- package/lib/typescript/src/nativeSpec/ExternalKeyboardViewNativeComponent.d.ts.map +1 -1
- package/lib/typescript/src/nativeSpec/KeyboardFocusGroupNativeComponent.d.ts +2 -4
- package/lib/typescript/src/nativeSpec/KeyboardFocusGroupNativeComponent.d.ts.map +1 -1
- package/lib/typescript/src/nativeSpec/TextInputFocusWrapperNativeComponent.d.ts +4 -4
- package/lib/typescript/src/nativeSpec/TextInputFocusWrapperNativeComponent.d.ts.map +1 -1
- package/lib/typescript/src/types/KeyboardFocusLock.types.d.ts +15 -1
- package/lib/typescript/src/types/KeyboardFocusLock.types.d.ts.map +1 -1
- package/lib/typescript/src/types/KeyboardFocusView.types.d.ts +16 -14
- package/lib/typescript/src/types/KeyboardFocusView.types.d.ts.map +1 -1
- package/lib/typescript/src/types/baseKeyboardView.types.d.ts +119 -0
- package/lib/typescript/src/types/baseKeyboardView.types.d.ts.map +1 -0
- package/lib/typescript/src/types/focus.types.d.ts +35 -0
- package/lib/typescript/src/types/focus.types.d.ts.map +1 -0
- package/lib/typescript/src/types/focusOrder.types.d.ts +57 -0
- package/lib/typescript/src/types/focusOrder.types.d.ts.map +1 -0
- package/lib/typescript/src/types/focusStyle.types.d.ts +11 -0
- package/lib/typescript/src/types/focusStyle.types.d.ts.map +1 -0
- package/lib/typescript/src/types/index.d.ts +11 -2
- package/lib/typescript/src/types/index.d.ts.map +1 -1
- package/lib/typescript/src/types/keyPress.types.d.ts +7 -0
- package/lib/typescript/src/types/keyPress.types.d.ts.map +1 -0
- package/lib/typescript/src/types/keyboardInput.types.d.ts +53 -0
- package/lib/typescript/src/types/keyboardInput.types.d.ts.map +1 -0
- package/lib/typescript/src/types/withKeyboardFocus.types.d.ts +109 -0
- package/lib/typescript/src/types/withKeyboardFocus.types.d.ts.map +1 -0
- package/lib/typescript/src/utils/mapLockFocus.d.ts +3 -0
- package/lib/typescript/src/utils/mapLockFocus.d.ts.map +1 -0
- package/lib/typescript/src/utils/useFocusStyle.d.ts +26 -34
- package/lib/typescript/src/utils/useFocusStyle.d.ts.map +1 -1
- package/lib/typescript/src/utils/useKeyboardFocusContainer.d.ts +898 -0
- package/lib/typescript/src/utils/useKeyboardFocusContainer.d.ts.map +1 -0
- package/lib/typescript/src/utils/useKeyboardPress/useKeyboardPress.android.d.ts +2 -2
- package/lib/typescript/src/utils/useKeyboardPress/useKeyboardPress.android.d.ts.map +1 -1
- package/lib/typescript/src/utils/useKeyboardPress/useKeyboardPress.d.ts +4 -3
- package/lib/typescript/src/utils/useKeyboardPress/useKeyboardPress.d.ts.map +1 -1
- package/lib/typescript/src/utils/useKeyboardPress/useKeyboardPress.ios.d.ts +3 -3
- package/lib/typescript/src/utils/useKeyboardPress/useKeyboardPress.ios.d.ts.map +1 -1
- package/lib/typescript/src/utils/useKeyboardPress/useKeyboardPress.types.d.ts +1 -2
- package/lib/typescript/src/utils/useKeyboardPress/useKeyboardPress.types.d.ts.map +1 -1
- package/lib/typescript/src/utils/useKeyboardPressState.d.ts +29 -0
- package/lib/typescript/src/utils/useKeyboardPressState.d.ts.map +1 -0
- package/lib/typescript/src/utils/useOnFocusChange.d.ts +3 -3
- package/lib/typescript/src/utils/useOnFocusChange.d.ts.map +1 -1
- package/lib/typescript/src/utils/useOrderValidation.d.ts +8 -0
- package/lib/typescript/src/utils/useOrderValidation.d.ts.map +1 -0
- package/lib/typescript/src/utils/useRenderedChildren.d.ts +18 -0
- package/lib/typescript/src/utils/useRenderedChildren.d.ts.map +1 -0
- package/lib/typescript/src/utils/useWrappedOrderProps.d.ts +13 -0
- package/lib/typescript/src/utils/useWrappedOrderProps.d.ts.map +1 -0
- package/lib/typescript/src/utils/withKeyboardFocus.d.ts +3 -4
- package/lib/typescript/src/utils/withKeyboardFocus.d.ts.map +1 -1
- package/package.json +4 -2
- package/src/components/BaseKeyboardView/BaseKeyboardView.tsx +74 -94
- package/src/components/KeyboardExtendedInput/KeyboardExtendedInput.tsx +49 -149
- package/src/components/KeyboardFocusGroup/KeyboardFocusGroup.android.tsx +23 -32
- package/src/components/KeyboardFocusGroup/KeyboardFocusGroup.ios.tsx +32 -41
- package/src/components/KeyboardFocusGroup/KeyboardFocusGroup.tsx +3 -14
- package/src/components/KeyboardFocusGroup/KeyboardFocusGroup.types.ts +15 -0
- package/src/components/KeyboardFocusLock/FocusFrame/FocusFrame.android.tsx +2 -2
- package/src/components/KeyboardFocusLock/FocusTrap/FocusTrap.android.tsx +2 -2
- package/src/components/KeyboardFocusLock/FocusTrap/FocusTrap.tsx +1 -1
- package/src/components/KeyboardFocusLock/KeyboardFocusLockBase/KeyboardFocusLockBase.tsx +2 -2
- package/src/components/KeyboardFocusView/KeyboardFocusView.tsx +29 -68
- package/src/components/Touchable/Pressable.tsx +2 -2
- package/src/components/index.ts +12 -0
- package/src/index.tsx +44 -32
- package/src/nativeSpec/ExternalKeyboardLockViewNativeComponent.ts +1 -3
- package/src/nativeSpec/ExternalKeyboardViewNativeComponent.ts +12 -9
- package/src/nativeSpec/KeyboardFocusGroupNativeComponent.ts +5 -3
- package/src/nativeSpec/TextInputFocusWrapperNativeComponent.ts +7 -3
- package/src/types/KeyboardFocusLock.types.ts +16 -1
- package/src/types/KeyboardFocusView.types.ts +17 -18
- package/src/types/baseKeyboardView.types.ts +122 -0
- package/src/types/focus.types.ts +40 -0
- package/src/types/focusOrder.types.ts +59 -0
- package/src/types/{FocusStyle.ts → focusStyle.types.ts} +5 -0
- package/src/types/index.ts +32 -2
- package/src/types/keyPress.types.ts +8 -0
- package/src/types/keyboardInput.types.ts +81 -0
- package/src/types/withKeyboardFocus.types.ts +178 -0
- package/src/utils/mapLockFocus.ts +31 -0
- package/src/utils/useFocusStyle.tsx +13 -41
- package/src/utils/useKeyboardFocusContainer.ts +102 -0
- package/src/utils/useKeyboardPress/useKeyboardPress.android.ts +4 -7
- package/src/utils/useKeyboardPress/useKeyboardPress.ios.ts +3 -6
- package/src/utils/useKeyboardPress/useKeyboardPress.ts +9 -7
- package/src/utils/useKeyboardPress/useKeyboardPress.types.ts +1 -2
- package/src/utils/useKeyboardPressState.ts +81 -0
- package/src/utils/useOnFocusChange.ts +4 -7
- package/src/utils/useOrderValidation.ts +74 -0
- package/src/utils/useRenderedChildren.ts +42 -0
- package/src/utils/useWrappedOrderProps.ts +48 -0
- package/src/utils/withKeyboardFocus.tsx +105 -125
- package/lib/commonjs/components/KeyboardExtendedInput/KeyboardExtendedInput.types.js.map +0 -1
- package/lib/commonjs/components/KeyboardFocusView/hooks/index.js +0 -13
- package/lib/commonjs/components/KeyboardFocusView/hooks/index.js.map +0 -1
- package/lib/commonjs/components/KeyboardFocusView/hooks/useFocusStyle/index.js +0 -13
- package/lib/commonjs/components/KeyboardFocusView/hooks/useFocusStyle/index.js.map +0 -1
- package/lib/commonjs/components/KeyboardFocusView/hooks/useFocusStyle/useFocusStyle.js +0 -33
- package/lib/commonjs/components/KeyboardFocusView/hooks/useFocusStyle/useFocusStyle.js.map +0 -1
- package/lib/commonjs/components/KeyboardFocusView/hooks/useFocusStyle/useTintStyle.js +0 -39
- package/lib/commonjs/components/KeyboardFocusView/hooks/useFocusStyle/useTintStyle.js.map +0 -1
- package/lib/commonjs/components/RenderPropComponent/RenderPropComponent.js +0 -23
- package/lib/commonjs/components/RenderPropComponent/RenderPropComponent.js.map +0 -1
- package/lib/commonjs/types/BaseKeyboardView.js +0 -18
- package/lib/commonjs/types/BaseKeyboardView.js.map +0 -1
- package/lib/module/components/KeyboardExtendedInput/KeyboardExtendedInput.types.js +0 -4
- package/lib/module/components/KeyboardExtendedInput/KeyboardExtendedInput.types.js.map +0 -1
- package/lib/module/components/KeyboardFocusView/hooks/index.js +0 -4
- package/lib/module/components/KeyboardFocusView/hooks/index.js.map +0 -1
- package/lib/module/components/KeyboardFocusView/hooks/useFocusStyle/index.js +0 -4
- package/lib/module/components/KeyboardFocusView/hooks/useFocusStyle/index.js.map +0 -1
- package/lib/module/components/KeyboardFocusView/hooks/useFocusStyle/useFocusStyle.js +0 -28
- package/lib/module/components/KeyboardFocusView/hooks/useFocusStyle/useFocusStyle.js.map +0 -1
- package/lib/module/components/KeyboardFocusView/hooks/useFocusStyle/useTintStyle.js +0 -34
- package/lib/module/components/KeyboardFocusView/hooks/useFocusStyle/useTintStyle.js.map +0 -1
- package/lib/module/components/RenderPropComponent/RenderPropComponent.js +0 -17
- package/lib/module/components/RenderPropComponent/RenderPropComponent.js.map +0 -1
- package/lib/module/types/BaseKeyboardView.js +0 -14
- package/lib/module/types/BaseKeyboardView.js.map +0 -1
- package/lib/module/types/FocusStyle.js +0 -4
- package/lib/module/types/WithKeyboardFocus.js +0 -4
- package/lib/typescript/src/components/KeyboardExtendedInput/KeyboardExtendedInput.types.d.ts +0 -45
- package/lib/typescript/src/components/KeyboardExtendedInput/KeyboardExtendedInput.types.d.ts.map +0 -1
- package/lib/typescript/src/components/KeyboardFocusView/hooks/index.d.ts +0 -2
- package/lib/typescript/src/components/KeyboardFocusView/hooks/index.d.ts.map +0 -1
- package/lib/typescript/src/components/KeyboardFocusView/hooks/useFocusStyle/index.d.ts +0 -2
- package/lib/typescript/src/components/KeyboardFocusView/hooks/useFocusStyle/index.d.ts.map +0 -1
- package/lib/typescript/src/components/KeyboardFocusView/hooks/useFocusStyle/useFocusStyle.d.ts +0 -175
- package/lib/typescript/src/components/KeyboardFocusView/hooks/useFocusStyle/useFocusStyle.d.ts.map +0 -1
- package/lib/typescript/src/components/KeyboardFocusView/hooks/useFocusStyle/useTintStyle.d.ts +0 -181
- package/lib/typescript/src/components/KeyboardFocusView/hooks/useFocusStyle/useTintStyle.d.ts.map +0 -1
- package/lib/typescript/src/components/RenderPropComponent/RenderPropComponent.d.ts +0 -6
- package/lib/typescript/src/components/RenderPropComponent/RenderPropComponent.d.ts.map +0 -1
- package/lib/typescript/src/types/BaseKeyboardView.d.ts +0 -70
- package/lib/typescript/src/types/BaseKeyboardView.d.ts.map +0 -1
- package/lib/typescript/src/types/FocusStyle.d.ts +0 -6
- package/lib/typescript/src/types/FocusStyle.d.ts.map +0 -1
- package/lib/typescript/src/types/WithKeyboardFocus.d.ts +0 -47
- package/lib/typescript/src/types/WithKeyboardFocus.d.ts.map +0 -1
- package/src/components/KeyboardExtendedInput/KeyboardExtendedInput.types.ts +0 -73
- package/src/components/KeyboardFocusView/hooks/index.ts +0 -1
- package/src/components/KeyboardFocusView/hooks/useFocusStyle/index.ts +0 -1
- package/src/components/KeyboardFocusView/hooks/useFocusStyle/useFocusStyle.ts +0 -34
- package/src/components/KeyboardFocusView/hooks/useFocusStyle/useTintStyle.ts +0 -41
- package/src/components/RenderPropComponent/RenderPropComponent.tsx +0 -18
- package/src/types/BaseKeyboardView.ts +0 -74
- package/src/types/WithKeyboardFocus.ts +0 -115
|
@@ -1,64 +1,63 @@
|
|
|
1
|
-
import React, {
|
|
2
|
-
import {
|
|
1
|
+
import React, { type RefObject, useMemo } from 'react';
|
|
2
|
+
import { Pressable as RNPressable, View, type ViewProps } from 'react-native';
|
|
3
3
|
import { BaseKeyboardView } from '../components';
|
|
4
|
-
import type { KeyboardFocus, OnKeyPress } from '../types/BaseKeyboardView';
|
|
5
|
-
import { useFocusStyle } from './useFocusStyle';
|
|
6
4
|
import type {
|
|
5
|
+
BaseKeyboardViewType,
|
|
7
6
|
KeyboardPressType,
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
import {
|
|
7
|
+
OnKeyPress,
|
|
8
|
+
WithKeyboardFocusProps,
|
|
9
|
+
KeyboardFocusableComponent,
|
|
10
|
+
} from '../types';
|
|
11
|
+
import { useKeyboardFocusContainer } from './useKeyboardFocusContainer';
|
|
12
|
+
import { useRenderedChildren } from './useRenderedChildren';
|
|
13
13
|
import { IsViewFocusedContext } from '../context/IsViewFocusedContext';
|
|
14
|
-
import type { FocusViewProps } from '../types/KeyboardFocusView.types';
|
|
15
14
|
|
|
16
15
|
export const withKeyboardFocus = <
|
|
17
16
|
ComponentProps extends object,
|
|
18
17
|
ViewStyleType,
|
|
19
18
|
ViewType = View
|
|
20
19
|
>(
|
|
21
|
-
Component:
|
|
20
|
+
Component: KeyboardFocusableComponent<ComponentProps>
|
|
22
21
|
) => {
|
|
23
22
|
const WithKeyboardFocus = React.memo(
|
|
24
23
|
React.forwardRef<
|
|
25
|
-
|
|
26
|
-
|
|
24
|
+
BaseKeyboardViewType | View,
|
|
25
|
+
WithKeyboardFocusProps<ComponentProps, ViewStyleType, ViewType>
|
|
27
26
|
>((allProps, ref) => {
|
|
28
27
|
const {
|
|
29
|
-
|
|
30
|
-
autoFocus,
|
|
28
|
+
// Style
|
|
31
29
|
focusStyle,
|
|
32
30
|
style,
|
|
33
31
|
containerStyle,
|
|
34
|
-
|
|
32
|
+
containerFocusStyle,
|
|
33
|
+
withPressedStyle = false,
|
|
34
|
+
// Press handlers
|
|
35
35
|
onPress,
|
|
36
36
|
onLongPress,
|
|
37
37
|
onKeyUpPress,
|
|
38
38
|
onKeyDownPress,
|
|
39
39
|
onPressIn,
|
|
40
40
|
onPressOut,
|
|
41
|
-
|
|
41
|
+
triggerCodes,
|
|
42
|
+
// Focus config
|
|
43
|
+
autoFocus,
|
|
44
|
+
focusableWrapper = true,
|
|
42
45
|
haloEffect = true,
|
|
43
|
-
canBeFocused = true,
|
|
44
46
|
focusable = true,
|
|
45
47
|
tintColor,
|
|
46
48
|
onFocus,
|
|
47
49
|
onBlur,
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
viewRef,
|
|
51
|
-
componentRef,
|
|
50
|
+
onFocusChange,
|
|
51
|
+
groupIdentifier,
|
|
52
52
|
haloCornerRadius,
|
|
53
53
|
haloExpendX,
|
|
54
54
|
haloExpendY,
|
|
55
|
-
groupIdentifier,
|
|
56
|
-
withPressedStyle = false,
|
|
57
|
-
triggerCodes,
|
|
58
|
-
exposeMethods,
|
|
59
|
-
enableA11yFocus,
|
|
60
55
|
screenAutoA11yFocus,
|
|
61
|
-
screenAutoA11yFocusDelay
|
|
56
|
+
screenAutoA11yFocusDelay,
|
|
57
|
+
lockFocus,
|
|
58
|
+
defaultFocusHighlightEnabled,
|
|
59
|
+
androidKeyboardPressState,
|
|
60
|
+
// Order
|
|
62
61
|
orderIndex,
|
|
63
62
|
orderGroup,
|
|
64
63
|
orderId,
|
|
@@ -70,123 +69,118 @@ export const withKeyboardFocus = <
|
|
|
70
69
|
orderBackward,
|
|
71
70
|
orderFirst,
|
|
72
71
|
orderLast,
|
|
73
|
-
|
|
72
|
+
// Refs & render
|
|
73
|
+
componentRef,
|
|
74
74
|
onComponentFocus,
|
|
75
75
|
onComponentBlur,
|
|
76
76
|
renderContent,
|
|
77
77
|
renderFocusable,
|
|
78
|
-
|
|
78
|
+
roundedHaloFix,
|
|
79
|
+
tintType,
|
|
80
|
+
// Deprecated no-ops: discard so they never reach the wrapped component.
|
|
81
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
82
|
+
enableA11yFocus: _enableA11yFocus,
|
|
83
|
+
children: userChildren,
|
|
79
84
|
...props
|
|
80
|
-
} = allProps as
|
|
85
|
+
} = allProps as WithKeyboardFocusProps<ComponentProps, ViewStyleType> & {
|
|
86
|
+
children?: React.ReactNode;
|
|
87
|
+
};
|
|
81
88
|
|
|
82
89
|
const {
|
|
83
90
|
focused,
|
|
91
|
+
keyboardPressed,
|
|
84
92
|
containerFocusedStyle,
|
|
85
93
|
componentStyleViewStyle,
|
|
86
94
|
onFocusChangeHandler,
|
|
87
|
-
|
|
88
|
-
|
|
95
|
+
onKeyUpPressHandler,
|
|
96
|
+
onKeyDownPressHandler,
|
|
97
|
+
onPressHandler,
|
|
98
|
+
onContextMenuHandler,
|
|
99
|
+
enableContextMenu,
|
|
100
|
+
} = useKeyboardFocusContainer({
|
|
89
101
|
onFocusChange,
|
|
90
|
-
tintColor,
|
|
91
102
|
focusStyle,
|
|
92
103
|
containerFocusStyle,
|
|
93
|
-
tintType,
|
|
94
104
|
style,
|
|
95
|
-
|
|
96
|
-
|
|
105
|
+
pressedStyleSignature:
|
|
106
|
+
withPressedStyle ||
|
|
107
|
+
(Component as unknown) === (RNPressable as unknown),
|
|
108
|
+
onKeyUpPress,
|
|
109
|
+
onKeyDownPress,
|
|
110
|
+
onPress: onPress as (e?: OnKeyPress) => void,
|
|
111
|
+
onLongPress: onLongPress as (e?: OnKeyPress) => void,
|
|
112
|
+
onPressIn: onPressIn as (e?: OnKeyPress) => void,
|
|
113
|
+
onPressOut: onPressOut as (e?: OnKeyPress) => void,
|
|
114
|
+
triggerCodes,
|
|
115
|
+
androidKeyboardPressState,
|
|
97
116
|
});
|
|
98
117
|
|
|
99
|
-
const
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
renderContent as unknown as (
|
|
119
|
-
s: Record<string, unknown>
|
|
120
|
-
) => React.ReactNode
|
|
121
|
-
)({ ...state, focused })
|
|
122
|
-
: undefined,
|
|
123
|
-
[renderContent, focused]
|
|
124
|
-
);
|
|
125
|
-
|
|
126
|
-
const focusableChildrenProp = useMemo(
|
|
127
|
-
() => (renderFocusable ? renderFocusable({ focused }) : undefined),
|
|
128
|
-
[renderFocusable, focused]
|
|
129
|
-
);
|
|
130
|
-
|
|
131
|
-
const hoverContent = useMemo(() => {
|
|
132
|
-
if (FocusHoverComponent) return FocusHoverComponent;
|
|
133
|
-
if (tintType === 'hover') {
|
|
134
|
-
return <View style={[hoverColor, styles.absolute, styles.opacity]} />;
|
|
118
|
+
const renderedChildren = useRenderedChildren({
|
|
119
|
+
focused,
|
|
120
|
+
keyboardPressed,
|
|
121
|
+
renderContent: renderContent as unknown as (
|
|
122
|
+
state: Record<string, unknown>
|
|
123
|
+
) => React.ReactNode,
|
|
124
|
+
renderFocusable,
|
|
125
|
+
});
|
|
126
|
+
// `renderContent`/`renderFocusable` are handled above; for a plain
|
|
127
|
+
// children render prop, fold the keyboard press into its `pressed` too so
|
|
128
|
+
// it stays consistent. A no-op unless `keyboardPressed` is active.
|
|
129
|
+
const childContent = useMemo(() => {
|
|
130
|
+
if (renderedChildren !== undefined) return renderedChildren;
|
|
131
|
+
if (keyboardPressed && typeof userChildren === 'function') {
|
|
132
|
+
const childrenFn = userChildren as (
|
|
133
|
+
state: Record<string, unknown>
|
|
134
|
+
) => React.ReactNode;
|
|
135
|
+
return (state: Record<string, unknown>) =>
|
|
136
|
+
childrenFn({ ...state, pressed: true });
|
|
135
137
|
}
|
|
136
|
-
return
|
|
137
|
-
}, [
|
|
138
|
-
|
|
139
|
-
const focusOrderProps = {
|
|
140
|
-
orderIndex,
|
|
141
|
-
orderGroup,
|
|
142
|
-
orderId,
|
|
143
|
-
orderLeft,
|
|
144
|
-
orderRight,
|
|
145
|
-
orderUp,
|
|
146
|
-
orderDown,
|
|
147
|
-
orderForward,
|
|
148
|
-
orderBackward,
|
|
149
|
-
orderFirst,
|
|
150
|
-
orderLast,
|
|
151
|
-
};
|
|
138
|
+
return userChildren;
|
|
139
|
+
}, [renderedChildren, userChildren, keyboardPressed]);
|
|
152
140
|
|
|
153
|
-
const
|
|
154
|
-
(
|
|
155
|
-
|
|
141
|
+
const containerStyleArr = useMemo(
|
|
142
|
+
() => [containerStyle as ViewProps['style'], containerFocusedStyle],
|
|
143
|
+
[containerStyle, containerFocusedStyle]
|
|
144
|
+
);
|
|
156
145
|
|
|
157
146
|
return (
|
|
158
147
|
<IsViewFocusedContext.Provider value={focused}>
|
|
159
148
|
<BaseKeyboardView
|
|
160
|
-
style={
|
|
161
|
-
containerStyle as ViewProps['style'],
|
|
162
|
-
containerFocusedStyle,
|
|
163
|
-
]}
|
|
149
|
+
style={containerStyleArr}
|
|
164
150
|
defaultFocusHighlightEnabled={defaultFocusHighlightEnabled}
|
|
165
|
-
ref={ref as RefObject<
|
|
166
|
-
viewRef={viewRef}
|
|
151
|
+
ref={ref as RefObject<BaseKeyboardViewType | View>}
|
|
167
152
|
onKeyUpPress={onKeyUpPressHandler}
|
|
168
153
|
onKeyDownPress={onKeyDownPressHandler}
|
|
169
|
-
onFocus={onFocus
|
|
170
|
-
onBlur={onBlur
|
|
154
|
+
onFocus={onFocus ?? undefined}
|
|
155
|
+
onBlur={onBlur ?? undefined}
|
|
171
156
|
onFocusChange={onFocusChangeHandler}
|
|
172
157
|
onContextMenuPress={onContextMenuHandler}
|
|
173
|
-
enableContextMenu={
|
|
174
|
-
haloEffect={
|
|
158
|
+
enableContextMenu={enableContextMenu}
|
|
159
|
+
haloEffect={haloEffect}
|
|
160
|
+
tintType={tintType}
|
|
175
161
|
haloCornerRadius={haloCornerRadius}
|
|
176
162
|
haloExpendX={haloExpendX}
|
|
177
163
|
haloExpendY={haloExpendY}
|
|
178
164
|
autoFocus={autoFocus}
|
|
179
|
-
canBeFocused={canBeFocused}
|
|
180
165
|
focusable={focusable}
|
|
181
166
|
tintColor={tintColor}
|
|
182
|
-
|
|
167
|
+
focusableWrapper={focusableWrapper}
|
|
183
168
|
groupIdentifier={groupIdentifier}
|
|
184
|
-
exposeMethods={exposeMethods}
|
|
185
|
-
enableA11yFocus={enableA11yFocus}
|
|
186
169
|
screenAutoA11yFocus={screenAutoA11yFocus}
|
|
187
170
|
screenAutoA11yFocusDelay={screenAutoA11yFocusDelay}
|
|
188
171
|
lockFocus={lockFocus}
|
|
189
|
-
{
|
|
172
|
+
roundedHaloFix={roundedHaloFix}
|
|
173
|
+
orderIndex={orderIndex}
|
|
174
|
+
orderGroup={orderGroup}
|
|
175
|
+
orderId={orderId}
|
|
176
|
+
orderLeft={orderLeft}
|
|
177
|
+
orderRight={orderRight}
|
|
178
|
+
orderUp={orderUp}
|
|
179
|
+
orderDown={orderDown}
|
|
180
|
+
orderForward={orderForward}
|
|
181
|
+
orderBackward={orderBackward}
|
|
182
|
+
orderFirst={orderFirst}
|
|
183
|
+
orderLast={orderLast}
|
|
190
184
|
>
|
|
191
185
|
<Component
|
|
192
186
|
ref={componentRef}
|
|
@@ -205,15 +199,14 @@ export const withKeyboardFocus = <
|
|
|
205
199
|
}
|
|
206
200
|
onFocus={onComponentFocus}
|
|
207
201
|
onBlur={onComponentBlur}
|
|
202
|
+
// forwarded to the child so Pressable-like components disable press handling when false
|
|
203
|
+
focusable={focusable}
|
|
208
204
|
{...(props as unknown as ComponentProps)}
|
|
209
|
-
{...(
|
|
205
|
+
{...(childContent !== undefined &&
|
|
210
206
|
({
|
|
211
|
-
children:
|
|
207
|
+
children: childContent,
|
|
212
208
|
} as unknown as Partial<ComponentProps>))}
|
|
213
209
|
/>
|
|
214
|
-
{focused && hoverContent && (
|
|
215
|
-
<RenderPropComponent render={hoverContent} />
|
|
216
|
-
)}
|
|
217
210
|
</BaseKeyboardView>
|
|
218
211
|
</IsViewFocusedContext.Provider>
|
|
219
212
|
);
|
|
@@ -226,16 +219,3 @@ export const withKeyboardFocus = <
|
|
|
226
219
|
|
|
227
220
|
return WithKeyboardFocus;
|
|
228
221
|
};
|
|
229
|
-
|
|
230
|
-
const styles = StyleSheet.create({
|
|
231
|
-
absolute: {
|
|
232
|
-
position: 'absolute',
|
|
233
|
-
top: 0,
|
|
234
|
-
left: 0,
|
|
235
|
-
right: 0,
|
|
236
|
-
bottom: 0,
|
|
237
|
-
},
|
|
238
|
-
opacity: {
|
|
239
|
-
opacity: 0.3,
|
|
240
|
-
},
|
|
241
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["components/KeyboardExtendedInput/KeyboardExtendedInput.types.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -1,13 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_useFocusStyle","require"],"sourceRoot":"../../../../../src","sources":["components/KeyboardFocusView/hooks/index.ts"],"mappings":";;;;;;;;;;;AAAA,IAAAA,cAAA,GAAAC,OAAA","ignoreList":[]}
|
|
@@ -1,13 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_useFocusStyle","require"],"sourceRoot":"../../../../../../src","sources":["components/KeyboardFocusView/hooks/useFocusStyle/index.ts"],"mappings":";;;;;;;;;;;AAAA,IAAAA,cAAA,GAAAC,OAAA","ignoreList":[]}
|
|
@@ -1,33 +0,0 @@
|
|
|
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 = (0, _react.useCallback)(isFocused => {
|
|
12
|
-
setFocusStatus(isFocused);
|
|
13
|
-
onFocusChange?.(isFocused);
|
|
14
|
-
}, [onFocusChange]);
|
|
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: '#dce3f9'
|
|
31
|
-
}
|
|
32
|
-
});
|
|
33
|
-
//# sourceMappingURL=useFocusStyle.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","_reactNative","useFocusStyle","focusStyle","onFocusChange","focused","setFocusStatus","useState","onFocusChangeHandler","useCallback","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,aAA4C,KACzC;EACH,MAAM,CAACC,OAAO,EAAEC,cAAc,CAAC,GAAG,IAAAC,eAAQ,EAAC,KAAK,CAAC;EAEjD,MAAMC,oBAAoB,GAAG,IAAAC,kBAAW,EACrCC,SAAkB,IAAK;IACtBJ,cAAc,CAACI,SAAS,CAAC;IACzBN,aAAa,GAAGM,SAAS,CAAC;EAC5B,CAAC,EACD,CAACN,aAAa,CAChB,CAAC;EAED,MAAMO,MAAM,GAAG,IAAAC,cAAO,EAAC,MAAM;IAC3B,IAAI,CAACT,UAAU,EAAE,OAAOE,OAAO,GAAGQ,MAAM,CAACC,gBAAgB,GAAGC,SAAS;IACrE,MAAMC,aAAa,GACjB,OAAOb,UAAU,KAAK,UAAU,GAAGA,UAAU,CAAC;MAAEE;IAAQ,CAAC,CAAC,GAAGF,UAAU;IACzE,OAAOE,OAAO,GAAGW,aAAa,GAAGD,SAAS;EAC5C,CAAC,EAAE,CAACV,OAAO,EAAEF,UAAU,CAAC,CAAC;EAEzB,OAAO;IACLK,oBAAoB;IACpBG;EACF,CAAC;AACH,CAAC;AAACM,OAAA,CAAAf,aAAA,GAAAA,aAAA;AAEF,MAAMW,MAAM,GAAGK,uBAAU,CAACC,MAAM,CAAC;EAC/BL,gBAAgB,EAAE;IAAEM,eAAe,EAAE;EAAU;AACjD,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.useTintStyle = void 0;
|
|
7
|
-
var _react = require("react");
|
|
8
|
-
const useTintStyle = ({
|
|
9
|
-
focusStyle,
|
|
10
|
-
haloEffect,
|
|
11
|
-
onFocusChange,
|
|
12
|
-
tintBackground = '#dce3f9'
|
|
13
|
-
}) => {
|
|
14
|
-
const [focused, setFocusStatus] = (0, _react.useState)(false);
|
|
15
|
-
const onFocusChangeHandler = (0, _react.useCallback)(isFocused => {
|
|
16
|
-
setFocusStatus(isFocused);
|
|
17
|
-
onFocusChange?.(isFocused);
|
|
18
|
-
}, [onFocusChange]);
|
|
19
|
-
const fStyle = (0, _react.useMemo)(() => {
|
|
20
|
-
if (!focusStyle) return undefined;
|
|
21
|
-
const specificStyle = typeof focusStyle === 'function' ? focusStyle({
|
|
22
|
-
focused
|
|
23
|
-
}) : focusStyle;
|
|
24
|
-
return focused ? specificStyle : undefined;
|
|
25
|
-
}, [focused, focusStyle]);
|
|
26
|
-
const tintStyle = (0, _react.useMemo)(() => {
|
|
27
|
-
if (haloEffect) return;
|
|
28
|
-
return focused ? {
|
|
29
|
-
backgroundColor: tintBackground
|
|
30
|
-
} : undefined;
|
|
31
|
-
}, [haloEffect, focused, tintBackground]);
|
|
32
|
-
return {
|
|
33
|
-
onFocusChangeHandler,
|
|
34
|
-
tintStyle,
|
|
35
|
-
fStyle
|
|
36
|
-
};
|
|
37
|
-
};
|
|
38
|
-
exports.useTintStyle = useTintStyle;
|
|
39
|
-
//# sourceMappingURL=useTintStyle.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","useTintStyle","focusStyle","haloEffect","onFocusChange","tintBackground","focused","setFocusStatus","useState","onFocusChangeHandler","useCallback","isFocused","fStyle","useMemo","undefined","specificStyle","tintStyle","backgroundColor","exports"],"sourceRoot":"../../../../../../src","sources":["components/KeyboardFocusView/hooks/useFocusStyle/useTintStyle.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAGO,MAAMC,YAAY,GAAGA,CAAC;EAC3BC,UAAU;EACVC,UAAU;EACVC,aAAa;EACbC,cAAc,GAAG;AAMnB,CAAC,KAAK;EACJ,MAAM,CAACC,OAAO,EAAEC,cAAc,CAAC,GAAG,IAAAC,eAAQ,EAAC,KAAK,CAAC;EAEjD,MAAMC,oBAAoB,GAAG,IAAAC,kBAAW,EACrCC,SAAkB,IAAK;IACtBJ,cAAc,CAACI,SAAS,CAAC;IACzBP,aAAa,GAAGO,SAAS,CAAC;EAC5B,CAAC,EACD,CAACP,aAAa,CAChB,CAAC;EAED,MAAMQ,MAAM,GAAG,IAAAC,cAAO,EAAC,MAAM;IAC3B,IAAI,CAACX,UAAU,EAAE,OAAOY,SAAS;IACjC,MAAMC,aAAa,GACjB,OAAOb,UAAU,KAAK,UAAU,GAAGA,UAAU,CAAC;MAAEI;IAAQ,CAAC,CAAC,GAAGJ,UAAU;IACzE,OAAOI,OAAO,GAAGS,aAAa,GAAGD,SAAS;EAC5C,CAAC,EAAE,CAACR,OAAO,EAAEJ,UAAU,CAAC,CAAC;EAEzB,MAAMc,SAAS,GAAG,IAAAH,cAAO,EAAC,MAAM;IAC9B,IAAIV,UAAU,EAAE;IAChB,OAAOG,OAAO,GAAG;MAAEW,eAAe,EAAEZ;IAAe,CAAC,GAAGS,SAAS;EAClE,CAAC,EAAE,CAACX,UAAU,EAAEG,OAAO,EAAED,cAAc,CAAC,CAAC;EACzC,OAAO;IACLI,oBAAoB;IACpBO,SAAS;IACTJ;EACF,CAAC;AACH,CAAC;AAACM,OAAA,CAAAjB,YAAA,GAAAA,YAAA","ignoreList":[]}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.RenderPropComponent = void 0;
|
|
7
|
-
var _react = _interopRequireDefault(require("react"));
|
|
8
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
9
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
10
|
-
const RenderPropComponent = ({
|
|
11
|
-
render
|
|
12
|
-
}) => {
|
|
13
|
-
if (/*#__PURE__*/_react.default.isValidElement(render)) {
|
|
14
|
-
return render;
|
|
15
|
-
} else if (typeof render === 'function') {
|
|
16
|
-
const Component = render;
|
|
17
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(Component, {});
|
|
18
|
-
} else {
|
|
19
|
-
return null;
|
|
20
|
-
}
|
|
21
|
-
};
|
|
22
|
-
exports.RenderPropComponent = RenderPropComponent;
|
|
23
|
-
//# sourceMappingURL=RenderPropComponent.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_jsxRuntime","e","__esModule","default","RenderPropComponent","render","React","isValidElement","Component","jsx","exports"],"sourceRoot":"../../../../src","sources":["components/RenderPropComponent/RenderPropComponent.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AAAyE,IAAAC,WAAA,GAAAD,OAAA;AAAA,SAAAD,uBAAAG,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAQlE,MAAMG,mBAAmB,GAAGA,CAAC;EAAEC;AAA+B,CAAC,KAAK;EACzE,iBAAIC,cAAK,CAACC,cAAc,CAACF,MAAM,CAAC,EAAE;IAChC,OAAOA,MAAM;EACf,CAAC,MAAM,IAAI,OAAOA,MAAM,KAAK,UAAU,EAAE;IACvC,MAAMG,SAAS,GAAGH,MAAM;IACxB,oBAAO,IAAAL,WAAA,CAAAS,GAAA,EAACD,SAAS,IAAE,CAAC;EACtB,CAAC,MAAM;IACL,OAAO,IAAI;EACb;AACF,CAAC;AAACE,OAAA,CAAAN,mBAAA,GAAAA,mBAAA","ignoreList":[]}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.LockFocusEnum = void 0;
|
|
7
|
-
let LockFocusEnum = exports.LockFocusEnum = /*#__PURE__*/function (LockFocusEnum) {
|
|
8
|
-
LockFocusEnum["Up"] = "up";
|
|
9
|
-
LockFocusEnum["Down"] = "down";
|
|
10
|
-
LockFocusEnum["Right"] = "right";
|
|
11
|
-
LockFocusEnum["Left"] = "left";
|
|
12
|
-
LockFocusEnum["Forward"] = "forward";
|
|
13
|
-
LockFocusEnum["Backward"] = "backward";
|
|
14
|
-
LockFocusEnum["First"] = "first";
|
|
15
|
-
LockFocusEnum["Last"] = "last";
|
|
16
|
-
return LockFocusEnum;
|
|
17
|
-
}({});
|
|
18
|
-
//# sourceMappingURL=BaseKeyboardView.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["LockFocusEnum","exports"],"sourceRoot":"../../../src","sources":["types/BaseKeyboardView.ts"],"mappings":";;;;;;IAmBYA,aAAa,GAAAC,OAAA,CAAAD,aAAA,0BAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAA,OAAbA,aAAa;AAAA","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["components/KeyboardExtendedInput/KeyboardExtendedInput.types.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["useFocusStyle"],"sourceRoot":"../../../../../src","sources":["components/KeyboardFocusView/hooks/index.ts"],"mappings":";;AAAA,SAASA,aAAa,QAAQ,iBAAiB","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["useFocusStyle"],"sourceRoot":"../../../../../../src","sources":["components/KeyboardFocusView/hooks/useFocusStyle/index.ts"],"mappings":";;AAAA,SAASA,aAAa,QAAQ,iBAAiB","ignoreList":[]}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import { useState, useMemo, useCallback } from 'react';
|
|
4
|
-
import { StyleSheet } from 'react-native';
|
|
5
|
-
export const useFocusStyle = (focusStyle, onFocusChange) => {
|
|
6
|
-
const [focused, setFocusStatus] = useState(false);
|
|
7
|
-
const onFocusChangeHandler = useCallback(isFocused => {
|
|
8
|
-
setFocusStatus(isFocused);
|
|
9
|
-
onFocusChange?.(isFocused);
|
|
10
|
-
}, [onFocusChange]);
|
|
11
|
-
const fStyle = useMemo(() => {
|
|
12
|
-
if (!focusStyle) return focused ? styles.defaultHighlight : undefined;
|
|
13
|
-
const specificStyle = typeof focusStyle === 'function' ? focusStyle({
|
|
14
|
-
focused
|
|
15
|
-
}) : focusStyle;
|
|
16
|
-
return focused ? specificStyle : undefined;
|
|
17
|
-
}, [focused, focusStyle]);
|
|
18
|
-
return {
|
|
19
|
-
onFocusChangeHandler,
|
|
20
|
-
fStyle
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
const styles = StyleSheet.create({
|
|
24
|
-
defaultHighlight: {
|
|
25
|
-
backgroundColor: '#dce3f9'
|
|
26
|
-
}
|
|
27
|
-
});
|
|
28
|
-
//# sourceMappingURL=useFocusStyle.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["useState","useMemo","useCallback","StyleSheet","useFocusStyle","focusStyle","onFocusChange","focused","setFocusStatus","onFocusChangeHandler","isFocused","fStyle","styles","defaultHighlight","undefined","specificStyle","create","backgroundColor"],"sourceRoot":"../../../../../../src","sources":["components/KeyboardFocusView/hooks/useFocusStyle/useFocusStyle.ts"],"mappings":";;AAAA,SAASA,QAAQ,EAAEC,OAAO,EAAEC,WAAW,QAAQ,OAAO;AACtD,SAASC,UAAU,QAAQ,cAAc;AAGzC,OAAO,MAAMC,aAAa,GAAGA,CAC3BC,UAAuB,EACvBC,aAA4C,KACzC;EACH,MAAM,CAACC,OAAO,EAAEC,cAAc,CAAC,GAAGR,QAAQ,CAAC,KAAK,CAAC;EAEjD,MAAMS,oBAAoB,GAAGP,WAAW,CACrCQ,SAAkB,IAAK;IACtBF,cAAc,CAACE,SAAS,CAAC;IACzBJ,aAAa,GAAGI,SAAS,CAAC;EAC5B,CAAC,EACD,CAACJ,aAAa,CAChB,CAAC;EAED,MAAMK,MAAM,GAAGV,OAAO,CAAC,MAAM;IAC3B,IAAI,CAACI,UAAU,EAAE,OAAOE,OAAO,GAAGK,MAAM,CAACC,gBAAgB,GAAGC,SAAS;IACrE,MAAMC,aAAa,GACjB,OAAOV,UAAU,KAAK,UAAU,GAAGA,UAAU,CAAC;MAAEE;IAAQ,CAAC,CAAC,GAAGF,UAAU;IACzE,OAAOE,OAAO,GAAGQ,aAAa,GAAGD,SAAS;EAC5C,CAAC,EAAE,CAACP,OAAO,EAAEF,UAAU,CAAC,CAAC;EAEzB,OAAO;IACLI,oBAAoB;IACpBE;EACF,CAAC;AACH,CAAC;AAED,MAAMC,MAAM,GAAGT,UAAU,CAACa,MAAM,CAAC;EAC/BH,gBAAgB,EAAE;IAAEI,eAAe,EAAE;EAAU;AACjD,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import { useState, useMemo, useCallback } from 'react';
|
|
4
|
-
export const useTintStyle = ({
|
|
5
|
-
focusStyle,
|
|
6
|
-
haloEffect,
|
|
7
|
-
onFocusChange,
|
|
8
|
-
tintBackground = '#dce3f9'
|
|
9
|
-
}) => {
|
|
10
|
-
const [focused, setFocusStatus] = useState(false);
|
|
11
|
-
const onFocusChangeHandler = useCallback(isFocused => {
|
|
12
|
-
setFocusStatus(isFocused);
|
|
13
|
-
onFocusChange?.(isFocused);
|
|
14
|
-
}, [onFocusChange]);
|
|
15
|
-
const fStyle = useMemo(() => {
|
|
16
|
-
if (!focusStyle) return undefined;
|
|
17
|
-
const specificStyle = typeof focusStyle === 'function' ? focusStyle({
|
|
18
|
-
focused
|
|
19
|
-
}) : focusStyle;
|
|
20
|
-
return focused ? specificStyle : undefined;
|
|
21
|
-
}, [focused, focusStyle]);
|
|
22
|
-
const tintStyle = useMemo(() => {
|
|
23
|
-
if (haloEffect) return;
|
|
24
|
-
return focused ? {
|
|
25
|
-
backgroundColor: tintBackground
|
|
26
|
-
} : undefined;
|
|
27
|
-
}, [haloEffect, focused, tintBackground]);
|
|
28
|
-
return {
|
|
29
|
-
onFocusChangeHandler,
|
|
30
|
-
tintStyle,
|
|
31
|
-
fStyle
|
|
32
|
-
};
|
|
33
|
-
};
|
|
34
|
-
//# sourceMappingURL=useTintStyle.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["useState","useMemo","useCallback","useTintStyle","focusStyle","haloEffect","onFocusChange","tintBackground","focused","setFocusStatus","onFocusChangeHandler","isFocused","fStyle","undefined","specificStyle","tintStyle","backgroundColor"],"sourceRoot":"../../../../../../src","sources":["components/KeyboardFocusView/hooks/useFocusStyle/useTintStyle.ts"],"mappings":";;AAAA,SAASA,QAAQ,EAAEC,OAAO,EAAEC,WAAW,QAAQ,OAAO;AAGtD,OAAO,MAAMC,YAAY,GAAGA,CAAC;EAC3BC,UAAU;EACVC,UAAU;EACVC,aAAa;EACbC,cAAc,GAAG;AAMnB,CAAC,KAAK;EACJ,MAAM,CAACC,OAAO,EAAEC,cAAc,CAAC,GAAGT,QAAQ,CAAC,KAAK,CAAC;EAEjD,MAAMU,oBAAoB,GAAGR,WAAW,CACrCS,SAAkB,IAAK;IACtBF,cAAc,CAACE,SAAS,CAAC;IACzBL,aAAa,GAAGK,SAAS,CAAC;EAC5B,CAAC,EACD,CAACL,aAAa,CAChB,CAAC;EAED,MAAMM,MAAM,GAAGX,OAAO,CAAC,MAAM;IAC3B,IAAI,CAACG,UAAU,EAAE,OAAOS,SAAS;IACjC,MAAMC,aAAa,GACjB,OAAOV,UAAU,KAAK,UAAU,GAAGA,UAAU,CAAC;MAAEI;IAAQ,CAAC,CAAC,GAAGJ,UAAU;IACzE,OAAOI,OAAO,GAAGM,aAAa,GAAGD,SAAS;EAC5C,CAAC,EAAE,CAACL,OAAO,EAAEJ,UAAU,CAAC,CAAC;EAEzB,MAAMW,SAAS,GAAGd,OAAO,CAAC,MAAM;IAC9B,IAAII,UAAU,EAAE;IAChB,OAAOG,OAAO,GAAG;MAAEQ,eAAe,EAAET;IAAe,CAAC,GAAGM,SAAS;EAClE,CAAC,EAAE,CAACR,UAAU,EAAEG,OAAO,EAAED,cAAc,CAAC,CAAC;EACzC,OAAO;IACLG,oBAAoB;IACpBK,SAAS;IACTH;EACF,CAAC;AACH,CAAC","ignoreList":[]}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import React from 'react';
|
|
4
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
|
-
export const RenderPropComponent = ({
|
|
6
|
-
render
|
|
7
|
-
}) => {
|
|
8
|
-
if (/*#__PURE__*/React.isValidElement(render)) {
|
|
9
|
-
return render;
|
|
10
|
-
} else if (typeof render === 'function') {
|
|
11
|
-
const Component = render;
|
|
12
|
-
return /*#__PURE__*/_jsx(Component, {});
|
|
13
|
-
} else {
|
|
14
|
-
return null;
|
|
15
|
-
}
|
|
16
|
-
};
|
|
17
|
-
//# sourceMappingURL=RenderPropComponent.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["React","jsx","_jsx","RenderPropComponent","render","isValidElement","Component"],"sourceRoot":"../../../../src","sources":["components/RenderPropComponent/RenderPropComponent.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAqD,OAAO;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAQzE,OAAO,MAAMC,mBAAmB,GAAGA,CAAC;EAAEC;AAA+B,CAAC,KAAK;EACzE,iBAAIJ,KAAK,CAACK,cAAc,CAACD,MAAM,CAAC,EAAE;IAChC,OAAOA,MAAM;EACf,CAAC,MAAM,IAAI,OAAOA,MAAM,KAAK,UAAU,EAAE;IACvC,MAAME,SAAS,GAAGF,MAAM;IACxB,oBAAOF,IAAA,CAACI,SAAS,IAAE,CAAC;EACtB,CAAC,MAAM;IACL,OAAO,IAAI;EACb;AACF,CAAC","ignoreList":[]}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
export let LockFocusEnum = /*#__PURE__*/function (LockFocusEnum) {
|
|
4
|
-
LockFocusEnum["Up"] = "up";
|
|
5
|
-
LockFocusEnum["Down"] = "down";
|
|
6
|
-
LockFocusEnum["Right"] = "right";
|
|
7
|
-
LockFocusEnum["Left"] = "left";
|
|
8
|
-
LockFocusEnum["Forward"] = "forward";
|
|
9
|
-
LockFocusEnum["Backward"] = "backward";
|
|
10
|
-
LockFocusEnum["First"] = "first";
|
|
11
|
-
LockFocusEnum["Last"] = "last";
|
|
12
|
-
return LockFocusEnum;
|
|
13
|
-
}({});
|
|
14
|
-
//# sourceMappingURL=BaseKeyboardView.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["LockFocusEnum"],"sourceRoot":"../../../src","sources":["types/BaseKeyboardView.ts"],"mappings":";;AAmBA,WAAYA,aAAa,0BAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAA,OAAbA,aAAa;AAAA","ignoreList":[]}
|