@xsolla/xui-context-menu 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/native/index.js +2 -0
- package/native/index.js.map +1 -1
- package/native/index.mjs +2 -0
- package/native/index.mjs.map +1 -1
- package/package.json +10 -10
- package/web/index.js +8 -3
- package/web/index.js.map +1 -1
- package/web/index.mjs +8 -3
- package/web/index.mjs.map +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xsolla/xui-context-menu",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.202.1",
|
|
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.
|
|
17
|
-
"@xsolla/xui-core": "0.
|
|
18
|
-
"@xsolla/xui-divider": "0.
|
|
19
|
-
"@xsolla/xui-icons": "0.
|
|
20
|
-
"@xsolla/xui-icons-base": "0.
|
|
21
|
-
"@xsolla/xui-primitives-core": "0.
|
|
22
|
-
"@xsolla/xui-radio": "0.
|
|
23
|
-
"@xsolla/xui-spinner": "0.
|
|
24
|
-
"@xsolla/xui-typography": "0.
|
|
16
|
+
"@xsolla/xui-checkbox": "0.202.1",
|
|
17
|
+
"@xsolla/xui-core": "0.202.1",
|
|
18
|
+
"@xsolla/xui-divider": "0.202.1",
|
|
19
|
+
"@xsolla/xui-icons": "0.202.1",
|
|
20
|
+
"@xsolla/xui-icons-base": "0.202.1",
|
|
21
|
+
"@xsolla/xui-primitives-core": "0.202.1",
|
|
22
|
+
"@xsolla/xui-radio": "0.202.1",
|
|
23
|
+
"@xsolla/xui-spinner": "0.202.1",
|
|
24
|
+
"@xsolla/xui-typography": "0.202.1"
|
|
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
|
-
|
|
201
|
-
|
|
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",
|