@xsolla/xui-b2c-transaction-cell 0.218.0 → 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
@@ -3563,6 +3563,10 @@ var ADDITIONAL_BLOCKED_PROPS = /* @__PURE__ */ new Set([
3563
3563
  "fontWeight",
3564
3564
  "fontFamily",
3565
3565
  "textDecoration",
3566
+ // `display` is a presentation attribute on SVG, so isPropValid lets it
3567
+ // through — but Box consumes it purely as CSS. Without this it lands on the
3568
+ // DOM node as a bogus `display="inline-flex"` attribute.
3569
+ "display",
3566
3570
  // Cross-platform layout prop that Text consumes as CSS, never as an
3567
3571
  // attribute. Pinned explicitly because it is now spread into the styled
3568
3572
  // component rather than destructured away before it can reach the DOM.
@@ -3597,7 +3601,7 @@ function createFilteredElement(defaultTag) {
3597
3601
  import { jsx } from "react/jsx-runtime";
3598
3602
  var FilteredDiv = createFilteredElement("div");
3599
3603
  var StyledBox = styled_components_esm_default(FilteredDiv)`
3600
- display: flex;
3604
+ display: ${(props) => props.display || "flex"};
3601
3605
  box-sizing: border-box;
3602
3606
  background-color: ${(props) => props.backgroundColor || "transparent"};
3603
3607
  border-color: ${(props) => props.borderColor || "transparent"};
@@ -3733,7 +3737,7 @@ var Box = React3.forwardRef(
3733
3737
  onLoad,
3734
3738
  "data-testid": dataTestId || testID,
3735
3739
  style: {
3736
- display: "block",
3740
+ display: props.display || "block",
3737
3741
  objectFit: "cover",
3738
3742
  width: typeof props.width === "number" ? `${props.width}px` : props.width,
3739
3743
  height: typeof props.height === "number" ? `${props.height}px` : props.height,