@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("showTools",
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(65.dp)
202
+ .width(toolkitWidth)
201
203
  .height(28.dp)
202
204
  .clip(shape = RoundedCornerShape(14.dp))
203
205
  .background(Color(0x99FFFFFF))
204
206
  ) {
205
- Icon(source = "help_center", size = 20.dp, modifier = Modifier.padding(4.dp).clickable {
206
- onPressHelpCenter()
207
- })
208
- Box(
209
- modifier = Modifier
210
- .width(0.5.dp)
211
- .height(12.dp)
212
- .background(Colors.black_20)
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,
@@ -103,6 +103,8 @@ public struct PopupDisplay: View {
103
103
  }
104
104
  .background(Color.white.cornerRadius(15))
105
105
  .padding(.horizontal, 12)
106
+ .accessibilityElement(children: .ignore)
107
+ .accessibility(identifier: "popup_notify")
106
108
  }
107
109
 
108
110
  // MARK: Internal
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
- #Tue Apr 23 16:40:15 ICT 2024
8
- sdk.dir=/Users/hung.dao1/Library/Android/sdk
7
+ #Wed Aug 21 14:20:12 ICT 2024
8
+ sdk.dir=/Users/huynhdung/Library/Android/sdk
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@momo-kits/native-kits",
3
- "version": "0.113.3-beta.5",
3
+ "version": "0.113.3-rc.1",
4
4
  "private": false,
5
5
  "dependencies": {},
6
6
  "devDependencies": {},