@hero-design/rn 8.91.6-alpha.0 → 8.91.6

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.
@@ -0,0 +1,13 @@
1
+ (node:3010) ExperimentalWarning: Importing JSON modules is an experimental feature and might change at any time
2
+ (Use `node --trace-warnings ...` to show where the warning was created)
3
+ 
4
+ src/index.ts → lib/index.js, es/index.js...
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
+ (!) [plugin typescript] src/components/RichTextEditor/__tests__/RichTextEditor.spec.tsx (61:35): @rollup/plugin-typescript TS2307: Cannot find module '../../../../types' or its corresponding type declarations.
7
+ /home/runner/work/hero-design/hero-design/packages/rn/src/components/RichTextEditor/__tests__/RichTextEditor.spec.tsx:61:35
8
+ 
9
+ 61 import { RichTextEditorRef } from "../../../../types";
10
+    ~~~~~~~~~~~~~~~~~~~
11
+ 
12
+ (!) [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.
13
+ created lib/index.js, es/index.js in 53.8s
package/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # @hero-design/rn
2
2
 
3
+ ## 8.91.6
4
+
5
+ ### Patch Changes
6
+
7
+ - [#3713](https://github.com/Thinkei/hero-design/pull/3713) [`b7507e15becc17873237f8fee829149399a0641b`](https://github.com/Thinkei/hero-design/commit/b7507e15becc17873237f8fee829149399a0641b) Thanks [@ttkien](https://github.com/ttkien)! - [Error] make image center
8
+
9
+ - Updated dependencies [[`4f07a745f50ba5470df6a3b16eb57fcdf52f755c`](https://github.com/Thinkei/hero-design/commit/4f07a745f50ba5470df6a3b16eb57fcdf52f755c)]:
10
+ - @hero-design/colors@8.45.3
11
+
3
12
  ## 8.91.5
4
13
 
5
14
  ### Patch Changes
package/es/index.js CHANGED
@@ -1530,6 +1530,7 @@ var palette$c = {
1530
1530
  purpleLight30: purple$1.lighten30,
1531
1531
  purpleLight45: purple$1.lighten45,
1532
1532
  purpleLight75: purple$1.lighten75,
1533
+ purpleLight90: purple$1.lighten90,
1533
1534
  red: vermilion$2.base,
1534
1535
  redDark15: vermilion$2.darken15,
1535
1536
  redDark30: vermilion$2.darken30,
@@ -9775,7 +9776,7 @@ var Divider = function Divider(_ref) {
9775
9776
  }));
9776
9777
  };
9777
9778
 
9778
- var AnimatedPressable$1 = Animated.createAnimatedComponent(Pressable);
9779
+ var AnimatedPressable$2 = Animated.createAnimatedComponent(Pressable);
9779
9780
  var AnimatedSafeAreaView = Animated.createAnimatedComponent(SafeAreaView);
9780
9781
  var StyledWrapper$a = index$a(View)(_objectSpread2(_objectSpread2({}, StyleSheet$1.absoluteFillObject), {}, {
9781
9782
  flexDirection: 'column-reverse'
@@ -9812,7 +9813,7 @@ var StyledBottomSheet = index$a(AnimatedSafeAreaView)(function (_ref3) {
9812
9813
  maxHeight: '94%'
9813
9814
  };
9814
9815
  });
9815
- var StyledBackdrop$2 = index$a(AnimatedPressable$1)(function (_ref4) {
9816
+ var StyledBackdrop$2 = index$a(AnimatedPressable$2)(function (_ref4) {
9816
9817
  var theme = _ref4.theme;
9817
9818
  return _objectSpread2(_objectSpread2({}, StyleSheet$1.absoluteFillObject), {}, {
9818
9819
  backgroundColor: theme.__hd__.bottomSheet.colors.backdrop,
@@ -15335,7 +15336,7 @@ var DatePicker = function DatePicker(_ref) {
15335
15336
  }));
15336
15337
  };
15337
15338
 
15338
- var AnimatedPressable = Animated.createAnimatedComponent(Pressable);
15339
+ var AnimatedPressable$1 = Animated.createAnimatedComponent(Pressable);
15339
15340
  var StyledContainer$5 = index$a(View)(function (_ref) {
15340
15341
  var theme = _ref.theme,
15341
15342
  enableShadow = _ref.enableShadow;
@@ -15363,7 +15364,7 @@ var StyledDragableContainer = index$a(View)(function (_ref2) {
15363
15364
  flexDirection: 'column-reverse'
15364
15365
  });
15365
15366
  });
15366
- var StyledBackdrop$1 = index$a(AnimatedPressable)(function (_ref3) {
15367
+ var StyledBackdrop$1 = index$a(AnimatedPressable$1)(function (_ref3) {
15367
15368
  var theme = _ref3.theme;
15368
15369
  return _objectSpread2(_objectSpread2({}, StyleSheet$1.absoluteFillObject), {}, {
15369
15370
  backgroundColor: theme.__hd__.drawer.colors.backdrop
@@ -16058,7 +16059,8 @@ var StyledErrorImageContainer = index$a(View)(function (_ref6) {
16058
16059
  return {
16059
16060
  marginBottom: theme.__hd__.error.space.imageMarginBottom,
16060
16061
  width: theme.__hd__.error.sizes.image,
16061
- height: theme.__hd__.error.sizes.image
16062
+ height: theme.__hd__.error.sizes.image,
16063
+ alignItems: 'center'
16062
16064
  };
16063
16065
  });
16064
16066
  var StyledErrorImage = index$a(Image)(function (_ref7) {
@@ -16552,17 +16554,8 @@ var StyledFAB$1 = index$a(FAB$1)(function (_ref) {
16552
16554
  alignSelf: 'flex-end'
16553
16555
  };
16554
16556
  });
16555
- var StyledBackdropPressable = index$a(Pressable)(function () {
16556
- return {
16557
- position: 'absolute',
16558
- left: 0,
16559
- right: 0,
16560
- top: 0,
16561
- bottom: 0,
16562
- backgroundColor: 'transparent'
16563
- };
16564
- });
16565
- var StyledBackdrop = index$a(Box)(function (_ref2) {
16557
+ var AnimatedPressable = Animated.createAnimatedComponent(Pressable);
16558
+ var StyledBackdrop = index$a(AnimatedPressable)(function (_ref2) {
16566
16559
  var theme = _ref2.theme;
16567
16560
  return {
16568
16561
  position: 'absolute',
@@ -16648,10 +16641,10 @@ var ActionGroup = /*#__PURE__*/forwardRef(function (_ref, ref) {
16648
16641
  }, /*#__PURE__*/React__default.createElement(StyledContainerInModal, {
16649
16642
  testID: testID,
16650
16643
  style: [style]
16651
- }, /*#__PURE__*/React__default.createElement(StyledBackdropPressable, {
16644
+ }, /*#__PURE__*/React__default.createElement(StyledBackdrop, {
16652
16645
  testID: "back-drop",
16653
16646
  onPress: onBackdropPress
16654
- }, active && /*#__PURE__*/React__default.createElement(Portal$1, null, /*#__PURE__*/React__default.createElement(StyledBackdrop, null))), /*#__PURE__*/React__default.createElement(StyledActionGroupContainer, {
16647
+ }), /*#__PURE__*/React__default.createElement(StyledActionGroupContainer, {
16655
16648
  testID: "action-group",
16656
16649
  pointerEvents: "box-none",
16657
16650
  style: {
@@ -19293,7 +19286,8 @@ var StyledSuccessImageContainer = index$a(View)(function (_ref4) {
19293
19286
  return {
19294
19287
  marginBottom: theme.__hd__.success.space.imageMarginBottom,
19295
19288
  width: theme.__hd__.success.sizes.image,
19296
- height: theme.__hd__.success.sizes.image
19289
+ height: theme.__hd__.success.sizes.image,
19290
+ alignItems: 'center'
19297
19291
  };
19298
19292
  });
19299
19293
  var StyledSuccessTitle = index$a(Typography.Title)(function (_ref5) {
package/lib/index.js CHANGED
@@ -1558,6 +1558,7 @@ var palette$c = {
1558
1558
  purpleLight30: purple$1.lighten30,
1559
1559
  purpleLight45: purple$1.lighten45,
1560
1560
  purpleLight75: purple$1.lighten75,
1561
+ purpleLight90: purple$1.lighten90,
1561
1562
  red: vermilion$2.base,
1562
1563
  redDark15: vermilion$2.darken15,
1563
1564
  redDark30: vermilion$2.darken30,
@@ -9803,7 +9804,7 @@ var Divider = function Divider(_ref) {
9803
9804
  }));
9804
9805
  };
9805
9806
 
9806
- var AnimatedPressable$1 = reactNative.Animated.createAnimatedComponent(reactNative.Pressable);
9807
+ var AnimatedPressable$2 = reactNative.Animated.createAnimatedComponent(reactNative.Pressable);
9807
9808
  var AnimatedSafeAreaView = reactNative.Animated.createAnimatedComponent(reactNative.SafeAreaView);
9808
9809
  var StyledWrapper$a = index$a(reactNative.View)(_objectSpread2(_objectSpread2({}, reactNative.StyleSheet.absoluteFillObject), {}, {
9809
9810
  flexDirection: 'column-reverse'
@@ -9840,7 +9841,7 @@ var StyledBottomSheet = index$a(AnimatedSafeAreaView)(function (_ref3) {
9840
9841
  maxHeight: '94%'
9841
9842
  };
9842
9843
  });
9843
- var StyledBackdrop$2 = index$a(AnimatedPressable$1)(function (_ref4) {
9844
+ var StyledBackdrop$2 = index$a(AnimatedPressable$2)(function (_ref4) {
9844
9845
  var theme = _ref4.theme;
9845
9846
  return _objectSpread2(_objectSpread2({}, reactNative.StyleSheet.absoluteFillObject), {}, {
9846
9847
  backgroundColor: theme.__hd__.bottomSheet.colors.backdrop,
@@ -15363,7 +15364,7 @@ var DatePicker = function DatePicker(_ref) {
15363
15364
  }));
15364
15365
  };
15365
15366
 
15366
- var AnimatedPressable = reactNative.Animated.createAnimatedComponent(reactNative.Pressable);
15367
+ var AnimatedPressable$1 = reactNative.Animated.createAnimatedComponent(reactNative.Pressable);
15367
15368
  var StyledContainer$5 = index$a(reactNative.View)(function (_ref) {
15368
15369
  var theme = _ref.theme,
15369
15370
  enableShadow = _ref.enableShadow;
@@ -15391,7 +15392,7 @@ var StyledDragableContainer = index$a(reactNative.View)(function (_ref2) {
15391
15392
  flexDirection: 'column-reverse'
15392
15393
  });
15393
15394
  });
15394
- var StyledBackdrop$1 = index$a(AnimatedPressable)(function (_ref3) {
15395
+ var StyledBackdrop$1 = index$a(AnimatedPressable$1)(function (_ref3) {
15395
15396
  var theme = _ref3.theme;
15396
15397
  return _objectSpread2(_objectSpread2({}, reactNative.StyleSheet.absoluteFillObject), {}, {
15397
15398
  backgroundColor: theme.__hd__.drawer.colors.backdrop
@@ -16086,7 +16087,8 @@ var StyledErrorImageContainer = index$a(reactNative.View)(function (_ref6) {
16086
16087
  return {
16087
16088
  marginBottom: theme.__hd__.error.space.imageMarginBottom,
16088
16089
  width: theme.__hd__.error.sizes.image,
16089
- height: theme.__hd__.error.sizes.image
16090
+ height: theme.__hd__.error.sizes.image,
16091
+ alignItems: 'center'
16090
16092
  };
16091
16093
  });
16092
16094
  var StyledErrorImage = index$a(Image)(function (_ref7) {
@@ -16580,17 +16582,8 @@ var StyledFAB$1 = index$a(FAB$1)(function (_ref) {
16580
16582
  alignSelf: 'flex-end'
16581
16583
  };
16582
16584
  });
16583
- var StyledBackdropPressable = index$a(reactNative.Pressable)(function () {
16584
- return {
16585
- position: 'absolute',
16586
- left: 0,
16587
- right: 0,
16588
- top: 0,
16589
- bottom: 0,
16590
- backgroundColor: 'transparent'
16591
- };
16592
- });
16593
- var StyledBackdrop = index$a(Box)(function (_ref2) {
16585
+ var AnimatedPressable = reactNative.Animated.createAnimatedComponent(reactNative.Pressable);
16586
+ var StyledBackdrop = index$a(AnimatedPressable)(function (_ref2) {
16594
16587
  var theme = _ref2.theme;
16595
16588
  return {
16596
16589
  position: 'absolute',
@@ -16676,10 +16669,10 @@ var ActionGroup = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
16676
16669
  }, /*#__PURE__*/React__namespace.default.createElement(StyledContainerInModal, {
16677
16670
  testID: testID,
16678
16671
  style: [style]
16679
- }, /*#__PURE__*/React__namespace.default.createElement(StyledBackdropPressable, {
16672
+ }, /*#__PURE__*/React__namespace.default.createElement(StyledBackdrop, {
16680
16673
  testID: "back-drop",
16681
16674
  onPress: onBackdropPress
16682
- }, active && /*#__PURE__*/React__namespace.default.createElement(Portal$1, null, /*#__PURE__*/React__namespace.default.createElement(StyledBackdrop, null))), /*#__PURE__*/React__namespace.default.createElement(StyledActionGroupContainer, {
16675
+ }), /*#__PURE__*/React__namespace.default.createElement(StyledActionGroupContainer, {
16683
16676
  testID: "action-group",
16684
16677
  pointerEvents: "box-none",
16685
16678
  style: {
@@ -19321,7 +19314,8 @@ var StyledSuccessImageContainer = index$a(reactNative.View)(function (_ref4) {
19321
19314
  return {
19322
19315
  marginBottom: theme.__hd__.success.space.imageMarginBottom,
19323
19316
  width: theme.__hd__.success.sizes.image,
19324
- height: theme.__hd__.success.sizes.image
19317
+ height: theme.__hd__.success.sizes.image,
19318
+ alignItems: 'center'
19325
19319
  };
19326
19320
  });
19327
19321
  var StyledSuccessTitle = index$a(Typography.Title)(function (_ref5) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hero-design/rn",
3
- "version": "8.91.6-alpha.0",
3
+ "version": "8.91.6",
4
4
  "license": "MIT",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -22,7 +22,7 @@
22
22
  "@emotion/native": "^11.9.3",
23
23
  "@emotion/primitives-core": "11.0.0",
24
24
  "@emotion/react": "^11.9.3",
25
- "@hero-design/colors": "8.45.2",
25
+ "@hero-design/colors": "8.45.3",
26
26
  "date-fns": "^2.16.1",
27
27
  "hero-editor": "^1.15.5",
28
28
  "nanoid": "^5.0.9"
@@ -55,6 +55,7 @@ const StyledErrorImageContainer = styled(View)(({ theme }) => ({
55
55
  marginBottom: theme.__hd__.error.space.imageMarginBottom,
56
56
  width: theme.__hd__.error.sizes.image,
57
57
  height: theme.__hd__.error.sizes.image,
58
+ alignItems: 'center',
58
59
  }));
59
60
  const StyledErrorImage = styled(Image)(({ theme }) => ({
60
61
  marginBottom: theme.__hd__.error.space.imageMarginBottom,
@@ -41,6 +41,7 @@ exports[`Error renders error screen with custom image element correctly 1`] = `
41
41
  style={
42
42
  [
43
43
  {
44
+ "alignItems": "center",
44
45
  "height": 176,
45
46
  "marginBottom": 24,
46
47
  "width": 176,
@@ -187,6 +188,7 @@ exports[`Error renders error screen with image correctly 1`] = `
187
188
  style={
188
189
  [
189
190
  {
191
+ "alignItems": "center",
190
192
  "height": 176,
191
193
  "marginBottom": 24,
192
194
  "width": 176,
@@ -373,6 +375,7 @@ exports[`Error renders full screen error page correctly 1`] = `
373
375
  style={
374
376
  [
375
377
  {
378
+ "alignItems": "center",
376
379
  "height": 176,
377
380
  "marginBottom": 24,
378
381
  "width": 176,
@@ -3,7 +3,6 @@ import styled from '@emotion/native';
3
3
  import type { ComponentProps } from 'react';
4
4
  import type { ViewProps } from 'react-native';
5
5
  import FAB from '../FAB';
6
- import Box from '../../Box';
7
6
 
8
7
  const StyledContainer = styled(View)<ViewProps>({
9
8
  position: 'absolute',
@@ -39,16 +38,8 @@ const StyledFAB = styled(FAB)(({ theme }) => ({
39
38
  alignSelf: 'flex-end',
40
39
  }));
41
40
 
42
- const StyledBackdropPressable = styled(Pressable)(() => ({
43
- position: 'absolute',
44
- left: 0,
45
- right: 0,
46
- top: 0,
47
- bottom: 0,
48
- backgroundColor: 'transparent',
49
- }));
50
-
51
- const StyledBackdrop = styled(Box)(({ theme }) => ({
41
+ const AnimatedPressable = Animated.createAnimatedComponent(Pressable);
42
+ const StyledBackdrop = styled(AnimatedPressable)(({ theme }) => ({
52
43
  position: 'absolute',
53
44
  left: 0,
54
45
  right: 0,
@@ -61,7 +52,6 @@ const StyledBackdrop = styled(Box)(({ theme }) => ({
61
52
  export {
62
53
  StyledActionGroupContainer,
63
54
  StyledBackdrop,
64
- StyledBackdropPressable,
65
55
  StyledContainer,
66
56
  StyledContainerInModal,
67
57
  StyledFAB,
@@ -7,12 +7,11 @@ import ActionItem from './ActionItem';
7
7
  import {
8
8
  StyledActionGroupContainer,
9
9
  StyledBackdrop,
10
- StyledBackdropPressable,
11
10
  StyledContainer,
12
11
  StyledContainerInModal,
13
12
  StyledFAB,
14
13
  } from './StyledActionGroup';
15
- import { Portal } from '../../../';
14
+
16
15
  import Box from '../../Box';
17
16
  import { FABHandles } from '../FAB';
18
17
  import { useDeprecation } from '../../../utils/hooks';
@@ -152,17 +151,7 @@ const ActionGroup = forwardRef<ActionGroupHandles, ActionGroupProps>(
152
151
  supportedOrientations={supportedOrientations}
153
152
  >
154
153
  <StyledContainerInModal testID={testID} style={[style]}>
155
- <StyledBackdropPressable
156
- testID="back-drop"
157
- onPress={onBackdropPress}
158
- >
159
- {active && (
160
- <Portal>
161
- <StyledBackdrop />
162
- </Portal>
163
- )}
164
- </StyledBackdropPressable>
165
-
154
+ <StyledBackdrop testID="back-drop" onPress={onBackdropPress} />
166
155
  <StyledActionGroupContainer
167
156
  testID="action-group"
168
157
  pointerEvents="box-none"
@@ -39,6 +39,7 @@ const StyledSuccessImageContainer = styled(View)(({ theme }) => ({
39
39
  marginBottom: theme.__hd__.success.space.imageMarginBottom,
40
40
  width: theme.__hd__.success.sizes.image,
41
41
  height: theme.__hd__.success.sizes.image,
42
+ alignItems: 'center',
42
43
  }));
43
44
 
44
45
  const StyledSuccessTitle = styled(Typography.Title)(({ theme }) => ({
@@ -73,6 +73,7 @@ exports[`Success renders full screen success page correctly 1`] = `
73
73
  style={
74
74
  [
75
75
  {
76
+ "alignItems": "center",
76
77
  "height": 176,
77
78
  "marginBottom": 32,
78
79
  "width": 176,
@@ -228,6 +229,7 @@ exports[`Success renders success screen with custom image element correctly 1`]
228
229
  style={
229
230
  [
230
231
  {
232
+ "alignItems": "center",
231
233
  "height": 176,
232
234
  "marginBottom": 32,
233
235
  "width": 176,
@@ -374,6 +376,7 @@ exports[`Success renders success screen with image correctly 1`] = `
374
376
  style={
375
377
  [
376
378
  {
379
+ "alignItems": "center",
377
380
  "height": 176,
378
381
  "marginBottom": 32,
379
382
  "width": 176,