@momo-kits/native-kits 0.154.1-beta.1 → 0.154.1-beta.3

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,10 +12,15 @@ 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
16
+ import vn.momo.kits.application.ComposeApi
17
+ import vn.momo.kits.application.PlatformApi
13
18
  import vn.momo.kits.const.AppTheme
19
+ import vn.momo.kits.const.Colors
14
20
  import vn.momo.kits.const.Typography
15
21
  import vn.momo.kits.const.getFontFamily
16
22
  import vn.momo.kits.const.scaleSize
23
+ import vn.momo.kits.modifier.conditional
17
24
  import vn.momo.kits.modifier.setAutomationId
18
25
 
19
26
  @Composable
@@ -64,8 +71,13 @@ fun Text(
64
71
  accessibilityId ?: text
65
72
  }
66
73
 
74
+ // on/off baseline config value, default will be false
75
+ val isBaselineViewEnabled = true
76
+
67
77
  androidx.compose.material3.Text(
68
- modifier = modifier.setAutomationId(automationId, text),
78
+ modifier = modifier.conditional(isBaselineViewEnabled){
79
+ border(1.dp, Colors.blue_03)
80
+ }.setAutomationId(automationId, text),
69
81
  text = text,
70
82
  color = textColor,
71
83
  style = optimizedStyle,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@momo-kits/native-kits",
3
- "version": "0.154.1-beta.1",
3
+ "version": "0.154.1-beta.3",
4
4
  "private": false,
5
5
  "dependencies": {
6
6
  "@momo-platform/native-max-api": "1.0.18"