@hero-design/rn 8.81.1 → 8.81.2
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/.turbo/turbo-build.log +2 -2
- package/CHANGELOG.md +6 -0
- package/es/index.js +4 -1
- package/lib/index.js +4 -1
- package/package.json +3 -4
- package/src/components/TimePicker/TimePickerIOS.tsx +5 -1
- package/stats/8.81.2/rn-stats.html +4842 -0
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
(node:
|
|
1
|
+
(node:2808) ExperimentalWarning: Importing JSON modules is an experimental feature and might change at any time
|
|
2
2
|
(Use `node --trace-warnings ...` to show where the warning was created)
|
|
3
3
|
[36m
|
|
4
4
|
[1msrc/index.ts[22m → [1mlib/index.js, es/index.js[22m...[39m
|
|
5
5
|
[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
|
|
6
6
|
[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.or passing a function to 'preferBuiltins' to provide more fine-grained control over which built-in modules to prefer.[39m[22m
|
|
7
|
-
[32mcreated [1mlib/index.js, es/index.js[22m in [
|
|
7
|
+
[32mcreated [1mlib/index.js, es/index.js[22m in [1m52.7s[22m[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @hero-design/rn
|
|
2
2
|
|
|
3
|
+
## 8.81.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#3527](https://github.com/Thinkei/hero-design/pull/3527) [`228f8de96b09802ce890eeb6277a12a774af99ad`](https://github.com/Thinkei/hero-design/commit/228f8de96b09802ce890eeb6277a12a774af99ad) Thanks [@vinhphan-eh](https://github.com/vinhphan-eh)! - [TimePicker] Fix bottom sheet value not in sync
|
|
8
|
+
|
|
3
9
|
## 8.81.1
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
package/es/index.js
CHANGED
|
@@ -14462,7 +14462,7 @@ var customAlphabet = function customAlphabet(alphabet) {
|
|
|
14462
14462
|
return function () {
|
|
14463
14463
|
var size = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : defaultSize;
|
|
14464
14464
|
var id = '';
|
|
14465
|
-
var i = size;
|
|
14465
|
+
var i = size | 0;
|
|
14466
14466
|
while (i--) {
|
|
14467
14467
|
id += alphabet[Math.random() * alphabet.length | 0];
|
|
14468
14468
|
}
|
|
@@ -19117,6 +19117,9 @@ var TimePickerIOS = function TimePickerIOS(_ref) {
|
|
|
19117
19117
|
var is12Hour = displayFormat.includes('hh');
|
|
19118
19118
|
var displayValue = value ? format(displayFormat, value) : '';
|
|
19119
19119
|
var theme = useTheme();
|
|
19120
|
+
useEffect(function () {
|
|
19121
|
+
setSelectingDate(value || new Date());
|
|
19122
|
+
}, [value]);
|
|
19120
19123
|
return /*#__PURE__*/React__default.createElement(TouchableOpacity, {
|
|
19121
19124
|
onPress: function onPress() {
|
|
19122
19125
|
return setOpen(true);
|
package/lib/index.js
CHANGED
|
@@ -14489,7 +14489,7 @@ var customAlphabet = function customAlphabet(alphabet) {
|
|
|
14489
14489
|
return function () {
|
|
14490
14490
|
var size = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : defaultSize;
|
|
14491
14491
|
var id = '';
|
|
14492
|
-
var i = size;
|
|
14492
|
+
var i = size | 0;
|
|
14493
14493
|
while (i--) {
|
|
14494
14494
|
id += alphabet[Math.random() * alphabet.length | 0];
|
|
14495
14495
|
}
|
|
@@ -19144,6 +19144,9 @@ var TimePickerIOS = function TimePickerIOS(_ref) {
|
|
|
19144
19144
|
var is12Hour = displayFormat.includes('hh');
|
|
19145
19145
|
var displayValue = value ? format(displayFormat, value) : '';
|
|
19146
19146
|
var theme = useTheme();
|
|
19147
|
+
React.useEffect(function () {
|
|
19148
|
+
setSelectingDate(value || new Date());
|
|
19149
|
+
}, [value]);
|
|
19147
19150
|
return /*#__PURE__*/React__namespace.default.createElement(reactNative.TouchableOpacity, {
|
|
19148
19151
|
onPress: function onPress() {
|
|
19149
19152
|
return setOpen(true);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hero-design/rn",
|
|
3
|
-
"version": "8.81.
|
|
3
|
+
"version": "8.81.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"@hero-design/colors": "8.45.1",
|
|
26
26
|
"date-fns": "^2.16.1",
|
|
27
27
|
"hero-editor": "^1.9.21",
|
|
28
|
-
"nanoid": "^
|
|
28
|
+
"nanoid": "^5.0.9"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
31
31
|
"@hero-design/react-native-month-year-picker": "^8.42.10",
|
|
@@ -93,6 +93,5 @@
|
|
|
93
93
|
"ts-jest": "^29.1.1",
|
|
94
94
|
"typescript": "4.8.4"
|
|
95
95
|
},
|
|
96
|
-
"prettier": "prettier-config-hd"
|
|
97
|
-
"react-native": "src/index.ts"
|
|
96
|
+
"prettier": "prettier-config-hd"
|
|
98
97
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import DateTimePicker from '@react-native-community/datetimepicker';
|
|
2
|
-
import React, { useState } from 'react';
|
|
2
|
+
import React, { useEffect, useState } from 'react';
|
|
3
3
|
import { TouchableOpacity, View } from 'react-native';
|
|
4
4
|
import formatTime from 'date-fns/fp/format';
|
|
5
5
|
|
|
@@ -33,6 +33,10 @@ const TimePickerIOS = ({
|
|
|
33
33
|
const displayValue = value ? formatTime(displayFormat, value) : '';
|
|
34
34
|
const theme = useTheme();
|
|
35
35
|
|
|
36
|
+
useEffect(() => {
|
|
37
|
+
setSelectingDate(value || new Date());
|
|
38
|
+
}, [value]);
|
|
39
|
+
|
|
36
40
|
return (
|
|
37
41
|
<TouchableOpacity onPress={() => setOpen(true)} disabled={disabled}>
|
|
38
42
|
<View pointerEvents="none" testID="timePickerInputIOS">
|