@hero-design/rn-work-uikit 1.9.1 → 1.9.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/CHANGELOG.md +9 -0
- package/lib/index.js +7 -5
- package/package.json +2 -2
- package/stats/1.9.2/rn-work-uikit-stats.html +4844 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @hero-design/rn-work-uikit
|
|
2
2
|
|
|
3
|
+
## 1.9.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#4310](https://github.com/Thinkei/hero-design/pull/4310) [`4742897580f05ae3d5f089df7aa0b1a34a90e15c`](https://github.com/Thinkei/hero-design/commit/4742897580f05ae3d5f089df7aa0b1a34a90e15c) Thanks [@vinhphan-eh](https://github.com/vinhphan-eh)! - [TimePicker] Correct 12-hour format for iOS picker
|
|
8
|
+
|
|
9
|
+
- Updated dependencies [[`4742897580f05ae3d5f089df7aa0b1a34a90e15c`](https://github.com/Thinkei/hero-design/commit/4742897580f05ae3d5f089df7aa0b1a34a90e15c)]:
|
|
10
|
+
- @hero-design/rn@8.112.1
|
|
11
|
+
|
|
3
12
|
## 1.9.1
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
package/lib/index.js
CHANGED
|
@@ -15147,6 +15147,11 @@ var TimePickerIOS = function TimePickerIOS(_ref) {
|
|
|
15147
15147
|
var is12Hour = displayFormat.includes('hh');
|
|
15148
15148
|
var displayValue = value ? formatTime(displayFormat, value) : '';
|
|
15149
15149
|
var theme = useTheme();
|
|
15150
|
+
|
|
15151
|
+
// Determine locale based on time format preference
|
|
15152
|
+
// For 12-hour format: use en-US locale to ensure 12-hour display regardless of device settings
|
|
15153
|
+
// For 24-hour format: use en-GB for consistent 24-hour display
|
|
15154
|
+
var pickerLocale = is12Hour ? 'en-US' : 'en-GB';
|
|
15150
15155
|
var InputComponent = TextInputComponent || TextInput$1;
|
|
15151
15156
|
React.useEffect(function () {
|
|
15152
15157
|
setSelectingDate(value || new Date());
|
|
@@ -15194,11 +15199,8 @@ var TimePickerIOS = function TimePickerIOS(_ref) {
|
|
|
15194
15199
|
}, /*#__PURE__*/React__namespace.default.createElement(StyledPickerWrapper, null, /*#__PURE__*/React__namespace.default.createElement(DateTimePicker__default.default, {
|
|
15195
15200
|
testID: "timePickerIOS",
|
|
15196
15201
|
value: selectingDate,
|
|
15197
|
-
mode: "time"
|
|
15198
|
-
|
|
15199
|
-
// This is a work around to get the picker to display 24 hour format for iOS.
|
|
15200
|
-
,
|
|
15201
|
-
locale: is12Hour ? undefined : 'en-GB',
|
|
15202
|
+
mode: "time",
|
|
15203
|
+
locale: pickerLocale,
|
|
15202
15204
|
onChange: function onChange(_, date) {
|
|
15203
15205
|
if (date) {
|
|
15204
15206
|
setSelectingDate(date);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hero-design/rn-work-uikit",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@emotion/native": "^11.9.3",
|
|
24
24
|
"@emotion/react": "^11.9.3",
|
|
25
|
-
"@hero-design/rn": "^8.112.
|
|
25
|
+
"@hero-design/rn": "^8.112.1",
|
|
26
26
|
"hero-editor": "^1.17.0"
|
|
27
27
|
},
|
|
28
28
|
"peerDependencies": {
|