@momo-kits/native-kits 0.89.33-beta.22 → 0.89.33-beta.24
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.
|
@@ -30,6 +30,7 @@ import androidx.compose.ui.focus.onFocusChanged
|
|
|
30
30
|
import androidx.compose.ui.graphics.Color
|
|
31
31
|
import androidx.compose.ui.text.TextStyle
|
|
32
32
|
import androidx.compose.ui.text.input.KeyboardType
|
|
33
|
+
import androidx.compose.ui.text.style.TextOverflow
|
|
33
34
|
import androidx.compose.ui.unit.dp
|
|
34
35
|
import androidx.compose.ui.unit.sp
|
|
35
36
|
import vn.momo.kits.const.AppTheme
|
|
@@ -130,7 +131,7 @@ fun InputSearch(
|
|
|
130
131
|
),
|
|
131
132
|
keyboardOptions = inputSearchProps.keyboardOptions.copy(keyboardType = inputSearchProps.keyboardType),
|
|
132
133
|
keyboardActions = inputSearchProps.keyboardActions,
|
|
133
|
-
modifier =
|
|
134
|
+
modifier = inputSearchProps.modifier.height(36.dp).onFocusChanged {
|
|
134
135
|
isFocused = it.isFocused
|
|
135
136
|
if (it.isFocused) {
|
|
136
137
|
inputSearchProps.onFocus()
|
|
@@ -142,7 +143,7 @@ fun InputSearch(
|
|
|
142
143
|
decorationBox = { innerTextField ->
|
|
143
144
|
Row(verticalAlignment = Alignment.CenterVertically) {
|
|
144
145
|
Row(
|
|
145
|
-
modifier =
|
|
146
|
+
modifier = Modifier.weight(
|
|
146
147
|
inputSearchProps.showButtonText.ifTrue(
|
|
147
148
|
8f,
|
|
148
149
|
1f
|
|
@@ -177,7 +178,8 @@ fun InputSearch(
|
|
|
177
178
|
lineHeight = 24.sp,
|
|
178
179
|
fontWeight = inputSearchProps.fontWeight.value
|
|
179
180
|
),
|
|
180
|
-
color = placeholderColor
|
|
181
|
+
color = placeholderColor,
|
|
182
|
+
overflow = TextOverflow.Ellipsis
|
|
181
183
|
)
|
|
182
184
|
}
|
|
183
185
|
innerTextField()
|