@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/web/index.mjs CHANGED
@@ -218,7 +218,8 @@ var Box = React2.forwardRef(
218
218
  top: typeof props.top === "number" ? `${props.top}px` : props.top,
219
219
  left: typeof props.left === "number" ? `${props.left}px` : props.left,
220
220
  right: typeof props.right === "number" ? `${props.right}px` : props.right,
221
- bottom: typeof props.bottom === "number" ? `${props.bottom}px` : props.bottom
221
+ bottom: typeof props.bottom === "number" ? `${props.bottom}px` : props.bottom,
222
+ ...props.style
222
223
  }
223
224
  }
224
225
  );
@@ -275,6 +276,8 @@ var Text = ({
275
276
  className,
276
277
  id,
277
278
  role,
279
+ testID,
280
+ "data-testid": dataTestId,
278
281
  numberOfLines: _numberOfLines,
279
282
  ...props
280
283
  }) => {
@@ -285,7 +288,8 @@ var Text = ({
285
288
  style,
286
289
  className,
287
290
  id,
288
- role
291
+ role,
292
+ "data-testid": dataTestId || testID
289
293
  }
290
294
  );
291
295
  };
@@ -309,8 +313,13 @@ var StyledIcon = styled3(FilteredDiv2)`
309
313
  stroke: currentColor;
310
314
  }
311
315
  `;
312
- var Icon = ({ children, ...props }) => {
313
- return /* @__PURE__ */ jsx3(StyledIcon, { ...props, children });
316
+ var Icon = ({
317
+ children,
318
+ testID,
319
+ "data-testid": dataTestId,
320
+ ...props
321
+ }) => {
322
+ return /* @__PURE__ */ jsx3(StyledIcon, { "data-testid": dataTestId || testID, ...props, children });
314
323
  };
315
324
 
316
325
  // ../../foundation/primitives-web/src/Input.tsx
@@ -377,6 +386,7 @@ var InputPrimitive = forwardRef(
377
386
  "aria-label": ariaLabel,
378
387
  "aria-disabled": ariaDisabled,
379
388
  "data-testid": dataTestId,
389
+ testID,
380
390
  ...rest
381
391
  }, ref) => {
382
392
  const handleChange = (e) => {
@@ -415,7 +425,7 @@ var InputPrimitive = forwardRef(
415
425
  "aria-labelledby": ariaLabelledBy,
416
426
  "aria-label": ariaLabel,
417
427
  "aria-disabled": ariaDisabled,
418
- "data-testid": dataTestId,
428
+ "data-testid": dataTestId || testID,
419
429
  ...rest
420
430
  }
421
431
  );
@@ -457,6 +467,7 @@ var BaseIcon = ({
457
467
  className,
458
468
  style,
459
469
  "data-testid": testId,
470
+ testID,
460
471
  "aria-label": ariaLabel,
461
472
  "aria-hidden": ariaHidden
462
473
  }) => {
@@ -469,7 +480,7 @@ var BaseIcon = ({
469
480
  $color: color,
470
481
  className,
471
482
  style,
472
- "data-testid": testId,
483
+ "data-testid": testId || testID,
473
484
  role: ariaLabel ? "img" : void 0,
474
485
  "aria-label": ariaLabel,
475
486
  "aria-hidden": ariaHidden ?? (ariaLabel ? void 0 : true),
@@ -523,6 +534,7 @@ var FlagIcon = ({
523
534
  className,
524
535
  style,
525
536
  "data-testid": testId,
537
+ testID,
526
538
  "aria-label": ariaLabel,
527
539
  "aria-hidden": ariaHidden
528
540
  }) => /* @__PURE__ */ jsx10(
@@ -531,7 +543,7 @@ var FlagIcon = ({
531
543
  $size: size,
532
544
  className,
533
545
  style,
534
- "data-testid": testId,
546
+ "data-testid": testId || testID,
535
547
  role: ariaLabel ? "img" : void 0,
536
548
  "aria-label": ariaLabel,
537
549
  "aria-hidden": ariaHidden ?? (ariaLabel ? void 0 : true),