@hero-design/rn 8.35.0-alpha.2 → 8.35.0-alpha.3
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
|
@@ -13874,7 +13874,8 @@ var ActionGroup = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
13874
13874
|
testID = _ref.testID,
|
|
13875
13875
|
fabTitle = _ref.fabTitle,
|
|
13876
13876
|
_ref$fabIcon = _ref.fabIcon,
|
|
13877
|
-
fabIcon = _ref$fabIcon === void 0 ? 'add' : _ref$fabIcon
|
|
13877
|
+
fabIcon = _ref$fabIcon === void 0 ? 'add' : _ref$fabIcon,
|
|
13878
|
+
portalName = _ref.portalName;
|
|
13878
13879
|
var fabRef = useRef(null);
|
|
13879
13880
|
var tranlateXAnimation = useRef(new Animated.Value(active ? 1 : 0));
|
|
13880
13881
|
var titleTranslateYValue = React.useRef(new Animated.Value(0));
|
|
@@ -13915,7 +13916,10 @@ var ActionGroup = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
13915
13916
|
inputRange: [0, 1],
|
|
13916
13917
|
outputRange: [0, 1]
|
|
13917
13918
|
});
|
|
13918
|
-
|
|
13919
|
+
var Wrapper = portalName ? Portal : React.Fragment;
|
|
13920
|
+
return /*#__PURE__*/React.createElement(Wrapper, {
|
|
13921
|
+
name: portalName
|
|
13922
|
+
}, /*#__PURE__*/React.createElement(StyledContainer$2, {
|
|
13919
13923
|
testID: testID,
|
|
13920
13924
|
pointerEvents: "box-none",
|
|
13921
13925
|
style: style
|
|
@@ -13951,7 +13955,9 @@ var ActionGroup = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
13951
13955
|
index: active ? index : items.length - index,
|
|
13952
13956
|
active: active
|
|
13953
13957
|
}));
|
|
13954
|
-
}))), /*#__PURE__*/React.createElement(
|
|
13958
|
+
}))), /*#__PURE__*/React.createElement(Portal, {
|
|
13959
|
+
hostName: "CustomPortalHost"
|
|
13960
|
+
}, /*#__PURE__*/React.createElement(StyledFAB, {
|
|
13955
13961
|
testID: "fab",
|
|
13956
13962
|
icon: fabIcon,
|
|
13957
13963
|
onPress: onPress,
|
|
@@ -13959,12 +13965,15 @@ var ActionGroup = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
13959
13965
|
active: active,
|
|
13960
13966
|
title: fabTitle,
|
|
13961
13967
|
ref: fabRef
|
|
13962
|
-
}));
|
|
13968
|
+
}))));
|
|
13963
13969
|
});
|
|
13964
13970
|
ActionGroup.displayName = 'FAB.ActionGroup';
|
|
13965
13971
|
|
|
13966
13972
|
var index$7 = Object.assign(FAB, {
|
|
13967
|
-
ActionGroup: ActionGroup
|
|
13973
|
+
ActionGroup: ActionGroup,
|
|
13974
|
+
Portal: Portal,
|
|
13975
|
+
PortalHost: PortalHost,
|
|
13976
|
+
Provider: PortalProvider
|
|
13968
13977
|
});
|
|
13969
13978
|
|
|
13970
13979
|
var StyledListItemContainer$1 = index$b(TouchableHighlight)(function (_ref) {
|
package/lib/index.js
CHANGED
|
@@ -13905,7 +13905,8 @@ var ActionGroup = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
13905
13905
|
testID = _ref.testID,
|
|
13906
13906
|
fabTitle = _ref.fabTitle,
|
|
13907
13907
|
_ref$fabIcon = _ref.fabIcon,
|
|
13908
|
-
fabIcon = _ref$fabIcon === void 0 ? 'add' : _ref$fabIcon
|
|
13908
|
+
fabIcon = _ref$fabIcon === void 0 ? 'add' : _ref$fabIcon,
|
|
13909
|
+
portalName = _ref.portalName;
|
|
13909
13910
|
var fabRef = React.useRef(null);
|
|
13910
13911
|
var tranlateXAnimation = React.useRef(new reactNative.Animated.Value(active ? 1 : 0));
|
|
13911
13912
|
var titleTranslateYValue = React__default["default"].useRef(new reactNative.Animated.Value(0));
|
|
@@ -13946,7 +13947,10 @@ var ActionGroup = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
13946
13947
|
inputRange: [0, 1],
|
|
13947
13948
|
outputRange: [0, 1]
|
|
13948
13949
|
});
|
|
13949
|
-
|
|
13950
|
+
var Wrapper = portalName ? Portal : React__default["default"].Fragment;
|
|
13951
|
+
return /*#__PURE__*/React__default["default"].createElement(Wrapper, {
|
|
13952
|
+
name: portalName
|
|
13953
|
+
}, /*#__PURE__*/React__default["default"].createElement(StyledContainer$2, {
|
|
13950
13954
|
testID: testID,
|
|
13951
13955
|
pointerEvents: "box-none",
|
|
13952
13956
|
style: style
|
|
@@ -13982,7 +13986,9 @@ var ActionGroup = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
13982
13986
|
index: active ? index : items.length - index,
|
|
13983
13987
|
active: active
|
|
13984
13988
|
}));
|
|
13985
|
-
}))), /*#__PURE__*/React__default["default"].createElement(
|
|
13989
|
+
}))), /*#__PURE__*/React__default["default"].createElement(Portal, {
|
|
13990
|
+
hostName: "CustomPortalHost"
|
|
13991
|
+
}, /*#__PURE__*/React__default["default"].createElement(StyledFAB, {
|
|
13986
13992
|
testID: "fab",
|
|
13987
13993
|
icon: fabIcon,
|
|
13988
13994
|
onPress: onPress,
|
|
@@ -13990,12 +13996,15 @@ var ActionGroup = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
13990
13996
|
active: active,
|
|
13991
13997
|
title: fabTitle,
|
|
13992
13998
|
ref: fabRef
|
|
13993
|
-
}));
|
|
13999
|
+
}))));
|
|
13994
14000
|
});
|
|
13995
14001
|
ActionGroup.displayName = 'FAB.ActionGroup';
|
|
13996
14002
|
|
|
13997
14003
|
var index$7 = Object.assign(FAB, {
|
|
13998
|
-
ActionGroup: ActionGroup
|
|
14004
|
+
ActionGroup: ActionGroup,
|
|
14005
|
+
Portal: Portal,
|
|
14006
|
+
PortalHost: PortalHost,
|
|
14007
|
+
Provider: PortalProvider
|
|
13999
14008
|
});
|
|
14000
14009
|
|
|
14001
14010
|
var StyledListItemContainer$1 = index$b(reactNative.TouchableHighlight)(function (_ref) {
|
package/package.json
CHANGED
|
@@ -40,6 +40,7 @@ export interface ActionGroupProps {
|
|
|
40
40
|
* Testing id of the component.
|
|
41
41
|
*/
|
|
42
42
|
testID?: string;
|
|
43
|
+
portalName?: string;
|
|
43
44
|
}
|
|
44
45
|
declare const ActionGroup: React.ForwardRefExoticComponent<ActionGroupProps & React.RefAttributes<ActionGroupHandles>>;
|
|
45
46
|
export default ActionGroup;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
declare const _default: import("react").ForwardRefExoticComponent<import("./FAB").FABProps & import("react").RefAttributes<import("./FAB").FABHandles>> & {
|
|
3
3
|
ActionGroup: import("react").ForwardRefExoticComponent<import("./ActionGroup").ActionGroupProps & import("react").RefAttributes<import("./ActionGroup").ActionGroupHandles>>;
|
|
4
|
+
Portal: import("react").MemoExoticComponent<({ name: _providedName, hostName, handleOnMount: _providedHandleOnMount, handleOnUnmount: _providedHandleOnUnmount, handleOnUpdate: _providedHandleOnUpdate, children, }: import("@gorhom/portal/lib/typescript/components/portal/types").PortalProps) => null>;
|
|
5
|
+
PortalHost: import("react").MemoExoticComponent<({ name }: import("@gorhom/portal/lib/typescript/components/portalHost/types").PortalHostProps) => JSX.Element>;
|
|
6
|
+
Provider: import("react").MemoExoticComponent<({ rootHostName, shouldAddRootHost, children, }: import("@gorhom/portal/lib/typescript/components/portalProvider/types").PortalProviderProps) => JSX.Element>;
|
|
4
7
|
};
|
|
5
8
|
export default _default;
|