@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.
@@ -40,7 +40,7 @@ kotlin {
40
40
  }
41
41
 
42
42
  cocoapods {
43
- version = "0.156.6-beta.15-debug"
43
+ version = "0.156.6-beta.16-debug"
44
44
  summary = "IOS Shared module"
45
45
  homepage = "https://momo.vn"
46
46
  ios.deploymentTarget = "15.0"
@@ -1,6 +1,6 @@
1
1
  Pod::Spec.new do |spec|
2
2
  spec.name = 'compose'
3
- spec.version = '0.156.1-test.6'
3
+ spec.version = '0.156.6-beta.16'
4
4
  spec.homepage = 'https://momo.vn'
5
5
  spec.source = { :http=> ''}
6
6
  spec.authors = ''
@@ -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 = 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
@@ -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.156.6-beta.15
21
+ version=0.156.6-beta.16
22
22
 
23
23
  repo=GitLab
24
24
  url=https://gitlab.mservice.com.vn/api/v4/projects/5400/packages/maven
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@momo-kits/native-kits",
3
- "version": "0.156.6-beta.15-debug",
3
+ "version": "0.156.6-beta.16-debug",
4
4
  "private": false,
5
5
  "dependencies": {},
6
6
  "devDependencies": {},