@xsolla/xui-input-phone 0.201.4 → 0.202.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xsolla/xui-input-phone",
3
- "version": "0.201.4",
3
+ "version": "0.202.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.201.4",
17
- "@xsolla/xui-primitives-core": "0.201.4",
16
+ "@xsolla/xui-core": "0.202.0",
17
+ "@xsolla/xui-primitives-core": "0.202.0",
18
18
  "libphonenumber-js": "^1.10.56"
19
19
  },
20
20
  "peerDependencies": {
package/web/index.js CHANGED
@@ -86,6 +86,7 @@ var ADDITIONAL_BLOCKED_PROPS = /* @__PURE__ */ new Set([
86
86
  "strokeWidth",
87
87
  // CSS properties that pass isPropValid but are used as component props
88
88
  "overflow",
89
+ "opacity",
89
90
  "cursor",
90
91
  "fontSize",
91
92
  "fontWeight",
@@ -195,11 +196,14 @@ var StyledBox = (0, import_styled_components.default)(FilteredDiv)`
195
196
  flex-shrink: ${(props) => props.flexShrink ?? 1};
196
197
  gap: ${(props) => typeof props.gap === "number" ? `${props.gap}px` : props.gap || 0};
197
198
  align-self: ${(props) => props.alignSelf || "auto"};
199
+ /* Only emit overflow-x/y when explicitly set. Defaulting them to
200
+ visible after overflow would override the shorthand and break
201
+ clipping (e.g. OtherCard bottom-right promo image). */
198
202
  overflow: ${(props) => props.overflow || "visible"};
199
- overflow-x: ${(props) => props.overflowX || "visible"};
200
- overflow-y: ${(props) => props.overflowY || "visible"};
203
+ ${(props) => props.overflowX != null ? `overflow-x: ${props.overflowX};` : ""}
204
+ ${(props) => props.overflowY != null ? `overflow-y: ${props.overflowY};` : ""}
201
205
  z-index: ${(props) => props.zIndex};
202
- opacity: ${(props) => props.disabled ? 0.5 : 1};
206
+ opacity: ${(props) => props.opacity != null ? props.opacity : props.disabled ? 0.5 : 1};
203
207
  pointer-events: ${(props) => props.disabled ? "none" : "auto"};
204
208
 
205
209
  &:hover {
@@ -250,6 +254,7 @@ var Box = import_react2.default.forwardRef(
250
254
  alt: alt || "",
251
255
  onError,
252
256
  onLoad,
257
+ "data-testid": dataTestId || testID,
253
258
  style: {
254
259
  display: "block",
255
260
  objectFit: "cover",