@danderson00/react-forms-material 0.0.18 → 0.0.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2 -1
- package/package.json +2 -2
- package/src/index.js +1 -1
package/dist/index.js
CHANGED
|
@@ -40,7 +40,7 @@ var _Select = _interopRequireDefault(require("@material-ui/core/Select"));
|
|
|
40
40
|
|
|
41
41
|
require("./styles");
|
|
42
42
|
|
|
43
|
-
var _excluded = ["className", "error", "hiddenLabel", "variant", "margin", "label", "helperText", "shrinkLabel"],
|
|
43
|
+
var _excluded = ["className", "error", "hiddenLabel", "variant", "margin", "label", "helperText", "shrinkLabel", "valid"],
|
|
44
44
|
_excluded2 = ["name", "values", "labels", "numeric", "required", "getFieldValue", "getFieldValues"],
|
|
45
45
|
_excluded3 = ["values", "labels"];
|
|
46
46
|
|
|
@@ -109,6 +109,7 @@ var base = function base(component) {
|
|
|
109
109
|
label = _ref3.label,
|
|
110
110
|
helperText = _ref3.helperText,
|
|
111
111
|
shrinkLabel = _ref3.shrinkLabel,
|
|
112
|
+
valid = _ref3.valid,
|
|
112
113
|
inputProps = _objectWithoutProperties(_ref3, _excluded);
|
|
113
114
|
|
|
114
115
|
return /*#__PURE__*/(0, _react.createElement)(_FormControl["default"], {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@danderson00/react-forms-material",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.19",
|
|
4
4
|
"description": "Beautiful, ultra simple, stateless, validated forms for use in React function components",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "src/index.js",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"ui"
|
|
53
53
|
],
|
|
54
54
|
"author": "danderson00",
|
|
55
|
-
"license": "
|
|
55
|
+
"license": "MIT",
|
|
56
56
|
"publishConfig": {
|
|
57
57
|
"access": "public"
|
|
58
58
|
},
|
package/src/index.js
CHANGED
|
@@ -25,7 +25,7 @@ const wrapped = (component, options, baseOptions) => wrapInput(
|
|
|
25
25
|
)
|
|
26
26
|
|
|
27
27
|
const base = (component, options = {}, { alwaysShrinkLabel, shrinkLabel: shrinkLabelOption = true } = {}) => (
|
|
28
|
-
({ className, error, hiddenLabel, variant, margin, label, helperText, shrinkLabel, ...inputProps }) => (
|
|
28
|
+
({ className, error, hiddenLabel, variant, margin, label, helperText, shrinkLabel, valid, ...inputProps }) => (
|
|
29
29
|
createElement(MuiFormControl, {
|
|
30
30
|
className: `react-forms-material-field${options.type ? ` react-forms-material-${options.type}` : ''}${className ? ` ${className}` : ''}`,
|
|
31
31
|
error,
|