Comparing version 1.0.1 to 1.1.0
@@ -308,3 +308,4 @@ 'use strict'; | ||
onRequestClose = _props2.onRequestClose, | ||
maskSpace = _props2.maskSpace; | ||
maskSpace = _props2.maskSpace, | ||
lastStepNextButton = _props2.lastStepNextButton; | ||
var _state = this.state, | ||
@@ -418,5 +419,5 @@ isOpen = _state.isOpen, | ||
{ | ||
onClick: this.nextStep, | ||
disabled: current === steps.length - 1 }, | ||
'Next' | ||
onClick: lastStepNextButton && current === steps.length - 1 ? onRequestClose : this.nextStep, | ||
disabled: !lastStepNextButton && current === steps.length - 1 }, | ||
lastStepNextButton && current === steps.length - 1 ? lastStepNextButton : 'Next' | ||
) | ||
@@ -445,2 +446,3 @@ ), | ||
isOpen: _react.PropTypes.bool.isRequired, | ||
lastStepNextButton: _react.PropTypes.string, | ||
maskClassName: _react.PropTypes.string, | ||
@@ -447,0 +449,0 @@ maskSpace: _react.PropTypes.number, |
{ | ||
"name": "reactour", | ||
"version": "1.0.1", | ||
"version": "1.1.0", | ||
"description": "Tourist Guide into your React Components", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -51,2 +51,3 @@ <img src="https://cdn.rawgit.com/elrumordelaluz/reactour/96793b17/logo.svg" width="50%" style="margin: 0 auto; display: block;"/> | ||
| `isOpen` | you know… | `bool` | | ✅ | | ||
| `lastStepNextButton` | Change _Next_ button in last step into a custom button to close the _Tour_ | `string` | | | | ||
| `maskClassName` | Custom class to add to the **mask** | `string` | | | | ||
@@ -53,0 +54,0 @@ | `maskSpace` | padding between elemente showed and **mask** | `number` | `10` | | |
40653
740
104