@momo-kits/native-kits 0.162.1-beta.4-debug → 0.162.1-beta.5-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/.claude/settings.local.json +5 -1
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/InputTextArea.kt +1 -1
- package/compose/src/commonMain/kotlin/vn/momo/kits/navigation/Navigator.kt +2 -6
- package/compose/src/commonMain/kotlin/vn/momo/kits/navigation/bottomtab/BottomTabBar.kt +1 -1
- package/compose/src/commonMain/kotlin/vn/momo/kits/navigation/component/Header.kt +2 -2
- package/gradle.properties +1 -1
- package/package.json +1 -1
|
@@ -26,7 +26,11 @@
|
|
|
26
26
|
"Bash(python3 \"/Users/phuc/momo-native-kits-2/momo-native-kits/.claude/skills/migrate-screen-to-navigation-container/scripts/eval_migration.py\" 2>&1 | head -35)",
|
|
27
27
|
"Bash(python3 \"/Users/phuc/momo-native-kits-2/momo-native-kits/.claude/skills/migrate-screen-to-navigation-container/scripts/eval_migration.py\" 2>&1 | grep -E \"^=|Files eval|Passed|Failed|A0[0-9]|Per-Group|Failures\" | head -40)",
|
|
28
28
|
"Bash(find /Users/phuc/momo-kits -name \"*.kt\" 2>/dev/null | head -20)",
|
|
29
|
-
"Bash(find /Users/phuc -name \"*PaymentConfirmScreenFull*\" 2>/dev/null | head -10)"
|
|
29
|
+
"Bash(find /Users/phuc -name \"*PaymentConfirmScreenFull*\" 2>/dev/null | head -10)",
|
|
30
|
+
"Bash(./gradlew :compose:compileCommonMainKotlinMetadata -q)",
|
|
31
|
+
"Bash(echo \"EXIT=$?\")",
|
|
32
|
+
"Read(//tmp/**)",
|
|
33
|
+
"Bash(git checkout *)"
|
|
30
34
|
]
|
|
31
35
|
}
|
|
32
36
|
}
|
|
@@ -52,8 +52,8 @@ class Navigator(
|
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
fun onBackSafe(callBack: (() -> Unit)? = null) {
|
|
55
|
-
val
|
|
56
|
-
val options =
|
|
55
|
+
val currentScreen = currentScreen()
|
|
56
|
+
val options = currentScreen?.options
|
|
57
57
|
if (options?.onBackHandler != null) {
|
|
58
58
|
options.onBackHandler.invoke()
|
|
59
59
|
return
|
|
@@ -219,10 +219,6 @@ class DynamicScreenRegistry {
|
|
|
219
219
|
screens.remove(id)
|
|
220
220
|
}
|
|
221
221
|
|
|
222
|
-
fun getLatestScreen(): DynamicScreen?{
|
|
223
|
-
return screens.entries.lastOrNull()?.value
|
|
224
|
-
}
|
|
225
|
-
|
|
226
222
|
fun unregisterAll(){
|
|
227
223
|
val ids = screens.keys.toList()
|
|
228
224
|
for (id in ids) {
|
|
@@ -28,7 +28,7 @@ import vn.momo.kits.modifier.noFeedbackClickable
|
|
|
28
28
|
import vn.momo.kits.platform.getScreenDimensions
|
|
29
29
|
|
|
30
30
|
internal val floatingButtonWidth = 75.dp
|
|
31
|
-
|
|
31
|
+
const val BOTTOM_TAB_BAR_HEIGHT = 64
|
|
32
32
|
|
|
33
33
|
@Composable
|
|
34
34
|
internal fun BottomTabBar(
|
|
@@ -44,7 +44,7 @@ import vn.momo.kits.navigation.LocalOptions
|
|
|
44
44
|
import vn.momo.kits.navigation.LocalScrollState
|
|
45
45
|
import vn.momo.kits.navigation.getInputSearchType
|
|
46
46
|
|
|
47
|
-
|
|
47
|
+
const val HEADER_HEIGHT = 52
|
|
48
48
|
internal enum class InputSearchType { None, Header, Animated }
|
|
49
49
|
enum class TitlePosition { LEFT, CENTER }
|
|
50
50
|
|
|
@@ -109,7 +109,7 @@ internal fun Header(onBackHandler: (() -> Unit)? = null) {
|
|
|
109
109
|
backgroundButton = headerColor.backgroundButton,
|
|
110
110
|
tintIconColor = headerColor.tintIconColor,
|
|
111
111
|
onBackHandler = {
|
|
112
|
-
|
|
112
|
+
navigator.onBackSafe { }
|
|
113
113
|
}
|
|
114
114
|
)
|
|
115
115
|
Spacer(Modifier.width(Spacing.S))
|
package/gradle.properties
CHANGED