@xsolla/xui-context-menu 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-context-menu",
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,15 +13,15 @@
13
13
  "test:coverage": "vitest run --coverage"
14
14
  },
15
15
  "dependencies": {
16
- "@xsolla/xui-checkbox": "0.201.4",
17
- "@xsolla/xui-core": "0.201.4",
18
- "@xsolla/xui-divider": "0.201.4",
19
- "@xsolla/xui-icons": "0.201.4",
20
- "@xsolla/xui-icons-base": "0.201.4",
21
- "@xsolla/xui-primitives-core": "0.201.4",
22
- "@xsolla/xui-radio": "0.201.4",
23
- "@xsolla/xui-spinner": "0.201.4",
24
- "@xsolla/xui-typography": "0.201.4"
16
+ "@xsolla/xui-checkbox": "0.202.0",
17
+ "@xsolla/xui-core": "0.202.0",
18
+ "@xsolla/xui-divider": "0.202.0",
19
+ "@xsolla/xui-icons": "0.202.0",
20
+ "@xsolla/xui-icons-base": "0.202.0",
21
+ "@xsolla/xui-primitives-core": "0.202.0",
22
+ "@xsolla/xui-radio": "0.202.0",
23
+ "@xsolla/xui-spinner": "0.202.0",
24
+ "@xsolla/xui-typography": "0.202.0"
25
25
  },
26
26
  "peerDependencies": {
27
27
  "react": ">=16.8.0",
package/web/index.js CHANGED
@@ -87,6 +87,7 @@ var ADDITIONAL_BLOCKED_PROPS = /* @__PURE__ */ new Set([
87
87
  "strokeWidth",
88
88
  // CSS properties that pass isPropValid but are used as component props
89
89
  "overflow",
90
+ "opacity",
90
91
  "cursor",
91
92
  "fontSize",
92
93
  "fontWeight",
@@ -196,11 +197,14 @@ var StyledBox = (0, import_styled_components.default)(FilteredDiv)`
196
197
  flex-shrink: ${(props) => props.flexShrink ?? 1};
197
198
  gap: ${(props) => typeof props.gap === "number" ? `${props.gap}px` : props.gap || 0};
198
199
  align-self: ${(props) => props.alignSelf || "auto"};
200
+ /* Only emit overflow-x/y when explicitly set. Defaulting them to
201
+ visible after overflow would override the shorthand and break
202
+ clipping (e.g. OtherCard bottom-right promo image). */
199
203
  overflow: ${(props) => props.overflow || "visible"};
200
- overflow-x: ${(props) => props.overflowX || "visible"};
201
- overflow-y: ${(props) => props.overflowY || "visible"};
204
+ ${(props) => props.overflowX != null ? `overflow-x: ${props.overflowX};` : ""}
205
+ ${(props) => props.overflowY != null ? `overflow-y: ${props.overflowY};` : ""}
202
206
  z-index: ${(props) => props.zIndex};
203
- opacity: ${(props) => props.disabled ? 0.5 : 1};
207
+ opacity: ${(props) => props.opacity != null ? props.opacity : props.disabled ? 0.5 : 1};
204
208
  pointer-events: ${(props) => props.disabled ? "none" : "auto"};
205
209
 
206
210
  &:hover {
@@ -251,6 +255,7 @@ var Box = import_react2.default.forwardRef(
251
255
  alt: alt || "",
252
256
  onError,
253
257
  onLoad,
258
+ "data-testid": dataTestId || testID,
254
259
  style: {
255
260
  display: "block",
256
261
  objectFit: "cover",