@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/web/index.mjs CHANGED
@@ -3554,6 +3554,7 @@ var ADDITIONAL_BLOCKED_PROPS = /* @__PURE__ */ new Set([
3554
3554
  "strokeWidth",
3555
3555
  // CSS properties that pass isPropValid but are used as component props
3556
3556
  "overflow",
3557
+ "opacity",
3557
3558
  "cursor",
3558
3559
  "fontSize",
3559
3560
  "fontWeight",
@@ -3663,11 +3664,14 @@ var StyledBox = styled_components_esm_default(FilteredDiv)`
3663
3664
  flex-shrink: ${(props) => props.flexShrink ?? 1};
3664
3665
  gap: ${(props) => typeof props.gap === "number" ? `${props.gap}px` : props.gap || 0};
3665
3666
  align-self: ${(props) => props.alignSelf || "auto"};
3667
+ /* Only emit overflow-x/y when explicitly set. Defaulting them to
3668
+ visible after overflow would override the shorthand and break
3669
+ clipping (e.g. OtherCard bottom-right promo image). */
3666
3670
  overflow: ${(props) => props.overflow || "visible"};
3667
- overflow-x: ${(props) => props.overflowX || "visible"};
3668
- overflow-y: ${(props) => props.overflowY || "visible"};
3671
+ ${(props) => props.overflowX != null ? `overflow-x: ${props.overflowX};` : ""}
3672
+ ${(props) => props.overflowY != null ? `overflow-y: ${props.overflowY};` : ""}
3669
3673
  z-index: ${(props) => props.zIndex};
3670
- opacity: ${(props) => props.disabled ? 0.5 : 1};
3674
+ opacity: ${(props) => props.opacity != null ? props.opacity : props.disabled ? 0.5 : 1};
3671
3675
  pointer-events: ${(props) => props.disabled ? "none" : "auto"};
3672
3676
 
3673
3677
  &:hover {
@@ -3718,6 +3722,7 @@ var Box = React3.forwardRef(
3718
3722
  alt: alt || "",
3719
3723
  onError,
3720
3724
  onLoad,
3725
+ "data-testid": dataTestId || testID,
3721
3726
  style: {
3722
3727
  display: "block",
3723
3728
  objectFit: "cover",