@momo-kits/native-kits 0.160.1-search-animation.6-debug → 0.160.1-search-animation.7-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.
package/compose/build.gradle.kts
CHANGED
|
@@ -69,6 +69,8 @@ import androidx.compose.ui.unit.LayoutDirection
|
|
|
69
69
|
import androidx.compose.ui.unit.dp
|
|
70
70
|
import androidx.compose.ui.unit.sp
|
|
71
71
|
import androidx.compose.runtime.staticCompositionLocalOf
|
|
72
|
+
import androidx.compose.ui.graphics.Color.Companion
|
|
73
|
+
import androidx.compose.ui.graphics.SolidColor
|
|
72
74
|
import androidx.compose.ui.unit.lerp
|
|
73
75
|
import kotlinx.coroutines.flow.StateFlow
|
|
74
76
|
import kotlinx.coroutines.flow.collectLatest
|
|
@@ -705,6 +707,7 @@ data class LiteInputSearchProps(
|
|
|
705
707
|
|
|
706
708
|
val placeHolder: String? = null,
|
|
707
709
|
|
|
710
|
+
val cursorBrush: Brush? = null,
|
|
708
711
|
val customBackIcon: @Composable (() -> Unit)? = null,
|
|
709
712
|
val customSearchIcon: @Composable (() -> Unit)? = null,
|
|
710
713
|
val customPlaceHolder: @Composable (() -> Unit)? = null,
|
|
@@ -761,6 +764,7 @@ private fun LiteInputSearch(
|
|
|
761
764
|
modifier = textFieldModifier,
|
|
762
765
|
textStyle = inputSearchProps.customTextStyle ?: inputFieldStyle,
|
|
763
766
|
singleLine = true,
|
|
767
|
+
cursorBrush = inputSearchProps.cursorBrush ?: SolidColor(Color.Black),
|
|
764
768
|
interactionSource = interactionSource,
|
|
765
769
|
decorationBox = { innerTextField ->
|
|
766
770
|
val isShowClear by remember(inputSearchProps.clearCondition, isFocused.value) {
|
package/gradle.properties
CHANGED
|
@@ -18,7 +18,7 @@ kotlin.apple.xcodeCompatibility.nowarn=true
|
|
|
18
18
|
name="ComposeKits"
|
|
19
19
|
group=vn.momo.kits
|
|
20
20
|
artifact.id=kits
|
|
21
|
-
version=0.160.1-search-animation.
|
|
21
|
+
version=0.160.1-search-animation.7
|
|
22
22
|
|
|
23
23
|
repo=GitLab
|
|
24
24
|
url=https://gitlab.mservice.com.vn/api/v4/projects/5400/packages/maven
|