@xsolla/xui-input-phone 0.128.0 → 0.130.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
@@ -44,6 +44,8 @@ var StyledBox = styled.div`
44
44
  width: ${(props) => typeof props.width === "number" ? `${props.width}px` : props.width || "auto"};
45
45
  min-width: ${(props) => typeof props.minWidth === "number" ? `${props.minWidth}px` : props.minWidth || "auto"};
46
46
  min-height: ${(props) => typeof props.minHeight === "number" ? `${props.minHeight}px` : props.minHeight || "auto"};
47
+ max-width: ${(props) => typeof props.maxWidth === "number" ? `${props.maxWidth}px` : props.maxWidth || "none"};
48
+ max-height: ${(props) => typeof props.maxHeight === "number" ? `${props.maxHeight}px` : props.maxHeight || "none"};
47
49
 
48
50
  padding: ${(props) => typeof props.padding === "number" ? `${props.padding}px` : props.padding || 0};
49
51
  ${(props) => props.paddingHorizontal && `
@@ -338,7 +340,11 @@ var InputPrimitive = forwardRef(
338
340
  InputPrimitive.displayName = "InputPrimitive";
339
341
 
340
342
  // src/InputPhone.tsx
341
- import { useDesignSystem, useId, isWeb } from "@xsolla/xui-core";
343
+ import {
344
+ useResolvedTheme,
345
+ useId,
346
+ isWeb
347
+ } from "@xsolla/xui-core";
342
348
 
343
349
  // ../icons-base/src/BaseIcon.tsx
344
350
  import styled5 from "styled-components";
@@ -2275,9 +2281,11 @@ var InputPhone = forwardRef2(
2275
2281
  checkedIcon = /* @__PURE__ */ jsx258(CheckCr, {}),
2276
2282
  id: providedId,
2277
2283
  "aria-label": ariaLabel,
2278
- testID
2284
+ testID,
2285
+ themeMode,
2286
+ themeProductContext
2279
2287
  }, ref) => {
2280
- const { theme } = useDesignSystem();
2288
+ const { theme } = useResolvedTheme({ themeMode, themeProductContext });
2281
2289
  const [internalState, setInternalState] = useState(
2282
2290
  "default"
2283
2291
  );