rc-notification
Advanced tools
Comparing version 5.0.0-alpha.3 to 5.0.0-alpha.4
@@ -12,3 +12,3 @@ import * as React from 'react'; | ||
prefixCls?: string; | ||
motion?: CSSMotionProps; | ||
motion?: CSSMotionProps | ((placement: Placement) => CSSMotionProps); | ||
container?: HTMLElement; | ||
@@ -15,0 +15,0 @@ maxCount?: number; |
@@ -125,2 +125,3 @@ import _extends from "@babel/runtime/helpers/esm/extends"; | ||
}); | ||
var placementMotion = typeof motion === 'function' ? motion(placement) : motion; | ||
return /*#__PURE__*/React.createElement(CSSMotionList, _extends({ | ||
@@ -132,3 +133,3 @@ key: placement, | ||
motionAppear: true | ||
}, motion, { | ||
}, placementMotion, { | ||
onAllRemoved: function onAllRemoved() { | ||
@@ -135,0 +136,0 @@ onAllNoticeRemoved(placement); |
@@ -10,3 +10,3 @@ import * as React from 'react'; | ||
getContainer?: () => HTMLElement; | ||
motion?: CSSMotionProps; | ||
motion?: CSSMotionProps | ((placement: Placement) => CSSMotionProps); | ||
closeIcon?: React.ReactNode; | ||
@@ -13,0 +13,0 @@ closable?: boolean; |
@@ -12,3 +12,3 @@ import * as React from 'react'; | ||
prefixCls?: string; | ||
motion?: CSSMotionProps; | ||
motion?: CSSMotionProps | ((placement: Placement) => CSSMotionProps); | ||
container?: HTMLElement; | ||
@@ -15,0 +15,0 @@ maxCount?: number; |
@@ -143,2 +143,3 @@ "use strict"; | ||
}); | ||
var placementMotion = typeof motion === 'function' ? motion(placement) : motion; | ||
return /*#__PURE__*/React.createElement(_rcMotion.CSSMotionList, (0, _extends2.default)({ | ||
@@ -150,3 +151,3 @@ key: placement, | ||
motionAppear: true | ||
}, motion, { | ||
}, placementMotion, { | ||
onAllRemoved: function onAllRemoved() { | ||
@@ -153,0 +154,0 @@ onAllNoticeRemoved(placement); |
@@ -10,3 +10,3 @@ import * as React from 'react'; | ||
getContainer?: () => HTMLElement; | ||
motion?: CSSMotionProps; | ||
motion?: CSSMotionProps | ((placement: Placement) => CSSMotionProps); | ||
closeIcon?: React.ReactNode; | ||
@@ -13,0 +13,0 @@ closable?: boolean; |
{ | ||
"name": "rc-notification", | ||
"version": "5.0.0-alpha.3", | ||
"version": "5.0.0-alpha.4", | ||
"description": "notification ui component for react", | ||
@@ -5,0 +5,0 @@ "engines": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
45402
830