@gustavo-valsechi/client 1.4.141 → 1.4.143
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);
|
|
@@ -126,20 +126,12 @@ function InputSelect(props) {
|
|
|
126
126
|
children: value
|
|
127
127
|
}
|
|
128
128
|
),
|
|
129
|
-
/* @__PURE__ */ (0, import_jsx_runtime.
|
|
129
|
+
focus ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "input-icon", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("i", { "aria-hidden": true, className: "fa-solid fa-chevron-up" }) }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
130
130
|
"div",
|
|
131
131
|
{
|
|
132
132
|
className: "input-icon",
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
console.log(focus);
|
|
136
|
-
if (focus) return;
|
|
137
|
-
inputRef.current.focus();
|
|
138
|
-
},
|
|
139
|
-
children: [
|
|
140
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("i", { "aria-hidden": true, className: "fa-solid fa-chevron-up" }),
|
|
141
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("i", { "aria-hidden": true, className: "fa-solid fa-chevron-down" })
|
|
142
|
-
]
|
|
133
|
+
onClick: () => inputRef.current.focus(),
|
|
134
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("i", { "aria-hidden": true, className: "fa-solid fa-chevron-down" })
|
|
143
135
|
}
|
|
144
136
|
)
|
|
145
137
|
]
|
|
@@ -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);
|
|
@@ -93,20 +93,12 @@ function InputSelect(props) {
|
|
|
93
93
|
children: value
|
|
94
94
|
}
|
|
95
95
|
),
|
|
96
|
-
/* @__PURE__ */
|
|
96
|
+
focus ? /* @__PURE__ */ jsx("div", { className: "input-icon", children: /* @__PURE__ */ jsx("i", { "aria-hidden": true, className: "fa-solid fa-chevron-up" }) }) : /* @__PURE__ */ jsx(
|
|
97
97
|
"div",
|
|
98
98
|
{
|
|
99
99
|
className: "input-icon",
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
console.log(focus);
|
|
103
|
-
if (focus) return;
|
|
104
|
-
inputRef.current.focus();
|
|
105
|
-
},
|
|
106
|
-
children: [
|
|
107
|
-
/* @__PURE__ */ jsx("i", { "aria-hidden": true, className: "fa-solid fa-chevron-up" }),
|
|
108
|
-
/* @__PURE__ */ jsx("i", { "aria-hidden": true, className: "fa-solid fa-chevron-down" })
|
|
109
|
-
]
|
|
100
|
+
onClick: () => inputRef.current.focus(),
|
|
101
|
+
children: /* @__PURE__ */ jsx("i", { "aria-hidden": true, className: "fa-solid fa-chevron-down" })
|
|
110
102
|
}
|
|
111
103
|
)
|
|
112
104
|
]
|
|
@@ -95,37 +95,10 @@ const Container = import_styled_components.default.div`
|
|
|
95
95
|
display: flex;
|
|
96
96
|
align-items: center;
|
|
97
97
|
justify-content: center;
|
|
98
|
+
position: relative;
|
|
98
99
|
|
|
99
100
|
i {
|
|
100
101
|
font-size: .9rem;
|
|
101
|
-
|
|
102
|
-
&.fa-chevron-up {
|
|
103
|
-
z-index: -1;
|
|
104
|
-
opacity: 0;
|
|
105
|
-
position: fixed;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
&.fa-chevron-down {
|
|
109
|
-
z-index: 0;
|
|
110
|
-
opacity: 1;
|
|
111
|
-
position: relative;
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
&[data-focus="true"] {
|
|
116
|
-
i {
|
|
117
|
-
&.fa-chevron-up {
|
|
118
|
-
z-index: 0;
|
|
119
|
-
opacity: 1;
|
|
120
|
-
position: relative;
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
&.fa-chevron-down {
|
|
124
|
-
z-index: -1;
|
|
125
|
-
opacity: 0;
|
|
126
|
-
position: fixed;
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
102
|
}
|
|
130
103
|
}
|
|
131
104
|
}
|
|
@@ -62,37 +62,10 @@ const Container = styled.div`
|
|
|
62
62
|
display: flex;
|
|
63
63
|
align-items: center;
|
|
64
64
|
justify-content: center;
|
|
65
|
+
position: relative;
|
|
65
66
|
|
|
66
67
|
i {
|
|
67
68
|
font-size: .9rem;
|
|
68
|
-
|
|
69
|
-
&.fa-chevron-up {
|
|
70
|
-
z-index: -1;
|
|
71
|
-
opacity: 0;
|
|
72
|
-
position: fixed;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
&.fa-chevron-down {
|
|
76
|
-
z-index: 0;
|
|
77
|
-
opacity: 1;
|
|
78
|
-
position: relative;
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
&[data-focus="true"] {
|
|
83
|
-
i {
|
|
84
|
-
&.fa-chevron-up {
|
|
85
|
-
z-index: 0;
|
|
86
|
-
opacity: 1;
|
|
87
|
-
position: relative;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
&.fa-chevron-down {
|
|
91
|
-
z-index: -1;
|
|
92
|
-
opacity: 0;
|
|
93
|
-
position: fixed;
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
69
|
}
|
|
97
70
|
}
|
|
98
71
|
}
|