@momo-kits/native-kits 0.113.3-beta.5 → 0.113.3-rc.1
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.
|
@@ -115,11 +115,12 @@ fun ToolkitHeaderRight(headerRight: HeaderRightData? = null) {
|
|
|
115
115
|
}
|
|
116
116
|
|
|
117
117
|
fun onPressClose() {
|
|
118
|
-
api?.request("dismiss", "", {_ -> })
|
|
118
|
+
api?.request("dismiss", "", { _ -> })
|
|
119
119
|
}
|
|
120
120
|
|
|
121
121
|
fun onPressMore() {
|
|
122
|
-
api?.request(
|
|
122
|
+
api?.request(
|
|
123
|
+
"showTools",
|
|
123
124
|
mapOf(
|
|
124
125
|
"tools" to headerRight?.tools?.map { it.toMap() },
|
|
125
126
|
"context" to mapOf(
|
|
@@ -180,6 +181,7 @@ fun ToolkitHeaderRight(headerRight: HeaderRightData? = null) {
|
|
|
180
181
|
group.items.any { it.showBadge }
|
|
181
182
|
}
|
|
182
183
|
|
|
184
|
+
val toolkitWidth = if (context !== null) 65.dp else 28.dp
|
|
183
185
|
Row(
|
|
184
186
|
verticalAlignment = Alignment.CenterVertically
|
|
185
187
|
) {
|
|
@@ -197,20 +199,26 @@ fun ToolkitHeaderRight(headerRight: HeaderRightData? = null) {
|
|
|
197
199
|
modifier = Modifier
|
|
198
200
|
.padding(start = Spacing.S)
|
|
199
201
|
.border(0.2.dp, Color(0x33000000), shape = RoundedCornerShape(14.dp))
|
|
200
|
-
.width(
|
|
202
|
+
.width(toolkitWidth)
|
|
201
203
|
.height(28.dp)
|
|
202
204
|
.clip(shape = RoundedCornerShape(14.dp))
|
|
203
205
|
.background(Color(0x99FFFFFF))
|
|
204
206
|
) {
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
207
|
+
if (context != null) {
|
|
208
|
+
Icon(
|
|
209
|
+
source = "help_center",
|
|
210
|
+
size = 20.dp,
|
|
211
|
+
modifier = Modifier.padding(4.dp).clickable {
|
|
212
|
+
onPressHelpCenter()
|
|
213
|
+
})
|
|
214
|
+
Box(
|
|
215
|
+
modifier = Modifier
|
|
216
|
+
.width(0.5.dp)
|
|
217
|
+
.height(12.dp)
|
|
218
|
+
.background(Colors.black_20)
|
|
219
|
+
)
|
|
220
|
+
}
|
|
221
|
+
|
|
214
222
|
Icon(
|
|
215
223
|
source = "16_navigation_close_circle",
|
|
216
224
|
size = 20.dp,
|
package/local.properties
CHANGED
|
@@ -4,5 +4,5 @@
|
|
|
4
4
|
# Location of the SDK. This is only used by Gradle.
|
|
5
5
|
# For customization when using a Version Control System, please read the
|
|
6
6
|
# header note.
|
|
7
|
-
#
|
|
8
|
-
sdk.dir=/Users/
|
|
7
|
+
#Wed Aug 21 14:20:12 ICT 2024
|
|
8
|
+
sdk.dir=/Users/huynhdung/Library/Android/sdk
|