Skip to content

Commit

Permalink
[added] streams-react package
Browse files Browse the repository at this point in the history
  • Loading branch information
appsforartists committed Jan 14, 2017
1 parent 883d35f commit 1e8c6c6
Show file tree
Hide file tree
Showing 8 changed files with 187 additions and 2 deletions.
2 changes: 0 additions & 2 deletions packages/streams-dom/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ import createMotionElementFromDOMNode from 'material-motion-streams-dom';

```

See also the [MotionElement specification]() in [the Starmap](https://material-motion.github.io/material-motion/starmap/).

## API ##

To encourage code readability, we follow the named arguments pattern: each function takes a single object literal. Internally, we destructure that object to read a function's arguments.
Expand Down
27 changes: 27 additions & 0 deletions packages/streams-react/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Material Motion Streams for React #

React support for Material Motion

## Usage ##

```javascript
import MaterialMotionProvider from 'material-motion-streams-react';


```

## API ##

To encourage code readability, we follow the named arguments pattern: each function takes a single object literal. Internally, we destructure that object to read a function's arguments.

### `MaterialMotionProvider` ###

## Installation ##

```
yarn add material-motion-streams-react
```

## License ##

[Apache 2.0](http://www.apache.org/licenses/LICENSE-2.0)
46 changes: 46 additions & 0 deletions packages/streams-react/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"name": "material-motion-streams-react",
"version": "0.0.0",
"description": "React support for Material Motion",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"typescript:main": "src/index.ts",
"scripts": {
"lint": "$( yarn bin )/tslint -c ../../tslint.json --project tsconfig.json",
"test": "node ../../tools/test.js --only streams-react",
"clean": "rm -rf ./dist/*; mkdir -p ./dist/",
"build": "yarn run clean; $( yarn bin )/tsc"
},
"dependencies": {
"tslib": "^1.2.0"
},
"devDependencies": {
"tslint": "4.0.2",
"typescript": "2.1"
},
"repository": {
"type": "git",
"url": "git+ssh://git@github.com:material-motion/material-motion-js.git"
},
"keywords": [
"animation",
"gestures",
"interactive",
"material",
"motion",
"multitouch",
"observables",
"odeon",
"physics",
"springs",
"touch",
"transitions",
"tweens"
],
"author": "The Material Motion Authors (see AUTHORS)",
"license": "Apache-2.0",
"bugs": {
"url": "https://github.com/material-motion/material-motion-js/issues/"
},
"homepage": "https://github.com/material-motion/material-motion-js/tree/develop/packages/streams-react/#readme"
}
20 changes: 20 additions & 0 deletions packages/streams-react/src/MaterialMotionProvider.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/** @license
* Copyright 2016 - present The Material Motion Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy
* of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*/

export function MaterialMotionProvider() {

}
export default MaterialMotionProvider;
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
/** @license
* Copyright 2016 - present The Material Motion Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy
* of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*/

import { expect } from 'chai';

import {
beforeEach,
describe,
it,
} from 'mocha-sugar-free';

import {
stub,
} from 'sinon';

import MaterialMotionProvider from '../MaterialMotionProvider';

declare function require(name: string);

// chai really doesn't like being imported as an ES2015 module; will be fixed in v4
require('chai').use(
require('sinon-chai')
);

describe('MaterialMotionProvider',
() => {
beforeEach(
() => {
}
);

it('',
() => {
}
);
}
);

19 changes: 19 additions & 0 deletions packages/streams-react/src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/** @license
* Copyright 2016 - present The Material Motion Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy
* of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*/

export * from './types';
export * from './MaterialMotionProvider';
export { default as MaterialMotionProvider } from './MaterialMotionProvider';
15 changes: 15 additions & 0 deletions packages/streams-react/src/types.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
/** @license
* Copyright 2016 - present The Material Motion Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy
* of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*/
9 changes: 9 additions & 0 deletions packages/streams-react/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"extends": "../../tsconfig.json",
"include": ["./src/**/*"],
"exclude": ["**/*.test.*"],
"compilerOptions": {
"outDir": "dist",
"rootDir": "src"
}
}

0 comments on commit 1e8c6c6

Please sign in to comment.