@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.
@@ -40,7 +40,7 @@ kotlin {
40
40
  }
41
41
 
42
42
  cocoapods {
43
- version = "0.169.13-beta.1-debug"
43
+ version = "0.169.13-beta.2-debug"
44
44
  summary = "IOS Shared module"
45
45
  homepage = "https://momo.vn"
46
46
  ios.deploymentTarget = "15.0"
@@ -1,6 +1,6 @@
1
1
  Pod::Spec.new do |spec|
2
2
  spec.name = 'compose'
3
- spec.version = '0.169.13-beta.1-debug'
3
+ spec.version = '0.169.13-beta.2-debug'
4
4
  spec.homepage = 'https://momo.vn'
5
5
  spec.source = { :http=> ''}
6
6
  spec.authors = ''
@@ -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) { debugFrame() }
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) { debugFrame() }
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
@@ -18,7 +18,7 @@ kotlin.apple.xcodeCompatibility.nowarn=true
18
18
  name="ComposeKits"
19
19
  group=vn.momo.kits
20
20
  artifact.id=kits
21
- version=0.169.13-beta.1
21
+ version=0.169.13-beta.2
22
22
 
23
23
  repo=GitLab
24
24
  url=https://artifacts.mservice.com.vn/repository/maven-momo-app/
@@ -1,6 +1,6 @@
1
1
  Pod::Spec.new do |s|
2
2
  s.name = 'MoMoUIKits'
3
- s.version = '0.169.13-beta.1'
3
+ s.version = '0.169.13-beta.2'
4
4
  s.summary = 'MoMoUIKits for iOS'
5
5
  s.homepage = 'https://momo.vn'
6
6
  s.license = { :type => 'MIT' }
@@ -1,6 +1,6 @@
1
1
  Pod::Spec.new do |s|
2
2
  s.name = 'MoMoUIKitsDemo'
3
- s.version = '0.169.13-beta.1'
3
+ s.version = '0.169.13-beta.2'
4
4
  s.summary = 'Demo browser for MoMoUIKits SwiftUI components'
5
5
  s.homepage = 'https://momo.vn'
6
6
  s.license = { :type => 'MIT' }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@momo-kits/native-kits",
3
- "version": "0.169.13-beta.1-debug",
3
+ "version": "0.169.13-beta.2-debug",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "publish:local": "bash publish.sh local"