@xsolla/xui-status-dropdown 0.201.5 → 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-status-dropdown",
3
- "version": "0.201.5",
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,10 +13,10 @@
13
13
  "test:coverage": "vitest run --coverage"
14
14
  },
15
15
  "dependencies": {
16
- "@xsolla/xui-context-menu": "0.201.5",
17
- "@xsolla/xui-core": "0.201.5",
18
- "@xsolla/xui-primitives-core": "0.201.5",
19
- "@xsolla/xui-status": "0.201.5"
16
+ "@xsolla/xui-context-menu": "0.202.0",
17
+ "@xsolla/xui-core": "0.202.0",
18
+ "@xsolla/xui-primitives-core": "0.202.0",
19
+ "@xsolla/xui-status": "0.202.0"
20
20
  },
21
21
  "peerDependencies": {
22
22
  "react": ">=16.8.0",
package/web/index.js CHANGED
@@ -79,6 +79,7 @@ var ADDITIONAL_BLOCKED_PROPS = /* @__PURE__ */ new Set([
79
79
  "strokeWidth",
80
80
  // CSS properties that pass isPropValid but are used as component props
81
81
  "overflow",
82
+ "opacity",
82
83
  "cursor",
83
84
  "fontSize",
84
85
  "fontWeight",
@@ -188,11 +189,14 @@ var StyledBox = (0, import_styled_components.default)(FilteredDiv)`
188
189
  flex-shrink: ${(props) => props.flexShrink ?? 1};
189
190
  gap: ${(props) => typeof props.gap === "number" ? `${props.gap}px` : props.gap || 0};
190
191
  align-self: ${(props) => props.alignSelf || "auto"};
192
+ /* Only emit overflow-x/y when explicitly set. Defaulting them to
193
+ visible after overflow would override the shorthand and break
194
+ clipping (e.g. OtherCard bottom-right promo image). */
191
195
  overflow: ${(props) => props.overflow || "visible"};
192
- overflow-x: ${(props) => props.overflowX || "visible"};
193
- overflow-y: ${(props) => props.overflowY || "visible"};
196
+ ${(props) => props.overflowX != null ? `overflow-x: ${props.overflowX};` : ""}
197
+ ${(props) => props.overflowY != null ? `overflow-y: ${props.overflowY};` : ""}
194
198
  z-index: ${(props) => props.zIndex};
195
- opacity: ${(props) => props.disabled ? 0.5 : 1};
199
+ opacity: ${(props) => props.opacity != null ? props.opacity : props.disabled ? 0.5 : 1};
196
200
  pointer-events: ${(props) => props.disabled ? "none" : "auto"};
197
201
 
198
202
  &:hover {
@@ -243,6 +247,7 @@ var Box = import_react2.default.forwardRef(
243
247
  alt: alt || "",
244
248
  onError,
245
249
  onLoad,
250
+ "data-testid": dataTestId || testID,
246
251
  style: {
247
252
  display: "block",
248
253
  objectFit: "cover",