@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/web/index.mjs CHANGED
@@ -488,6 +488,7 @@ import {
488
488
 
489
489
  // ../../foundation/icons-base/src/BaseIcon.tsx
490
490
  import styled5 from "styled-components";
491
+ import { resolveIconSize } from "@xsolla/xui-primitives-core";
491
492
  import { jsx as jsx5 } from "react/jsx-runtime";
492
493
  var StyledIcon2 = styled5.div`
493
494
  display: inline-flex;
@@ -516,7 +517,7 @@ var BaseIcon = ({
516
517
  "aria-hidden": ariaHidden
517
518
  }) => {
518
519
  const svgContent247 = variant === "line" ? lineContent5 : solidContent5;
519
- const sizeValue = typeof size === "number" ? `${size}px` : size;
520
+ const sizeValue = resolveIconSize(size);
520
521
  return /* @__PURE__ */ jsx5(
521
522
  StyledIcon2,
522
523
  {
@@ -559,13 +560,14 @@ var Search = (props) => /* @__PURE__ */ jsx9(BaseIcon, { ...props, solidContent:
559
560
 
560
561
  // ../../foundation/icons-flag/src/FlagIcon.tsx
561
562
  import styled6 from "styled-components";
563
+ import { resolveIconSize as resolveIconSize2 } from "@xsolla/xui-primitives-core";
562
564
  import { jsx as jsx10 } from "react/jsx-runtime";
563
565
  var StyledFlagIcon = styled6.div`
564
566
  display: inline-flex;
565
567
  align-items: center;
566
568
  justify-content: center;
567
- width: ${(props) => props.$size}px;
568
- height: ${(props) => props.$size}px;
569
+ width: ${(props) => props.$size};
570
+ height: ${(props) => props.$size};
569
571
 
570
572
  svg {
571
573
  width: 100%;
@@ -584,7 +586,7 @@ var FlagIcon = ({
584
586
  }) => /* @__PURE__ */ jsx10(
585
587
  StyledFlagIcon,
586
588
  {
587
- $size: size,
589
+ $size: resolveIconSize2(size),
588
590
  className,
589
591
  style,
590
592
  "data-testid": testId || testID,