uniforms-bootstrap4
Advanced tools
Comparing version 3.8.1 to 3.9.0
@@ -9,4 +9,5 @@ import { Ref } from 'react'; | ||
wrapClassName?: string; | ||
type?: 'date' | 'datetime-local'; | ||
}>; | ||
declare const _default: import("uniforms").ConnectedField<DateFieldProps, Date | undefined>; | ||
export default _default; |
@@ -13,3 +13,4 @@ "use strict"; | ||
var _b; | ||
var { disabled, error, id, inputClassName, inputRef, max, min, name, onChange, placeholder, readOnly, value } = _a, props = tslib_1.__rest(_a, ["disabled", "error", "id", "inputClassName", "inputRef", "max", "min", "name", "onChange", "placeholder", "readOnly", "value"]); | ||
var { disabled, error, id, inputClassName, inputRef, max, min, name, onChange, placeholder, readOnly, value, type } = _a, props = tslib_1.__rest(_a, ["disabled", "error", "id", "inputClassName", "inputRef", "max", "min", "name", "onChange", "placeholder", "readOnly", "value", "type"]); | ||
const dateType = type === 'date' ? type : 'datetime-local'; | ||
return wrapField_1.default(Object.assign(Object.assign({}, props), { id }), react_1.default.createElement("input", { className: classnames_1.default(inputClassName, 'form-control', { | ||
@@ -26,4 +27,4 @@ 'is-invalid': error, | ||
} | ||
}, placeholder: placeholder, readOnly: readOnly, ref: inputRef, type: "datetime-local", value: (_b = dateFormat(value)) !== null && _b !== void 0 ? _b : '' })); | ||
}, placeholder: placeholder, readOnly: readOnly, ref: inputRef, type: dateType, value: (_b = dateFormat(value)) !== null && _b !== void 0 ? _b : '' })); | ||
} | ||
exports.default = uniforms_1.connectField(Date, { kind: 'leaf' }); |
@@ -9,4 +9,5 @@ import { Ref } from 'react'; | ||
wrapClassName?: string; | ||
type?: 'date' | 'datetime-local'; | ||
}>; | ||
declare const _default: import("uniforms").ConnectedField<DateFieldProps, Date | undefined>; | ||
export default _default; |
@@ -11,3 +11,4 @@ import { __rest } from "tslib"; | ||
var _b; | ||
var { disabled, error, id, inputClassName, inputRef, max, min, name, onChange, placeholder, readOnly, value } = _a, props = __rest(_a, ["disabled", "error", "id", "inputClassName", "inputRef", "max", "min", "name", "onChange", "placeholder", "readOnly", "value"]); | ||
var { disabled, error, id, inputClassName, inputRef, max, min, name, onChange, placeholder, readOnly, value, type } = _a, props = __rest(_a, ["disabled", "error", "id", "inputClassName", "inputRef", "max", "min", "name", "onChange", "placeholder", "readOnly", "value", "type"]); | ||
const dateType = type === 'date' ? type : 'datetime-local'; | ||
return wrapField(Object.assign(Object.assign({}, props), { id }), React.createElement("input", { className: classnames(inputClassName, 'form-control', { | ||
@@ -24,4 +25,4 @@ 'is-invalid': error, | ||
} | ||
}, placeholder: placeholder, readOnly: readOnly, ref: inputRef, type: "datetime-local", value: (_b = dateFormat(value)) !== null && _b !== void 0 ? _b : '' })); | ||
}, placeholder: placeholder, readOnly: readOnly, ref: inputRef, type: dateType, value: (_b = dateFormat(value)) !== null && _b !== void 0 ? _b : '' })); | ||
} | ||
export default connectField(Date, { kind: 'leaf' }); |
{ | ||
"name": "uniforms-bootstrap4", | ||
"version": "3.8.1", | ||
"version": "3.9.0", | ||
"license": "MIT", | ||
@@ -38,6 +38,6 @@ "main": "./cjs/index.js", | ||
"tslib": "^2.2.0", | ||
"uniforms": "^3.8.1", | ||
"uniforms": "^3.9.0", | ||
"warning": "^4.0.0" | ||
}, | ||
"gitHead": "651159208b7548df37463ab3c5c8143c2d34188c" | ||
"gitHead": "88112752bda44226fe116ccfdb317758408f2026" | ||
} |
Sorry, the diff of this file is not supported yet
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
176139
3825
Updateduniforms@^3.9.0