@xsolla/xui-context-menu 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
@@ -60,6 +60,10 @@ var ADDITIONAL_BLOCKED_PROPS = /* @__PURE__ */ new Set([
60
60
  "fontWeight",
61
61
  "fontFamily",
62
62
  "textDecoration",
63
+ // `display` is a presentation attribute on SVG, so isPropValid lets it
64
+ // through — but Box consumes it purely as CSS. Without this it lands on the
65
+ // DOM node as a bogus `display="inline-flex"` attribute.
66
+ "display",
63
67
  // Cross-platform layout prop that Text consumes as CSS, never as an
64
68
  // attribute. Pinned explicitly because it is now spread into the styled
65
69
  // component rather than destructured away before it can reach the DOM.
@@ -94,7 +98,7 @@ function createFilteredElement(defaultTag) {
94
98
  import { jsx } from "react/jsx-runtime";
95
99
  var FilteredDiv = createFilteredElement("div");
96
100
  var StyledBox = styled(FilteredDiv)`
97
- display: flex;
101
+ display: ${(props) => props.display || "flex"};
98
102
  box-sizing: border-box;
99
103
  background-color: ${(props) => props.backgroundColor || "transparent"};
100
104
  border-color: ${(props) => props.borderColor || "transparent"};
@@ -230,7 +234,7 @@ var Box = React2.forwardRef(
230
234
  onLoad,
231
235
  "data-testid": dataTestId || testID,
232
236
  style: {
233
- display: "block",
237
+ display: props.display || "block",
234
238
  objectFit: "cover",
235
239
  width: typeof props.width === "number" ? `${props.width}px` : props.width,
236
240
  height: typeof props.height === "number" ? `${props.height}px` : props.height,