@momo-kits/native-kits 0.89.33-beta.24 → 0.89.33-beta.25
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 =
|
|
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
|
|
@@ -203,7 +205,8 @@ fun InputSearch(
|
|
|
203
205
|
inputSearchProps.loading,
|
|
204
206
|
inputSearchProps.icon,
|
|
205
207
|
iconTintColor,
|
|
206
|
-
inputSearchProps.onRightIconPressed
|
|
208
|
+
inputSearchProps.onRightIconPressed,
|
|
209
|
+
iconModifier = inputSearchProps.iconModifier
|
|
207
210
|
)
|
|
208
211
|
}
|
|
209
212
|
}
|