@momo-kits/native-kits 0.89.30-rc.2 → 0.89.30-rc.4

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.
@@ -70,6 +70,7 @@ fun HeaderImage(
70
70
  val height = statusBarHeight + 52.dp
71
71
  Image(
72
72
  source = headerBackground ?: "",
73
+ loading = false,
73
74
  modifier = Modifier.fillMaxWidth().height(height),
74
75
  options = Options(
75
76
  contentScale = ContentScale.FillWidth
@@ -80,6 +81,7 @@ fun HeaderImage(
80
81
  HeaderType.EXTENDED -> {
81
82
  Image(
82
83
  source = headerBackground ?: "",
84
+ loading = false,
83
85
  modifier = Modifier.fillMaxWidth(),
84
86
  options = Options(
85
87
  contentScale = ContentScale.FillWidth
@@ -33,7 +33,6 @@ fun CheckBox(
33
33
  var backgroundColor = AppTheme.current.colors.background.surface
34
34
  val iconSource = if (indeterminate) "minus" else "ic_checked"
35
35
 
36
-
37
36
  if (checked) {
38
37
  borderColor = AppTheme.current.colors.primary
39
38
  backgroundColor = AppTheme.current.colors.primary
@@ -1,17 +1,13 @@
1
1
  package vn.momo.kits.components
2
2
 
3
- import androidx.compose.foundation.layout.Box
4
- import androidx.compose.foundation.layout.fillMaxSize
5
3
  import androidx.compose.foundation.layout.size
6
4
  import androidx.compose.runtime.Composable
7
- import androidx.compose.ui.Alignment
8
5
  import androidx.compose.ui.Modifier
9
6
  import androidx.compose.ui.graphics.Color
10
7
  import androidx.compose.ui.graphics.ColorFilter
11
8
  import androidx.compose.ui.layout.ContentScale
12
9
  import androidx.compose.ui.unit.Dp
13
10
  import androidx.compose.ui.unit.dp
14
- import coil3.compose.AsyncImage
15
11
  import vn.momo.kits.const.AppTheme
16
12
  import vn.momo.kits.utils.Icons
17
13
 
@@ -25,16 +21,16 @@ fun Icon(
25
21
  val icon = if (source.contains("https")) {
26
22
  source
27
23
  } else {
28
- Icons[source]
24
+ Icons[source] ?: ""
29
25
  }
30
- Box(modifier.size(size), contentAlignment = Alignment.Center) {
31
- AsyncImage(
32
- modifier = Modifier.fillMaxSize(),
33
- model = icon,
34
- contentDescription = null,
26
+ Image(
27
+ modifier = modifier.size(size),
28
+ source = icon,
29
+ loading = false,
30
+ options = Options(
35
31
  contentScale = ContentScale.Fit,
36
32
  colorFilter = color?.let { ColorFilter.tint(it) }
37
- )
38
- }
33
+ ),
34
+ )
39
35
  }
40
36
 
@@ -15,7 +15,6 @@ import androidx.compose.ui.layout.ContentScale
15
15
  import androidx.compose.ui.semantics.contentDescription
16
16
  import androidx.compose.ui.semantics.semantics
17
17
  import androidx.compose.ui.semantics.testTag
18
- import androidx.compose.ui.unit.dp
19
18
  import coil3.compose.AsyncImage
20
19
  import vn.momo.kits.const.AppTheme
21
20
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@momo-kits/native-kits",
3
- "version": "0.89.30-rc.2",
3
+ "version": "0.89.30-rc.4",
4
4
  "private": false,
5
5
  "dependencies": {},
6
6
  "devDependencies": {},