@gustavo-valsechi/client 1.4.146 → 1.4.147

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.
@@ -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);
@@ -102,7 +102,7 @@ function InputSelect(props) {
102
102
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
103
103
  "input",
104
104
  {
105
- ...import_lodash.default.omit(props, ["className", "register", "mask", "setValue"]),
105
+ ...import_lodash.default.omit(props, ["className", "register", "mask", "setValue", "watch"]),
106
106
  ...register,
107
107
  ref: inputRef,
108
108
  type: "text",
@@ -111,7 +111,7 @@ function InputSelect(props) {
111
111
  onFocus,
112
112
  onBlur,
113
113
  onClick: () => inputRef.current.focus(),
114
- value: focus ? filter : "",
114
+ value: focus ? filter : inputValue,
115
115
  placeholder: import_lodash.default.isString(value) ? value : (value == null ? void 0 : value.textContent) || ""
116
116
  }
117
117
  ),
@@ -69,7 +69,7 @@ function InputSelect(props) {
69
69
  /* @__PURE__ */ jsx(
70
70
  "input",
71
71
  {
72
- ..._.omit(props, ["className", "register", "mask", "setValue"]),
72
+ ..._.omit(props, ["className", "register", "mask", "setValue", "watch"]),
73
73
  ...register,
74
74
  ref: inputRef,
75
75
  type: "text",
@@ -78,7 +78,7 @@ function InputSelect(props) {
78
78
  onFocus,
79
79
  onBlur,
80
80
  onClick: () => inputRef.current.focus(),
81
- value: focus ? filter : "",
81
+ value: focus ? filter : inputValue,
82
82
  placeholder: _.isString(value) ? value : (value == null ? void 0 : value.textContent) || ""
83
83
  }
84
84
  ),
@@ -57,9 +57,11 @@ const Container = import_styled_components.default.div`
57
57
  cursor: pointer;
58
58
  position: relative;
59
59
  z-index: 0;
60
+ opacity: 0;
60
61
 
61
62
  &:focus {
62
63
  cursor: text;
64
+ opacity: 1;
63
65
  }
64
66
 
65
67
  &:disabled {
@@ -24,9 +24,11 @@ const Container = styled.div`
24
24
  cursor: pointer;
25
25
  position: relative;
26
26
  z-index: 0;
27
+ opacity: 0;
27
28
 
28
29
  &:focus {
29
30
  cursor: text;
31
+ opacity: 1;
30
32
  }
31
33
 
32
34
  &:disabled {
@@ -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: () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gustavo-valsechi/client",
3
- "version": "1.4.146",
3
+ "version": "1.4.147",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",