@momo-kits/native-kits 0.169.13-beta.1-debug → 0.169.13-beta.2-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 +1 -1
- package/compose/compose.podspec +1 -1
- package/compose/src/commonMain/kotlin/vn/momo/kits/navigation/bottomtab/BottomTabBar.kt +6 -9
- package/gradle.properties +1 -1
- package/ios/native-kits.podspec +1 -1
- package/ios-demo/MoMoUIKitsDemo.podspec +1 -1
- package/package.json +1 -1
package/compose/build.gradle.kts
CHANGED
package/compose/compose.podspec
CHANGED
|
@@ -11,8 +11,6 @@ import androidx.compose.foundation.interaction.collectIsPressedAsState
|
|
|
11
11
|
import androidx.compose.runtime.LaunchedEffect
|
|
12
12
|
import androidx.compose.runtime.mutableStateMapOf
|
|
13
13
|
import androidx.compose.ui.draw.clip
|
|
14
|
-
import androidx.compose.ui.graphics.drawscope.Stroke
|
|
15
|
-
import androidx.compose.ui.draw.drawBehind
|
|
16
14
|
import androidx.compose.ui.draw.dropShadow
|
|
17
15
|
import androidx.compose.ui.draw.innerShadow
|
|
18
16
|
import androidx.compose.ui.graphics.Color
|
|
@@ -185,7 +183,9 @@ private fun RowScope.TabBarItem(
|
|
|
185
183
|
Column(
|
|
186
184
|
modifier = modifier
|
|
187
185
|
.weight(1f)
|
|
188
|
-
.conditional(IsShowBaseLineDebug) {
|
|
186
|
+
.conditional(IsShowBaseLineDebug) {
|
|
187
|
+
border(1.dp, Colors.blue_03)
|
|
188
|
+
}
|
|
189
189
|
.activeOpacityClickable { onClick() }
|
|
190
190
|
.semantics {
|
|
191
191
|
role = Role.Tab
|
|
@@ -322,11 +322,6 @@ private fun TabBadge(label: String, modifier: Modifier) {
|
|
|
322
322
|
}
|
|
323
323
|
}
|
|
324
324
|
|
|
325
|
-
// Baseline-debug outline drawn behind the content: Modifier.border paints over the badge hanging past the frame.
|
|
326
|
-
private fun Modifier.debugFrame(): Modifier {
|
|
327
|
-
return drawBehind { drawRect(Colors.blue_03, style = Stroke(1.dp.toPx())) }
|
|
328
|
-
}
|
|
329
|
-
|
|
330
325
|
// Center action press: the button shrinks while held; the label stays plain text.
|
|
331
326
|
@Composable
|
|
332
327
|
internal fun rememberCenterActionPress(): Pair<MutableInteractionSource, Boolean> {
|
|
@@ -387,7 +382,9 @@ private fun CenterAction(data: BottomTabFloatingButton, modifier: Modifier) {
|
|
|
387
382
|
Column(
|
|
388
383
|
modifier = modifier
|
|
389
384
|
.width(TabBarMetrics.ctaSlotWidth)
|
|
390
|
-
.conditional(IsShowBaseLineDebug) {
|
|
385
|
+
.conditional(IsShowBaseLineDebug) {
|
|
386
|
+
border(1.dp, Colors.blue_03)
|
|
387
|
+
}
|
|
391
388
|
.clickable(interactionSource = interactionSource, indication = null, onClick = data.onPress)
|
|
392
389
|
.setAutomationId(data.label),
|
|
393
390
|
horizontalAlignment = Alignment.CenterHorizontally,
|
package/gradle.properties
CHANGED
package/ios/native-kits.podspec
CHANGED