@momo-kits/calculator-keyboard 0.150.2-phuc.15 → 0.151.1-beta.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 +45 -3
- package/android/src/main/java/com/calculatorkeyboard/CalculatorKeyboardPackage.kt +1 -1
- package/android/src/main/java/com/calculatorkeyboard/CustomKeyboardView.kt +166 -90
- package/android/src/main/java/com/calculatorkeyboard/Event.kt +36 -0
- package/android/src/main/java/com/calculatorkeyboard/{RCTInputCalculator.kt → InputCalculatorViewManager.kt} +100 -27
- package/ios/CalculatorKeyboardView.h +30 -0
- package/ios/CalculatorKeyboardView.mm +231 -0
- package/ios/NativeInputCalculator.h +11 -0
- package/ios/NativeInputCalculator.mm +369 -0
- package/package.json +21 -131
- package/react-native-calculator-keyboard.podspec +5 -4
- package/src/InputCalculatorNativeComponent.ts +62 -0
- package/src/index.tsx +77 -43
- package/ios/CalculatorKeyboardView.swift +0 -153
- package/ios/InputCalculator-Bridging-Header.h +0 -23
- package/ios/InputCalculator.m +0 -85
- package/ios/InputCalculator.swift +0 -158
- package/ios/extension.swift +0 -23
- package/lib/commonjs/index.js +0 -72
- package/lib/commonjs/index.js.map +0 -1
- package/lib/module/index.js +0 -67
- package/lib/module/index.js.map +0 -1
- package/lib/typescript/commonjs/package.json +0 -1
- package/lib/typescript/commonjs/src/index.d.ts +0 -23
- package/lib/typescript/commonjs/src/index.d.ts.map +0 -1
- package/lib/typescript/module/package.json +0 -1
- package/lib/typescript/module/src/index.d.ts +0 -23
- package/lib/typescript/module/src/index.d.ts.map +0 -1
package/lib/commonjs/index.js
DELETED
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
var _react = _interopRequireDefault(require("react"));
|
|
8
|
-
var _reactNative = require("react-native");
|
|
9
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
10
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
|
-
const NAME = 'RCTInputCalculator';
|
|
12
|
-
const NativeInput = (0, _reactNative.requireNativeComponent)(NAME);
|
|
13
|
-
const InputCalculator = /*#__PURE__*/_react.default.forwardRef(({
|
|
14
|
-
customKeyBackground = 'default',
|
|
15
|
-
keyboardColor = '',
|
|
16
|
-
customKeyText,
|
|
17
|
-
onKeyPress,
|
|
18
|
-
customKeyState = 'default',
|
|
19
|
-
onCustomKeyEvent,
|
|
20
|
-
...props
|
|
21
|
-
}, ref) => {
|
|
22
|
-
const nativeRef = _react.default.useRef(null);
|
|
23
|
-
const _onChange = event => {
|
|
24
|
-
const currentText = event.nativeEvent.text;
|
|
25
|
-
props.onChange && props.onChange(event);
|
|
26
|
-
props.onChangeText && props.onChangeText(currentText);
|
|
27
|
-
};
|
|
28
|
-
const text = props.text ?? props.defaultValue ?? '';
|
|
29
|
-
let keyBackground = '#D8D8D8';
|
|
30
|
-
let textKeyColor = '#000000';
|
|
31
|
-
if (customKeyBackground === 'primary') {
|
|
32
|
-
keyBackground = '#EB2F96';
|
|
33
|
-
textKeyColor = '#FFFFFF';
|
|
34
|
-
}
|
|
35
|
-
if (customKeyState === 'disable') {
|
|
36
|
-
keyBackground = '#EBEBF2';
|
|
37
|
-
textKeyColor = '#FFFFFF';
|
|
38
|
-
}
|
|
39
|
-
_react.default.useImperativeHandle(ref, () => ({
|
|
40
|
-
focus() {
|
|
41
|
-
const node = (0, _reactNative.findNodeHandle)(nativeRef.current);
|
|
42
|
-
if (!node) return;
|
|
43
|
-
const config = _reactNative.UIManager.getViewManagerConfig(NAME);
|
|
44
|
-
if (config?.Commands?.focus != null) {
|
|
45
|
-
_reactNative.UIManager.dispatchViewManagerCommand(node, config.Commands.focus, []);
|
|
46
|
-
}
|
|
47
|
-
},
|
|
48
|
-
blur() {
|
|
49
|
-
const node = (0, _reactNative.findNodeHandle)(nativeRef.current);
|
|
50
|
-
if (!node) return;
|
|
51
|
-
const config = _reactNative.UIManager.getViewManagerConfig(NAME);
|
|
52
|
-
if (config?.Commands?.blur != null) {
|
|
53
|
-
_reactNative.UIManager.dispatchViewManagerCommand(node, config.Commands.blur, []);
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
}));
|
|
57
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(NativeInput, {
|
|
58
|
-
...props,
|
|
59
|
-
ref: nativeRef,
|
|
60
|
-
onChange: _onChange,
|
|
61
|
-
onKeyPress: onKeyPress,
|
|
62
|
-
value: text,
|
|
63
|
-
keybardColor: (0, _reactNative.processColor)(keyboardColor),
|
|
64
|
-
customKeyText: customKeyText,
|
|
65
|
-
customKeyBackground: keyBackground,
|
|
66
|
-
customKeyTextColor: textKeyColor,
|
|
67
|
-
customKeyState: customKeyState,
|
|
68
|
-
onCustomKeyEvent: onCustomKeyEvent
|
|
69
|
-
});
|
|
70
|
-
});
|
|
71
|
-
var _default = exports.default = InputCalculator;
|
|
72
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_jsxRuntime","e","__esModule","default","NAME","NativeInput","requireNativeComponent","InputCalculator","React","forwardRef","customKeyBackground","keyboardColor","customKeyText","onKeyPress","customKeyState","onCustomKeyEvent","props","ref","nativeRef","useRef","_onChange","event","currentText","nativeEvent","text","onChange","onChangeText","defaultValue","keyBackground","textKeyColor","useImperativeHandle","focus","node","findNodeHandle","current","config","UIManager","getViewManagerConfig","Commands","dispatchViewManagerCommand","blur","jsx","value","keybardColor","processColor","customKeyTextColor","_default","exports"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AASsB,IAAAE,WAAA,GAAAF,OAAA;AAAA,SA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|
4
|
-
import { findNodeHandle, processColor, requireNativeComponent, UIManager } from 'react-native';
|
|
5
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
|
-
const NAME = 'RCTInputCalculator';
|
|
7
|
-
const NativeInput = requireNativeComponent(NAME);
|
|
8
|
-
const InputCalculator = /*#__PURE__*/React.forwardRef(({
|
|
9
|
-
customKeyBackground = 'default',
|
|
10
|
-
keyboardColor = '',
|
|
11
|
-
customKeyText,
|
|
12
|
-
onKeyPress,
|
|
13
|
-
customKeyState = 'default',
|
|
14
|
-
onCustomKeyEvent,
|
|
15
|
-
...props
|
|
16
|
-
}, ref) => {
|
|
17
|
-
const nativeRef = React.useRef(null);
|
|
18
|
-
const _onChange = event => {
|
|
19
|
-
const currentText = event.nativeEvent.text;
|
|
20
|
-
props.onChange && props.onChange(event);
|
|
21
|
-
props.onChangeText && props.onChangeText(currentText);
|
|
22
|
-
};
|
|
23
|
-
const text = props.text ?? props.defaultValue ?? '';
|
|
24
|
-
let keyBackground = '#D8D8D8';
|
|
25
|
-
let textKeyColor = '#000000';
|
|
26
|
-
if (customKeyBackground === 'primary') {
|
|
27
|
-
keyBackground = '#EB2F96';
|
|
28
|
-
textKeyColor = '#FFFFFF';
|
|
29
|
-
}
|
|
30
|
-
if (customKeyState === 'disable') {
|
|
31
|
-
keyBackground = '#EBEBF2';
|
|
32
|
-
textKeyColor = '#FFFFFF';
|
|
33
|
-
}
|
|
34
|
-
React.useImperativeHandle(ref, () => ({
|
|
35
|
-
focus() {
|
|
36
|
-
const node = findNodeHandle(nativeRef.current);
|
|
37
|
-
if (!node) return;
|
|
38
|
-
const config = UIManager.getViewManagerConfig(NAME);
|
|
39
|
-
if (config?.Commands?.focus != null) {
|
|
40
|
-
UIManager.dispatchViewManagerCommand(node, config.Commands.focus, []);
|
|
41
|
-
}
|
|
42
|
-
},
|
|
43
|
-
blur() {
|
|
44
|
-
const node = findNodeHandle(nativeRef.current);
|
|
45
|
-
if (!node) return;
|
|
46
|
-
const config = UIManager.getViewManagerConfig(NAME);
|
|
47
|
-
if (config?.Commands?.blur != null) {
|
|
48
|
-
UIManager.dispatchViewManagerCommand(node, config.Commands.blur, []);
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
}));
|
|
52
|
-
return /*#__PURE__*/_jsx(NativeInput, {
|
|
53
|
-
...props,
|
|
54
|
-
ref: nativeRef,
|
|
55
|
-
onChange: _onChange,
|
|
56
|
-
onKeyPress: onKeyPress,
|
|
57
|
-
value: text,
|
|
58
|
-
keybardColor: processColor(keyboardColor),
|
|
59
|
-
customKeyText: customKeyText,
|
|
60
|
-
customKeyBackground: keyBackground,
|
|
61
|
-
customKeyTextColor: textKeyColor,
|
|
62
|
-
customKeyState: customKeyState,
|
|
63
|
-
onCustomKeyEvent: onCustomKeyEvent
|
|
64
|
-
});
|
|
65
|
-
});
|
|
66
|
-
export default InputCalculator;
|
|
67
|
-
//# sourceMappingURL=index.js.map
|
package/lib/module/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["React","findNodeHandle","processColor","requireNativeComponent","UIManager","jsx","_jsx","NAME","NativeInput","InputCalculator","forwardRef","customKeyBackground","keyboardColor","customKeyText","onKeyPress","customKeyState","onCustomKeyEvent","props","ref","nativeRef","useRef","_onChange","event","currentText","nativeEvent","text","onChange","onChangeText","defaultValue","keyBackground","textKeyColor","useImperativeHandle","focus","node","current","config","getViewManagerConfig","Commands","dispatchViewManagerCommand","blur","value","keybardColor","customKeyTextColor"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAEEC,cAAc,EAEdC,YAAY,EACZC,sBAAsB,EAGtBC,SAAS,QACJ,cAAc;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAEtB,MAAMC,IAAI,GAAG,oBAAoB;AACjC,MAAMC,WAAW,GAAGL,sBAAsB,CAAMI,IAAI,CAAC;AAmBrD,MAAME,eAAe,gBAAGT,KAA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AE,EAAE,CAAC;MACvE;IACF,CAAC;IACDO,IAAIA,CAAA,EAAG;MACL,MAAMN,IAAI,GAAGhC,cAAc,CAACkB,SAAS,CAACe,OAAO,CAAC;MAC9C,IAAI,CAACD,IAAI,EAAE;MACX,MAAME,MAAM,GAAG/B,SAAS,CAACgC,oBAAoB,CAAC7B,IAAI,CAAC;MACnD,IAAI4B,MAAM,EAAEE,QAAQ,EAAEE,IAAI,IAAI,IAAI,EAAE;QAClCnC,SAAS,CAACkC,0BAA0B,CAACL,IAAI,EAAEE,MAAM,CAACE,QAAQ,CAACE,IAAI,EAAE,EAAE,CAAC;MACtE;IACF;EACF,CAAC,CAAC,CAAC;EAEH,oBACEjC,IAAA,CAACE,WAAW;IAAA,GACNS,KAAK;IACTC,GAAG,EAAEC,SAAU;IACfO,QAAQ,EAAEL,SAAU;IACpBP,UAAU,EAAEA,UAAW;IACvB0B,KAAK,EAAEf,IAAK;IACZgB,YAAY,EAAEvC,YAAY,CAACU,aAAa,CAAE;IAC1CC,aAAa,EAAEA,aAAc;IAC7BF,mBAAmB,EAAEkB,aAAc;IACnCa,kBAAkB,EAAEZ,YAAa;IACjCf,cAAc,EAAEA,cAAe;IAC/BC,gBAAgB,EAAEA;EAAiB,CACpC,CAAC;AAEN,CACF,CAAC;AAED,eAAeP,eAAe","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"type":"commonjs"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { type ColorValue, type TextInputProps } from 'react-native';
|
|
3
|
-
type KeyPressEvent = {
|
|
4
|
-
nativeEvent: {
|
|
5
|
-
key: string;
|
|
6
|
-
};
|
|
7
|
-
};
|
|
8
|
-
interface InputCalculatorProps extends TextInputProps {
|
|
9
|
-
text?: string | undefined;
|
|
10
|
-
keyboardColor?: ColorValue;
|
|
11
|
-
onKeyPress?: (e: KeyPressEvent) => void;
|
|
12
|
-
customKeyText?: string | undefined;
|
|
13
|
-
customKeyBackground?: string | undefined;
|
|
14
|
-
customKeyState?: string | undefined;
|
|
15
|
-
onCustomKeyEvent?: () => void;
|
|
16
|
-
}
|
|
17
|
-
export type InputCalculatorRef = {
|
|
18
|
-
focus: () => void;
|
|
19
|
-
blur: () => void;
|
|
20
|
-
};
|
|
21
|
-
declare const InputCalculator: React.ForwardRefExoticComponent<InputCalculatorProps & React.RefAttributes<InputCalculatorRef>>;
|
|
22
|
-
export default InputCalculator;
|
|
23
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EACL,KAAK,UAAU,EAMf,KAAK,cAAc,EAEpB,MAAM,cAAc,CAAC;AAKtB,KAAK,aAAa,GAAG;IAAE,WAAW,EAAE;QAAE,GAAG,EAAE,MAAM,CAAA;KAAE,CAAA;CAAE,CAAC;AAEtD,UAAU,oBAAqB,SAAQ,cAAc;IACnD,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,aAAa,CAAC,EAAE,UAAU,CAAC;IAC3B,UAAU,CAAC,EAAE,CAAC,CAAC,EAAE,aAAa,KAAK,IAAI,CAAC;IACxC,aAAa,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACnC,mBAAmB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACzC,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACpC,gBAAgB,CAAC,EAAE,MAAM,IAAI,CAAC;CAC/B;AAED,MAAM,MAAM,kBAAkB,GAAG;IAC/B,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,IAAI,EAAE,MAAM,IAAI,CAAC;CAClB,CAAC;AAEF,QAAA,MAAM,eAAe,iGA2EpB,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"type":"module"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { type ColorValue, type TextInputProps } from 'react-native';
|
|
3
|
-
type KeyPressEvent = {
|
|
4
|
-
nativeEvent: {
|
|
5
|
-
key: string;
|
|
6
|
-
};
|
|
7
|
-
};
|
|
8
|
-
interface InputCalculatorProps extends TextInputProps {
|
|
9
|
-
text?: string | undefined;
|
|
10
|
-
keyboardColor?: ColorValue;
|
|
11
|
-
onKeyPress?: (e: KeyPressEvent) => void;
|
|
12
|
-
customKeyText?: string | undefined;
|
|
13
|
-
customKeyBackground?: string | undefined;
|
|
14
|
-
customKeyState?: string | undefined;
|
|
15
|
-
onCustomKeyEvent?: () => void;
|
|
16
|
-
}
|
|
17
|
-
export type InputCalculatorRef = {
|
|
18
|
-
focus: () => void;
|
|
19
|
-
blur: () => void;
|
|
20
|
-
};
|
|
21
|
-
declare const InputCalculator: React.ForwardRefExoticComponent<InputCalculatorProps & React.RefAttributes<InputCalculatorRef>>;
|
|
22
|
-
export default InputCalculator;
|
|
23
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EACL,KAAK,UAAU,EAMf,KAAK,cAAc,EAEpB,MAAM,cAAc,CAAC;AAKtB,KAAK,aAAa,GAAG;IAAE,WAAW,EAAE;QAAE,GAAG,EAAE,MAAM,CAAA;KAAE,CAAA;CAAE,CAAC;AAEtD,UAAU,oBAAqB,SAAQ,cAAc;IACnD,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,aAAa,CAAC,EAAE,UAAU,CAAC;IAC3B,UAAU,CAAC,EAAE,CAAC,CAAC,EAAE,aAAa,KAAK,IAAI,CAAC;IACxC,aAAa,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACnC,mBAAmB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACzC,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACpC,gBAAgB,CAAC,EAAE,MAAM,IAAI,CAAC;CAC/B;AAED,MAAM,MAAM,kBAAkB,GAAG;IAC/B,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,IAAI,EAAE,MAAM,IAAI,CAAC;CAClB,CAAC;AAEF,QAAA,MAAM,eAAe,iGA2EpB,CAAC;AAEF,eAAe,eAAe,CAAC"}
|