@momo-kits/native-kits 0.113.2-beta.1 → 0.113.2-beta.2
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,13 +86,6 @@ 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
|
-
|
|
96
89
|
if (headerType != HeaderType.NONE) {
|
|
97
90
|
BoxWithConstraints(
|
|
98
91
|
Modifier.height(statusBarHeight + 52.dp)
|
|
@@ -141,7 +134,7 @@ fun Header(
|
|
|
141
134
|
|
|
142
135
|
if (((useAnimationSearch && inputSearchProps != null) || inputSearchProps == null) && miniAppContext != null) {
|
|
143
136
|
Box(Modifier.graphicsLayer {
|
|
144
|
-
alpha =
|
|
137
|
+
alpha = if (useAnimationSearch) 1f - (opacity ?: 1f) else 1f
|
|
145
138
|
}) {
|
|
146
139
|
headerRight?.invoke()
|
|
147
140
|
}
|
|
@@ -25,7 +25,7 @@ import vn.momo.kits.const.Typography
|
|
|
25
25
|
fun CheckBox(
|
|
26
26
|
disabled: Boolean = false,
|
|
27
27
|
checked: Boolean = false,
|
|
28
|
-
onCheckedChange: () -> Unit,
|
|
28
|
+
onCheckedChange: (Boolean) -> Unit,
|
|
29
29
|
indeterminate: Boolean = false,
|
|
30
30
|
title: String = "",
|
|
31
31
|
) {
|
|
@@ -53,7 +53,7 @@ fun CheckBox(
|
|
|
53
53
|
.background(backgroundColor, RoundedCornerShape(Radius.XS))
|
|
54
54
|
.border(Spacing.XXS, borderColor, RoundedCornerShape(Radius.XS))
|
|
55
55
|
.clickable(
|
|
56
|
-
onClick = onCheckedChange,
|
|
56
|
+
onClick = { onCheckedChange(!checked) },
|
|
57
57
|
enabled = !disabled,
|
|
58
58
|
),
|
|
59
59
|
) {
|