@hero-design/rn 8.35.0 → 8.35.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.
@@ -4,5 +4,5 @@ $ rollup -c
4
4
  src/index.ts → lib/index.js, es/index.js...
5
5
  (!) 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`.
6
6
  (!) Plugin node-resolve: preferring built-in module 'events' over local alternative at '/root/hero-design/node_modules/events/events.js', pass 'preferBuiltins: false' to disable this behavior or 'preferBuiltins: true' to disable this warning
7
- created lib/index.js, es/index.js in 28.5s
7
+ created lib/index.js, es/index.js in 29.6s
8
8
  $ tsc --noEmit false --emitDeclarationOnly --project tsconfig.prod.json
package/es/index.js CHANGED
@@ -13566,6 +13566,15 @@ var StyledContainer$2 = index$c(View)({
13566
13566
  alignItems: 'flex-end',
13567
13567
  justifyContent: 'flex-end'
13568
13568
  });
13569
+ var StyledContainerInModal = index$c(View)({
13570
+ position: 'absolute',
13571
+ left: 0,
13572
+ right: 0,
13573
+ top: 0,
13574
+ bottom: 0,
13575
+ alignItems: 'flex-end',
13576
+ justifyContent: 'flex-end'
13577
+ });
13569
13578
  var StyledActionGroupContainer = index$c(Animated.View)({
13570
13579
  alignItems: 'flex-end',
13571
13580
  justifyContent: 'flex-end',
@@ -13587,6 +13596,7 @@ var StyledBackdrop = index$c(Animated.View)(function (_ref2) {
13587
13596
  right: 0,
13588
13597
  top: 0,
13589
13598
  bottom: 0,
13599
+ opacity: 0.25,
13590
13600
  backgroundColor: theme.__hd__.fab.colors.backdropBackground
13591
13601
  };
13592
13602
  });
@@ -13642,26 +13652,42 @@ var ActionGroup = /*#__PURE__*/forwardRef(function (_ref, ref) {
13642
13652
  useNativeDriver: Platform.OS !== 'web'
13643
13653
  })]).start();
13644
13654
  }, [active]);
13645
- var interpolatedBackdropOpacityAnimation = tranlateXAnimation.current.interpolate({
13646
- inputRange: [0, 1],
13647
- outputRange: [0, 0.25]
13648
- });
13649
13655
  var interpolatedActionGroupOpacityAnimation = tranlateXAnimation.current.interpolate({
13650
13656
  inputRange: [0, 1],
13651
13657
  outputRange: [0, 1]
13652
13658
  });
13659
+ var interpolatedFABOpacityAnimation = tranlateXAnimation.current.interpolate({
13660
+ inputRange: [0, 1],
13661
+ outputRange: [1, 0]
13662
+ });
13653
13663
  return /*#__PURE__*/React.createElement(StyledContainer$2, {
13654
13664
  testID: testID,
13655
13665
  pointerEvents: "box-none",
13656
13666
  style: style
13657
- }, /*#__PURE__*/React.createElement(StyledBackdrop, {
13658
- pointerEvents: active ? 'auto' : 'box-none',
13659
- testID: "back-drop",
13667
+ }, /*#__PURE__*/React.createElement(Animated.View, {
13660
13668
  style: {
13661
- opacity: interpolatedBackdropOpacityAnimation
13669
+ opacity: interpolatedFABOpacityAnimation
13662
13670
  }
13671
+ }, /*#__PURE__*/React.createElement(StyledFAB, {
13672
+ key: "fab",
13673
+ testID: "fab",
13674
+ icon: fabIcon,
13675
+ onPress: onPress,
13676
+ animated: true,
13677
+ active: active,
13678
+ title: fabTitle,
13679
+ ref: fabRef
13680
+ })), /*#__PURE__*/React.createElement(Modal$1, {
13681
+ visible: active,
13682
+ animationType: "fade",
13683
+ transparent: true,
13684
+ statusBarTranslucent: true
13685
+ }, /*#__PURE__*/React.createElement(StyledContainerInModal, {
13686
+ testID: testID,
13687
+ style: [style]
13688
+ }, /*#__PURE__*/React.createElement(StyledBackdrop, {
13689
+ testID: "back-drop"
13663
13690
  }), /*#__PURE__*/React.createElement(StyledActionGroupContainer, {
13664
- pointerEvents: active ? 'auto' : 'none',
13665
13691
  testID: "action-group",
13666
13692
  style: {
13667
13693
  opacity: interpolatedActionGroupOpacityAnimation
@@ -13687,14 +13713,14 @@ var ActionGroup = /*#__PURE__*/forwardRef(function (_ref, ref) {
13687
13713
  active: active
13688
13714
  }));
13689
13715
  }))), /*#__PURE__*/React.createElement(StyledFAB, {
13690
- testID: "fab",
13716
+ key: "fab-in-portal",
13717
+ testID: "fab-in-portal",
13691
13718
  icon: fabIcon,
13692
13719
  onPress: onPress,
13693
13720
  animated: true,
13694
13721
  active: active,
13695
- title: fabTitle,
13696
- ref: fabRef
13697
- }));
13722
+ title: fabTitle
13723
+ }))));
13698
13724
  });
13699
13725
  ActionGroup.displayName = 'FAB.ActionGroup';
13700
13726
 
package/lib/index.js CHANGED
@@ -13597,6 +13597,15 @@ var StyledContainer$2 = index$c(reactNative.View)({
13597
13597
  alignItems: 'flex-end',
13598
13598
  justifyContent: 'flex-end'
13599
13599
  });
13600
+ var StyledContainerInModal = index$c(reactNative.View)({
13601
+ position: 'absolute',
13602
+ left: 0,
13603
+ right: 0,
13604
+ top: 0,
13605
+ bottom: 0,
13606
+ alignItems: 'flex-end',
13607
+ justifyContent: 'flex-end'
13608
+ });
13600
13609
  var StyledActionGroupContainer = index$c(reactNative.Animated.View)({
13601
13610
  alignItems: 'flex-end',
13602
13611
  justifyContent: 'flex-end',
@@ -13618,6 +13627,7 @@ var StyledBackdrop = index$c(reactNative.Animated.View)(function (_ref2) {
13618
13627
  right: 0,
13619
13628
  top: 0,
13620
13629
  bottom: 0,
13630
+ opacity: 0.25,
13621
13631
  backgroundColor: theme.__hd__.fab.colors.backdropBackground
13622
13632
  };
13623
13633
  });
@@ -13673,26 +13683,42 @@ var ActionGroup = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
13673
13683
  useNativeDriver: reactNative.Platform.OS !== 'web'
13674
13684
  })]).start();
13675
13685
  }, [active]);
13676
- var interpolatedBackdropOpacityAnimation = tranlateXAnimation.current.interpolate({
13677
- inputRange: [0, 1],
13678
- outputRange: [0, 0.25]
13679
- });
13680
13686
  var interpolatedActionGroupOpacityAnimation = tranlateXAnimation.current.interpolate({
13681
13687
  inputRange: [0, 1],
13682
13688
  outputRange: [0, 1]
13683
13689
  });
13690
+ var interpolatedFABOpacityAnimation = tranlateXAnimation.current.interpolate({
13691
+ inputRange: [0, 1],
13692
+ outputRange: [1, 0]
13693
+ });
13684
13694
  return /*#__PURE__*/React__default["default"].createElement(StyledContainer$2, {
13685
13695
  testID: testID,
13686
13696
  pointerEvents: "box-none",
13687
13697
  style: style
13688
- }, /*#__PURE__*/React__default["default"].createElement(StyledBackdrop, {
13689
- pointerEvents: active ? 'auto' : 'box-none',
13690
- testID: "back-drop",
13698
+ }, /*#__PURE__*/React__default["default"].createElement(reactNative.Animated.View, {
13691
13699
  style: {
13692
- opacity: interpolatedBackdropOpacityAnimation
13700
+ opacity: interpolatedFABOpacityAnimation
13693
13701
  }
13702
+ }, /*#__PURE__*/React__default["default"].createElement(StyledFAB, {
13703
+ key: "fab",
13704
+ testID: "fab",
13705
+ icon: fabIcon,
13706
+ onPress: onPress,
13707
+ animated: true,
13708
+ active: active,
13709
+ title: fabTitle,
13710
+ ref: fabRef
13711
+ })), /*#__PURE__*/React__default["default"].createElement(reactNative.Modal, {
13712
+ visible: active,
13713
+ animationType: "fade",
13714
+ transparent: true,
13715
+ statusBarTranslucent: true
13716
+ }, /*#__PURE__*/React__default["default"].createElement(StyledContainerInModal, {
13717
+ testID: testID,
13718
+ style: [style]
13719
+ }, /*#__PURE__*/React__default["default"].createElement(StyledBackdrop, {
13720
+ testID: "back-drop"
13694
13721
  }), /*#__PURE__*/React__default["default"].createElement(StyledActionGroupContainer, {
13695
- pointerEvents: active ? 'auto' : 'none',
13696
13722
  testID: "action-group",
13697
13723
  style: {
13698
13724
  opacity: interpolatedActionGroupOpacityAnimation
@@ -13718,14 +13744,14 @@ var ActionGroup = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
13718
13744
  active: active
13719
13745
  }));
13720
13746
  }))), /*#__PURE__*/React__default["default"].createElement(StyledFAB, {
13721
- testID: "fab",
13747
+ key: "fab-in-portal",
13748
+ testID: "fab-in-portal",
13722
13749
  icon: fabIcon,
13723
13750
  onPress: onPress,
13724
13751
  animated: true,
13725
13752
  active: active,
13726
- title: fabTitle,
13727
- ref: fabRef
13728
- }));
13753
+ title: fabTitle
13754
+ }))));
13729
13755
  });
13730
13756
  ActionGroup.displayName = 'FAB.ActionGroup';
13731
13757
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hero-design/rn",
3
- "version": "8.35.0",
3
+ "version": "8.35.1",
4
4
  "license": "MIT",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -21,14 +21,14 @@
21
21
  "dependencies": {
22
22
  "@emotion/native": "^11.9.3",
23
23
  "@emotion/react": "^11.9.3",
24
- "@hero-design/colors": "8.35.0",
24
+ "@hero-design/colors": "8.35.1",
25
25
  "date-fns": "^2.16.1",
26
26
  "events": "^3.2.0",
27
27
  "hero-editor": "^1.9.21",
28
28
  "nanoid": "^4.0.2"
29
29
  },
30
30
  "peerDependencies": {
31
- "@hero-design/react-native-month-year-picker": "^8.35.0",
31
+ "@hero-design/react-native-month-year-picker": "^8.35.1",
32
32
  "@react-native-community/datetimepicker": "^3.5.2",
33
33
  "@react-native-community/slider": "4.1.12",
34
34
  "react": "18.0.0",
@@ -48,8 +48,8 @@
48
48
  "@babel/preset-typescript": "^7.17.12",
49
49
  "@babel/runtime": "^7.18.9",
50
50
  "@emotion/jest": "^11.9.3",
51
- "@hero-design/eslint-plugin": "8.35.0",
52
- "@hero-design/react-native-month-year-picker": "^8.35.0",
51
+ "@hero-design/eslint-plugin": "8.35.1",
52
+ "@hero-design/react-native-month-year-picker": "^8.35.1",
53
53
  "@react-native-community/datetimepicker": "^3.5.2",
54
54
  "@react-native-community/slider": "4.1.12",
55
55
  "@rollup/plugin-babel": "^5.3.1",
@@ -65,10 +65,10 @@
65
65
  "@types/react-native": "^0.67.7",
66
66
  "@types/react-native-vector-icons": "^6.4.10",
67
67
  "babel-plugin-inline-import": "^3.0.0",
68
- "eslint-config-hd": "8.35.0",
68
+ "eslint-config-hd": "8.35.1",
69
69
  "eslint-plugin-import": "^2.27.5",
70
70
  "jest": "^27.3.1",
71
- "prettier-config-hd": "8.35.0",
71
+ "prettier-config-hd": "8.35.1",
72
72
  "react": "18.0.0",
73
73
  "react-native": "0.69.7",
74
74
  "react-native-gesture-handler": "~2.5.0",
@@ -16,6 +16,16 @@ const StyledContainer = styled(View)<ViewProps>({
16
16
  justifyContent: 'flex-end',
17
17
  });
18
18
 
19
+ const StyledContainerInModal = styled(View)<ViewProps>({
20
+ position: 'absolute',
21
+ left: 0,
22
+ right: 0,
23
+ top: 0,
24
+ bottom: 0,
25
+ alignItems: 'flex-end',
26
+ justifyContent: 'flex-end',
27
+ });
28
+
19
29
  const StyledActionGroupContainer = styled(Animated.View)<
20
30
  ComponentProps<typeof Animated.View>
21
31
  >({
@@ -38,6 +48,7 @@ const StyledBackdrop = styled(Animated.View)<
38
48
  right: 0,
39
49
  top: 0,
40
50
  bottom: 0,
51
+ opacity: 0.25,
41
52
  backgroundColor: theme.__hd__.fab.colors.backdropBackground,
42
53
  }));
43
54
 
@@ -52,6 +63,7 @@ export {
52
63
  StyledHeaderText,
53
64
  StyledBackdrop,
54
65
  StyledContainer,
66
+ StyledContainerInModal,
55
67
  StyledActionGroupContainer,
56
68
  StyledFAB,
57
69
  };