@xsolla/xui-b2c-image-thumbnail 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xsolla/xui-b2c-image-thumbnail",
3
- "version": "0.218.0",
3
+ "version": "0.219.0",
4
4
  "main": "./web/index.js",
5
5
  "module": "./web/index.mjs",
6
6
  "types": "./web/index.d.ts",
@@ -13,8 +13,8 @@
13
13
  "test:coverage": "vitest run --coverage"
14
14
  },
15
15
  "dependencies": {
16
- "@xsolla/xui-core": "0.218.0",
17
- "@xsolla/xui-primitives-core": "0.218.0"
16
+ "@xsolla/xui-core": "0.219.0",
17
+ "@xsolla/xui-primitives-core": "0.219.0"
18
18
  },
19
19
  "peerDependencies": {
20
20
  "react": ">=16.8.0"
package/web/index.js CHANGED
@@ -3573,6 +3573,10 @@ var ADDITIONAL_BLOCKED_PROPS = /* @__PURE__ */ new Set([
3573
3573
  "fontWeight",
3574
3574
  "fontFamily",
3575
3575
  "textDecoration",
3576
+ // `display` is a presentation attribute on SVG, so isPropValid lets it
3577
+ // through — but Box consumes it purely as CSS. Without this it lands on the
3578
+ // DOM node as a bogus `display="inline-flex"` attribute.
3579
+ "display",
3576
3580
  // Cross-platform layout prop that Text consumes as CSS, never as an
3577
3581
  // attribute. Pinned explicitly because it is now spread into the styled
3578
3582
  // component rather than destructured away before it can reach the DOM.
@@ -3607,7 +3611,7 @@ function createFilteredElement(defaultTag) {
3607
3611
  var import_jsx_runtime = require("react/jsx-runtime");
3608
3612
  var FilteredDiv = createFilteredElement("div");
3609
3613
  var StyledBox = styled_components_esm_default(FilteredDiv)`
3610
- display: flex;
3614
+ display: ${(props) => props.display || "flex"};
3611
3615
  box-sizing: border-box;
3612
3616
  background-color: ${(props) => props.backgroundColor || "transparent"};
3613
3617
  border-color: ${(props) => props.borderColor || "transparent"};
@@ -3743,7 +3747,7 @@ var Box = import_react3.default.forwardRef(
3743
3747
  onLoad,
3744
3748
  "data-testid": dataTestId || testID,
3745
3749
  style: {
3746
- display: "block",
3750
+ display: props.display || "block",
3747
3751
  objectFit: "cover",
3748
3752
  width: typeof props.width === "number" ? `${props.width}px` : props.width,
3749
3753
  height: typeof props.height === "number" ? `${props.height}px` : props.height,