@momo-kits/native-kits 0.89.32-nav.1 → 0.89.32-nav.12
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.
- package/compose/src/commonMain/kotlin/vn/momo/kits/application/Components.kt +0 -2
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/Button.kt +1 -4
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/Image.kt +2 -3
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/Text.kt +3 -1
- package/local.properties +2 -2
- package/package.json +1 -1
|
@@ -32,7 +32,6 @@ import androidx.compose.ui.graphics.Color
|
|
|
32
32
|
import androidx.compose.ui.graphics.graphicsLayer
|
|
33
33
|
import androidx.compose.ui.layout.ContentScale
|
|
34
34
|
import androidx.compose.ui.platform.LocalDensity
|
|
35
|
-
import androidx.compose.ui.semantics.contentDescription
|
|
36
35
|
import androidx.compose.ui.semantics.semantics
|
|
37
36
|
import androidx.compose.ui.semantics.testTag
|
|
38
37
|
import androidx.compose.ui.text.style.TextAlign
|
|
@@ -281,7 +280,6 @@ fun Header(
|
|
|
281
280
|
title = title,
|
|
282
281
|
color = if (animatedHeader !== null) tintIconColorAnim else tintIconColor,
|
|
283
282
|
modifier = Modifier.semantics {
|
|
284
|
-
contentDescription = title
|
|
285
283
|
testTag = "title_navigation_header"
|
|
286
284
|
}
|
|
287
285
|
)
|
|
@@ -18,7 +18,6 @@ import androidx.compose.ui.Alignment
|
|
|
18
18
|
import androidx.compose.ui.Modifier
|
|
19
19
|
import androidx.compose.ui.draw.clip
|
|
20
20
|
import androidx.compose.ui.graphics.Color
|
|
21
|
-
import androidx.compose.ui.semantics.contentDescription
|
|
22
21
|
import androidx.compose.ui.semantics.semantics
|
|
23
22
|
import androidx.compose.ui.semantics.testTag
|
|
24
23
|
import androidx.compose.ui.text.TextStyle
|
|
@@ -259,9 +258,7 @@ fun Button(
|
|
|
259
258
|
.defaultMinSize(
|
|
260
259
|
minWidth = size.value.width
|
|
261
260
|
).height(size.value.height)
|
|
262
|
-
.semantics {
|
|
263
|
-
contentDescription = title; testTag = testId
|
|
264
|
-
},
|
|
261
|
+
.semantics { testTag = testId },
|
|
265
262
|
horizontalArrangement = Arrangement.Center,
|
|
266
263
|
verticalAlignment = Alignment.CenterVertically,
|
|
267
264
|
) {
|
|
@@ -14,7 +14,6 @@ import androidx.compose.ui.graphics.painter.Painter
|
|
|
14
14
|
import androidx.compose.ui.layout.ContentScale
|
|
15
15
|
import androidx.compose.ui.semantics.contentDescription
|
|
16
16
|
import androidx.compose.ui.semantics.semantics
|
|
17
|
-
import androidx.compose.ui.semantics.testTag
|
|
18
17
|
import coil3.compose.AsyncImage
|
|
19
18
|
import vn.momo.kits.const.AppTheme
|
|
20
19
|
|
|
@@ -48,9 +47,9 @@ fun Image(
|
|
|
48
47
|
)
|
|
49
48
|
}
|
|
50
49
|
|
|
51
|
-
Box(modifier = modifier) {
|
|
50
|
+
Box(modifier = modifier.semantics {contentDescription = "img|$source"}) {
|
|
52
51
|
AsyncImage(
|
|
53
|
-
modifier = Modifier.matchParentSize()
|
|
52
|
+
modifier = Modifier.matchParentSize(),
|
|
54
53
|
model = source,
|
|
55
54
|
contentDescription = null,
|
|
56
55
|
contentScale = imageOptions.contentScale,
|
|
@@ -3,6 +3,8 @@ package vn.momo.kits.components
|
|
|
3
3
|
import androidx.compose.runtime.Composable
|
|
4
4
|
import androidx.compose.ui.Modifier
|
|
5
5
|
import androidx.compose.ui.graphics.Color
|
|
6
|
+
import androidx.compose.ui.semantics.contentDescription
|
|
7
|
+
import androidx.compose.ui.semantics.semantics
|
|
6
8
|
import androidx.compose.ui.text.TextLayoutResult
|
|
7
9
|
import androidx.compose.ui.text.TextStyle
|
|
8
10
|
import androidx.compose.ui.text.style.TextAlign
|
|
@@ -31,7 +33,7 @@ fun Text(
|
|
|
31
33
|
val font = getFontFamily(fontFamily, style.fontWeight)
|
|
32
34
|
|
|
33
35
|
androidx.compose.material3.Text(
|
|
34
|
-
modifier = modifier,
|
|
36
|
+
modifier = modifier.semantics { contentDescription = text },
|
|
35
37
|
text = text,
|
|
36
38
|
color = color ?: AppTheme.current.colors.text.default,
|
|
37
39
|
style = style,
|
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
|
-
#
|
|
8
|
-
sdk.dir=/Users/
|
|
7
|
+
#Wed Aug 21 14:20:12 ICT 2024
|
|
8
|
+
sdk.dir=/Users/huynhdung/Library/Android/sdk
|