@momo-kits/native-kits 0.156.5-debug → 0.156.6-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
|
@@ -424,7 +424,7 @@ fun Input(
|
|
|
424
424
|
|
|
425
425
|
// Right icon (password toggle or custom icon)
|
|
426
426
|
when {
|
|
427
|
-
secureTextEntry -> {
|
|
427
|
+
secureTextEntry && text.value.isNotEmpty() -> {
|
|
428
428
|
val iconName = if (inputState.passHidden) "24_security_eye_open" else "24_security_eye_off"
|
|
429
429
|
val togglePassword = {
|
|
430
430
|
onRightIconPressed()
|
|
@@ -7,11 +7,13 @@ import androidx.compose.foundation.layout.Arrangement
|
|
|
7
7
|
import androidx.compose.foundation.layout.Box
|
|
8
8
|
import androidx.compose.foundation.layout.Row
|
|
9
9
|
import androidx.compose.foundation.layout.RowScope
|
|
10
|
+
import androidx.compose.foundation.layout.Spacer
|
|
10
11
|
import androidx.compose.foundation.layout.fillMaxWidth
|
|
11
12
|
import androidx.compose.foundation.layout.height
|
|
12
13
|
import androidx.compose.foundation.layout.offset
|
|
13
14
|
import androidx.compose.foundation.layout.padding
|
|
14
15
|
import androidx.compose.foundation.layout.size
|
|
16
|
+
import androidx.compose.foundation.layout.width
|
|
15
17
|
import androidx.compose.foundation.shape.RoundedCornerShape
|
|
16
18
|
import androidx.compose.runtime.Composable
|
|
17
19
|
import androidx.compose.runtime.getValue
|
|
@@ -98,6 +100,7 @@ fun Header(onBackHandler: (() -> Unit)? = null) {
|
|
|
98
100
|
onBackHandler?.invoke() ?: navigator.onBackSafe { }
|
|
99
101
|
}
|
|
100
102
|
)
|
|
103
|
+
Spacer(Modifier.width(Spacing.M))
|
|
101
104
|
}
|
|
102
105
|
|
|
103
106
|
HeaderContent(
|
|
@@ -137,7 +140,7 @@ fun BackButton(borderColor: Color, backgroundButton: Color, tintIconColor: Color
|
|
|
137
140
|
@Composable
|
|
138
141
|
fun RowScope.HeaderContent(headerTitle: HeaderTitle, tintIconColor: Color){
|
|
139
142
|
Box(
|
|
140
|
-
Modifier.weight(1f)
|
|
143
|
+
Modifier.weight(1f)
|
|
141
144
|
) {
|
|
142
145
|
when (headerTitle){
|
|
143
146
|
is HeaderTitle.Default -> {
|
package/gradle.properties
CHANGED