formik-material-ui
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -35,2 +35,16 @@ import { Component, createElement } from 'react'; | ||
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 inherits = function (subClass, superClass) { | ||
@@ -100,8 +114,7 @@ if (typeof superClass !== "function" && superClass !== null) { | ||
return createElement(MaterialUIComponent, { | ||
...mapProps(this.props), | ||
return createElement(MaterialUIComponent, _extends({}, mapProps(this.props), { | ||
ref: !isStateLess(MaterialUIComponent) ? function (el) { | ||
_this2.component = el; | ||
} : null | ||
}); | ||
})); | ||
} | ||
@@ -125,8 +138,6 @@ }]); | ||
return { | ||
...props, | ||
...field, | ||
return _extends({}, props, field, { | ||
error: touched[name] && !!errors[name], | ||
helperText: errors[name] | ||
}; | ||
}); | ||
}); | ||
@@ -133,0 +144,0 @@ |
@@ -41,2 +41,16 @@ '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 inherits = function (subClass, superClass) { | ||
@@ -106,8 +120,7 @@ if (typeof superClass !== "function" && superClass !== null) { | ||
return react.createElement(MaterialUIComponent, { | ||
...mapProps(this.props), | ||
return react.createElement(MaterialUIComponent, _extends({}, mapProps(this.props), { | ||
ref: !isStateLess(MaterialUIComponent) ? function (el) { | ||
_this2.component = el; | ||
} : null | ||
}); | ||
})); | ||
} | ||
@@ -131,8 +144,6 @@ }]); | ||
return { | ||
...props, | ||
...field, | ||
return _extends({}, props, field, { | ||
error: touched[name] && !!errors[name], | ||
helperText: errors[name] | ||
}; | ||
}); | ||
}); | ||
@@ -139,0 +150,0 @@ |
{ | ||
"name": "formik-material-ui", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"dependencies": { | ||
@@ -5,0 +5,0 @@ "@material-ui/core": "^1.0.0", |
@@ -16,2 +16,2 @@ [![Build Status](https://travis-ci.org/stackworx/formik-material-ui.svg?branch=master)](https://travis-ci.org/stackworx/formik-material-ui) | ||
[Demo](https://stackworx.github.io/formik-material-ui/?selectedKind=Welcome&selectedStory=to%20Storybook&full=0&addons=1&stories=1&panelRight=0&addonPanel=storybook%2Factions%2Factions-panel) | ||
[Demo](https://stackworx.github.io/formik-material-ui) |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
18155
241