@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/native/index.js CHANGED
@@ -514,6 +514,7 @@ var import_xui_core = require("@xsolla/xui-core");
514
514
 
515
515
  // ../../foundation/icons-base/src/BaseIcon.tsx
516
516
  var import_styled_components = __toESM(require("styled-components"));
517
+ var import_xui_primitives_core = require("@xsolla/xui-primitives-core");
517
518
  var import_jsx_runtime5 = require("react/jsx-runtime");
518
519
  var StyledIcon = import_styled_components.default.div`
519
520
  display: inline-flex;
@@ -542,7 +543,7 @@ var BaseIcon = ({
542
543
  "aria-hidden": ariaHidden
543
544
  }) => {
544
545
  const svgContent247 = variant === "line" ? lineContent5 : solidContent5;
545
- const sizeValue = typeof size === "number" ? `${size}px` : size;
546
+ const sizeValue = (0, import_xui_primitives_core.resolveIconSize)(size);
546
547
  return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
547
548
  StyledIcon,
548
549
  {
@@ -585,13 +586,14 @@ var Search = (props) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(BaseIcon, {
585
586
 
586
587
  // ../../foundation/icons-flag/src/FlagIcon.tsx
587
588
  var import_styled_components2 = __toESM(require("styled-components"));
589
+ var import_xui_primitives_core2 = require("@xsolla/xui-primitives-core");
588
590
  var import_jsx_runtime10 = require("react/jsx-runtime");
589
591
  var StyledFlagIcon = import_styled_components2.default.div`
590
592
  display: inline-flex;
591
593
  align-items: center;
592
594
  justify-content: center;
593
- width: ${(props) => props.$size}px;
594
- height: ${(props) => props.$size}px;
595
+ width: ${(props) => props.$size};
596
+ height: ${(props) => props.$size};
595
597
 
596
598
  svg {
597
599
  width: 100%;
@@ -610,7 +612,7 @@ var FlagIcon = ({
610
612
  }) => /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
611
613
  StyledFlagIcon,
612
614
  {
613
- $size: size,
615
+ $size: (0, import_xui_primitives_core2.resolveIconSize)(size),
614
616
  className,
615
617
  style,
616
618
  "data-testid": testId || testID,