@momo-kits/native-kits 0.89.32-nav.12 → 0.89.32-nav.13
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.
|
@@ -18,8 +18,6 @@ import androidx.compose.ui.Alignment
|
|
|
18
18
|
import androidx.compose.ui.Modifier
|
|
19
19
|
import androidx.compose.ui.draw.clip
|
|
20
20
|
import androidx.compose.ui.graphics.Color
|
|
21
|
-
import androidx.compose.ui.semantics.semantics
|
|
22
|
-
import androidx.compose.ui.semantics.testTag
|
|
23
21
|
import androidx.compose.ui.text.TextStyle
|
|
24
22
|
import androidx.compose.ui.text.style.TextOverflow
|
|
25
23
|
import androidx.compose.ui.unit.Dp
|
|
@@ -235,7 +233,6 @@ fun Button(
|
|
|
235
233
|
isFull: Boolean = true,
|
|
236
234
|
modifier: Modifier = Modifier,
|
|
237
235
|
) {
|
|
238
|
-
val testId = "btn_${type.toString().lowercase()}_$title"
|
|
239
236
|
val customModifier = if (isFull) {
|
|
240
237
|
modifier
|
|
241
238
|
.fillMaxWidth()
|
|
@@ -257,8 +254,7 @@ fun Button(
|
|
|
257
254
|
.padding(horizontal = size.value.padding)
|
|
258
255
|
.defaultMinSize(
|
|
259
256
|
minWidth = size.value.width
|
|
260
|
-
).height(size.value.height)
|
|
261
|
-
.semantics { testTag = testId },
|
|
257
|
+
).height(size.value.height),
|
|
262
258
|
horizontalArrangement = Arrangement.Center,
|
|
263
259
|
verticalAlignment = Alignment.CenterVertically,
|
|
264
260
|
) {
|
|
@@ -27,7 +27,6 @@ import androidx.compose.runtime.setValue
|
|
|
27
27
|
import androidx.compose.ui.Alignment
|
|
28
28
|
import androidx.compose.ui.Modifier
|
|
29
29
|
import androidx.compose.ui.draw.clip
|
|
30
|
-
import androidx.compose.ui.semantics.contentDescription
|
|
31
30
|
import androidx.compose.ui.semantics.semantics
|
|
32
31
|
import androidx.compose.ui.semantics.testTag
|
|
33
32
|
import androidx.compose.ui.text.TextLayoutResult
|
|
@@ -97,7 +96,7 @@ fun PopupNotify(
|
|
|
97
96
|
}
|
|
98
97
|
|
|
99
98
|
Box(Modifier.semantics {
|
|
100
|
-
|
|
99
|
+
testTag = "popup_notify"
|
|
101
100
|
}, contentAlignment = Alignment.TopEnd) {
|
|
102
101
|
Column(
|
|
103
102
|
modifier = Modifier
|
|
@@ -235,7 +234,7 @@ fun renderRow(
|
|
|
235
234
|
title = it.title,
|
|
236
235
|
type = ButtonType.TEXT,
|
|
237
236
|
modifier = Modifier.semantics {
|
|
238
|
-
|
|
237
|
+
testTag = "btn_popup_cancel"
|
|
239
238
|
}
|
|
240
239
|
)
|
|
241
240
|
}
|
|
@@ -250,7 +249,7 @@ fun renderRow(
|
|
|
250
249
|
},
|
|
251
250
|
title = primary?.title ?: "",
|
|
252
251
|
modifier = Modifier.semantics {
|
|
253
|
-
|
|
252
|
+
testTag = "btn_popup_allow"
|
|
254
253
|
}
|
|
255
254
|
)
|
|
256
255
|
}
|
|
@@ -273,7 +272,7 @@ fun renderColumn(
|
|
|
273
272
|
},
|
|
274
273
|
title = primary?.title ?: "",
|
|
275
274
|
modifier = Modifier.semantics {
|
|
276
|
-
|
|
275
|
+
testTag = "btn_popup_allow"
|
|
277
276
|
}
|
|
278
277
|
)
|
|
279
278
|
secondary?.let {
|
|
@@ -288,7 +287,7 @@ fun renderColumn(
|
|
|
288
287
|
title = it.title,
|
|
289
288
|
type = ButtonType.TEXT,
|
|
290
289
|
modifier = Modifier.semantics {
|
|
291
|
-
|
|
290
|
+
testTag = "btn_popup_cancel"
|
|
292
291
|
}
|
|
293
292
|
)
|
|
294
293
|
}
|