@momo-kits/native-kits 0.152.4-scale.3 → 0.152.4-scale.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.
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
package vn.momo.kits.components
|
|
2
2
|
|
|
3
|
+
import androidx.compose.foundation.border
|
|
4
|
+
import androidx.compose.foundation.layout.Box
|
|
3
5
|
import androidx.compose.runtime.Composable
|
|
4
6
|
import androidx.compose.runtime.remember
|
|
5
7
|
import androidx.compose.ui.Modifier
|
|
@@ -10,7 +12,9 @@ import androidx.compose.ui.text.style.TextAlign
|
|
|
10
12
|
import androidx.compose.ui.text.style.TextDecoration
|
|
11
13
|
import androidx.compose.ui.text.style.TextOverflow
|
|
12
14
|
import androidx.compose.ui.unit.TextUnit
|
|
15
|
+
import androidx.compose.ui.unit.dp
|
|
13
16
|
import vn.momo.kits.const.AppTheme
|
|
17
|
+
import vn.momo.kits.const.Colors
|
|
14
18
|
import vn.momo.kits.const.Typography
|
|
15
19
|
import vn.momo.kits.const.getFontFamily
|
|
16
20
|
import vn.momo.kits.const.scaleSize
|
|
@@ -65,20 +69,23 @@ fun Text(
|
|
|
65
69
|
accessibilityId ?: text
|
|
66
70
|
}
|
|
67
71
|
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
72
|
+
Box(modifier = Modifier.border(1.dp, Colors.blue_03)) {
|
|
73
|
+
androidx.compose.material3.Text(
|
|
74
|
+
modifier = modifier.setAutomationId(automationId, text),
|
|
75
|
+
text = text,
|
|
76
|
+
color = textColor,
|
|
77
|
+
style = optimizedStyle,
|
|
78
|
+
textAlign = textAlign,
|
|
79
|
+
fontSize = fontSize,
|
|
80
|
+
fontFamily = font,
|
|
81
|
+
maxLines = maxLines,
|
|
82
|
+
softWrap = softWrap,
|
|
83
|
+
letterSpacing = letterSpacing,
|
|
84
|
+
minLines = minLines,
|
|
85
|
+
textDecoration = textDecoration,
|
|
86
|
+
onTextLayout = onTextLayout,
|
|
87
|
+
overflow = overflow
|
|
88
|
+
)
|
|
89
|
+
}
|
|
90
|
+
|
|
84
91
|
}
|
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
|
+
#Thu Jan 09 10:43:10 ICT 2025
|
|
8
|
+
sdk.dir=/Users/sophia/Library/Android/sdk
|