react-native-external-keyboard 0.8.5 → 0.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +149 -67
- package/android/src/main/java/com/externalkeyboard/delegates/FocusOrderDelegate.java +81 -75
- package/android/src/main/java/com/externalkeyboard/delegates/FocusOrderDelegateHost.java +14 -0
- package/android/src/main/java/com/externalkeyboard/helper/Linking/A11yOrderLinking.java +5 -0
- package/android/src/main/java/com/externalkeyboard/modules/ExternalKeyboardModule.java +10 -10
- package/android/src/main/java/com/externalkeyboard/services/FocusLinkObserver/FocusLinkObserver.java +26 -35
- package/android/src/main/java/com/externalkeyboard/views/ExternalKeyboardLockView/ExternalKeyboardLockView.java +5 -0
- package/android/src/main/java/com/externalkeyboard/views/ExternalKeyboardLockView/ExternalKeyboardLockViewManager.java +6 -0
- package/android/src/main/java/com/externalkeyboard/views/ExternalKeyboardView/ExternalKeyboardView.java +8 -307
- package/android/src/main/java/com/externalkeyboard/views/ExternalKeyboardView/ExternalKeyboardViewManager.java +11 -18
- package/android/src/main/java/com/externalkeyboard/views/TextInputFocusWrapper/TextInputFocusWrapper.java +208 -101
- package/android/src/main/java/com/externalkeyboard/views/TextInputFocusWrapper/TextInputFocusWrapperManager.java +123 -34
- package/android/src/main/java/com/externalkeyboard/views/base/FocusHighlightBase.java +38 -0
- package/android/src/main/java/com/externalkeyboard/views/base/ViewGroupBase.java +19 -0
- package/android/src/main/java/com/externalkeyboard/views/base/ViewOrderGroupBase.java +190 -0
- package/android/src/main/java/com/externalkeyboard/views/base/keyboard/ViewFocusChangeBase.java +39 -0
- package/android/src/main/java/com/externalkeyboard/views/base/keyboard/ViewFocusRequestBase.java +125 -0
- package/android/src/main/java/com/externalkeyboard/views/base/keyboard/ViewKeyHandlerBase.java +40 -0
- package/android/src/newarch/TextInputFocusWrapperManagerSpec.java +2 -8
- package/android/src/oldarch/ExternalKeyboardLockViewManagerSpec.java +1 -0
- package/android/src/oldarch/TextInputFocusWrapperManagerSpec.java +32 -2
- package/ios/Delegates/RNCEKVFocusLinkDelegate/RNCEKVFocusLinkDelegate.h +35 -0
- package/ios/Delegates/RNCEKVFocusLinkDelegate/RNCEKVFocusLinkDelegate.mm +195 -0
- package/ios/Delegates/RNCEKVFocusOrderDelegate/RNCEKVFocusOrderProtocol.h +6 -8
- package/ios/Delegates/RNCEKVFocusSequenceDelegate/RNCEKVFocusSequenceDelegate.h +25 -0
- package/ios/Delegates/RNCEKVFocusSequenceDelegate/RNCEKVFocusSequenceDelegate.mm +163 -0
- package/ios/Delegates/RNCEKVGroupIdentifierDelegate/RNCEKVGroupIdentifierDelegate.h +2 -6
- package/ios/Delegates/RNCEKVGroupIdentifierDelegate/RNCEKVGroupIdentifierDelegate.mm +6 -78
- package/ios/Delegates/RNCEKVHaloDelegate/RNCEKVHaloDelegate.h +3 -4
- package/ios/Delegates/RNCEKVHaloDelegate/RNCEKVHaloDelegate.mm +32 -101
- package/ios/Delegates/RNCEKVHaloDelegate/RNCEKVHaloProtocol.h +1 -1
- package/ios/Extensions/RCTEnhancedScrollView+RNCEKVExternalKeyboard.mm +1 -1
- package/ios/Extensions/RCTTextInputComponentView+RNCEKVExternalKeyboard.mm +15 -0
- package/ios/Extensions/RCTViewComponentView+RNCEKVExternalKeyboard.h +9 -6
- package/ios/Extensions/RCTViewComponentView+RNCEKVExternalKeyboard.mm +16 -29
- package/ios/Extensions/UIViewController+RNCEKVExternalKeyboard.h +1 -0
- package/ios/Extensions/UIViewController+RNCEKVExternalKeyboard.mm +8 -0
- package/ios/Helpers/RNCEKVNativeProps/RNCEKVNativeProps.h +123 -0
- package/ios/Protocols/RNCEKVCustomFocusEffectProtocol.h +15 -0
- package/ios/Protocols/RNCEKVCustomGroudIdProtocol.h +15 -0
- package/ios/Protocols/RNCEKVKeyboardFocusableProtocol.h +15 -0
- package/ios/Services/RNCEKVFocusLinkObserver.mm +2 -3
- package/ios/Services/RNCEKVKeyboardOrderManager/RNCEKVOrderRelationship/RNCEKVOrderRelationship.mm +15 -28
- package/ios/Services/RNCEKVOrderLinking.mm +43 -51
- package/ios/Views/Base/ContextMenu/RNCEKVViewContextMenuBase.h +33 -0
- package/ios/Views/Base/ContextMenu/RNCEKVViewContextMenuBase.mm +84 -0
- package/ios/Views/Base/FocusChange/RNCEKVViewFocusChangeBase.h +37 -0
- package/ios/Views/Base/FocusChange/RNCEKVViewFocusChangeBase.mm +89 -0
- package/ios/Views/Base/FocusOrderGroup/RNCEKVViewOrderGroupBase.h +49 -0
- package/ios/Views/Base/FocusOrderGroup/RNCEKVViewOrderGroupBase.mm +245 -0
- package/ios/Views/Base/FocusRequest/RNCEKVViewFocusRequestBase.h +34 -0
- package/ios/Views/Base/FocusRequest/RNCEKVViewFocusRequestBase.mm +112 -0
- package/ios/Views/Base/GroupIdentifier/RNCEKVViewGroupIdentifierBase.h +27 -0
- package/ios/Views/Base/GroupIdentifier/RNCEKVViewGroupIdentifierBase.mm +69 -0
- package/ios/Views/Base/KeyPress/RNCEKVViewKeyPress.h +30 -0
- package/ios/Views/Base/KeyPress/RNCEKVViewKeyPress.mm +75 -0
- package/ios/Views/Base/KeyboardHallo/RNCEKVExternalKeyboardHalloBase.h +33 -0
- package/ios/Views/Base/KeyboardHallo/RNCEKVExternalKeyboardHalloBase.mm +92 -0
- package/ios/Views/Base/ViewGroup/RNCEKVViewGroupBase.h +36 -0
- package/ios/Views/Base/ViewGroup/RNCEKVViewGroupBase.mm +63 -0
- package/ios/Views/RNCEKVExternalKeyboardLockView/RNCEKVExternalKeyboardLockView.h +8 -0
- package/ios/Views/RNCEKVExternalKeyboardLockView/RNCEKVExternalKeyboardLockView.mm +105 -2
- package/ios/Views/RNCEKVExternalKeyboardLockView/RNCEKVExternalKeyboardLockViewManager.mm +11 -0
- package/ios/Views/RNCEKVExternalKeyboardView/RNCEKVExternalKeyboardView.h +7 -82
- package/ios/Views/RNCEKVExternalKeyboardView/RNCEKVExternalKeyboardView.mm +23 -493
- package/ios/Views/RNCEKVExternalKeyboardView/RNCEKVExternalKeyboardViewManager.mm +5 -7
- package/ios/Views/RNCEKVKeyboardFocusGroupView/RNCEKVKeyboardFocusGroup.mm +20 -17
- package/ios/Views/RNCEKVTextInputFocusWrapper/RNCEKVTextInputFocusWrapper.h +10 -39
- package/ios/Views/RNCEKVTextInputFocusWrapper/RNCEKVTextInputFocusWrapper.mm +40 -73
- package/ios/Views/RNCEKVTextInputFocusWrapper/RNCEKVTextInputFocusWrapperManager.mm +76 -8
- package/lib/commonjs/components/BaseKeyboardView/BaseKeyboardView.js +35 -7
- package/lib/commonjs/components/BaseKeyboardView/BaseKeyboardView.js.map +1 -1
- package/lib/commonjs/components/KeyboardExtendedInput/KeyboardExtendedInput.js +79 -1
- package/lib/commonjs/components/KeyboardExtendedInput/KeyboardExtendedInput.js.map +1 -1
- package/lib/commonjs/components/KeyboardFocusLock/FocusTrap/FocusTrap.js +18 -4
- package/lib/commonjs/components/KeyboardFocusLock/FocusTrap/FocusTrap.js.map +1 -1
- package/lib/commonjs/components/KeyboardFocusLock/KeyboardFocusLockBase/KeyboardFocusLockBase.js +17 -2
- package/lib/commonjs/components/KeyboardFocusLock/KeyboardFocusLockBase/KeyboardFocusLockBase.js.map +1 -1
- package/lib/commonjs/components/KeyboardFocusView/KeyboardFocusView.js +2 -0
- package/lib/commonjs/components/KeyboardFocusView/KeyboardFocusView.js.map +1 -1
- package/lib/commonjs/nativeSpec/ExternalKeyboardLockViewNativeComponent.ts +1 -0
- package/lib/commonjs/nativeSpec/TextInputFocusWrapperNativeComponent.ts +16 -0
- package/lib/commonjs/utils/useFocusStyle.js +3 -9
- package/lib/commonjs/utils/useFocusStyle.js.map +1 -1
- package/lib/commonjs/utils/withKeyboardFocus.js +32 -15
- package/lib/commonjs/utils/withKeyboardFocus.js.map +1 -1
- package/lib/commonjs/utils/wrapOrderPrefix.js +17 -0
- package/lib/commonjs/utils/wrapOrderPrefix.js.map +1 -0
- package/lib/module/components/BaseKeyboardView/BaseKeyboardView.js +35 -7
- package/lib/module/components/BaseKeyboardView/BaseKeyboardView.js.map +1 -1
- package/lib/module/components/KeyboardExtendedInput/KeyboardExtendedInput.js +80 -2
- package/lib/module/components/KeyboardExtendedInput/KeyboardExtendedInput.js.map +1 -1
- package/lib/module/components/KeyboardFocusLock/FocusTrap/FocusTrap.js +18 -4
- package/lib/module/components/KeyboardFocusLock/FocusTrap/FocusTrap.js.map +1 -1
- package/lib/module/components/KeyboardFocusLock/KeyboardFocusLockBase/KeyboardFocusLockBase.js +16 -2
- package/lib/module/components/KeyboardFocusLock/KeyboardFocusLockBase/KeyboardFocusLockBase.js.map +1 -1
- package/lib/module/components/KeyboardFocusView/KeyboardFocusView.js +2 -0
- package/lib/module/components/KeyboardFocusView/KeyboardFocusView.js.map +1 -1
- package/lib/module/nativeSpec/ExternalKeyboardLockViewNativeComponent.ts +1 -0
- package/lib/module/nativeSpec/TextInputFocusWrapperNativeComponent.ts +16 -0
- package/lib/module/utils/useFocusStyle.js +4 -10
- package/lib/module/utils/useFocusStyle.js.map +1 -1
- package/lib/module/utils/withKeyboardFocus.js +32 -15
- package/lib/module/utils/withKeyboardFocus.js.map +1 -1
- package/lib/module/utils/wrapOrderPrefix.js +12 -0
- package/lib/module/utils/wrapOrderPrefix.js.map +1 -0
- package/lib/typescript/src/components/BaseKeyboardView/BaseKeyboardView.d.ts.map +1 -1
- package/lib/typescript/src/components/KeyboardExtendedInput/KeyboardExtendedInput.d.ts.map +1 -1
- package/lib/typescript/src/components/KeyboardExtendedInput/KeyboardExtendedInput.types.d.ts +15 -0
- package/lib/typescript/src/components/KeyboardExtendedInput/KeyboardExtendedInput.types.d.ts.map +1 -1
- package/lib/typescript/src/components/KeyboardFocusLock/FocusTrap/FocusTrap.d.ts +1 -1
- package/lib/typescript/src/components/KeyboardFocusLock/FocusTrap/FocusTrap.d.ts.map +1 -1
- package/lib/typescript/src/components/KeyboardFocusLock/KeyboardFocusLockBase/KeyboardFocusLockBase.d.ts +2 -1
- package/lib/typescript/src/components/KeyboardFocusLock/KeyboardFocusLockBase/KeyboardFocusLockBase.d.ts.map +1 -1
- package/lib/typescript/src/components/KeyboardFocusView/KeyboardFocusView.d.ts.map +1 -1
- package/lib/typescript/src/index.d.ts +1 -1
- package/lib/typescript/src/nativeSpec/ExternalKeyboardLockViewNativeComponent.d.ts +1 -0
- package/lib/typescript/src/nativeSpec/ExternalKeyboardLockViewNativeComponent.d.ts.map +1 -1
- package/lib/typescript/src/nativeSpec/TextInputFocusWrapperNativeComponent.d.ts +16 -1
- package/lib/typescript/src/nativeSpec/TextInputFocusWrapperNativeComponent.d.ts.map +1 -1
- package/lib/typescript/src/types/BaseKeyboardView.d.ts +2 -0
- package/lib/typescript/src/types/BaseKeyboardView.d.ts.map +1 -1
- package/lib/typescript/src/types/KeyboardFocusLock.types.d.ts +1 -0
- package/lib/typescript/src/types/KeyboardFocusLock.types.d.ts.map +1 -1
- package/lib/typescript/src/types/WithKeyboardFocus.d.ts +11 -2
- package/lib/typescript/src/types/WithKeyboardFocus.d.ts.map +1 -1
- package/lib/typescript/src/utils/useFocusStyle.d.ts +1 -0
- package/lib/typescript/src/utils/useFocusStyle.d.ts.map +1 -1
- package/lib/typescript/src/utils/withKeyboardFocus.d.ts.map +1 -1
- package/lib/typescript/src/utils/wrapOrderPrefix.d.ts +9 -0
- package/lib/typescript/src/utils/wrapOrderPrefix.d.ts.map +1 -0
- package/package.json +6 -2
- package/src/components/BaseKeyboardView/BaseKeyboardView.tsx +88 -10
- package/src/components/KeyboardExtendedInput/KeyboardExtendedInput.tsx +138 -2
- package/src/components/KeyboardExtendedInput/KeyboardExtendedInput.types.ts +15 -0
- package/src/components/KeyboardFocusLock/FocusTrap/FocusTrap.tsx +21 -4
- package/src/components/KeyboardFocusLock/KeyboardFocusLockBase/KeyboardFocusLockBase.tsx +20 -3
- package/src/components/KeyboardFocusView/KeyboardFocusView.tsx +2 -0
- package/src/nativeSpec/ExternalKeyboardLockViewNativeComponent.ts +1 -0
- package/src/nativeSpec/TextInputFocusWrapperNativeComponent.ts +16 -0
- package/src/types/BaseKeyboardView.ts +2 -0
- package/src/types/KeyboardFocusLock.types.ts +1 -0
- package/src/types/WithKeyboardFocus.ts +19 -2
- package/src/utils/useFocusStyle.tsx +5 -15
- package/src/utils/withKeyboardFocus.tsx +44 -15
- package/src/utils/wrapOrderPrefix.ts +16 -0
- package/ios/Delegates/RNCEKVFocusOrderDelegate/RNCEKVFocusGuideDelegate/RNCEKVFocusGuideDelegate.h +0 -36
- package/ios/Delegates/RNCEKVFocusOrderDelegate/RNCEKVFocusGuideDelegate/RNCEKVFocusGuideDelegate.mm +0 -150
- package/ios/Delegates/RNCEKVFocusOrderDelegate/RNCEKVFocusOrderDelegate.h +0 -47
- package/ios/Delegates/RNCEKVFocusOrderDelegate/RNCEKVFocusOrderDelegate.mm +0 -326
- package/ios/Services/RNCEKVKeyboardOrderManager/RNCEKVKeyboardOrderManager.h +0 -17
- package/ios/Services/RNCEKVKeyboardOrderManager/RNCEKVKeyboardOrderManager.mm +0 -15
- package/lib/commonjs/components/KeyboardFocusLock/KeyboardFocusLockBase/KeyboardFocusLockBase.android.js +0 -22
- package/lib/commonjs/components/KeyboardFocusLock/KeyboardFocusLockBase/KeyboardFocusLockBase.android.js.map +0 -1
- package/lib/module/components/KeyboardFocusLock/KeyboardFocusLockBase/KeyboardFocusLockBase.android.js +0 -17
- package/lib/module/components/KeyboardFocusLock/KeyboardFocusLockBase/KeyboardFocusLockBase.android.js.map +0 -1
- package/lib/typescript/src/components/KeyboardFocusLock/KeyboardFocusLockBase/KeyboardFocusLockBase.android.d.ts +0 -4
- package/lib/typescript/src/components/KeyboardFocusLock/KeyboardFocusLockBase/KeyboardFocusLockBase.android.d.ts.map +0 -1
- package/src/components/KeyboardFocusLock/KeyboardFocusLockBase/KeyboardFocusLockBase.android.tsx +0 -16
|
@@ -1,14 +1,45 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
import React, { useMemo } from 'react';
|
|
3
|
+
import React, { useEffect, useMemo } from 'react';
|
|
4
4
|
import { View, TextInput, Platform, StyleSheet } from 'react-native';
|
|
5
5
|
import { TextInputFocusWrapperNative } from '../../nativeSpec';
|
|
6
6
|
import { useFocusStyle } from '../../utils/useFocusStyle';
|
|
7
7
|
import { focusEventMapper } from '../../utils/focusEventMapper';
|
|
8
8
|
import { RenderPropComponent } from '../RenderPropComponent/RenderPropComponent';
|
|
9
9
|
import { useGroupIdentifierContext } from '../../context/GroupIdentifierContext';
|
|
10
|
+
import { useOrderFocusGroup } from '../../context/OrderFocusContext';
|
|
10
11
|
import { blurMap, focusMap } from './KeyboardExtendedInput.consts';
|
|
12
|
+
import { wrapOrderPrefix } from '../../utils/wrapOrderPrefix';
|
|
13
|
+
import { LockFocusEnum } from '../../types/BaseKeyboardView';
|
|
11
14
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
15
|
+
var BITS = /*#__PURE__*/function (BITS) {
|
|
16
|
+
BITS[BITS["BIT_01"] = 1] = "BIT_01";
|
|
17
|
+
BITS[BITS["BIT_02"] = 2] = "BIT_02";
|
|
18
|
+
BITS[BITS["BIT_03"] = 4] = "BIT_03";
|
|
19
|
+
BITS[BITS["BIT_04"] = 8] = "BIT_04";
|
|
20
|
+
BITS[BITS["BIT_05"] = 16] = "BIT_05";
|
|
21
|
+
BITS[BITS["BIT_06"] = 32] = "BIT_06";
|
|
22
|
+
BITS[BITS["BIT_07"] = 64] = "BIT_07";
|
|
23
|
+
BITS[BITS["BIT_08"] = 128] = "BIT_08";
|
|
24
|
+
BITS[BITS["BIT_09"] = 256] = "BIT_09";
|
|
25
|
+
BITS[BITS["BIT_10"] = 512] = "BIT_10";
|
|
26
|
+
return BITS;
|
|
27
|
+
}(BITS || {});
|
|
28
|
+
const focusBinaryValue = {
|
|
29
|
+
[LockFocusEnum.Up]: BITS.BIT_01,
|
|
30
|
+
[LockFocusEnum.Down]: BITS.BIT_02,
|
|
31
|
+
[LockFocusEnum.Left]: BITS.BIT_03,
|
|
32
|
+
[LockFocusEnum.Right]: BITS.BIT_04,
|
|
33
|
+
[LockFocusEnum.Forward]: BITS.BIT_05,
|
|
34
|
+
[LockFocusEnum.Backward]: BITS.BIT_06,
|
|
35
|
+
[LockFocusEnum.First]: BITS.BIT_09,
|
|
36
|
+
[LockFocusEnum.Last]: BITS.BIT_10
|
|
37
|
+
};
|
|
38
|
+
const mapLockFocus = values => {
|
|
39
|
+
if (!values || !values.length) return 0;
|
|
40
|
+
// eslint-disable-next-line no-bitwise
|
|
41
|
+
return values.reduce((acc, item) => acc | focusBinaryValue[item], 0);
|
|
42
|
+
};
|
|
12
43
|
const isIOS = Platform.OS === 'ios';
|
|
13
44
|
export const KeyboardExtendedInput = /*#__PURE__*/React.forwardRef(({
|
|
14
45
|
focusType = 'default',
|
|
@@ -27,10 +58,24 @@ export const KeyboardExtendedInput = /*#__PURE__*/React.forwardRef(({
|
|
|
27
58
|
onSubmitEditing,
|
|
28
59
|
submitBehavior,
|
|
29
60
|
groupIdentifier,
|
|
61
|
+
lockFocus,
|
|
62
|
+
orderGroup,
|
|
63
|
+
orderIndex,
|
|
64
|
+
orderId,
|
|
65
|
+
orderForward,
|
|
66
|
+
orderBackward,
|
|
67
|
+
orderLeft,
|
|
68
|
+
orderRight,
|
|
69
|
+
orderUp,
|
|
70
|
+
orderDown,
|
|
30
71
|
rejectResponderTermination,
|
|
31
72
|
selectionHandleColor,
|
|
32
73
|
cursorColor,
|
|
33
74
|
maxFontSizeMultiplier,
|
|
75
|
+
orderFirst,
|
|
76
|
+
orderLast,
|
|
77
|
+
defaultFocusHighlightEnabled = true,
|
|
78
|
+
orderPrefix: _orderPrefix,
|
|
34
79
|
...props
|
|
35
80
|
}, ref) => {
|
|
36
81
|
const {
|
|
@@ -47,7 +92,13 @@ export const KeyboardExtendedInput = /*#__PURE__*/React.forwardRef(({
|
|
|
47
92
|
tintType
|
|
48
93
|
});
|
|
49
94
|
const contextIdentifier = useGroupIdentifierContext();
|
|
50
|
-
const
|
|
95
|
+
const contextGroupId = useOrderFocusGroup();
|
|
96
|
+
const groupId = orderGroup ?? contextGroupId;
|
|
97
|
+
const orderPrefix = _orderPrefix ?? contextGroupId ?? '';
|
|
98
|
+
const withHaloEffect = Platform.select({
|
|
99
|
+
ios: tintType === 'default' && haloEffect,
|
|
100
|
+
android: defaultFocusHighlightEnabled
|
|
101
|
+
});
|
|
51
102
|
const nativeFocusHandler = useMemo(() => focusEventMapper(onFocusChangeHandler), [onFocusChangeHandler]);
|
|
52
103
|
const HoverComonent = useMemo(() => {
|
|
53
104
|
if (FocusHoverComponent) return FocusHoverComponent;
|
|
@@ -57,6 +108,29 @@ export const KeyboardExtendedInput = /*#__PURE__*/React.forwardRef(({
|
|
|
57
108
|
return undefined;
|
|
58
109
|
}, [FocusHoverComponent, hoverColor, tintType]);
|
|
59
110
|
const blurOnSubmit = submitBehavior ? submitBehavior === 'blurAndSubmit' : props.blurOnSubmit ?? true;
|
|
111
|
+
useEffect(() => {
|
|
112
|
+
if (!__DEV__) return;
|
|
113
|
+
if (orderIndex !== undefined && !groupId) console.warn('`orderIndex` must be declared alongside `orderGroup` for proper functionality. Ensure components are wrapped with `KeyboardOrderFocusGroup` or provide `orderGroup` directly.');
|
|
114
|
+
}, [groupId, orderIndex]);
|
|
115
|
+
useEffect(() => {
|
|
116
|
+
if (!__DEV__) return;
|
|
117
|
+
const hasOrderLinkProp = orderId !== undefined || orderForward !== undefined || orderBackward !== undefined || orderFirst !== undefined || orderLast !== undefined || orderLeft !== undefined || orderRight !== undefined || orderUp !== undefined || orderDown !== undefined;
|
|
118
|
+
if (hasOrderLinkProp && orderPrefix === '') {
|
|
119
|
+
console.warn('[react-native-external-keyboard] orderId, orderForward, orderBackward, orderFirst, orderLast, ' + 'orderLeft, orderRight, orderUp, and orderDown are global IDs. ' + 'Wrap the component in <KeyboardOrderFocusGroup> or pass orderPrefix to avoid ID collisions across screens.');
|
|
120
|
+
}
|
|
121
|
+
}, [orderId, orderForward, orderBackward, orderFirst, orderLast, orderLeft, orderRight, orderUp, orderDown, orderPrefix]);
|
|
122
|
+
const wrapPrefix = useMemo(() => wrapOrderPrefix(orderPrefix), [orderPrefix]);
|
|
123
|
+
const wrappedOrderProps = useMemo(() => ({
|
|
124
|
+
orderId: wrapPrefix(orderId),
|
|
125
|
+
orderForward: wrapPrefix(orderForward),
|
|
126
|
+
orderBackward: wrapPrefix(orderBackward),
|
|
127
|
+
orderLeft: wrapPrefix(orderLeft),
|
|
128
|
+
orderRight: wrapPrefix(orderRight),
|
|
129
|
+
orderUp: wrapPrefix(orderUp),
|
|
130
|
+
orderDown: wrapPrefix(orderDown),
|
|
131
|
+
orderFirst: wrapPrefix(orderFirst === null ? undefined : orderFirst ?? orderForward),
|
|
132
|
+
orderLast: wrapPrefix(orderLast === null ? undefined : orderLast ?? orderBackward)
|
|
133
|
+
}), [wrapPrefix, orderId, orderForward, orderBackward, orderLeft, orderRight, orderUp, orderDown, orderFirst, orderLast]);
|
|
60
134
|
return /*#__PURE__*/_jsxs(TextInputFocusWrapperNative, {
|
|
61
135
|
onFocusChange: nativeFocusHandler //ToDo update type
|
|
62
136
|
,
|
|
@@ -70,6 +144,10 @@ export const KeyboardExtendedInput = /*#__PURE__*/React.forwardRef(({
|
|
|
70
144
|
canBeFocused: canBeFocusable && focusable,
|
|
71
145
|
tintColor: isIOS ? tintColor : undefined,
|
|
72
146
|
groupIdentifier: groupIdentifier ?? contextIdentifier,
|
|
147
|
+
lockFocus: mapLockFocus(lockFocus),
|
|
148
|
+
orderGroup: groupId,
|
|
149
|
+
orderIndex: orderIndex ?? -1,
|
|
150
|
+
...wrappedOrderProps,
|
|
73
151
|
children: [/*#__PURE__*/_jsx(TextInput, {
|
|
74
152
|
ref: ref,
|
|
75
153
|
editable: canBeFocusable && focusable,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useMemo","View","TextInput","Platform","StyleSheet","TextInputFocusWrapperNative","useFocusStyle","focusEventMapper","RenderPropComponent","useGroupIdentifierContext","blurMap","focusMap","jsx","_jsx","jsxs","_jsxs","isIOS","OS","KeyboardExtendedInput","forwardRef","focusType","blurType","containerStyle","onFocusChange","focusStyle","style","haloEffect","canBeFocusable","focusable","containerFocusStyle","tintColor","tintType","FocusHoverComponent","onSubmitEditing","submitBehavior","groupIdentifier","rejectResponderTermination","selectionHandleColor","cursorColor","maxFontSizeMultiplier","props","ref","focused","containerFocusedStyle","componentFocusedStyle","onFocusChangeHandler","hoverColor","contextIdentifier","withHaloEffect","nativeFocusHandler","HoverComonent","styles","absolute","opacity","undefined","blurOnSubmit","multiline","onMultiplyTextSubmit","canBeFocused","children","editable","render","create","position","top","left","right","bottom"],"sourceRoot":"../../../../src","sources":["components/KeyboardExtendedInput/KeyboardExtendedInput.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,OAAO,QAAQ,OAAO;
|
|
1
|
+
{"version":3,"names":["React","useEffect","useMemo","View","TextInput","Platform","StyleSheet","TextInputFocusWrapperNative","useFocusStyle","focusEventMapper","RenderPropComponent","useGroupIdentifierContext","useOrderFocusGroup","blurMap","focusMap","wrapOrderPrefix","LockFocusEnum","jsx","_jsx","jsxs","_jsxs","BITS","focusBinaryValue","Up","BIT_01","Down","BIT_02","Left","BIT_03","Right","BIT_04","Forward","BIT_05","Backward","BIT_06","First","BIT_09","Last","BIT_10","mapLockFocus","values","length","reduce","acc","item","isIOS","OS","KeyboardExtendedInput","forwardRef","focusType","blurType","containerStyle","onFocusChange","focusStyle","style","haloEffect","canBeFocusable","focusable","containerFocusStyle","tintColor","tintType","FocusHoverComponent","onSubmitEditing","submitBehavior","groupIdentifier","lockFocus","orderGroup","orderIndex","orderId","orderForward","orderBackward","orderLeft","orderRight","orderUp","orderDown","rejectResponderTermination","selectionHandleColor","cursorColor","maxFontSizeMultiplier","orderFirst","orderLast","defaultFocusHighlightEnabled","orderPrefix","_orderPrefix","props","ref","focused","containerFocusedStyle","componentFocusedStyle","onFocusChangeHandler","hoverColor","contextIdentifier","contextGroupId","groupId","withHaloEffect","select","ios","android","nativeFocusHandler","HoverComonent","styles","absolute","opacity","undefined","blurOnSubmit","__DEV__","console","warn","hasOrderLinkProp","wrapPrefix","wrappedOrderProps","multiline","onMultiplyTextSubmit","canBeFocused","children","editable","render","create","position","top","left","right","bottom"],"sourceRoot":"../../../../src","sources":["components/KeyboardExtendedInput/KeyboardExtendedInput.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,SAAS,EAAEC,OAAO,QAAQ,OAAO;AACjD,SAASC,IAAI,EAAEC,SAAS,EAAEC,QAAQ,EAAEC,UAAU,QAAQ,cAAc;AAEpE,SAASC,2BAA2B,QAAQ,kBAAkB;AAC9D,SAASC,aAAa,QAAQ,2BAA2B;AACzD,SAASC,gBAAgB,QAAQ,8BAA8B;AAC/D,SAASC,mBAAmB,QAAQ,4CAA4C;AAChF,SAASC,yBAAyB,QAAQ,sCAAsC;AAChF,SAASC,kBAAkB,QAAQ,iCAAiC;AAEpE,SAASC,OAAO,EAAEC,QAAQ,QAAQ,gCAAgC;AAClE,SAASC,eAAe,QAAQ,6BAA6B;AAC7D,SACEC,aAAa,QAER,8BAA8B;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAAA,IAEjCC,IAAI,0BAAJA,IAAI;EAAJA,IAAI,CAAJA,IAAI;EAAJA,IAAI,CAAJA,IAAI;EAAJA,IAAI,CAAJA,IAAI;EAAJA,IAAI,CAAJA,IAAI;EAAJA,IAAI,CAAJA,IAAI;EAAJA,IAAI,CAAJA,IAAI;EAAJA,IAAI,CAAJA,IAAI;EAAJA,IAAI,CAAJA,IAAI;EAAJA,IAAI,CAAJA,IAAI;EAAJA,IAAI,CAAJA,IAAI;EAAA,OAAJA,IAAI;AAAA,EAAJA,IAAI;AAaT,MAAMC,gBAA+C,GAAG;EACtD,CAACN,aAAa,CAACO,EAAE,GAAGF,IAAI,CAACG,M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;MACtCH,KAAK,EAAE,CAACA,KAAK,EAAEkC,qBAAqB,CAAE;MACtC1B,eAAe,EAAEA,eAAgB;MACjCC,cAAc,EAAEA,cAAe;MAC/BY,0BAA0B,EAAEA,0BAA0B,IAAI4B,SAAU;MACpE3B,oBAAoB,EAAEA,oBAAoB,IAAI2B,SAAU;MACxD1B,WAAW,EAAEA,WAAW,IAAI0B,SAAU;MACtCzB,qBAAqB,EAAEA,qBAAqB,IAAIyB,SAAU;MAAA,GACtDnB;IAAK,CACV,CAAC,EACDE,OAAO,IAAIa,aAAa,iBACvBjF,IAAA,CAACR,mBAAmB;MAAC0G,MAAM,EAAEjB;IAAc,CAAE,CAC9C;EAAA,CAC0B,CAAC;AAElC,CACF,CAAC;AAED,MAAMC,MAAM,GAAG9F,UAAU,CAAC+G,MAAM,CAAC;EAC/BhB,QAAQ,EAAE;IACRiB,QAAQ,EAAE,UAAU;IACpBC,GAAG,EAAE,CAAC;IACNC,IAAI,EAAE,CAAC;IACPC,KAAK,EAAE,CAAC;IACRC,MAAM,EAAE;EACV,CAAC;EACDpB,OAAO,EAAE;IACPA,OAAO,EAAE;EACX;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -2,12 +2,26 @@
|
|
|
2
2
|
|
|
3
3
|
import { View } from 'react-native';
|
|
4
4
|
import { FocusTrapMountWrapper } from './FocusTrapMountWrapper';
|
|
5
|
+
import { KeyboardFocusLockBase } from '../KeyboardFocusLockBase/KeyboardFocusLockBase';
|
|
5
6
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
|
-
export const FocusTrap =
|
|
7
|
-
|
|
7
|
+
export const FocusTrap = ({
|
|
8
|
+
forceLock = false,
|
|
9
|
+
...props
|
|
10
|
+
}) => {
|
|
11
|
+
if (forceLock) {
|
|
12
|
+
return /*#__PURE__*/_jsx(FocusTrapMountWrapper, {
|
|
13
|
+
children: /*#__PURE__*/_jsx(KeyboardFocusLockBase, {
|
|
14
|
+
collapsable: false,
|
|
15
|
+
accessibilityViewIsModal: true,
|
|
16
|
+
forceLock: forceLock,
|
|
17
|
+
...props
|
|
18
|
+
})
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
return /*#__PURE__*/_jsx(View, {
|
|
8
22
|
collapsable: false,
|
|
9
23
|
accessibilityViewIsModal: true,
|
|
10
24
|
...props
|
|
11
|
-
})
|
|
12
|
-
}
|
|
25
|
+
});
|
|
26
|
+
};
|
|
13
27
|
//# sourceMappingURL=FocusTrap.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["View","FocusTrapMountWrapper","jsx","_jsx","FocusTrap","props","children","collapsable","accessibilityViewIsModal"],"sourceRoot":"../../../../../src","sources":["components/KeyboardFocusLock/FocusTrap/FocusTrap.tsx"],"mappings":";;AAAA,SAASA,IAAI,QAAQ,cAAc;AACnC,SAASC,qBAAqB,QAAQ,yBAAyB;AAAC,SAAAC,GAAA,IAAAC,IAAA;
|
|
1
|
+
{"version":3,"names":["View","FocusTrapMountWrapper","KeyboardFocusLockBase","jsx","_jsx","FocusTrap","forceLock","props","children","collapsable","accessibilityViewIsModal"],"sourceRoot":"../../../../../src","sources":["components/KeyboardFocusLock/FocusTrap/FocusTrap.tsx"],"mappings":";;AAAA,SAASA,IAAI,QAAQ,cAAc;AACnC,SAASC,qBAAqB,QAAQ,yBAAyB;AAE/D,SAASC,qBAAqB,QAAQ,gDAAgD;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAEvF,OAAO,MAAMC,SAAS,GAAGA,CAAC;EACxBC,SAAS,GAAG,KAAK;EACjB,GAAGC;AACmB,CAAC,KAAK;EAC5B,IAAID,SAAS,EAAE;IACb,oBACEF,IAAA,CAACH,qBAAqB;MAAAO,QAAA,eACpBJ,IAAA,CAACF,qBAAqB;QACpBO,WAAW,EAAE,KAAM;QACnBC,wBAAwB,EAAE,IAAK;QAC/BJ,SAAS,EAAEA,SAAU;QAAA,GACjBC;MAAK,CACV;IAAC,CACmB,CAAC;EAE5B;EAEA,oBACEH,IAAA,CAACJ,IAAI;IAACS,WAAW,EAAE,KAAM;IAACC,wBAAwB,EAAE,IAAK;IAAA,GAAKH;EAAK,CAAG,CAAC;AAE3E,CAAC","ignoreList":[]}
|
package/lib/module/components/KeyboardFocusLock/KeyboardFocusLockBase/KeyboardFocusLockBase.js
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
import
|
|
4
|
-
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import ExternalKeyboardLockView from '../../../nativeSpec/ExternalKeyboardLockViewNativeComponent';
|
|
5
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
|
+
export const KeyboardFocusLockBase = /*#__PURE__*/React.memo(({
|
|
7
|
+
lockDisabled = false,
|
|
8
|
+
componentType = 0,
|
|
9
|
+
forceLock = false,
|
|
10
|
+
...props
|
|
11
|
+
}) => {
|
|
12
|
+
return /*#__PURE__*/_jsx(ExternalKeyboardLockView, {
|
|
13
|
+
...props,
|
|
14
|
+
componentType: componentType,
|
|
15
|
+
lockDisabled: lockDisabled,
|
|
16
|
+
forceLock: forceLock
|
|
17
|
+
});
|
|
18
|
+
});
|
|
5
19
|
//# sourceMappingURL=KeyboardFocusLockBase.js.map
|
package/lib/module/components/KeyboardFocusLock/KeyboardFocusLockBase/KeyboardFocusLockBase.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["React","ExternalKeyboardLockView","jsx","_jsx","KeyboardFocusLockBase","memo","lockDisabled","componentType","forceLock","props"],"sourceRoot":"../../../../../src","sources":["components/KeyboardFocusLock/KeyboardFocusLockBase/KeyboardFocusLockBase.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,wBAAwB,MAAM,6DAA6D;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAInG,OAAO,MAAMC,qBAAqB,gBAAGJ,KAAK,CAACK,IAAI,CAC7C,CAAC;EACCC,YAAY,GAAG,KAAK;EACpBC,aAAa,GAAG,CAAC;EACjBC,SAAS,GAAG,KAAK;EACjB,GAAGC;AACL,CAAC,KAAK;EACJ,oBACEN,IAAA,CAACF,wBAAwB;IAAA,GACnBQ,KAAK;IACTF,aAAa,EAAEA,aAAc;IAC7BD,YAAY,EAAEA,YAAa;IAC3BE,SAAS,EAAEA;EAAU,CACtB,CAAC;AAEN,CACF,CAAC","ignoreList":[]}
|
|
@@ -31,6 +31,7 @@ export const KeyboardFocusView = /*#__PURE__*/React.forwardRef(({
|
|
|
31
31
|
children,
|
|
32
32
|
accessible,
|
|
33
33
|
triggerCodes,
|
|
34
|
+
defaultFocusHighlightEnabled = true,
|
|
34
35
|
...props
|
|
35
36
|
}, ref) => {
|
|
36
37
|
const {
|
|
@@ -78,6 +79,7 @@ export const KeyboardFocusView = /*#__PURE__*/React.forwardRef(({
|
|
|
78
79
|
onFocusChange: onFocusChangeHandler,
|
|
79
80
|
onContextMenuPress: onLongPress,
|
|
80
81
|
haloEffect: withHaloEffect,
|
|
82
|
+
defaultFocusHighlightEnabled: defaultFocusHighlightEnabled,
|
|
81
83
|
autoFocus: autoFocus,
|
|
82
84
|
canBeFocused: canBeFocused,
|
|
83
85
|
focusable: focusable,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useMemo","View","StyleSheet","Platform","BaseKeyboardView","RenderPropComponent","useFocusStyle","useKeyboardPress","IsViewFocusedContext","jsx","_jsx","jsxs","_jsxs","KeyboardFocusView","forwardRef","tintType","autoFocus","focusStyle","style","onFocusChange","onPress","onLongPress","onKeyUpPress","onKeyDownPress","group","haloEffect","canBeFocused","focusable","withView","tintColor","onFocus","onBlur","FocusHoverComponent","children","accessible","triggerCodes","props","ref","focused","containerFocusedStyle","onFocusChangeHandler","hoverColor","containerFocusStyle","withHaloEffect","onKeyUpPressHandler","onKeyDownPressHandler","disabled","HoverComonent","styles","absolute","opacity","undefined","a11y","OS","Provider","value","onContextMenuPress","enableContextMenu","Boolean","render","create","position","top","left","right","bottom"],"sourceRoot":"../../../../src","sources":["components/KeyboardFocusView/KeyboardFocusView.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,OAAO,QAAQ,OAAO;AACtC,SAASC,IAAI,EAAEC,UAAU,EAAEC,QAAQ,QAAQ,cAAc;AAEzD,SAASC,gBAAgB,QAAQ,sCAAsC;AAMvE,SAEEC,mBAAmB,QACd,4CAA4C;AACnD,SAASC,aAAa,QAAQ,2BAA2B;AACzD,SAASC,gBAAgB,QAAQ,+CAA+C;AAChF,SAASC,oBAAoB,QAAQ,oCAAoC;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAE1E,OAAO,MAAMC,iBAAiB,gBAAGd,KAAK,CAACe,UAAU,CAQ/C,CACE;EACEC,QAAQ,GAAG,SAAS;EACpBC,SAAS;EACTC,UAAU;EACVC,KAAK;EACLC,aAAa;EACbC,OAAO;EACPC,WAAW;EACXC,YAAY;EACZC,cAAc;EACdC,KAAK,GAAG,KAAK;EACbC,UAAU,GAAG,IAAI;EACjBC,YAAY,GAAG,IAAI;EACnBC,SAAS,GAAG,IAAI;EAChBC,QAAQ,GAAG,IAAI;EAAE;EACjBC,SAAS;EACTC,OAAO;EACPC,MAAM;EACNC,mBAAmB;EACnBC,QAAQ;EACRC,UAAU;EACVC,YAAY;
|
|
1
|
+
{"version":3,"names":["React","useMemo","View","StyleSheet","Platform","BaseKeyboardView","RenderPropComponent","useFocusStyle","useKeyboardPress","IsViewFocusedContext","jsx","_jsx","jsxs","_jsxs","KeyboardFocusView","forwardRef","tintType","autoFocus","focusStyle","style","onFocusChange","onPress","onLongPress","onKeyUpPress","onKeyDownPress","group","haloEffect","canBeFocused","focusable","withView","tintColor","onFocus","onBlur","FocusHoverComponent","children","accessible","triggerCodes","defaultFocusHighlightEnabled","props","ref","focused","containerFocusedStyle","onFocusChangeHandler","hoverColor","containerFocusStyle","withHaloEffect","onKeyUpPressHandler","onKeyDownPressHandler","disabled","HoverComonent","styles","absolute","opacity","undefined","a11y","OS","Provider","value","onContextMenuPress","enableContextMenu","Boolean","render","create","position","top","left","right","bottom"],"sourceRoot":"../../../../src","sources":["components/KeyboardFocusView/KeyboardFocusView.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,OAAO,QAAQ,OAAO;AACtC,SAASC,IAAI,EAAEC,UAAU,EAAEC,QAAQ,QAAQ,cAAc;AAEzD,SAASC,gBAAgB,QAAQ,sCAAsC;AAMvE,SAEEC,mBAAmB,QACd,4CAA4C;AACnD,SAASC,aAAa,QAAQ,2BAA2B;AACzD,SAASC,gBAAgB,QAAQ,+CAA+C;AAChF,SAASC,oBAAoB,QAAQ,oCAAoC;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAE1E,OAAO,MAAMC,iBAAiB,gBAAGd,KAAK,CAACe,UAAU,CAQ/C,CACE;EACEC,QAAQ,GAAG,SAAS;EACpBC,SAAS;EACTC,UAAU;EACVC,KAAK;EACLC,aAAa;EACbC,OAAO;EACPC,WAAW;EACXC,YAAY;EACZC,cAAc;EACdC,KAAK,GAAG,KAAK;EACbC,UAAU,GAAG,IAAI;EACjBC,YAAY,GAAG,IAAI;EACnBC,SAAS,GAAG,IAAI;EAChBC,QAAQ,GAAG,IAAI;EAAE;EACjBC,SAAS;EACTC,OAAO;EACPC,MAAM;EACNC,mBAAmB;EACnBC,QAAQ;EACRC,UAAU;EACVC,YAAY;EACZC,4BAA4B,GAAG,IAAI;EACnC,GAAGC;AACL,CAAC,EACDC,GAAG,KACA;EACH,MAAM;IAAEC,OAAO;IAAEC,qBAAqB;IAAEC,oBAAoB;IAAEC;EAAW,CAAC,GACxEpC,aAAa,CAAC;IACZa,aAAa;IACbU,SAAS;IACTc,mBAAmB,EAAE1B,UAAU;IAC/BF;EACF,CAAC,CAAC;EAEJ,MAAM6B,cAAc,GAAG7B,QAAQ,KAAK,SA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BU,YAAY,EAAEA,YAAa;MAC3BC,SAAS,EAAEA,SAAU;MACrBE,SAAS,EAAEA,SAAU;MACrBL,KAAK,EAAEA,KAAM;MACbU,UAAU,EAAEmB,IAAK;MACjBK,iBAAiB,EAAEC,OAAO,CAACtC,WAAW,CAAE;MAAA,GACpCgB,KAAK;MAAAJ,QAAA,GAERA,QAAQ,EACRM,OAAO,IAAIS,aAAa,iBACvBtC,IAAA,CAACL,mBAAmB;QAACuD,MAAM,EAAEZ;MAAc,CAAE,CAC9C;IAAA,CACe;EAAC,CACU,CAAC;AAEpC,CACF,CAAC;AAED,MAAMC,MAAM,GAAG/C,UAAU,CAAC2D,MAAM,CAAC;EAC/BX,QAAQ,EAAE;IACRY,QAAQ,EAAE,UAAU;IACpBC,GAAG,EAAE,CAAC;IACNC,IAAI,EAAE,CAAC;IACPC,KAAK,EAAE,CAAC;IACRC,MAAM,EAAE;EACV,CAAC;EACDf,OAAO,EAAE;IACPA,OAAO,EAAE;EACX;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { ViewProps, ColorValue } from 'react-native';
|
|
2
2
|
import type {
|
|
3
3
|
DirectEventHandler,
|
|
4
|
+
Float,
|
|
4
5
|
Int32,
|
|
5
6
|
} from 'react-native/Libraries/Types/CodegenTypes';
|
|
6
7
|
// eslint-disable-next-line @react-native/no-deep-imports
|
|
@@ -21,10 +22,25 @@ export interface TextInputFocusWrapperNativeComponent extends ViewProps {
|
|
|
21
22
|
blurType?: Int32;
|
|
22
23
|
canBeFocused?: boolean;
|
|
23
24
|
haloEffect?: boolean;
|
|
25
|
+
haloCornerRadius?: Float;
|
|
26
|
+
haloExpendX?: Float;
|
|
27
|
+
haloExpendY?: Float;
|
|
24
28
|
tintColor?: ColorValue;
|
|
25
29
|
blurOnSubmit?: boolean;
|
|
26
30
|
multiline?: boolean;
|
|
27
31
|
groupIdentifier?: string;
|
|
32
|
+
lockFocus?: Int32;
|
|
33
|
+
orderGroup?: string;
|
|
34
|
+
orderIndex?: Int32;
|
|
35
|
+
orderId?: string;
|
|
36
|
+
orderLeft?: string;
|
|
37
|
+
orderRight?: string;
|
|
38
|
+
orderUp?: string;
|
|
39
|
+
orderDown?: string;
|
|
40
|
+
orderForward?: string;
|
|
41
|
+
orderBackward?: string;
|
|
42
|
+
orderFirst?: string;
|
|
43
|
+
orderLast?: string;
|
|
28
44
|
}
|
|
29
45
|
|
|
30
46
|
export default codegenNativeComponent<TextInputFocusWrapperNativeComponent>(
|
|
@@ -1,16 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
import { useState, useMemo, useCallback } from 'react';
|
|
4
|
-
import {
|
|
5
|
-
const backgroundTintMap =
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
},
|
|
9
|
-
default: {
|
|
10
|
-
background: true,
|
|
11
|
-
default: true
|
|
12
|
-
}
|
|
13
|
-
});
|
|
4
|
+
import { Pressable } from 'react-native';
|
|
5
|
+
const backgroundTintMap = {
|
|
6
|
+
background: true
|
|
7
|
+
};
|
|
14
8
|
const DEFAULT_BACKGROUND_TINT = '#dce3f9';
|
|
15
9
|
export const useFocusStyle = ({
|
|
16
10
|
focusStyle,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useState","useMemo","useCallback","
|
|
1
|
+
{"version":3,"names":["useState","useMemo","useCallback","Pressable","backgroundTintMap","background","DEFAULT_BACKGROUND_TINT","useFocusStyle","focusStyle","onFocusChange","containerFocusStyle","tintColor","tintType","style","Component","withPressedStyle","focused","setFocusStatus","onFocusChangeHandler","isFocused","componentFocusedStyle","specificStyle","undefined","hoverColor","backgroundColor","containerFocusedStyle","dafaultComponentStyle","styleHandlerPressable","pressed","componentStyleViewStyle"],"sourceRoot":"../../../src","sources":["utils/useFocusStyle.tsx"],"mappings":";;AAAA,SAASA,QAAQ,EAAEC,OAAO,EAAEC,WAAW,QAAQ,OAAO;AACtD,SAA+CC,SAAS,QAAQ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C;MAAEM;IAAQ,CAAC,CAAC,GAChCN,mBAAmB;IAEzB,OAAOM,OAAO,GAAGK,aAAa,GAAGC,SAAS;EAC5C,CAAC,EAAE,CAACZ,mBAAmB,EAAEM,OAAO,EAAEL,SAAS,EAAEC,QAAQ,CAAC,CAAC;EAEvD,MAAMc,qBAAqB,GAAGzB,OAAO,CACnC,MAAM,CAACY,KAAK,EAAEO,qBAAqB,CAAC,EACpC,CAACP,KAAK,EAAEO,qBAAqB,CAC/B,CAAC;EACD,MAAMO,qBAAqB,GAAGzB,WAAW,CACvC,CAAC;IAAE0B;EAA8B,CAAC,KAAK;IACrC,IAAI,OAAOf,KAAK,KAAK,UAAU,EAAE;MAC/B,OAAO,CAACA,KAAK,CAAC;QAAEe;MAAQ,CAAC,CAAC,EAAER,qBAAqB,CAAC;IACpD,CAAC,MAAM;MACL,OAAO,CAACP,KAAK,EAAEO,qBAAqB,CAAC;IACvC;EACF,CAAC,EACD,CAACA,qBAAqB,EAAEP,KAAK,CAC/B,CAAC;EAED,MAAMgB,uBAAuB,GAC3Bf,SAAS,KAAKX,SAAS,IAAIY,gBAAgB,GACvCY,qBAAqB,GACrBD,qBAAqB;EAE3B,OAAO;IACLG,uBAAuB;IACvBT,qBAAqB;IACrBK,qBAAqB;IACrBP,oBAAoB;IACpBK,UAAU;IACVP;EACF,CAAC;AACH,CAAC","ignoreList":[]}
|
|
@@ -59,6 +59,9 @@ export const withKeyboardFocus = Component => {
|
|
|
59
59
|
lockFocus,
|
|
60
60
|
onComponentFocus,
|
|
61
61
|
onComponentBlur,
|
|
62
|
+
renderContent,
|
|
63
|
+
renderFocusable,
|
|
64
|
+
defaultFocusHighlightEnabled,
|
|
62
65
|
...props
|
|
63
66
|
} = allProps;
|
|
64
67
|
const {
|
|
@@ -92,7 +95,14 @@ export const withKeyboardFocus = Component => {
|
|
|
92
95
|
triggerCodes,
|
|
93
96
|
disabled: props?.disabled
|
|
94
97
|
});
|
|
95
|
-
const
|
|
98
|
+
const contentChildrenProp = useMemo(() => renderContent ? state => renderContent({
|
|
99
|
+
...state,
|
|
100
|
+
focused
|
|
101
|
+
}) : undefined, [renderContent, focused]);
|
|
102
|
+
const focusableChildrenProp = useMemo(() => renderFocusable ? renderFocusable({
|
|
103
|
+
focused
|
|
104
|
+
}) : undefined, [renderFocusable, focused]);
|
|
105
|
+
const hoverContent = useMemo(() => {
|
|
96
106
|
if (FocusHoverComponent) return FocusHoverComponent;
|
|
97
107
|
if (tintType === 'hover') {
|
|
98
108
|
return /*#__PURE__*/_jsx(View, {
|
|
@@ -101,6 +111,19 @@ export const withKeyboardFocus = Component => {
|
|
|
101
111
|
}
|
|
102
112
|
return undefined;
|
|
103
113
|
}, [FocusHoverComponent, hoverColor, tintType]);
|
|
114
|
+
const focusOrderProps = {
|
|
115
|
+
orderIndex,
|
|
116
|
+
orderGroup,
|
|
117
|
+
orderId,
|
|
118
|
+
orderLeft,
|
|
119
|
+
orderRight,
|
|
120
|
+
orderUp,
|
|
121
|
+
orderDown,
|
|
122
|
+
orderForward,
|
|
123
|
+
orderBackward,
|
|
124
|
+
orderFirst,
|
|
125
|
+
orderLast
|
|
126
|
+
};
|
|
104
127
|
const onContextMenuHandler = useCallback(() => {
|
|
105
128
|
onLongPress?.();
|
|
106
129
|
}, [onLongPress]);
|
|
@@ -108,6 +131,7 @@ export const withKeyboardFocus = Component => {
|
|
|
108
131
|
value: focused,
|
|
109
132
|
children: /*#__PURE__*/_jsxs(BaseKeyboardView, {
|
|
110
133
|
style: [containerStyle, containerFocusedStyle],
|
|
134
|
+
defaultFocusHighlightEnabled: defaultFocusHighlightEnabled,
|
|
111
135
|
ref: ref,
|
|
112
136
|
viewRef: viewRef,
|
|
113
137
|
onKeyUpPress: onKeyUpPressHandler,
|
|
@@ -131,18 +155,8 @@ export const withKeyboardFocus = Component => {
|
|
|
131
155
|
enableA11yFocus: enableA11yFocus,
|
|
132
156
|
screenAutoA11yFocus: screenAutoA11yFocus,
|
|
133
157
|
screenAutoA11yFocusDelay: screenAutoA11yFocusDelay,
|
|
134
|
-
orderIndex: orderIndex,
|
|
135
|
-
orderGroup: orderGroup,
|
|
136
158
|
lockFocus: lockFocus,
|
|
137
|
-
|
|
138
|
-
orderLeft: orderLeft,
|
|
139
|
-
orderRight: orderRight,
|
|
140
|
-
orderUp: orderUp,
|
|
141
|
-
orderDown: orderDown,
|
|
142
|
-
orderForward: orderForward,
|
|
143
|
-
orderBackward: orderBackward,
|
|
144
|
-
orderFirst: orderFirst,
|
|
145
|
-
orderLast: orderLast,
|
|
159
|
+
...focusOrderProps,
|
|
146
160
|
children: [/*#__PURE__*/_jsx(Component, {
|
|
147
161
|
ref: componentRef,
|
|
148
162
|
style: componentStyleViewStyle,
|
|
@@ -152,9 +166,12 @@ export const withKeyboardFocus = Component => {
|
|
|
152
166
|
onPressOut: onPressOut,
|
|
153
167
|
onFocus: onComponentFocus,
|
|
154
168
|
onBlur: onComponentBlur,
|
|
155
|
-
...props
|
|
156
|
-
|
|
157
|
-
|
|
169
|
+
...props,
|
|
170
|
+
...((contentChildrenProp || focusableChildrenProp) && {
|
|
171
|
+
children: contentChildrenProp ?? focusableChildrenProp
|
|
172
|
+
})
|
|
173
|
+
}), focused && hoverContent && /*#__PURE__*/_jsx(RenderPropComponent, {
|
|
174
|
+
render: hoverContent
|
|
158
175
|
})]
|
|
159
176
|
})
|
|
160
177
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useCallback","useMemo","View","StyleSheet","BaseKeyboardView","useFocusStyle","RenderPropComponent","useKeyboardPress","IsViewFocusedContext","jsx","_jsx","jsxs","_jsxs","withKeyboardFocus","Component","WithKeyboardFocus","memo","forwardRef","allProps","ref","tintType","autoFocus","focusStyle","style","containerStyle","onFocusChange","onPress","onLongPress","onKeyUpPress","onKeyDownPress","onPressIn","onPressOut","group","haloEffect","canBeFocused","focusable","tintColor","onFocus","onBlur","containerFocusStyle","FocusHoverComponent","viewRef","componentRef","haloCornerRadius","haloExpendX","haloExpendY","groupIdentifier","withPressedStyle","triggerCodes","exposeMethods","enableA11yFocus","screenAutoA11yFocus","screenAutoA11yFocusDelay","orderIndex","orderGroup","orderId","orderLeft","orderRight","orderUp","orderDown","orderForward","orderBackward","orderFirst","orderLast","lockFocus","onComponentFocus","onComponentBlur","props","focused","containerFocusedStyle","componentStyleViewStyle","onFocusChangeHandler","hoverColor","withHaloEffect","onKeyUpPressHandler","onKeyDownPressHandler","onPressHandler","disabled","
|
|
1
|
+
{"version":3,"names":["React","useCallback","useMemo","View","StyleSheet","BaseKeyboardView","useFocusStyle","RenderPropComponent","useKeyboardPress","IsViewFocusedContext","jsx","_jsx","jsxs","_jsxs","withKeyboardFocus","Component","WithKeyboardFocus","memo","forwardRef","allProps","ref","tintType","autoFocus","focusStyle","style","containerStyle","onFocusChange","onPress","onLongPress","onKeyUpPress","onKeyDownPress","onPressIn","onPressOut","group","haloEffect","canBeFocused","focusable","tintColor","onFocus","onBlur","containerFocusStyle","FocusHoverComponent","viewRef","componentRef","haloCornerRadius","haloExpendX","haloExpendY","groupIdentifier","withPressedStyle","triggerCodes","exposeMethods","enableA11yFocus","screenAutoA11yFocus","screenAutoA11yFocusDelay","orderIndex","orderGroup","orderId","orderLeft","orderRight","orderUp","orderDown","orderForward","orderBackward","orderFirst","orderLast","lockFocus","onComponentFocus","onComponentBlur","renderContent","renderFocusable","defaultFocusHighlightEnabled","props","focused","containerFocusedStyle","componentStyleViewStyle","onFocusChangeHandler","hoverColor","withHaloEffect","onKeyUpPressHandler","onKeyDownPressHandler","onPressHandler","disabled","contentChildrenProp","state","undefined","focusableChildrenProp","hoverContent","styles","absolute","opacity","focusOrderProps","onContextMenuHandler","Provider","value","children","onContextMenuPress","enableContextMenu","Boolean","render","wrappedComponentName","displayName","name","create","position","top","left","right","bottom"],"sourceRoot":"../../../src","sources":["utils/withKeyboardFocus.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,WAAW,EAAEC,OAAO,QAAwB,OAAO;AACn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,wBAAyB;QACnDY,SAAS,EAAEA,SAAU;QAAA,GACjByB,eAAe;QAAAI,QAAA,gBAEnBnF,IAAA,CAACI,SAAS;UACRK,GAAG,EAAEuB,YAAa;UAClBnB,KAAK,EAAEkD,uBAAwB;UAC/B/C,OAAO,EACLqD,cACD;UACDpD,WAAW,EACTA,WACD;UACDG,SAAS,EACPA,SACD;UACDC,UAAU,EACRA,UACD;UACDM,OAAO,EAAE4B,gBAAiB;UAC1B3B,MAAM,EAAE4B,eAAgB;UAAA,GACnBI,KAAK;UAAA,IACL,CAACW,mBAAmB,IAAIG,qBAAqB,KAC/C;YACCS,QAAQ,EAAEZ,mBAAmB,IAAIG;UACnC,CAAwC;QAAA,CAC3C,CAAC,EACDb,OAAO,IAAIc,YAAY,iBACtB3E,IAAA,CAACJ,mBAAmB;UAAC2F,MAAM,EAAEZ;QAAa,CAAE,CAC7C;MAAA,CACe;IAAC,CACU,CAAC;EAEpC,CAAC,CACH,CAAC;EAED,MAAMa,oBAAoB,GACvBpF,SAAS,EAAUqF,WAAW,IAAKrF,SAAS,CAASsF,IAAI,IAAI,WAAW;EAC3ErF,iBAAiB,CAACoF,WAAW,GAAG,qBAAqBD,oBAAoB,GAAG;EAE5E,OAAOnF,iBAAiB;AAC1B,CAAC;AAED,MAAMuE,MAAM,GAAGnF,UAAU,CAACkG,MAAM,CAAC;EAC/Bd,QAAQ,EAAE;IACRe,QAAQ,EAAE,UAAU;IACpBC,GAAG,EAAE,CAAC;IACNC,IAAI,EAAE,CAAC;IACPC,KAAK,EAAE,CAAC;IACRC,MAAM,EAAE;EACV,CAAC;EACDlB,OAAO,EAAE;IACPA,OAAO,EAAE;EACX;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
const withPrefix = prefix => id => id ? `${prefix}_${id}` : undefined;
|
|
4
|
+
const identity = id => id;
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Returns a function that prepends `prefix` to an order ID.
|
|
8
|
+
* When `prefix` is empty the identity function is returned — no
|
|
9
|
+
* per-call branch needed.
|
|
10
|
+
*/
|
|
11
|
+
export const wrapOrderPrefix = prefix => prefix ? withPrefix(prefix) : identity;
|
|
12
|
+
//# sourceMappingURL=wrapOrderPrefix.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["withPrefix","prefix","id","undefined","identity","wrapOrderPrefix"],"sourceRoot":"../../../src","sources":["utils/wrapOrderPrefix.ts"],"mappings":";;AAEA,MAAMA,UAAU,GACbC,MAAc,IACdC,EAAE,IACDA,EAAE,GAAG,GAAGD,MAAM,IAAIC,EAAE,EAAE,GAAGC,SAAS;AAEtC,MAAMC,QAAc,GAAIF,EAAE,IAAKA,EAAE;;AAEjC;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMG,eAAe,GAAIJ,MAAc,IAC5CA,MAAM,GAAGD,UAAU,CAACC,MAAM,CAAC,GAAGG,QAAQ","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseKeyboardView.d.ts","sourceRoot":"","sources":["../../../../../src/components/BaseKeyboardView/BaseKeyboardView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAMN,MAAM,OAAO,CAAC;AAIf,OAAO,EAGL,KAAK,oBAAoB,EAE1B,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"BaseKeyboardView.d.ts","sourceRoot":"","sources":["../../../../../src/components/BaseKeyboardView/BaseKeyboardView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAMN,MAAM,OAAO,CAAC;AAIf,OAAO,EAGL,KAAK,oBAAoB,EAE1B,MAAM,8BAA8B,CAAC;AAoDtC,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oHA+M5B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KeyboardExtendedInput.d.ts","sourceRoot":"","sources":["../../../../../src/components/KeyboardExtendedInput/KeyboardExtendedInput.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"KeyboardExtendedInput.d.ts","sourceRoot":"","sources":["../../../../../src/components/KeyboardExtendedInput/KeyboardExtendedInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA6B,MAAM,OAAO,CAAC;AAiDlD,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WAmNgtgB,CAAC;;;;;;;;;;;;;;yLAdlvgB,CAAC"}
|
package/lib/typescript/src/components/KeyboardExtendedInput/KeyboardExtendedInput.types.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import type { FocusStyle } from '../../types/FocusStyle';
|
|
|
3
3
|
import type { TintType } from '../../types/WithKeyboardFocus';
|
|
4
4
|
import { type RenderProp } from '../RenderPropComponent/RenderPropComponent';
|
|
5
5
|
import type { blurMap, focusMap } from './KeyboardExtendedInput.consts';
|
|
6
|
+
import type { LockFocusType } from '../../types/BaseKeyboardView';
|
|
6
7
|
export type ExtraKeyboardProps = {
|
|
7
8
|
focusType?: keyof typeof focusMap;
|
|
8
9
|
blurType?: keyof typeof blurMap;
|
|
@@ -18,6 +19,20 @@ export type ExtraKeyboardProps = {
|
|
|
18
19
|
FocusHoverComponent?: RenderProp;
|
|
19
20
|
submitBehavior?: string;
|
|
20
21
|
groupIdentifier?: string;
|
|
22
|
+
lockFocus?: LockFocusType[];
|
|
23
|
+
orderGroup?: string;
|
|
24
|
+
orderIndex?: number;
|
|
25
|
+
orderId?: string;
|
|
26
|
+
orderForward?: string;
|
|
27
|
+
orderBackward?: string;
|
|
28
|
+
orderLeft?: string;
|
|
29
|
+
orderRight?: string;
|
|
30
|
+
orderUp?: string;
|
|
31
|
+
orderDown?: string;
|
|
32
|
+
orderFirst?: string | null;
|
|
33
|
+
orderLast?: string | null;
|
|
34
|
+
orderPrefix?: string;
|
|
35
|
+
defaultFocusHighlightEnabled?: boolean;
|
|
21
36
|
};
|
|
22
37
|
type IgnoreForCompatibility = 'rejectResponderTermination' | 'selectionHandleColor' | 'cursorColor' | 'maxFontSizeMultiplier';
|
|
23
38
|
type CompatibleInputProp<TextInputPropsType extends object, CompatibilityProp extends IgnoreForCompatibility> = CompatibilityProp extends keyof TextInputPropsType ? TextInputPropsType[CompatibilityProp] : CompatibilityProp extends keyof TextInputProps ? TextInputProps[CompatibilityProp] : never;
|
package/lib/typescript/src/components/KeyboardExtendedInput/KeyboardExtendedInput.types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KeyboardExtendedInput.types.d.ts","sourceRoot":"","sources":["../../../../../src/components/KeyboardExtendedInput/KeyboardExtendedInput.types.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,cAAc,EACnB,KAAK,SAAS,EACd,KAAK,SAAS,EACd,KAAK,UAAU,EAChB,MAAM,cAAc,CAAC;AAEtB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAC;AAC9D,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,4CAA4C,CAAC;AAC7E,OAAO,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;
|
|
1
|
+
{"version":3,"file":"KeyboardExtendedInput.types.d.ts","sourceRoot":"","sources":["../../../../../src/components/KeyboardExtendedInput/KeyboardExtendedIn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CAAC;IACtB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,4BAA4B,CAAC,EAAE,OAAO,CAAC;CACxC,CAAC;AAEF,KAAK,sBAAsB,GACvB,4BAA4B,GAC5B,sBAAsB,GACtB,aAAa,GACb,uBAAuB,CAAC;AAE5B,KAAK,mBAAmB,CACtB,kBAAkB,SAAS,MAAM,EACjC,iBAAiB,SAAS,sBAAsB,IAC9C,iBAAiB,SAAS,MAAM,kBAAkB,GAClD,kBAAkB,CAAC,iBAAiB,CAAC,GACrC,iBAAiB,SAAS,MAAM,cAAc,GAC9C,cAAc,CAAC,iBAAiB,CAAC,GACjC,KAAK,CAAC;AAEV,KAAK,6BAA6B,CAChC,kBAAkB,SAAS,MAAM,GAAG,cAAc,IAChD,IAAI,CAAC,kBAAkB,EAAE,sBAAsB,CAAC,GAAG;KACpD,iBAAiB,IAAI,sBAAsB,CAAC,CAAC,EAAE,mBAAmB,CACjE,kBAAkB,EAClB,iBAAiB,CAClB,GAAG,IAAI;CACT,CAAC;AAEF,MAAM,MAAM,6BAA6B,CACvC,kBAAkB,SAAS,MAAM,GAAG,cAAc,IAChD,6BAA6B,CAAC,kBAAkB,CAAC,GAAG,kBAAkB,CAAC;AAE3E,MAAM,MAAM,kBAAkB,GAAG,6BAA6B,CAAC,cAAc,CAAC,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { KeyboardFocusLockProps } from '../../../types/KeyboardFocusLock.types';
|
|
2
|
-
export declare const FocusTrap: (props: KeyboardFocusLockProps) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare const FocusTrap: ({ forceLock, ...props }: KeyboardFocusLockProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
//# sourceMappingURL=FocusTrap.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FocusTrap.d.ts","sourceRoot":"","sources":["../../../../../../src/components/KeyboardFocusLock/FocusTrap/FocusTrap.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,wCAAwC,CAAC;
|
|
1
|
+
{"version":3,"file":"FocusTrap.d.ts","sourceRoot":"","sources":["../../../../../../src/components/KeyboardFocusLock/FocusTrap/FocusTrap.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,wCAAwC,CAAC;AAGrF,eAAO,MAAM,SAAS,GAAI,yBAGvB,sBAAsB,4CAiBxB,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import type { KeyboardFocusLockProps } from '../../../types/KeyboardFocusLock.types';
|
|
2
|
-
export declare const KeyboardFocusLockBase: React.
|
|
3
|
+
export declare const KeyboardFocusLockBase: React.NamedExoticComponent<KeyboardFocusLockProps>;
|
|
3
4
|
//# sourceMappingURL=KeyboardFocusLockBase.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KeyboardFocusLockBase.d.ts","sourceRoot":"","sources":["../../../../../../src/components/KeyboardFocusLock/KeyboardFocusLockBase/KeyboardFocusLockBase.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"KeyboardFocusLockBase.d.ts","sourceRoot":"","sources":["../../../../../../src/components/KeyboardFocusLock/KeyboardFocusLockBase/KeyboardFocusLockBase.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,wCAAwC,CAAC;AAErF,eAAO,MAAM,qBAAqB,oDAgBjC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KeyboardFocusView.d.ts","sourceRoot":"","sources":["../../../../../src/components/KeyboardFocusView/KeyboardFocusView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAIvC,OAAO,KAAK,EACV,oBAAoB,EACpB,aAAa,EACd,MAAM,8BAA8B,CAAC;AACtC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAC;AAC9D,OAAO,EACL,KAAK,UAAU,EAEhB,MAAM,4CAA4C,CAAC;AAKpD,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAHwC,CAAC;;;;eAMxD,QAAQ;0BACG,UAAU;eACrB,OAAO;
|
|
1
|
+
{"version":3,"file":"KeyboardFocusView.d.ts","sourceRoot":"","sources":["../../../../../src/components/KeyboardFocusView/KeyboardFocusView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAIvC,OAAO,KAAK,EACV,oBAAoB,EACpB,aAAa,EACd,MAAM,8BAA8B,CAAC;AACtC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAC;AAC9D,OAAO,EACL,KAAK,UAAU,EAEhB,MAAM,4CAA4C,CAAC;AAKpD,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAHwC,CAAC;;;;eAMxD,QAAQ;0BACG,UAAU;eACrB,OAAO;8DA+FrB,CAAC"}
|
|
@@ -13,6 +13,6 @@ import * as Keyboard from './modules/Keyboard';
|
|
|
13
13
|
export { Keyboard };
|
|
14
14
|
export declare const Focus: {
|
|
15
15
|
Frame: (props: import("react-native").ViewProps) => import("react/jsx-runtime").JSX.Element;
|
|
16
|
-
Trap: (props: import("./types/KeyboardFocusLock.types").KeyboardFocusLockProps) => import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
Trap: ({ forceLock, ...props }: import("./types/KeyboardFocusLock.types").KeyboardFocusLockProps) => import("react/jsx-runtime").JSX.Element;
|
|
17
17
|
};
|
|
18
18
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -3,6 +3,7 @@ import type { Int32 } from 'react-native/Libraries/Types/CodegenTypes';
|
|
|
3
3
|
export interface ExternalKeyboardLockViewNativeComponentProps extends ViewProps {
|
|
4
4
|
componentType: Int32;
|
|
5
5
|
lockDisabled?: boolean;
|
|
6
|
+
forceLock?: boolean;
|
|
6
7
|
}
|
|
7
8
|
declare const _default: (props: Omit<ExternalKeyboardLockViewNativeComponentProps, "ref"> & {
|
|
8
9
|
ref?: React.Ref<import("react-native").HostInstance>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExternalKeyboardLockViewNativeComponent.d.ts","sourceRoot":"","sources":["../../../../src/nativeSpec/ExternalKeyboardLockViewNativeComponent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,2CAA2C,CAAC;AAIvE,MAAM,WAAW,4CACf,SAAQ,SAAS;IACjB,aAAa,EAAE,KAAK,CAAC;IACrB,YAAY,CAAC,EAAE,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ExternalKeyboardLockViewNativeComponent.d.ts","sourceRoot":"","sources":["../../../../src/nativeSpec/ExternalKeyboardLockViewNativeComponent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,2CAA2C,CAAC;AAIvE,MAAM,WAAW,4CACf,SAAQ,SAAS;IACjB,aAAa,EAAE,KAAK,CAAC;IACrB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;;;;AAED,wBAEE"}
|