@xsolla/xui-b2b-sidebar 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-b2b-sidebar",
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,11 +13,11 @@
13
13
  "test:coverage": "vitest run --coverage"
14
14
  },
15
15
  "dependencies": {
16
- "@xsolla/xui-core": "0.201.5",
17
- "@xsolla/xui-icons-base": "0.201.5",
18
- "@xsolla/xui-primitives-core": "0.201.5",
19
- "@xsolla/xui-tooltip": "0.201.5",
20
- "@xsolla/xui-typography": "0.201.5"
16
+ "@xsolla/xui-core": "0.202.0",
17
+ "@xsolla/xui-icons-base": "0.202.0",
18
+ "@xsolla/xui-primitives-core": "0.202.0",
19
+ "@xsolla/xui-tooltip": "0.202.0",
20
+ "@xsolla/xui-typography": "0.202.0"
21
21
  },
22
22
  "peerDependencies": {
23
23
  "react": ">=16.8.0",
package/web/index.js CHANGED
@@ -1117,6 +1117,7 @@ var ADDITIONAL_BLOCKED_PROPS = /* @__PURE__ */ new Set([
1117
1117
  "strokeWidth",
1118
1118
  // CSS properties that pass isPropValid but are used as component props
1119
1119
  "overflow",
1120
+ "opacity",
1120
1121
  "cursor",
1121
1122
  "fontSize",
1122
1123
  "fontWeight",
@@ -1226,11 +1227,14 @@ var StyledBox = (0, import_styled_components4.default)(FilteredDiv)`
1226
1227
  flex-shrink: ${(props) => props.flexShrink ?? 1};
1227
1228
  gap: ${(props) => typeof props.gap === "number" ? `${props.gap}px` : props.gap || 0};
1228
1229
  align-self: ${(props) => props.alignSelf || "auto"};
1230
+ /* Only emit overflow-x/y when explicitly set. Defaulting them to
1231
+ visible after overflow would override the shorthand and break
1232
+ clipping (e.g. OtherCard bottom-right promo image). */
1229
1233
  overflow: ${(props) => props.overflow || "visible"};
1230
- overflow-x: ${(props) => props.overflowX || "visible"};
1231
- overflow-y: ${(props) => props.overflowY || "visible"};
1234
+ ${(props) => props.overflowX != null ? `overflow-x: ${props.overflowX};` : ""}
1235
+ ${(props) => props.overflowY != null ? `overflow-y: ${props.overflowY};` : ""}
1232
1236
  z-index: ${(props) => props.zIndex};
1233
- opacity: ${(props) => props.disabled ? 0.5 : 1};
1237
+ opacity: ${(props) => props.opacity != null ? props.opacity : props.disabled ? 0.5 : 1};
1234
1238
  pointer-events: ${(props) => props.disabled ? "none" : "auto"};
1235
1239
 
1236
1240
  &:hover {
@@ -1281,6 +1285,7 @@ var Box = import_react4.default.forwardRef(
1281
1285
  alt: alt || "",
1282
1286
  onError,
1283
1287
  onLoad,
1288
+ "data-testid": dataTestId || testID,
1284
1289
  style: {
1285
1290
  display: "block",
1286
1291
  objectFit: "cover",