Skip to content

Commit 235e070

Browse files
committed
CJSX -> JS
1 parent 3748c5a commit 235e070

52 files changed

Lines changed: 1439 additions & 2815 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

docs/build/common.js

Lines changed: 3 additions & 2239 deletions
Large diffs are not rendered by default.

docs/build/documentation.js

Lines changed: 824 additions & 51 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/components/common/Animate.cjsx

Lines changed: 0 additions & 41 deletions
This file was deleted.

docs/components/common/Animate.js

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
'use strict';
2+
3+
import React from 'react';
4+
import ReactCSS from 'reactcss';
5+
6+
export class Animate extends React.Component {
7+
8+
static defaultProps = {
9+
inStartOpacity: '0',
10+
inStartTransform: '',
11+
inStartTransition: 'all 400ms cubic-bezier(.55,0,.1,1)',
12+
inEndOpacity: '1',
13+
inEndTransform: '',
14+
inEndTransition: 'all 400ms cubic-bezier(.55,0,.1,1)',
15+
inDelay: 0,
16+
}
17+
18+
classes() {
19+
return {
20+
'default': {
21+
outer: {
22+
opacity: this.props.inStartOpacity,
23+
transform: this.props.inStartTransform,
24+
transition: this.props.inStartTransition,
25+
},
26+
},
27+
};
28+
}
29+
30+
componentDidMount() {
31+
const animate = this.refs.outer;
32+
33+
setTimeout(() => {
34+
animate.style.opacity = this.props.inEndOpacity;
35+
animate.style.transform = this.props.inEndTransform;
36+
animate.style.transition = this.props.inEndTransition;
37+
}, this.props.inDelay);
38+
}
39+
40+
// componentWillUnmount: ->
41+
// React.findDOMNode( this.refs.outer ).style.opacity = '0'
42+
43+
render() {
44+
return <div is="outer" ref="outer">{ this.props.children }</div>;
45+
}
46+
}
47+
48+
export default ReactCSS(Animate);

docs/components/common/Code.cjsx

Lines changed: 0 additions & 148 deletions
This file was deleted.

0 commit comments

Comments
 (0)