@xsolla/xui-quest-card 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.mjs CHANGED
@@ -206,6 +206,8 @@ var Text = ({
206
206
  numberOfLines,
207
207
  id,
208
208
  role,
209
+ testID,
210
+ "data-testid": dataTestId,
209
211
  style: styleProp,
210
212
  ...props
211
213
  }) => {
@@ -235,7 +237,7 @@ var Text = ({
235
237
  {
236
238
  style: baseStyle,
237
239
  numberOfLines,
238
- testID: id,
240
+ testID: dataTestId || testID || id,
239
241
  accessibilityRole,
240
242
  children
241
243
  }
@@ -246,7 +248,13 @@ var Text = ({
246
248
  import React from "react";
247
249
  import { View as View2 } from "react-native";
248
250
  import { jsx as jsx3 } from "react/jsx-runtime";
249
- var Icon = ({ children, color, size }) => {
251
+ var Icon = ({
252
+ children,
253
+ color,
254
+ size,
255
+ testID,
256
+ "data-testid": dataTestId
257
+ }) => {
250
258
  const style = {
251
259
  width: typeof size === "number" ? size : void 0,
252
260
  height: typeof size === "number" ? size : void 0,
@@ -263,7 +271,7 @@ var Icon = ({ children, color, size }) => {
263
271
  }
264
272
  return child;
265
273
  });
266
- return /* @__PURE__ */ jsx3(View2, { style, children: childrenWithProps });
274
+ return /* @__PURE__ */ jsx3(View2, { style, testID: dataTestId || testID, children: childrenWithProps });
267
275
  };
268
276
 
269
277
  // ../../foundation/primitives-native/src/index.tsx
@@ -1017,6 +1025,7 @@ var BaseIcon = ({
1017
1025
  className,
1018
1026
  style,
1019
1027
  "data-testid": testId,
1028
+ testID,
1020
1029
  "aria-label": ariaLabel,
1021
1030
  "aria-hidden": ariaHidden
1022
1031
  }) => {
@@ -1029,7 +1038,7 @@ var BaseIcon = ({
1029
1038
  $color: color,
1030
1039
  className,
1031
1040
  style,
1032
- "data-testid": testId,
1041
+ "data-testid": testId || testID,
1033
1042
  role: ariaLabel ? "img" : void 0,
1034
1043
  "aria-label": ariaLabel,
1035
1044
  "aria-hidden": ariaHidden != null ? ariaHidden : ariaLabel ? void 0 : true,