@hero-design/rn 8.91.5 → 8.91.6-alpha.0
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 +17 -8
- package/lib/index.js +17 -8
- package/package.json +1 -1
- package/src/components/FAB/ActionGroup/StyledActionGroup.tsx +12 -2
- package/src/components/FAB/ActionGroup/index.tsx +13 -2
- package/types/components/FAB/ActionGroup/StyledActionGroup.d.ts +6 -2
- package/types/theme/global/shadows/shadows.d.ts +9 -0
- package/types/theme/global/shadows.d.ts +16 -0
- package/.turbo/turbo-build.log +0 -13
package/es/index.js
CHANGED
|
@@ -9775,7 +9775,7 @@ var Divider = function Divider(_ref) {
|
|
|
9775
9775
|
}));
|
|
9776
9776
|
};
|
|
9777
9777
|
|
|
9778
|
-
var AnimatedPressable$
|
|
9778
|
+
var AnimatedPressable$1 = Animated.createAnimatedComponent(Pressable);
|
|
9779
9779
|
var AnimatedSafeAreaView = Animated.createAnimatedComponent(SafeAreaView);
|
|
9780
9780
|
var StyledWrapper$a = index$a(View)(_objectSpread2(_objectSpread2({}, StyleSheet$1.absoluteFillObject), {}, {
|
|
9781
9781
|
flexDirection: 'column-reverse'
|
|
@@ -9812,7 +9812,7 @@ var StyledBottomSheet = index$a(AnimatedSafeAreaView)(function (_ref3) {
|
|
|
9812
9812
|
maxHeight: '94%'
|
|
9813
9813
|
};
|
|
9814
9814
|
});
|
|
9815
|
-
var StyledBackdrop$2 = index$a(AnimatedPressable$
|
|
9815
|
+
var StyledBackdrop$2 = index$a(AnimatedPressable$1)(function (_ref4) {
|
|
9816
9816
|
var theme = _ref4.theme;
|
|
9817
9817
|
return _objectSpread2(_objectSpread2({}, StyleSheet$1.absoluteFillObject), {}, {
|
|
9818
9818
|
backgroundColor: theme.__hd__.bottomSheet.colors.backdrop,
|
|
@@ -15335,7 +15335,7 @@ var DatePicker = function DatePicker(_ref) {
|
|
|
15335
15335
|
}));
|
|
15336
15336
|
};
|
|
15337
15337
|
|
|
15338
|
-
var AnimatedPressable
|
|
15338
|
+
var AnimatedPressable = Animated.createAnimatedComponent(Pressable);
|
|
15339
15339
|
var StyledContainer$5 = index$a(View)(function (_ref) {
|
|
15340
15340
|
var theme = _ref.theme,
|
|
15341
15341
|
enableShadow = _ref.enableShadow;
|
|
@@ -15363,7 +15363,7 @@ var StyledDragableContainer = index$a(View)(function (_ref2) {
|
|
|
15363
15363
|
flexDirection: 'column-reverse'
|
|
15364
15364
|
});
|
|
15365
15365
|
});
|
|
15366
|
-
var StyledBackdrop$1 = index$a(AnimatedPressable
|
|
15366
|
+
var StyledBackdrop$1 = index$a(AnimatedPressable)(function (_ref3) {
|
|
15367
15367
|
var theme = _ref3.theme;
|
|
15368
15368
|
return _objectSpread2(_objectSpread2({}, StyleSheet$1.absoluteFillObject), {}, {
|
|
15369
15369
|
backgroundColor: theme.__hd__.drawer.colors.backdrop
|
|
@@ -16552,8 +16552,17 @@ var StyledFAB$1 = index$a(FAB$1)(function (_ref) {
|
|
|
16552
16552
|
alignSelf: 'flex-end'
|
|
16553
16553
|
};
|
|
16554
16554
|
});
|
|
16555
|
-
var
|
|
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
16566
|
var theme = _ref2.theme;
|
|
16558
16567
|
return {
|
|
16559
16568
|
position: 'absolute',
|
|
@@ -16639,10 +16648,10 @@ var ActionGroup = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
16639
16648
|
}, /*#__PURE__*/React__default.createElement(StyledContainerInModal, {
|
|
16640
16649
|
testID: testID,
|
|
16641
16650
|
style: [style]
|
|
16642
|
-
}, /*#__PURE__*/React__default.createElement(
|
|
16651
|
+
}, /*#__PURE__*/React__default.createElement(StyledBackdropPressable, {
|
|
16643
16652
|
testID: "back-drop",
|
|
16644
16653
|
onPress: onBackdropPress
|
|
16645
|
-
}), /*#__PURE__*/React__default.createElement(StyledActionGroupContainer, {
|
|
16654
|
+
}, active && /*#__PURE__*/React__default.createElement(Portal$1, null, /*#__PURE__*/React__default.createElement(StyledBackdrop, null))), /*#__PURE__*/React__default.createElement(StyledActionGroupContainer, {
|
|
16646
16655
|
testID: "action-group",
|
|
16647
16656
|
pointerEvents: "box-none",
|
|
16648
16657
|
style: {
|
package/lib/index.js
CHANGED
|
@@ -9803,7 +9803,7 @@ var Divider = function Divider(_ref) {
|
|
|
9803
9803
|
}));
|
|
9804
9804
|
};
|
|
9805
9805
|
|
|
9806
|
-
var AnimatedPressable$
|
|
9806
|
+
var AnimatedPressable$1 = reactNative.Animated.createAnimatedComponent(reactNative.Pressable);
|
|
9807
9807
|
var AnimatedSafeAreaView = reactNative.Animated.createAnimatedComponent(reactNative.SafeAreaView);
|
|
9808
9808
|
var StyledWrapper$a = index$a(reactNative.View)(_objectSpread2(_objectSpread2({}, reactNative.StyleSheet.absoluteFillObject), {}, {
|
|
9809
9809
|
flexDirection: 'column-reverse'
|
|
@@ -9840,7 +9840,7 @@ var StyledBottomSheet = index$a(AnimatedSafeAreaView)(function (_ref3) {
|
|
|
9840
9840
|
maxHeight: '94%'
|
|
9841
9841
|
};
|
|
9842
9842
|
});
|
|
9843
|
-
var StyledBackdrop$2 = index$a(AnimatedPressable$
|
|
9843
|
+
var StyledBackdrop$2 = index$a(AnimatedPressable$1)(function (_ref4) {
|
|
9844
9844
|
var theme = _ref4.theme;
|
|
9845
9845
|
return _objectSpread2(_objectSpread2({}, reactNative.StyleSheet.absoluteFillObject), {}, {
|
|
9846
9846
|
backgroundColor: theme.__hd__.bottomSheet.colors.backdrop,
|
|
@@ -15363,7 +15363,7 @@ var DatePicker = function DatePicker(_ref) {
|
|
|
15363
15363
|
}));
|
|
15364
15364
|
};
|
|
15365
15365
|
|
|
15366
|
-
var AnimatedPressable
|
|
15366
|
+
var AnimatedPressable = reactNative.Animated.createAnimatedComponent(reactNative.Pressable);
|
|
15367
15367
|
var StyledContainer$5 = index$a(reactNative.View)(function (_ref) {
|
|
15368
15368
|
var theme = _ref.theme,
|
|
15369
15369
|
enableShadow = _ref.enableShadow;
|
|
@@ -15391,7 +15391,7 @@ var StyledDragableContainer = index$a(reactNative.View)(function (_ref2) {
|
|
|
15391
15391
|
flexDirection: 'column-reverse'
|
|
15392
15392
|
});
|
|
15393
15393
|
});
|
|
15394
|
-
var StyledBackdrop$1 = index$a(AnimatedPressable
|
|
15394
|
+
var StyledBackdrop$1 = index$a(AnimatedPressable)(function (_ref3) {
|
|
15395
15395
|
var theme = _ref3.theme;
|
|
15396
15396
|
return _objectSpread2(_objectSpread2({}, reactNative.StyleSheet.absoluteFillObject), {}, {
|
|
15397
15397
|
backgroundColor: theme.__hd__.drawer.colors.backdrop
|
|
@@ -16580,8 +16580,17 @@ var StyledFAB$1 = index$a(FAB$1)(function (_ref) {
|
|
|
16580
16580
|
alignSelf: 'flex-end'
|
|
16581
16581
|
};
|
|
16582
16582
|
});
|
|
16583
|
-
var
|
|
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
16594
|
var theme = _ref2.theme;
|
|
16586
16595
|
return {
|
|
16587
16596
|
position: 'absolute',
|
|
@@ -16667,10 +16676,10 @@ var ActionGroup = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
16667
16676
|
}, /*#__PURE__*/React__namespace.default.createElement(StyledContainerInModal, {
|
|
16668
16677
|
testID: testID,
|
|
16669
16678
|
style: [style]
|
|
16670
|
-
}, /*#__PURE__*/React__namespace.default.createElement(
|
|
16679
|
+
}, /*#__PURE__*/React__namespace.default.createElement(StyledBackdropPressable, {
|
|
16671
16680
|
testID: "back-drop",
|
|
16672
16681
|
onPress: onBackdropPress
|
|
16673
|
-
}), /*#__PURE__*/React__namespace.default.createElement(StyledActionGroupContainer, {
|
|
16682
|
+
}, active && /*#__PURE__*/React__namespace.default.createElement(Portal$1, null, /*#__PURE__*/React__namespace.default.createElement(StyledBackdrop, null))), /*#__PURE__*/React__namespace.default.createElement(StyledActionGroupContainer, {
|
|
16674
16683
|
testID: "action-group",
|
|
16675
16684
|
pointerEvents: "box-none",
|
|
16676
16685
|
style: {
|
package/package.json
CHANGED
|
@@ -3,6 +3,7 @@ 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';
|
|
6
7
|
|
|
7
8
|
const StyledContainer = styled(View)<ViewProps>({
|
|
8
9
|
position: 'absolute',
|
|
@@ -38,8 +39,16 @@ const StyledFAB = styled(FAB)(({ theme }) => ({
|
|
|
38
39
|
alignSelf: 'flex-end',
|
|
39
40
|
}));
|
|
40
41
|
|
|
41
|
-
const
|
|
42
|
-
|
|
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 }) => ({
|
|
43
52
|
position: 'absolute',
|
|
44
53
|
left: 0,
|
|
45
54
|
right: 0,
|
|
@@ -52,6 +61,7 @@ const StyledBackdrop = styled(AnimatedPressable)(({ theme }) => ({
|
|
|
52
61
|
export {
|
|
53
62
|
StyledActionGroupContainer,
|
|
54
63
|
StyledBackdrop,
|
|
64
|
+
StyledBackdropPressable,
|
|
55
65
|
StyledContainer,
|
|
56
66
|
StyledContainerInModal,
|
|
57
67
|
StyledFAB,
|
|
@@ -7,11 +7,12 @@ import ActionItem from './ActionItem';
|
|
|
7
7
|
import {
|
|
8
8
|
StyledActionGroupContainer,
|
|
9
9
|
StyledBackdrop,
|
|
10
|
+
StyledBackdropPressable,
|
|
10
11
|
StyledContainer,
|
|
11
12
|
StyledContainerInModal,
|
|
12
13
|
StyledFAB,
|
|
13
14
|
} from './StyledActionGroup';
|
|
14
|
-
|
|
15
|
+
import { Portal } from '../../../';
|
|
15
16
|
import Box from '../../Box';
|
|
16
17
|
import { FABHandles } from '../FAB';
|
|
17
18
|
import { useDeprecation } from '../../../utils/hooks';
|
|
@@ -151,7 +152,17 @@ const ActionGroup = forwardRef<ActionGroupHandles, ActionGroupProps>(
|
|
|
151
152
|
supportedOrientations={supportedOrientations}
|
|
152
153
|
>
|
|
153
154
|
<StyledContainerInModal testID={testID} style={[style]}>
|
|
154
|
-
<
|
|
155
|
+
<StyledBackdropPressable
|
|
156
|
+
testID="back-drop"
|
|
157
|
+
onPress={onBackdropPress}
|
|
158
|
+
>
|
|
159
|
+
{active && (
|
|
160
|
+
<Portal>
|
|
161
|
+
<StyledBackdrop />
|
|
162
|
+
</Portal>
|
|
163
|
+
)}
|
|
164
|
+
</StyledBackdropPressable>
|
|
165
|
+
|
|
155
166
|
<StyledActionGroupContainer
|
|
156
167
|
testID="action-group"
|
|
157
168
|
pointerEvents="box-none"
|
|
@@ -20,8 +20,12 @@ declare const StyledFAB: import("@emotion/native").StyledComponent<import("../FA
|
|
|
20
20
|
theme?: import("@emotion/react").Theme;
|
|
21
21
|
as?: React.ElementType;
|
|
22
22
|
}, {}, {}>;
|
|
23
|
-
declare const
|
|
23
|
+
declare const StyledBackdropPressable: import("@emotion/native").StyledComponent<import("react-native").PressableProps & import("react").RefAttributes<View> & {
|
|
24
24
|
theme?: import("@emotion/react").Theme;
|
|
25
25
|
as?: React.ElementType;
|
|
26
26
|
}, {}, {}>;
|
|
27
|
-
|
|
27
|
+
declare const StyledBackdrop: import("@emotion/native").StyledComponent<import("../../Box").BoxProps & {
|
|
28
|
+
theme?: import("@emotion/react").Theme;
|
|
29
|
+
as?: React.ElementType;
|
|
30
|
+
}, {}, {}>;
|
|
31
|
+
export { StyledActionGroupContainer, StyledBackdrop, StyledBackdropPressable, StyledContainer, StyledContainerInModal, StyledFAB, };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ShadowPalette } from './types';
|
|
2
|
+
declare const getShadows: (shadowPalette: ShadowPalette) => {
|
|
3
|
+
default: import('./types').ShadowStyles;
|
|
4
|
+
default: import('./types').ShadowStyles;
|
|
5
|
+
medium: import('./types').ShadowStyles;
|
|
6
|
+
};
|
|
7
|
+
type Shadows = ReturnType<typeof getShadows>;
|
|
8
|
+
export { getShadows };
|
|
9
|
+
export type { Shadows };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { SystemPalette } from '.';
|
|
2
|
+
declare const getShadows: (systemPalette: SystemPalette) => {
|
|
3
|
+
default: {
|
|
4
|
+
shadowOffset: {
|
|
5
|
+
width: number;
|
|
6
|
+
height: number;
|
|
7
|
+
};
|
|
8
|
+
shadowColor: string;
|
|
9
|
+
shadowOpacity: number;
|
|
10
|
+
shadowRadius: number;
|
|
11
|
+
elevation: number;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
type Shadows = ReturnType<typeof getShadows>;
|
|
15
|
+
export { getShadows };
|
|
16
|
+
export type { Shadows };
|
package/.turbo/turbo-build.log
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
(node:2995) 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
|
-
[36m
|
|
4
|
-
[1msrc/index.ts[22m → [1mlib/index.js, es/index.js[22m...[39m
|
|
5
|
-
[1m[33m(!) [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`.[39m[22m
|
|
6
|
-
[1m[33m(!) [plugin typescript] src/components/RichTextEditor/__tests__/RichTextEditor.spec.tsx (61:35): @rollup/plugin-typescript TS2307: Cannot find module '../../../../types' or its corresponding type declarations.[39m[22m
|
|
7
|
-
[1m/home/runner/work/hero-design/hero-design/packages/rn/src/components/RichTextEditor/__tests__/RichTextEditor.spec.tsx:61:35[22m
|
|
8
|
-
[90m
|
|
9
|
-
[7m61[0m import { RichTextEditorRef } from "../../../../types";
|
|
10
|
-
[7m [0m [91m ~~~~~~~~~~~~~~~~~~~[0m
|
|
11
|
-
[39m
|
|
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 [1m52.7s[22m[39m
|