rc-animate
Advanced tools
Comparing version 2.9.2 to 2.10.0
@@ -58,6 +58,8 @@ import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; | ||
var _props = this.props, | ||
Component = _props.component, | ||
component = _props.component, | ||
children = _props.children, | ||
restProps = _objectWithoutProperties(_props, ['component', 'children']); | ||
var Component = component || React.Fragment; | ||
var motionProps = {}; | ||
@@ -142,3 +144,3 @@ MOTION_PROP_NAMES.forEach(function (prop) { | ||
CSSMotionList.propTypes = _extends({}, CSSMotion.propTypes, { | ||
component: PropTypes.string, | ||
component: PropTypes.oneOfType([PropTypes.string, PropTypes.bool]), | ||
keys: PropTypes.array | ||
@@ -145,0 +147,0 @@ }); |
# History | ||
---- | ||
## 2.10.0 / 2019-08-27 | ||
- CSSMotionList support `component` to be `false` to render nothing | ||
## 2.9.0 / 2019-07-09 | ||
@@ -5,0 +9,0 @@ |
@@ -96,3 +96,3 @@ 'use strict'; | ||
var _props = this.props, | ||
Component = _props.component, | ||
component = _props.component, | ||
children = _props.children, | ||
@@ -102,2 +102,4 @@ restProps = (0, _objectWithoutProperties3['default'])(_props, ['component', 'children']); | ||
var Component = component || _react2['default'].Fragment; | ||
var motionProps = {}; | ||
@@ -181,3 +183,3 @@ MOTION_PROP_NAMES.forEach(function (prop) { | ||
CSSMotionList.propTypes = (0, _extends3['default'])({}, CSSMotion.propTypes, { | ||
component: _propTypes2['default'].string, | ||
component: _propTypes2['default'].oneOfType([_propTypes2['default'].string, _propTypes2['default'].bool]), | ||
keys: _propTypes2['default'].array | ||
@@ -184,0 +186,0 @@ }); |
{ | ||
"name": "rc-animate", | ||
"version": "2.9.2", | ||
"version": "2.10.0", | ||
"description": "css-transition ui component for react", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
93398
2297