@momo-kits/native-kits 0.113.1-beta.7 → 0.113.2-beta.1

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.
@@ -86,6 +86,13 @@ fun Header(
86
86
  )
87
87
  )
88
88
 
89
+ fun getHeaderRightOpacity(): Float {
90
+ if (useAnimationSearch) {
91
+ return 1f - (opacity ?: 1f)
92
+ }
93
+ return if (animatedHeader !== null) opacity ?: 1f else 1f
94
+ }
95
+
89
96
  if (headerType != HeaderType.NONE) {
90
97
  BoxWithConstraints(
91
98
  Modifier.height(statusBarHeight + 52.dp)
@@ -132,9 +139,9 @@ fun Header(
132
139
  }
133
140
  }
134
141
 
135
- if (inputSearchProps == null && miniAppContext != null) {
142
+ if (((useAnimationSearch && inputSearchProps != null) || inputSearchProps == null) && miniAppContext != null) {
136
143
  Box(Modifier.graphicsLayer {
137
- alpha = if (animatedHeader !== null) opacity ?: 1f else 1f
144
+ alpha = getHeaderRightOpacity()
138
145
  }) {
139
146
  headerRight?.invoke()
140
147
  }
@@ -79,12 +79,12 @@ object Spacing {
79
79
 
80
80
  @Composable
81
81
  fun HeaderRight(
82
- headerRight: HeaderRightData? = null,
82
+ data: HeaderRightData? = null,
83
83
  ) {
84
84
  Row(
85
85
  verticalAlignment = Alignment.CenterVertically,
86
86
  ) {
87
- ToolkitHeaderRight(headerRight = headerRight)
87
+ ToolkitHeaderRight(headerRight = data)
88
88
  }
89
89
  }
90
90
 
package/local.properties CHANGED
@@ -4,5 +4,5 @@
4
4
  # Location of the SDK. This is only used by Gradle.
5
5
  # For customization when using a Version Control System, please read the
6
6
  # header note.
7
- #Sun Mar 02 11:30:14 ICT 2025
8
- sdk.dir=/Users/nguyenhoangson/Library/Android/sdk
7
+ #Wed Aug 21 14:20:12 ICT 2024
8
+ sdk.dir=/Users/huynhdung/Library/Android/sdk
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@momo-kits/native-kits",
3
- "version": "0.113.1-beta.7",
3
+ "version": "0.113.2-beta.1",
4
4
  "private": false,
5
5
  "dependencies": {},
6
6
  "devDependencies": {},