@xsolla/xui-input-phone 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 CHANGED
@@ -245,6 +245,8 @@ var Text = ({
245
245
  numberOfLines,
246
246
  id,
247
247
  role,
248
+ testID,
249
+ "data-testid": dataTestId,
248
250
  style: styleProp,
249
251
  ...props
250
252
  }) => {
@@ -274,7 +276,7 @@ var Text = ({
274
276
  {
275
277
  style: baseStyle,
276
278
  numberOfLines,
277
- testID: id,
279
+ testID: dataTestId || testID || id,
278
280
  accessibilityRole,
279
281
  children
280
282
  }
@@ -285,7 +287,13 @@ var Text = ({
285
287
  var import_react = __toESM(require("react"));
286
288
  var import_react_native3 = require("react-native");
287
289
  var import_jsx_runtime3 = require("react/jsx-runtime");
288
- var Icon = ({ children, color, size }) => {
290
+ var Icon = ({
291
+ children,
292
+ color,
293
+ size,
294
+ testID,
295
+ "data-testid": dataTestId
296
+ }) => {
289
297
  const style = {
290
298
  width: typeof size === "number" ? size : void 0,
291
299
  height: typeof size === "number" ? size : void 0,
@@ -302,7 +310,7 @@ var Icon = ({ children, color, size }) => {
302
310
  }
303
311
  return child;
304
312
  });
305
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_react_native3.View, { style, children: childrenWithProps });
313
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_react_native3.View, { style, testID: dataTestId || testID, children: childrenWithProps });
306
314
  };
307
315
 
308
316
  // ../../foundation/primitives-native/src/Input.tsx
@@ -361,7 +369,8 @@ var InputPrimitive = (0, import_react2.forwardRef)(
361
369
  "aria-describedby": ariaDescribedBy,
362
370
  "aria-label": ariaLabel,
363
371
  "aria-disabled": ariaDisabled,
364
- "data-testid": dataTestId
372
+ "data-testid": dataTestId,
373
+ testID
365
374
  }, ref) => {
366
375
  const handleChangeText = (text) => {
367
376
  onChangeText?.(text);
@@ -421,7 +430,7 @@ var InputPrimitive = (0, import_react2.forwardRef)(
421
430
  ],
422
431
  placeholderTextColor,
423
432
  maxLength,
424
- testID: dataTestId || id,
433
+ testID: dataTestId || testID || id,
425
434
  accessibilityLabel: ariaLabel,
426
435
  accessibilityHint: ariaDescribedBy,
427
436
  accessibilityState: {
@@ -465,6 +474,7 @@ var BaseIcon = ({
465
474
  className,
466
475
  style,
467
476
  "data-testid": testId,
477
+ testID,
468
478
  "aria-label": ariaLabel,
469
479
  "aria-hidden": ariaHidden
470
480
  }) => {
@@ -477,7 +487,7 @@ var BaseIcon = ({
477
487
  $color: color,
478
488
  className,
479
489
  style,
480
- "data-testid": testId,
490
+ "data-testid": testId || testID,
481
491
  role: ariaLabel ? "img" : void 0,
482
492
  "aria-label": ariaLabel,
483
493
  "aria-hidden": ariaHidden ?? (ariaLabel ? void 0 : true),
@@ -531,6 +541,7 @@ var FlagIcon = ({
531
541
  className,
532
542
  style,
533
543
  "data-testid": testId,
544
+ testID,
534
545
  "aria-label": ariaLabel,
535
546
  "aria-hidden": ariaHidden
536
547
  }) => /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
@@ -539,7 +550,7 @@ var FlagIcon = ({
539
550
  $size: size,
540
551
  className,
541
552
  style,
542
- "data-testid": testId,
553
+ "data-testid": testId || testID,
543
554
  role: ariaLabel ? "img" : void 0,
544
555
  "aria-label": ariaLabel,
545
556
  "aria-hidden": ariaHidden ?? (ariaLabel ? void 0 : true),