@douyinfe/semi-ui 2.12.0-beta.2 → 2.12.0-beta.5

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.
@@ -31,14 +31,14 @@ const TooltipTransition = function () {
31
31
  const {
32
32
  children
33
33
  } = props;
34
- const motion = (0, _getMotionObjFromProps.default)(props); // add fillMode forward to fix issue 715, tooltip close will flashing under react 18
34
+ const motion = (0, _getMotionObjFromProps.default)(props); // add fillMode forwards to fix issue 715, tooltip close will flashing under react 18
35
35
 
36
36
  return /*#__PURE__*/_react.default.createElement(_semiAnimationReact.StyledTransition, (0, _assign.default)({}, props, {
37
37
  enter: enterCls,
38
38
  leave: leaveCls,
39
39
  duration: '100ms'
40
40
  }, motion, {
41
- fillMode: 'forward'
41
+ fillMode: 'forwards'
42
42
  }), typeof children === 'function' ? _ref => {
43
43
  let {
44
44
  animateCls,
@@ -15,14 +15,14 @@ const TooltipTransition = function () {
15
15
  const {
16
16
  children
17
17
  } = props;
18
- const motion = getMotionObjFromProps(props); // add fillMode forward to fix issue 715, tooltip close will flashing under react 18
18
+ const motion = getMotionObjFromProps(props); // add fillMode forwards to fix issue 715, tooltip close will flashing under react 18
19
19
 
20
20
  return /*#__PURE__*/React.createElement(StyledTransition, _Object$assign({}, props, {
21
21
  enter: enterCls,
22
22
  leave: leaveCls,
23
23
  duration: '100ms'
24
24
  }, motion, {
25
- fillMode: 'forward'
25
+ fillMode: 'forwards'
26
26
  }), typeof children === 'function' ? _ref => {
27
27
  let {
28
28
  animateCls,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@douyinfe/semi-ui",
3
- "version": "2.12.0-beta.2",
3
+ "version": "2.12.0-beta.5",
4
4
  "description": "",
5
5
  "main": "lib/cjs/index.js",
6
6
  "module": "lib/es/index.js",
@@ -14,12 +14,12 @@
14
14
  },
15
15
  "dependencies": {
16
16
  "@babel/runtime-corejs3": "^7.15.4",
17
- "@douyinfe/semi-animation": "2.12.0-beta.2",
18
- "@douyinfe/semi-animation-react": "2.12.0-beta.2",
19
- "@douyinfe/semi-foundation": "2.12.0-beta.2",
20
- "@douyinfe/semi-icons": "2.12.0-beta.2",
21
- "@douyinfe/semi-illustrations": "2.12.0-beta.2",
22
- "@douyinfe/semi-theme-default": "2.12.0-beta.2",
17
+ "@douyinfe/semi-animation": "2.12.0-beta.5",
18
+ "@douyinfe/semi-animation-react": "2.12.0-beta.5",
19
+ "@douyinfe/semi-foundation": "2.12.0-beta.5",
20
+ "@douyinfe/semi-icons": "2.12.0-beta.5",
21
+ "@douyinfe/semi-illustrations": "2.12.0-beta.5",
22
+ "@douyinfe/semi-theme-default": "2.12.0-beta.5",
23
23
  "@types/react-window": "^1.8.2",
24
24
  "async-validator": "^3.5.0",
25
25
  "classnames": "^2.2.6",
@@ -69,13 +69,13 @@
69
69
  ],
70
70
  "author": "",
71
71
  "license": "MIT",
72
- "gitHead": "d594b54331194b982f24ef179147622642073c3d",
72
+ "gitHead": "78f7b68e4eacd15412bcdf06a4a401f5a70e9f69",
73
73
  "devDependencies": {
74
74
  "@babel/plugin-proposal-decorators": "^7.15.8",
75
75
  "@babel/plugin-transform-runtime": "^7.15.8",
76
76
  "@babel/preset-env": "^7.15.8",
77
77
  "@babel/preset-react": "^7.14.5",
78
- "@douyinfe/semi-scss-compile": "2.12.0-beta.2",
78
+ "@douyinfe/semi-scss-compile": "2.12.0-beta.5",
79
79
  "@storybook/addon-knobs": "^6.3.1",
80
80
  "@types/lodash": "^4.14.176",
81
81
  "babel-loader": "^8.2.2",
@@ -18,9 +18,9 @@ const TooltipTransition: React.FC<TooltipTransitionProps> = (props = {}) => {
18
18
  const { children } = props;
19
19
  const motion = getMotionObjFromProps(props);
20
20
 
21
- // add fillMode forward to fix issue 715, tooltip close will flashing under react 18
21
+ // add fillMode forwards to fix issue 715, tooltip close will flashing under react 18
22
22
  return (
23
- <StyledTransition {...props} enter={enterCls} leave={leaveCls} duration={'100ms'} {...motion} fillMode='forward'>
23
+ <StyledTransition {...props} enter={enterCls} leave={leaveCls} duration={'100ms'} {...motion} fillMode='forwards'>
24
24
  {typeof children === 'function' ?
25
25
  ({ animateCls, animateEvents, animateStyle }: any) => children({ animateCls, animateEvents, animateStyle }) :
26
26
  children}