@xsolla/xui-status-dropdown 0.218.1 → 0.220.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 +5 -5
- 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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xsolla/xui-status-dropdown",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.220.0",
|
|
4
4
|
"main": "./web/index.js",
|
|
5
5
|
"module": "./web/index.mjs",
|
|
6
6
|
"types": "./web/index.d.ts",
|
|
@@ -13,10 +13,10 @@
|
|
|
13
13
|
"test:coverage": "vitest run --coverage"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@xsolla/xui-context-menu": "0.
|
|
17
|
-
"@xsolla/xui-core": "0.
|
|
18
|
-
"@xsolla/xui-primitives-core": "0.
|
|
19
|
-
"@xsolla/xui-status": "0.
|
|
16
|
+
"@xsolla/xui-context-menu": "0.220.0",
|
|
17
|
+
"@xsolla/xui-core": "0.220.0",
|
|
18
|
+
"@xsolla/xui-primitives-core": "0.220.0",
|
|
19
|
+
"@xsolla/xui-status": "0.220.0"
|
|
20
20
|
},
|
|
21
21
|
"peerDependencies": {
|
|
22
22
|
"react": ">=16.8.0",
|
package/web/index.js
CHANGED
|
@@ -85,6 +85,10 @@ var ADDITIONAL_BLOCKED_PROPS = /* @__PURE__ */ new Set([
|
|
|
85
85
|
"fontWeight",
|
|
86
86
|
"fontFamily",
|
|
87
87
|
"textDecoration",
|
|
88
|
+
// `display` is a presentation attribute on SVG, so isPropValid lets it
|
|
89
|
+
// through — but Box consumes it purely as CSS. Without this it lands on the
|
|
90
|
+
// DOM node as a bogus `display="inline-flex"` attribute.
|
|
91
|
+
"display",
|
|
88
92
|
// Cross-platform layout prop that Text consumes as CSS, never as an
|
|
89
93
|
// attribute. Pinned explicitly because it is now spread into the styled
|
|
90
94
|
// component rather than destructured away before it can reach the DOM.
|
|
@@ -119,7 +123,7 @@ function createFilteredElement(defaultTag) {
|
|
|
119
123
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
120
124
|
var FilteredDiv = createFilteredElement("div");
|
|
121
125
|
var StyledBox = (0, import_styled_components.default)(FilteredDiv)`
|
|
122
|
-
display: flex;
|
|
126
|
+
display: ${(props) => props.display || "flex"};
|
|
123
127
|
box-sizing: border-box;
|
|
124
128
|
background-color: ${(props) => props.backgroundColor || "transparent"};
|
|
125
129
|
border-color: ${(props) => props.borderColor || "transparent"};
|
|
@@ -255,7 +259,7 @@ var Box = import_react2.default.forwardRef(
|
|
|
255
259
|
onLoad,
|
|
256
260
|
"data-testid": dataTestId || testID,
|
|
257
261
|
style: {
|
|
258
|
-
display: "block",
|
|
262
|
+
display: props.display || "block",
|
|
259
263
|
objectFit: "cover",
|
|
260
264
|
width: typeof props.width === "number" ? `${props.width}px` : props.width,
|
|
261
265
|
height: typeof props.height === "number" ? `${props.height}px` : props.height,
|