@hero-design/rn 8.63.1 → 8.63.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/es/index.js CHANGED
@@ -14341,7 +14341,7 @@ var ErrorPage = function ErrorPage(_ref) {
14341
14341
  * @param {ErrorProps}
14342
14342
  * @return {*} {ReactElement}
14343
14343
  */
14344
- var Error$1 = function Error(_ref2) {
14344
+ var ErrorComponent = function ErrorComponent(_ref2) {
14345
14345
  var _ref2$visible = _ref2.visible,
14346
14346
  visible = _ref2$visible === void 0 ? true : _ref2$visible,
14347
14347
  _ref2$variant = _ref2.variant,
@@ -17838,6 +17838,7 @@ var useIsFocused = function useIsFocused() {
17838
17838
  return isFocused;
17839
17839
  };
17840
17840
 
17841
+ var AnimatedPagerView$1 = Animated.createAnimatedComponent(PagerView);
17841
17842
  var ScrollableTab = function ScrollableTab(_ref) {
17842
17843
  var onTabPress = _ref.onTabPress,
17843
17844
  selectedTabKey = _ref.selectedTabKey,
@@ -17895,7 +17896,7 @@ var ScrollableTab = function ScrollableTab(_ref) {
17895
17896
  insets: insets,
17896
17897
  testID: componentTestID ? "".concat(componentTestID, "-tab-bar") : undefined,
17897
17898
  variant: variant
17898
- }), /*#__PURE__*/React__default.createElement(PagerView, {
17899
+ }), /*#__PURE__*/React__default.createElement(AnimatedPagerView$1, {
17899
17900
  useNext: true,
17900
17901
  initialPage: selectedTabIndex,
17901
17902
  ref: pagerViewRef,
@@ -35842,4 +35843,4 @@ function SectionListWithFAB(_ref) {
35842
35843
  });
35843
35844
  }
35844
35845
 
35845
- export { Accordion, Alert, Attachment, index$8 as Avatar, Badge$1 as Badge, BottomNavigation, BottomSheet$1 as BottomSheet, Box, CompoundButton as Button, Calendar, Card$1 as Card, index$7 as Carousel, Checkbox, Chip, Collapse, ContentNavigator, DatePicker, Divider, index$6 as Drawer, Empty, Error$1 as Error, FAB, FlatListWithFAB, HeroDesignProvider, Icon, Image, List, PageControl, PinInput, Portal$1 as Portal, Progress, CompoundRadio as Radio, Rate, RefreshControl, index as RichTextEditor, ScrollViewWithFAB, SectionHeading, SectionListWithFAB, index$4 as Select, Skeleton, Slider, Spinner, Success, index$5 as Swipeable, index$3 as Switch, index$2 as Tabs, Tag, TextInput, ThemeProvider, ThemeSwitcher, TimePicker, Toast, index$1 as Toolbar, Typography, eBensSystemPalette, getTheme$1 as getTheme, jobsSystemPalette, scale, swagDarkSystemPalette, swagSystemPalette, defaultTheme as theme, useAvatarColors, useTheme, walletSystemPalette, withTheme, workSystemPalette };
35846
+ export { Accordion, Alert, Attachment, index$8 as Avatar, Badge$1 as Badge, BottomNavigation, BottomSheet$1 as BottomSheet, Box, CompoundButton as Button, Calendar, Card$1 as Card, index$7 as Carousel, Checkbox, Chip, Collapse, ContentNavigator, DatePicker, Divider, index$6 as Drawer, Empty, ErrorComponent as Error, FAB, FlatListWithFAB, HeroDesignProvider, Icon, Image, List, PageControl, PinInput, Portal$1 as Portal, Progress, CompoundRadio as Radio, Rate, RefreshControl, index as RichTextEditor, ScrollViewWithFAB, SectionHeading, SectionListWithFAB, index$4 as Select, Skeleton, Slider, Spinner, Success, index$5 as Swipeable, index$3 as Switch, index$2 as Tabs, Tag, TextInput, ThemeProvider, ThemeSwitcher, TimePicker, Toast, index$1 as Toolbar, Typography, eBensSystemPalette, getTheme$1 as getTheme, jobsSystemPalette, scale, swagDarkSystemPalette, swagSystemPalette, defaultTheme as theme, useAvatarColors, useTheme, walletSystemPalette, withTheme, workSystemPalette };
package/lib/index.js CHANGED
@@ -14371,7 +14371,7 @@ var ErrorPage = function ErrorPage(_ref) {
14371
14371
  * @param {ErrorProps}
14372
14372
  * @return {*} {ReactElement}
14373
14373
  */
14374
- var Error$1 = function Error(_ref2) {
14374
+ var ErrorComponent = function ErrorComponent(_ref2) {
14375
14375
  var _ref2$visible = _ref2.visible,
14376
14376
  visible = _ref2$visible === void 0 ? true : _ref2$visible,
14377
14377
  _ref2$variant = _ref2.variant,
@@ -17868,6 +17868,7 @@ var useIsFocused = function useIsFocused() {
17868
17868
  return isFocused;
17869
17869
  };
17870
17870
 
17871
+ var AnimatedPagerView$1 = reactNative.Animated.createAnimatedComponent(PagerView__default["default"]);
17871
17872
  var ScrollableTab = function ScrollableTab(_ref) {
17872
17873
  var onTabPress = _ref.onTabPress,
17873
17874
  selectedTabKey = _ref.selectedTabKey,
@@ -17925,7 +17926,7 @@ var ScrollableTab = function ScrollableTab(_ref) {
17925
17926
  insets: insets,
17926
17927
  testID: componentTestID ? "".concat(componentTestID, "-tab-bar") : undefined,
17927
17928
  variant: variant
17928
- }), /*#__PURE__*/React__default["default"].createElement(PagerView__default["default"], {
17929
+ }), /*#__PURE__*/React__default["default"].createElement(AnimatedPagerView$1, {
17929
17930
  useNext: true,
17930
17931
  initialPage: selectedTabIndex,
17931
17932
  ref: pagerViewRef,
@@ -35892,7 +35893,7 @@ exports.DatePicker = DatePicker;
35892
35893
  exports.Divider = Divider;
35893
35894
  exports.Drawer = index$6;
35894
35895
  exports.Empty = Empty;
35895
- exports.Error = Error$1;
35896
+ exports.Error = ErrorComponent;
35896
35897
  exports.FAB = FAB;
35897
35898
  exports.FlatListWithFAB = FlatListWithFAB;
35898
35899
  exports.HeroDesignProvider = HeroDesignProvider;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hero-design/rn",
3
- "version": "8.63.1",
3
+ "version": "8.63.2-alpha.2",
4
4
  "license": "MIT",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -29,7 +29,7 @@
29
29
  },
30
30
  "peerDependencies": {
31
31
  "@hero-design/react-native-month-year-picker": "^8.42.9",
32
- "@react-native-community/datetimepicker": "^3.5.2 || ^7.2.0",
32
+ "@react-native-community/datetimepicker": "^3.5.2 || ^7.6.1",
33
33
  "@react-native-community/slider": "^4.5.1",
34
34
  "react": "18.2.0",
35
35
  "react-native": "^0.73.8",
@@ -49,7 +49,7 @@
49
49
  "@emotion/jest": "^11.11.0",
50
50
  "@hero-design/eslint-plugin": "9.0.0",
51
51
  "@hero-design/react-native-month-year-picker": "^8.42.9",
52
- "@react-native-community/datetimepicker": "7.2.0",
52
+ "@react-native-community/datetimepicker": "7.6.1",
53
53
  "@react-native-community/slider": "^4.5.1",
54
54
  "@rollup/plugin-babel": "^5.3.1",
55
55
  "@rollup/plugin-commonjs": "^21.0.1",
@@ -159,7 +159,7 @@ const ErrorPage = ({
159
159
  * @param {ErrorProps}
160
160
  * @return {*} {ReactElement}
161
161
  */
162
- const Error = ({
162
+ const ErrorComponent = ({
163
163
  visible = true,
164
164
  variant = 'in-page',
165
165
  title,
@@ -257,4 +257,4 @@ const Error = ({
257
257
  );
258
258
  };
259
259
 
260
- export default Error;
260
+ export default ErrorComponent;
@@ -1,6 +1,7 @@
1
1
  import React, { useRef } from 'react';
2
2
  import { useSafeAreaInsets } from 'react-native-safe-area-context';
3
3
  import PagerView from 'react-native-pager-view';
4
+ import { Animated } from 'react-native';
4
5
  import { TabContainer } from './StyledScrollableTabs';
5
6
  import type { TabsProps } from '.';
6
7
  import SceneView from './SceneView';
@@ -11,6 +12,8 @@ export interface ScrollableTabProps extends TabsProps {
11
12
  variant?: 'underlined' | 'highlighted';
12
13
  }
13
14
 
15
+ const AnimatedPagerView = Animated.createAnimatedComponent(PagerView);
16
+
14
17
  const ScrollableTab = ({
15
18
  onTabPress,
16
19
  selectedTabKey,
@@ -68,7 +71,7 @@ const ScrollableTab = ({
68
71
  testID={componentTestID ? `${componentTestID}-tab-bar` : undefined}
69
72
  variant={variant}
70
73
  />
71
- <PagerView
74
+ <AnimatedPagerView
72
75
  useNext
73
76
  initialPage={selectedTabIndex}
74
77
  ref={pagerViewRef}
@@ -109,7 +112,7 @@ const ScrollableTab = ({
109
112
  </ScreenContext.Provider>
110
113
  );
111
114
  })}
112
- </PagerView>
115
+ </AnimatedPagerView>
113
116
  </TabContainer>
114
117
  </TabContext.Provider>
115
118
  );
@@ -52,5 +52,5 @@ interface ErrorProps extends ViewProps {
52
52
  * @param {ErrorProps}
53
53
  * @return {*} {ReactElement}
54
54
  */
55
- declare const Error: ({ visible, variant, title, description, image, testID, ctaText, onCtaPress, secondaryCtaText, onSecondaryCtaPress, ...nativeProps }: ErrorProps) => ReactElement;
56
- export default Error;
55
+ declare const ErrorComponent: ({ visible, variant, title, description, image, testID, ctaText, onCtaPress, secondaryCtaText, onSecondaryCtaPress, ...nativeProps }: ErrorProps) => ReactElement;
56
+ export default ErrorComponent;
@@ -1,5 +0,0 @@
1
- 
2
- src/index.ts → lib/index.js, es/index.js...
3
- (!) 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`.
4
- (!) 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
5
- created lib/index.js, es/index.js in 1m 0.7s