@douyinfe/semi-ui 2.12.0-beta.1 → 2.12.0-beta.4
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/dist/umd/semi-ui.js +295 -1874
- package/dist/umd/semi-ui.js.map +1 -1
- package/dist/umd/semi-ui.min.js +1 -1
- package/dist/umd/semi-ui.min.js.map +1 -1
- package/lib/cjs/tooltip/TooltipStyledTransition.js +3 -3
- package/lib/es/tooltip/TooltipStyledTransition.js +3 -3
- package/package.json +9 -9
- package/tooltip/TooltipStyledTransition.tsx +2 -2
|
@@ -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
|
|
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
|
-
duration: '
|
|
39
|
+
duration: '1000ms'
|
|
40
40
|
}, motion, {
|
|
41
|
-
fillMode: '
|
|
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
|
|
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
|
-
duration: '
|
|
23
|
+
duration: '1000ms'
|
|
24
24
|
}, motion, {
|
|
25
|
-
fillMode: '
|
|
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.
|
|
3
|
+
"version": "2.12.0-beta.4",
|
|
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.
|
|
18
|
-
"@douyinfe/semi-animation-react": "2.12.0-beta.
|
|
19
|
-
"@douyinfe/semi-foundation": "2.12.0-beta.
|
|
20
|
-
"@douyinfe/semi-icons": "2.12.0-beta.
|
|
21
|
-
"@douyinfe/semi-illustrations": "2.12.0-beta.
|
|
22
|
-
"@douyinfe/semi-theme-default": "2.12.0-beta.
|
|
17
|
+
"@douyinfe/semi-animation": "2.12.0-beta.4",
|
|
18
|
+
"@douyinfe/semi-animation-react": "2.12.0-beta.4",
|
|
19
|
+
"@douyinfe/semi-foundation": "2.12.0-beta.4",
|
|
20
|
+
"@douyinfe/semi-icons": "2.12.0-beta.4",
|
|
21
|
+
"@douyinfe/semi-illustrations": "2.12.0-beta.4",
|
|
22
|
+
"@douyinfe/semi-theme-default": "2.12.0-beta.4",
|
|
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": "
|
|
72
|
+
"gitHead": "d539c3a6575ab25b4f989de4842c8536baf6b800",
|
|
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.
|
|
78
|
+
"@douyinfe/semi-scss-compile": "2.12.0-beta.4",
|
|
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
|
|
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={'
|
|
23
|
+
<StyledTransition {...props} enter={enterCls} leave={leaveCls} duration={'1000ms'} {...motion} fillMode='forwards'>
|
|
24
24
|
{typeof children === 'function' ?
|
|
25
25
|
({ animateCls, animateEvents, animateStyle }: any) => children({ animateCls, animateEvents, animateStyle }) :
|
|
26
26
|
children}
|