one 2.19.0 → 2.20.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/One.podspec +2 -2
- package/android/build.gradle +2 -0
- package/android/portal/CMakeLists.txt +4 -1
- package/android/portal/react/renderer/components/OneNativeSpec/ComponentDescriptors.h +1 -0
- package/android/src/main/java/com/margelo/nitro/one/HybridOneKeyboard.kt +110 -0
- package/android/src/main/java/dev/onejs/keyboard/ClippingScrollViewDecoratorViewManager.kt +44 -0
- package/android/src/main/java/dev/onejs/keyboard/KeyboardBackgroundViewManager.kt +19 -0
- package/android/src/main/java/dev/onejs/keyboard/KeyboardControllerViewManager.kt +85 -0
- package/android/src/main/java/dev/onejs/keyboard/KeyboardGestureAreaViewManager.kt +65 -0
- package/android/src/main/java/dev/onejs/keyboard/KeyboardToolbarGroupViewManager.kt +19 -0
- package/android/src/main/java/dev/onejs/keyboard/LICENSE +21 -0
- package/android/src/main/java/dev/onejs/keyboard/OneKeyboardBridge.kt +9 -0
- package/android/src/main/java/dev/onejs/keyboard/OverKeyboardViewManager.kt +49 -0
- package/android/src/main/java/dev/onejs/keyboard/constants/Keyboard.kt +7 -0
- package/android/src/main/java/dev/onejs/keyboard/constants/UIThread.kt +9 -0
- package/android/src/main/java/dev/onejs/keyboard/events/FocusedInputLayoutChangedEvent.kt +52 -0
- package/android/src/main/java/dev/onejs/keyboard/events/FocusedInputSelectionChangedEvent.kt +56 -0
- package/android/src/main/java/dev/onejs/keyboard/events/FocusedInputTextChangedEvent.kt +25 -0
- package/android/src/main/java/dev/onejs/keyboard/events/KeyboardTransitionEvent.kt +44 -0
- package/android/src/main/java/dev/onejs/keyboard/extensions/Context.kt +58 -0
- package/android/src/main/java/dev/onejs/keyboard/extensions/EditText.kt +262 -0
- package/android/src/main/java/dev/onejs/keyboard/extensions/Float.kt +8 -0
- package/android/src/main/java/dev/onejs/keyboard/extensions/ReactContext.kt +37 -0
- package/android/src/main/java/dev/onejs/keyboard/extensions/ScrollView.kt +65 -0
- package/android/src/main/java/dev/onejs/keyboard/extensions/SoftInputMode.kt +13 -0
- package/android/src/main/java/dev/onejs/keyboard/extensions/ThemedReactContext.kt +56 -0
- package/android/src/main/java/dev/onejs/keyboard/extensions/View.kt +91 -0
- package/android/src/main/java/dev/onejs/keyboard/extensions/ViewGroup.kt +10 -0
- package/android/src/main/java/dev/onejs/keyboard/extensions/WindowInsetsAnimationCompat.kt +7 -0
- package/android/src/main/java/dev/onejs/keyboard/interactive/InteractiveKeyboardProvider.kt +5 -0
- package/android/src/main/java/dev/onejs/keyboard/interactive/KeyboardAnimationController.kt +407 -0
- package/android/src/main/java/dev/onejs/keyboard/interactive/interpolators/Interpolator.kt +20 -0
- package/android/src/main/java/dev/onejs/keyboard/interactive/interpolators/IosInterpolator.kt +21 -0
- package/android/src/main/java/dev/onejs/keyboard/interactive/interpolators/LinearInterpolator.kt +10 -0
- package/android/src/main/java/dev/onejs/keyboard/listeners/FocusedInputObserver.kt +200 -0
- package/android/src/main/java/dev/onejs/keyboard/listeners/KeyboardAnimationCallback.kt +505 -0
- package/android/src/main/java/dev/onejs/keyboard/listeners/WindowDimensionListener.kt +76 -0
- package/android/src/main/java/dev/onejs/keyboard/log/Logger.kt +28 -0
- package/android/src/main/java/dev/onejs/keyboard/managers/ClippingScrollViewDecoratorViewManagerImpl.kt +13 -0
- package/android/src/main/java/dev/onejs/keyboard/managers/KeyboardBackgroundViewManagerImpl.kt +13 -0
- package/android/src/main/java/dev/onejs/keyboard/managers/KeyboardControllerViewManagerImpl.kt +96 -0
- package/android/src/main/java/dev/onejs/keyboard/managers/KeyboardGestureAreaViewManagerImpl.kt +41 -0
- package/android/src/main/java/dev/onejs/keyboard/managers/KeyboardToolbarGroupViewManagerImpl.kt +13 -0
- package/android/src/main/java/dev/onejs/keyboard/managers/OverKeyboardViewManagerImpl.kt +23 -0
- package/android/src/main/java/dev/onejs/keyboard/modal/ModalAttachedWatcher.kt +116 -0
- package/android/src/main/java/dev/onejs/keyboard/modules/KeyboardControllerModuleImpl.kt +139 -0
- package/android/src/main/java/dev/onejs/keyboard/traversal/FocusedInputHolder.kt +19 -0
- package/android/src/main/java/dev/onejs/keyboard/traversal/ViewHierarchyNavigator.kt +130 -0
- package/android/src/main/java/dev/onejs/keyboard/views/ClippingScrollViewDecoratorView.kt +241 -0
- package/android/src/main/java/dev/onejs/keyboard/views/EdgeToEdgeReactViewGroup.kt +225 -0
- package/android/src/main/java/dev/onejs/keyboard/views/KeyboardGestureAreaReactViewGroup.kt +247 -0
- package/android/src/main/java/dev/onejs/keyboard/views/KeyboardToolbarGroupReactViewGroup.kt +13 -0
- package/android/src/main/java/dev/onejs/keyboard/views/background/KeyboardBackgroundViewGroup.kt +34 -0
- package/android/src/main/java/dev/onejs/keyboard/views/background/Skins.kt +91 -0
- package/android/src/main/java/dev/onejs/keyboard/views/overlay/JSPointerDispatcherCompat.kt +74 -0
- package/android/src/main/java/dev/onejs/keyboard/views/overlay/OverKeyboardHostShadowNode.kt +33 -0
- package/android/src/main/java/dev/onejs/keyboard/views/overlay/OverKeyboardViewGroup.kt +249 -0
- package/android/src/main/java/dev/onejs/keyboard/views/overlay/RootViewCompat.kt +18 -0
- package/android/src/main/java/dev/onejs/one/OnePackage.kt +12 -0
- package/android/src/main/res/values/one_keyboard_attrs.xml +7 -0
- package/android/src/main/res/values/one_keyboard_skins.xml +35 -0
- package/android/src/main/res/values-v29/one_keyboard_skins.xml +5 -0
- package/android/src/main/res/values-v30/one_keyboard_skins.xml +17 -0
- package/android/src/main/res/values-v33/one_keyboard_skins.xml +14 -0
- package/android/src/main/res/values-v34/one_keyboard_skins.xml +18 -0
- package/android/src/main/res/values-v35/one_keyboard_skins.xml +10 -0
- package/cpp/OneOverKeyboardViewComponentDescriptor.h +31 -0
- package/cpp/OneOverKeyboardViewShadowNode.cpp +7 -0
- package/cpp/OneOverKeyboardViewShadowNode.h +23 -0
- package/cpp/OneOverKeyboardViewState.cpp +12 -0
- package/cpp/OneOverKeyboardViewState.h +43 -0
- package/dist/cjs/keyboard/animated.cjs +154 -0
- package/dist/cjs/keyboard/animated.native.cjs +168 -0
- package/dist/cjs/keyboard/animated.native.js +170 -0
- package/dist/cjs/keyboard/animated.native.js.map +1 -0
- package/dist/cjs/keyboard/architecture.cjs +25 -0
- package/dist/cjs/keyboard/architecture.native.cjs +27 -0
- package/dist/cjs/keyboard/architecture.native.js +29 -0
- package/dist/cjs/keyboard/architecture.native.js.map +1 -0
- package/dist/cjs/keyboard/bindings.cjs +65 -0
- package/dist/cjs/keyboard/bindings.native.cjs +147 -0
- package/dist/cjs/keyboard/bindings.native.js +149 -0
- package/dist/cjs/keyboard/bindings.native.js.map +1 -0
- package/dist/cjs/keyboard/compat.cjs +63 -0
- package/dist/cjs/keyboard/compat.native.cjs +65 -0
- package/dist/cjs/keyboard/compat.native.js +67 -0
- package/dist/cjs/keyboard/compat.native.js.map +1 -0
- package/dist/cjs/keyboard/components/KeyboardAvoidingView/hooks.cjs +144 -0
- package/dist/cjs/keyboard/components/KeyboardAvoidingView/hooks.native.cjs +146 -0
- package/dist/cjs/keyboard/components/KeyboardAvoidingView/hooks.native.js +148 -0
- package/dist/cjs/keyboard/components/KeyboardAvoidingView/hooks.native.js.map +1 -0
- package/dist/cjs/keyboard/components/KeyboardAvoidingView/index.cjs +156 -0
- package/dist/cjs/keyboard/components/KeyboardAvoidingView/index.native.cjs +173 -0
- package/dist/cjs/keyboard/components/KeyboardAvoidingView/index.native.js +175 -0
- package/dist/cjs/keyboard/components/KeyboardAvoidingView/index.native.js.map +1 -0
- package/dist/cjs/keyboard/components/KeyboardAwareScrollView/index.cjs +326 -0
- package/dist/cjs/keyboard/components/KeyboardAwareScrollView/index.native.cjs +344 -0
- package/dist/cjs/keyboard/components/KeyboardAwareScrollView/index.native.js +346 -0
- package/dist/cjs/keyboard/components/KeyboardAwareScrollView/index.native.js.map +1 -0
- package/dist/cjs/keyboard/components/KeyboardAwareScrollView/types.cjs +17 -0
- package/dist/cjs/keyboard/components/KeyboardAwareScrollView/types.native.cjs +19 -0
- package/dist/cjs/keyboard/components/KeyboardAwareScrollView/types.native.js +21 -0
- package/dist/cjs/keyboard/components/KeyboardAwareScrollView/types.native.js.map +1 -0
- package/dist/cjs/keyboard/components/KeyboardAwareScrollView/useSmoothKeyboardHandler.cjs +100 -0
- package/dist/cjs/keyboard/components/KeyboardAwareScrollView/useSmoothKeyboardHandler.native.cjs +110 -0
- package/dist/cjs/keyboard/components/KeyboardAwareScrollView/useSmoothKeyboardHandler.native.js +112 -0
- package/dist/cjs/keyboard/components/KeyboardAwareScrollView/useSmoothKeyboardHandler.native.js.map +1 -0
- package/dist/cjs/keyboard/components/KeyboardAwareScrollView/utils.cjs +50 -0
- package/dist/cjs/keyboard/components/KeyboardAwareScrollView/utils.native.cjs +58 -0
- package/dist/cjs/keyboard/components/KeyboardAwareScrollView/utils.native.js +60 -0
- package/dist/cjs/keyboard/components/KeyboardAwareScrollView/utils.native.js.map +1 -0
- package/dist/cjs/keyboard/components/KeyboardChatScrollView/hooks.cjs +25 -0
- package/dist/cjs/keyboard/components/KeyboardChatScrollView/hooks.native.cjs +27 -0
- package/dist/cjs/keyboard/components/KeyboardChatScrollView/hooks.native.js +29 -0
- package/dist/cjs/keyboard/components/KeyboardChatScrollView/hooks.native.js.map +1 -0
- package/dist/cjs/keyboard/components/KeyboardChatScrollView/index.cjs +118 -0
- package/dist/cjs/keyboard/components/KeyboardChatScrollView/index.native.cjs +133 -0
- package/dist/cjs/keyboard/components/KeyboardChatScrollView/index.native.js +135 -0
- package/dist/cjs/keyboard/components/KeyboardChatScrollView/index.native.js.map +1 -0
- package/dist/cjs/keyboard/components/KeyboardChatScrollView/types.cjs +17 -0
- package/dist/cjs/keyboard/components/KeyboardChatScrollView/types.native.cjs +19 -0
- package/dist/cjs/keyboard/components/KeyboardChatScrollView/types.native.js +21 -0
- package/dist/cjs/keyboard/components/KeyboardChatScrollView/types.native.js.map +1 -0
- package/dist/cjs/keyboard/components/KeyboardChatScrollView/useChatKeyboard/helpers.cjs +93 -0
- package/dist/cjs/keyboard/components/KeyboardChatScrollView/useChatKeyboard/helpers.native.cjs +97 -0
- package/dist/cjs/keyboard/components/KeyboardChatScrollView/useChatKeyboard/helpers.native.js +99 -0
- package/dist/cjs/keyboard/components/KeyboardChatScrollView/useChatKeyboard/helpers.native.js.map +1 -0
- package/dist/cjs/keyboard/components/KeyboardChatScrollView/useChatKeyboard/index.cjs +210 -0
- package/dist/cjs/keyboard/components/KeyboardChatScrollView/useChatKeyboard/index.ios.cjs +145 -0
- package/dist/cjs/keyboard/components/KeyboardChatScrollView/useChatKeyboard/index.ios.js +147 -0
- package/dist/cjs/keyboard/components/KeyboardChatScrollView/useChatKeyboard/index.ios.js.map +1 -0
- package/dist/cjs/keyboard/components/KeyboardChatScrollView/useChatKeyboard/index.native.cjs +212 -0
- package/dist/cjs/keyboard/components/KeyboardChatScrollView/useChatKeyboard/index.native.js +214 -0
- package/dist/cjs/keyboard/components/KeyboardChatScrollView/useChatKeyboard/index.native.js.map +1 -0
- package/dist/cjs/keyboard/components/KeyboardChatScrollView/useChatKeyboard/types.cjs +17 -0
- package/dist/cjs/keyboard/components/KeyboardChatScrollView/useChatKeyboard/types.native.cjs +19 -0
- package/dist/cjs/keyboard/components/KeyboardChatScrollView/useChatKeyboard/types.native.js +21 -0
- package/dist/cjs/keyboard/components/KeyboardChatScrollView/useChatKeyboard/types.native.js.map +1 -0
- package/dist/cjs/keyboard/components/KeyboardChatScrollView/useEndVisible.cjs +52 -0
- package/dist/cjs/keyboard/components/KeyboardChatScrollView/useEndVisible.native.cjs +61 -0
- package/dist/cjs/keyboard/components/KeyboardChatScrollView/useEndVisible.native.js +63 -0
- package/dist/cjs/keyboard/components/KeyboardChatScrollView/useEndVisible.native.js.map +1 -0
- package/dist/cjs/keyboard/components/KeyboardChatScrollView/useExtraContentPadding/index.cjs +92 -0
- package/dist/cjs/keyboard/components/KeyboardChatScrollView/useExtraContentPadding/index.native.cjs +96 -0
- package/dist/cjs/keyboard/components/KeyboardChatScrollView/useExtraContentPadding/index.native.js +98 -0
- package/dist/cjs/keyboard/components/KeyboardChatScrollView/useExtraContentPadding/index.native.js.map +1 -0
- package/dist/cjs/keyboard/components/KeyboardChatScrollView/useFrozenPadding/index.cjs +53 -0
- package/dist/cjs/keyboard/components/KeyboardChatScrollView/useFrozenPadding/index.native.cjs +58 -0
- package/dist/cjs/keyboard/components/KeyboardChatScrollView/useFrozenPadding/index.native.js +60 -0
- package/dist/cjs/keyboard/components/KeyboardChatScrollView/useFrozenPadding/index.native.js.map +1 -0
- package/dist/cjs/keyboard/components/KeyboardEffects/index.cjs +94 -0
- package/dist/cjs/keyboard/components/KeyboardEffects/index.native.cjs +99 -0
- package/dist/cjs/keyboard/components/KeyboardEffects/index.native.js +101 -0
- package/dist/cjs/keyboard/components/KeyboardEffects/index.native.js.map +1 -0
- package/dist/cjs/keyboard/components/KeyboardStickyView/index.cjs +54 -0
- package/dist/cjs/keyboard/components/KeyboardStickyView/index.native.cjs +59 -0
- package/dist/cjs/keyboard/components/KeyboardStickyView/index.native.js +61 -0
- package/dist/cjs/keyboard/components/KeyboardStickyView/index.native.js.map +1 -0
- package/dist/cjs/keyboard/components/KeyboardToolbar/Arrow.cjs +82 -0
- package/dist/cjs/keyboard/components/KeyboardToolbar/Arrow.native.cjs +99 -0
- package/dist/cjs/keyboard/components/KeyboardToolbar/Arrow.native.js +101 -0
- package/dist/cjs/keyboard/components/KeyboardToolbar/Arrow.native.js.map +1 -0
- package/dist/cjs/keyboard/components/KeyboardToolbar/Button.cjs +71 -0
- package/dist/cjs/keyboard/components/KeyboardToolbar/Button.native.cjs +89 -0
- package/dist/cjs/keyboard/components/KeyboardToolbar/Button.native.js +91 -0
- package/dist/cjs/keyboard/components/KeyboardToolbar/Button.native.js.map +1 -0
- package/dist/cjs/keyboard/components/KeyboardToolbar/colors.cjs +38 -0
- package/dist/cjs/keyboard/components/KeyboardToolbar/colors.native.cjs +59 -0
- package/dist/cjs/keyboard/components/KeyboardToolbar/colors.native.js +61 -0
- package/dist/cjs/keyboard/components/KeyboardToolbar/colors.native.js.map +1 -0
- package/dist/cjs/keyboard/components/KeyboardToolbar/compound/components/Background.cjs +27 -0
- package/dist/cjs/keyboard/components/KeyboardToolbar/compound/components/Background.native.cjs +39 -0
- package/dist/cjs/keyboard/components/KeyboardToolbar/compound/components/Background.native.js +41 -0
- package/dist/cjs/keyboard/components/KeyboardToolbar/compound/components/Background.native.js.map +1 -0
- package/dist/cjs/keyboard/components/KeyboardToolbar/compound/components/Content.cjs +36 -0
- package/dist/cjs/keyboard/components/KeyboardToolbar/compound/components/Content.native.cjs +46 -0
- package/dist/cjs/keyboard/components/KeyboardToolbar/compound/components/Content.native.js +48 -0
- package/dist/cjs/keyboard/components/KeyboardToolbar/compound/components/Content.native.js.map +1 -0
- package/dist/cjs/keyboard/components/KeyboardToolbar/compound/components/Done.cjs +75 -0
- package/dist/cjs/keyboard/components/KeyboardToolbar/compound/components/Done.native.cjs +84 -0
- package/dist/cjs/keyboard/components/KeyboardToolbar/compound/components/Done.native.js +86 -0
- package/dist/cjs/keyboard/components/KeyboardToolbar/compound/components/Done.native.js.map +1 -0
- package/dist/cjs/keyboard/components/KeyboardToolbar/compound/components/Next.cjs +64 -0
- package/dist/cjs/keyboard/components/KeyboardToolbar/compound/components/Next.native.cjs +67 -0
- package/dist/cjs/keyboard/components/KeyboardToolbar/compound/components/Next.native.js +69 -0
- package/dist/cjs/keyboard/components/KeyboardToolbar/compound/components/Next.native.js.map +1 -0
- package/dist/cjs/keyboard/components/KeyboardToolbar/compound/components/Prev.cjs +64 -0
- package/dist/cjs/keyboard/components/KeyboardToolbar/compound/components/Prev.native.cjs +68 -0
- package/dist/cjs/keyboard/components/KeyboardToolbar/compound/components/Prev.native.js +70 -0
- package/dist/cjs/keyboard/components/KeyboardToolbar/compound/components/Prev.native.js.map +1 -0
- package/dist/cjs/keyboard/components/KeyboardToolbar/compound/components/index.cjs +41 -0
- package/dist/cjs/keyboard/components/KeyboardToolbar/compound/components/index.native.cjs +43 -0
- package/dist/cjs/keyboard/components/KeyboardToolbar/compound/components/index.native.js +45 -0
- package/dist/cjs/keyboard/components/KeyboardToolbar/compound/components/index.native.js.map +1 -0
- package/dist/cjs/keyboard/components/KeyboardToolbar/compound/components/types.cjs +17 -0
- package/dist/cjs/keyboard/components/KeyboardToolbar/compound/components/types.native.cjs +19 -0
- package/dist/cjs/keyboard/components/KeyboardToolbar/compound/components/types.native.js +21 -0
- package/dist/cjs/keyboard/components/KeyboardToolbar/compound/components/types.native.js.map +1 -0
- package/dist/cjs/keyboard/components/KeyboardToolbar/compound/context.cjs +36 -0
- package/dist/cjs/keyboard/components/KeyboardToolbar/compound/context.native.cjs +38 -0
- package/dist/cjs/keyboard/components/KeyboardToolbar/compound/context.native.js +40 -0
- package/dist/cjs/keyboard/components/KeyboardToolbar/compound/context.native.js.map +1 -0
- package/dist/cjs/keyboard/components/KeyboardToolbar/constants.cjs +42 -0
- package/dist/cjs/keyboard/components/KeyboardToolbar/constants.native.cjs +44 -0
- package/dist/cjs/keyboard/components/KeyboardToolbar/constants.native.js +46 -0
- package/dist/cjs/keyboard/components/KeyboardToolbar/constants.native.js.map +1 -0
- package/dist/cjs/keyboard/components/KeyboardToolbar/index.cjs +202 -0
- package/dist/cjs/keyboard/components/KeyboardToolbar/index.native.cjs +215 -0
- package/dist/cjs/keyboard/components/KeyboardToolbar/index.native.js +217 -0
- package/dist/cjs/keyboard/components/KeyboardToolbar/index.native.js.map +1 -0
- package/dist/cjs/keyboard/components/KeyboardToolbar/types.cjs +17 -0
- package/dist/cjs/keyboard/components/KeyboardToolbar/types.native.cjs +19 -0
- package/dist/cjs/keyboard/components/KeyboardToolbar/types.native.js +21 -0
- package/dist/cjs/keyboard/components/KeyboardToolbar/types.native.js.map +1 -0
- package/dist/cjs/keyboard/components/ScrollViewWithBottomPadding/index.cjs +127 -0
- package/dist/cjs/keyboard/components/ScrollViewWithBottomPadding/index.native.cjs +134 -0
- package/dist/cjs/keyboard/components/ScrollViewWithBottomPadding/index.native.js +136 -0
- package/dist/cjs/keyboard/components/ScrollViewWithBottomPadding/index.native.js.map +1 -0
- package/dist/cjs/keyboard/components/ScrollViewWithBottomPadding/styles.cjs +30 -0
- package/dist/cjs/keyboard/components/ScrollViewWithBottomPadding/styles.native.cjs +32 -0
- package/dist/cjs/keyboard/components/ScrollViewWithBottomPadding/styles.native.js +34 -0
- package/dist/cjs/keyboard/components/ScrollViewWithBottomPadding/styles.native.js.map +1 -0
- package/dist/cjs/keyboard/components/hooks/useCombinedRef.cjs +40 -0
- package/dist/cjs/keyboard/components/hooks/useCombinedRef.native.cjs +62 -0
- package/dist/cjs/keyboard/components/hooks/useCombinedRef.native.js +64 -0
- package/dist/cjs/keyboard/components/hooks/useCombinedRef.native.js.map +1 -0
- package/dist/cjs/keyboard/components/hooks/useScrollState.cjs +78 -0
- package/dist/cjs/keyboard/components/hooks/useScrollState.native.cjs +81 -0
- package/dist/cjs/keyboard/components/hooks/useScrollState.native.js +83 -0
- package/dist/cjs/keyboard/components/hooks/useScrollState.native.js.map +1 -0
- package/dist/cjs/keyboard/components/index.cjs +44 -0
- package/dist/cjs/keyboard/components/index.native.cjs +46 -0
- package/dist/cjs/keyboard/components/index.native.js +48 -0
- package/dist/cjs/keyboard/components/index.native.js.map +1 -0
- package/dist/cjs/keyboard/components/utils/safeScrollTo.cjs +33 -0
- package/dist/cjs/keyboard/components/utils/safeScrollTo.native.cjs +35 -0
- package/dist/cjs/keyboard/components/utils/safeScrollTo.native.js +37 -0
- package/dist/cjs/keyboard/components/utils/safeScrollTo.native.js.map +1 -0
- package/dist/cjs/keyboard/constants.cjs +48 -0
- package/dist/cjs/keyboard/constants.native.cjs +50 -0
- package/dist/cjs/keyboard/constants.native.js +52 -0
- package/dist/cjs/keyboard/constants.native.js.map +1 -0
- package/dist/cjs/keyboard/context.cjs +65 -0
- package/dist/cjs/keyboard/context.native.cjs +73 -0
- package/dist/cjs/keyboard/context.native.js +75 -0
- package/dist/cjs/keyboard/context.native.js.map +1 -0
- package/dist/cjs/keyboard/hooks/index.cjs +121 -0
- package/dist/cjs/keyboard/hooks/index.native.cjs +135 -0
- package/dist/cjs/keyboard/hooks/index.native.js +137 -0
- package/dist/cjs/keyboard/hooks/index.native.js.map +1 -0
- package/dist/cjs/keyboard/hooks/useKeyboardState/index.cjs +44 -0
- package/dist/cjs/keyboard/hooks/useKeyboardState/index.native.cjs +59 -0
- package/dist/cjs/keyboard/hooks/useKeyboardState/index.native.js +61 -0
- package/dist/cjs/keyboard/hooks/useKeyboardState/index.native.js.map +1 -0
- package/dist/cjs/keyboard/hooks/useWindowDimensions/index.cjs +48 -0
- package/dist/cjs/keyboard/hooks/useWindowDimensions/index.native.cjs +50 -0
- package/dist/cjs/keyboard/hooks/useWindowDimensions/index.native.js +52 -0
- package/dist/cjs/keyboard/hooks/useWindowDimensions/index.native.js.map +1 -0
- package/dist/cjs/keyboard/index.cjs +45 -0
- package/dist/cjs/keyboard/index.native.cjs +47 -0
- package/dist/cjs/keyboard/index.native.js +49 -0
- package/dist/cjs/keyboard/index.native.js.map +1 -0
- package/dist/cjs/keyboard/internal.cjs +77 -0
- package/dist/cjs/keyboard/internal.native.cjs +79 -0
- package/dist/cjs/keyboard/internal.native.js +81 -0
- package/dist/cjs/keyboard/internal.native.js.map +1 -0
- package/dist/cjs/keyboard/module.cjs +72 -0
- package/dist/cjs/keyboard/module.native.cjs +79 -0
- package/dist/cjs/keyboard/module.native.js +81 -0
- package/dist/cjs/keyboard/module.native.js.map +1 -0
- package/dist/cjs/keyboard/reanimated.cjs +36 -0
- package/dist/cjs/keyboard/reanimated.native.cjs +84 -0
- package/dist/cjs/keyboard/reanimated.native.js +86 -0
- package/dist/cjs/keyboard/reanimated.native.js.map +1 -0
- package/dist/cjs/keyboard/typings/hooks.cjs +17 -0
- package/dist/cjs/keyboard/typings/hooks.native.cjs +19 -0
- package/dist/cjs/keyboard/typings/hooks.native.js +21 -0
- package/dist/cjs/keyboard/typings/hooks.native.js.map +1 -0
- package/dist/cjs/keyboard/typings/index.cjs +23 -0
- package/dist/cjs/keyboard/typings/index.native.cjs +25 -0
- package/dist/cjs/keyboard/typings/index.native.js +27 -0
- package/dist/cjs/keyboard/typings/index.native.js.map +1 -0
- package/dist/cjs/keyboard/typings/internal.cjs +17 -0
- package/dist/cjs/keyboard/typings/internal.native.cjs +19 -0
- package/dist/cjs/keyboard/typings/internal.native.js +21 -0
- package/dist/cjs/keyboard/typings/internal.native.js.map +1 -0
- package/dist/cjs/keyboard/typings/module.cjs +17 -0
- package/dist/cjs/keyboard/typings/module.native.cjs +19 -0
- package/dist/cjs/keyboard/typings/module.native.js +21 -0
- package/dist/cjs/keyboard/typings/module.native.js.map +1 -0
- package/dist/cjs/keyboard/typings/provider.cjs +17 -0
- package/dist/cjs/keyboard/typings/provider.native.cjs +19 -0
- package/dist/cjs/keyboard/typings/provider.native.js +21 -0
- package/dist/cjs/keyboard/typings/provider.native.js.map +1 -0
- package/dist/cjs/keyboard/typings/views.cjs +17 -0
- package/dist/cjs/keyboard/typings/views.native.cjs +19 -0
- package/dist/cjs/keyboard/typings/views.native.js +21 -0
- package/dist/cjs/keyboard/typings/views.native.js.map +1 -0
- package/dist/cjs/keyboard/utils/findNodeHandle/index.cjs +25 -0
- package/dist/cjs/keyboard/utils/findNodeHandle/index.native.cjs +27 -0
- package/dist/cjs/keyboard/utils/findNodeHandle/index.native.js +29 -0
- package/dist/cjs/keyboard/utils/findNodeHandle/index.native.js.map +1 -0
- package/dist/cjs/keyboard/views/KeyboardExtender/index.cjs +48 -0
- package/dist/cjs/keyboard/views/KeyboardExtender/index.ios.cjs +50 -0
- package/dist/cjs/keyboard/views/KeyboardExtender/index.ios.js +52 -0
- package/dist/cjs/keyboard/views/KeyboardExtender/index.ios.js.map +1 -0
- package/dist/cjs/keyboard/views/KeyboardExtender/index.native.cjs +57 -0
- package/dist/cjs/keyboard/views/KeyboardExtender/index.native.js +59 -0
- package/dist/cjs/keyboard/views/KeyboardExtender/index.native.js.map +1 -0
- package/dist/cjs/keyboard/views/OverKeyboardView/index.cjs +60 -0
- package/dist/cjs/keyboard/views/OverKeyboardView/index.native.cjs +72 -0
- package/dist/cjs/keyboard/views/OverKeyboardView/index.native.js +74 -0
- package/dist/cjs/keyboard/views/OverKeyboardView/index.native.js.map +1 -0
- package/dist/cjs/keyboard/views/index.cjs +35 -0
- package/dist/cjs/keyboard/views/index.native.cjs +37 -0
- package/dist/cjs/keyboard/views/index.native.js +39 -0
- package/dist/cjs/keyboard/views/index.native.js.map +1 -0
- package/dist/cjs/keyboard.cjs +19 -0
- package/dist/cjs/keyboard.native.cjs +21 -0
- package/dist/cjs/keyboard.native.js +23 -0
- package/dist/cjs/keyboard.native.js.map +1 -0
- package/dist/cjs/platform/specs/OneClippingScrollViewDecoratorViewNativeComponent.cjs +34 -0
- package/dist/cjs/platform/specs/OneClippingScrollViewDecoratorViewNativeComponent.native.cjs +34 -0
- package/dist/cjs/platform/specs/OneClippingScrollViewDecoratorViewNativeComponent.native.js +35 -0
- package/dist/cjs/platform/specs/OneClippingScrollViewDecoratorViewNativeComponent.native.js.map +7 -0
- package/dist/cjs/platform/specs/OneKeyboard.nitro.cjs +17 -0
- package/dist/cjs/platform/specs/OneKeyboard.nitro.native.cjs +19 -0
- package/dist/cjs/platform/specs/OneKeyboard.nitro.native.js +21 -0
- package/dist/cjs/platform/specs/OneKeyboard.nitro.native.js.map +1 -0
- package/dist/cjs/platform/specs/OneKeyboardBackgroundViewNativeComponent.cjs +30 -0
- package/dist/cjs/platform/specs/OneKeyboardBackgroundViewNativeComponent.native.cjs +30 -0
- package/dist/cjs/platform/specs/OneKeyboardBackgroundViewNativeComponent.native.js +31 -0
- package/dist/cjs/platform/specs/OneKeyboardBackgroundViewNativeComponent.native.js.map +7 -0
- package/dist/cjs/platform/specs/OneKeyboardControllerViewNativeComponent.cjs +79 -0
- package/dist/cjs/platform/specs/OneKeyboardControllerViewNativeComponent.native.cjs +79 -0
- package/dist/cjs/platform/specs/OneKeyboardControllerViewNativeComponent.native.js +80 -0
- package/dist/cjs/platform/specs/OneKeyboardControllerViewNativeComponent.native.js.map +7 -0
- package/dist/cjs/platform/specs/OneKeyboardExtenderNativeComponent.cjs +33 -0
- package/dist/cjs/platform/specs/OneKeyboardExtenderNativeComponent.native.cjs +33 -0
- package/dist/cjs/platform/specs/OneKeyboardExtenderNativeComponent.native.js +34 -0
- package/dist/cjs/platform/specs/OneKeyboardExtenderNativeComponent.native.js.map +7 -0
- package/dist/cjs/platform/specs/OneKeyboardGestureAreaNativeComponent.cjs +36 -0
- package/dist/cjs/platform/specs/OneKeyboardGestureAreaNativeComponent.native.cjs +36 -0
- package/dist/cjs/platform/specs/OneKeyboardGestureAreaNativeComponent.native.js +37 -0
- package/dist/cjs/platform/specs/OneKeyboardGestureAreaNativeComponent.native.js.map +7 -0
- package/dist/cjs/platform/specs/OneKeyboardToolbarGroupViewNativeComponent.cjs +30 -0
- package/dist/cjs/platform/specs/OneKeyboardToolbarGroupViewNativeComponent.native.cjs +30 -0
- package/dist/cjs/platform/specs/OneKeyboardToolbarGroupViewNativeComponent.native.js +31 -0
- package/dist/cjs/platform/specs/OneKeyboardToolbarGroupViewNativeComponent.native.js.map +7 -0
- package/dist/cjs/platform/specs/OneOverKeyboardViewNativeComponent.cjs +32 -0
- package/dist/cjs/platform/specs/OneOverKeyboardViewNativeComponent.native.cjs +32 -0
- package/dist/cjs/platform/specs/OneOverKeyboardViewNativeComponent.native.js +33 -0
- package/dist/cjs/platform/specs/OneOverKeyboardViewNativeComponent.native.js.map +7 -0
- package/dist/esm/keyboard/animated.mjs +135 -0
- package/dist/esm/keyboard/animated.mjs.map +1 -0
- package/dist/esm/keyboard/animated.native.js +141 -0
- package/dist/esm/keyboard/animated.native.js.map +1 -0
- package/dist/esm/keyboard/architecture.mjs +5 -0
- package/dist/esm/keyboard/architecture.mjs.map +1 -0
- package/dist/esm/keyboard/architecture.native.js +5 -0
- package/dist/esm/keyboard/architecture.native.js.map +1 -0
- package/dist/esm/keyboard/bindings.mjs +33 -0
- package/dist/esm/keyboard/bindings.mjs.map +1 -0
- package/dist/esm/keyboard/bindings.native.js +107 -0
- package/dist/esm/keyboard/bindings.native.js.map +1 -0
- package/dist/esm/keyboard/compat.mjs +41 -0
- package/dist/esm/keyboard/compat.mjs.map +1 -0
- package/dist/esm/keyboard/compat.native.js +41 -0
- package/dist/esm/keyboard/compat.native.js.map +1 -0
- package/dist/esm/keyboard/components/KeyboardAvoidingView/hooks.mjs +122 -0
- package/dist/esm/keyboard/components/KeyboardAvoidingView/hooks.mjs.map +1 -0
- package/dist/esm/keyboard/components/KeyboardAvoidingView/hooks.native.js +122 -0
- package/dist/esm/keyboard/components/KeyboardAvoidingView/hooks.native.js.map +1 -0
- package/dist/esm/keyboard/components/KeyboardAvoidingView/index.mjs +131 -0
- package/dist/esm/keyboard/components/KeyboardAvoidingView/index.mjs.map +1 -0
- package/dist/esm/keyboard/components/KeyboardAvoidingView/index.native.js +146 -0
- package/dist/esm/keyboard/components/KeyboardAvoidingView/index.native.js.map +1 -0
- package/dist/esm/keyboard/components/KeyboardAwareScrollView/index.mjs +301 -0
- package/dist/esm/keyboard/components/KeyboardAwareScrollView/index.mjs.map +1 -0
- package/dist/esm/keyboard/components/KeyboardAwareScrollView/index.native.js +317 -0
- package/dist/esm/keyboard/components/KeyboardAwareScrollView/index.native.js.map +1 -0
- package/dist/esm/keyboard/components/KeyboardAwareScrollView/types.mjs +0 -0
- package/dist/esm/keyboard/components/KeyboardAwareScrollView/types.native.js +0 -0
- package/dist/esm/keyboard/components/KeyboardAwareScrollView/useSmoothKeyboardHandler.mjs +81 -0
- package/dist/esm/keyboard/components/KeyboardAwareScrollView/useSmoothKeyboardHandler.mjs.map +1 -0
- package/dist/esm/keyboard/components/KeyboardAwareScrollView/useSmoothKeyboardHandler.native.js +89 -0
- package/dist/esm/keyboard/components/KeyboardAwareScrollView/useSmoothKeyboardHandler.native.js.map +1 -0
- package/dist/esm/keyboard/components/KeyboardAwareScrollView/utils.mjs +27 -0
- package/dist/esm/keyboard/components/KeyboardAwareScrollView/utils.mjs.map +1 -0
- package/dist/esm/keyboard/components/KeyboardAwareScrollView/utils.native.js +33 -0
- package/dist/esm/keyboard/components/KeyboardAwareScrollView/utils.native.js.map +1 -0
- package/dist/esm/keyboard/components/KeyboardChatScrollView/hooks.mjs +3 -0
- package/dist/esm/keyboard/components/KeyboardChatScrollView/hooks.native.js +3 -0
- package/dist/esm/keyboard/components/KeyboardChatScrollView/index.mjs +92 -0
- package/dist/esm/keyboard/components/KeyboardChatScrollView/index.mjs.map +1 -0
- package/dist/esm/keyboard/components/KeyboardChatScrollView/index.native.js +105 -0
- package/dist/esm/keyboard/components/KeyboardChatScrollView/index.native.js.map +1 -0
- package/dist/esm/keyboard/components/KeyboardChatScrollView/types.mjs +0 -0
- package/dist/esm/keyboard/components/KeyboardChatScrollView/types.native.js +0 -0
- package/dist/esm/keyboard/components/KeyboardChatScrollView/useChatKeyboard/helpers.mjs +65 -0
- package/dist/esm/keyboard/components/KeyboardChatScrollView/useChatKeyboard/helpers.mjs.map +1 -0
- package/dist/esm/keyboard/components/KeyboardChatScrollView/useChatKeyboard/helpers.native.js +67 -0
- package/dist/esm/keyboard/components/KeyboardChatScrollView/useChatKeyboard/helpers.native.js.map +1 -0
- package/dist/esm/keyboard/components/KeyboardChatScrollView/useChatKeyboard/index.ios.js +118 -0
- package/dist/esm/keyboard/components/KeyboardChatScrollView/useChatKeyboard/index.ios.js.map +1 -0
- package/dist/esm/keyboard/components/KeyboardChatScrollView/useChatKeyboard/index.mjs +185 -0
- package/dist/esm/keyboard/components/KeyboardChatScrollView/useChatKeyboard/index.mjs.map +1 -0
- package/dist/esm/keyboard/components/KeyboardChatScrollView/useChatKeyboard/index.native.js +185 -0
- package/dist/esm/keyboard/components/KeyboardChatScrollView/useChatKeyboard/index.native.js.map +1 -0
- package/dist/esm/keyboard/components/KeyboardChatScrollView/useChatKeyboard/types.mjs +0 -0
- package/dist/esm/keyboard/components/KeyboardChatScrollView/useChatKeyboard/types.native.js +0 -0
- package/dist/esm/keyboard/components/KeyboardChatScrollView/useEndVisible.mjs +33 -0
- package/dist/esm/keyboard/components/KeyboardChatScrollView/useEndVisible.mjs.map +1 -0
- package/dist/esm/keyboard/components/KeyboardChatScrollView/useEndVisible.native.js +40 -0
- package/dist/esm/keyboard/components/KeyboardChatScrollView/useEndVisible.native.js.map +1 -0
- package/dist/esm/keyboard/components/KeyboardChatScrollView/useExtraContentPadding/index.mjs +73 -0
- package/dist/esm/keyboard/components/KeyboardChatScrollView/useExtraContentPadding/index.mjs.map +1 -0
- package/dist/esm/keyboard/components/KeyboardChatScrollView/useExtraContentPadding/index.native.js +75 -0
- package/dist/esm/keyboard/components/KeyboardChatScrollView/useExtraContentPadding/index.native.js.map +1 -0
- package/dist/esm/keyboard/components/KeyboardChatScrollView/useFrozenPadding/index.mjs +34 -0
- package/dist/esm/keyboard/components/KeyboardChatScrollView/useFrozenPadding/index.mjs.map +1 -0
- package/dist/esm/keyboard/components/KeyboardChatScrollView/useFrozenPadding/index.native.js +37 -0
- package/dist/esm/keyboard/components/KeyboardChatScrollView/useFrozenPadding/index.native.js.map +1 -0
- package/dist/esm/keyboard/components/KeyboardEffects/index.mjs +69 -0
- package/dist/esm/keyboard/components/KeyboardEffects/index.mjs.map +1 -0
- package/dist/esm/keyboard/components/KeyboardEffects/index.native.js +72 -0
- package/dist/esm/keyboard/components/KeyboardEffects/index.native.js.map +1 -0
- package/dist/esm/keyboard/components/KeyboardStickyView/index.mjs +29 -0
- package/dist/esm/keyboard/components/KeyboardStickyView/index.mjs.map +1 -0
- package/dist/esm/keyboard/components/KeyboardStickyView/index.native.js +32 -0
- package/dist/esm/keyboard/components/KeyboardStickyView/index.native.js.map +1 -0
- package/dist/esm/keyboard/components/KeyboardToolbar/Arrow.mjs +63 -0
- package/dist/esm/keyboard/components/KeyboardToolbar/Arrow.mjs.map +1 -0
- package/dist/esm/keyboard/components/KeyboardToolbar/Arrow.native.js +72 -0
- package/dist/esm/keyboard/components/KeyboardToolbar/Arrow.native.js.map +1 -0
- package/dist/esm/keyboard/components/KeyboardToolbar/Button.mjs +52 -0
- package/dist/esm/keyboard/components/KeyboardToolbar/Button.mjs.map +1 -0
- package/dist/esm/keyboard/components/KeyboardToolbar/Button.native.js +62 -0
- package/dist/esm/keyboard/components/KeyboardToolbar/Button.native.js.map +1 -0
- package/dist/esm/keyboard/components/KeyboardToolbar/colors.mjs +18 -0
- package/dist/esm/keyboard/components/KeyboardToolbar/colors.mjs.map +1 -0
- package/dist/esm/keyboard/components/KeyboardToolbar/colors.native.js +38 -0
- package/dist/esm/keyboard/components/KeyboardToolbar/colors.native.js.map +1 -0
- package/dist/esm/keyboard/components/KeyboardToolbar/compound/components/Background.mjs +8 -0
- package/dist/esm/keyboard/components/KeyboardToolbar/compound/components/Background.mjs.map +1 -0
- package/dist/esm/keyboard/components/KeyboardToolbar/compound/components/Background.native.js +12 -0
- package/dist/esm/keyboard/components/KeyboardToolbar/compound/components/Background.native.js.map +1 -0
- package/dist/esm/keyboard/components/KeyboardToolbar/compound/components/Content.mjs +17 -0
- package/dist/esm/keyboard/components/KeyboardToolbar/compound/components/Content.mjs.map +1 -0
- package/dist/esm/keyboard/components/KeyboardToolbar/compound/components/Content.native.js +19 -0
- package/dist/esm/keyboard/components/KeyboardToolbar/compound/components/Content.native.js.map +1 -0
- package/dist/esm/keyboard/components/KeyboardToolbar/compound/components/Done.mjs +50 -0
- package/dist/esm/keyboard/components/KeyboardToolbar/compound/components/Done.mjs.map +1 -0
- package/dist/esm/keyboard/components/KeyboardToolbar/compound/components/Done.native.js +56 -0
- package/dist/esm/keyboard/components/KeyboardToolbar/compound/components/Done.native.js.map +1 -0
- package/dist/esm/keyboard/components/KeyboardToolbar/compound/components/Next.mjs +39 -0
- package/dist/esm/keyboard/components/KeyboardToolbar/compound/components/Next.mjs.map +1 -0
- package/dist/esm/keyboard/components/KeyboardToolbar/compound/components/Next.native.js +40 -0
- package/dist/esm/keyboard/components/KeyboardToolbar/compound/components/Next.native.js.map +1 -0
- package/dist/esm/keyboard/components/KeyboardToolbar/compound/components/Prev.mjs +39 -0
- package/dist/esm/keyboard/components/KeyboardToolbar/compound/components/Prev.mjs.map +1 -0
- package/dist/esm/keyboard/components/KeyboardToolbar/compound/components/Prev.native.js +40 -0
- package/dist/esm/keyboard/components/KeyboardToolbar/compound/components/Prev.native.js.map +1 -0
- package/dist/esm/keyboard/components/KeyboardToolbar/compound/components/index.mjs +7 -0
- package/dist/esm/keyboard/components/KeyboardToolbar/compound/components/index.native.js +7 -0
- package/dist/esm/keyboard/components/KeyboardToolbar/compound/components/types.mjs +0 -0
- package/dist/esm/keyboard/components/KeyboardToolbar/compound/components/types.native.js +0 -0
- package/dist/esm/keyboard/components/KeyboardToolbar/compound/context.mjs +14 -0
- package/dist/esm/keyboard/components/KeyboardToolbar/compound/context.mjs.map +1 -0
- package/dist/esm/keyboard/components/KeyboardToolbar/compound/context.native.js +14 -0
- package/dist/esm/keyboard/components/KeyboardToolbar/compound/context.native.js.map +1 -0
- package/dist/esm/keyboard/components/KeyboardToolbar/constants.mjs +14 -0
- package/dist/esm/keyboard/components/KeyboardToolbar/constants.mjs.map +1 -0
- package/dist/esm/keyboard/components/KeyboardToolbar/constants.native.js +14 -0
- package/dist/esm/keyboard/components/KeyboardToolbar/constants.native.js.map +1 -0
- package/dist/esm/keyboard/components/KeyboardToolbar/index.mjs +174 -0
- package/dist/esm/keyboard/components/KeyboardToolbar/index.mjs.map +1 -0
- package/dist/esm/keyboard/components/KeyboardToolbar/index.native.js +185 -0
- package/dist/esm/keyboard/components/KeyboardToolbar/index.native.js.map +1 -0
- package/dist/esm/keyboard/components/KeyboardToolbar/types.mjs +0 -0
- package/dist/esm/keyboard/components/KeyboardToolbar/types.native.js +0 -0
- package/dist/esm/keyboard/components/ScrollViewWithBottomPadding/index.mjs +102 -0
- package/dist/esm/keyboard/components/ScrollViewWithBottomPadding/index.mjs.map +1 -0
- package/dist/esm/keyboard/components/ScrollViewWithBottomPadding/index.native.js +107 -0
- package/dist/esm/keyboard/components/ScrollViewWithBottomPadding/index.native.js.map +1 -0
- package/dist/esm/keyboard/components/ScrollViewWithBottomPadding/styles.mjs +11 -0
- package/dist/esm/keyboard/components/ScrollViewWithBottomPadding/styles.mjs.map +1 -0
- package/dist/esm/keyboard/components/ScrollViewWithBottomPadding/styles.native.js +11 -0
- package/dist/esm/keyboard/components/ScrollViewWithBottomPadding/styles.native.js.map +1 -0
- package/dist/esm/keyboard/components/hooks/useCombinedRef.mjs +21 -0
- package/dist/esm/keyboard/components/hooks/useCombinedRef.mjs.map +1 -0
- package/dist/esm/keyboard/components/hooks/useCombinedRef.native.js +41 -0
- package/dist/esm/keyboard/components/hooks/useCombinedRef.native.js.map +1 -0
- package/dist/esm/keyboard/components/hooks/useScrollState.mjs +59 -0
- package/dist/esm/keyboard/components/hooks/useScrollState.mjs.map +1 -0
- package/dist/esm/keyboard/components/hooks/useScrollState.native.js +60 -0
- package/dist/esm/keyboard/components/hooks/useScrollState.native.js.map +1 -0
- package/dist/esm/keyboard/components/index.mjs +8 -0
- package/dist/esm/keyboard/components/index.native.js +8 -0
- package/dist/esm/keyboard/components/utils/safeScrollTo.mjs +14 -0
- package/dist/esm/keyboard/components/utils/safeScrollTo.mjs.map +1 -0
- package/dist/esm/keyboard/components/utils/safeScrollTo.native.js +14 -0
- package/dist/esm/keyboard/components/utils/safeScrollTo.native.js.map +1 -0
- package/dist/esm/keyboard/constants.mjs +25 -0
- package/dist/esm/keyboard/constants.mjs.map +1 -0
- package/dist/esm/keyboard/constants.native.js +25 -0
- package/dist/esm/keyboard/constants.native.js.map +1 -0
- package/dist/esm/keyboard/context.mjs +43 -0
- package/dist/esm/keyboard/context.mjs.map +1 -0
- package/dist/esm/keyboard/context.native.js +49 -0
- package/dist/esm/keyboard/context.native.js.map +1 -0
- package/dist/esm/keyboard/hooks/index.mjs +94 -0
- package/dist/esm/keyboard/hooks/index.mjs.map +1 -0
- package/dist/esm/keyboard/hooks/index.native.js +106 -0
- package/dist/esm/keyboard/hooks/index.native.js.map +1 -0
- package/dist/esm/keyboard/hooks/useKeyboardState/index.mjs +25 -0
- package/dist/esm/keyboard/hooks/useKeyboardState/index.mjs.map +1 -0
- package/dist/esm/keyboard/hooks/useKeyboardState/index.native.js +38 -0
- package/dist/esm/keyboard/hooks/useKeyboardState/index.native.js.map +1 -0
- package/dist/esm/keyboard/hooks/useWindowDimensions/index.mjs +29 -0
- package/dist/esm/keyboard/hooks/useWindowDimensions/index.mjs.map +1 -0
- package/dist/esm/keyboard/hooks/useWindowDimensions/index.native.js +29 -0
- package/dist/esm/keyboard/hooks/useWindowDimensions/index.native.js.map +1 -0
- package/dist/esm/keyboard/index.mjs +20 -0
- package/dist/esm/keyboard/index.native.js +20 -0
- package/dist/esm/keyboard/internal.mjs +55 -0
- package/dist/esm/keyboard/internal.mjs.map +1 -0
- package/dist/esm/keyboard/internal.native.js +55 -0
- package/dist/esm/keyboard/internal.native.js.map +1 -0
- package/dist/esm/keyboard/module.mjs +53 -0
- package/dist/esm/keyboard/module.mjs.map +1 -0
- package/dist/esm/keyboard/module.native.js +58 -0
- package/dist/esm/keyboard/module.native.js.map +1 -0
- package/dist/esm/keyboard/reanimated.mjs +9 -0
- package/dist/esm/keyboard/reanimated.mjs.map +1 -0
- package/dist/esm/keyboard/reanimated.native.js +55 -0
- package/dist/esm/keyboard/reanimated.native.js.map +1 -0
- package/dist/esm/keyboard/typings/hooks.mjs +0 -0
- package/dist/esm/keyboard/typings/hooks.native.js +0 -0
- package/dist/esm/keyboard/typings/index.mjs +9 -0
- package/dist/esm/keyboard/typings/index.native.js +9 -0
- package/dist/esm/keyboard/typings/internal.mjs +0 -0
- package/dist/esm/keyboard/typings/internal.native.js +0 -0
- package/dist/esm/keyboard/typings/module.mjs +0 -0
- package/dist/esm/keyboard/typings/module.native.js +0 -0
- package/dist/esm/keyboard/typings/provider.mjs +0 -0
- package/dist/esm/keyboard/typings/provider.native.js +0 -0
- package/dist/esm/keyboard/typings/views.mjs +0 -0
- package/dist/esm/keyboard/typings/views.native.js +0 -0
- package/dist/esm/keyboard/utils/findNodeHandle/index.mjs +5 -0
- package/dist/esm/keyboard/utils/findNodeHandle/index.mjs.map +1 -0
- package/dist/esm/keyboard/utils/findNodeHandle/index.native.js +3 -0
- package/dist/esm/keyboard/views/KeyboardExtender/index.ios.js +23 -0
- package/dist/esm/keyboard/views/KeyboardExtender/index.ios.js.map +1 -0
- package/dist/esm/keyboard/views/KeyboardExtender/index.mjs +29 -0
- package/dist/esm/keyboard/views/KeyboardExtender/index.mjs.map +1 -0
- package/dist/esm/keyboard/views/KeyboardExtender/index.native.js +30 -0
- package/dist/esm/keyboard/views/KeyboardExtender/index.native.js.map +1 -0
- package/dist/esm/keyboard/views/OverKeyboardView/index.mjs +41 -0
- package/dist/esm/keyboard/views/OverKeyboardView/index.mjs.map +1 -0
- package/dist/esm/keyboard/views/OverKeyboardView/index.native.js +45 -0
- package/dist/esm/keyboard/views/OverKeyboardView/index.native.js.map +1 -0
- package/dist/esm/keyboard/views/index.mjs +4 -0
- package/dist/esm/keyboard/views/index.native.js +4 -0
- package/dist/esm/keyboard.mjs +1 -0
- package/dist/esm/keyboard.native.js +1 -0
- package/dist/esm/platform/specs/OneClippingScrollViewDecoratorViewNativeComponent.mjs +16 -0
- package/dist/esm/platform/specs/OneClippingScrollViewDecoratorViewNativeComponent.mjs.map +7 -0
- package/dist/esm/platform/specs/OneClippingScrollViewDecoratorViewNativeComponent.native.js +16 -0
- package/dist/esm/platform/specs/OneClippingScrollViewDecoratorViewNativeComponent.native.js.map +7 -0
- package/dist/esm/platform/specs/OneKeyboard.nitro.mjs +0 -0
- package/dist/esm/platform/specs/OneKeyboard.nitro.native.js +0 -0
- package/dist/esm/platform/specs/OneKeyboardBackgroundViewNativeComponent.mjs +12 -0
- package/dist/esm/platform/specs/OneKeyboardBackgroundViewNativeComponent.mjs.map +7 -0
- package/dist/esm/platform/specs/OneKeyboardBackgroundViewNativeComponent.native.js +12 -0
- package/dist/esm/platform/specs/OneKeyboardBackgroundViewNativeComponent.native.js.map +7 -0
- package/dist/esm/platform/specs/OneKeyboardControllerViewNativeComponent.mjs +61 -0
- package/dist/esm/platform/specs/OneKeyboardControllerViewNativeComponent.mjs.map +7 -0
- package/dist/esm/platform/specs/OneKeyboardControllerViewNativeComponent.native.js +61 -0
- package/dist/esm/platform/specs/OneKeyboardControllerViewNativeComponent.native.js.map +7 -0
- package/dist/esm/platform/specs/OneKeyboardExtenderNativeComponent.mjs +15 -0
- package/dist/esm/platform/specs/OneKeyboardExtenderNativeComponent.mjs.map +7 -0
- package/dist/esm/platform/specs/OneKeyboardExtenderNativeComponent.native.js +15 -0
- package/dist/esm/platform/specs/OneKeyboardExtenderNativeComponent.native.js.map +7 -0
- package/dist/esm/platform/specs/OneKeyboardGestureAreaNativeComponent.mjs +18 -0
- package/dist/esm/platform/specs/OneKeyboardGestureAreaNativeComponent.mjs.map +7 -0
- package/dist/esm/platform/specs/OneKeyboardGestureAreaNativeComponent.native.js +18 -0
- package/dist/esm/platform/specs/OneKeyboardGestureAreaNativeComponent.native.js.map +7 -0
- package/dist/esm/platform/specs/OneKeyboardToolbarGroupViewNativeComponent.mjs +12 -0
- package/dist/esm/platform/specs/OneKeyboardToolbarGroupViewNativeComponent.mjs.map +7 -0
- package/dist/esm/platform/specs/OneKeyboardToolbarGroupViewNativeComponent.native.js +12 -0
- package/dist/esm/platform/specs/OneKeyboardToolbarGroupViewNativeComponent.native.js.map +7 -0
- package/dist/esm/platform/specs/OneOverKeyboardViewNativeComponent.mjs +14 -0
- package/dist/esm/platform/specs/OneOverKeyboardViewNativeComponent.mjs.map +7 -0
- package/dist/esm/platform/specs/OneOverKeyboardViewNativeComponent.native.js +14 -0
- package/dist/esm/platform/specs/OneOverKeyboardViewNativeComponent.native.js.map +7 -0
- package/ios/Keyboard/KeyboardBackdropController.swift +57 -0
- package/ios/Keyboard/KeyboardControllerModuleImpl.swift +75 -0
- package/ios/Keyboard/LICENSE +21 -0
- package/ios/Keyboard/OneKeyboardBridge.swift +51 -0
- package/ios/Keyboard/animations/KeyboardAnimation.swift +80 -0
- package/ios/Keyboard/animations/SpringAnimation.swift +75 -0
- package/ios/Keyboard/animations/TimingAnimation.swift +145 -0
- package/ios/Keyboard/core/KeyboardControllerConfiguration.swift +9 -0
- package/ios/Keyboard/core/UIUtils.swift +6 -0
- package/ios/Keyboard/delegates/KCTextInputCompositeDelegate.swift +263 -0
- package/ios/Keyboard/events/KeyboardEventEmitterPayload.swift +16 -0
- package/ios/Keyboard/events/OneKCFocusedInputLayoutChangedEvent.h +8 -0
- package/ios/Keyboard/events/OneKCFocusedInputLayoutChangedEvent.m +70 -0
- package/ios/Keyboard/events/OneKCFocusedInputSelectionChangedEvent.h +8 -0
- package/ios/Keyboard/events/OneKCFocusedInputSelectionChangedEvent.m +69 -0
- package/ios/Keyboard/events/OneKCFocusedInputTextChangedEvent.h +8 -0
- package/ios/Keyboard/events/OneKCFocusedInputTextChangedEvent.m +64 -0
- package/ios/Keyboard/events/OneKCKeyboardMoveEvent.h +13 -0
- package/ios/Keyboard/events/OneKCKeyboardMoveEvent.m +75 -0
- package/ios/Keyboard/extensions/CGFloat.swift +13 -0
- package/ios/Keyboard/extensions/Date.swift +7 -0
- package/ios/Keyboard/extensions/NSObject.swift +5 -0
- package/ios/Keyboard/extensions/Notification.swift +15 -0
- package/ios/Keyboard/extensions/String.swift +5 -0
- package/ios/Keyboard/extensions/UIApplication.swift +38 -0
- package/ios/Keyboard/extensions/UIKeyboardType.swift +23 -0
- package/ios/Keyboard/extensions/UIResponder.swift +94 -0
- package/ios/Keyboard/extensions/UIScrollView.swift +8 -0
- package/ios/Keyboard/extensions/UIView.swift +83 -0
- package/ios/Keyboard/extensions/UIWindow.swift +56 -0
- package/ios/Keyboard/interactive/InvisibleInputAccessoryView.swift +52 -0
- package/ios/Keyboard/interactive/KeyboardAreaExtender.swift +68 -0
- package/ios/Keyboard/interactive/KeyboardOffsetProvider.swift +32 -0
- package/ios/Keyboard/objc/NSObject+SafeKVC.h +5 -0
- package/ios/Keyboard/objc/NSObject+SafeKVC.m +12 -0
- package/ios/Keyboard/objc/TextInput+DelegateManager.h +13 -0
- package/ios/Keyboard/objc/TextInput+DelegateManager.m +48 -0
- package/ios/Keyboard/observers/FocusedInputObserver.swift +334 -0
- package/ios/Keyboard/observers/movement/KeyboardEventsIgnorer.swift +32 -0
- package/ios/Keyboard/observers/movement/KeyboardTrackingView.swift +163 -0
- package/ios/Keyboard/observers/movement/KeyboardViewLocator.swift +16 -0
- package/ios/Keyboard/observers/movement/observer/KeyboardMovementObserver+Animation.swift +14 -0
- package/ios/Keyboard/observers/movement/observer/KeyboardMovementObserver+Interactive.swift +55 -0
- package/ios/Keyboard/observers/movement/observer/KeyboardMovementObserver+Lifecycle.swift +28 -0
- package/ios/Keyboard/observers/movement/observer/KeyboardMovementObserver+Listeners.swift +116 -0
- package/ios/Keyboard/observers/movement/observer/KeyboardMovementObserver+Watcher.swift +69 -0
- package/ios/Keyboard/observers/movement/observer/KeyboardMovementObserver.swift +57 -0
- package/ios/Keyboard/protocols/TextInput.swift +50 -0
- package/ios/Keyboard/swizzling/UIResponderSwizzle.swift +144 -0
- package/ios/Keyboard/traversal/FocusedInputHolder.swift +24 -0
- package/ios/Keyboard/traversal/KeyboardView.swift +28 -0
- package/ios/Keyboard/traversal/ViewHierarchyNavigator.swift +157 -0
- package/ios/Keyboard/views/KeyboardExtenderContainerView.swift +207 -0
- package/ios/Keyboard/views/OneClippingScrollViewDecoratorViewComponentView.h +8 -0
- package/ios/Keyboard/views/OneClippingScrollViewDecoratorViewComponentView.mm +230 -0
- package/ios/Keyboard/views/OneKeyboardBackgroundViewComponentView.h +8 -0
- package/ios/Keyboard/views/OneKeyboardBackgroundViewComponentView.mm +123 -0
- package/ios/Keyboard/views/OneKeyboardControllerViewComponentView.h +13 -0
- package/ios/Keyboard/views/OneKeyboardControllerViewComponentView.mm +299 -0
- package/ios/Keyboard/views/OneKeyboardExtenderComponentView.h +16 -0
- package/ios/Keyboard/views/OneKeyboardExtenderComponentView.mm +275 -0
- package/ios/Keyboard/views/OneKeyboardGestureAreaComponentView.h +10 -0
- package/ios/Keyboard/views/OneKeyboardGestureAreaComponentView.mm +111 -0
- package/ios/Keyboard/views/OneKeyboardToolbarGroupViewComponentView.h +7 -0
- package/ios/Keyboard/views/OneKeyboardToolbarGroupViewComponentView.mm +47 -0
- package/ios/Keyboard/views/OneOverKeyboardViewComponentView.h +15 -0
- package/ios/Keyboard/views/OneOverKeyboardViewComponentView.mm +155 -0
- package/ios/Nitro/HybridOneKeyboard.swift +140 -0
- package/ios/Nitro/OneLaunchScreen.h +2 -0
- package/ios/Nitro/OneLaunchScreen.m +16 -0
- package/nitrogen/generated/android/One+autolinking.cmake +2 -0
- package/nitrogen/generated/android/OneOnLoad.cpp +24 -2
- package/nitrogen/generated/android/c++/JFunc_void_OneKeyboardEventName_OneKeyboardEvent.hpp +80 -0
- package/nitrogen/generated/android/c++/JFunc_void_OneKeyboardFocus.hpp +77 -0
- package/nitrogen/generated/android/c++/JFunc_void_double_double.hpp +75 -0
- package/nitrogen/generated/android/c++/JHybridOneKeyboardSpec.cpp +181 -0
- package/nitrogen/generated/android/c++/JHybridOneKeyboardSpec.hpp +74 -0
- package/nitrogen/generated/android/c++/JOneKeyboardEvent.hpp +77 -0
- package/nitrogen/generated/android/c++/JOneKeyboardEventName.hpp +64 -0
- package/nitrogen/generated/android/c++/JOneKeyboardFocus.hpp +61 -0
- package/nitrogen/generated/android/c++/JOneKeyboardFrame.hpp +69 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/one/Func_void_OneKeyboardEventName_OneKeyboardEvent.kt +78 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/one/Func_void_OneKeyboardFocus.kt +78 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/one/Func_void_double_double.kt +78 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/one/HybridOneKeyboardSpec.kt +128 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/one/OneKeyboardEvent.kt +76 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/one/OneKeyboardEventName.kt +25 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/one/OneKeyboardFocus.kt +56 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/one/OneKeyboardFrame.kt +66 -0
- package/nitrogen/generated/ios/One-Swift-Cxx-Bridge.cpp +197 -148
- package/nitrogen/generated/ios/One-Swift-Cxx-Bridge.hpp +590 -452
- package/nitrogen/generated/ios/One-Swift-Cxx-Umbrella.hpp +17 -0
- package/nitrogen/generated/ios/OneAutolinking.mm +8 -0
- package/nitrogen/generated/ios/OneAutolinking.swift +12 -0
- package/nitrogen/generated/ios/c++/HybridOneKeyboardSpecSwift.cpp +11 -0
- package/nitrogen/generated/ios/c++/HybridOneKeyboardSpecSwift.hpp +173 -0
- package/nitrogen/generated/ios/swift/Func_void_OneKeyboardEventName_OneKeyboardEvent.swift +46 -0
- package/nitrogen/generated/ios/swift/Func_void_OneKeyboardFocus.swift +46 -0
- package/nitrogen/generated/ios/swift/Func_void_OneKeyboardFrame.swift +46 -0
- package/nitrogen/generated/ios/swift/Func_void_double_double.swift +46 -0
- package/nitrogen/generated/ios/swift/HybridOneKeyboardSpec.swift +66 -0
- package/nitrogen/generated/ios/swift/HybridOneKeyboardSpec_cxx.swift +316 -0
- package/nitrogen/generated/ios/swift/OneKeyboardEvent.swift +54 -0
- package/nitrogen/generated/ios/swift/OneKeyboardEventName.swift +48 -0
- package/nitrogen/generated/ios/swift/OneKeyboardFocus.swift +34 -0
- package/nitrogen/generated/ios/swift/OneKeyboardFrame.swift +44 -0
- package/nitrogen/generated/shared/c++/HybridOneKeyboardSpec.cpp +33 -0
- package/nitrogen/generated/shared/c++/HybridOneKeyboardSpec.hpp +86 -0
- package/nitrogen/generated/shared/c++/OneKeyboardEvent.hpp +103 -0
- package/nitrogen/generated/shared/c++/OneKeyboardEventName.hpp +84 -0
- package/nitrogen/generated/shared/c++/OneKeyboardFocus.hpp +87 -0
- package/nitrogen/generated/shared/c++/OneKeyboardFrame.hpp +95 -0
- package/package.json +27 -13
- package/react-native.config.cjs +6 -0
- package/src/keyboard/LICENSE +21 -0
- package/src/keyboard/animated.tsx +235 -0
- package/src/keyboard/architecture.ts +1 -0
- package/src/keyboard/bindings.native.ts +113 -0
- package/src/keyboard/bindings.ts +100 -0
- package/src/keyboard/compat.ts +61 -0
- package/src/keyboard/components/KeyboardAvoidingView/hooks.ts +152 -0
- package/src/keyboard/components/KeyboardAvoidingView/index.tsx +260 -0
- package/src/keyboard/components/KeyboardAwareScrollView/index.tsx +607 -0
- package/src/keyboard/components/KeyboardAwareScrollView/types.ts +30 -0
- package/src/keyboard/components/KeyboardAwareScrollView/useSmoothKeyboardHandler.ts +151 -0
- package/src/keyboard/components/KeyboardAwareScrollView/utils.ts +42 -0
- package/src/keyboard/components/KeyboardChatScrollView/hooks.ts +2 -0
- package/src/keyboard/components/KeyboardChatScrollView/index.tsx +182 -0
- package/src/keyboard/components/KeyboardChatScrollView/types.ts +120 -0
- package/src/keyboard/components/KeyboardChatScrollView/useChatKeyboard/helpers.ts +263 -0
- package/src/keyboard/components/KeyboardChatScrollView/useChatKeyboard/index.ios.ts +255 -0
- package/src/keyboard/components/KeyboardChatScrollView/useChatKeyboard/index.ts +356 -0
- package/src/keyboard/components/KeyboardChatScrollView/useChatKeyboard/types.ts +39 -0
- package/src/keyboard/components/KeyboardChatScrollView/useEndVisible.ts +59 -0
- package/src/keyboard/components/KeyboardChatScrollView/useExtraContentPadding/index.ts +188 -0
- package/src/keyboard/components/KeyboardChatScrollView/useFrozenPadding/index.ts +80 -0
- package/src/keyboard/components/KeyboardEffects/index.tsx +122 -0
- package/src/keyboard/components/KeyboardStickyView/index.tsx +75 -0
- package/src/keyboard/components/KeyboardToolbar/Arrow.tsx +76 -0
- package/src/keyboard/components/KeyboardToolbar/Button.tsx +89 -0
- package/src/keyboard/components/KeyboardToolbar/colors.native.ts +37 -0
- package/src/keyboard/components/KeyboardToolbar/colors.ts +16 -0
- package/src/keyboard/components/KeyboardToolbar/compound/components/Background.tsx +7 -0
- package/src/keyboard/components/KeyboardToolbar/compound/components/Content.tsx +23 -0
- package/src/keyboard/components/KeyboardToolbar/compound/components/Done.tsx +70 -0
- package/src/keyboard/components/KeyboardToolbar/compound/components/Next.tsx +53 -0
- package/src/keyboard/components/KeyboardToolbar/compound/components/Prev.tsx +54 -0
- package/src/keyboard/components/KeyboardToolbar/compound/components/index.ts +5 -0
- package/src/keyboard/components/KeyboardToolbar/compound/components/types.ts +15 -0
- package/src/keyboard/components/KeyboardToolbar/compound/context.ts +21 -0
- package/src/keyboard/components/KeyboardToolbar/constants.ts +13 -0
- package/src/keyboard/components/KeyboardToolbar/index.tsx +231 -0
- package/src/keyboard/components/KeyboardToolbar/types.ts +129 -0
- package/src/keyboard/components/ScrollViewWithBottomPadding/index.tsx +185 -0
- package/src/keyboard/components/ScrollViewWithBottomPadding/styles.ts +10 -0
- package/src/keyboard/components/hooks/useCombinedRef.ts +22 -0
- package/src/keyboard/components/hooks/useScrollState.ts +81 -0
- package/src/keyboard/components/index.ts +22 -0
- package/src/keyboard/components/utils/safeScrollTo.ts +26 -0
- package/src/keyboard/constants.ts +23 -0
- package/src/keyboard/context.ts +100 -0
- package/src/keyboard/hooks/index.ts +289 -0
- package/src/keyboard/hooks/useKeyboardState/index.ts +70 -0
- package/src/keyboard/hooks/useWindowDimensions/index.ts +38 -0
- package/src/keyboard/index.ts +31 -0
- package/src/keyboard/internal.ts +117 -0
- package/src/keyboard/module.ts +62 -0
- package/src/keyboard/reanimated.native.ts +104 -0
- package/src/keyboard/reanimated.ts +26 -0
- package/src/keyboard/typings/hooks.ts +214 -0
- package/src/keyboard/typings/index.ts +5 -0
- package/src/keyboard/typings/internal.ts +24 -0
- package/src/keyboard/typings/module.ts +136 -0
- package/src/keyboard/typings/provider.ts +43 -0
- package/src/keyboard/typings/views.ts +63 -0
- package/src/keyboard/utils/findNodeHandle/index.native.ts +3 -0
- package/src/keyboard/utils/findNodeHandle/index.ts +6 -0
- package/src/keyboard/views/KeyboardExtender/index.ios.tsx +35 -0
- package/src/keyboard/views/KeyboardExtender/index.tsx +47 -0
- package/src/keyboard/views/OverKeyboardView/index.tsx +61 -0
- package/src/keyboard/views/index.ts +2 -0
- package/src/keyboard.ts +1 -0
- package/src/platform/specs/OneClippingScrollViewDecoratorViewNativeComponent.ts +15 -0
- package/src/platform/specs/OneKeyboard.nitro.ts +49 -0
- package/src/platform/specs/OneKeyboardBackgroundViewNativeComponent.ts +10 -0
- package/src/platform/specs/OneKeyboardControllerViewNativeComponent.ts +84 -0
- package/src/platform/specs/OneKeyboardExtenderNativeComponent.ts +13 -0
- package/src/platform/specs/OneKeyboardGestureAreaNativeComponent.ts +17 -0
- package/src/platform/specs/OneKeyboardToolbarGroupViewNativeComponent.ts +10 -0
- package/src/platform/specs/OneOverKeyboardViewNativeComponent.ts +12 -0
- package/types/keyboard/animated.d.ts +18 -0
- package/types/keyboard/animated.d.ts.map +1 -0
- package/types/keyboard/architecture.d.ts +2 -0
- package/types/keyboard/architecture.d.ts.map +1 -0
- package/types/keyboard/bindings.d.ts +64 -0
- package/types/keyboard/bindings.d.ts.map +1 -0
- package/types/keyboard/bindings.native.d.ts +19 -0
- package/types/keyboard/bindings.native.d.ts.map +1 -0
- package/types/keyboard/compat.d.ts +28 -0
- package/types/keyboard/compat.d.ts.map +1 -0
- package/types/keyboard/components/KeyboardAvoidingView/hooks.d.ts +11 -0
- package/types/keyboard/components/KeyboardAvoidingView/hooks.d.ts.map +1 -0
- package/types/keyboard/components/KeyboardAvoidingView/index.d.ts +81 -0
- package/types/keyboard/components/KeyboardAvoidingView/index.d.ts.map +1 -0
- package/types/keyboard/components/KeyboardAwareScrollView/index.d.ts +31 -0
- package/types/keyboard/components/KeyboardAwareScrollView/index.d.ts.map +1 -0
- package/types/keyboard/components/KeyboardAwareScrollView/types.d.ts +29 -0
- package/types/keyboard/components/KeyboardAwareScrollView/types.d.ts.map +1 -0
- package/types/keyboard/components/KeyboardAwareScrollView/useSmoothKeyboardHandler.d.ts +23 -0
- package/types/keyboard/components/KeyboardAwareScrollView/useSmoothKeyboardHandler.d.ts.map +1 -0
- package/types/keyboard/components/KeyboardAwareScrollView/utils.d.ts +3 -0
- package/types/keyboard/components/KeyboardAwareScrollView/utils.d.ts.map +1 -0
- package/types/keyboard/components/KeyboardChatScrollView/hooks.d.ts +3 -0
- package/types/keyboard/components/KeyboardChatScrollView/hooks.d.ts.map +1 -0
- package/types/keyboard/components/KeyboardChatScrollView/index.d.ts +5 -0
- package/types/keyboard/components/KeyboardChatScrollView/index.d.ts.map +1 -0
- package/types/keyboard/components/KeyboardChatScrollView/types.d.ts +116 -0
- package/types/keyboard/components/KeyboardChatScrollView/types.d.ts.map +1 -0
- package/types/keyboard/components/KeyboardChatScrollView/useChatKeyboard/helpers.d.ts +134 -0
- package/types/keyboard/components/KeyboardChatScrollView/useChatKeyboard/helpers.d.ts.map +1 -0
- package/types/keyboard/components/KeyboardChatScrollView/useChatKeyboard/index.d.ts +19 -0
- package/types/keyboard/components/KeyboardChatScrollView/useChatKeyboard/index.d.ts.map +1 -0
- package/types/keyboard/components/KeyboardChatScrollView/useChatKeyboard/index.ios.d.ts +22 -0
- package/types/keyboard/components/KeyboardChatScrollView/useChatKeyboard/index.ios.d.ts.map +1 -0
- package/types/keyboard/components/KeyboardChatScrollView/useChatKeyboard/types.d.ts +42 -0
- package/types/keyboard/components/KeyboardChatScrollView/useChatKeyboard/types.d.ts.map +1 -0
- package/types/keyboard/components/KeyboardChatScrollView/useEndVisible.d.ts +18 -0
- package/types/keyboard/components/KeyboardChatScrollView/useEndVisible.d.ts.map +1 -0
- package/types/keyboard/components/KeyboardChatScrollView/useExtraContentPadding/index.d.ts +48 -0
- package/types/keyboard/components/KeyboardChatScrollView/useExtraContentPadding/index.d.ts.map +1 -0
- package/types/keyboard/components/KeyboardChatScrollView/useFrozenPadding/index.d.ts +31 -0
- package/types/keyboard/components/KeyboardChatScrollView/useFrozenPadding/index.d.ts.map +1 -0
- package/types/keyboard/components/KeyboardEffects/index.d.ts +61 -0
- package/types/keyboard/components/KeyboardEffects/index.d.ts.map +1 -0
- package/types/keyboard/components/KeyboardStickyView/index.d.ts +53 -0
- package/types/keyboard/components/KeyboardStickyView/index.d.ts.map +1 -0
- package/types/keyboard/components/KeyboardToolbar/Arrow.d.ts +10 -0
- package/types/keyboard/components/KeyboardToolbar/Arrow.d.ts.map +1 -0
- package/types/keyboard/components/KeyboardToolbar/Button.d.ts +18 -0
- package/types/keyboard/components/KeyboardToolbar/Button.d.ts.map +1 -0
- package/types/keyboard/components/KeyboardToolbar/colors.d.ts +3 -0
- package/types/keyboard/components/KeyboardToolbar/colors.d.ts.map +1 -0
- package/types/keyboard/components/KeyboardToolbar/colors.native.d.ts +3 -0
- package/types/keyboard/components/KeyboardToolbar/colors.native.d.ts.map +1 -0
- package/types/keyboard/components/KeyboardToolbar/compound/components/Background.d.ts +7 -0
- package/types/keyboard/components/KeyboardToolbar/compound/components/Background.d.ts.map +1 -0
- package/types/keyboard/components/KeyboardToolbar/compound/components/Content.d.ts +8 -0
- package/types/keyboard/components/KeyboardToolbar/compound/components/Content.d.ts.map +1 -0
- package/types/keyboard/components/KeyboardToolbar/compound/components/Done.d.ts +8 -0
- package/types/keyboard/components/KeyboardToolbar/compound/components/Done.d.ts.map +1 -0
- package/types/keyboard/components/KeyboardToolbar/compound/components/Next.d.ts +5 -0
- package/types/keyboard/components/KeyboardToolbar/compound/components/Next.d.ts.map +1 -0
- package/types/keyboard/components/KeyboardToolbar/compound/components/Prev.d.ts +5 -0
- package/types/keyboard/components/KeyboardToolbar/compound/components/Prev.d.ts.map +1 -0
- package/types/keyboard/components/KeyboardToolbar/compound/components/index.d.ts +6 -0
- package/types/keyboard/components/KeyboardToolbar/compound/components/index.d.ts.map +1 -0
- package/types/keyboard/components/KeyboardToolbar/compound/components/types.d.ts +15 -0
- package/types/keyboard/components/KeyboardToolbar/compound/components/types.d.ts.map +1 -0
- package/types/keyboard/components/KeyboardToolbar/compound/context.d.ts +10 -0
- package/types/keyboard/components/KeyboardToolbar/compound/context.d.ts.map +1 -0
- package/types/keyboard/components/KeyboardToolbar/constants.d.ts +10 -0
- package/types/keyboard/components/KeyboardToolbar/constants.d.ts.map +1 -0
- package/types/keyboard/components/KeyboardToolbar/index.d.ts +30 -0
- package/types/keyboard/components/KeyboardToolbar/index.d.ts.map +1 -0
- package/types/keyboard/components/KeyboardToolbar/types.d.ts +106 -0
- package/types/keyboard/components/KeyboardToolbar/types.d.ts.map +1 -0
- package/types/keyboard/components/ScrollViewWithBottomPadding/index.d.ts +31 -0
- package/types/keyboard/components/ScrollViewWithBottomPadding/index.d.ts.map +1 -0
- package/types/keyboard/components/ScrollViewWithBottomPadding/styles.d.ts +8 -0
- package/types/keyboard/components/ScrollViewWithBottomPadding/styles.d.ts.map +1 -0
- package/types/keyboard/components/hooks/useCombinedRef.d.ts +4 -0
- package/types/keyboard/components/hooks/useCombinedRef.d.ts.map +1 -0
- package/types/keyboard/components/hooks/useScrollState.d.ts +18 -0
- package/types/keyboard/components/hooks/useScrollState.d.ts.map +1 -0
- package/types/keyboard/components/index.d.ts +13 -0
- package/types/keyboard/components/index.d.ts.map +1 -0
- package/types/keyboard/components/utils/safeScrollTo.d.ts +13 -0
- package/types/keyboard/components/utils/safeScrollTo.d.ts.map +1 -0
- package/types/keyboard/constants.d.ts +19 -0
- package/types/keyboard/constants.d.ts.map +1 -0
- package/types/keyboard/context.d.ts +58 -0
- package/types/keyboard/context.d.ts.map +1 -0
- package/types/keyboard/hooks/index.d.ts +176 -0
- package/types/keyboard/hooks/index.d.ts.map +1 -0
- package/types/keyboard/hooks/useKeyboardState/index.d.ts +29 -0
- package/types/keyboard/hooks/useKeyboardState/index.d.ts.map +1 -0
- package/types/keyboard/hooks/useWindowDimensions/index.d.ts +3 -0
- package/types/keyboard/hooks/useWindowDimensions/index.d.ts.map +1 -0
- package/types/keyboard/index.d.ts +12 -0
- package/types/keyboard/index.d.ts.map +1 -0
- package/types/keyboard/internal.d.ts +37 -0
- package/types/keyboard/internal.d.ts.map +1 -0
- package/types/keyboard/module.d.ts +6 -0
- package/types/keyboard/module.d.ts.map +1 -0
- package/types/keyboard/reanimated.d.ts +5 -0
- package/types/keyboard/reanimated.d.ts.map +1 -0
- package/types/keyboard/reanimated.native.d.ts +12 -0
- package/types/keyboard/reanimated.native.d.ts.map +1 -0
- package/types/keyboard/typings/hooks.d.ts +168 -0
- package/types/keyboard/typings/hooks.d.ts.map +1 -0
- package/types/keyboard/typings/index.d.ts +6 -0
- package/types/keyboard/typings/index.d.ts.map +1 -0
- package/types/keyboard/typings/internal.d.ts +18 -0
- package/types/keyboard/typings/internal.d.ts.map +1 -0
- package/types/keyboard/typings/module.d.ts +122 -0
- package/types/keyboard/typings/module.d.ts.map +1 -0
- package/types/keyboard/typings/provider.d.ts +44 -0
- package/types/keyboard/typings/provider.d.ts.map +1 -0
- package/types/keyboard/typings/views.d.ts +61 -0
- package/types/keyboard/typings/views.d.ts.map +1 -0
- package/types/keyboard/utils/findNodeHandle/index.d.ts +5 -0
- package/types/keyboard/utils/findNodeHandle/index.d.ts.map +1 -0
- package/types/keyboard/utils/findNodeHandle/index.native.d.ts +3 -0
- package/types/keyboard/utils/findNodeHandle/index.native.d.ts.map +1 -0
- package/types/keyboard/views/KeyboardExtender/index.d.ts +20 -0
- package/types/keyboard/views/KeyboardExtender/index.d.ts.map +1 -0
- package/types/keyboard/views/KeyboardExtender/index.ios.d.ts +20 -0
- package/types/keyboard/views/KeyboardExtender/index.ios.d.ts.map +1 -0
- package/types/keyboard/views/OverKeyboardView/index.d.ts +19 -0
- package/types/keyboard/views/OverKeyboardView/index.d.ts.map +1 -0
- package/types/keyboard/views/index.d.ts +3 -0
- package/types/keyboard/views/index.d.ts.map +1 -0
- package/types/keyboard.d.ts +2 -0
- package/types/keyboard.d.ts.map +1 -0
- package/types/platform/specs/OneClippingScrollViewDecoratorViewNativeComponent.d.ts +11 -0
- package/types/platform/specs/OneClippingScrollViewDecoratorViewNativeComponent.d.ts.map +1 -0
- package/types/platform/specs/OneKeyboard.nitro.d.ts +39 -0
- package/types/platform/specs/OneKeyboard.nitro.d.ts.map +1 -0
- package/types/platform/specs/OneKeyboardBackgroundViewNativeComponent.d.ts +7 -0
- package/types/platform/specs/OneKeyboardBackgroundViewNativeComponent.d.ts.map +1 -0
- package/types/platform/specs/OneKeyboardControllerViewNativeComponent.d.ts +61 -0
- package/types/platform/specs/OneKeyboardControllerViewNativeComponent.d.ts.map +1 -0
- package/types/platform/specs/OneKeyboardExtenderNativeComponent.d.ts +9 -0
- package/types/platform/specs/OneKeyboardExtenderNativeComponent.d.ts.map +1 -0
- package/types/platform/specs/OneKeyboardGestureAreaNativeComponent.d.ts +13 -0
- package/types/platform/specs/OneKeyboardGestureAreaNativeComponent.d.ts.map +1 -0
- package/types/platform/specs/OneKeyboardToolbarGroupViewNativeComponent.d.ts +7 -0
- package/types/platform/specs/OneKeyboardToolbarGroupViewNativeComponent.d.ts.map +1 -0
- package/types/platform/specs/OneOverKeyboardViewNativeComponent.d.ts +8 -0
- package/types/platform/specs/OneOverKeyboardViewNativeComponent.d.ts.map +1 -0
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { useMemo } from "react";
|
|
2
|
+
import { Animated, StyleSheet, View } from "react-native-web";
|
|
3
|
+
import { useKeyboardState } from "../../hooks/index.mjs";
|
|
4
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
+
|
|
6
|
+
// dist/esm/keyboard/components/KeyboardToolbar/Arrow.js
|
|
7
|
+
const ArrowComponent = ({ type, disabled, theme }) => {
|
|
8
|
+
const colorScheme = useKeyboardState((state) => state.appearance);
|
|
9
|
+
const color = useMemo(() => ({ backgroundColor: disabled ? theme[colorScheme].disabled : theme[colorScheme].primary }), [
|
|
10
|
+
disabled,
|
|
11
|
+
theme,
|
|
12
|
+
colorScheme
|
|
13
|
+
]);
|
|
14
|
+
const left = useMemo(() => [styles.arrowLeftLine, color], [color]);
|
|
15
|
+
const right = useMemo(() => [styles.arrowRightLine, color], [color]);
|
|
16
|
+
return /* @__PURE__ */ jsx(View, {
|
|
17
|
+
style: type === "next" ? styles.arrowDownContainer : styles.arrowUpContainer,
|
|
18
|
+
children: /* @__PURE__ */ jsxs(View, {
|
|
19
|
+
style: styles.arrow,
|
|
20
|
+
children: [/* @__PURE__ */ jsx(Animated.View, { style: left }), /* @__PURE__ */ jsx(Animated.View, { style: right })]
|
|
21
|
+
})
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
const arrowLine = {
|
|
25
|
+
width: 13,
|
|
26
|
+
height: 2,
|
|
27
|
+
borderRadius: 1
|
|
28
|
+
};
|
|
29
|
+
const arrowUpContainer = {
|
|
30
|
+
marginHorizontal: 5,
|
|
31
|
+
width: 30,
|
|
32
|
+
height: 30,
|
|
33
|
+
justifyContent: "center",
|
|
34
|
+
alignItems: "center"
|
|
35
|
+
};
|
|
36
|
+
const styles = StyleSheet.create({
|
|
37
|
+
arrowUpContainer,
|
|
38
|
+
arrowDownContainer: {
|
|
39
|
+
...arrowUpContainer,
|
|
40
|
+
transform: [{ rotate: "180deg" }]
|
|
41
|
+
},
|
|
42
|
+
arrow: {
|
|
43
|
+
width: 20,
|
|
44
|
+
height: 20,
|
|
45
|
+
flexDirection: "row",
|
|
46
|
+
alignItems: "center",
|
|
47
|
+
justifyContent: "space-between"
|
|
48
|
+
},
|
|
49
|
+
arrowLeftLine: {
|
|
50
|
+
...arrowLine,
|
|
51
|
+
transform: [{ rotate: "-45deg" }],
|
|
52
|
+
left: -.5
|
|
53
|
+
},
|
|
54
|
+
arrowRightLine: {
|
|
55
|
+
...arrowLine,
|
|
56
|
+
transform: [{ rotate: "45deg" }],
|
|
57
|
+
left: -5.5
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
var Arrow_default = ArrowComponent;
|
|
61
|
+
|
|
62
|
+
export { Arrow_default as default };
|
|
63
|
+
//# sourceMappingURL=Arrow.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Arrow.js","names":[],"sources":["esm/keyboard/components/KeyboardToolbar/Arrow.js"],"sourcesContent":["import { useMemo } from \"react\";\nimport { Animated, StyleSheet, View } from \"react-native-web\";\nimport { useKeyboardState } from \"../../hooks\";\nimport { jsx, jsxs } from \"react/jsx-runtime\";\nconst ArrowComponent = ({ type, disabled, theme }) => {\n const colorScheme = useKeyboardState((state) => state.appearance);\n const color = useMemo(\n () => ({\n backgroundColor: disabled ? theme[colorScheme].disabled : theme[colorScheme].primary\n }),\n [disabled, theme, colorScheme]\n );\n const left = useMemo(() => [styles.arrowLeftLine, color], [color]);\n const right = useMemo(() => [styles.arrowRightLine, color], [color]);\n return /* @__PURE__ */ jsx(View, { style: type === \"next\" ? styles.arrowDownContainer : styles.arrowUpContainer, children: /* @__PURE__ */ jsxs(View, { style: styles.arrow, children: [\n /* @__PURE__ */ jsx(Animated.View, { style: left }),\n /* @__PURE__ */ jsx(Animated.View, { style: right })\n ] }) });\n};\nconst arrowLine = {\n width: 13,\n height: 2,\n borderRadius: 1\n};\nconst arrowUpContainer = {\n marginHorizontal: 5,\n width: 30,\n height: 30,\n justifyContent: \"center\",\n alignItems: \"center\"\n};\nconst styles = StyleSheet.create({\n arrowUpContainer,\n arrowDownContainer: {\n ...arrowUpContainer,\n transform: [{ rotate: \"180deg\" }]\n },\n arrow: {\n width: 20,\n height: 20,\n flexDirection: \"row\",\n alignItems: \"center\",\n justifyContent: \"space-between\"\n },\n arrowLeftLine: {\n ...arrowLine,\n transform: [{ rotate: \"-45deg\" }],\n left: -0.5\n },\n arrowRightLine: {\n ...arrowLine,\n transform: [{ rotate: \"45deg\" }],\n left: -5.5\n }\n});\nvar Arrow_default = ArrowComponent;\nexport {\n Arrow_default as default\n};\n//# sourceMappingURL=Arrow.js.map\n"],"mappings":";;;;;;AAIA,MAAM,kBAAkB,EAAE,MAAM,UAAU,YAAY;CACpD,MAAM,cAAc,kBAAkB,UAAU,MAAM,UAAU;CAChE,MAAM,QAAQ,eACL,EACL,iBAAiB,WAAW,MAAM,YAAY,CAAC,WAAW,MAAM,YAAY,CAAC,QAC/E,IACA;EAAC;EAAU;EAAO;CAAW,CAC/B;CACA,MAAM,OAAO,cAAc,CAAC,OAAO,eAAe,KAAK,GAAG,CAAC,KAAK,CAAC;CACjE,MAAM,QAAQ,cAAc,CAAC,OAAO,gBAAgB,KAAK,GAAG,CAAC,KAAK,CAAC;CACnE,OAAuB,oBAAI,MAAM;EAAE,OAAO,SAAS,SAAS,OAAO,qBAAqB,OAAO;EAAkB,UAA0B,qBAAK,MAAM;GAAE,OAAO,OAAO;GAAO,UAAU,CACrK,oBAAI,SAAS,MAAM,EAAE,OAAO,KAAK,CAAC,GAClC,oBAAI,SAAS,MAAM,EAAE,OAAO,MAAM,CAAC,CACrD;EAAE,CAAC;CAAE,CAAC;AACR;AACA,MAAM,YAAY;CAChB,OAAO;CACP,QAAQ;CACR,cAAc;AAChB;AACA,MAAM,mBAAmB;CACvB,kBAAkB;CAClB,OAAO;CACP,QAAQ;CACR,gBAAgB;CAChB,YAAY;AACd;AACA,MAAM,SAAS,WAAW,OAAO;CAC/B;CACA,oBAAoB;EAClB,GAAG;EACH,WAAW,CAAC,EAAE,QAAQ,SAAS,CAAC;CAClC;CACA,OAAO;EACL,OAAO;EACP,QAAQ;EACR,eAAe;EACf,YAAY;EACZ,gBAAgB;CAClB;CACA,eAAe;EACb,GAAG;EACH,WAAW,CAAC,EAAE,QAAQ,SAAS,CAAC;EAChC,MAAM,CAAC;CACT;CACA,gBAAgB;EACd,GAAG;EACH,WAAW,CAAC,EAAE,QAAQ,QAAQ,CAAC;EAC/B,MAAM,CAAC;CACT;AACF,CAAC;AACD,IAAI,gBAAgB"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useMemo } from "react";
|
|
3
|
+
import { Animated, StyleSheet, View } from "react-native";
|
|
4
|
+
import { useKeyboardState } from "../../hooks/index.native.js";
|
|
5
|
+
|
|
6
|
+
// dist/esm/keyboard/components/KeyboardToolbar/Arrow.native.js
|
|
7
|
+
var ArrowComponent = function ArrowComponent2(param) {
|
|
8
|
+
var { type, disabled, theme } = param;
|
|
9
|
+
var colorScheme = useKeyboardState(function(state) {
|
|
10
|
+
return state.appearance;
|
|
11
|
+
});
|
|
12
|
+
var color = useMemo(function() {
|
|
13
|
+
return { backgroundColor: disabled ? theme[colorScheme].disabled : theme[colorScheme].primary };
|
|
14
|
+
}, [
|
|
15
|
+
disabled,
|
|
16
|
+
theme,
|
|
17
|
+
colorScheme
|
|
18
|
+
]);
|
|
19
|
+
var left = useMemo(function() {
|
|
20
|
+
return [styles.arrowLeftLine, color];
|
|
21
|
+
}, [color]);
|
|
22
|
+
var right = useMemo(function() {
|
|
23
|
+
return [styles.arrowRightLine, color];
|
|
24
|
+
}, [color]);
|
|
25
|
+
return /* @__PURE__ */ jsx(View, {
|
|
26
|
+
style: type === "next" ? styles.arrowDownContainer : styles.arrowUpContainer,
|
|
27
|
+
children: /* @__PURE__ */ jsxs(View, {
|
|
28
|
+
style: styles.arrow,
|
|
29
|
+
children: [/* @__PURE__ */ jsx(Animated.View, { style: left }), /* @__PURE__ */ jsx(Animated.View, { style: right })]
|
|
30
|
+
})
|
|
31
|
+
});
|
|
32
|
+
};
|
|
33
|
+
var arrowLine = {
|
|
34
|
+
width: 13,
|
|
35
|
+
height: 2,
|
|
36
|
+
borderRadius: 1
|
|
37
|
+
};
|
|
38
|
+
var arrowUpContainer = {
|
|
39
|
+
marginHorizontal: 5,
|
|
40
|
+
width: 30,
|
|
41
|
+
height: 30,
|
|
42
|
+
justifyContent: "center",
|
|
43
|
+
alignItems: "center"
|
|
44
|
+
};
|
|
45
|
+
var styles = StyleSheet.create({
|
|
46
|
+
arrowUpContainer,
|
|
47
|
+
arrowDownContainer: {
|
|
48
|
+
...arrowUpContainer,
|
|
49
|
+
transform: [{ rotate: "180deg" }]
|
|
50
|
+
},
|
|
51
|
+
arrow: {
|
|
52
|
+
width: 20,
|
|
53
|
+
height: 20,
|
|
54
|
+
flexDirection: "row",
|
|
55
|
+
alignItems: "center",
|
|
56
|
+
justifyContent: "space-between"
|
|
57
|
+
},
|
|
58
|
+
arrowLeftLine: {
|
|
59
|
+
...arrowLine,
|
|
60
|
+
transform: [{ rotate: "-45deg" }],
|
|
61
|
+
left: -.5
|
|
62
|
+
},
|
|
63
|
+
arrowRightLine: {
|
|
64
|
+
...arrowLine,
|
|
65
|
+
transform: [{ rotate: "45deg" }],
|
|
66
|
+
left: -5.5
|
|
67
|
+
}
|
|
68
|
+
});
|
|
69
|
+
var Arrow_default = ArrowComponent;
|
|
70
|
+
|
|
71
|
+
export { Arrow_default as default };
|
|
72
|
+
//# sourceMappingURL=Arrow.native.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Arrow.native.js","names":[],"sources":["esm/keyboard/components/KeyboardToolbar/Arrow.native.js"],"sourcesContent":["import { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nimport React, { useMemo } from \"react\";\nimport { Animated, StyleSheet, View } from \"react-native\";\nimport { useKeyboardState } from \"../../hooks\";\nvar ArrowComponent = function ArrowComponent2(param) {\n var { type, disabled, theme } = param;\n var colorScheme = useKeyboardState(function(state) {\n return state.appearance;\n });\n var color = useMemo(function() {\n return {\n backgroundColor: disabled ? theme[colorScheme].disabled : theme[colorScheme].primary\n };\n }, [\n disabled,\n theme,\n colorScheme\n ]);\n var left = useMemo(function() {\n return [\n styles.arrowLeftLine,\n color\n ];\n }, [\n color\n ]);\n var right = useMemo(function() {\n return [\n styles.arrowRightLine,\n color\n ];\n }, [\n color\n ]);\n return /* @__PURE__ */ _jsx(View, {\n style: type === \"next\" ? styles.arrowDownContainer : styles.arrowUpContainer,\n children: /* @__PURE__ */ _jsxs(View, {\n style: styles.arrow,\n children: [\n /* @__PURE__ */ _jsx(Animated.View, {\n style: left\n }),\n /* @__PURE__ */ _jsx(Animated.View, {\n style: right\n })\n ]\n })\n });\n};\nvar arrowLine = {\n width: 13,\n height: 2,\n borderRadius: 1\n};\nvar arrowUpContainer = {\n marginHorizontal: 5,\n width: 30,\n height: 30,\n justifyContent: \"center\",\n alignItems: \"center\"\n};\nvar styles = StyleSheet.create({\n arrowUpContainer,\n arrowDownContainer: {\n ...arrowUpContainer,\n transform: [\n {\n rotate: \"180deg\"\n }\n ]\n },\n arrow: {\n width: 20,\n height: 20,\n flexDirection: \"row\",\n alignItems: \"center\",\n justifyContent: \"space-between\"\n },\n arrowLeftLine: {\n ...arrowLine,\n transform: [\n {\n rotate: \"-45deg\"\n }\n ],\n left: -0.5\n },\n arrowRightLine: {\n ...arrowLine,\n transform: [\n {\n rotate: \"45deg\"\n }\n ],\n left: -5.5\n }\n});\nvar Arrow_default = ArrowComponent;\nexport {\n Arrow_default as default\n};\n//# sourceMappingURL=Arrow.js.map\n"],"mappings":";;;;;;AAIA,IAAI,iBAAiB,SAAS,gBAAgB,OAAO;CACnD,IAAI,EAAE,MAAM,UAAU,UAAU;CAChC,IAAI,cAAc,iBAAiB,SAAS,OAAO;EACjD,OAAO,MAAM;CACf,CAAC;CACD,IAAI,QAAQ,QAAQ,WAAW;EAC7B,OAAO,EACL,iBAAiB,WAAW,MAAM,YAAY,CAAC,WAAW,MAAM,YAAY,CAAC,QAC/E;CACF,GAAG;EACD;EACA;EACA;CACF,CAAC;CACD,IAAI,OAAO,QAAQ,WAAW;EAC5B,OAAO,CACL,OAAO,eACP,KACF;CACF,GAAG,CACD,KACF,CAAC;CACD,IAAI,QAAQ,QAAQ,WAAW;EAC7B,OAAO,CACL,OAAO,gBACP,KACF;CACF,GAAG,CACD,KACF,CAAC;CACD,OAAuB,oBAAK,MAAM;EAChC,OAAO,SAAS,SAAS,OAAO,qBAAqB,OAAO;EAC5D,UAA0B,qBAAM,MAAM;GACpC,OAAO,OAAO;GACd,UAAU,CACQ,oBAAK,SAAS,MAAM,EAClC,OAAO,KACT,CAAC,GACe,oBAAK,SAAS,MAAM,EAClC,OAAO,MACT,CAAC,CACH;EACF,CAAC;CACH,CAAC;AACH;AACA,IAAI,YAAY;CACd,OAAO;CACP,QAAQ;CACR,cAAc;AAChB;AACA,IAAI,mBAAmB;CACrB,kBAAkB;CAClB,OAAO;CACP,QAAQ;CACR,gBAAgB;CAChB,YAAY;AACd;AACA,IAAI,SAAS,WAAW,OAAO;CAC7B;CACA,oBAAoB;EAClB,GAAG;EACH,WAAW,CACT,EACE,QAAQ,SACV,CACF;CACF;CACA,OAAO;EACL,OAAO;EACP,QAAQ;EACR,eAAe;EACf,YAAY;EACZ,gBAAgB;CAClB;CACA,eAAe;EACb,GAAG;EACH,WAAW,CACT,EACE,QAAQ,SACV,CACF;EACA,MAAM,CAAC;CACT;CACA,gBAAgB;EACd,GAAG;EACH,WAAW,CACT,EACE,QAAQ,QACV,CACF;EACA,MAAM,CAAC;CACT;AACF,CAAC;AACD,IAAI,gBAAgB"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { useMemo } from "react";
|
|
2
|
+
import { Platform, Pressable, TouchableOpacity, View } from "react-native-web";
|
|
3
|
+
import { useKeyboardState } from "../../hooks/index.mjs";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
|
|
6
|
+
// dist/esm/keyboard/components/KeyboardToolbar/Button.js
|
|
7
|
+
const ButtonIOS = ({ children, onPress, disabled, accessibilityLabel, accessibilityHint, testID, style }) => {
|
|
8
|
+
const Container = disabled ? View : TouchableOpacity;
|
|
9
|
+
const accessibilityState = useMemo(() => ({ disabled }), [disabled]);
|
|
10
|
+
return /* @__PURE__ */ jsx(Container, {
|
|
11
|
+
accessibilityHint,
|
|
12
|
+
accessibilityLabel,
|
|
13
|
+
accessibilityRole: "button",
|
|
14
|
+
accessibilityState,
|
|
15
|
+
style,
|
|
16
|
+
testID,
|
|
17
|
+
onPress,
|
|
18
|
+
children
|
|
19
|
+
});
|
|
20
|
+
};
|
|
21
|
+
const ButtonAndroid = ({ children, onPress, disabled, accessibilityLabel, accessibilityHint, testID, rippleRadius = 18, style, theme }) => {
|
|
22
|
+
const colorScheme = useKeyboardState((state) => state.appearance);
|
|
23
|
+
const accessibilityState = useMemo(() => ({ disabled }), [disabled]);
|
|
24
|
+
const ripple = useMemo(() => ({
|
|
25
|
+
color: theme[colorScheme].ripple,
|
|
26
|
+
borderless: true,
|
|
27
|
+
radius: rippleRadius
|
|
28
|
+
}), [
|
|
29
|
+
colorScheme,
|
|
30
|
+
rippleRadius,
|
|
31
|
+
theme
|
|
32
|
+
]);
|
|
33
|
+
return /* @__PURE__ */ jsx(Pressable, {
|
|
34
|
+
accessibilityHint,
|
|
35
|
+
accessibilityLabel,
|
|
36
|
+
accessibilityRole: "button",
|
|
37
|
+
accessibilityState,
|
|
38
|
+
android_ripple: ripple,
|
|
39
|
+
disabled,
|
|
40
|
+
style,
|
|
41
|
+
testID,
|
|
42
|
+
onPress,
|
|
43
|
+
children
|
|
44
|
+
});
|
|
45
|
+
};
|
|
46
|
+
var Button_default = Platform.select({
|
|
47
|
+
android: ButtonAndroid,
|
|
48
|
+
default: ButtonIOS
|
|
49
|
+
});
|
|
50
|
+
|
|
51
|
+
export { Button_default as default };
|
|
52
|
+
//# sourceMappingURL=Button.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Button.js","names":[],"sources":["esm/keyboard/components/KeyboardToolbar/Button.js"],"sourcesContent":["import { useMemo } from \"react\";\nimport { Platform, Pressable, TouchableOpacity, View } from \"react-native-web\";\nimport { useKeyboardState } from \"../../hooks\";\nimport { jsx } from \"react/jsx-runtime\";\nconst ButtonIOS = ({\n children,\n onPress,\n disabled,\n accessibilityLabel,\n accessibilityHint,\n testID,\n style\n}) => {\n const Container = disabled ? View : TouchableOpacity;\n const accessibilityState = useMemo(() => ({ disabled }), [disabled]);\n return /* @__PURE__ */ jsx(\n Container,\n {\n accessibilityHint,\n accessibilityLabel,\n accessibilityRole: \"button\",\n accessibilityState,\n style,\n testID,\n onPress,\n children\n }\n );\n};\nconst ButtonAndroid = ({\n children,\n onPress,\n disabled,\n accessibilityLabel,\n accessibilityHint,\n testID,\n rippleRadius = 18,\n style,\n theme\n}) => {\n const colorScheme = useKeyboardState((state) => state.appearance);\n const accessibilityState = useMemo(() => ({ disabled }), [disabled]);\n const ripple = useMemo(\n () => ({ color: theme[colorScheme].ripple, borderless: true, radius: rippleRadius }),\n [colorScheme, rippleRadius, theme]\n );\n return /* @__PURE__ */ jsx(\n Pressable,\n {\n accessibilityHint,\n accessibilityLabel,\n accessibilityRole: \"button\",\n accessibilityState,\n android_ripple: ripple,\n disabled,\n style,\n testID,\n onPress,\n children\n }\n );\n};\nvar Button_default = Platform.select({\n android: ButtonAndroid,\n default: ButtonIOS\n});\nexport {\n Button_default as default\n};\n//# sourceMappingURL=Button.js.map\n"],"mappings":";;;;;;AAIA,MAAM,aAAa,EACjB,UACA,SACA,UACA,oBACA,mBACA,QACA,YACI;CACJ,MAAM,YAAY,WAAW,OAAO;CACpC,MAAM,qBAAqB,eAAe,EAAE,SAAS,IAAI,CAAC,QAAQ,CAAC;CACnE,OAAuB,oBACrB,WACA;EACE;EACA;EACA,mBAAmB;EACnB;EACA;EACA;EACA;EACA;CACF,CACF;AACF;AACA,MAAM,iBAAiB,EACrB,UACA,SACA,UACA,oBACA,mBACA,QACA,eAAe,IACf,OACA,YACI;CACJ,MAAM,cAAc,kBAAkB,UAAU,MAAM,UAAU;CAChE,MAAM,qBAAqB,eAAe,EAAE,SAAS,IAAI,CAAC,QAAQ,CAAC;CACnE,MAAM,SAAS,eACN;EAAE,OAAO,MAAM,YAAY,CAAC;EAAQ,YAAY;EAAM,QAAQ;CAAa,IAClF;EAAC;EAAa;EAAc;CAAK,CACnC;CACA,OAAuB,oBACrB,WACA;EACE;EACA;EACA,mBAAmB;EACnB;EACA,gBAAgB;EAChB;EACA;EACA;EACA;EACA;CACF,CACF;AACF;AACA,IAAI,iBAAiB,SAAS,OAAO;CACnC,SAAS;CACT,SAAS;AACX,CAAC"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useMemo } from "react";
|
|
3
|
+
import { Platform, Pressable, TouchableOpacity, View } from "react-native";
|
|
4
|
+
import { useKeyboardState } from "../../hooks/index.native.js";
|
|
5
|
+
|
|
6
|
+
// dist/esm/keyboard/components/KeyboardToolbar/Button.native.js
|
|
7
|
+
var ButtonIOS = function ButtonIOS2(param) {
|
|
8
|
+
var { children, onPress, disabled, accessibilityLabel, accessibilityHint, testID, style } = param;
|
|
9
|
+
var Container = disabled ? View : TouchableOpacity;
|
|
10
|
+
var accessibilityState = useMemo(function() {
|
|
11
|
+
return { disabled };
|
|
12
|
+
}, [disabled]);
|
|
13
|
+
return /* @__PURE__ */ jsx(Container, {
|
|
14
|
+
accessibilityHint,
|
|
15
|
+
accessibilityLabel,
|
|
16
|
+
accessibilityRole: "button",
|
|
17
|
+
accessibilityState,
|
|
18
|
+
style,
|
|
19
|
+
testID,
|
|
20
|
+
onPress,
|
|
21
|
+
children
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
var ButtonAndroid = function ButtonAndroid2(param) {
|
|
25
|
+
var { children, onPress, disabled, accessibilityLabel, accessibilityHint, testID, rippleRadius = 18, style, theme } = param;
|
|
26
|
+
var colorScheme = useKeyboardState(function(state) {
|
|
27
|
+
return state.appearance;
|
|
28
|
+
});
|
|
29
|
+
var accessibilityState = useMemo(function() {
|
|
30
|
+
return { disabled };
|
|
31
|
+
}, [disabled]);
|
|
32
|
+
var ripple = useMemo(function() {
|
|
33
|
+
return {
|
|
34
|
+
color: theme[colorScheme].ripple,
|
|
35
|
+
borderless: true,
|
|
36
|
+
radius: rippleRadius
|
|
37
|
+
};
|
|
38
|
+
}, [
|
|
39
|
+
colorScheme,
|
|
40
|
+
rippleRadius,
|
|
41
|
+
theme
|
|
42
|
+
]);
|
|
43
|
+
return /* @__PURE__ */ jsx(Pressable, {
|
|
44
|
+
accessibilityHint,
|
|
45
|
+
accessibilityLabel,
|
|
46
|
+
accessibilityRole: "button",
|
|
47
|
+
accessibilityState,
|
|
48
|
+
android_ripple: ripple,
|
|
49
|
+
disabled,
|
|
50
|
+
style,
|
|
51
|
+
testID,
|
|
52
|
+
onPress,
|
|
53
|
+
children
|
|
54
|
+
});
|
|
55
|
+
};
|
|
56
|
+
var Button_default = Platform.select({
|
|
57
|
+
android: ButtonAndroid,
|
|
58
|
+
default: ButtonIOS
|
|
59
|
+
});
|
|
60
|
+
|
|
61
|
+
export { Button_default as default };
|
|
62
|
+
//# sourceMappingURL=Button.native.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Button.native.js","names":[],"sources":["esm/keyboard/components/KeyboardToolbar/Button.native.js"],"sourcesContent":["import { jsx as _jsx } from \"react/jsx-runtime\";\nimport React, { useMemo } from \"react\";\nimport { Platform, Pressable, TouchableOpacity, View } from \"react-native\";\nimport { useKeyboardState } from \"../../hooks\";\nvar ButtonIOS = function ButtonIOS2(param) {\n var { children, onPress, disabled, accessibilityLabel, accessibilityHint, testID, style } = param;\n var Container = disabled ? View : TouchableOpacity;\n var accessibilityState = useMemo(function() {\n return {\n disabled\n };\n }, [\n disabled\n ]);\n return /* @__PURE__ */ _jsx(Container, {\n accessibilityHint,\n accessibilityLabel,\n accessibilityRole: \"button\",\n accessibilityState,\n style,\n testID,\n onPress,\n children\n });\n};\nvar ButtonAndroid = function ButtonAndroid2(param) {\n var { children, onPress, disabled, accessibilityLabel, accessibilityHint, testID, rippleRadius = 18, style, theme } = param;\n var colorScheme = useKeyboardState(function(state) {\n return state.appearance;\n });\n var accessibilityState = useMemo(function() {\n return {\n disabled\n };\n }, [\n disabled\n ]);\n var ripple = useMemo(function() {\n return {\n color: theme[colorScheme].ripple,\n borderless: true,\n radius: rippleRadius\n };\n }, [\n colorScheme,\n rippleRadius,\n theme\n ]);\n return /* @__PURE__ */ _jsx(Pressable, {\n accessibilityHint,\n accessibilityLabel,\n accessibilityRole: \"button\",\n accessibilityState,\n android_ripple: ripple,\n disabled,\n style,\n testID,\n onPress,\n children\n });\n};\nvar Button_default = Platform.select({\n android: ButtonAndroid,\n default: ButtonIOS\n});\nexport {\n Button_default as default\n};\n//# sourceMappingURL=Button.js.map\n"],"mappings":";;;;;;AAIA,IAAI,YAAY,SAAS,WAAW,OAAO;CACzC,IAAI,EAAE,UAAU,SAAS,UAAU,oBAAoB,mBAAmB,QAAQ,UAAU;CAC5F,IAAI,YAAY,WAAW,OAAO;CAClC,IAAI,qBAAqB,QAAQ,WAAW;EAC1C,OAAO,EACL,SACF;CACF,GAAG,CACD,QACF,CAAC;CACD,OAAuB,oBAAK,WAAW;EACrC;EACA;EACA,mBAAmB;EACnB;EACA;EACA;EACA;EACA;CACF,CAAC;AACH;AACA,IAAI,gBAAgB,SAAS,eAAe,OAAO;CACjD,IAAI,EAAE,UAAU,SAAS,UAAU,oBAAoB,mBAAmB,QAAQ,eAAe,IAAI,OAAO,UAAU;CACtH,IAAI,cAAc,iBAAiB,SAAS,OAAO;EACjD,OAAO,MAAM;CACf,CAAC;CACD,IAAI,qBAAqB,QAAQ,WAAW;EAC1C,OAAO,EACL,SACF;CACF,GAAG,CACD,QACF,CAAC;CACD,IAAI,SAAS,QAAQ,WAAW;EAC9B,OAAO;GACL,OAAO,MAAM,YAAY,CAAC;GAC1B,YAAY;GACZ,QAAQ;EACV;CACF,GAAG;EACD;EACA;EACA;CACF,CAAC;CACD,OAAuB,oBAAK,WAAW;EACrC;EACA;EACA,mBAAmB;EACnB;EACA,gBAAgB;EAChB;EACA;EACA;EACA;EACA;CACF,CAAC;AACH;AACA,IAAI,iBAAiB,SAAS,OAAO;CACnC,SAAS;CACT,SAAS;AACX,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// dist/esm/keyboard/components/KeyboardToolbar/colors.js
|
|
2
|
+
const colors = {
|
|
3
|
+
light: {
|
|
4
|
+
primary: "#2c2c2c",
|
|
5
|
+
disabled: "#B0BEC5",
|
|
6
|
+
background: "#f3f3f4",
|
|
7
|
+
ripple: "#bcbcbcbc"
|
|
8
|
+
},
|
|
9
|
+
dark: {
|
|
10
|
+
primary: "#fafafa",
|
|
11
|
+
disabled: "#707070",
|
|
12
|
+
background: "#2C2C2E",
|
|
13
|
+
ripple: "#F8F8F888"
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export { colors };
|
|
18
|
+
//# sourceMappingURL=colors.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"colors.js","names":[],"sources":["esm/keyboard/components/KeyboardToolbar/colors.js"],"sourcesContent":["const colors = {\n light: {\n primary: \"#2c2c2c\",\n disabled: \"#B0BEC5\",\n background: \"#f3f3f4\",\n ripple: \"#bcbcbcbc\"\n },\n dark: {\n primary: \"#fafafa\",\n disabled: \"#707070\",\n background: \"#2C2C2E\",\n ripple: \"#F8F8F888\"\n }\n};\nexport {\n colors\n};\n//# sourceMappingURL=colors.js.map\n"],"mappings":";AAAA,MAAM,SAAS;CACb,OAAO;EACL,SAAS;EACT,UAAU;EACV,YAAY;EACZ,QAAQ;CACV;CACA,MAAM;EACJ,SAAS;EACT,UAAU;EACV,YAAY;EACZ,QAAQ;CACV;AACF"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { Platform, PlatformColor } from "react-native";
|
|
2
|
+
|
|
3
|
+
// dist/esm/keyboard/components/KeyboardToolbar/colors.native.js
|
|
4
|
+
var colors = {
|
|
5
|
+
light: {
|
|
6
|
+
primary: Platform.select({
|
|
7
|
+
ios: PlatformColor("link"),
|
|
8
|
+
default: "#2c2c2c"
|
|
9
|
+
}),
|
|
10
|
+
disabled: Platform.select({
|
|
11
|
+
ios: PlatformColor("systemGray4"),
|
|
12
|
+
default: "#B0BEC5"
|
|
13
|
+
}),
|
|
14
|
+
background: Platform.select({
|
|
15
|
+
ios: "#F8F8F8",
|
|
16
|
+
default: "#f3f3f4"
|
|
17
|
+
}),
|
|
18
|
+
ripple: "#bcbcbcbc"
|
|
19
|
+
},
|
|
20
|
+
dark: {
|
|
21
|
+
primary: Platform.select({
|
|
22
|
+
ios: PlatformColor("label"),
|
|
23
|
+
default: "#fafafa"
|
|
24
|
+
}),
|
|
25
|
+
disabled: Platform.select({
|
|
26
|
+
ios: PlatformColor("systemGray"),
|
|
27
|
+
default: "#707070"
|
|
28
|
+
}),
|
|
29
|
+
background: Platform.select({
|
|
30
|
+
ios: "#555756",
|
|
31
|
+
default: "#2C2C2E"
|
|
32
|
+
}),
|
|
33
|
+
ripple: "#F8F8F888"
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
export { colors };
|
|
38
|
+
//# sourceMappingURL=colors.native.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"colors.native.js","names":[],"sources":["esm/keyboard/components/KeyboardToolbar/colors.native.js"],"sourcesContent":["import { Platform, PlatformColor } from \"react-native\";\nvar colors = {\n light: {\n primary: Platform.select({\n ios: PlatformColor(\"link\"),\n default: \"#2c2c2c\"\n }),\n disabled: Platform.select({\n ios: PlatformColor(\"systemGray4\"),\n default: \"#B0BEC5\"\n }),\n background: Platform.select({\n ios: \"#F8F8F8\",\n default: \"#f3f3f4\"\n }),\n ripple: \"#bcbcbcbc\"\n },\n dark: {\n primary: Platform.select({\n ios: PlatformColor(\"label\"),\n default: \"#fafafa\"\n }),\n disabled: Platform.select({\n ios: PlatformColor(\"systemGray\"),\n default: \"#707070\"\n }),\n background: Platform.select({\n ios: \"#555756\",\n default: \"#2C2C2E\"\n }),\n ripple: \"#F8F8F888\"\n }\n};\nexport {\n colors\n};\n//# sourceMappingURL=colors.native.js.map\n"],"mappings":";;;AACA,IAAI,SAAS;CACX,OAAO;EACL,SAAS,SAAS,OAAO;GACvB,KAAK,cAAc,MAAM;GACzB,SAAS;EACX,CAAC;EACD,UAAU,SAAS,OAAO;GACxB,KAAK,cAAc,aAAa;GAChC,SAAS;EACX,CAAC;EACD,YAAY,SAAS,OAAO;GAC1B,KAAK;GACL,SAAS;EACX,CAAC;EACD,QAAQ;CACV;CACA,MAAM;EACJ,SAAS,SAAS,OAAO;GACvB,KAAK,cAAc,OAAO;GAC1B,SAAS;EACX,CAAC;EACD,UAAU,SAAS,OAAO;GACxB,KAAK,cAAc,YAAY;GAC/B,SAAS;EACX,CAAC;EACD,YAAY,SAAS,OAAO;GAC1B,KAAK;GACL,SAAS;EACX,CAAC;EACD,QAAQ;CACV;AACF"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Fragment, jsx } from "react/jsx-runtime";
|
|
2
|
+
|
|
3
|
+
// dist/esm/keyboard/components/KeyboardToolbar/compound/components/Background.js
|
|
4
|
+
const Background = ({ children }) => /* @__PURE__ */ jsx(Fragment, { children });
|
|
5
|
+
var Background_default = Background;
|
|
6
|
+
|
|
7
|
+
export { Background_default as default };
|
|
8
|
+
//# sourceMappingURL=Background.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Background.js","names":[],"sources":["esm/keyboard/components/KeyboardToolbar/compound/components/Background.js"],"sourcesContent":["import { Fragment, jsx } from \"react/jsx-runtime\";\nconst Background = ({ children }) => /* @__PURE__ */ jsx(Fragment, { children });\nvar Background_default = Background;\nexport {\n Background_default as default\n};\n//# sourceMappingURL=Background.js.map\n"],"mappings":";;;AACA,MAAM,cAAc,EAAE,eAA+B,oBAAI,UAAU,EAAE,SAAS,CAAC;AAC/E,IAAI,qBAAqB"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Fragment, jsx } from "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
|
|
4
|
+
// dist/esm/keyboard/components/KeyboardToolbar/compound/components/Background.native.js
|
|
5
|
+
var Background = function Background2(param) {
|
|
6
|
+
var { children } = param;
|
|
7
|
+
return /* @__PURE__ */ jsx(Fragment, { children });
|
|
8
|
+
};
|
|
9
|
+
var Background_default = Background;
|
|
10
|
+
|
|
11
|
+
export { Background_default as default };
|
|
12
|
+
//# sourceMappingURL=Background.native.js.map
|
package/dist/esm/keyboard/components/KeyboardToolbar/compound/components/Background.native.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Background.native.js","names":["_Fragment"],"sources":["esm/keyboard/components/KeyboardToolbar/compound/components/Background.native.js"],"sourcesContent":["import { jsx as _jsx, Fragment as _Fragment } from \"react/jsx-runtime\";\nimport React from \"react\";\nvar Background = function Background2(param) {\n var { children } = param;\n return /* @__PURE__ */ _jsx(_Fragment, {\n children\n });\n};\nvar Background_default = Background;\nexport {\n Background_default as default\n};\n//# sourceMappingURL=Background.js.map\n"],"mappings":";;;;AAEA,IAAI,aAAa,SAAS,YAAY,OAAO;CAC3C,IAAI,EAAE,aAAa;CACnB,OAAuB,oBAAKA,UAAW,EACrC,SACF,CAAC;AACH;AACA,IAAI,qBAAqB"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { StyleSheet, View } from "react-native-web";
|
|
2
|
+
import { TEST_ID_KEYBOARD_TOOLBAR_CONTENT } from "../../constants.mjs";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
|
|
5
|
+
// dist/esm/keyboard/components/KeyboardToolbar/compound/components/Content.js
|
|
6
|
+
const Content = ({ children }) => {
|
|
7
|
+
return /* @__PURE__ */ jsx(View, {
|
|
8
|
+
style: styles.flex,
|
|
9
|
+
testID: TEST_ID_KEYBOARD_TOOLBAR_CONTENT,
|
|
10
|
+
children
|
|
11
|
+
});
|
|
12
|
+
};
|
|
13
|
+
const styles = StyleSheet.create({ flex: { flex: 1 } });
|
|
14
|
+
var Content_default = Content;
|
|
15
|
+
|
|
16
|
+
export { Content_default as default };
|
|
17
|
+
//# sourceMappingURL=Content.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Content.js","names":[],"sources":["esm/keyboard/components/KeyboardToolbar/compound/components/Content.js"],"sourcesContent":["import { StyleSheet, View } from \"react-native-web\";\nimport { TEST_ID_KEYBOARD_TOOLBAR_CONTENT } from \"../../constants\";\nimport { jsx } from \"react/jsx-runtime\";\nconst Content = ({ children }) => {\n return /* @__PURE__ */ jsx(View, { style: styles.flex, testID: TEST_ID_KEYBOARD_TOOLBAR_CONTENT, children });\n};\nconst styles = StyleSheet.create({\n flex: {\n flex: 1\n }\n});\nvar Content_default = Content;\nexport {\n Content_default as default\n};\n//# sourceMappingURL=Content.js.map\n"],"mappings":";;;;;AAGA,MAAM,WAAW,EAAE,eAAe;CAChC,OAAuB,oBAAI,MAAM;EAAE,OAAO,OAAO;EAAM,QAAQ;EAAkC;CAAS,CAAC;AAC7G;AACA,MAAM,SAAS,WAAW,OAAO,EAC/B,MAAM,EACJ,MAAM,EACR,EACF,CAAC;AACD,IAAI,kBAAkB"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import { StyleSheet, View } from "react-native";
|
|
4
|
+
import { TEST_ID_KEYBOARD_TOOLBAR_CONTENT } from "../../constants.native.js";
|
|
5
|
+
|
|
6
|
+
// dist/esm/keyboard/components/KeyboardToolbar/compound/components/Content.native.js
|
|
7
|
+
var Content = function Content2(param) {
|
|
8
|
+
var { children } = param;
|
|
9
|
+
return /* @__PURE__ */ jsx(View, {
|
|
10
|
+
style: styles.flex,
|
|
11
|
+
testID: TEST_ID_KEYBOARD_TOOLBAR_CONTENT,
|
|
12
|
+
children
|
|
13
|
+
});
|
|
14
|
+
};
|
|
15
|
+
var styles = StyleSheet.create({ flex: { flex: 1 } });
|
|
16
|
+
var Content_default = Content;
|
|
17
|
+
|
|
18
|
+
export { Content_default as default };
|
|
19
|
+
//# sourceMappingURL=Content.native.js.map
|
package/dist/esm/keyboard/components/KeyboardToolbar/compound/components/Content.native.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Content.native.js","names":[],"sources":["esm/keyboard/components/KeyboardToolbar/compound/components/Content.native.js"],"sourcesContent":["import { jsx as _jsx } from \"react/jsx-runtime\";\nimport React from \"react\";\nimport { StyleSheet, View } from \"react-native\";\nimport { TEST_ID_KEYBOARD_TOOLBAR_CONTENT } from \"../../constants\";\nvar Content = function Content2(param) {\n var { children } = param;\n return /* @__PURE__ */ _jsx(View, {\n style: styles.flex,\n testID: TEST_ID_KEYBOARD_TOOLBAR_CONTENT,\n children\n });\n};\nvar styles = StyleSheet.create({\n flex: {\n flex: 1\n }\n});\nvar Content_default = Content;\nexport {\n Content_default as default\n};\n//# sourceMappingURL=Content.js.map\n"],"mappings":";;;;;;AAIA,IAAI,UAAU,SAAS,SAAS,OAAO;CACrC,IAAI,EAAE,aAAa;CACnB,OAAuB,oBAAK,MAAM;EAChC,OAAO,OAAO;EACd,QAAQ;EACR;CACF,CAAC;AACH;AACA,IAAI,SAAS,WAAW,OAAO,EAC7B,MAAM,EACJ,MAAM,EACR,EACF,CAAC;AACD,IAAI,kBAAkB"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { useCallback, useMemo } from "react";
|
|
2
|
+
import { StyleSheet, Text } from "react-native-web";
|
|
3
|
+
import { useKeyboardState } from "../../../../hooks/index.mjs";
|
|
4
|
+
import { KeyboardController } from "../../../../module.mjs";
|
|
5
|
+
import Button from "../../Button.mjs";
|
|
6
|
+
import { TEST_ID_KEYBOARD_TOOLBAR_DONE } from "../../constants.mjs";
|
|
7
|
+
import { useToolbarContext } from "../context.mjs";
|
|
8
|
+
import { jsx } from "react/jsx-runtime";
|
|
9
|
+
|
|
10
|
+
// dist/esm/keyboard/components/KeyboardToolbar/compound/components/Done.js
|
|
11
|
+
const Done = ({ children, onPress, rippleRadius = 28, text, button: ButtonContainer = Button }) => {
|
|
12
|
+
const colorScheme = useKeyboardState((state) => state.appearance);
|
|
13
|
+
const context = useToolbarContext();
|
|
14
|
+
const { theme } = context;
|
|
15
|
+
const doneStyle = useMemo(() => [styles.doneButton, { color: theme[colorScheme].primary }], [colorScheme, theme]);
|
|
16
|
+
const onPressDone = useCallback((event) => {
|
|
17
|
+
onPress?.(event);
|
|
18
|
+
if (!event.isDefaultPrevented()) {
|
|
19
|
+
KeyboardController.dismiss();
|
|
20
|
+
}
|
|
21
|
+
}, [onPress]);
|
|
22
|
+
return /* @__PURE__ */ jsx(ButtonContainer, {
|
|
23
|
+
accessibilityHint: "Closes the keyboard",
|
|
24
|
+
accessibilityLabel: "Done",
|
|
25
|
+
rippleRadius,
|
|
26
|
+
style: styles.doneButtonContainer,
|
|
27
|
+
testID: TEST_ID_KEYBOARD_TOOLBAR_DONE,
|
|
28
|
+
theme,
|
|
29
|
+
onPress: onPressDone,
|
|
30
|
+
children: /* @__PURE__ */ jsx(Text, {
|
|
31
|
+
maxFontSizeMultiplier: 1.3,
|
|
32
|
+
style: doneStyle,
|
|
33
|
+
children: children ?? text ?? "Done"
|
|
34
|
+
})
|
|
35
|
+
});
|
|
36
|
+
};
|
|
37
|
+
const styles = StyleSheet.create({
|
|
38
|
+
doneButton: {
|
|
39
|
+
fontWeight: "600",
|
|
40
|
+
fontSize: 15
|
|
41
|
+
},
|
|
42
|
+
doneButtonContainer: {
|
|
43
|
+
marginRight: 16,
|
|
44
|
+
marginLeft: 8
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
var Done_default = Done;
|
|
48
|
+
|
|
49
|
+
export { Done_default as default };
|
|
50
|
+
//# sourceMappingURL=Done.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Done.js","names":[],"sources":["esm/keyboard/components/KeyboardToolbar/compound/components/Done.js"],"sourcesContent":["import { useCallback, useMemo } from \"react\";\nimport { StyleSheet, Text } from \"react-native-web\";\nimport { useKeyboardState } from \"../../../../hooks\";\nimport { KeyboardController } from \"../../../../module\";\nimport Button from \"../../Button\";\nimport { TEST_ID_KEYBOARD_TOOLBAR_DONE } from \"../../constants\";\nimport { useToolbarContext } from \"../context\";\nimport { jsx } from \"react/jsx-runtime\";\nconst Done = ({\n children,\n onPress,\n rippleRadius = 28,\n text,\n button: ButtonContainer = Button\n}) => {\n const colorScheme = useKeyboardState((state) => state.appearance);\n const context = useToolbarContext();\n const { theme } = context;\n const doneStyle = useMemo(\n () => [styles.doneButton, { color: theme[colorScheme].primary }],\n [colorScheme, theme]\n );\n const onPressDone = useCallback(\n (event) => {\n onPress?.(event);\n if (!event.isDefaultPrevented()) {\n KeyboardController.dismiss();\n }\n },\n [onPress]\n );\n return /* @__PURE__ */ jsx(\n ButtonContainer,\n {\n accessibilityHint: \"Closes the keyboard\",\n accessibilityLabel: \"Done\",\n rippleRadius,\n style: styles.doneButtonContainer,\n testID: TEST_ID_KEYBOARD_TOOLBAR_DONE,\n theme,\n onPress: onPressDone,\n children: /* @__PURE__ */ jsx(Text, { maxFontSizeMultiplier: 1.3, style: doneStyle, children: children ?? text ?? \"Done\" })\n }\n );\n};\nconst styles = StyleSheet.create({\n doneButton: {\n fontWeight: \"600\",\n fontSize: 15\n },\n doneButtonContainer: {\n marginRight: 16,\n marginLeft: 8\n }\n});\nvar Done_default = Done;\nexport {\n Done_default as default\n};\n//# sourceMappingURL=Done.js.map\n"],"mappings":";;;;;;;;;;AAQA,MAAM,QAAQ,EACZ,UACA,SACA,eAAe,IACf,MACA,QAAQ,kBAAkB,aACtB;CACJ,MAAM,cAAc,kBAAkB,UAAU,MAAM,UAAU;CAChE,MAAM,UAAU,kBAAkB;CAClC,MAAM,EAAE,UAAU;CAClB,MAAM,YAAY,cACV,CAAC,OAAO,YAAY,EAAE,OAAO,MAAM,YAAY,CAAC,QAAQ,CAAC,GAC/D,CAAC,aAAa,KAAK,CACrB;CACA,MAAM,cAAc,aACjB,UAAU;EACT,UAAU,KAAK;EACf,IAAI,CAAC,MAAM,mBAAmB,GAAG;GAC/B,mBAAmB,QAAQ;EAC7B;CACF,GACA,CAAC,OAAO,CACV;CACA,OAAuB,oBACrB,iBACA;EACE,mBAAmB;EACnB,oBAAoB;EACpB;EACA,OAAO,OAAO;EACd,QAAQ;EACR;EACA,SAAS;EACT,UAA0B,oBAAI,MAAM;GAAE,uBAAuB;GAAK,OAAO;GAAW,UAAU,YAAY,QAAQ;EAAO,CAAC;CAC5H,CACF;AACF;AACA,MAAM,SAAS,WAAW,OAAO;CAC/B,YAAY;EACV,YAAY;EACZ,UAAU;CACZ;CACA,qBAAqB;EACnB,aAAa;EACb,YAAY;CACd;AACF,CAAC;AACD,IAAI,eAAe"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useCallback, useMemo } from "react";
|
|
3
|
+
import { StyleSheet, Text } from "react-native";
|
|
4
|
+
import { useKeyboardState } from "../../../../hooks/index.native.js";
|
|
5
|
+
import { KeyboardController } from "../../../../module.native.js";
|
|
6
|
+
import Button from "../../Button.native.js";
|
|
7
|
+
import { TEST_ID_KEYBOARD_TOOLBAR_DONE } from "../../constants.native.js";
|
|
8
|
+
import { useToolbarContext } from "../context.native.js";
|
|
9
|
+
|
|
10
|
+
// dist/esm/keyboard/components/KeyboardToolbar/compound/components/Done.native.js
|
|
11
|
+
var Done = function Done2(param) {
|
|
12
|
+
var { children, onPress, rippleRadius = 28, text, button: ButtonContainer = Button } = param;
|
|
13
|
+
var _ref;
|
|
14
|
+
var colorScheme = useKeyboardState(function(state) {
|
|
15
|
+
return state.appearance;
|
|
16
|
+
});
|
|
17
|
+
var context = useToolbarContext();
|
|
18
|
+
var { theme } = context;
|
|
19
|
+
var doneStyle = useMemo(function() {
|
|
20
|
+
return [styles.doneButton, { color: theme[colorScheme].primary }];
|
|
21
|
+
}, [colorScheme, theme]);
|
|
22
|
+
var onPressDone = useCallback(function(event) {
|
|
23
|
+
onPress === null || onPress === void 0 ? void 0 : onPress(event);
|
|
24
|
+
if (!event.isDefaultPrevented()) {
|
|
25
|
+
KeyboardController.dismiss();
|
|
26
|
+
}
|
|
27
|
+
}, [onPress]);
|
|
28
|
+
return /* @__PURE__ */ jsx(ButtonContainer, {
|
|
29
|
+
accessibilityHint: "Closes the keyboard",
|
|
30
|
+
accessibilityLabel: "Done",
|
|
31
|
+
rippleRadius,
|
|
32
|
+
style: styles.doneButtonContainer,
|
|
33
|
+
testID: TEST_ID_KEYBOARD_TOOLBAR_DONE,
|
|
34
|
+
theme,
|
|
35
|
+
onPress: onPressDone,
|
|
36
|
+
children: /* @__PURE__ */ jsx(Text, {
|
|
37
|
+
maxFontSizeMultiplier: 1.3,
|
|
38
|
+
style: doneStyle,
|
|
39
|
+
children: (_ref = children !== null && children !== void 0 ? children : text) !== null && _ref !== void 0 ? _ref : "Done"
|
|
40
|
+
})
|
|
41
|
+
});
|
|
42
|
+
};
|
|
43
|
+
var styles = StyleSheet.create({
|
|
44
|
+
doneButton: {
|
|
45
|
+
fontWeight: "600",
|
|
46
|
+
fontSize: 15
|
|
47
|
+
},
|
|
48
|
+
doneButtonContainer: {
|
|
49
|
+
marginRight: 16,
|
|
50
|
+
marginLeft: 8
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
var Done_default = Done;
|
|
54
|
+
|
|
55
|
+
export { Done_default as default };
|
|
56
|
+
//# sourceMappingURL=Done.native.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Done.native.js","names":[],"sources":["esm/keyboard/components/KeyboardToolbar/compound/components/Done.native.js"],"sourcesContent":["import { jsx as _jsx } from \"react/jsx-runtime\";\nimport React from \"react\";\nimport { useCallback, useMemo } from \"react\";\nimport { StyleSheet, Text } from \"react-native\";\nimport { useKeyboardState } from \"../../../../hooks\";\nimport { KeyboardController } from \"../../../../module\";\nimport Button from \"../../Button\";\nimport { TEST_ID_KEYBOARD_TOOLBAR_DONE } from \"../../constants\";\nimport { useToolbarContext } from \"../context\";\nvar Done = function Done2(param) {\n var { children, onPress, rippleRadius = 28, text, button: ButtonContainer = Button } = param;\n var _ref;\n var colorScheme = useKeyboardState(function(state) {\n return state.appearance;\n });\n var context = useToolbarContext();\n var { theme } = context;\n var doneStyle = useMemo(function() {\n return [\n styles.doneButton,\n {\n color: theme[colorScheme].primary\n }\n ];\n }, [\n colorScheme,\n theme\n ]);\n var onPressDone = useCallback(function(event) {\n onPress === null || onPress === void 0 ? void 0 : onPress(event);\n if (!event.isDefaultPrevented()) {\n KeyboardController.dismiss();\n }\n }, [\n onPress\n ]);\n return /* @__PURE__ */ _jsx(ButtonContainer, {\n accessibilityHint: \"Closes the keyboard\",\n accessibilityLabel: \"Done\",\n rippleRadius,\n style: styles.doneButtonContainer,\n testID: TEST_ID_KEYBOARD_TOOLBAR_DONE,\n theme,\n onPress: onPressDone,\n children: /* @__PURE__ */ _jsx(Text, {\n maxFontSizeMultiplier: 1.3,\n style: doneStyle,\n children: (_ref = children !== null && children !== void 0 ? children : text) !== null && _ref !== void 0 ? _ref : \"Done\"\n })\n });\n};\nvar styles = StyleSheet.create({\n doneButton: {\n fontWeight: \"600\",\n fontSize: 15\n },\n doneButtonContainer: {\n marginRight: 16,\n marginLeft: 8\n }\n});\nvar Done_default = Done;\nexport {\n Done_default as default\n};\n//# sourceMappingURL=Done.js.map\n"],"mappings":";;;;;;;;;;AASA,IAAI,OAAO,SAAS,MAAM,OAAO;CAC/B,IAAI,EAAE,UAAU,SAAS,eAAe,IAAI,MAAM,QAAQ,kBAAkB,WAAW;CACvF,IAAI;CACJ,IAAI,cAAc,iBAAiB,SAAS,OAAO;EACjD,OAAO,MAAM;CACf,CAAC;CACD,IAAI,UAAU,kBAAkB;CAChC,IAAI,EAAE,UAAU;CAChB,IAAI,YAAY,QAAQ,WAAW;EACjC,OAAO,CACL,OAAO,YACP,EACE,OAAO,MAAM,YAAY,CAAC,QAC5B,CACF;CACF,GAAG,CACD,aACA,KACF,CAAC;CACD,IAAI,cAAc,YAAY,SAAS,OAAO;EAC5C,YAAY,QAAQ,YAAY,KAAK,IAAI,KAAK,IAAI,QAAQ,KAAK;EAC/D,IAAI,CAAC,MAAM,mBAAmB,GAAG;GAC/B,mBAAmB,QAAQ;EAC7B;CACF,GAAG,CACD,OACF,CAAC;CACD,OAAuB,oBAAK,iBAAiB;EAC3C,mBAAmB;EACnB,oBAAoB;EACpB;EACA,OAAO,OAAO;EACd,QAAQ;EACR;EACA,SAAS;EACT,UAA0B,oBAAK,MAAM;GACnC,uBAAuB;GACvB,OAAO;GACP,WAAW,OAAO,aAAa,QAAQ,aAAa,KAAK,IAAI,WAAW,UAAU,QAAQ,SAAS,KAAK,IAAI,OAAO;EACrH,CAAC;CACH,CAAC;AACH;AACA,IAAI,SAAS,WAAW,OAAO;CAC7B,YAAY;EACV,YAAY;EACZ,UAAU;CACZ;CACA,qBAAqB;EACnB,aAAa;EACb,YAAY;CACd;AACF,CAAC;AACD,IAAI,eAAe"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { useCallback } from "react";
|
|
2
|
+
import { KeyboardController } from "../../../../module.mjs";
|
|
3
|
+
import Arrow from "../../Arrow.mjs";
|
|
4
|
+
import Button from "../../Button.mjs";
|
|
5
|
+
import { TEST_ID_KEYBOARD_TOOLBAR_NEXT } from "../../constants.mjs";
|
|
6
|
+
import { useToolbarContext } from "../context.mjs";
|
|
7
|
+
import { jsx } from "react/jsx-runtime";
|
|
8
|
+
|
|
9
|
+
// dist/esm/keyboard/components/KeyboardToolbar/compound/components/Next.js
|
|
10
|
+
const Next = ({ children, onPress, disabled, rippleRadius, style, button: ButtonContainer = Button, icon: IconContainer = Arrow }) => {
|
|
11
|
+
const context = useToolbarContext();
|
|
12
|
+
const { theme, isNextDisabled } = context;
|
|
13
|
+
const isDisabled = disabled ?? isNextDisabled;
|
|
14
|
+
const onPressNext = useCallback((event) => {
|
|
15
|
+
onPress?.(event);
|
|
16
|
+
if (!event.isDefaultPrevented()) {
|
|
17
|
+
KeyboardController.setFocusTo("next");
|
|
18
|
+
}
|
|
19
|
+
}, [onPress]);
|
|
20
|
+
return /* @__PURE__ */ jsx(ButtonContainer, {
|
|
21
|
+
accessibilityHint: "Moves focus to the next field",
|
|
22
|
+
accessibilityLabel: "Next",
|
|
23
|
+
disabled: isDisabled,
|
|
24
|
+
rippleRadius,
|
|
25
|
+
style,
|
|
26
|
+
testID: TEST_ID_KEYBOARD_TOOLBAR_NEXT,
|
|
27
|
+
theme,
|
|
28
|
+
onPress: onPressNext,
|
|
29
|
+
children: children ?? /* @__PURE__ */ jsx(IconContainer, {
|
|
30
|
+
disabled: isDisabled,
|
|
31
|
+
theme,
|
|
32
|
+
type: "next"
|
|
33
|
+
})
|
|
34
|
+
});
|
|
35
|
+
};
|
|
36
|
+
var Next_default = Next;
|
|
37
|
+
|
|
38
|
+
export { Next_default as default };
|
|
39
|
+
//# sourceMappingURL=Next.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Next.js","names":[],"sources":["esm/keyboard/components/KeyboardToolbar/compound/components/Next.js"],"sourcesContent":["import { useCallback } from \"react\";\nimport { KeyboardController } from \"../../../../module\";\nimport Arrow from \"../../Arrow\";\nimport Button from \"../../Button\";\nimport { TEST_ID_KEYBOARD_TOOLBAR_NEXT } from \"../../constants\";\nimport { useToolbarContext } from \"../context\";\nimport { jsx } from \"react/jsx-runtime\";\nconst Next = ({\n children,\n onPress,\n disabled,\n rippleRadius,\n style,\n button: ButtonContainer = Button,\n icon: IconContainer = Arrow\n}) => {\n const context = useToolbarContext();\n const { theme, isNextDisabled } = context;\n const isDisabled = disabled ?? isNextDisabled;\n const onPressNext = useCallback(\n (event) => {\n onPress?.(event);\n if (!event.isDefaultPrevented()) {\n KeyboardController.setFocusTo(\"next\");\n }\n },\n [onPress]\n );\n return /* @__PURE__ */ jsx(\n ButtonContainer,\n {\n accessibilityHint: \"Moves focus to the next field\",\n accessibilityLabel: \"Next\",\n disabled: isDisabled,\n rippleRadius,\n style,\n testID: TEST_ID_KEYBOARD_TOOLBAR_NEXT,\n theme,\n onPress: onPressNext,\n children: children ?? /* @__PURE__ */ jsx(IconContainer, { disabled: isDisabled, theme, type: \"next\" })\n }\n );\n};\nvar Next_default = Next;\nexport {\n Next_default as default\n};\n//# sourceMappingURL=Next.js.map\n"],"mappings":";;;;;;;;;AAOA,MAAM,QAAQ,EACZ,UACA,SACA,UACA,cACA,OACA,QAAQ,kBAAkB,QAC1B,MAAM,gBAAgB,YAClB;CACJ,MAAM,UAAU,kBAAkB;CAClC,MAAM,EAAE,OAAO,mBAAmB;CAClC,MAAM,aAAa,YAAY;CAC/B,MAAM,cAAc,aACjB,UAAU;EACT,UAAU,KAAK;EACf,IAAI,CAAC,MAAM,mBAAmB,GAAG;GAC/B,mBAAmB,WAAW,MAAM;EACtC;CACF,GACA,CAAC,OAAO,CACV;CACA,OAAuB,oBACrB,iBACA;EACE,mBAAmB;EACnB,oBAAoB;EACpB,UAAU;EACV;EACA;EACA,QAAQ;EACR;EACA,SAAS;EACT,UAAU,YAA4B,oBAAI,eAAe;GAAE,UAAU;GAAY;GAAO,MAAM;EAAO,CAAC;CACxG,CACF;AACF;AACA,IAAI,eAAe"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useCallback } from "react";
|
|
3
|
+
import { KeyboardController } from "../../../../module.native.js";
|
|
4
|
+
import Arrow from "../../Arrow.native.js";
|
|
5
|
+
import Button from "../../Button.native.js";
|
|
6
|
+
import { TEST_ID_KEYBOARD_TOOLBAR_NEXT } from "../../constants.native.js";
|
|
7
|
+
import { useToolbarContext } from "../context.native.js";
|
|
8
|
+
|
|
9
|
+
// dist/esm/keyboard/components/KeyboardToolbar/compound/components/Next.native.js
|
|
10
|
+
var Next = function Next2(param) {
|
|
11
|
+
var { children, onPress, disabled, rippleRadius, style, button: ButtonContainer = Button, icon: IconContainer = Arrow } = param;
|
|
12
|
+
var context = useToolbarContext();
|
|
13
|
+
var { theme, isNextDisabled } = context;
|
|
14
|
+
var isDisabled = disabled !== null && disabled !== void 0 ? disabled : isNextDisabled;
|
|
15
|
+
var onPressNext = useCallback(function(event) {
|
|
16
|
+
onPress === null || onPress === void 0 ? void 0 : onPress(event);
|
|
17
|
+
if (!event.isDefaultPrevented()) {
|
|
18
|
+
KeyboardController.setFocusTo("next");
|
|
19
|
+
}
|
|
20
|
+
}, [onPress]);
|
|
21
|
+
return /* @__PURE__ */ jsx(ButtonContainer, {
|
|
22
|
+
accessibilityHint: "Moves focus to the next field",
|
|
23
|
+
accessibilityLabel: "Next",
|
|
24
|
+
disabled: isDisabled,
|
|
25
|
+
rippleRadius,
|
|
26
|
+
style,
|
|
27
|
+
testID: TEST_ID_KEYBOARD_TOOLBAR_NEXT,
|
|
28
|
+
theme,
|
|
29
|
+
onPress: onPressNext,
|
|
30
|
+
children: children !== null && children !== void 0 ? children : /* @__PURE__ */ jsx(IconContainer, {
|
|
31
|
+
disabled: isDisabled,
|
|
32
|
+
theme,
|
|
33
|
+
type: "next"
|
|
34
|
+
})
|
|
35
|
+
});
|
|
36
|
+
};
|
|
37
|
+
var Next_default = Next;
|
|
38
|
+
|
|
39
|
+
export { Next_default as default };
|
|
40
|
+
//# sourceMappingURL=Next.native.js.map
|