@momo-kits/native-kits 0.160.1-search-animation.7-debug → 0.160.1-search-animation.8-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.160.1-search-animation.7-debug"
43
+ version = "0.160.1-search-animation.8-debug"
44
44
  summary = "IOS Shared module"
45
45
  homepage = "https://momo.vn"
46
46
  ios.deploymentTarget = "15.0"
@@ -349,25 +349,25 @@ private fun LiteScreenLayout(
349
349
  }
350
350
 
351
351
  if (!isHeaderNone && onGoBack != null) {
352
- Box(
352
+ val coreModifier = Modifier
353
+ .layoutId(HeaderId.BACK_ID)
354
+ .then(animationOpacityModifier)
355
+ .clip(CircleShape)
356
+ .noFeedbackClickable(onClick = onGoBack)
357
+ .setAutomationId("btn_navigation_back")
358
+ inputSearchProps?.customBackIcon?.invoke(coreModifier) ?: Box(
353
359
  modifier = Modifier
354
360
  .size(28.dp)
355
- .layoutId(HeaderId.BACK_ID)
356
- .then(animationOpacityModifier)
357
- .clip(CircleShape)
358
- .conditional(inputSearchProps?.customBackIcon == null) {
359
- this.border(
360
- width = 0.2.dp,
361
- color = headerColor.borderColor,
362
- shape = CircleShape,
363
- )
364
- .background(color = headerColor.backgroundButton)
365
- }
366
- .noFeedbackClickable(onClick = onGoBack)
367
- .setAutomationId("btn_navigation_back")
361
+ .then(coreModifier)
362
+ .border(
363
+ width = 0.2.dp,
364
+ color = headerColor.borderColor,
365
+ shape = CircleShape,
366
+ )
367
+ .background(color = headerColor.backgroundButton)
368
368
  .padding(Spacing.XS),
369
369
  ) {
370
- inputSearchProps?.customBackIcon?.invoke() ?: Icon(
370
+ Icon(
371
371
  source = "arrow-back",
372
372
  color = headerColor.tintIconColor,
373
373
  size = 20.dp,
@@ -708,7 +708,7 @@ data class LiteInputSearchProps(
708
708
  val placeHolder: String? = null,
709
709
 
710
710
  val cursorBrush: Brush? = null,
711
- val customBackIcon: @Composable (() -> Unit)? = null,
711
+ val customBackIcon: @Composable ((Modifier) -> Unit)? = null,
712
712
  val customSearchIcon: @Composable (() -> Unit)? = null,
713
713
  val customPlaceHolder: @Composable (() -> Unit)? = null,
714
714
  val customTextStyle: TextStyle? = null,
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.7
21
+ version=0.160.1-search-animation.8
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.160.1-search-animation.7-debug",
3
+ "version": "0.160.1-search-animation.8-debug",
4
4
  "private": false,
5
5
  "dependencies": {},
6
6
  "devDependencies": {},