@xsolla/xui-context-menu 0.218.0 → 0.219.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/native/index.js +3 -0
- package/native/index.js.map +1 -1
- package/native/index.mjs +3 -0
- package/native/index.mjs.map +1 -1
- package/package.json +10 -10
- package/web/index.js +6 -2
- package/web/index.js.map +1 -1
- package/web/index.mjs +6 -2
- package/web/index.mjs.map +1 -1
package/web/index.js
CHANGED
|
@@ -93,6 +93,10 @@ var ADDITIONAL_BLOCKED_PROPS = /* @__PURE__ */ new Set([
|
|
|
93
93
|
"fontWeight",
|
|
94
94
|
"fontFamily",
|
|
95
95
|
"textDecoration",
|
|
96
|
+
// `display` is a presentation attribute on SVG, so isPropValid lets it
|
|
97
|
+
// through — but Box consumes it purely as CSS. Without this it lands on the
|
|
98
|
+
// DOM node as a bogus `display="inline-flex"` attribute.
|
|
99
|
+
"display",
|
|
96
100
|
// Cross-platform layout prop that Text consumes as CSS, never as an
|
|
97
101
|
// attribute. Pinned explicitly because it is now spread into the styled
|
|
98
102
|
// component rather than destructured away before it can reach the DOM.
|
|
@@ -127,7 +131,7 @@ function createFilteredElement(defaultTag) {
|
|
|
127
131
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
128
132
|
var FilteredDiv = createFilteredElement("div");
|
|
129
133
|
var StyledBox = (0, import_styled_components.default)(FilteredDiv)`
|
|
130
|
-
display: flex;
|
|
134
|
+
display: ${(props) => props.display || "flex"};
|
|
131
135
|
box-sizing: border-box;
|
|
132
136
|
background-color: ${(props) => props.backgroundColor || "transparent"};
|
|
133
137
|
border-color: ${(props) => props.borderColor || "transparent"};
|
|
@@ -263,7 +267,7 @@ var Box = import_react2.default.forwardRef(
|
|
|
263
267
|
onLoad,
|
|
264
268
|
"data-testid": dataTestId || testID,
|
|
265
269
|
style: {
|
|
266
|
-
display: "block",
|
|
270
|
+
display: props.display || "block",
|
|
267
271
|
objectFit: "cover",
|
|
268
272
|
width: typeof props.width === "number" ? `${props.width}px` : props.width,
|
|
269
273
|
height: typeof props.height === "number" ? `${props.height}px` : props.height,
|