mirror of
https://github.com/ant-design/ant-design.git
synced 2025-06-07 09:26:06 +08:00
chore: 🔨 replace css-animation by @ant-design/css-animation (#23932)
* 🆙 use @ant-design/css-animation
* fix ci
* fix ci
This commit is contained in:
parent
540fc211df
commit
22c313d032
2
.jest.js
2
.jest.js
@ -2,7 +2,7 @@ const transformIgnorePatterns = [
|
|||||||
'/dist/',
|
'/dist/',
|
||||||
// Ignore modules without es dir.
|
// Ignore modules without es dir.
|
||||||
// Update: @babel/runtime should also be transformed
|
// Update: @babel/runtime should also be transformed
|
||||||
'node_modules/(?!.*@babel)[^/]+?/(?!(es|node_modules)/)',
|
'node_modules/(?!.*@(babel|ant-design))[^/]+?/(?!(es|node_modules)/)',
|
||||||
];
|
];
|
||||||
|
|
||||||
function getTestRegex(libDir) {
|
function getTestRegex(libDir) {
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* Deprecated. We should replace the animation with pure react motion instead of modify style directly.
|
* Deprecated. We should replace the animation with pure react motion instead of modify style directly.
|
||||||
* If you are creating new component with animation, please use `./motion`.
|
* If you are creating new component with animation, please use `./motion`.
|
||||||
*/
|
*/
|
||||||
import cssAnimation from 'css-animation';
|
import cssAnimation from '@ant-design/css-animation';
|
||||||
import raf from 'raf';
|
import raf from 'raf';
|
||||||
|
|
||||||
function animate(node: HTMLElement, show: boolean, done: () => void) {
|
function animate(node: HTMLElement, show: boolean, done: () => void) {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import * as React from 'react';
|
import * as React from 'react';
|
||||||
import { findDOMNode } from 'react-dom';
|
import { findDOMNode } from 'react-dom';
|
||||||
import TransitionEvents from 'css-animation/lib/Event';
|
import TransitionEvents from '@ant-design/css-animation/lib/Event';
|
||||||
import raf from './raf';
|
import raf from './raf';
|
||||||
import { ConfigConsumer, ConfigConsumerProps, CSPConfig } from '../config-provider';
|
import { ConfigConsumer, ConfigConsumerProps, CSPConfig } from '../config-provider';
|
||||||
|
|
||||||
|
@ -96,12 +96,12 @@
|
|||||||
"ie >= 11"
|
"ie >= 11"
|
||||||
],
|
],
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
"@ant-design/css-animation": "^1.7.1",
|
||||||
"@ant-design/icons": "^4.1.0",
|
"@ant-design/icons": "^4.1.0",
|
||||||
"@ant-design/react-slick": "~0.25.5",
|
"@ant-design/react-slick": "~0.25.5",
|
||||||
"array-tree-filter": "^2.1.0",
|
"array-tree-filter": "^2.1.0",
|
||||||
"classnames": "~2.2.6",
|
"classnames": "~2.2.6",
|
||||||
"copy-to-clipboard": "^3.2.0",
|
"copy-to-clipboard": "^3.2.0",
|
||||||
"css-animation": "^1.5.0",
|
|
||||||
"lodash": "^4.17.13",
|
"lodash": "^4.17.13",
|
||||||
"moment": "~2.25.3",
|
"moment": "~2.25.3",
|
||||||
"omit.js": "^1.0.2",
|
"omit.js": "^1.0.2",
|
||||||
|
2
typings/custom-typings.d.ts
vendored
2
typings/custom-typings.d.ts
vendored
@ -24,7 +24,7 @@ declare module 'rc-animate*';
|
|||||||
|
|
||||||
declare module 'rc-util*';
|
declare module 'rc-util*';
|
||||||
|
|
||||||
declare module 'css-animation*';
|
declare module '@ant-design/css-animation*';
|
||||||
|
|
||||||
declare module 'rc-checkbox';
|
declare module 'rc-checkbox';
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user