@gustavo-valsechi/client 1.4.142 → 1.4.144
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.
|
@@ -74,9 +74,9 @@ function InputSelect(props) {
|
|
|
74
74
|
return () => target.remove(inputRef);
|
|
75
75
|
}, [containerRef, inputRef]);
|
|
76
76
|
const onBlur = (event) => {
|
|
77
|
+
setFocus(false);
|
|
77
78
|
setFilter("");
|
|
78
79
|
if (register.onBlur) register.onBlur(event);
|
|
79
|
-
setTimeout(() => setFocus(false), 10);
|
|
80
80
|
};
|
|
81
81
|
const onFocus = (event) => {
|
|
82
82
|
setFocus(true);
|
|
@@ -131,7 +131,6 @@ function InputSelect(props) {
|
|
|
131
131
|
{
|
|
132
132
|
className: "input-icon",
|
|
133
133
|
"data-focus": focus,
|
|
134
|
-
onClick: () => inputRef.current.focus(),
|
|
135
134
|
children: [
|
|
136
135
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("i", { "aria-hidden": true, className: "fa-solid fa-chevron-up" }),
|
|
137
136
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("i", { "aria-hidden": true, className: "fa-solid fa-chevron-down" })
|
|
@@ -41,9 +41,9 @@ function InputSelect(props) {
|
|
|
41
41
|
return () => target.remove(inputRef);
|
|
42
42
|
}, [containerRef, inputRef]);
|
|
43
43
|
const onBlur = (event) => {
|
|
44
|
+
setFocus(false);
|
|
44
45
|
setFilter("");
|
|
45
46
|
if (register.onBlur) register.onBlur(event);
|
|
46
|
-
setTimeout(() => setFocus(false), 10);
|
|
47
47
|
};
|
|
48
48
|
const onFocus = (event) => {
|
|
49
49
|
setFocus(true);
|
|
@@ -98,7 +98,6 @@ function InputSelect(props) {
|
|
|
98
98
|
{
|
|
99
99
|
className: "input-icon",
|
|
100
100
|
"data-focus": focus,
|
|
101
|
-
onClick: () => inputRef.current.focus(),
|
|
102
101
|
children: [
|
|
103
102
|
/* @__PURE__ */ jsx("i", { "aria-hidden": true, className: "fa-solid fa-chevron-up" }),
|
|
104
103
|
/* @__PURE__ */ jsx("i", { "aria-hidden": true, className: "fa-solid fa-chevron-down" })
|
|
@@ -78,7 +78,7 @@ const Container = import_styled_components.default.div`
|
|
|
78
78
|
top: 0;
|
|
79
79
|
left: 0;
|
|
80
80
|
height: 100%;
|
|
81
|
-
width:
|
|
81
|
+
width: 100%;
|
|
82
82
|
cursor: pointer;
|
|
83
83
|
z-index: 1;
|
|
84
84
|
padding: 0 1rem;
|
|
@@ -114,9 +114,6 @@ const Container = import_styled_components.default.div`
|
|
|
114
114
|
}
|
|
115
115
|
|
|
116
116
|
&[data-focus="true"] {
|
|
117
|
-
pointer-events: none;
|
|
118
|
-
cursor: pointer;
|
|
119
|
-
|
|
120
117
|
i {
|
|
121
118
|
&.fa-chevron-up {
|
|
122
119
|
z-index: 0;
|
|
@@ -45,7 +45,7 @@ const Container = styled.div`
|
|
|
45
45
|
top: 0;
|
|
46
46
|
left: 0;
|
|
47
47
|
height: 100%;
|
|
48
|
-
width:
|
|
48
|
+
width: 100%;
|
|
49
49
|
cursor: pointer;
|
|
50
50
|
z-index: 1;
|
|
51
51
|
padding: 0 1rem;
|
|
@@ -81,9 +81,6 @@ const Container = styled.div`
|
|
|
81
81
|
}
|
|
82
82
|
|
|
83
83
|
&[data-focus="true"] {
|
|
84
|
-
pointer-events: none;
|
|
85
|
-
cursor: pointer;
|
|
86
|
-
|
|
87
84
|
i {
|
|
88
85
|
&.fa-chevron-up {
|
|
89
86
|
z-index: 0;
|