Skip to content

Commit

Permalink
upgrade to react 15.5.4, extract prop-types. #37
Browse files Browse the repository at this point in the history
  • Loading branch information
newbreedofgeek committed May 5, 2017
1 parent 581a253 commit c684852
Show file tree
Hide file tree
Showing 14 changed files with 2,248 additions and 1,463 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# react stepzilla
is a multi-step, wizard component for sequential data collection. It basically lets you throw a bunch of react components at it (data forms, text / html components etc) and it will take the user through those components in steps. If it's a data-entry form it can tigger validation and only proceed if the data is valid.

#### :tada: whats new:
#### :tada: whats new:
```
v4.5.0: ported to react and react-dom 15.5.4
v4.3.0: now supporting higer order component based validation via react-validation-mixin!
v4.2.0: now supporting pure, dumb components!
```


### what does it do?
something like this of course:

Expand Down
24 changes: 14 additions & 10 deletions dist/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ var _react = require('react');

var _react2 = _interopRequireDefault(_react);

var _propTypes = require('prop-types');

var _propTypes2 = _interopRequireDefault(_propTypes);

var _promise = require('promise');

var _promise2 = _interopRequireDefault(_promise);
Expand Down Expand Up @@ -457,14 +461,14 @@ StepZilla.defaultProps = {
};

StepZilla.propTypes = (_StepZilla$propTypes = {
steps: _react.PropTypes.arrayOf(_react.PropTypes.shape({
name: _react.PropTypes.string.isRequired,
component: _react.PropTypes.element.isRequired
steps: _propTypes2.default.arrayOf(_propTypes2.default.shape({
name: _propTypes2.default.string.isRequired,
component: _propTypes2.default.element.isRequired
})).isRequired,
showSteps: _react.PropTypes.bool,
showNavigation: _react.PropTypes.bool,
stepsNavigation: _react.PropTypes.bool,
prevBtnOnLastStep: _react.PropTypes.bool,
dontValidate: _react.PropTypes.bool,
preventEnterSubmission: _react.PropTypes.bool
}, _defineProperty(_StepZilla$propTypes, 'preventEnterSubmission', _react.PropTypes.bool), _defineProperty(_StepZilla$propTypes, 'startAtStep', _react.PropTypes.number), _defineProperty(_StepZilla$propTypes, 'nextButtonText', _react.PropTypes.string), _defineProperty(_StepZilla$propTypes, 'backButtonText', _react.PropTypes.string), _defineProperty(_StepZilla$propTypes, 'hocValidationAppliedTo', _react.PropTypes.array), _StepZilla$propTypes);
showSteps: _propTypes2.default.bool,
showNavigation: _propTypes2.default.bool,
stepsNavigation: _propTypes2.default.bool,
prevBtnOnLastStep: _propTypes2.default.bool,
dontValidate: _propTypes2.default.bool,
preventEnterSubmission: _propTypes2.default.bool
}, _defineProperty(_StepZilla$propTypes, 'preventEnterSubmission', _propTypes2.default.bool), _defineProperty(_StepZilla$propTypes, 'startAtStep', _propTypes2.default.number), _defineProperty(_StepZilla$propTypes, 'nextButtonText', _propTypes2.default.string), _defineProperty(_StepZilla$propTypes, 'backButtonText', _propTypes2.default.string), _defineProperty(_StepZilla$propTypes, 'hocValidationAppliedTo', _propTypes2.default.array), _StepZilla$propTypes);
Loading

0 comments on commit c684852

Please sign in to comment.