@cleartrip/ct-design-transition 1.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/dist/Transition.d.ts +6 -0
- package/dist/Transition.d.ts.map +1 -0
- package/dist/ct-design-transition.browser.cjs.js +2 -0
- package/dist/ct-design-transition.browser.cjs.js.map +1 -0
- package/dist/ct-design-transition.browser.esm.js +2 -0
- package/dist/ct-design-transition.browser.esm.js.map +1 -0
- package/dist/ct-design-transition.cjs.js +284 -0
- package/dist/ct-design-transition.cjs.js.map +1 -0
- package/dist/ct-design-transition.esm.js +258 -0
- package/dist/ct-design-transition.esm.js.map +1 -0
- package/dist/ct-design-transition.umd.js +1658 -0
- package/dist/ct-design-transition.umd.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/stats.html +4838 -0
- package/dist/style.d.ts +31 -0
- package/dist/style.d.ts.map +1 -0
- package/dist/type.d.ts +25 -0
- package/dist/type.d.ts.map +1 -0
- package/package.json +37 -0
package/dist/style.d.ts
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export declare const styles: {
|
|
2
|
+
zoom: {
|
|
3
|
+
entering: {
|
|
4
|
+
transform: string;
|
|
5
|
+
};
|
|
6
|
+
entered: {
|
|
7
|
+
transform: string;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
fade: {
|
|
11
|
+
entering: {
|
|
12
|
+
opacity: number;
|
|
13
|
+
};
|
|
14
|
+
entered: {
|
|
15
|
+
opacity: number;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
grow: {
|
|
19
|
+
entering: {
|
|
20
|
+
opacity: number;
|
|
21
|
+
transform: string;
|
|
22
|
+
};
|
|
23
|
+
entered: {
|
|
24
|
+
opacity: number;
|
|
25
|
+
transform: string;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
collapse: {};
|
|
29
|
+
slide: {};
|
|
30
|
+
};
|
|
31
|
+
//# sourceMappingURL=style.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"style.d.ts","sourceRoot":"","sources":["../packages/components/Transition/src/style.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6BlB,CAAC"}
|
package/dist/type.d.ts
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { TransitionProps as _TransitionProps, TransitionActions } from 'react-transition-group/Transition';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { CSSProperties } from 'styled-components';
|
|
4
|
+
export type TransitionHandlerKeys = 'onEnter' | 'onEntering' | 'onEntered' | 'onExit' | 'onExiting' | 'onExited';
|
|
5
|
+
export type TransitionHandlerProps = Pick<_TransitionProps, TransitionHandlerKeys>;
|
|
6
|
+
export type Direction = 'left' | 'right' | 'up' | 'down';
|
|
7
|
+
export interface EasingProps {
|
|
8
|
+
easing: string | {
|
|
9
|
+
enter?: string;
|
|
10
|
+
exit?: string;
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
export type TransitionKeys = 'in' | 'mountOnEnter' | 'unmountOnExit' | 'timeout' | 'easing' | 'addEndListener' | TransitionHandlerKeys;
|
|
14
|
+
export interface TransitionProps extends TransitionActions, Partial<Pick<_TransitionProps & EasingProps, TransitionKeys>>, React.HTMLAttributes<HTMLElement> {
|
|
15
|
+
}
|
|
16
|
+
export interface TransitionProps {
|
|
17
|
+
appear?: boolean;
|
|
18
|
+
children: React.ReactElement<any, any>;
|
|
19
|
+
in?: boolean;
|
|
20
|
+
type: 'fade' | 'zoom' | 'slide' | 'grow' | 'collapse';
|
|
21
|
+
css?: CSSProperties;
|
|
22
|
+
containerRef?: any;
|
|
23
|
+
slideDirection?: Direction;
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=type.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type.d.ts","sourceRoot":"","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cAAc,CAAC,EAAE,SAAS,CAAC;CAC5B"}
|
package/package.json
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@cleartrip/ct-design-transition",
|
|
3
|
+
"version": "1.1.0",
|
|
4
|
+
"description": "Transition Component",
|
|
5
|
+
"types": "dist/src/index.d.ts",
|
|
6
|
+
"main": "dist/ct-design-transition.cjs.js",
|
|
7
|
+
"jsnext:main": "dist/ct-design-transition.esm.js",
|
|
8
|
+
"module": "dist/ct-design-transition.esm.js",
|
|
9
|
+
"sideEffects": false,
|
|
10
|
+
"browser": {
|
|
11
|
+
"./dist/ct-design-transition.esm.js": "./dist/ct-design-transition.browser.esm.js",
|
|
12
|
+
"./dist/ct-design-transition.cjs.js": "./dist/ct-design-transition.browser.cjs.js"
|
|
13
|
+
},
|
|
14
|
+
"files": [
|
|
15
|
+
"dist"
|
|
16
|
+
],
|
|
17
|
+
"dependencies": {
|
|
18
|
+
"@cleartrip/ct-design-use-theme": "1.0.1-beta",
|
|
19
|
+
"@cleartrip/ct-design-common-utils": "1.0.1-beta",
|
|
20
|
+
"@cleartrip/ct-design-use-merge-refs": "1.0.1-beta"
|
|
21
|
+
},
|
|
22
|
+
"devDependencies": {},
|
|
23
|
+
"peerDependencies": {
|
|
24
|
+
"react": ">=16.8.0",
|
|
25
|
+
"react-dom": ">=16.8.0",
|
|
26
|
+
"styled-components": "^5.3.6"
|
|
27
|
+
},
|
|
28
|
+
"publishConfig": {
|
|
29
|
+
"access": "public"
|
|
30
|
+
},
|
|
31
|
+
"author": "Cleartrip",
|
|
32
|
+
"license": "ISC",
|
|
33
|
+
"scripts": {
|
|
34
|
+
"test": "echo \"Error: no test specified\" && exit 1",
|
|
35
|
+
"build-package": "rm -rf dist && rollup -c"
|
|
36
|
+
}
|
|
37
|
+
}
|