@hero-design/rn 8.112.0 → 8.112.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 +3 -3
- package/CHANGELOG.md +13 -0
- package/es/index.js +7 -5
- package/lib/index.js +7 -5
- package/package.json +2 -12
- package/src/components/TimePicker/TimePickerIOS.tsx +6 -3
- package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +1 -0
- package/stats/8.112.1/rn-stats.html +4842 -0
- package/stats/8.112.2/rn-stats.html +4842 -0
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(node:
|
|
1
|
+
(node:2684) 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
|
|
@@ -9,9 +9,9 @@ node_modules/d3-selection/src/selection/index.js -> node_modules/d3-selection/sr
|
|
|
9
9
|
...and 12 more
|
|
10
10
|
[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
|
|
11
11
|
[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
|
|
12
|
-
[32mcreated [1mlib/index.js, es/index.js[22m in [
|
|
12
|
+
[32mcreated [1mlib/index.js, es/index.js[22m in [1m2m 9.6s[22m[39m
|
|
13
13
|
[36m
|
|
14
14
|
[1m/home/runner/_work/hero-design/hero-design/packages/rn/src/locales/en_AU.ts, /home/runner/_work/hero-design/hero-design/packages/rn/src/locales/en_CA.ts, /home/runner/_work/hero-design/hero-design/packages/rn/src/locales/index.ts, /home/runner/_work/hero-design/hero-design/packages/rn/src/locales/types.ts[22m → [1m., .[22m...[39m
|
|
15
15
|
[1m[33m(!) Generated empty chunks[39m[22m
|
|
16
16
|
"locales/types" and "locales/types"
|
|
17
|
-
[32mcreated [1m., .[22m in [
|
|
17
|
+
[32mcreated [1m., .[22m in [1m35.6s[22m[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @hero-design/rn
|
|
2
2
|
|
|
3
|
+
## 8.112.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [[`7777ac176c82c545f217a7fe73aa2700c607b298`](https://github.com/Thinkei/hero-design/commit/7777ac176c82c545f217a7fe73aa2700c607b298)]:
|
|
8
|
+
- @hero-design/colors@8.47.0
|
|
9
|
+
|
|
10
|
+
## 8.112.1
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- [#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
|
|
15
|
+
|
|
3
16
|
## 8.112.0
|
|
4
17
|
|
|
5
18
|
### Minor Changes
|
package/es/index.js
CHANGED
|
@@ -4459,6 +4459,7 @@ var palette$e = {
|
|
|
4459
4459
|
violetLight60: violet$4.lighten60,
|
|
4460
4460
|
violetLight75: violet$4.lighten75,
|
|
4461
4461
|
violetLight90: violet$4.lighten90,
|
|
4462
|
+
violetLight95: violet$4.lighten95,
|
|
4462
4463
|
yellow: yellow$1.base,
|
|
4463
4464
|
yellowDark15: yellow$1.darken15,
|
|
4464
4465
|
yellowDark30: yellow$1.darken30,
|
|
@@ -27958,6 +27959,10 @@ var TimePickerIOS = function TimePickerIOS(_ref) {
|
|
|
27958
27959
|
var is12Hour = displayFormat.includes('hh');
|
|
27959
27960
|
var displayValue = value ? formatTime(displayFormat, value) : '';
|
|
27960
27961
|
var theme = useTheme();
|
|
27962
|
+
// Determine locale based on time format preference
|
|
27963
|
+
// For 12-hour format: use en-US locale to ensure 12-hour display regardless of device settings
|
|
27964
|
+
// For 24-hour format: use en-GB for consistent 24-hour display
|
|
27965
|
+
var pickerLocale = is12Hour ? 'en-US' : 'en-GB';
|
|
27961
27966
|
var InputComponent = TextInputComponent || TextInput;
|
|
27962
27967
|
useEffect(function () {
|
|
27963
27968
|
setSelectingDate(value || new Date());
|
|
@@ -28005,11 +28010,8 @@ var TimePickerIOS = function TimePickerIOS(_ref) {
|
|
|
28005
28010
|
}, /*#__PURE__*/React__default.createElement(StyledPickerWrapper, null, /*#__PURE__*/React__default.createElement(DateTimePicker, {
|
|
28006
28011
|
testID: "timePickerIOS",
|
|
28007
28012
|
value: selectingDate,
|
|
28008
|
-
mode: "time"
|
|
28009
|
-
|
|
28010
|
-
// This is a work around to get the picker to display 24 hour format for iOS.
|
|
28011
|
-
,
|
|
28012
|
-
locale: is12Hour ? undefined : 'en-GB',
|
|
28013
|
+
mode: "time",
|
|
28014
|
+
locale: pickerLocale,
|
|
28013
28015
|
onChange: function onChange(_, date) {
|
|
28014
28016
|
if (date) {
|
|
28015
28017
|
setSelectingDate(date);
|
package/lib/index.js
CHANGED
|
@@ -4488,6 +4488,7 @@ var palette$e = {
|
|
|
4488
4488
|
violetLight60: violet$4.lighten60,
|
|
4489
4489
|
violetLight75: violet$4.lighten75,
|
|
4490
4490
|
violetLight90: violet$4.lighten90,
|
|
4491
|
+
violetLight95: violet$4.lighten95,
|
|
4491
4492
|
yellow: yellow$1.base,
|
|
4492
4493
|
yellowDark15: yellow$1.darken15,
|
|
4493
4494
|
yellowDark30: yellow$1.darken30,
|
|
@@ -27987,6 +27988,10 @@ var TimePickerIOS = function TimePickerIOS(_ref) {
|
|
|
27987
27988
|
var is12Hour = displayFormat.includes('hh');
|
|
27988
27989
|
var displayValue = value ? formatTime(displayFormat, value) : '';
|
|
27989
27990
|
var theme = useTheme();
|
|
27991
|
+
// Determine locale based on time format preference
|
|
27992
|
+
// For 12-hour format: use en-US locale to ensure 12-hour display regardless of device settings
|
|
27993
|
+
// For 24-hour format: use en-GB for consistent 24-hour display
|
|
27994
|
+
var pickerLocale = is12Hour ? 'en-US' : 'en-GB';
|
|
27990
27995
|
var InputComponent = TextInputComponent || TextInput;
|
|
27991
27996
|
React.useEffect(function () {
|
|
27992
27997
|
setSelectingDate(value || new Date());
|
|
@@ -28034,11 +28039,8 @@ var TimePickerIOS = function TimePickerIOS(_ref) {
|
|
|
28034
28039
|
}, /*#__PURE__*/React__namespace.default.createElement(StyledPickerWrapper, null, /*#__PURE__*/React__namespace.default.createElement(DateTimePicker__default.default, {
|
|
28035
28040
|
testID: "timePickerIOS",
|
|
28036
28041
|
value: selectingDate,
|
|
28037
|
-
mode: "time"
|
|
28038
|
-
|
|
28039
|
-
// This is a work around to get the picker to display 24 hour format for iOS.
|
|
28040
|
-
,
|
|
28041
|
-
locale: is12Hour ? undefined : 'en-GB',
|
|
28042
|
+
mode: "time",
|
|
28043
|
+
locale: pickerLocale,
|
|
28042
28044
|
onChange: function onChange(_, date) {
|
|
28043
28045
|
if (date) {
|
|
28044
28046
|
setSelectingDate(date);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hero-design/rn",
|
|
3
|
-
"version": "8.112.
|
|
3
|
+
"version": "8.112.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@emotion/native": "^11.9.3",
|
|
23
23
|
"@emotion/react": "^11.9.3",
|
|
24
|
-
"@hero-design/colors": "8.
|
|
24
|
+
"@hero-design/colors": "8.47.0",
|
|
25
25
|
"d3": "^7.8.5",
|
|
26
26
|
"date-fns": "^2.30.0",
|
|
27
27
|
"hero-editor": "^1.17.0",
|
|
@@ -82,24 +82,14 @@
|
|
|
82
82
|
"@types/react": "^18.2.0",
|
|
83
83
|
"@types/react-native-vector-icons": "^6.4.10",
|
|
84
84
|
"@typescript-eslint/eslint-plugin": "^5.12.1",
|
|
85
|
-
"@typescript-eslint/parser": "^5.12.1",
|
|
86
85
|
"babel-plugin-inline-import": "^3.0.0",
|
|
87
86
|
"config-tsconfig": "8.42.5",
|
|
88
87
|
"core-js": "^3.33.0",
|
|
89
88
|
"eslint": "^8.56.0",
|
|
90
|
-
"eslint-config-airbnb": "^19.0.4",
|
|
91
89
|
"eslint-config-hd": "8.42.5",
|
|
92
|
-
"eslint-config-prettier": "^8.5.0",
|
|
93
|
-
"eslint-import-resolver-typescript": "^3.5.2",
|
|
94
|
-
"eslint-plugin-import": "^2.32.0",
|
|
95
|
-
"eslint-plugin-jsx-a11y": "^6.5.1",
|
|
96
|
-
"eslint-plugin-prettier": "^4.0.0",
|
|
97
|
-
"eslint-plugin-react": "^7.37.5",
|
|
98
|
-
"eslint-plugin-react-hooks": "^4.3.0",
|
|
99
90
|
"jest": "^29.2.1",
|
|
100
91
|
"jest-environment-jsdom": "^29.2.1",
|
|
101
92
|
"jest-junit": "^16.0.0",
|
|
102
|
-
"prettier": "^2.5.1",
|
|
103
93
|
"prettier-config-hd": "8.42.4",
|
|
104
94
|
"react": "18.3.1",
|
|
105
95
|
"react-dom": "^18.2.0",
|
|
@@ -39,6 +39,11 @@ const TimePickerIOS = ({
|
|
|
39
39
|
const displayValue = value ? formatTime(displayFormat, value) : '';
|
|
40
40
|
const theme = useTheme();
|
|
41
41
|
|
|
42
|
+
// Determine locale based on time format preference
|
|
43
|
+
// For 12-hour format: use en-US locale to ensure 12-hour display regardless of device settings
|
|
44
|
+
// For 24-hour format: use en-GB for consistent 24-hour display
|
|
45
|
+
const pickerLocale = is12Hour ? 'en-US' : 'en-GB';
|
|
46
|
+
|
|
42
47
|
const InputComponent = TextInputComponent || TextInput;
|
|
43
48
|
|
|
44
49
|
useEffect(() => {
|
|
@@ -95,9 +100,7 @@ const TimePickerIOS = ({
|
|
|
95
100
|
testID="timePickerIOS"
|
|
96
101
|
value={selectingDate}
|
|
97
102
|
mode="time"
|
|
98
|
-
|
|
99
|
-
// This is a work around to get the picker to display 24 hour format for iOS.
|
|
100
|
-
locale={is12Hour ? undefined : 'en-GB'}
|
|
103
|
+
locale={pickerLocale}
|
|
101
104
|
onChange={(_: any, date: Date | undefined) => {
|
|
102
105
|
if (date) {
|
|
103
106
|
setSelectingDate(date);
|