@xsolla/xui-b2b-sidebar 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
@@ -1083,6 +1083,10 @@ var ADDITIONAL_BLOCKED_PROPS = /* @__PURE__ */ new Set([
1083
1083
  "fontWeight",
1084
1084
  "fontFamily",
1085
1085
  "textDecoration",
1086
+ // `display` is a presentation attribute on SVG, so isPropValid lets it
1087
+ // through — but Box consumes it purely as CSS. Without this it lands on the
1088
+ // DOM node as a bogus `display="inline-flex"` attribute.
1089
+ "display",
1086
1090
  // Cross-platform layout prop that Text consumes as CSS, never as an
1087
1091
  // attribute. Pinned explicitly because it is now spread into the styled
1088
1092
  // component rather than destructured away before it can reach the DOM.
@@ -1117,7 +1121,7 @@ function createFilteredElement(defaultTag) {
1117
1121
  import { jsx as jsx6 } from "react/jsx-runtime";
1118
1122
  var FilteredDiv = createFilteredElement("div");
1119
1123
  var StyledBox = styled4(FilteredDiv)`
1120
- display: flex;
1124
+ display: ${(props) => props.display || "flex"};
1121
1125
  box-sizing: border-box;
1122
1126
  background-color: ${(props) => props.backgroundColor || "transparent"};
1123
1127
  border-color: ${(props) => props.borderColor || "transparent"};
@@ -1253,7 +1257,7 @@ var Box = React4.forwardRef(
1253
1257
  onLoad,
1254
1258
  "data-testid": dataTestId || testID,
1255
1259
  style: {
1256
- display: "block",
1260
+ display: props.display || "block",
1257
1261
  objectFit: "cover",
1258
1262
  width: typeof props.width === "number" ? `${props.width}px` : props.width,
1259
1263
  height: typeof props.height === "number" ? `${props.height}px` : props.height,