@uidu/forms
Advanced tools
Comparing version 1.0.0-beta.3 to 1.0.0-beta.4
@@ -6,2 +6,10 @@ # Change Log | ||
<a name="1.0.0-beta.4"></a> | ||
# [1.0.0-beta.4](https://github.com/uidu-org/uidu-ui-kit/compare/@uidu/forms@1.0.0-beta.3...@uidu/forms@1.0.0-beta.4) (2018-08-31) | ||
**Note:** Version bump only for package @uidu/forms | ||
<a name="1.0.0-beta.3"></a> | ||
@@ -8,0 +16,0 @@ # [1.0.0-beta.3](https://github.com/uidu-org/uidu-ui-kit/compare/@uidu/forms@1.0.0-beta.2...@uidu/forms@1.0.0-beta.3) (2018-08-13) |
@@ -7,2 +7,4 @@ 'use strict'; | ||
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; | ||
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); | ||
@@ -77,9 +79,7 @@ | ||
_reactLadda2.default, | ||
{ | ||
_extends({}, this.props, { | ||
ref: this.initElementRef, | ||
type: 'submit', | ||
loading: loading, | ||
className: (0, _classnames2.default)('btn btn-primary', className, { | ||
'btn-fill': canSubmit | ||
}), | ||
className: (0, _classnames2.default)('btn', className), | ||
disabled: !canSubmit, | ||
@@ -91,3 +91,3 @@ 'data-size': _reactLadda.XL, | ||
'data-spinner-lines': 12 | ||
}, | ||
}), | ||
this.getActionBasedOnMethod() | ||
@@ -105,3 +105,3 @@ ); | ||
FormSubmit.defaultProps = { | ||
className: null, | ||
className: 'btn-primary', | ||
label: null, | ||
@@ -108,0 +108,0 @@ method: 'POST', |
{ | ||
"name": "@uidu/forms", | ||
"version": "1.0.0-beta.3", | ||
"version": "1.0.0-beta.4", | ||
"description": "Forms using Formsy", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -26,8 +26,7 @@ import React, { Component } from 'react'; | ||
<LaddaButton | ||
{...this.props} | ||
ref={this.initElementRef} | ||
type="submit" | ||
loading={loading} | ||
className={classNames('btn btn-primary', className, { | ||
'btn-fill': canSubmit, | ||
})} | ||
className={classNames('btn', className)} | ||
disabled={!canSubmit} | ||
@@ -47,3 +46,3 @@ data-size={XL} | ||
FormSubmit.defaultProps = { | ||
className: null, | ||
className: 'btn-primary', | ||
label: null, | ||
@@ -50,0 +49,0 @@ method: 'POST', |
36176
689