@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xsolla/xui-input-phone",
3
- "version": "0.158.0",
3
+ "version": "0.159.0",
4
4
  "main": "./web/index.js",
5
5
  "module": "./web/index.mjs",
6
6
  "types": "./web/index.d.ts",
@@ -13,8 +13,8 @@
13
13
  "test:coverage": "vitest run --coverage"
14
14
  },
15
15
  "dependencies": {
16
- "@xsolla/xui-core": "0.158.0",
17
- "@xsolla/xui-primitives-core": "0.158.0",
16
+ "@xsolla/xui-core": "0.159.0",
17
+ "@xsolla/xui-primitives-core": "0.159.0",
18
18
  "libphonenumber-js": "^1.10.56"
19
19
  },
20
20
  "peerDependencies": {
package/web/index.js CHANGED
@@ -256,7 +256,8 @@ var Box = import_react2.default.forwardRef(
256
256
  top: typeof props.top === "number" ? `${props.top}px` : props.top,
257
257
  left: typeof props.left === "number" ? `${props.left}px` : props.left,
258
258
  right: typeof props.right === "number" ? `${props.right}px` : props.right,
259
- bottom: typeof props.bottom === "number" ? `${props.bottom}px` : props.bottom
259
+ bottom: typeof props.bottom === "number" ? `${props.bottom}px` : props.bottom,
260
+ ...props.style
260
261
  }
261
262
  }
262
263
  );
@@ -313,6 +314,8 @@ var Text = ({
313
314
  className,
314
315
  id,
315
316
  role,
317
+ testID,
318
+ "data-testid": dataTestId,
316
319
  numberOfLines: _numberOfLines,
317
320
  ...props
318
321
  }) => {
@@ -323,7 +326,8 @@ var Text = ({
323
326
  style,
324
327
  className,
325
328
  id,
326
- role
329
+ role,
330
+ "data-testid": dataTestId || testID
327
331
  }
328
332
  );
329
333
  };
@@ -347,8 +351,13 @@ var StyledIcon = (0, import_styled_components3.default)(FilteredDiv2)`
347
351
  stroke: currentColor;
348
352
  }
349
353
  `;
350
- var Icon = ({ children, ...props }) => {
351
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(StyledIcon, { ...props, children });
354
+ var Icon = ({
355
+ children,
356
+ testID,
357
+ "data-testid": dataTestId,
358
+ ...props
359
+ }) => {
360
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(StyledIcon, { "data-testid": dataTestId || testID, ...props, children });
352
361
  };
353
362
 
354
363
  // ../../foundation/primitives-web/src/Input.tsx
@@ -415,6 +424,7 @@ var InputPrimitive = (0, import_react3.forwardRef)(
415
424
  "aria-label": ariaLabel,
416
425
  "aria-disabled": ariaDisabled,
417
426
  "data-testid": dataTestId,
427
+ testID,
418
428
  ...rest
419
429
  }, ref) => {
420
430
  const handleChange = (e) => {
@@ -453,7 +463,7 @@ var InputPrimitive = (0, import_react3.forwardRef)(
453
463
  "aria-labelledby": ariaLabelledBy,
454
464
  "aria-label": ariaLabel,
455
465
  "aria-disabled": ariaDisabled,
456
- "data-testid": dataTestId,
466
+ "data-testid": dataTestId || testID,
457
467
  ...rest
458
468
  }
459
469
  );
@@ -492,6 +502,7 @@ var BaseIcon = ({
492
502
  className,
493
503
  style,
494
504
  "data-testid": testId,
505
+ testID,
495
506
  "aria-label": ariaLabel,
496
507
  "aria-hidden": ariaHidden
497
508
  }) => {
@@ -504,7 +515,7 @@ var BaseIcon = ({
504
515
  $color: color,
505
516
  className,
506
517
  style,
507
- "data-testid": testId,
518
+ "data-testid": testId || testID,
508
519
  role: ariaLabel ? "img" : void 0,
509
520
  "aria-label": ariaLabel,
510
521
  "aria-hidden": ariaHidden ?? (ariaLabel ? void 0 : true),
@@ -558,6 +569,7 @@ var FlagIcon = ({
558
569
  className,
559
570
  style,
560
571
  "data-testid": testId,
572
+ testID,
561
573
  "aria-label": ariaLabel,
562
574
  "aria-hidden": ariaHidden
563
575
  }) => /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
@@ -566,7 +578,7 @@ var FlagIcon = ({
566
578
  $size: size,
567
579
  className,
568
580
  style,
569
- "data-testid": testId,
581
+ "data-testid": testId || testID,
570
582
  role: ariaLabel ? "img" : void 0,
571
583
  "aria-label": ariaLabel,
572
584
  "aria-hidden": ariaHidden ?? (ariaLabel ? void 0 : true),