@xsolla/xui-input-phone 0.218.1 → 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 +3 -3
- 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-input-phone",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.219.0",
|
|
4
4
|
"main": "./web/index.js",
|
|
5
5
|
"module": "./web/index.mjs",
|
|
6
6
|
"types": "./web/index.d.ts",
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
"test:coverage": "vitest run --coverage"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@xsolla/xui-core": "0.
|
|
17
|
-
"@xsolla/xui-primitives-core": "0.
|
|
16
|
+
"@xsolla/xui-core": "0.219.0",
|
|
17
|
+
"@xsolla/xui-primitives-core": "0.219.0",
|
|
18
18
|
"libphonenumber-js": "^1.10.56"
|
|
19
19
|
},
|
|
20
20
|
"peerDependencies": {
|
package/web/index.js
CHANGED
|
@@ -92,6 +92,10 @@ var ADDITIONAL_BLOCKED_PROPS = /* @__PURE__ */ new Set([
|
|
|
92
92
|
"fontWeight",
|
|
93
93
|
"fontFamily",
|
|
94
94
|
"textDecoration",
|
|
95
|
+
// `display` is a presentation attribute on SVG, so isPropValid lets it
|
|
96
|
+
// through — but Box consumes it purely as CSS. Without this it lands on the
|
|
97
|
+
// DOM node as a bogus `display="inline-flex"` attribute.
|
|
98
|
+
"display",
|
|
95
99
|
// Cross-platform layout prop that Text consumes as CSS, never as an
|
|
96
100
|
// attribute. Pinned explicitly because it is now spread into the styled
|
|
97
101
|
// component rather than destructured away before it can reach the DOM.
|
|
@@ -126,7 +130,7 @@ function createFilteredElement(defaultTag) {
|
|
|
126
130
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
127
131
|
var FilteredDiv = createFilteredElement("div");
|
|
128
132
|
var StyledBox = (0, import_styled_components.default)(FilteredDiv)`
|
|
129
|
-
display: flex;
|
|
133
|
+
display: ${(props) => props.display || "flex"};
|
|
130
134
|
box-sizing: border-box;
|
|
131
135
|
background-color: ${(props) => props.backgroundColor || "transparent"};
|
|
132
136
|
border-color: ${(props) => props.borderColor || "transparent"};
|
|
@@ -262,7 +266,7 @@ var Box = import_react2.default.forwardRef(
|
|
|
262
266
|
onLoad,
|
|
263
267
|
"data-testid": dataTestId || testID,
|
|
264
268
|
style: {
|
|
265
|
-
display: "block",
|
|
269
|
+
display: props.display || "block",
|
|
266
270
|
objectFit: "cover",
|
|
267
271
|
width: typeof props.width === "number" ? `${props.width}px` : props.width,
|
|
268
272
|
height: typeof props.height === "number" ? `${props.height}px` : props.height,
|