@mpen/react-basic-inputs
Advanced tools
Comparing version 0.2.8 to 0.2.9
@@ -22,3 +22,3 @@ import { ComponentPropsWithoutRef } from 'react'; | ||
max?: number | string | Date; | ||
value?: number | string | Date; | ||
value?: number | string | Date | null; | ||
defaultValue?: number | string | Date; | ||
@@ -25,0 +25,0 @@ }, 'type'>; |
@@ -267,3 +267,3 @@ var V = Object.defineProperty; | ||
function me({ value: e, defaultValue: t, min: n, max: u, ...r }) { | ||
return e != null && (r.value = I(e)), t != null && (r.defaultValue = I(t)), n != null && (r.min = I(n)), u != null && (r.max = I(u)), /* @__PURE__ */ x("input", { type: "datetime-local", ...r }); | ||
return e !== void 0 && (r.value = e === null ? "" : I(e)), t != null && (r.defaultValue = I(t)), n != null && (r.min = I(n)), u != null && (r.max = I(u)), /* @__PURE__ */ x("input", { type: "datetime-local", ...r }); | ||
} | ||
@@ -270,0 +270,0 @@ export { |
{ | ||
"name": "@mpen/react-basic-inputs", | ||
"private": false, | ||
"version": "0.2.8", | ||
"version": "0.2.9", | ||
"type": "module", | ||
@@ -6,0 +6,0 @@ "files": ["dist"], |
Sorry, the diff of this file is not supported yet
24529