@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/web/index.mjs
CHANGED
|
@@ -54,6 +54,7 @@ var ADDITIONAL_BLOCKED_PROPS = /* @__PURE__ */ new Set([
|
|
|
54
54
|
"strokeWidth",
|
|
55
55
|
// CSS properties that pass isPropValid but are used as component props
|
|
56
56
|
"overflow",
|
|
57
|
+
"opacity",
|
|
57
58
|
"cursor",
|
|
58
59
|
"fontSize",
|
|
59
60
|
"fontWeight",
|
|
@@ -163,11 +164,14 @@ var StyledBox = styled(FilteredDiv)`
|
|
|
163
164
|
flex-shrink: ${(props) => props.flexShrink ?? 1};
|
|
164
165
|
gap: ${(props) => typeof props.gap === "number" ? `${props.gap}px` : props.gap || 0};
|
|
165
166
|
align-self: ${(props) => props.alignSelf || "auto"};
|
|
167
|
+
/* Only emit overflow-x/y when explicitly set. Defaulting them to
|
|
168
|
+
visible after overflow would override the shorthand and break
|
|
169
|
+
clipping (e.g. OtherCard bottom-right promo image). */
|
|
166
170
|
overflow: ${(props) => props.overflow || "visible"};
|
|
167
|
-
|
|
168
|
-
|
|
171
|
+
${(props) => props.overflowX != null ? `overflow-x: ${props.overflowX};` : ""}
|
|
172
|
+
${(props) => props.overflowY != null ? `overflow-y: ${props.overflowY};` : ""}
|
|
169
173
|
z-index: ${(props) => props.zIndex};
|
|
170
|
-
opacity: ${(props) => props.disabled ? 0.5 : 1};
|
|
174
|
+
opacity: ${(props) => props.opacity != null ? props.opacity : props.disabled ? 0.5 : 1};
|
|
171
175
|
pointer-events: ${(props) => props.disabled ? "none" : "auto"};
|
|
172
176
|
|
|
173
177
|
&:hover {
|
|
@@ -218,6 +222,7 @@ var Box = React2.forwardRef(
|
|
|
218
222
|
alt: alt || "",
|
|
219
223
|
onError,
|
|
220
224
|
onLoad,
|
|
225
|
+
"data-testid": dataTestId || testID,
|
|
221
226
|
style: {
|
|
222
227
|
display: "block",
|
|
223
228
|
objectFit: "cover",
|