@momo-kits/calculator-keyboard 0.150.1-rn80.9 → 0.150.2-beta-sp.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/android/src/main/java/com/calculatorkeyboard/CustomKeyboardView.kt +99 -40
- package/android/src/main/java/com/calculatorkeyboard/KeyboardOverplayHost.kt +232 -0
- package/android/src/main/java/com/calculatorkeyboard/RCTInputCalculator.kt +121 -90
- package/ios/CalculatorKeyboardView.swift +53 -15
- package/ios/InputCalculator.m +9 -0
- package/ios/InputCalculator.swift +73 -18
- package/package.json +7 -131
- package/src/index.tsx +60 -15
- package/lib/commonjs/index.js +0 -48
- package/lib/commonjs/index.js.map +0 -1
- package/lib/module/index.js +0 -44
- 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 -13
- 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 -13
- package/lib/typescript/module/src/index.d.ts.map +0 -1
package/package.json
CHANGED
|
@@ -1,22 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@momo-kits/calculator-keyboard",
|
|
3
|
-
"version": "0.150.
|
|
3
|
+
"version": "0.150.2-beta-sp.1",
|
|
4
4
|
"description": "react native calculator keyboard",
|
|
5
|
-
"
|
|
6
|
-
"main": "./lib/commonjs/index.js",
|
|
7
|
-
"module": "./lib/module/index.js",
|
|
8
|
-
"exports": {
|
|
9
|
-
".": {
|
|
10
|
-
"import": {
|
|
11
|
-
"types": "./lib/typescript/module/src/index.d.ts",
|
|
12
|
-
"default": "./lib/module/index.js"
|
|
13
|
-
},
|
|
14
|
-
"require": {
|
|
15
|
-
"types": "./lib/typescript/commonjs/src/index.d.ts",
|
|
16
|
-
"default": "./lib/commonjs/index.js"
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
},
|
|
5
|
+
"main": "./src/index.tsx",
|
|
20
6
|
"files": [
|
|
21
7
|
"src",
|
|
22
8
|
"lib",
|
|
@@ -41,7 +27,7 @@
|
|
|
41
27
|
"typecheck": "tsc",
|
|
42
28
|
"lint": "eslint \"**/*.{js,ts,tsx}\"",
|
|
43
29
|
"clean": "del-cli android/build example/android/build example/android/app/build example/ios/build lib",
|
|
44
|
-
"build": "
|
|
30
|
+
"build": "echo",
|
|
45
31
|
"release": "release-it"
|
|
46
32
|
},
|
|
47
33
|
"keywords": [
|
|
@@ -63,123 +49,13 @@
|
|
|
63
49
|
"registry": "https://registry.npmjs.org/"
|
|
64
50
|
},
|
|
65
51
|
"devDependencies": {
|
|
66
|
-
"@commitlint/config-conventional": "^17.0.2",
|
|
67
|
-
"@evilmartians/lefthook": "^1.5.0",
|
|
68
|
-
"@react-native-community/cli": "15.0.1",
|
|
69
|
-
"@react-native/eslint-config": "^0.73.1",
|
|
70
|
-
"@release-it/conventional-changelog": "^9.0.2",
|
|
71
|
-
"@types/jest": "^29.5.5",
|
|
72
|
-
"@types/react": "^18.2.44",
|
|
73
|
-
"commitlint": "^17.0.2",
|
|
74
|
-
"del-cli": "^5.1.0",
|
|
75
|
-
"eslint": "^8.51.0",
|
|
76
|
-
"eslint-config-prettier": "^9.0.0",
|
|
77
|
-
"eslint-plugin-prettier": "^5.0.1",
|
|
78
|
-
"jest": "^29.7.0",
|
|
79
|
-
"prettier": "^3.0.3",
|
|
80
|
-
"react": "18.3.1",
|
|
81
|
-
"react-native": "0.76.5",
|
|
82
|
-
"react-native-builder-bob": "^0.32.0",
|
|
83
|
-
"release-it": "^17.10.0",
|
|
84
|
-
"turbo": "^1.10.7",
|
|
85
|
-
"typescript": "^5.2.2"
|
|
86
|
-
},
|
|
87
|
-
"resolutions": {
|
|
88
|
-
"@types/react": "^18.2.44"
|
|
89
|
-
},
|
|
90
|
-
"peerDependencies": {
|
|
91
52
|
"react": "*",
|
|
92
53
|
"react-native": "*"
|
|
93
54
|
},
|
|
94
|
-
"
|
|
95
|
-
"
|
|
96
|
-
"
|
|
97
|
-
|
|
98
|
-
"<rootDir>/lib/"
|
|
99
|
-
]
|
|
100
|
-
},
|
|
101
|
-
"commitlint": {
|
|
102
|
-
"extends": [
|
|
103
|
-
"@commitlint/config-conventional"
|
|
104
|
-
]
|
|
105
|
-
},
|
|
106
|
-
"release-it": {
|
|
107
|
-
"git": {
|
|
108
|
-
"commitMessage": "chore: release ${version}",
|
|
109
|
-
"tagName": "v${version}"
|
|
110
|
-
},
|
|
111
|
-
"npm": {
|
|
112
|
-
"publish": true
|
|
113
|
-
},
|
|
114
|
-
"github": {
|
|
115
|
-
"release": true
|
|
116
|
-
},
|
|
117
|
-
"plugins": {
|
|
118
|
-
"@release-it/conventional-changelog": {
|
|
119
|
-
"preset": "angular"
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
},
|
|
123
|
-
"eslintConfig": {
|
|
124
|
-
"root": true,
|
|
125
|
-
"extends": [
|
|
126
|
-
"@react-native",
|
|
127
|
-
"prettier"
|
|
128
|
-
],
|
|
129
|
-
"rules": {
|
|
130
|
-
"react/react-in-jsx-scope": "off",
|
|
131
|
-
"prettier/prettier": [
|
|
132
|
-
"error",
|
|
133
|
-
{
|
|
134
|
-
"quoteProps": "consistent",
|
|
135
|
-
"singleQuote": true,
|
|
136
|
-
"tabWidth": 2,
|
|
137
|
-
"trailingComma": "es5",
|
|
138
|
-
"useTabs": false
|
|
139
|
-
}
|
|
140
|
-
]
|
|
141
|
-
}
|
|
142
|
-
},
|
|
143
|
-
"eslintIgnore": [
|
|
144
|
-
"node_modules/",
|
|
145
|
-
"lib/"
|
|
146
|
-
],
|
|
147
|
-
"prettier": {
|
|
148
|
-
"quoteProps": "consistent",
|
|
149
|
-
"singleQuote": true,
|
|
150
|
-
"tabWidth": 2,
|
|
151
|
-
"trailingComma": "es5",
|
|
152
|
-
"useTabs": false
|
|
153
|
-
},
|
|
154
|
-
"react-native-builder-bob": {
|
|
155
|
-
"source": "src",
|
|
156
|
-
"output": "lib",
|
|
157
|
-
"targets": [
|
|
158
|
-
[
|
|
159
|
-
"commonjs",
|
|
160
|
-
{
|
|
161
|
-
"esm": true
|
|
162
|
-
}
|
|
163
|
-
],
|
|
164
|
-
[
|
|
165
|
-
"module",
|
|
166
|
-
{
|
|
167
|
-
"esm": true
|
|
168
|
-
}
|
|
169
|
-
],
|
|
170
|
-
[
|
|
171
|
-
"typescript",
|
|
172
|
-
{
|
|
173
|
-
"project": "tsconfig.build.json",
|
|
174
|
-
"esm": true
|
|
175
|
-
}
|
|
176
|
-
]
|
|
177
|
-
]
|
|
178
|
-
},
|
|
179
|
-
"create-react-native-library": {
|
|
180
|
-
"type": "legacy-view",
|
|
181
|
-
"languages": "kotlin-swift",
|
|
182
|
-
"version": "0.45.5"
|
|
55
|
+
"peerDependencies": {
|
|
56
|
+
"react": "*",
|
|
57
|
+
"react-native": "*",
|
|
58
|
+
"@momo-kits/foundation": "latest"
|
|
183
59
|
},
|
|
184
60
|
"dependencies": {}
|
|
185
61
|
}
|
package/src/index.tsx
CHANGED
|
@@ -1,21 +1,35 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import React, { useContext } from 'react';
|
|
2
|
+
import { ApplicationContext, Colors } from '@momo-kits/foundation';
|
|
2
3
|
import {
|
|
3
|
-
type NativeSyntheticEvent,
|
|
4
|
-
type TextInputChangeEventData,
|
|
5
|
-
type TextInputProps,
|
|
6
4
|
type ColorValue,
|
|
5
|
+
findNodeHandle,
|
|
6
|
+
type NativeSyntheticEvent,
|
|
7
7
|
processColor,
|
|
8
|
+
requireNativeComponent,
|
|
9
|
+
type TextInputProps,
|
|
8
10
|
UIManager,
|
|
9
|
-
findNodeHandle,
|
|
10
11
|
} from 'react-native';
|
|
11
|
-
import { requireNativeComponent } from 'react-native';
|
|
12
12
|
|
|
13
13
|
const NAME = 'RCTInputCalculator';
|
|
14
14
|
const NativeInput = requireNativeComponent<any>(NAME);
|
|
15
15
|
|
|
16
|
+
type KeyPressEvent = { nativeEvent: { key: string } };
|
|
17
|
+
|
|
16
18
|
interface InputCalculatorProps extends TextInputProps {
|
|
17
19
|
text?: string | undefined;
|
|
18
20
|
keyboardColor?: ColorValue;
|
|
21
|
+
onKeyPress?: (e: KeyPressEvent) => void;
|
|
22
|
+
customKeyText?: string | undefined;
|
|
23
|
+
customKeyBackground?: CustomKeyBackground;
|
|
24
|
+
customKeyState?: CustomKeyState;
|
|
25
|
+
onCustomKeyEvent?: () => void;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export type CustomKeyBackground = 'primary' | 'default' | string;
|
|
29
|
+
|
|
30
|
+
export enum CustomKeyState {
|
|
31
|
+
Default = 'default',
|
|
32
|
+
Disable = 'disable',
|
|
19
33
|
}
|
|
20
34
|
|
|
21
35
|
export type InputCalculatorRef = {
|
|
@@ -23,19 +37,44 @@ export type InputCalculatorRef = {
|
|
|
23
37
|
blur: () => void;
|
|
24
38
|
};
|
|
25
39
|
|
|
26
|
-
const InputCalculator = React.forwardRef<
|
|
27
|
-
|
|
40
|
+
const InputCalculator = React.forwardRef<
|
|
41
|
+
InputCalculatorRef,
|
|
42
|
+
InputCalculatorProps
|
|
43
|
+
>(
|
|
44
|
+
(
|
|
45
|
+
{
|
|
46
|
+
customKeyBackground = 'default',
|
|
47
|
+
keyboardColor = '',
|
|
48
|
+
customKeyText,
|
|
49
|
+
onKeyPress,
|
|
50
|
+
customKeyState = CustomKeyState.Default,
|
|
51
|
+
onCustomKeyEvent,
|
|
52
|
+
...props
|
|
53
|
+
},
|
|
54
|
+
ref,
|
|
55
|
+
) => {
|
|
56
|
+
const { theme } = useContext(ApplicationContext);
|
|
28
57
|
const nativeRef = React.useRef<any>(null);
|
|
29
58
|
|
|
30
|
-
const _onChange = (
|
|
31
|
-
event: NativeSyntheticEvent<TextInputChangeEventData>
|
|
32
|
-
) => {
|
|
59
|
+
const _onChange = (event: NativeSyntheticEvent<any>) => {
|
|
33
60
|
const currentText = event.nativeEvent.text;
|
|
34
|
-
props.onChange
|
|
35
|
-
props.onChangeText
|
|
61
|
+
props.onChange?.(event);
|
|
62
|
+
props.onChangeText?.(currentText);
|
|
36
63
|
};
|
|
37
64
|
|
|
38
65
|
const text = props.text ?? props.defaultValue ?? '';
|
|
66
|
+
let keyBackground = Colors.black_06;
|
|
67
|
+
let textKeyColor = Colors.black_20;
|
|
68
|
+
|
|
69
|
+
if (customKeyBackground === 'primary') {
|
|
70
|
+
keyBackground = theme.colors.primary;
|
|
71
|
+
textKeyColor = Colors.black_01;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
if (customKeyState === CustomKeyState.Disable) {
|
|
75
|
+
keyBackground = theme.colors.background.disable;
|
|
76
|
+
textKeyColor = Colors.black_01;
|
|
77
|
+
}
|
|
39
78
|
|
|
40
79
|
React.useImperativeHandle(ref, () => ({
|
|
41
80
|
focus() {
|
|
@@ -61,11 +100,17 @@ const InputCalculator = React.forwardRef<InputCalculatorRef, InputCalculatorProp
|
|
|
61
100
|
{...props}
|
|
62
101
|
ref={nativeRef}
|
|
63
102
|
onChange={_onChange}
|
|
103
|
+
onKeyPress={onKeyPress}
|
|
64
104
|
value={text}
|
|
65
|
-
keybardColor={processColor(
|
|
105
|
+
keybardColor={processColor(keyboardColor)}
|
|
106
|
+
customKeyText={customKeyText}
|
|
107
|
+
customKeyBackground={keyBackground}
|
|
108
|
+
customKeyTextColor={textKeyColor}
|
|
109
|
+
customKeyState={customKeyState}
|
|
110
|
+
onCustomKeyEvent={onCustomKeyEvent}
|
|
66
111
|
/>
|
|
67
112
|
);
|
|
68
|
-
}
|
|
113
|
+
},
|
|
69
114
|
);
|
|
70
115
|
|
|
71
116
|
export default InputCalculator;
|
package/lib/commonjs/index.js
DELETED
|
@@ -1,48 +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((props, ref) => {
|
|
14
|
-
const nativeRef = _react.default.useRef(null);
|
|
15
|
-
const _onChange = event => {
|
|
16
|
-
const currentText = event.nativeEvent.text;
|
|
17
|
-
props.onChange && props.onChange(event);
|
|
18
|
-
props.onChangeText && props.onChangeText(currentText);
|
|
19
|
-
};
|
|
20
|
-
const text = props.text ?? props.defaultValue ?? '';
|
|
21
|
-
_react.default.useImperativeHandle(ref, () => ({
|
|
22
|
-
focus() {
|
|
23
|
-
const node = (0, _reactNative.findNodeHandle)(nativeRef.current);
|
|
24
|
-
if (!node) return;
|
|
25
|
-
const config = _reactNative.UIManager.getViewManagerConfig(NAME);
|
|
26
|
-
if (config?.Commands?.focus != null) {
|
|
27
|
-
_reactNative.UIManager.dispatchViewManagerCommand(node, config.Commands.focus, []);
|
|
28
|
-
}
|
|
29
|
-
},
|
|
30
|
-
blur() {
|
|
31
|
-
const node = (0, _reactNative.findNodeHandle)(nativeRef.current);
|
|
32
|
-
if (!node) return;
|
|
33
|
-
const config = _reactNative.UIManager.getViewManagerConfig(NAME);
|
|
34
|
-
if (config?.Commands?.blur != null) {
|
|
35
|
-
_reactNative.UIManager.dispatchViewManagerCommand(node, config.Commands.blur, []);
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
}));
|
|
39
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(NativeInput, {
|
|
40
|
-
...props,
|
|
41
|
-
ref: nativeRef,
|
|
42
|
-
onChange: _onChange,
|
|
43
|
-
value: text,
|
|
44
|
-
keybardColor: (0, _reactNative.processColor)(props.keyboardColor)
|
|
45
|
-
});
|
|
46
|
-
});
|
|
47
|
-
var _default = exports.default = InputCalculator;
|
|
48
|
-
//# 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","props","ref","nativeRef","useRef","_onChange","event","currentText","nativeEvent","text","onChange","onChangeText","defaultValue","useImperativeHandle","focus","node","findNodeHandle","current","config","UIManager","getViewManagerConfig","Commands","dispatchViewManagerCommand","blur","jsx","value","keybardColor","processColor","keyboardColor","_default","exports"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAQsB,IAAAE,WAAA,GAAAF,OAAA;AAAA,SAAAD,uBAAAI,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAGtB,MAAMG,IAAI,GAAG,oBAAoB;AACjC,MAAMC,WAAW,GAAG,IAAAC,mCAAsB,EAAMF,IAAI,CAAC;AAYrD,MAAMG,eAAe,gBAAGC,cAAK,CAACC,UAAU,CACtC,CAACC,KAAK,EAAEC,GAAG,KAAK;EACd,MAAMC,SAAS,GAAGJ,cAAK,CAACK,MAAM,CAAM,IAAI,CAAC;EAEzC,MAAMC,SAAS,GACbC,KAAqD,IAClD;IACH,MAAMC,WAAW,GAAGD,KAAK,CAACE,WAAW,CAACC,IAAI;IAC1CR,KAAK,CAACS,QAAQ,IAAIT,KAAK,CAACS,QAAQ,CAACJ,KAAK,CAAC;IACvCL,KAAK,CAACU,YAAY,IAAIV,KAAK,CAACU,YAAY,CAACJ,WAAW,CAAC;EACvD,CAAC;EAED,MAAME,IAAI,GAAGR,KAAK,CAACQ,IAAI,IAAIR,KAAK,CAACW,YAAY,IAAI,EAAE;EAEnDb,cAAK,CAACc,mBAAmB,CAACX,GAAG,EAAE,OAAO;IACpCY,KAAKA,CAAA,EAAG;MACN,MAAMC,IAAI,GAAG,IAAAC,2BAAc,EAACb,SAAS,CAACc,OAAO,CAAC;MAC9C,IAAI,CAACF,IAAI,EAAE;MACX,MAAMG,MAAM,GAAGC,sBAAS,CAACC,oBAAoB,CAACzB,IAAI,CAAC;MACnD,IAAIuB,MAAM,EAAEG,QAAQ,EAAEP,KAAK,IAAI,IAAI,EAAE;QACnCK,sBAAS,CAACG,0BAA0B,CAACP,IAAI,EAAEG,MAAM,CAACG,QAAQ,CAACP,KAAK,EAAE,EAAE,CAAC;MACvE;IACF,CAAC;IACDS,IAAIA,CAAA,EAAG;MACL,MAAMR,IAAI,GAAG,IAAAC,2BAAc,EAACb,SAAS,CAACc,OAAO,CAAC;MAC9C,IAAI,CAACF,IAAI,EAAE;MACX,MAAMG,MAAM,GAAGC,sBAAS,CAACC,oBAAoB,CAACzB,IAAI,CAAC;MACnD,IAAIuB,MAAM,EAAEG,QAAQ,EAAEE,IAAI,IAAI,IAAI,EAAE;QAClCJ,sBAAS,CAACG,0BAA0B,CAACP,IAAI,EAAEG,MAAM,CAACG,QAAQ,CAACE,IAAI,EAAE,EAAE,CAAC;MACtE;IACF;EACF,CAAC,CAAC,CAAC;EAEH,oBACE,IAAAhC,WAAA,CAAAiC,GAAA,EAAC5B,WAAW;IAAA,GACNK,KAAK;IACTC,GAAG,EAAEC,SAAU;IACfO,QAAQ,EAAEL,SAAU;IACpBoB,KAAK,EAAEhB,IAAK;IACZiB,YAAY,EAAE,IAAAC,yBAAY,EAAC1B,KAAK,CAAC2B,aAAa;EAAE,CACjD,CAAC;AAEN,CACF,CAAC;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAApC,OAAA,GAEaI,eAAe","ignoreList":[]}
|
package/lib/module/index.js
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import React from 'react';
|
|
4
|
-
import { processColor, UIManager, findNodeHandle } from 'react-native';
|
|
5
|
-
import { requireNativeComponent } from 'react-native';
|
|
6
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
|
-
const NAME = 'RCTInputCalculator';
|
|
8
|
-
const NativeInput = requireNativeComponent(NAME);
|
|
9
|
-
const InputCalculator = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
10
|
-
const nativeRef = React.useRef(null);
|
|
11
|
-
const _onChange = event => {
|
|
12
|
-
const currentText = event.nativeEvent.text;
|
|
13
|
-
props.onChange && props.onChange(event);
|
|
14
|
-
props.onChangeText && props.onChangeText(currentText);
|
|
15
|
-
};
|
|
16
|
-
const text = props.text ?? props.defaultValue ?? '';
|
|
17
|
-
React.useImperativeHandle(ref, () => ({
|
|
18
|
-
focus() {
|
|
19
|
-
const node = findNodeHandle(nativeRef.current);
|
|
20
|
-
if (!node) return;
|
|
21
|
-
const config = UIManager.getViewManagerConfig(NAME);
|
|
22
|
-
if (config?.Commands?.focus != null) {
|
|
23
|
-
UIManager.dispatchViewManagerCommand(node, config.Commands.focus, []);
|
|
24
|
-
}
|
|
25
|
-
},
|
|
26
|
-
blur() {
|
|
27
|
-
const node = findNodeHandle(nativeRef.current);
|
|
28
|
-
if (!node) return;
|
|
29
|
-
const config = UIManager.getViewManagerConfig(NAME);
|
|
30
|
-
if (config?.Commands?.blur != null) {
|
|
31
|
-
UIManager.dispatchViewManagerCommand(node, config.Commands.blur, []);
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
}));
|
|
35
|
-
return /*#__PURE__*/_jsx(NativeInput, {
|
|
36
|
-
...props,
|
|
37
|
-
ref: nativeRef,
|
|
38
|
-
onChange: _onChange,
|
|
39
|
-
value: text,
|
|
40
|
-
keybardColor: processColor(props.keyboardColor)
|
|
41
|
-
});
|
|
42
|
-
});
|
|
43
|
-
export default InputCalculator;
|
|
44
|
-
//# sourceMappingURL=index.js.map
|
package/lib/module/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["React","processColor","UIManager","findNodeHandle","requireNativeComponent","jsx","_jsx","NAME","NativeInput","InputCalculator","forwardRef","props","ref","nativeRef","useRef","_onChange","event","currentText","nativeEvent","text","onChange","onChangeText","defaultValue","useImperativeHandle","focus","node","current","config","getViewManagerConfig","Commands","dispatchViewManagerCommand","blur","value","keybardColor","keyboardColor"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAKEC,YAAY,EACZC,SAAS,EACTC,cAAc,QACT,cAAc;AACrB,SAASC,sBAAsB,QAAQ,cAAc;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAEtD,MAAMC,IAAI,GAAG,oBAAoB;AACjC,MAAMC,WAAW,GAAGJ,sBAAsB,CAAMG,IAAI,CAAC;AAYrD,MAAME,eAAe,gBAAGT,KAAK,CAACU,UAAU,CACtC,CAACC,KAAK,EAAEC,GAAG,KAAK;EACd,MAAMC,SAAS,GAAGb,KAAK,CAACc,MAAM,CAAM,IAAI,CAAC;EAEzC,MAAMC,SAAS,GACbC,KAAqD,IAClD;IACH,MAAMC,WAAW,GAAGD,KAAK,CAACE,WAAW,CAACC,IAAI;IAC1CR,KAAK,CAACS,QAAQ,IAAIT,KAAK,CAACS,QAAQ,CAACJ,KAAK,CAAC;IACvCL,KAAK,CAACU,YAAY,IAAIV,KAAK,CAACU,YAAY,CAACJ,WAAW,CAAC;EACvD,CAAC;EAED,MAAME,IAAI,GAAGR,KAAK,CAACQ,IAAI,IAAIR,KAAK,CAACW,YAAY,IAAI,EAAE;EAEnDtB,KAAK,CAACuB,mBAAmB,CAACX,GAAG,EAAE,OAAO;IACpCY,KAAKA,CAAA,EAAG;MACN,MAAMC,IAAI,GAAGtB,cAAc,CAACU,SAAS,CAACa,OAAO,CAAC;MAC9C,IAAI,CAACD,IAAI,EAAE;MACX,MAAME,MAAM,GAAGzB,SAAS,CAAC0B,oBAAoB,CAACrB,IAAI,CAAC;MACnD,IAAIoB,MAAM,EAAEE,QAAQ,EAAEL,KAAK,IAAI,IAAI,EAAE;QACnCtB,SAAS,CAAC4B,0BAA0B,CAACL,IAAI,EAAEE,MAAM,CAACE,QAAQ,CAACL,KAAK,EAAE,EAAE,CAAC;MACvE;IACF,CAAC;IACDO,IAAIA,CAAA,EAAG;MACL,MAAMN,IAAI,GAAGtB,cAAc,CAACU,SAAS,CAACa,OAAO,CAAC;MAC9C,IAAI,CAACD,IAAI,EAAE;MACX,MAAME,MAAM,GAAGzB,SAAS,CAAC0B,oBAAoB,CAACrB,IAAI,CAAC;MACnD,IAAIoB,MAAM,EAAEE,QAAQ,EAAEE,IAAI,IAAI,IAAI,EAAE;QAClC7B,SAAS,CAAC4B,0BAA0B,CAACL,IAAI,EAAEE,MAAM,CAACE,QAAQ,CAACE,IAAI,EAAE,EAAE,CAAC;MACtE;IACF;EACF,CAAC,CAAC,CAAC;EAEH,oBACEzB,IAAA,CAACE,WAAW;IAAA,GACNG,KAAK;IACTC,GAAG,EAAEC,SAAU;IACfO,QAAQ,EAAEL,SAAU;IACpBiB,KAAK,EAAEb,IAAK;IACZc,YAAY,EAAEhC,YAAY,CAACU,KAAK,CAACuB,aAAa;EAAE,CACjD,CAAC;AAEN,CACF,CAAC;AAED,eAAezB,eAAe","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"type":"commonjs"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { type TextInputProps, type ColorValue } from 'react-native';
|
|
3
|
-
interface InputCalculatorProps extends TextInputProps {
|
|
4
|
-
text?: string | undefined;
|
|
5
|
-
keyboardColor?: ColorValue;
|
|
6
|
-
}
|
|
7
|
-
export type InputCalculatorRef = {
|
|
8
|
-
focus: () => void;
|
|
9
|
-
blur: () => void;
|
|
10
|
-
};
|
|
11
|
-
declare const InputCalculator: React.ForwardRefExoticComponent<InputCalculatorProps & React.RefAttributes<InputCalculatorRef>>;
|
|
12
|
-
export default InputCalculator;
|
|
13
|
-
//# 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,EAGL,KAAK,cAAc,EACnB,KAAK,UAAU,EAIhB,MAAM,cAAc,CAAC;AAMtB,UAAU,oBAAqB,SAAQ,cAAc;IACnD,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,aAAa,CAAC,EAAE,UAAU,CAAC;CAC5B;AAED,MAAM,MAAM,kBAAkB,GAAG;IAC/B,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,IAAI,EAAE,MAAM,IAAI,CAAC;CAClB,CAAC;AAEF,QAAA,MAAM,eAAe,iGA2CpB,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"type":"module"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { type TextInputProps, type ColorValue } from 'react-native';
|
|
3
|
-
interface InputCalculatorProps extends TextInputProps {
|
|
4
|
-
text?: string | undefined;
|
|
5
|
-
keyboardColor?: ColorValue;
|
|
6
|
-
}
|
|
7
|
-
export type InputCalculatorRef = {
|
|
8
|
-
focus: () => void;
|
|
9
|
-
blur: () => void;
|
|
10
|
-
};
|
|
11
|
-
declare const InputCalculator: React.ForwardRefExoticComponent<InputCalculatorProps & React.RefAttributes<InputCalculatorRef>>;
|
|
12
|
-
export default InputCalculator;
|
|
13
|
-
//# 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,EAGL,KAAK,cAAc,EACnB,KAAK,UAAU,EAIhB,MAAM,cAAc,CAAC;AAMtB,UAAU,oBAAqB,SAAQ,cAAc;IACnD,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,aAAa,CAAC,EAAE,UAAU,CAAC;CAC5B;AAED,MAAM,MAAM,kBAAkB,GAAG;IAC/B,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,IAAI,EAAE,MAAM,IAAI,CAAC;CAClB,CAAC;AAEF,QAAA,MAAM,eAAe,iGA2CpB,CAAC;AAEF,eAAe,eAAe,CAAC"}
|