@xsolla/xui-input-phone 0.211.1 → 0.213.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.211.1",
3
+ "version": "0.213.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.211.1",
17
- "@xsolla/xui-primitives-core": "0.211.1",
16
+ "@xsolla/xui-core": "0.213.0",
17
+ "@xsolla/xui-primitives-core": "0.213.0",
18
18
  "libphonenumber-js": "^1.10.56"
19
19
  },
20
20
  "peerDependencies": {
package/web/index.js CHANGED
@@ -523,6 +523,7 @@ var import_xui_core = require("@xsolla/xui-core");
523
523
 
524
524
  // ../../foundation/icons-base/src/BaseIcon.tsx
525
525
  var import_styled_components5 = __toESM(require("styled-components"));
526
+ var import_xui_primitives_core = require("@xsolla/xui-primitives-core");
526
527
  var import_jsx_runtime5 = require("react/jsx-runtime");
527
528
  var StyledIcon2 = import_styled_components5.default.div`
528
529
  display: inline-flex;
@@ -551,7 +552,7 @@ var BaseIcon = ({
551
552
  "aria-hidden": ariaHidden
552
553
  }) => {
553
554
  const svgContent247 = variant === "line" ? lineContent5 : solidContent5;
554
- const sizeValue = typeof size === "number" ? `${size}px` : size;
555
+ const sizeValue = (0, import_xui_primitives_core.resolveIconSize)(size);
555
556
  return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
556
557
  StyledIcon2,
557
558
  {
@@ -594,13 +595,14 @@ var Search = (props) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(BaseIcon, {
594
595
 
595
596
  // ../../foundation/icons-flag/src/FlagIcon.tsx
596
597
  var import_styled_components6 = __toESM(require("styled-components"));
598
+ var import_xui_primitives_core2 = require("@xsolla/xui-primitives-core");
597
599
  var import_jsx_runtime10 = require("react/jsx-runtime");
598
600
  var StyledFlagIcon = import_styled_components6.default.div`
599
601
  display: inline-flex;
600
602
  align-items: center;
601
603
  justify-content: center;
602
- width: ${(props) => props.$size}px;
603
- height: ${(props) => props.$size}px;
604
+ width: ${(props) => props.$size};
605
+ height: ${(props) => props.$size};
604
606
 
605
607
  svg {
606
608
  width: 100%;
@@ -619,7 +621,7 @@ var FlagIcon = ({
619
621
  }) => /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
620
622
  StyledFlagIcon,
621
623
  {
622
- $size: size,
624
+ $size: (0, import_xui_primitives_core2.resolveIconSize)(size),
623
625
  className,
624
626
  style,
625
627
  "data-testid": testId || testID,