@douyinfe/semi-animation-react 2.1.0-next.0 → 2.1.0
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/lib/es/src/StyledAnimation.d.ts +1 -0
- package/lib/es/src/StyledAnimation.js +2 -0
- package/package.json +5 -5
- package/lib/cjs/index.d.ts +0 -6
- package/lib/cjs/index.js +0 -70
- package/lib/cjs/src/Animation.d.ts +0 -70
- package/lib/cjs/src/Animation.js +0 -228
- package/lib/cjs/src/KeyFrames.d.ts +0 -39
- package/lib/cjs/src/KeyFrames.js +0 -136
- package/lib/cjs/src/StyledAnimation.d.ts +0 -56
- package/lib/cjs/src/StyledAnimation.js +0 -181
- package/lib/cjs/src/StyledTransition.d.ts +0 -49
- package/lib/cjs/src/StyledTransition.js +0 -191
- package/lib/cjs/src/Transition.d.ts +0 -52
- package/lib/cjs/src/Transition.js +0 -208
- package/lib/cjs/src/utils/invokeFns.d.ts +0 -1
- package/lib/cjs/src/utils/invokeFns.js +0 -27
- package/lib/cjs/src/utils/noop.d.ts +0 -1
- package/lib/cjs/src/utils/noop.js +0 -12
- package/lib/cjs/src/utils/object.d.ts +0 -1
- package/lib/cjs/src/utils/object.js +0 -1
- package/lib/cjs/src/utils/string.d.ts +0 -2
- package/lib/cjs/src/utils/string.js +0 -39
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js-stable/object/define-property");
|
|
4
|
-
|
|
5
|
-
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
6
|
-
|
|
7
|
-
_Object$defineProperty(exports, "__esModule", {
|
|
8
|
-
value: true
|
|
9
|
-
});
|
|
10
|
-
|
|
11
|
-
exports.default = invokeFns;
|
|
12
|
-
|
|
13
|
-
var _isArray = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/array/is-array"));
|
|
14
|
-
|
|
15
|
-
var _forEach = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/for-each"));
|
|
16
|
-
|
|
17
|
-
function invokeFns(fns) {
|
|
18
|
-
let args = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
|
|
19
|
-
|
|
20
|
-
if ((0, _isArray.default)(fns) && fns.length) {
|
|
21
|
-
(0, _forEach.default)(fns).call(fns, fn => {
|
|
22
|
-
if (typeof fn === 'function') {
|
|
23
|
-
fn(...args);
|
|
24
|
-
}
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default function noop(): void;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js-stable/object/define-property");
|
|
4
|
-
|
|
5
|
-
_Object$defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
|
|
9
|
-
exports.default = noop;
|
|
10
|
-
|
|
11
|
-
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
12
|
-
function noop() {}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js-stable/object/define-property");
|
|
4
|
-
|
|
5
|
-
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
6
|
-
|
|
7
|
-
_Object$defineProperty(exports, "__esModule", {
|
|
8
|
-
value: true
|
|
9
|
-
});
|
|
10
|
-
|
|
11
|
-
exports.lowerCase = lowerCase;
|
|
12
|
-
exports.upperCase = upperCase;
|
|
13
|
-
|
|
14
|
-
var _reduce = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/reduce"));
|
|
15
|
-
|
|
16
|
-
/* eslint-disable eqeqeq */
|
|
17
|
-
function upperCase(str, pos) {
|
|
18
|
-
if (typeof str === 'string') {
|
|
19
|
-
var _context;
|
|
20
|
-
|
|
21
|
-
return (0, _reduce.default)(_context = str // eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
22
|
-
// @ts-ignore
|
|
23
|
-
.split()).call(_context, (total, cur, index) => pos == null || pos === index ? total + cur.toUpperCase() : total + cur, '');
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
return str;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
function lowerCase(str, pos) {
|
|
30
|
-
if (typeof str === 'string') {
|
|
31
|
-
var _context2;
|
|
32
|
-
|
|
33
|
-
return (0, _reduce.default)(_context2 = str // eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
34
|
-
// @ts-ignore
|
|
35
|
-
.split()).call(_context2, (total, cur, index) => pos == null || pos === index ? total + cur.toLowerCase() : total + cur, '');
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
return str;
|
|
39
|
-
}
|