@hero-design/rn-work-uikit 1.11.2-alpha.1 → 1.11.2-alpha.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 CHANGED
@@ -1,5 +1,14 @@
1
1
  # @hero-design/rn-work-uikit
2
2
 
3
+ ## 1.11.2-alpha.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [#4728](https://github.com/Thinkei/hero-design/pull/4728) [`61b2bbfe16cf7f59f6255ebc0129abfee11a61e7`](https://github.com/Thinkei/hero-design/commit/61b2bbfe16cf7f59f6255ebc0129abfee11a61e7) Thanks [@ttkien](https://github.com/ttkien)! - add react-native key to fix issue on RN 81
8
+
9
+ - Updated dependencies [[`82a9532c5364c2dea2ffc96153103522295aa868`](https://github.com/Thinkei/hero-design/commit/82a9532c5364c2dea2ffc96153103522295aa868), [`584274fa4239f511946789b9873f8234ace9bc79`](https://github.com/Thinkei/hero-design/commit/584274fa4239f511946789b9873f8234ace9bc79), [`61b2bbfe16cf7f59f6255ebc0129abfee11a61e7`](https://github.com/Thinkei/hero-design/commit/61b2bbfe16cf7f59f6255ebc0129abfee11a61e7)]:
10
+ - @hero-design/rn@8.118.2-alpha.2
11
+
3
12
  ## 1.11.2-alpha.1
4
13
 
5
14
  ### Patch Changes
package/es/index.js CHANGED
@@ -5995,13 +5995,19 @@ var getBottomNavigationTheme = function getBottomNavigationTheme(theme) {
5995
5995
  borderTop: theme.borderWidths.base
5996
5996
  };
5997
5997
  var sizes = {
5998
- height: theme.sizes['6xlarge']
5998
+ // Android default
5999
+ height: theme.sizes['6xlarge'],
6000
+ // iOS-specific
6001
+ heightIOS: theme.sizes.xxxlarge
5999
6002
  };
6000
6003
  var shadows = {
6001
6004
  wrapper: theme.shadows.medium
6002
6005
  };
6003
6006
  var space = {
6004
- titleMarginTop: theme.space.xxsmall
6007
+ titleMarginTop: theme.space.xxsmall,
6008
+ // iOS-specific
6009
+ contentPaddingTopIOS: theme.space.xsmall,
6010
+ contentPaddingBottomIOS: theme.space.xsmall
6005
6011
  };
6006
6012
  return {
6007
6013
  colors: colors,
@@ -16449,8 +16455,12 @@ var ContentWrapper = index$c(View)({
16449
16455
  var BottomBarWrapper = index$c(View)(function (_ref2) {
16450
16456
  var themeInsets = _ref2.themeInsets,
16451
16457
  theme = _ref2.theme;
16452
- return _objectSpread2({
16453
- height: theme.__hd__.bottomNavigation.sizes.height + themeInsets.bottom,
16458
+ return _objectSpread2(_objectSpread2({}, Platform.select({
16459
+ ios: {},
16460
+ "default": {
16461
+ height: theme.__hd__.bottomNavigation.sizes.height + themeInsets.bottom
16462
+ }
16463
+ })), {}, {
16454
16464
  paddingBottom: themeInsets.bottom,
16455
16465
  paddingLeft: Math.max(themeInsets.left, themeInsets.right),
16456
16466
  paddingRight: Math.max(themeInsets.left, themeInsets.right),
@@ -16459,18 +16469,29 @@ var BottomBarWrapper = index$c(View)(function (_ref2) {
16459
16469
  borderTopWidth: theme.__hd__.bottomNavigation.borderWidths.borderTop
16460
16470
  }, theme.__hd__.bottomNavigation.shadows.wrapper);
16461
16471
  });
16462
- var BottomBar = index$c(View)({
16463
- flex: 1,
16464
- flexDirection: 'row',
16465
- overflow: 'hidden',
16466
- alignItems: 'center'
16472
+ var BottomBar = index$c(View)(function (_ref3) {
16473
+ var theme = _ref3.theme;
16474
+ return _objectSpread2(_objectSpread2({}, Platform.select({
16475
+ ios: {
16476
+ height: theme.__hd__.bottomNavigation.sizes.heightIOS,
16477
+ paddingTop: theme.__hd__.bottomNavigation.space.contentPaddingTopIOS,
16478
+ paddingBottom: theme.__hd__.bottomNavigation.space.contentPaddingBottomIOS
16479
+ },
16480
+ "default": {
16481
+ flex: 1
16482
+ }
16483
+ })), {}, {
16484
+ flexDirection: 'row',
16485
+ overflow: 'hidden',
16486
+ alignItems: 'center'
16487
+ });
16467
16488
  });
16468
16489
  var BottomBarItem = index$c(View)({
16469
16490
  flex: 1,
16470
16491
  alignItems: 'center'
16471
16492
  });
16472
- var StyledBottomBarText = index$c(Typography.Label)(function (_ref3) {
16473
- var theme = _ref3.theme;
16493
+ var StyledBottomBarText = index$c(Typography.Label)(function (_ref4) {
16494
+ var theme = _ref4.theme;
16474
16495
  return {
16475
16496
  marginTop: theme.__hd__.bottomNavigation.space.titleMarginTop
16476
16497
  };
package/lib/index.js CHANGED
@@ -6024,13 +6024,19 @@ var getBottomNavigationTheme = function getBottomNavigationTheme(theme) {
6024
6024
  borderTop: theme.borderWidths.base
6025
6025
  };
6026
6026
  var sizes = {
6027
- height: theme.sizes['6xlarge']
6027
+ // Android default
6028
+ height: theme.sizes['6xlarge'],
6029
+ // iOS-specific
6030
+ heightIOS: theme.sizes.xxxlarge
6028
6031
  };
6029
6032
  var shadows = {
6030
6033
  wrapper: theme.shadows.medium
6031
6034
  };
6032
6035
  var space = {
6033
- titleMarginTop: theme.space.xxsmall
6036
+ titleMarginTop: theme.space.xxsmall,
6037
+ // iOS-specific
6038
+ contentPaddingTopIOS: theme.space.xsmall,
6039
+ contentPaddingBottomIOS: theme.space.xsmall
6034
6040
  };
6035
6041
  return {
6036
6042
  colors: colors,
@@ -16478,8 +16484,12 @@ var ContentWrapper = index$c(reactNative.View)({
16478
16484
  var BottomBarWrapper = index$c(reactNative.View)(function (_ref2) {
16479
16485
  var themeInsets = _ref2.themeInsets,
16480
16486
  theme = _ref2.theme;
16481
- return _objectSpread2({
16482
- height: theme.__hd__.bottomNavigation.sizes.height + themeInsets.bottom,
16487
+ return _objectSpread2(_objectSpread2({}, reactNative.Platform.select({
16488
+ ios: {},
16489
+ "default": {
16490
+ height: theme.__hd__.bottomNavigation.sizes.height + themeInsets.bottom
16491
+ }
16492
+ })), {}, {
16483
16493
  paddingBottom: themeInsets.bottom,
16484
16494
  paddingLeft: Math.max(themeInsets.left, themeInsets.right),
16485
16495
  paddingRight: Math.max(themeInsets.left, themeInsets.right),
@@ -16488,18 +16498,29 @@ var BottomBarWrapper = index$c(reactNative.View)(function (_ref2) {
16488
16498
  borderTopWidth: theme.__hd__.bottomNavigation.borderWidths.borderTop
16489
16499
  }, theme.__hd__.bottomNavigation.shadows.wrapper);
16490
16500
  });
16491
- var BottomBar = index$c(reactNative.View)({
16492
- flex: 1,
16493
- flexDirection: 'row',
16494
- overflow: 'hidden',
16495
- alignItems: 'center'
16501
+ var BottomBar = index$c(reactNative.View)(function (_ref3) {
16502
+ var theme = _ref3.theme;
16503
+ return _objectSpread2(_objectSpread2({}, reactNative.Platform.select({
16504
+ ios: {
16505
+ height: theme.__hd__.bottomNavigation.sizes.heightIOS,
16506
+ paddingTop: theme.__hd__.bottomNavigation.space.contentPaddingTopIOS,
16507
+ paddingBottom: theme.__hd__.bottomNavigation.space.contentPaddingBottomIOS
16508
+ },
16509
+ "default": {
16510
+ flex: 1
16511
+ }
16512
+ })), {}, {
16513
+ flexDirection: 'row',
16514
+ overflow: 'hidden',
16515
+ alignItems: 'center'
16516
+ });
16496
16517
  });
16497
16518
  var BottomBarItem = index$c(reactNative.View)({
16498
16519
  flex: 1,
16499
16520
  alignItems: 'center'
16500
16521
  });
16501
- var StyledBottomBarText = index$c(Typography.Label)(function (_ref3) {
16502
- var theme = _ref3.theme;
16522
+ var StyledBottomBarText = index$c(Typography.Label)(function (_ref4) {
16523
+ var theme = _ref4.theme;
16503
16524
  return {
16504
16525
  marginTop: theme.__hd__.bottomNavigation.space.titleMarginTop
16505
16526
  };
package/package.json CHANGED
@@ -1,10 +1,9 @@
1
1
  {
2
2
  "name": "@hero-design/rn-work-uikit",
3
- "version": "1.11.2-alpha.1",
3
+ "version": "1.11.2-alpha.2",
4
4
  "license": "MIT",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
7
- "react-native": "src/index.ts",
8
7
  "types": "types/index.d.ts",
9
8
  "description": "EH Work specific UI components built on top of @hero-design/rn",
10
9
  "scripts": {
@@ -23,7 +22,7 @@
23
22
  "dependencies": {
24
23
  "@emotion/native": "^11.9.3",
25
24
  "@emotion/react": "^11.9.3",
26
- "@hero-design/rn": "8.118.2-alpha.1",
25
+ "@hero-design/rn": "8.118.2-alpha.2",
27
26
  "hero-editor": "^1.17.0"
28
27
  },
29
28
  "peerDependencies": {