@gustavo-valsechi/client 1.4.146 → 1.4.148
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/components/types/form/types/datetime/index.js +1 -1
- package/dist/components/types/form/types/datetime/index.mjs +1 -1
- package/dist/components/types/form/types/select/index.js +2 -1
- package/dist/components/types/form/types/select/index.mjs +2 -1
- package/dist/components/types/form/types/select/styles.js +2 -0
- package/dist/components/types/form/types/select/styles.mjs +2 -0
- package/dist/components/types/form/types/text/index.js +1 -1
- package/dist/components/types/form/types/text/index.mjs +1 -1
- package/dist/components/types/form/types/textarea/index.js +1 -1
- package/dist/components/types/form/types/textarea/index.mjs +1 -1
- package/package.json +1 -1
|
@@ -53,7 +53,7 @@ function InputDateTime(props) {
|
|
|
53
53
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "input-content", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
54
54
|
"input",
|
|
55
55
|
{
|
|
56
|
-
...import_lodash.default.omit(props, ["className", "onChange", "mask", "type", "required", "register", "setValue"]),
|
|
56
|
+
...import_lodash.default.omit(props, ["className", "onChange", "mask", "type", "required", "register", "setValue", "watch"]),
|
|
57
57
|
type: "datetime-local",
|
|
58
58
|
onFocus: () => {
|
|
59
59
|
if (props.onFocus) props.onFocus(props.name);
|
|
@@ -20,7 +20,7 @@ function InputDateTime(props) {
|
|
|
20
20
|
/* @__PURE__ */ jsx("div", { className: "input-content", children: /* @__PURE__ */ jsx(
|
|
21
21
|
"input",
|
|
22
22
|
{
|
|
23
|
-
..._.omit(props, ["className", "onChange", "mask", "type", "required", "register", "setValue"]),
|
|
23
|
+
..._.omit(props, ["className", "onChange", "mask", "type", "required", "register", "setValue", "watch"]),
|
|
24
24
|
type: "datetime-local",
|
|
25
25
|
onFocus: () => {
|
|
26
26
|
if (props.onFocus) props.onFocus(props.name);
|
|
@@ -50,6 +50,7 @@ function InputSelect(props) {
|
|
|
50
50
|
const register = (props.register || ((name) => ({})))(props.name || "");
|
|
51
51
|
const inputValue = (_a = props.watch) == null ? void 0 : _a.call(props, props.name);
|
|
52
52
|
const value = ((_b = import_lodash.default.find(props.options, (option) => Object.keys(option)[0] === inputValue)) == null ? void 0 : _b[inputValue || ""]) || "";
|
|
53
|
+
console.log(inputValue);
|
|
53
54
|
(0, import_react.useEffect)(() => {
|
|
54
55
|
var _a2;
|
|
55
56
|
if (!(inputRef == null ? void 0 : inputRef.current) || !(containerRef == null ? void 0 : containerRef.current)) return;
|
|
@@ -102,7 +103,7 @@ function InputSelect(props) {
|
|
|
102
103
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
103
104
|
"input",
|
|
104
105
|
{
|
|
105
|
-
...import_lodash.default.omit(props, ["className", "register", "mask", "setValue"]),
|
|
106
|
+
...import_lodash.default.omit(props, ["className", "register", "mask", "setValue", "watch"]),
|
|
106
107
|
...register,
|
|
107
108
|
ref: inputRef,
|
|
108
109
|
type: "text",
|
|
@@ -17,6 +17,7 @@ function InputSelect(props) {
|
|
|
17
17
|
const register = (props.register || ((name) => ({})))(props.name || "");
|
|
18
18
|
const inputValue = (_a = props.watch) == null ? void 0 : _a.call(props, props.name);
|
|
19
19
|
const value = ((_b = _.find(props.options, (option) => Object.keys(option)[0] === inputValue)) == null ? void 0 : _b[inputValue || ""]) || "";
|
|
20
|
+
console.log(inputValue);
|
|
20
21
|
useEffect(() => {
|
|
21
22
|
var _a2;
|
|
22
23
|
if (!(inputRef == null ? void 0 : inputRef.current) || !(containerRef == null ? void 0 : containerRef.current)) return;
|
|
@@ -69,7 +70,7 @@ function InputSelect(props) {
|
|
|
69
70
|
/* @__PURE__ */ jsx(
|
|
70
71
|
"input",
|
|
71
72
|
{
|
|
72
|
-
..._.omit(props, ["className", "register", "mask", "setValue"]),
|
|
73
|
+
..._.omit(props, ["className", "register", "mask", "setValue", "watch"]),
|
|
73
74
|
...register,
|
|
74
75
|
ref: inputRef,
|
|
75
76
|
type: "text",
|
|
@@ -56,7 +56,7 @@ function InputText(props) {
|
|
|
56
56
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
57
57
|
"input",
|
|
58
58
|
{
|
|
59
|
-
...import_lodash.default.omit(props, ["className", "register", "mask", "setValue"]),
|
|
59
|
+
...import_lodash.default.omit(props, ["className", "register", "mask", "setValue", "watch"]),
|
|
60
60
|
type: props.type === "password" ? showPassword ? "text" : "password" : props.type,
|
|
61
61
|
maxLength: props.maxLength || 255,
|
|
62
62
|
onFocus: () => {
|
|
@@ -23,7 +23,7 @@ function InputText(props) {
|
|
|
23
23
|
/* @__PURE__ */ jsx(
|
|
24
24
|
"input",
|
|
25
25
|
{
|
|
26
|
-
..._.omit(props, ["className", "register", "mask", "setValue"]),
|
|
26
|
+
..._.omit(props, ["className", "register", "mask", "setValue", "watch"]),
|
|
27
27
|
type: props.type === "password" ? showPassword ? "text" : "password" : props.type,
|
|
28
28
|
maxLength: props.maxLength || 255,
|
|
29
29
|
onFocus: () => {
|
|
@@ -53,7 +53,7 @@ function InputTextarea(props) {
|
|
|
53
53
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "input-content", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
54
54
|
"textarea",
|
|
55
55
|
{
|
|
56
|
-
...import_lodash.default.omit(props, ["onFocus", "maxLength", "className", "onChange", "mask", "rows", "required", "register", "setValue"]),
|
|
56
|
+
...import_lodash.default.omit(props, ["onFocus", "maxLength", "className", "onChange", "mask", "rows", "required", "register", "setValue", "watch"]),
|
|
57
57
|
maxLength: props.maxLength,
|
|
58
58
|
rows: props.rows || 5,
|
|
59
59
|
onFocus: () => {
|
|
@@ -20,7 +20,7 @@ function InputTextarea(props) {
|
|
|
20
20
|
/* @__PURE__ */ jsx("div", { className: "input-content", children: /* @__PURE__ */ jsx(
|
|
21
21
|
"textarea",
|
|
22
22
|
{
|
|
23
|
-
..._.omit(props, ["onFocus", "maxLength", "className", "onChange", "mask", "rows", "required", "register", "setValue"]),
|
|
23
|
+
..._.omit(props, ["onFocus", "maxLength", "className", "onChange", "mask", "rows", "required", "register", "setValue", "watch"]),
|
|
24
24
|
maxLength: props.maxLength,
|
|
25
25
|
rows: props.rows || 5,
|
|
26
26
|
onFocus: () => {
|