@xsolla/xui-status-dropdown 0.158.0 → 0.159.0
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/native/index.js +13 -4
- package/native/index.js.map +1 -1
- package/native/index.mjs +13 -4
- package/native/index.mjs.map +1 -1
- package/package.json +6 -6
- package/web/index.js +13 -4
- package/web/index.js.map +1 -1
- package/web/index.mjs +13 -4
- package/web/index.mjs.map +1 -1
package/native/index.mjs
CHANGED
|
@@ -209,6 +209,8 @@ var Text = ({
|
|
|
209
209
|
numberOfLines,
|
|
210
210
|
id,
|
|
211
211
|
role,
|
|
212
|
+
testID,
|
|
213
|
+
"data-testid": dataTestId,
|
|
212
214
|
style: styleProp,
|
|
213
215
|
...props
|
|
214
216
|
}) => {
|
|
@@ -238,7 +240,7 @@ var Text = ({
|
|
|
238
240
|
{
|
|
239
241
|
style: baseStyle,
|
|
240
242
|
numberOfLines,
|
|
241
|
-
testID: id,
|
|
243
|
+
testID: dataTestId || testID || id,
|
|
242
244
|
accessibilityRole,
|
|
243
245
|
children
|
|
244
246
|
}
|
|
@@ -249,7 +251,13 @@ var Text = ({
|
|
|
249
251
|
import React from "react";
|
|
250
252
|
import { View as View2 } from "react-native";
|
|
251
253
|
import { jsx as jsx3 } from "react/jsx-runtime";
|
|
252
|
-
var Icon = ({
|
|
254
|
+
var Icon = ({
|
|
255
|
+
children,
|
|
256
|
+
color,
|
|
257
|
+
size,
|
|
258
|
+
testID,
|
|
259
|
+
"data-testid": dataTestId
|
|
260
|
+
}) => {
|
|
253
261
|
const style = {
|
|
254
262
|
width: typeof size === "number" ? size : void 0,
|
|
255
263
|
height: typeof size === "number" ? size : void 0,
|
|
@@ -266,7 +274,7 @@ var Icon = ({ children, color, size }) => {
|
|
|
266
274
|
}
|
|
267
275
|
return child;
|
|
268
276
|
});
|
|
269
|
-
return /* @__PURE__ */ jsx3(View2, { style, children: childrenWithProps });
|
|
277
|
+
return /* @__PURE__ */ jsx3(View2, { style, testID: dataTestId || testID, children: childrenWithProps });
|
|
270
278
|
};
|
|
271
279
|
|
|
272
280
|
// ../../foundation/primitives-native/src/index.tsx
|
|
@@ -1021,6 +1029,7 @@ var BaseIcon = ({
|
|
|
1021
1029
|
className,
|
|
1022
1030
|
style,
|
|
1023
1031
|
"data-testid": testId,
|
|
1032
|
+
testID,
|
|
1024
1033
|
"aria-label": ariaLabel,
|
|
1025
1034
|
"aria-hidden": ariaHidden
|
|
1026
1035
|
}) => {
|
|
@@ -1033,7 +1042,7 @@ var BaseIcon = ({
|
|
|
1033
1042
|
$color: color,
|
|
1034
1043
|
className,
|
|
1035
1044
|
style,
|
|
1036
|
-
"data-testid": testId,
|
|
1045
|
+
"data-testid": testId || testID,
|
|
1037
1046
|
role: ariaLabel ? "img" : void 0,
|
|
1038
1047
|
"aria-label": ariaLabel,
|
|
1039
1048
|
"aria-hidden": ariaHidden != null ? ariaHidden : ariaLabel ? void 0 : true,
|