@vtex/styleguide
Advanced tools
Comparing version 2.0.0-rc.25 to 2.0.0-rc.26
@@ -56,2 +56,3 @@ 'use strict'; | ||
var _props = this.props, | ||
submit = _props.submit, | ||
primary = _props.primary, | ||
@@ -100,3 +101,4 @@ secondary = _props.secondary, | ||
onClick: this.handleClick, | ||
disabled: !isIconButton && disabled | ||
disabled: !isIconButton && disabled, | ||
type: submit ? 'submit' : 'button' | ||
}), | ||
@@ -116,3 +118,4 @@ isLoading ? _react2.default.createElement(_Spinner2.default, { width: 11, height: 11, secondary: primary }) : this.props.children | ||
isLoading: false, | ||
htmlProps: {} | ||
htmlProps: {}, | ||
submit: false | ||
}; | ||
@@ -127,5 +130,6 @@ | ||
isLoading: _propTypes2.default.bool, | ||
onClick: _propTypes2.default.func | ||
onClick: _propTypes2.default.func, | ||
submit: false | ||
}; | ||
exports.default = Button; |
{ | ||
"name": "@vtex/styleguide", | ||
"version": "2.0.0-rc.25", | ||
"version": "2.0.0-rc.26", | ||
"scripts": { | ||
@@ -5,0 +5,0 @@ "test": "react-scripts test --env=jsdom", |
59263
1214