@xsolla/xui-input-phone 0.218.1 → 0.220.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
@@ -54,6 +54,10 @@ var ADDITIONAL_BLOCKED_PROPS = /* @__PURE__ */ new Set([
54
54
  "fontWeight",
55
55
  "fontFamily",
56
56
  "textDecoration",
57
+ // `display` is a presentation attribute on SVG, so isPropValid lets it
58
+ // through — but Box consumes it purely as CSS. Without this it lands on the
59
+ // DOM node as a bogus `display="inline-flex"` attribute.
60
+ "display",
57
61
  // Cross-platform layout prop that Text consumes as CSS, never as an
58
62
  // attribute. Pinned explicitly because it is now spread into the styled
59
63
  // component rather than destructured away before it can reach the DOM.
@@ -88,7 +92,7 @@ function createFilteredElement(defaultTag) {
88
92
  import { jsx } from "react/jsx-runtime";
89
93
  var FilteredDiv = createFilteredElement("div");
90
94
  var StyledBox = styled(FilteredDiv)`
91
- display: flex;
95
+ display: ${(props) => props.display || "flex"};
92
96
  box-sizing: border-box;
93
97
  background-color: ${(props) => props.backgroundColor || "transparent"};
94
98
  border-color: ${(props) => props.borderColor || "transparent"};
@@ -224,7 +228,7 @@ var Box = React2.forwardRef(
224
228
  onLoad,
225
229
  "data-testid": dataTestId || testID,
226
230
  style: {
227
- display: "block",
231
+ display: props.display || "block",
228
232
  objectFit: "cover",
229
233
  width: typeof props.width === "number" ? `${props.width}px` : props.width,
230
234
  height: typeof props.height === "number" ? `${props.height}px` : props.height,