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