@momo-kits/native-kits 0.160.1-searchinput.1-debug → 0.160.1-searchinput.2-debug

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.
@@ -40,7 +40,7 @@ kotlin {
40
40
  }
41
41
 
42
42
  cocoapods {
43
- version = "0.160.1-searchinput.1-debug"
43
+ version = "0.160.1-searchinput.2-debug"
44
44
  summary = "IOS Shared module"
45
45
  homepage = "https://momo.vn"
46
46
  ios.deploymentTarget = "15.0"
@@ -147,12 +147,13 @@ fun InputSearch(
147
147
  )
148
148
  }
149
149
 
150
- Row(verticalAlignment = Alignment.CenterVertically, modifier = Modifier
151
- .fillMaxWidth()
152
- .height(36.dp)
153
- .conditional(IsShowBaseLineDebug) {
154
- border(1.dp, Colors.blue_03)
155
- }
150
+ Row(
151
+ verticalAlignment = Alignment.CenterVertically, modifier = Modifier
152
+ .fillMaxWidth()
153
+ .height(36.dp)
154
+ .conditional(IsShowBaseLineDebug) {
155
+ border(1.dp, Colors.blue_03)
156
+ }
156
157
  ) {
157
158
  BasicTextField(
158
159
  enabled = !inputSearchProps.disabled,
@@ -200,19 +201,16 @@ fun InputSearch(
200
201
  color = AppTheme.current.colors.text.hint
201
202
  )
202
203
  Box(Modifier.weight(1f)) {
203
- inputSearchProps.placeholderCustomRender?.invoke()
204
- ?: if (inputSearchProps.text.value.isEmpty()) {
205
- Text(
204
+ if (inputSearchProps.text.value.isEmpty()) {
205
+ inputSearchProps.placeholderCustomRender?.invoke()
206
+ ?: Text(
206
207
  text = inputSearchProps.placeholder,
207
208
  style = placeHolderStyle,
208
209
  maxLines = 1,
209
210
  color = placeholderColor,
210
211
  overflow = TextOverflow.Ellipsis
211
212
  )
212
-
213
- } else {
214
-
215
- }
213
+ }
216
214
  innerTextField()
217
215
  }
218
216
  if (inputSearchProps.clearCondition?.invoke() == true || (isFocused && inputSearchProps.text.value.isNotEmpty())) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@momo-kits/native-kits",
3
- "version": "0.160.1-searchinput.1-debug",
3
+ "version": "0.160.1-searchinput.2-debug",
4
4
  "private": false,
5
5
  "dependencies": {},
6
6
  "devDependencies": {},