@xsolla/xui-b2c-image-thumbnail 0.201.4 → 0.202.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.201.4",
3
+ "version": "0.202.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.201.4",
17
- "@xsolla/xui-primitives-core": "0.201.4"
16
+ "@xsolla/xui-core": "0.202.0",
17
+ "@xsolla/xui-primitives-core": "0.202.0"
18
18
  },
19
19
  "peerDependencies": {
20
20
  "react": ">=16.8.0"
package/web/index.js CHANGED
@@ -3567,6 +3567,7 @@ var ADDITIONAL_BLOCKED_PROPS = /* @__PURE__ */ new Set([
3567
3567
  "strokeWidth",
3568
3568
  // CSS properties that pass isPropValid but are used as component props
3569
3569
  "overflow",
3570
+ "opacity",
3570
3571
  "cursor",
3571
3572
  "fontSize",
3572
3573
  "fontWeight",
@@ -3676,11 +3677,14 @@ var StyledBox = styled_components_esm_default(FilteredDiv)`
3676
3677
  flex-shrink: ${(props) => props.flexShrink ?? 1};
3677
3678
  gap: ${(props) => typeof props.gap === "number" ? `${props.gap}px` : props.gap || 0};
3678
3679
  align-self: ${(props) => props.alignSelf || "auto"};
3680
+ /* Only emit overflow-x/y when explicitly set. Defaulting them to
3681
+ visible after overflow would override the shorthand and break
3682
+ clipping (e.g. OtherCard bottom-right promo image). */
3679
3683
  overflow: ${(props) => props.overflow || "visible"};
3680
- overflow-x: ${(props) => props.overflowX || "visible"};
3681
- overflow-y: ${(props) => props.overflowY || "visible"};
3684
+ ${(props) => props.overflowX != null ? `overflow-x: ${props.overflowX};` : ""}
3685
+ ${(props) => props.overflowY != null ? `overflow-y: ${props.overflowY};` : ""}
3682
3686
  z-index: ${(props) => props.zIndex};
3683
- opacity: ${(props) => props.disabled ? 0.5 : 1};
3687
+ opacity: ${(props) => props.opacity != null ? props.opacity : props.disabled ? 0.5 : 1};
3684
3688
  pointer-events: ${(props) => props.disabled ? "none" : "auto"};
3685
3689
 
3686
3690
  &:hover {
@@ -3731,6 +3735,7 @@ var Box = import_react3.default.forwardRef(
3731
3735
  alt: alt || "",
3732
3736
  onError,
3733
3737
  onLoad,
3738
+ "data-testid": dataTestId || testID,
3734
3739
  style: {
3735
3740
  display: "block",
3736
3741
  objectFit: "cover",