@momo-kits/native-kits 0.162.9-debug → 0.162.10-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
CHANGED
|
@@ -95,11 +95,13 @@ private fun getStyle(size: Size): TextStyle {
|
|
|
95
95
|
return styleCache[size] ?: Typography.actionDefaultBold
|
|
96
96
|
}
|
|
97
97
|
|
|
98
|
-
|
|
98
|
+
@InternalApi
|
|
99
|
+
fun getIconSize(size: Size): Dp = iconSizeCache[size] ?: 24.dp
|
|
99
100
|
private fun getIconSpace(size: Size): Dp = iconSpaceCache[size] ?: Spacing.S
|
|
100
101
|
|
|
102
|
+
@InternalApi
|
|
101
103
|
@Composable
|
|
102
|
-
|
|
104
|
+
fun getTextColor(loading: Boolean, type: ButtonType): Color {
|
|
103
105
|
val theme = AppTheme.current
|
|
104
106
|
|
|
105
107
|
return remember(type, theme, loading) {
|
|
@@ -183,8 +185,9 @@ private fun shouldLoadingOnLeft(iconLeft: String, iconRight: String): Boolean {
|
|
|
183
185
|
}
|
|
184
186
|
}
|
|
185
187
|
|
|
188
|
+
@InternalApi
|
|
186
189
|
@Composable
|
|
187
|
-
|
|
190
|
+
fun getTypeStyle(
|
|
188
191
|
type: ButtonType,
|
|
189
192
|
color: Color? = AppTheme.current.colors.primary,
|
|
190
193
|
size: Size,
|
|
@@ -219,8 +222,9 @@ internal fun getTypeStyle(
|
|
|
219
222
|
}
|
|
220
223
|
}
|
|
221
224
|
|
|
225
|
+
@InternalApi
|
|
222
226
|
@Composable
|
|
223
|
-
|
|
227
|
+
fun getButtonBackgroundColor(
|
|
224
228
|
loading: Boolean,
|
|
225
229
|
type: ButtonType
|
|
226
230
|
): Color {
|
|
@@ -23,7 +23,7 @@ fun NavigationContainer(
|
|
|
23
23
|
options: NavigationOptions? = null,
|
|
24
24
|
initialTheme: Theme = defaultTheme,
|
|
25
25
|
miniAppContext: MiniAppContext? = null,
|
|
26
|
-
maxApi: IMaxApi
|
|
26
|
+
maxApi: IMaxApi? = null,
|
|
27
27
|
setNavigator: ((Navigator) -> Unit)? = null,
|
|
28
28
|
statusBarHeight: Dp? = null,
|
|
29
29
|
localize: Localize? = null,
|
package/gradle.properties
CHANGED