@gustavo-valsechi/client 1.4.222 → 1.4.223
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.
|
@@ -40,7 +40,6 @@ var import_label = require("../label");
|
|
|
40
40
|
var import_error = require("../error");
|
|
41
41
|
var import_lodash = __toESM(require("lodash"));
|
|
42
42
|
function InputDateTime(props) {
|
|
43
|
-
var _a;
|
|
44
43
|
const inputRef = (0, import_react.useRef)({});
|
|
45
44
|
const register = (props.register || ((name) => ({})))(props.name || "");
|
|
46
45
|
const onChange = (event) => {
|
|
@@ -65,7 +64,14 @@ function InputDateTime(props) {
|
|
|
65
64
|
onChange
|
|
66
65
|
}
|
|
67
66
|
),
|
|
68
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
67
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
68
|
+
"div",
|
|
69
|
+
{
|
|
70
|
+
className: "input-icon",
|
|
71
|
+
onClick: () => inputRef.current && inputRef.current.showPicker(),
|
|
72
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("i", { "aria-hidden": true, className: "fa-solid fa-calendar" })
|
|
73
|
+
}
|
|
74
|
+
)
|
|
69
75
|
] }),
|
|
70
76
|
!!props.error && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_error.InputError, { children: props.error })
|
|
71
77
|
] });
|
|
@@ -7,7 +7,6 @@ import { InputLabel } from "../label";
|
|
|
7
7
|
import { InputError } from "../error";
|
|
8
8
|
import _ from "lodash";
|
|
9
9
|
function InputDateTime(props) {
|
|
10
|
-
var _a;
|
|
11
10
|
const inputRef = useRef({});
|
|
12
11
|
const register = (props.register || ((name) => ({})))(props.name || "");
|
|
13
12
|
const onChange = (event) => {
|
|
@@ -32,7 +31,14 @@ function InputDateTime(props) {
|
|
|
32
31
|
onChange
|
|
33
32
|
}
|
|
34
33
|
),
|
|
35
|
-
/* @__PURE__ */ jsx(
|
|
34
|
+
/* @__PURE__ */ jsx(
|
|
35
|
+
"div",
|
|
36
|
+
{
|
|
37
|
+
className: "input-icon",
|
|
38
|
+
onClick: () => inputRef.current && inputRef.current.showPicker(),
|
|
39
|
+
children: /* @__PURE__ */ jsx("i", { "aria-hidden": true, className: "fa-solid fa-calendar" })
|
|
40
|
+
}
|
|
41
|
+
)
|
|
36
42
|
] }),
|
|
37
43
|
!!props.error && /* @__PURE__ */ jsx(InputError, { children: props.error })
|
|
38
44
|
] });
|