@xsolla/xui-b2b-sidebar 0.201.5 → 0.202.1

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
@@ -1077,6 +1077,7 @@ var ADDITIONAL_BLOCKED_PROPS = /* @__PURE__ */ new Set([
1077
1077
  "strokeWidth",
1078
1078
  // CSS properties that pass isPropValid but are used as component props
1079
1079
  "overflow",
1080
+ "opacity",
1080
1081
  "cursor",
1081
1082
  "fontSize",
1082
1083
  "fontWeight",
@@ -1186,11 +1187,14 @@ var StyledBox = styled4(FilteredDiv)`
1186
1187
  flex-shrink: ${(props) => props.flexShrink ?? 1};
1187
1188
  gap: ${(props) => typeof props.gap === "number" ? `${props.gap}px` : props.gap || 0};
1188
1189
  align-self: ${(props) => props.alignSelf || "auto"};
1190
+ /* Only emit overflow-x/y when explicitly set. Defaulting them to
1191
+ visible after overflow would override the shorthand and break
1192
+ clipping (e.g. OtherCard bottom-right promo image). */
1189
1193
  overflow: ${(props) => props.overflow || "visible"};
1190
- overflow-x: ${(props) => props.overflowX || "visible"};
1191
- overflow-y: ${(props) => props.overflowY || "visible"};
1194
+ ${(props) => props.overflowX != null ? `overflow-x: ${props.overflowX};` : ""}
1195
+ ${(props) => props.overflowY != null ? `overflow-y: ${props.overflowY};` : ""}
1192
1196
  z-index: ${(props) => props.zIndex};
1193
- opacity: ${(props) => props.disabled ? 0.5 : 1};
1197
+ opacity: ${(props) => props.opacity != null ? props.opacity : props.disabled ? 0.5 : 1};
1194
1198
  pointer-events: ${(props) => props.disabled ? "none" : "auto"};
1195
1199
 
1196
1200
  &:hover {
@@ -1241,6 +1245,7 @@ var Box = React4.forwardRef(
1241
1245
  alt: alt || "",
1242
1246
  onError,
1243
1247
  onLoad,
1248
+ "data-testid": dataTestId || testID,
1244
1249
  style: {
1245
1250
  display: "block",
1246
1251
  objectFit: "cover",