@momo-kits/native-kits 0.160.17-debug → 0.160.18-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.
package/compose/build.gradle.kts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
package vn.momo.kits.components
|
|
2
2
|
|
|
3
3
|
import androidx.compose.foundation.border
|
|
4
|
+
import androidx.compose.foundation.text.InlineTextContent
|
|
4
5
|
import androidx.compose.runtime.Composable
|
|
5
6
|
import androidx.compose.runtime.remember
|
|
6
7
|
import androidx.compose.ui.Modifier
|
|
@@ -37,8 +38,9 @@ fun Text(
|
|
|
37
38
|
minLines: Int = 1,
|
|
38
39
|
letterSpacing: TextUnit = TextUnit.Unspecified,
|
|
39
40
|
softWrap: Boolean = true,
|
|
40
|
-
accessibilityId: String? = null
|
|
41
|
-
)
|
|
41
|
+
accessibilityId: String? = null,
|
|
42
|
+
inlineContent: Map<String, InlineTextContent> = mapOf(),
|
|
43
|
+
) {
|
|
42
44
|
Text(
|
|
43
45
|
text = AnnotatedString(text),
|
|
44
46
|
color = color,
|
|
@@ -53,7 +55,8 @@ fun Text(
|
|
|
53
55
|
minLines = minLines,
|
|
54
56
|
letterSpacing = letterSpacing,
|
|
55
57
|
softWrap = softWrap,
|
|
56
|
-
accessibilityId = accessibilityId
|
|
58
|
+
accessibilityId = accessibilityId,
|
|
59
|
+
inlineContent = inlineContent
|
|
57
60
|
)
|
|
58
61
|
}
|
|
59
62
|
|
|
@@ -73,7 +76,8 @@ fun Text(
|
|
|
73
76
|
minLines: Int = 1,
|
|
74
77
|
letterSpacing: TextUnit = TextUnit.Unspecified,
|
|
75
78
|
softWrap: Boolean = true,
|
|
76
|
-
accessibilityId: String? = null
|
|
79
|
+
accessibilityId: String? = null,
|
|
80
|
+
inlineContent: Map<String, InlineTextContent> = mapOf(),
|
|
77
81
|
) {
|
|
78
82
|
// Cache theme access to avoid repeated lookups
|
|
79
83
|
val theme = AppTheme.current
|
|
@@ -124,7 +128,8 @@ fun Text(
|
|
|
124
128
|
minLines = minLines,
|
|
125
129
|
textDecoration = textDecoration,
|
|
126
130
|
onTextLayout = onTextLayout ?: {},
|
|
127
|
-
overflow = overflow
|
|
131
|
+
overflow = overflow,
|
|
132
|
+
inlineContent = inlineContent
|
|
128
133
|
)
|
|
129
134
|
}
|
|
130
135
|
|
package/gradle.properties
CHANGED