@hero-design/rn 8.98.0 → 8.98.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/.turbo/turbo-build.log +3 -3
- package/CHANGELOG.md +6 -0
- package/es/index.js +5 -3
- package/lib/index.js +5 -3
- package/package.json +1 -1
- package/src/components/Tabs/StyledScrollableTabs.tsx +8 -2
- package/stats/8.98.1/rn-stats.html +4842 -0
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(node:
|
|
1
|
+
(node:3022) 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
|
|
@@ -10,9 +10,9 @@
|
|
|
10
10
|
[7m [0m [91m ~~~~~~~~~~~~~~~~~~~[0m
|
|
11
11
|
[39m
|
|
12
12
|
[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
|
|
13
|
-
[32mcreated [1mlib/index.js, es/index.js[22m in [
|
|
13
|
+
[32mcreated [1mlib/index.js, es/index.js[22m in [1m55.7s[22m[39m
|
|
14
14
|
[36m
|
|
15
15
|
[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
|
|
16
16
|
[1m[33m(!) Generated empty chunks[39m[22m
|
|
17
17
|
"locales/types" and "locales/types"
|
|
18
|
-
[32mcreated [1m., .[22m in [
|
|
18
|
+
[32mcreated [1m., .[22m in [1m23.1s[22m[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @hero-design/rn
|
|
2
2
|
|
|
3
|
+
## 8.98.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#3805](https://github.com/Thinkei/hero-design/pull/3805) [`c0e81efe2716701816fa439485ee1cb20cb593ca`](https://github.com/Thinkei/hero-design/commit/c0e81efe2716701816fa439485ee1cb20cb593ca) Thanks [@vinhphan-eh](https://github.com/vinhphan-eh)! - [Tabs.Scroll] Fix alignment issue on Android 8
|
|
8
|
+
|
|
3
9
|
## 8.98.0
|
|
4
10
|
|
|
5
11
|
### Minor Changes
|
package/es/index.js
CHANGED
|
@@ -20917,6 +20917,7 @@ var ActiveTabIndicator = function ActiveTabIndicator(_ref) {
|
|
|
20917
20917
|
});
|
|
20918
20918
|
};
|
|
20919
20919
|
|
|
20920
|
+
var isAndroid8 = Platform.OS === 'android' && (Platform.Version === 26 || Platform.Version === 27);
|
|
20920
20921
|
var TabScreen = index$b(View)({
|
|
20921
20922
|
flex: 1
|
|
20922
20923
|
});
|
|
@@ -20956,13 +20957,14 @@ var HeaderTabItemOutline = index$b(Animated.View)(function (_ref4) {
|
|
|
20956
20957
|
});
|
|
20957
20958
|
var HeaderTabItemWrapper = index$b(View)(function (_ref5) {
|
|
20958
20959
|
var theme = _ref5.theme;
|
|
20959
|
-
return {
|
|
20960
|
+
return _objectSpread2({
|
|
20960
20961
|
paddingHorizontal: theme.__hd__.tabs.space.outlineHorizontalPadding,
|
|
20961
20962
|
paddingVertical: theme.__hd__.tabs.space.outlineVerticalPadding,
|
|
20962
20963
|
position: 'relative',
|
|
20963
|
-
justifyContent: 'center'
|
|
20964
|
+
justifyContent: 'center'
|
|
20965
|
+
}, !isAndroid8 && {
|
|
20964
20966
|
alignItems: 'center'
|
|
20965
|
-
};
|
|
20967
|
+
});
|
|
20966
20968
|
});
|
|
20967
20969
|
var HeaderTabItemIndicator = index$b(Animated.View)(function (_ref6) {
|
|
20968
20970
|
var theme = _ref6.theme;
|
package/lib/index.js
CHANGED
|
@@ -20946,6 +20946,7 @@ var ActiveTabIndicator = function ActiveTabIndicator(_ref) {
|
|
|
20946
20946
|
});
|
|
20947
20947
|
};
|
|
20948
20948
|
|
|
20949
|
+
var isAndroid8 = reactNative.Platform.OS === 'android' && (reactNative.Platform.Version === 26 || reactNative.Platform.Version === 27);
|
|
20949
20950
|
var TabScreen = index$b(reactNative.View)({
|
|
20950
20951
|
flex: 1
|
|
20951
20952
|
});
|
|
@@ -20985,13 +20986,14 @@ var HeaderTabItemOutline = index$b(reactNative.Animated.View)(function (_ref4) {
|
|
|
20985
20986
|
});
|
|
20986
20987
|
var HeaderTabItemWrapper = index$b(reactNative.View)(function (_ref5) {
|
|
20987
20988
|
var theme = _ref5.theme;
|
|
20988
|
-
return {
|
|
20989
|
+
return _objectSpread2({
|
|
20989
20990
|
paddingHorizontal: theme.__hd__.tabs.space.outlineHorizontalPadding,
|
|
20990
20991
|
paddingVertical: theme.__hd__.tabs.space.outlineVerticalPadding,
|
|
20991
20992
|
position: 'relative',
|
|
20992
|
-
justifyContent: 'center'
|
|
20993
|
+
justifyContent: 'center'
|
|
20994
|
+
}, !isAndroid8 && {
|
|
20993
20995
|
alignItems: 'center'
|
|
20994
|
-
};
|
|
20996
|
+
});
|
|
20995
20997
|
});
|
|
20996
20998
|
var HeaderTabItemIndicator = index$b(reactNative.Animated.View)(function (_ref6) {
|
|
20997
20999
|
var theme = _ref6.theme;
|
package/package.json
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
|
-
import { Animated, StyleSheet, View } from 'react-native';
|
|
1
|
+
import { Animated, Platform, StyleSheet, View } from 'react-native';
|
|
2
2
|
import styled from '@emotion/native';
|
|
3
3
|
|
|
4
|
+
const isAndroid8 =
|
|
5
|
+
Platform.OS === 'android' &&
|
|
6
|
+
(Platform.Version === 26 || Platform.Version === 27);
|
|
7
|
+
|
|
4
8
|
const TabScreen = styled(View)({
|
|
5
9
|
flex: 1,
|
|
6
10
|
});
|
|
@@ -43,7 +47,9 @@ const HeaderTabItemWrapper = styled(View)(({ theme }) => ({
|
|
|
43
47
|
paddingVertical: theme.__hd__.tabs.space.outlineVerticalPadding,
|
|
44
48
|
position: 'relative',
|
|
45
49
|
justifyContent: 'center',
|
|
46
|
-
|
|
50
|
+
...(!isAndroid8 && {
|
|
51
|
+
alignItems: 'center',
|
|
52
|
+
}),
|
|
47
53
|
}));
|
|
48
54
|
|
|
49
55
|
const HeaderTabItemIndicator = styled(Animated.View)(({ theme }) => ({
|