uniforms-bootstrap4
Advanced tools
Comparing version 3.0.0-rc.5 to 3.0.0-rc.6
@@ -11,6 +11,6 @@ "use strict"; | ||
var _a, _b; | ||
return wrapField_1.default(omit_1.default(props, ['value', 'onChange']), react_1.default.createElement("input", { className: classnames_1.default(props.inputClassName, 'form-control', { | ||
return wrapField_1.default(omit_1.default(props, ['value', 'onChange', 'autoComplete']), react_1.default.createElement("input", { className: classnames_1.default(props.inputClassName, 'form-control', { | ||
'is-invalid': props.error, | ||
}), disabled: props.disabled, id: props.id, name: props.name, onChange: function (event) { return props.onChange(event.target.value); }, placeholder: props.placeholder, ref: props.inputRef, type: (_a = props.type) !== null && _a !== void 0 ? _a : 'text', value: (_b = props.value) !== null && _b !== void 0 ? _b : '' })); | ||
}), autoComplete: props.autoComplete, disabled: props.disabled, id: props.id, name: props.name, onChange: function (event) { return props.onChange(event.target.value); }, placeholder: props.placeholder, ref: props.inputRef, type: (_a = props.type) !== null && _a !== void 0 ? _a : 'text', value: (_b = props.value) !== null && _b !== void 0 ? _b : '' })); | ||
} | ||
exports.default = uniforms_1.connectField(Text, { kind: 'leaf' }); |
@@ -8,6 +8,6 @@ import classnames from 'classnames'; | ||
var _a, _b; | ||
return wrapField(omit(props, ['value', 'onChange']), React.createElement("input", { className: classnames(props.inputClassName, 'form-control', { | ||
return wrapField(omit(props, ['value', 'onChange', 'autoComplete']), React.createElement("input", { className: classnames(props.inputClassName, 'form-control', { | ||
'is-invalid': props.error, | ||
}), disabled: props.disabled, id: props.id, name: props.name, onChange: event => props.onChange(event.target.value), placeholder: props.placeholder, ref: props.inputRef, type: (_a = props.type) !== null && _a !== void 0 ? _a : 'text', value: (_b = props.value) !== null && _b !== void 0 ? _b : '' })); | ||
}), autoComplete: props.autoComplete, disabled: props.disabled, id: props.id, name: props.name, onChange: event => props.onChange(event.target.value), placeholder: props.placeholder, ref: props.inputRef, type: (_a = props.type) !== null && _a !== void 0 ? _a : 'text', value: (_b = props.value) !== null && _b !== void 0 ? _b : '' })); | ||
} | ||
export default connectField(Text, { kind: 'leaf' }); |
{ | ||
"name": "uniforms-bootstrap4", | ||
"version": "3.0.0-rc.5", | ||
"version": "3.0.0-rc.6", | ||
"license": "MIT", | ||
@@ -36,6 +36,6 @@ "main": "es5/index.js", | ||
"tslib": "^1.10.0", | ||
"uniforms": "^3.0.0-rc.5", | ||
"uniforms": "^3.0.0-rc.6", | ||
"warning": "^4.0.0" | ||
}, | ||
"gitHead": "ab34011a489c9b29325f486f24bd0007bc62d9a6" | ||
"gitHead": "609bc4db78edba6795fde467b068df3df4969d52" | ||
} |
Sorry, the diff of this file is not supported yet
165946
3224
Updateduniforms@^3.0.0-rc.6