Skip to content

Commit

Permalink
0.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
cht8687 committed Jan 22, 2016
1 parent aeea4dd commit 6bfe3e6
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
18 changes: 9 additions & 9 deletions example/bundle.js
Expand Up @@ -54,7 +54,7 @@
/******/
/******/
/******/ var hotApplyOnUpdate = true;
/******/ var hotCurrentHash = "877913f328f88c64e909"; // eslint-disable-line no-unused-vars
/******/ var hotCurrentHash = "c54bc92c1830e66c6d51"; // eslint-disable-line no-unused-vars
/******/ var hotCurrentModuleData = {};
/******/ var hotCurrentParents = []; // eslint-disable-line no-unused-vars
/******/
Expand Down Expand Up @@ -579,7 +579,7 @@

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }

var OPTIONS = {
var TEXT_COLLAPSE_OPTIONS = {
Collapse: false,
collapseText: '... show more',
expandText: 'show less'
Expand All @@ -604,7 +604,7 @@
_react2.default.createElement(
_2.default,
{
options: OPTIONS
options: TEXT_COLLAPSE_OPTIONS
},
_react2.default.createElement(
'p',
Expand Down Expand Up @@ -20130,8 +20130,8 @@
var Collapse = _this.props.options.Collapse;

_this.state = {
Collapse: Collapse,
height: 100
Collapse: Collapse ? Collapse : true,
height: 200
};
return _this;
}
Expand All @@ -20154,13 +20154,13 @@
return _react2.default.createElement(
'div',
{ style: { float: 'left' } },
expandText
collapseText
);
} else {
return _react2.default.createElement(
'div',
{ style: { float: 'left' } },
collapseText
expandText
);
}
}
Expand All @@ -20186,7 +20186,7 @@
_reactMotion.Motion,
{
defaultStyle: { h: 0 },
style: { h: (0, _reactMotion.spring)(Collapse ? 0 : height) } },
style: { h: (0, _reactMotion.spring)(Collapse ? 50 : height) } },
function (_ref) {
var h = _ref.h;
return _react2.default.createElement(
Expand Down Expand Up @@ -20218,7 +20218,7 @@

ReactTextCollapse.propTypes = {
children: _react.PropTypes.node.isRequired,
options: _react.PropTypes.object.isRequired
options: _react.PropTypes.object
};
exports.default = ReactTextCollapse;

Expand Down
2 changes: 1 addition & 1 deletion example/bundle.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion gulpfile.js
Expand Up @@ -5,7 +5,7 @@ var shell = require('gulp-shell');
var gulptil = require('gulp-util');

// Variables
var version = '0.0.1';
var version = '0.0.2';
var gitCommit = `git commit -m ${version}`;
var gitTag = `git tag v${version}`;

Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "react-text-collapse",
"version": "0.0.1",
"version": "0.0.2",
"description": "",
"main": "dist/index.js",
"scripts": {
Expand Down

0 comments on commit 6bfe3e6

Please sign in to comment.