@tamagui/animation-helpers 2.7.7 → 3.0.0-beta.1097.1
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/cjs/index.cjs +32 -21
- package/dist/cjs/index.native.cjs +46 -0
- package/dist/cjs/index.native.js +33 -21
- package/dist/cjs/index.native.js.map +1 -1
- package/dist/cjs/presets.cjs +77 -0
- package/dist/cjs/presets.native.cjs +79 -0
- package/dist/cjs/presets.native.js +81 -0
- package/dist/cjs/presets.native.js.map +1 -0
- package/dist/cjs/propertyNames.cjs +91 -0
- package/dist/cjs/propertyNames.native.cjs +95 -0
- package/dist/cjs/propertyNames.native.js +97 -0
- package/dist/cjs/propertyNames.native.js.map +1 -0
- package/dist/cjs/resolveTransition.cjs +345 -0
- package/dist/cjs/resolveTransition.native.cjs +424 -0
- package/dist/cjs/resolveTransition.native.js +426 -0
- package/dist/cjs/resolveTransition.native.js.map +1 -0
- package/dist/cjs/transitionResolver.cjs +34 -0
- package/dist/cjs/transitionResolver.native.cjs +37 -0
- package/dist/cjs/transitionResolver.native.js +39 -0
- package/dist/cjs/transitionResolver.native.js.map +1 -0
- package/dist/cjs/types.cjs +9 -11
- package/dist/cjs/types.native.cjs +18 -0
- package/dist/cjs/types.native.js +9 -10
- package/dist/cjs/types.native.js.map +1 -1
- package/dist/esm/index.js +6 -3
- package/dist/esm/index.mjs +6 -3
- package/dist/esm/index.native.js +6 -3
- package/dist/esm/presets.mjs +57 -0
- package/dist/esm/presets.mjs.map +1 -0
- package/dist/esm/presets.native.js +57 -0
- package/dist/esm/presets.native.js.map +1 -0
- package/dist/esm/propertyNames.mjs +67 -0
- package/dist/esm/propertyNames.mjs.map +1 -0
- package/dist/esm/propertyNames.native.js +69 -0
- package/dist/esm/propertyNames.native.js.map +1 -0
- package/dist/esm/resolveTransition.mjs +315 -0
- package/dist/esm/resolveTransition.mjs.map +1 -0
- package/dist/esm/resolveTransition.native.js +392 -0
- package/dist/esm/resolveTransition.native.js.map +1 -0
- package/dist/esm/transitionResolver.mjs +11 -0
- package/dist/esm/transitionResolver.mjs.map +1 -0
- package/dist/esm/transitionResolver.native.js +12 -0
- package/dist/esm/transitionResolver.native.js.map +1 -0
- package/dist/esm/types.mjs +0 -2
- package/dist/esm/types.native.js +0 -2
- package/package.json +23 -2
- package/src/index.ts +39 -9
- package/src/presets.ts +40 -0
- package/src/propertyNames.ts +78 -0
- package/src/resolveTransition.ts +503 -0
- package/src/transitionResolver.ts +35 -0
- package/src/types.ts +42 -46
- package/types/index.d.ts +6 -2
- package/types/index.d.ts.map +2 -2
- package/types/presets.d.ts +79 -0
- package/types/presets.d.ts.map +11 -0
- package/types/propertyNames.d.ts +13 -0
- package/types/propertyNames.d.ts.map +11 -0
- package/types/resolveTransition.d.ts +108 -0
- package/types/resolveTransition.d.ts.map +11 -0
- package/types/transitionResolver.d.ts +30 -0
- package/types/transitionResolver.d.ts.map +11 -0
- package/types/types.d.ts +35 -42
- package/types/types.d.ts.map +2 -2
- package/dist/cjs/normalizeTransition.cjs +0 -164
- package/dist/cjs/normalizeTransition.native.js +0 -231
- package/dist/cjs/normalizeTransition.native.js.map +0 -1
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/index.mjs.map +0 -1
- package/dist/esm/index.native.js.map +0 -1
- package/dist/esm/normalizeTransition.mjs +0 -134
- package/dist/esm/normalizeTransition.mjs.map +0 -1
- package/dist/esm/normalizeTransition.native.js +0 -198
- package/dist/esm/normalizeTransition.native.js.map +0 -1
- package/dist/esm/types.mjs.map +0 -1
- package/dist/esm/types.native.js.map +0 -1
- package/src/normalizeTransition.ts +0 -255
- package/types/normalizeTransition.d.ts +0 -54
- package/types/normalizeTransition.d.ts.map +0 -11
package/dist/cjs/index.cjs
CHANGED
|
@@ -3,31 +3,42 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
3
3
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
4
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
5
|
var __export = (target, all) => {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
for (var name in all) __defProp(target, name, {
|
|
7
|
+
get: all[name],
|
|
8
|
+
enumerable: true
|
|
9
|
+
});
|
|
10
10
|
};
|
|
11
11
|
var __copyProps = (to, from, except, desc) => {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
14
|
+
get: () => from[key],
|
|
15
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
19
|
};
|
|
20
|
-
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
21
|
-
value: true
|
|
22
|
-
}), mod);
|
|
20
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
23
21
|
var index_exports = {};
|
|
24
22
|
__export(index_exports, {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
23
|
+
animationPresets: () => import_presets.animationPresets,
|
|
24
|
+
canonicalTransitionProperty: () => import_propertyNames.canonicalTransitionProperty,
|
|
25
|
+
easingToBezier: () => import_resolveTransition.easingToBezier,
|
|
26
|
+
entryToCSS: () => import_resolveTransition.entryToCSS,
|
|
27
|
+
forAnimationState: () => import_resolveTransition.forAnimationState,
|
|
28
|
+
getMaxDurationMs: () => import_resolveTransition.getMaxDurationMs,
|
|
29
|
+
getSettleMs: () => import_resolveTransition.getSettleMs,
|
|
30
|
+
getTransitionForKey: () => import_resolveTransition.getTransitionForKey,
|
|
31
|
+
getTransitionResolver: () => import_transitionResolver.getTransitionResolver,
|
|
32
|
+
hasTransition: () => import_resolveTransition.hasTransition,
|
|
33
|
+
isTransformProperty: () => import_propertyNames.isTransformProperty,
|
|
34
|
+
presetToTiming: () => import_resolveTransition.presetToTiming,
|
|
35
|
+
resolveTransition: () => import_resolveTransition.resolveTransition,
|
|
36
|
+
setTransitionResolver: () => import_transitionResolver.setTransitionResolver,
|
|
37
|
+
styleKeysForProperty: () => import_propertyNames.styleKeysForProperty,
|
|
38
|
+
toCSSTransition: () => import_resolveTransition.toCSSTransition
|
|
31
39
|
});
|
|
32
40
|
module.exports = __toCommonJS(index_exports);
|
|
33
|
-
var
|
|
41
|
+
var import_presets = require("./presets.cjs");
|
|
42
|
+
var import_propertyNames = require("./propertyNames.cjs");
|
|
43
|
+
var import_transitionResolver = require("./transitionResolver.cjs");
|
|
44
|
+
var import_resolveTransition = require("./resolveTransition.cjs");
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all) __defProp(target, name, {
|
|
9
|
+
get: all[name],
|
|
10
|
+
enumerable: true
|
|
11
|
+
});
|
|
12
|
+
};
|
|
13
|
+
var __copyProps = (to, from, except, desc) => {
|
|
14
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
15
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
16
|
+
get: () => from[key],
|
|
17
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
return to;
|
|
21
|
+
};
|
|
22
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
23
|
+
var index_exports = {};
|
|
24
|
+
__export(index_exports, {
|
|
25
|
+
animationPresets: () => import_presets.animationPresets,
|
|
26
|
+
canonicalTransitionProperty: () => import_propertyNames.canonicalTransitionProperty,
|
|
27
|
+
easingToBezier: () => import_resolveTransition.easingToBezier,
|
|
28
|
+
entryToCSS: () => import_resolveTransition.entryToCSS,
|
|
29
|
+
forAnimationState: () => import_resolveTransition.forAnimationState,
|
|
30
|
+
getMaxDurationMs: () => import_resolveTransition.getMaxDurationMs,
|
|
31
|
+
getSettleMs: () => import_resolveTransition.getSettleMs,
|
|
32
|
+
getTransitionForKey: () => import_resolveTransition.getTransitionForKey,
|
|
33
|
+
getTransitionResolver: () => import_transitionResolver.getTransitionResolver,
|
|
34
|
+
hasTransition: () => import_resolveTransition.hasTransition,
|
|
35
|
+
isTransformProperty: () => import_propertyNames.isTransformProperty,
|
|
36
|
+
presetToTiming: () => import_resolveTransition.presetToTiming,
|
|
37
|
+
resolveTransition: () => import_resolveTransition.resolveTransition,
|
|
38
|
+
setTransitionResolver: () => import_transitionResolver.setTransitionResolver,
|
|
39
|
+
styleKeysForProperty: () => import_propertyNames.styleKeysForProperty,
|
|
40
|
+
toCSSTransition: () => import_resolveTransition.toCSSTransition
|
|
41
|
+
});
|
|
42
|
+
module.exports = __toCommonJS(index_exports);
|
|
43
|
+
var import_presets = require("./presets.native.js");
|
|
44
|
+
var import_propertyNames = require("./propertyNames.native.js");
|
|
45
|
+
var import_transitionResolver = require("./transitionResolver.native.js");
|
|
46
|
+
var import_resolveTransition = require("./resolveTransition.native.js");
|
package/dist/cjs/index.native.js
CHANGED
|
@@ -5,32 +5,44 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
5
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
7
|
var __export = (target, all) => {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
for (var name in all) __defProp(target, name, {
|
|
9
|
+
get: all[name],
|
|
10
|
+
enumerable: true
|
|
11
|
+
});
|
|
12
12
|
};
|
|
13
13
|
var __copyProps = (to, from, except, desc) => {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
14
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
15
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
16
|
+
get: () => from[key],
|
|
17
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
return to;
|
|
21
21
|
};
|
|
22
|
-
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
23
|
-
value: true
|
|
24
|
-
}), mod);
|
|
22
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
25
23
|
var index_exports = {};
|
|
26
24
|
__export(index_exports, {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
25
|
+
animationPresets: () => import_presets.animationPresets,
|
|
26
|
+
canonicalTransitionProperty: () => import_propertyNames.canonicalTransitionProperty,
|
|
27
|
+
easingToBezier: () => import_resolveTransition.easingToBezier,
|
|
28
|
+
entryToCSS: () => import_resolveTransition.entryToCSS,
|
|
29
|
+
forAnimationState: () => import_resolveTransition.forAnimationState,
|
|
30
|
+
getMaxDurationMs: () => import_resolveTransition.getMaxDurationMs,
|
|
31
|
+
getSettleMs: () => import_resolveTransition.getSettleMs,
|
|
32
|
+
getTransitionForKey: () => import_resolveTransition.getTransitionForKey,
|
|
33
|
+
getTransitionResolver: () => import_transitionResolver.getTransitionResolver,
|
|
34
|
+
hasTransition: () => import_resolveTransition.hasTransition,
|
|
35
|
+
isTransformProperty: () => import_propertyNames.isTransformProperty,
|
|
36
|
+
presetToTiming: () => import_resolveTransition.presetToTiming,
|
|
37
|
+
resolveTransition: () => import_resolveTransition.resolveTransition,
|
|
38
|
+
setTransitionResolver: () => import_transitionResolver.setTransitionResolver,
|
|
39
|
+
styleKeysForProperty: () => import_propertyNames.styleKeysForProperty,
|
|
40
|
+
toCSSTransition: () => import_resolveTransition.toCSSTransition
|
|
33
41
|
});
|
|
34
42
|
module.exports = __toCommonJS(index_exports);
|
|
35
|
-
var
|
|
43
|
+
var import_presets = require("./presets.native.js");
|
|
44
|
+
var import_propertyNames = require("./propertyNames.native.js");
|
|
45
|
+
var import_transitionResolver = require("./transitionResolver.native.js");
|
|
46
|
+
var import_resolveTransition = require("./resolveTransition.native.js");
|
|
47
|
+
|
|
36
48
|
//# sourceMappingURL=index.native.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"index.native.js","names":[],"sources":["cjs/index.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar index_exports = {};\n__export(index_exports, {\n animationPresets: () => import_presets.animationPresets,\n canonicalTransitionProperty: () => import_propertyNames.canonicalTransitionProperty,\n easingToBezier: () => import_resolveTransition.easingToBezier,\n entryToCSS: () => import_resolveTransition.entryToCSS,\n forAnimationState: () => import_resolveTransition.forAnimationState,\n getMaxDurationMs: () => import_resolveTransition.getMaxDurationMs,\n getSettleMs: () => import_resolveTransition.getSettleMs,\n getTransitionForKey: () => import_resolveTransition.getTransitionForKey,\n getTransitionResolver: () => import_transitionResolver.getTransitionResolver,\n hasTransition: () => import_resolveTransition.hasTransition,\n isTransformProperty: () => import_propertyNames.isTransformProperty,\n presetToTiming: () => import_resolveTransition.presetToTiming,\n resolveTransition: () => import_resolveTransition.resolveTransition,\n setTransitionResolver: () => import_transitionResolver.setTransitionResolver,\n styleKeysForProperty: () => import_propertyNames.styleKeysForProperty,\n toCSSTransition: () => import_resolveTransition.toCSSTransition\n});\nmodule.exports = __toCommonJS(index_exports);\nvar import_presets = require(\"./presets\");\nvar import_propertyNames = require(\"./propertyNames\");\nvar import_transitionResolver = require(\"./transitionResolver\");\nvar import_resolveTransition = require(\"./resolveTransition\");\n//# sourceMappingURL=index.js.map\n"],"mappings":";;;AACA,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,YAAY,QAAQ,QAAQ;CAC9B,KAAK,IAAI,QAAQ,KACf,UAAU,QAAQ,MAAM;EAAE,KAAK,IAAI;EAAO,YAAY;CAAK,CAAC;AAChE;AACA,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC5C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;EAClE,KAAK,IAAI,OAAO,kBAAkB,IAAI,GACpC,IAAI,CAAC,aAAa,KAAK,IAAI,GAAG,KAAK,QAAQ,QACzC,UAAU,IAAI,KAAK;GAAE,WAAW,KAAK;GAAM,YAAY,EAAE,OAAO,iBAAiB,MAAM,GAAG,MAAM,KAAK;EAAW,CAAC;CACvH;CACA,OAAO;AACT;AACA,IAAI,gBAAgB,QAAQ,YAAY,UAAU,CAAC,GAAG,cAAc,EAAE,OAAO,KAAK,CAAC,GAAG,GAAG;AACzF,IAAI,gBAAgB,CAAC;AACrB,SAAS,eAAe;CACtB,wBAAwB,eAAe;CACvC,mCAAmC,qBAAqB;CACxD,sBAAsB,yBAAyB;CAC/C,kBAAkB,yBAAyB;CAC3C,yBAAyB,yBAAyB;CAClD,wBAAwB,yBAAyB;CACjD,mBAAmB,yBAAyB;CAC5C,2BAA2B,yBAAyB;CACpD,6BAA6B,0BAA0B;CACvD,qBAAqB,yBAAyB;CAC9C,2BAA2B,qBAAqB;CAChD,sBAAsB,yBAAyB;CAC/C,yBAAyB,yBAAyB;CAClD,6BAA6B,0BAA0B;CACvD,4BAA4B,qBAAqB;CACjD,uBAAuB,yBAAyB;AAClD,CAAC;AACD,OAAO,UAAU,aAAa,aAAa;AAC3C,IAAI,iBAAiB,QAAQ,qBAAW;AACxC,IAAI,uBAAuB,QAAQ,2BAAiB;AACpD,IAAI,4BAA4B,QAAQ,gCAAsB;AAC9D,IAAI,2BAA2B,QAAQ,+BAAqB"}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all) __defProp(target, name, {
|
|
7
|
+
get: all[name],
|
|
8
|
+
enumerable: true
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
14
|
+
get: () => from[key],
|
|
15
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
21
|
+
var presets_exports = {};
|
|
22
|
+
__export(presets_exports, { animationPresets: () => animationPresets });
|
|
23
|
+
module.exports = __toCommonJS(presets_exports);
|
|
24
|
+
const animationPresets = {
|
|
25
|
+
quickest: {
|
|
26
|
+
duration: 120,
|
|
27
|
+
bounce: .2
|
|
28
|
+
},
|
|
29
|
+
quickestLessBouncy: {
|
|
30
|
+
duration: 120,
|
|
31
|
+
bounce: 0
|
|
32
|
+
},
|
|
33
|
+
quicker: {
|
|
34
|
+
duration: 160,
|
|
35
|
+
bounce: .25
|
|
36
|
+
},
|
|
37
|
+
quickerLessBouncy: {
|
|
38
|
+
duration: 160,
|
|
39
|
+
bounce: 0
|
|
40
|
+
},
|
|
41
|
+
quick: {
|
|
42
|
+
duration: 220,
|
|
43
|
+
bounce: .3
|
|
44
|
+
},
|
|
45
|
+
quickLessBouncy: {
|
|
46
|
+
duration: 220,
|
|
47
|
+
bounce: 0
|
|
48
|
+
},
|
|
49
|
+
medium: {
|
|
50
|
+
duration: 300,
|
|
51
|
+
bounce: .15
|
|
52
|
+
},
|
|
53
|
+
slow: {
|
|
54
|
+
duration: 450,
|
|
55
|
+
bounce: .1
|
|
56
|
+
},
|
|
57
|
+
slowest: {
|
|
58
|
+
duration: 700,
|
|
59
|
+
bounce: .1
|
|
60
|
+
},
|
|
61
|
+
lazy: {
|
|
62
|
+
duration: 500,
|
|
63
|
+
bounce: -.2
|
|
64
|
+
},
|
|
65
|
+
superLazy: {
|
|
66
|
+
duration: 800,
|
|
67
|
+
bounce: -.3
|
|
68
|
+
},
|
|
69
|
+
bouncy: {
|
|
70
|
+
duration: 400,
|
|
71
|
+
bounce: .5
|
|
72
|
+
},
|
|
73
|
+
superBouncy: {
|
|
74
|
+
duration: 400,
|
|
75
|
+
bounce: .75
|
|
76
|
+
}
|
|
77
|
+
};
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all) __defProp(target, name, {
|
|
9
|
+
get: all[name],
|
|
10
|
+
enumerable: true
|
|
11
|
+
});
|
|
12
|
+
};
|
|
13
|
+
var __copyProps = (to, from, except, desc) => {
|
|
14
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
15
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
16
|
+
get: () => from[key],
|
|
17
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
return to;
|
|
21
|
+
};
|
|
22
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
23
|
+
var presets_exports = {};
|
|
24
|
+
__export(presets_exports, { animationPresets: () => animationPresets });
|
|
25
|
+
module.exports = __toCommonJS(presets_exports);
|
|
26
|
+
var animationPresets = {
|
|
27
|
+
quickest: {
|
|
28
|
+
duration: 120,
|
|
29
|
+
bounce: .2
|
|
30
|
+
},
|
|
31
|
+
quickestLessBouncy: {
|
|
32
|
+
duration: 120,
|
|
33
|
+
bounce: 0
|
|
34
|
+
},
|
|
35
|
+
quicker: {
|
|
36
|
+
duration: 160,
|
|
37
|
+
bounce: .25
|
|
38
|
+
},
|
|
39
|
+
quickerLessBouncy: {
|
|
40
|
+
duration: 160,
|
|
41
|
+
bounce: 0
|
|
42
|
+
},
|
|
43
|
+
quick: {
|
|
44
|
+
duration: 220,
|
|
45
|
+
bounce: .3
|
|
46
|
+
},
|
|
47
|
+
quickLessBouncy: {
|
|
48
|
+
duration: 220,
|
|
49
|
+
bounce: 0
|
|
50
|
+
},
|
|
51
|
+
medium: {
|
|
52
|
+
duration: 300,
|
|
53
|
+
bounce: .15
|
|
54
|
+
},
|
|
55
|
+
slow: {
|
|
56
|
+
duration: 450,
|
|
57
|
+
bounce: .1
|
|
58
|
+
},
|
|
59
|
+
slowest: {
|
|
60
|
+
duration: 700,
|
|
61
|
+
bounce: .1
|
|
62
|
+
},
|
|
63
|
+
lazy: {
|
|
64
|
+
duration: 500,
|
|
65
|
+
bounce: -.2
|
|
66
|
+
},
|
|
67
|
+
superLazy: {
|
|
68
|
+
duration: 800,
|
|
69
|
+
bounce: -.3
|
|
70
|
+
},
|
|
71
|
+
bouncy: {
|
|
72
|
+
duration: 400,
|
|
73
|
+
bounce: .5
|
|
74
|
+
},
|
|
75
|
+
superBouncy: {
|
|
76
|
+
duration: 400,
|
|
77
|
+
bounce: .75
|
|
78
|
+
}
|
|
79
|
+
};
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all) __defProp(target, name, {
|
|
9
|
+
get: all[name],
|
|
10
|
+
enumerable: true
|
|
11
|
+
});
|
|
12
|
+
};
|
|
13
|
+
var __copyProps = (to, from, except, desc) => {
|
|
14
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
15
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
16
|
+
get: () => from[key],
|
|
17
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
return to;
|
|
21
|
+
};
|
|
22
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
23
|
+
var presets_exports = {};
|
|
24
|
+
__export(presets_exports, { animationPresets: () => animationPresets });
|
|
25
|
+
module.exports = __toCommonJS(presets_exports);
|
|
26
|
+
var animationPresets = {
|
|
27
|
+
quickest: {
|
|
28
|
+
duration: 120,
|
|
29
|
+
bounce: .2
|
|
30
|
+
},
|
|
31
|
+
quickestLessBouncy: {
|
|
32
|
+
duration: 120,
|
|
33
|
+
bounce: 0
|
|
34
|
+
},
|
|
35
|
+
quicker: {
|
|
36
|
+
duration: 160,
|
|
37
|
+
bounce: .25
|
|
38
|
+
},
|
|
39
|
+
quickerLessBouncy: {
|
|
40
|
+
duration: 160,
|
|
41
|
+
bounce: 0
|
|
42
|
+
},
|
|
43
|
+
quick: {
|
|
44
|
+
duration: 220,
|
|
45
|
+
bounce: .3
|
|
46
|
+
},
|
|
47
|
+
quickLessBouncy: {
|
|
48
|
+
duration: 220,
|
|
49
|
+
bounce: 0
|
|
50
|
+
},
|
|
51
|
+
medium: {
|
|
52
|
+
duration: 300,
|
|
53
|
+
bounce: .15
|
|
54
|
+
},
|
|
55
|
+
slow: {
|
|
56
|
+
duration: 450,
|
|
57
|
+
bounce: .1
|
|
58
|
+
},
|
|
59
|
+
slowest: {
|
|
60
|
+
duration: 700,
|
|
61
|
+
bounce: .1
|
|
62
|
+
},
|
|
63
|
+
lazy: {
|
|
64
|
+
duration: 500,
|
|
65
|
+
bounce: -.2
|
|
66
|
+
},
|
|
67
|
+
superLazy: {
|
|
68
|
+
duration: 800,
|
|
69
|
+
bounce: -.3
|
|
70
|
+
},
|
|
71
|
+
bouncy: {
|
|
72
|
+
duration: 400,
|
|
73
|
+
bounce: .5
|
|
74
|
+
},
|
|
75
|
+
superBouncy: {
|
|
76
|
+
duration: 400,
|
|
77
|
+
bounce: .75
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
//# sourceMappingURL=presets.native.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"presets.native.js","names":[],"sources":["cjs/presets.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar presets_exports = {};\n__export(presets_exports, {\n animationPresets: () => animationPresets\n});\nmodule.exports = __toCommonJS(presets_exports);\nvar animationPresets = {\n quickest: {\n duration: 120,\n bounce: 0.2\n },\n quickestLessBouncy: {\n duration: 120,\n bounce: 0\n },\n quicker: {\n duration: 160,\n bounce: 0.25\n },\n quickerLessBouncy: {\n duration: 160,\n bounce: 0\n },\n quick: {\n duration: 220,\n bounce: 0.3\n },\n quickLessBouncy: {\n duration: 220,\n bounce: 0\n },\n medium: {\n duration: 300,\n bounce: 0.15\n },\n slow: {\n duration: 450,\n bounce: 0.1\n },\n slowest: {\n duration: 700,\n bounce: 0.1\n },\n lazy: {\n duration: 500,\n bounce: -0.2\n },\n superLazy: {\n duration: 800,\n bounce: -0.3\n },\n bouncy: {\n duration: 400,\n bounce: 0.5\n },\n superBouncy: {\n duration: 400,\n bounce: 0.75\n }\n};\n//# sourceMappingURL=presets.js.map\n"],"mappings":";;;AACA,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,YAAY,QAAQ,QAAQ;CAC9B,KAAK,IAAI,QAAQ,KACf,UAAU,QAAQ,MAAM;EAAE,KAAK,IAAI;EAAO,YAAY;CAAK,CAAC;AAChE;AACA,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC5C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;EAClE,KAAK,IAAI,OAAO,kBAAkB,IAAI,GACpC,IAAI,CAAC,aAAa,KAAK,IAAI,GAAG,KAAK,QAAQ,QACzC,UAAU,IAAI,KAAK;GAAE,WAAW,KAAK;GAAM,YAAY,EAAE,OAAO,iBAAiB,MAAM,GAAG,MAAM,KAAK;EAAW,CAAC;CACvH;CACA,OAAO;AACT;AACA,IAAI,gBAAgB,QAAQ,YAAY,UAAU,CAAC,GAAG,cAAc,EAAE,OAAO,KAAK,CAAC,GAAG,GAAG;AACzF,IAAI,kBAAkB,CAAC;AACvB,SAAS,iBAAiB,EACxB,wBAAwB,iBAC1B,CAAC;AACD,OAAO,UAAU,aAAa,eAAe;AAC7C,IAAI,mBAAmB;CACrB,UAAU;EACR,UAAU;EACV,QAAQ;CACV;CACA,oBAAoB;EAClB,UAAU;EACV,QAAQ;CACV;CACA,SAAS;EACP,UAAU;EACV,QAAQ;CACV;CACA,mBAAmB;EACjB,UAAU;EACV,QAAQ;CACV;CACA,OAAO;EACL,UAAU;EACV,QAAQ;CACV;CACA,iBAAiB;EACf,UAAU;EACV,QAAQ;CACV;CACA,QAAQ;EACN,UAAU;EACV,QAAQ;CACV;CACA,MAAM;EACJ,UAAU;EACV,QAAQ;CACV;CACA,SAAS;EACP,UAAU;EACV,QAAQ;CACV;CACA,MAAM;EACJ,UAAU;EACV,QAAQ,CAAC;CACX;CACA,WAAW;EACT,UAAU;EACV,QAAQ,CAAC;CACX;CACA,QAAQ;EACN,UAAU;EACV,QAAQ;CACV;CACA,aAAa;EACX,UAAU;EACV,QAAQ;CACV;AACF"}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all) __defProp(target, name, {
|
|
7
|
+
get: all[name],
|
|
8
|
+
enumerable: true
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
14
|
+
get: () => from[key],
|
|
15
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
21
|
+
var propertyNames_exports = {};
|
|
22
|
+
__export(propertyNames_exports, {
|
|
23
|
+
canonicalTransitionProperty: () => canonicalTransitionProperty,
|
|
24
|
+
isTransformProperty: () => isTransformProperty,
|
|
25
|
+
styleKeysForProperty: () => styleKeysForProperty
|
|
26
|
+
});
|
|
27
|
+
module.exports = __toCommonJS(propertyNames_exports);
|
|
28
|
+
const transformProperties = {
|
|
29
|
+
x: "translate",
|
|
30
|
+
y: "translate",
|
|
31
|
+
z: "translate",
|
|
32
|
+
translate: "translate",
|
|
33
|
+
translateX: "translate",
|
|
34
|
+
translateY: "translate",
|
|
35
|
+
translateZ: "translate",
|
|
36
|
+
scale: "scale",
|
|
37
|
+
scaleX: "scale",
|
|
38
|
+
scaleY: "scale",
|
|
39
|
+
scaleZ: "scale",
|
|
40
|
+
rotate: "rotate",
|
|
41
|
+
rotateX: "transform",
|
|
42
|
+
rotateY: "transform",
|
|
43
|
+
rotateZ: "transform",
|
|
44
|
+
skewX: "transform",
|
|
45
|
+
skewY: "transform",
|
|
46
|
+
perspective: "transform",
|
|
47
|
+
matrix: "transform",
|
|
48
|
+
transform: "transform"
|
|
49
|
+
};
|
|
50
|
+
function canonicalTransitionProperty(key) {
|
|
51
|
+
if (key === "all" || key === "none") return key;
|
|
52
|
+
const transform = transformProperties[key];
|
|
53
|
+
if (transform) return transform;
|
|
54
|
+
return key.includes("-") ? key : key.replace(/[A-Z]/g, "-$&").toLowerCase();
|
|
55
|
+
}
|
|
56
|
+
function isTransformProperty(key) {
|
|
57
|
+
return key in transformProperties;
|
|
58
|
+
}
|
|
59
|
+
const styleKeysByProperty = {
|
|
60
|
+
translate: [
|
|
61
|
+
"translate",
|
|
62
|
+
"translateX",
|
|
63
|
+
"translateY",
|
|
64
|
+
"translateZ",
|
|
65
|
+
"x",
|
|
66
|
+
"y",
|
|
67
|
+
"z"
|
|
68
|
+
],
|
|
69
|
+
scale: [
|
|
70
|
+
"scale",
|
|
71
|
+
"scaleX",
|
|
72
|
+
"scaleY",
|
|
73
|
+
"scaleZ"
|
|
74
|
+
],
|
|
75
|
+
rotate: ["rotate"],
|
|
76
|
+
transform: [
|
|
77
|
+
"transform",
|
|
78
|
+
"rotateX",
|
|
79
|
+
"rotateY",
|
|
80
|
+
"rotateZ",
|
|
81
|
+
"skewX",
|
|
82
|
+
"skewY",
|
|
83
|
+
"perspective",
|
|
84
|
+
"matrix"
|
|
85
|
+
]
|
|
86
|
+
};
|
|
87
|
+
function styleKeysForProperty(property) {
|
|
88
|
+
const transform = styleKeysByProperty[property];
|
|
89
|
+
if (transform) return transform;
|
|
90
|
+
return [property.replace(/-([a-z])/g, (_, letter) => letter.toUpperCase())];
|
|
91
|
+
}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all) __defProp(target, name, {
|
|
9
|
+
get: all[name],
|
|
10
|
+
enumerable: true
|
|
11
|
+
});
|
|
12
|
+
};
|
|
13
|
+
var __copyProps = (to, from, except, desc) => {
|
|
14
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
15
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
16
|
+
get: () => from[key],
|
|
17
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
return to;
|
|
21
|
+
};
|
|
22
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
23
|
+
var propertyNames_exports = {};
|
|
24
|
+
__export(propertyNames_exports, {
|
|
25
|
+
canonicalTransitionProperty: () => canonicalTransitionProperty,
|
|
26
|
+
isTransformProperty: () => isTransformProperty,
|
|
27
|
+
styleKeysForProperty: () => styleKeysForProperty
|
|
28
|
+
});
|
|
29
|
+
module.exports = __toCommonJS(propertyNames_exports);
|
|
30
|
+
var transformProperties = {
|
|
31
|
+
x: "translate",
|
|
32
|
+
y: "translate",
|
|
33
|
+
z: "translate",
|
|
34
|
+
translate: "translate",
|
|
35
|
+
translateX: "translate",
|
|
36
|
+
translateY: "translate",
|
|
37
|
+
translateZ: "translate",
|
|
38
|
+
scale: "scale",
|
|
39
|
+
scaleX: "scale",
|
|
40
|
+
scaleY: "scale",
|
|
41
|
+
scaleZ: "scale",
|
|
42
|
+
rotate: "rotate",
|
|
43
|
+
rotateX: "transform",
|
|
44
|
+
rotateY: "transform",
|
|
45
|
+
rotateZ: "transform",
|
|
46
|
+
skewX: "transform",
|
|
47
|
+
skewY: "transform",
|
|
48
|
+
perspective: "transform",
|
|
49
|
+
matrix: "transform",
|
|
50
|
+
transform: "transform"
|
|
51
|
+
};
|
|
52
|
+
function canonicalTransitionProperty(key) {
|
|
53
|
+
if (key === "all" || key === "none") return key;
|
|
54
|
+
var transform = transformProperties[key];
|
|
55
|
+
if (transform) return transform;
|
|
56
|
+
return key.includes("-") ? key : key.replace(/[A-Z]/g, "-$&").toLowerCase();
|
|
57
|
+
}
|
|
58
|
+
function isTransformProperty(key) {
|
|
59
|
+
return key in transformProperties;
|
|
60
|
+
}
|
|
61
|
+
var styleKeysByProperty = {
|
|
62
|
+
translate: [
|
|
63
|
+
"translate",
|
|
64
|
+
"translateX",
|
|
65
|
+
"translateY",
|
|
66
|
+
"translateZ",
|
|
67
|
+
"x",
|
|
68
|
+
"y",
|
|
69
|
+
"z"
|
|
70
|
+
],
|
|
71
|
+
scale: [
|
|
72
|
+
"scale",
|
|
73
|
+
"scaleX",
|
|
74
|
+
"scaleY",
|
|
75
|
+
"scaleZ"
|
|
76
|
+
],
|
|
77
|
+
rotate: ["rotate"],
|
|
78
|
+
transform: [
|
|
79
|
+
"transform",
|
|
80
|
+
"rotateX",
|
|
81
|
+
"rotateY",
|
|
82
|
+
"rotateZ",
|
|
83
|
+
"skewX",
|
|
84
|
+
"skewY",
|
|
85
|
+
"perspective",
|
|
86
|
+
"matrix"
|
|
87
|
+
]
|
|
88
|
+
};
|
|
89
|
+
function styleKeysForProperty(property) {
|
|
90
|
+
var transform = styleKeysByProperty[property];
|
|
91
|
+
if (transform) return transform;
|
|
92
|
+
return [property.replace(/-([a-z])/g, function(_, letter) {
|
|
93
|
+
return letter.toUpperCase();
|
|
94
|
+
})];
|
|
95
|
+
}
|