react-native-external-keyboard 0.9.1 → 0.11.1
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/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/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 +54 -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 -7
- 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/ExternalKeyboardViewNativeComponent.ts +6 -4
- package/lib/commonjs/nativeSpec/TextInputFocusWrapperNativeComponent.ts +2 -0
- 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/ExternalKeyboardViewNativeComponent.ts +6 -4
- package/lib/module/nativeSpec/TextInputFocusWrapperNativeComponent.ts +2 -0
- 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 +19 -125
- package/lib/typescript/src/components/BaseKeyboardView/BaseKeyboardView.d.ts.map +1 -1
- package/lib/typescript/src/components/KeyboardExtendedInput/KeyboardExtendedInput.d.ts +13 -204
- 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/FocusFrame/FocusFrame.d.ts +1 -1
- package/lib/typescript/src/components/KeyboardFocusLock/FocusFrame/FocusFrame.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 +2 -2
- 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 +20 -133
- package/lib/typescript/src/components/KeyboardFocusView/KeyboardFocusView.d.ts.map +1 -1
- package/lib/typescript/src/components/Touchable/Pressable.d.ts +3 -160
- 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/context/OrderFocusContext.d.ts +1 -1
- package/lib/typescript/src/context/OrderFocusContext.d.ts.map +1 -1
- package/lib/typescript/src/index.d.ts +48 -10
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/lib/typescript/src/nativeSpec/ExternalKeyboardLockViewNativeComponent.d.ts +1 -3
- package/lib/typescript/src/nativeSpec/ExternalKeyboardLockViewNativeComponent.d.ts.map +1 -1
- package/lib/typescript/src/nativeSpec/ExternalKeyboardViewNativeComponent.d.ts +5 -6
- package/lib/typescript/src/nativeSpec/ExternalKeyboardViewNativeComponent.d.ts.map +1 -1
- package/lib/typescript/src/nativeSpec/KeyboardFocusGroupNativeComponent.d.ts +1 -3
- package/lib/typescript/src/nativeSpec/KeyboardFocusGroupNativeComponent.d.ts.map +1 -1
- package/lib/typescript/src/nativeSpec/NativeExternalKeyboardModule.d.ts +1 -1
- package/lib/typescript/src/nativeSpec/TextInputFocusWrapperNativeComponent.d.ts +3 -3
- 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 +44 -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 +7 -1017
- package/lib/typescript/src/utils/useFocusStyle.d.ts.map +1 -1
- package/lib/typescript/src/utils/useKeyboardFocusContainer.d.ts +34 -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 -8
- package/lib/typescript/src/utils/withKeyboardFocus.d.ts.map +1 -1
- package/package.json +10 -5
- 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/ExternalKeyboardViewNativeComponent.ts +6 -4
- package/src/nativeSpec/TextInputFocusWrapperNativeComponent.ts +2 -0
- 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 +49 -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,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":[]}
|
package/lib/typescript/src/components/KeyboardExtendedInput/KeyboardExtendedInput.types.d.ts
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { type TextInputProps, type StyleProp, type ViewStyle, type ColorValue } from 'react-native';
|
|
2
|
-
import type { FocusStyle } from '../../types/FocusStyle';
|
|
3
|
-
import type { TintType } from '../../types/WithKeyboardFocus';
|
|
4
|
-
import { type RenderProp } from '../RenderPropComponent/RenderPropComponent';
|
|
5
|
-
import type { blurMap, focusMap } from './KeyboardExtendedInput.consts';
|
|
6
|
-
import type { LockFocusType } from '../../types/BaseKeyboardView';
|
|
7
|
-
export type ExtraKeyboardProps = {
|
|
8
|
-
focusType?: keyof typeof focusMap;
|
|
9
|
-
blurType?: keyof typeof blurMap;
|
|
10
|
-
containerStyle?: StyleProp<ViewStyle>;
|
|
11
|
-
onFocusChange?: (isFocused: boolean) => void;
|
|
12
|
-
focusStyle?: FocusStyle;
|
|
13
|
-
haloEffect?: boolean;
|
|
14
|
-
canBeFocusable?: boolean;
|
|
15
|
-
focusable?: boolean;
|
|
16
|
-
tintColor?: ColorValue;
|
|
17
|
-
tintType?: TintType;
|
|
18
|
-
containerFocusStyle?: FocusStyle;
|
|
19
|
-
FocusHoverComponent?: RenderProp;
|
|
20
|
-
submitBehavior?: string;
|
|
21
|
-
groupIdentifier?: string;
|
|
22
|
-
lockFocus?: LockFocusType[];
|
|
23
|
-
orderGroup?: string;
|
|
24
|
-
orderIndex?: number;
|
|
25
|
-
orderId?: string;
|
|
26
|
-
orderForward?: string;
|
|
27
|
-
orderBackward?: string;
|
|
28
|
-
orderLeft?: string;
|
|
29
|
-
orderRight?: string;
|
|
30
|
-
orderUp?: string;
|
|
31
|
-
orderDown?: string;
|
|
32
|
-
orderFirst?: string | null;
|
|
33
|
-
orderLast?: string | null;
|
|
34
|
-
orderPrefix?: string;
|
|
35
|
-
defaultFocusHighlightEnabled?: boolean;
|
|
36
|
-
};
|
|
37
|
-
type IgnoreForCompatibility = 'rejectResponderTermination' | 'selectionHandleColor' | 'cursorColor' | 'maxFontSizeMultiplier';
|
|
38
|
-
type CompatibleInputProp<TextInputPropsType extends object, CompatibilityProp extends IgnoreForCompatibility> = CompatibilityProp extends keyof TextInputPropsType ? TextInputPropsType[CompatibilityProp] : CompatibilityProp extends keyof TextInputProps ? TextInputProps[CompatibilityProp] : never;
|
|
39
|
-
type ReactNativeInputCompatibility<TextInputPropsType extends object = TextInputProps> = Omit<TextInputPropsType, IgnoreForCompatibility> & {
|
|
40
|
-
[CompatibilityProp in IgnoreForCompatibility]?: CompatibleInputProp<TextInputPropsType, CompatibilityProp> | null;
|
|
41
|
-
};
|
|
42
|
-
export type KeyboardInputPropsDeclaration<TextInputPropsType extends object = TextInputProps> = ReactNativeInputCompatibility<TextInputPropsType> & ExtraKeyboardProps;
|
|
43
|
-
export type KeyboardInputProps = KeyboardInputPropsDeclaration<TextInputProps>;
|
|
44
|
-
export {};
|
|
45
|
-
//# sourceMappingURL=KeyboardExtendedInput.types.d.ts.map
|
package/lib/typescript/src/components/KeyboardExtendedInput/KeyboardExtendedInput.types.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"KeyboardExtendedInput.types.d.ts","sourceRoot":"","sources":["../../../../../src/components/KeyboardExtendedInput/KeyboardExtendedInput.types.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,cAAc,EACnB,KAAK,SAAS,EACd,KAAK,SAAS,EACd,KAAK,UAAU,EAChB,MAAM,cAAc,CAAC;AAEtB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAC;AAC9D,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,4CAA4C,CAAC;AAC7E,OAAO,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AACxE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAElE,MAAM,MAAM,kBAAkB,GAAG;IAC/B,SAAS,CAAC,EAAE,MAAM,OAAO,QAAQ,CAAC;IAClC,QAAQ,CAAC,EAAE,MAAM,OAAO,OAAO,CAAC;IAChC,cAAc,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IACtC,aAAa,CAAC,EAAE,CAAC,SAAS,EAAE,OAAO,KAAK,IAAI,CAAC;IAC7C,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,UAAU,CAAC;IACvB,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,mBAAmB,CAAC,EAAE,UAAU,CAAC;IACjC,mBAAmB,CAAC,EAAE,UAAU,CAAC;IACjC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,aAAa,EAAE,CAAC;IAC5B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,4BAA4B,CAAC,EAAE,OAAO,CAAC;CACxC,CAAC;AAEF,KAAK,sBAAsB,GACvB,4BAA4B,GAC5B,sBAAsB,GACtB,aAAa,GACb,uBAAuB,CAAC;AAE5B,KAAK,mBAAmB,CACtB,kBAAkB,SAAS,MAAM,EACjC,iBAAiB,SAAS,sBAAsB,IAC9C,iBAAiB,SAAS,MAAM,kBAAkB,GAClD,kBAAkB,CAAC,iBAAiB,CAAC,GACrC,iBAAiB,SAAS,MAAM,cAAc,GAC9C,cAAc,CAAC,iBAAiB,CAAC,GACjC,KAAK,CAAC;AAEV,KAAK,6BAA6B,CAChC,kBAAkB,SAAS,MAAM,GAAG,cAAc,IAChD,IAAI,CAAC,kBAAkB,EAAE,sBAAsB,CAAC,GAAG;KACpD,iBAAiB,IAAI,sBAAsB,CAAC,CAAC,EAAE,mBAAmB,CACjE,kBAAkB,EAClB,iBAAiB,CAClB,GAAG,IAAI;CACT,CAAC;AAEF,MAAM,MAAM,6BAA6B,CACvC,kBAAkB,SAAS,MAAM,GAAG,cAAc,IAChD,6BAA6B,CAAC,kBAAkB,CAAC,GAAG,kBAAkB,CAAC;AAE3E,MAAM,MAAM,kBAAkB,GAAG,6BAA6B,CAAC,cAAc,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/KeyboardFocusView/hooks/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/KeyboardFocusView/hooks/useFocusStyle/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC"}
|
package/lib/typescript/src/components/KeyboardFocusView/hooks/useFocusStyle/useFocusStyle.d.ts
DELETED
|
@@ -1,175 +0,0 @@
|
|
|
1
|
-
import type { FocusStyle } from '../../../../types';
|
|
2
|
-
export declare const useFocusStyle: (focusStyle?: FocusStyle, onFocusChange?: (isFocused: boolean) => void) => {
|
|
3
|
-
onFocusChangeHandler: (isFocused: boolean) => void;
|
|
4
|
-
fStyle: import("react-native").StyleProp<Readonly<Omit<Readonly<Omit<Readonly<{
|
|
5
|
-
display?: "none" | "flex" | "contents";
|
|
6
|
-
width?: import("react-native").DimensionValue;
|
|
7
|
-
height?: import("react-native").DimensionValue;
|
|
8
|
-
bottom?: import("react-native").DimensionValue;
|
|
9
|
-
end?: import("react-native").DimensionValue;
|
|
10
|
-
left?: import("react-native").DimensionValue;
|
|
11
|
-
right?: import("react-native").DimensionValue;
|
|
12
|
-
start?: import("react-native").DimensionValue;
|
|
13
|
-
top?: import("react-native").DimensionValue;
|
|
14
|
-
inset?: import("react-native").DimensionValue;
|
|
15
|
-
insetBlock?: import("react-native").DimensionValue;
|
|
16
|
-
insetBlockEnd?: import("react-native").DimensionValue;
|
|
17
|
-
insetBlockStart?: import("react-native").DimensionValue;
|
|
18
|
-
insetInline?: import("react-native").DimensionValue;
|
|
19
|
-
insetInlineEnd?: import("react-native").DimensionValue;
|
|
20
|
-
insetInlineStart?: import("react-native").DimensionValue;
|
|
21
|
-
minWidth?: import("react-native").DimensionValue;
|
|
22
|
-
maxWidth?: import("react-native").DimensionValue;
|
|
23
|
-
minHeight?: import("react-native").DimensionValue;
|
|
24
|
-
maxHeight?: import("react-native").DimensionValue;
|
|
25
|
-
margin?: import("react-native").DimensionValue;
|
|
26
|
-
marginBlock?: import("react-native").DimensionValue;
|
|
27
|
-
marginBlockEnd?: import("react-native").DimensionValue;
|
|
28
|
-
marginBlockStart?: import("react-native").DimensionValue;
|
|
29
|
-
marginBottom?: import("react-native").DimensionValue;
|
|
30
|
-
marginEnd?: import("react-native").DimensionValue;
|
|
31
|
-
marginHorizontal?: import("react-native").DimensionValue;
|
|
32
|
-
marginInline?: import("react-native").DimensionValue;
|
|
33
|
-
marginInlineEnd?: import("react-native").DimensionValue;
|
|
34
|
-
marginInlineStart?: import("react-native").DimensionValue;
|
|
35
|
-
marginLeft?: import("react-native").DimensionValue;
|
|
36
|
-
marginRight?: import("react-native").DimensionValue;
|
|
37
|
-
marginStart?: import("react-native").DimensionValue;
|
|
38
|
-
marginTop?: import("react-native").DimensionValue;
|
|
39
|
-
marginVertical?: import("react-native").DimensionValue;
|
|
40
|
-
padding?: import("react-native").DimensionValue;
|
|
41
|
-
paddingBlock?: import("react-native").DimensionValue;
|
|
42
|
-
paddingBlockEnd?: import("react-native").DimensionValue;
|
|
43
|
-
paddingBlockStart?: import("react-native").DimensionValue;
|
|
44
|
-
paddingBottom?: import("react-native").DimensionValue;
|
|
45
|
-
paddingEnd?: import("react-native").DimensionValue;
|
|
46
|
-
paddingHorizontal?: import("react-native").DimensionValue;
|
|
47
|
-
paddingInline?: import("react-native").DimensionValue;
|
|
48
|
-
paddingInlineEnd?: import("react-native").DimensionValue;
|
|
49
|
-
paddingInlineStart?: import("react-native").DimensionValue;
|
|
50
|
-
paddingLeft?: import("react-native").DimensionValue;
|
|
51
|
-
paddingRight?: import("react-native").DimensionValue;
|
|
52
|
-
paddingStart?: import("react-native").DimensionValue;
|
|
53
|
-
paddingTop?: import("react-native").DimensionValue;
|
|
54
|
-
paddingVertical?: import("react-native").DimensionValue;
|
|
55
|
-
borderWidth?: number;
|
|
56
|
-
borderBottomWidth?: number;
|
|
57
|
-
borderEndWidth?: number;
|
|
58
|
-
borderLeftWidth?: number;
|
|
59
|
-
borderRightWidth?: number;
|
|
60
|
-
borderStartWidth?: number;
|
|
61
|
-
borderTopWidth?: number;
|
|
62
|
-
position?: "absolute" | "relative" | "static";
|
|
63
|
-
flexDirection?: "row" | "row-reverse" | "column" | "column-reverse";
|
|
64
|
-
flexWrap?: "wrap" | "nowrap" | "wrap-reverse";
|
|
65
|
-
justifyContent?: "flex-start" | "flex-end" | "center" | "space-between" | "space-around" | "space-evenly";
|
|
66
|
-
alignItems?: "flex-start" | "flex-end" | "center" | "stretch" | "baseline";
|
|
67
|
-
alignSelf?: "auto" | "flex-start" | "flex-end" | "center" | "stretch" | "baseline";
|
|
68
|
-
alignContent?: "flex-start" | "flex-end" | "center" | "stretch" | "space-between" | "space-around" | "space-evenly";
|
|
69
|
-
overflow?: "visible" | "hidden" | "scroll";
|
|
70
|
-
flex?: number;
|
|
71
|
-
flexGrow?: number;
|
|
72
|
-
flexShrink?: number;
|
|
73
|
-
flexBasis?: number | string;
|
|
74
|
-
aspectRatio?: number | string;
|
|
75
|
-
boxSizing?: "border-box" | "content-box";
|
|
76
|
-
zIndex?: number;
|
|
77
|
-
direction?: "inherit" | "ltr" | "rtl";
|
|
78
|
-
rowGap?: number | string;
|
|
79
|
-
columnGap?: number | string;
|
|
80
|
-
gap?: number | string;
|
|
81
|
-
}>, "filter" | "pointerEvents" | "shadowColor" | "shadowOffset" | "shadowOpacity" | "shadowRadius" | "transform" | "transformOrigin" | "backfaceVisibility" | "backgroundColor" | "borderColor" | "borderCurve" | "borderBottomColor" | "borderEndColor" | "borderLeftColor" | "borderRightColor" | "borderStartColor" | "borderTopColor" | "borderBlockColor" | "borderBlockEndColor" | "borderBlockStartColor" | "borderRadius" | "borderBottomEndRadius" | "borderBottomLeftRadius" | "borderBottomRightRadius" | "borderBottomStartRadius" | "borderEndEndRadius" | "borderEndStartRadius" | "borderStartEndRadius" | "borderStartStartRadius" | "borderTopEndRadius" | "borderTopLeftRadius" | "borderTopRightRadius" | "borderTopStartRadius" | "borderStyle" | "borderWidth" | "borderBottomWidth" | "borderEndWidth" | "borderLeftWidth" | "borderRightWidth" | "borderStartWidth" | "borderTopWidth" | "opacity" | "outlineColor" | "outlineOffset" | "outlineStyle" | "outlineWidth" | "elevation" | "cursor" | "boxShadow" | "mixBlendMode" | "experimental_backgroundImage" | "experimental_backgroundSize" | "experimental_backgroundPosition" | "experimental_backgroundRepeat" | "isolation"> & Omit<Readonly<Omit<Readonly<{
|
|
82
|
-
shadowColor?: import("react-native/types_generated/Libraries/StyleSheet/StyleSheetTypes").____ColorValue_Internal;
|
|
83
|
-
shadowOffset?: Readonly<{
|
|
84
|
-
width?: number;
|
|
85
|
-
height?: number;
|
|
86
|
-
}>;
|
|
87
|
-
shadowOpacity?: number;
|
|
88
|
-
shadowRadius?: number;
|
|
89
|
-
}>, never> & Omit<Readonly<{}>, never>>, "filter" | "pointerEvents" | "transform" | "transformOrigin" | "backfaceVisibility" | "backgroundColor" | "borderColor" | "borderCurve" | "borderBottomColor" | "borderEndColor" | "borderLeftColor" | "borderRightColor" | "borderStartColor" | "borderTopColor" | "borderBlockColor" | "borderBlockEndColor" | "borderBlockStartColor" | "borderRadius" | "borderBottomEndRadius" | "borderBottomLeftRadius" | "borderBottomRightRadius" | "borderBottomStartRadius" | "borderEndEndRadius" | "borderEndStartRadius" | "borderStartEndRadius" | "borderStartStartRadius" | "borderTopEndRadius" | "borderTopLeftRadius" | "borderTopRightRadius" | "borderTopStartRadius" | "borderStyle" | "borderWidth" | "borderBottomWidth" | "borderEndWidth" | "borderLeftWidth" | "borderRightWidth" | "borderStartWidth" | "borderTopWidth" | "opacity" | "outlineColor" | "outlineOffset" | "outlineStyle" | "outlineWidth" | "elevation" | "cursor" | "boxShadow" | "mixBlendMode" | "experimental_backgroundImage" | "experimental_backgroundSize" | "experimental_backgroundPosition" | "experimental_backgroundRepeat" | "isolation"> & Omit<Readonly<{
|
|
90
|
-
transform?: ReadonlyArray<Readonly<import("react-native/types_generated/Libraries/StyleSheet/private/_TransformStyle").MaximumOneOf<import("react-native/types_generated/Libraries/StyleSheet/private/_TransformStyle").MergeUnion<{
|
|
91
|
-
readonly perspective: number | import("react-native/types_generated/Libraries/Animated/AnimatedExports").Node;
|
|
92
|
-
} | {
|
|
93
|
-
readonly rotate: string | import("react-native/types_generated/Libraries/Animated/AnimatedExports").Node;
|
|
94
|
-
} | {
|
|
95
|
-
readonly rotateX: string | import("react-native/types_generated/Libraries/Animated/AnimatedExports").Node;
|
|
96
|
-
} | {
|
|
97
|
-
readonly rotateY: string | import("react-native/types_generated/Libraries/Animated/AnimatedExports").Node;
|
|
98
|
-
} | {
|
|
99
|
-
readonly rotateZ: string | import("react-native/types_generated/Libraries/Animated/AnimatedExports").Node;
|
|
100
|
-
} | {
|
|
101
|
-
readonly scale: number | import("react-native/types_generated/Libraries/Animated/AnimatedExports").Node;
|
|
102
|
-
} | {
|
|
103
|
-
readonly scaleX: number | import("react-native/types_generated/Libraries/Animated/AnimatedExports").Node;
|
|
104
|
-
} | {
|
|
105
|
-
readonly scaleY: number | import("react-native/types_generated/Libraries/Animated/AnimatedExports").Node;
|
|
106
|
-
} | {
|
|
107
|
-
readonly translateX: number | string | import("react-native/types_generated/Libraries/Animated/AnimatedExports").Node;
|
|
108
|
-
} | {
|
|
109
|
-
readonly translateY: number | string | import("react-native/types_generated/Libraries/Animated/AnimatedExports").Node;
|
|
110
|
-
} | {
|
|
111
|
-
readonly translate: [number | string | import("react-native/types_generated/Libraries/Animated/AnimatedExports").Node, number | string | import("react-native/types_generated/Libraries/Animated/AnimatedExports").Node] | import("react-native/types_generated/Libraries/Animated/AnimatedExports").Node;
|
|
112
|
-
} | {
|
|
113
|
-
readonly skewX: string | import("react-native/types_generated/Libraries/Animated/AnimatedExports").Node;
|
|
114
|
-
} | {
|
|
115
|
-
readonly skewY: string | import("react-native/types_generated/Libraries/Animated/AnimatedExports").Node;
|
|
116
|
-
} | {
|
|
117
|
-
readonly matrix: ReadonlyArray<number | import("react-native/types_generated/Libraries/Animated/AnimatedExports").Node> | import("react-native/types_generated/Libraries/Animated/AnimatedExports").Node;
|
|
118
|
-
}>>>> | string;
|
|
119
|
-
transformOrigin?: [string | number, string | number, string | number] | string;
|
|
120
|
-
}>, "filter" | "pointerEvents" | "backfaceVisibility" | "backgroundColor" | "borderColor" | "borderCurve" | "borderBottomColor" | "borderEndColor" | "borderLeftColor" | "borderRightColor" | "borderStartColor" | "borderTopColor" | "borderBlockColor" | "borderBlockEndColor" | "borderBlockStartColor" | "borderRadius" | "borderBottomEndRadius" | "borderBottomLeftRadius" | "borderBottomRightRadius" | "borderBottomStartRadius" | "borderEndEndRadius" | "borderEndStartRadius" | "borderStartEndRadius" | "borderStartStartRadius" | "borderTopEndRadius" | "borderTopLeftRadius" | "borderTopRightRadius" | "borderTopStartRadius" | "borderStyle" | "borderWidth" | "borderBottomWidth" | "borderEndWidth" | "borderLeftWidth" | "borderRightWidth" | "borderStartWidth" | "borderTopWidth" | "opacity" | "outlineColor" | "outlineOffset" | "outlineStyle" | "outlineWidth" | "elevation" | "cursor" | "boxShadow" | "mixBlendMode" | "experimental_backgroundImage" | "experimental_backgroundSize" | "experimental_backgroundPosition" | "experimental_backgroundRepeat" | "isolation"> & Omit<Readonly<{
|
|
121
|
-
backfaceVisibility?: "visible" | "hidden";
|
|
122
|
-
backgroundColor?: import("react-native/types_generated/Libraries/StyleSheet/StyleSheetTypes").____ColorValue_Internal;
|
|
123
|
-
borderColor?: import("react-native/types_generated/Libraries/StyleSheet/StyleSheetTypes").____ColorValue_Internal;
|
|
124
|
-
borderCurve?: "circular" | "continuous";
|
|
125
|
-
borderBottomColor?: import("react-native/types_generated/Libraries/StyleSheet/StyleSheetTypes").____ColorValue_Internal;
|
|
126
|
-
borderEndColor?: import("react-native/types_generated/Libraries/StyleSheet/StyleSheetTypes").____ColorValue_Internal;
|
|
127
|
-
borderLeftColor?: import("react-native/types_generated/Libraries/StyleSheet/StyleSheetTypes").____ColorValue_Internal;
|
|
128
|
-
borderRightColor?: import("react-native/types_generated/Libraries/StyleSheet/StyleSheetTypes").____ColorValue_Internal;
|
|
129
|
-
borderStartColor?: import("react-native/types_generated/Libraries/StyleSheet/StyleSheetTypes").____ColorValue_Internal;
|
|
130
|
-
borderTopColor?: import("react-native/types_generated/Libraries/StyleSheet/StyleSheetTypes").____ColorValue_Internal;
|
|
131
|
-
borderBlockColor?: import("react-native/types_generated/Libraries/StyleSheet/StyleSheetTypes").____ColorValue_Internal;
|
|
132
|
-
borderBlockEndColor?: import("react-native/types_generated/Libraries/StyleSheet/StyleSheetTypes").____ColorValue_Internal;
|
|
133
|
-
borderBlockStartColor?: import("react-native/types_generated/Libraries/StyleSheet/StyleSheetTypes").____ColorValue_Internal;
|
|
134
|
-
borderRadius?: number | string;
|
|
135
|
-
borderBottomEndRadius?: number | string;
|
|
136
|
-
borderBottomLeftRadius?: number | string;
|
|
137
|
-
borderBottomRightRadius?: number | string;
|
|
138
|
-
borderBottomStartRadius?: number | string;
|
|
139
|
-
borderEndEndRadius?: number | string;
|
|
140
|
-
borderEndStartRadius?: number | string;
|
|
141
|
-
borderStartEndRadius?: number | string;
|
|
142
|
-
borderStartStartRadius?: number | string;
|
|
143
|
-
borderTopEndRadius?: number | string;
|
|
144
|
-
borderTopLeftRadius?: number | string;
|
|
145
|
-
borderTopRightRadius?: number | string;
|
|
146
|
-
borderTopStartRadius?: number | string;
|
|
147
|
-
borderStyle?: "solid" | "dotted" | "dashed";
|
|
148
|
-
borderWidth?: number;
|
|
149
|
-
borderBottomWidth?: number;
|
|
150
|
-
borderEndWidth?: number;
|
|
151
|
-
borderLeftWidth?: number;
|
|
152
|
-
borderRightWidth?: number;
|
|
153
|
-
borderStartWidth?: number;
|
|
154
|
-
borderTopWidth?: number;
|
|
155
|
-
opacity?: number;
|
|
156
|
-
outlineColor?: import("react-native/types_generated/Libraries/StyleSheet/StyleSheetTypes").____ColorValue_Internal;
|
|
157
|
-
outlineOffset?: number;
|
|
158
|
-
outlineStyle?: "solid" | "dotted" | "dashed";
|
|
159
|
-
outlineWidth?: number;
|
|
160
|
-
elevation?: number;
|
|
161
|
-
pointerEvents?: "auto" | "none" | "box-none" | "box-only";
|
|
162
|
-
cursor?: import("react-native").CursorValue;
|
|
163
|
-
boxShadow?: ReadonlyArray<import("react-native").BoxShadowValue> | string;
|
|
164
|
-
filter?: ReadonlyArray<import("react-native").FilterFunction> | string;
|
|
165
|
-
mixBlendMode?: "normal" | "multiply" | "screen" | "overlay" | "darken" | "lighten" | "color-dodge" | "color-burn" | "hard-light" | "soft-light" | "difference" | "exclusion" | "hue" | "saturation" | "color" | "luminosity";
|
|
166
|
-
experimental_backgroundImage?: ReadonlyArray<import("react-native/types_generated/Libraries/StyleSheet/StyleSheetTypes").BackgroundImageValue> | string;
|
|
167
|
-
experimental_backgroundSize?: ReadonlyArray<import("react-native/types_generated/Libraries/StyleSheet/StyleSheetTypes").BackgroundSizeValue> | string;
|
|
168
|
-
experimental_backgroundPosition?: ReadonlyArray<import("react-native/types_generated/Libraries/StyleSheet/StyleSheetTypes").BackgroundPositionValue> | string;
|
|
169
|
-
experimental_backgroundRepeat?: ReadonlyArray<import("react-native/types_generated/Libraries/StyleSheet/StyleSheetTypes").BackgroundRepeatValue> | string;
|
|
170
|
-
isolation?: "auto" | "isolate";
|
|
171
|
-
}>, never>>, never> & Omit<Readonly<{}>, never>>> | {
|
|
172
|
-
backgroundColor: string;
|
|
173
|
-
};
|
|
174
|
-
};
|
|
175
|
-
//# sourceMappingURL=useFocusStyle.d.ts.map
|
package/lib/typescript/src/components/KeyboardFocusView/hooks/useFocusStyle/useFocusStyle.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useFocusStyle.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/KeyboardFocusView/hooks/useFocusStyle/useFocusStyle.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAEpD,eAAO,MAAM,aAAa,GACxB,aAAa,UAAU,EACvB,gBAAgB,CAAC,SAAS,EAAE,OAAO,KAAK,IAAI;sCAK9B,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAuB+gxB,CAAC;kBAAoB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAL3jxB,CAAC"}
|