Merge pull request #32862 from vpicone/carbon__motion

Add @carbon/motion
This commit is contained in:
Armando Aguirre
2019-02-07 12:54:01 -08:00
committed by GitHub
4 changed files with 53 additions and 0 deletions
@@ -0,0 +1,8 @@
import { easings, motion } from "@carbon/motion";
const easingNames = Object.keys(easings);
const firstEasing = easingNames[0];
const firstMode = Object.keys(firstEasing)[0];
motion(firstEasing, firstMode);
+25
View File
@@ -0,0 +1,25 @@
// Type definitions for @carbon/motion 0.0
// Project: https://github.com/IBM/carbon-elements/tree/master/packages/motion
// Definitions by: Vince Picone <https://github.com/vpicone>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
export const easings: {
entrance: {
expressive: string;
productive: string;
};
exit: {
expressive: string;
productive: string;
};
standard: {
expressive: string;
productive: string;
};
};
export function motion(name: string, mode: string): string;
export namespace motion {
const prototype: {};
}
+19
View File
@@ -0,0 +1,19 @@
{
"compilerOptions": {
"module": "commonjs",
"lib": ["es6"],
"noImplicitAny": true,
"noImplicitThis": true,
"strictNullChecks": true,
"strictFunctionTypes": true,
"baseUrl": "../",
"typeRoots": ["../"],
"types": [],
"noEmit": true,
"forceConsistentCasingInFileNames": true,
"paths": {
"@carbon/motion": ["carbon__motion"]
}
},
"files": ["index.d.ts", "carbon__motion-tests.ts"]
}
+1
View File
@@ -0,0 +1 @@
{ "extends": "dtslint/dt.json" }