@momo-kits/native-kits 0.111.1-beta.1 → 0.111.1-beta.2

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.
@@ -5,10 +5,10 @@ import androidx.compose.foundation.clickable
5
5
  import androidx.compose.foundation.interaction.MutableInteractionSource
6
6
  import androidx.compose.foundation.layout.Arrangement
7
7
  import androidx.compose.foundation.layout.Box
8
- import androidx.compose.foundation.layout.Column
9
8
  import androidx.compose.foundation.layout.Row
10
9
  import androidx.compose.foundation.layout.Spacer
11
10
  import androidx.compose.foundation.layout.fillMaxHeight
11
+ import androidx.compose.foundation.layout.fillMaxWidth
12
12
  import androidx.compose.foundation.layout.height
13
13
  import androidx.compose.foundation.layout.padding
14
14
  import androidx.compose.foundation.layout.size
@@ -121,7 +121,7 @@ fun InputSearch(
121
121
  iconTintColor = disabledColor
122
122
  }
123
123
 
124
- Column {
124
+ Row(verticalAlignment = Alignment.CenterVertically, modifier = Modifier.fillMaxWidth()) {
125
125
  BasicTextField(
126
126
  enabled = !inputSearchProps.disabled,
127
127
  singleLine = true,
@@ -134,7 +134,7 @@ fun InputSearch(
134
134
  ),
135
135
  keyboardOptions = inputSearchProps.keyboardOptions.copy(keyboardType = inputSearchProps.keyboardType),
136
136
  keyboardActions = inputSearchProps.keyboardActions,
137
- modifier = inputSearchProps.modifier.height(36.dp).onFocusChanged {
137
+ modifier = inputSearchProps.modifier.weight(1f).height(36.dp).onFocusChanged {
138
138
  isFocused = it.isFocused
139
139
  if (it.isFocused) {
140
140
  inputSearchProps.onFocus()
@@ -215,20 +215,20 @@ fun InputSearch(
215
215
  )
216
216
  }
217
217
  }
218
- if (inputSearchProps.showButtonText) {
219
- Text(
220
- text = inputSearchProps.buttonText,
221
- style = Typography.actionDefault,
222
- color = AppTheme.current.colors.text.default,
223
- modifier = Modifier.padding(start = Spacing.L).clickable(
224
- interactionSource = remember { MutableInteractionSource() },
225
- indication = null,
226
- onClick = inputSearchProps.onPressButtonText
227
- )
228
- )
229
- }
230
218
  }
231
219
  },
232
220
  )
221
+ if (inputSearchProps.showButtonText) {
222
+ Text(
223
+ text = inputSearchProps.buttonText,
224
+ style = Typography.actionDefault,
225
+ color = AppTheme.current.colors.text.default,
226
+ modifier = Modifier.padding(start = Spacing.L).clickable(
227
+ interactionSource = remember { MutableInteractionSource() },
228
+ indication = null,
229
+ onClick = inputSearchProps.onPressButtonText
230
+ )
231
+ )
232
+ }
233
233
  }
234
234
  }
package/local.properties CHANGED
@@ -4,5 +4,5 @@
4
4
  # Location of the SDK. This is only used by Gradle.
5
5
  # For customization when using a Version Control System, please read the
6
6
  # header note.
7
- #Wed Aug 21 14:20:12 ICT 2024
8
- sdk.dir=/Users/huynhdung/Library/Android/sdk
7
+ #Tue Apr 23 16:40:15 ICT 2024
8
+ sdk.dir=/Users/hung.dao1/Library/Android/sdk
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@momo-kits/native-kits",
3
- "version": "0.111.1-beta.1",
3
+ "version": "0.111.1-beta.2",
4
4
  "private": false,
5
5
  "dependencies": {},
6
6
  "devDependencies": {},