@momo-kits/native-kits 0.89.33-beta.24 → 0.89.33-beta.26

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.
@@ -46,6 +46,7 @@ fun RenderRightIconSearch(
46
46
  icon: String,
47
47
  color: Color,
48
48
  onClick: () -> Unit,
49
+ iconModifier: Modifier = Modifier
49
50
  ) {
50
51
  if (loading) {
51
52
  Box(Modifier.padding(horizontal = Spacing.S)) {
@@ -66,7 +67,7 @@ fun RenderRightIconSearch(
66
67
  source = icon,
67
68
  color = color,
68
69
  size = 24.dp,
69
- modifier = Modifier.padding(start = Spacing.S, end = 0.dp).clickable(
70
+ modifier = iconModifier.padding(start = Spacing.S, end = 0.dp).clickable(
70
71
  onClick = onClick,
71
72
  interactionSource = remember { MutableInteractionSource() },
72
73
  indication = null
@@ -95,7 +96,8 @@ data class InputSearchProps(
95
96
  val clearCondition: (() -> Boolean)? = null,
96
97
  val keyboardOptions: KeyboardOptions = KeyboardOptions.Default,
97
98
  val keyboardActions: KeyboardActions = KeyboardActions.Default,
98
- val modifier: Modifier = Modifier
99
+ val modifier: Modifier = Modifier,
100
+ val iconModifier: Modifier = Modifier,
99
101
  )
100
102
 
101
103
  @Composable
@@ -178,6 +180,7 @@ fun InputSearch(
178
180
  lineHeight = 24.sp,
179
181
  fontWeight = inputSearchProps.fontWeight.value
180
182
  ),
183
+ maxLines = 1,
181
184
  color = placeholderColor,
182
185
  overflow = TextOverflow.Ellipsis
183
186
  )
@@ -203,7 +206,8 @@ fun InputSearch(
203
206
  inputSearchProps.loading,
204
207
  inputSearchProps.icon,
205
208
  iconTintColor,
206
- inputSearchProps.onRightIconPressed
209
+ inputSearchProps.onRightIconPressed,
210
+ iconModifier = inputSearchProps.iconModifier
207
211
  )
208
212
  }
209
213
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@momo-kits/native-kits",
3
- "version": "0.89.33-beta.24",
3
+ "version": "0.89.33-beta.26",
4
4
  "private": false,
5
5
  "dependencies": {},
6
6
  "devDependencies": {},