@hero-design/rn 8.64.5 → 8.64.6-alpha.0
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/es/index.js +1 -1
- package/lib/index.js +1 -1
- package/package.json +3 -2
- package/src/components/PinInput/index.tsx +2 -3
- package/.turbo/turbo-build.log +0 -5
package/es/index.js
CHANGED
|
@@ -15609,7 +15609,7 @@ var PinInput = /*#__PURE__*/forwardRef(function (_ref2, ref) {
|
|
|
15609
15609
|
disabled: disabled,
|
|
15610
15610
|
error: error
|
|
15611
15611
|
});
|
|
15612
|
-
var maskedValueWithExtraSpace =
|
|
15612
|
+
var maskedValueWithExtraSpace = !value ? '*' : value;
|
|
15613
15613
|
var focus = useCallback(function () {
|
|
15614
15614
|
if (inputRef !== null && inputRef !== void 0 && inputRef.current) {
|
|
15615
15615
|
inputRef.current.focus();
|
package/lib/index.js
CHANGED
|
@@ -15639,7 +15639,7 @@ var PinInput = /*#__PURE__*/React.forwardRef(function (_ref2, ref) {
|
|
|
15639
15639
|
disabled: disabled,
|
|
15640
15640
|
error: error
|
|
15641
15641
|
});
|
|
15642
|
-
var maskedValueWithExtraSpace =
|
|
15642
|
+
var maskedValueWithExtraSpace = !value ? '*' : value;
|
|
15643
15643
|
var focus = React.useCallback(function () {
|
|
15644
15644
|
if (inputRef !== null && inputRef !== void 0 && inputRef.current) {
|
|
15645
15645
|
inputRef.current.focus();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hero-design/rn",
|
|
3
|
-
"version": "8.64.
|
|
3
|
+
"version": "8.64.6-alpha.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -93,5 +93,6 @@
|
|
|
93
93
|
"ts-jest": "^29.1.1",
|
|
94
94
|
"typescript": "4.8.4"
|
|
95
95
|
},
|
|
96
|
-
"prettier": "prettier-config-hd"
|
|
96
|
+
"prettier": "prettier-config-hd",
|
|
97
|
+
"react-native": "src/index.ts"
|
|
97
98
|
}
|
|
@@ -7,7 +7,7 @@ import React, {
|
|
|
7
7
|
useRef,
|
|
8
8
|
useState,
|
|
9
9
|
} from 'react';
|
|
10
|
-
import { InteractionManager,
|
|
10
|
+
import { InteractionManager, TextInput } from 'react-native';
|
|
11
11
|
import type { StyleProp, ViewStyle } from 'react-native';
|
|
12
12
|
import Icon from '../Icon';
|
|
13
13
|
import PinCell from './PinCell';
|
|
@@ -121,8 +121,7 @@ const PinInput = forwardRef<PinInputHandler, PinInputProps>(
|
|
|
121
121
|
const inputRef = useRef<TextInput>(null);
|
|
122
122
|
const [focused, setFocused] = useState(autoFocus);
|
|
123
123
|
const state = getState({ disabled, error });
|
|
124
|
-
const maskedValueWithExtraSpace =
|
|
125
|
-
Platform.OS === 'android' && !value ? '*' : value;
|
|
124
|
+
const maskedValueWithExtraSpace = !value ? '*' : value;
|
|
126
125
|
|
|
127
126
|
const focus = useCallback(() => {
|
|
128
127
|
if (inputRef?.current) {
|
package/.turbo/turbo-build.log
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
[36m
|
|
2
|
-
[1msrc/index.ts[22m → [1mlib/index.js, es/index.js[22m...[39m
|
|
3
|
-
[1m[33m(!) Plugin replace: @rollup/plugin-replace: 'preventAssignment' currently defaults to false. It is recommended to set this option to `true`, as the next major version will default this option to `true`.[39m[22m
|
|
4
|
-
[1m[33m(!) Plugin node-resolve: preferring built-in module 'events' over local alternative at '/home/runner/work/hero-design/hero-design/node_modules/events/events.js', pass 'preferBuiltins: false' to disable this behavior or 'preferBuiltins: true' to disable this warning[39m[22m
|
|
5
|
-
[32mcreated [1mlib/index.js, es/index.js[22m in [1m1m 2.8s[22m[39m
|