@xsolla/xui-status-dropdown 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
@@ -43,6 +43,7 @@ var ADDITIONAL_BLOCKED_PROPS = /* @__PURE__ */ new Set([
43
43
  "strokeWidth",
44
44
  // CSS properties that pass isPropValid but are used as component props
45
45
  "overflow",
46
+ "opacity",
46
47
  "cursor",
47
48
  "fontSize",
48
49
  "fontWeight",
@@ -152,11 +153,14 @@ var StyledBox = styled(FilteredDiv)`
152
153
  flex-shrink: ${(props) => props.flexShrink ?? 1};
153
154
  gap: ${(props) => typeof props.gap === "number" ? `${props.gap}px` : props.gap || 0};
154
155
  align-self: ${(props) => props.alignSelf || "auto"};
156
+ /* Only emit overflow-x/y when explicitly set. Defaulting them to
157
+ visible after overflow would override the shorthand and break
158
+ clipping (e.g. OtherCard bottom-right promo image). */
155
159
  overflow: ${(props) => props.overflow || "visible"};
156
- overflow-x: ${(props) => props.overflowX || "visible"};
157
- overflow-y: ${(props) => props.overflowY || "visible"};
160
+ ${(props) => props.overflowX != null ? `overflow-x: ${props.overflowX};` : ""}
161
+ ${(props) => props.overflowY != null ? `overflow-y: ${props.overflowY};` : ""}
158
162
  z-index: ${(props) => props.zIndex};
159
- opacity: ${(props) => props.disabled ? 0.5 : 1};
163
+ opacity: ${(props) => props.opacity != null ? props.opacity : props.disabled ? 0.5 : 1};
160
164
  pointer-events: ${(props) => props.disabled ? "none" : "auto"};
161
165
 
162
166
  &:hover {
@@ -207,6 +211,7 @@ var Box = React2.forwardRef(
207
211
  alt: alt || "",
208
212
  onError,
209
213
  onLoad,
214
+ "data-testid": dataTestId || testID,
210
215
  style: {
211
216
  display: "block",
212
217
  objectFit: "cover",