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