@momo-kits/native-kits 0.156.6-beta.15-debug → 0.156.6-beta.16-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
package/compose/compose.podspec
CHANGED
|
@@ -43,16 +43,15 @@ import androidx.compose.ui.unit.TextUnit
|
|
|
43
43
|
import androidx.compose.ui.unit.dp
|
|
44
44
|
import androidx.compose.ui.unit.sp
|
|
45
45
|
import androidx.compose.ui.zIndex
|
|
46
|
+
import vn.momo.kits.application.IsShowBaseLineDebug
|
|
46
47
|
import vn.momo.kits.const.AppTheme
|
|
48
|
+
import vn.momo.kits.const.Colors
|
|
47
49
|
import vn.momo.kits.const.Radius
|
|
48
50
|
import vn.momo.kits.const.Spacing
|
|
49
|
-
import vn.momo.kits.application.IsShowBaseLineDebug
|
|
50
|
-
import vn.momo.kits.const.Colors
|
|
51
51
|
import vn.momo.kits.const.Typography
|
|
52
52
|
import vn.momo.kits.const.getFont
|
|
53
53
|
import vn.momo.kits.const.scaleSize
|
|
54
54
|
import vn.momo.kits.modifier.conditional
|
|
55
|
-
import vn.momo.kits.modifier.setAutomationId
|
|
56
55
|
import vn.momo.uikits.resources.Res
|
|
57
56
|
import vn.momo.uikits.resources.sfprotext_regular
|
|
58
57
|
|
|
@@ -224,6 +223,7 @@ fun Input(
|
|
|
224
223
|
fontWeight: InputFontWeight = InputFontWeight.REGULAR,
|
|
225
224
|
keyboardType: KeyboardType = KeyboardType.Text,
|
|
226
225
|
modifier: Modifier = Modifier,
|
|
226
|
+
inputModifier: Modifier = Modifier,
|
|
227
227
|
) {
|
|
228
228
|
// Consolidated state management
|
|
229
229
|
var inputState by remember { mutableStateOf(InputState()) }
|
|
@@ -253,10 +253,6 @@ fun Input(
|
|
|
253
253
|
if (disabled) theme.colors.text.disable else floatingIconColor
|
|
254
254
|
}
|
|
255
255
|
|
|
256
|
-
val testId = remember(disabled, floatingValue) {
|
|
257
|
-
if (disabled) "input_${floatingValue}_disabled" else "input_$floatingValue"
|
|
258
|
-
}
|
|
259
|
-
|
|
260
256
|
val fontSize = 14.sp
|
|
261
257
|
val lineHeight = 24.sp
|
|
262
258
|
val scaleFontSize = scaleSize(fontSize)
|
|
@@ -298,8 +294,7 @@ fun Input(
|
|
|
298
294
|
Column(modifier = modifier
|
|
299
295
|
.conditional(IsShowBaseLineDebug) {
|
|
300
296
|
border(1.dp, Colors.blue_03)
|
|
301
|
-
}
|
|
302
|
-
.setAutomationId(testId)) {
|
|
297
|
+
}) {
|
|
303
298
|
BasicTextField(
|
|
304
299
|
enabled = !disabled,
|
|
305
300
|
readOnly = readOnly,
|
|
@@ -308,7 +303,7 @@ fun Input(
|
|
|
308
303
|
textStyle = textStyle,
|
|
309
304
|
visualTransformation = visualTransformation,
|
|
310
305
|
keyboardOptions = keyboardOptionsConfig,
|
|
311
|
-
modifier =
|
|
306
|
+
modifier = inputModifier
|
|
312
307
|
.height(scaleSize(size.values.height.value, 1.1f).dp)
|
|
313
308
|
.onFocusChanged { focusState ->
|
|
314
309
|
val wasFocused = inputState.isFocused
|
package/gradle.properties
CHANGED