@xsolla/xui-input-phone 0.201.5 → 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/web/index.mjs CHANGED
@@ -48,6 +48,7 @@ var ADDITIONAL_BLOCKED_PROPS = /* @__PURE__ */ new Set([
48
48
  "strokeWidth",
49
49
  // CSS properties that pass isPropValid but are used as component props
50
50
  "overflow",
51
+ "opacity",
51
52
  "cursor",
52
53
  "fontSize",
53
54
  "fontWeight",
@@ -157,11 +158,14 @@ var StyledBox = styled(FilteredDiv)`
157
158
  flex-shrink: ${(props) => props.flexShrink ?? 1};
158
159
  gap: ${(props) => typeof props.gap === "number" ? `${props.gap}px` : props.gap || 0};
159
160
  align-self: ${(props) => props.alignSelf || "auto"};
161
+ /* Only emit overflow-x/y when explicitly set. Defaulting them to
162
+ visible after overflow would override the shorthand and break
163
+ clipping (e.g. OtherCard bottom-right promo image). */
160
164
  overflow: ${(props) => props.overflow || "visible"};
161
- overflow-x: ${(props) => props.overflowX || "visible"};
162
- overflow-y: ${(props) => props.overflowY || "visible"};
165
+ ${(props) => props.overflowX != null ? `overflow-x: ${props.overflowX};` : ""}
166
+ ${(props) => props.overflowY != null ? `overflow-y: ${props.overflowY};` : ""}
163
167
  z-index: ${(props) => props.zIndex};
164
- opacity: ${(props) => props.disabled ? 0.5 : 1};
168
+ opacity: ${(props) => props.opacity != null ? props.opacity : props.disabled ? 0.5 : 1};
165
169
  pointer-events: ${(props) => props.disabled ? "none" : "auto"};
166
170
 
167
171
  &:hover {
@@ -212,6 +216,7 @@ var Box = React2.forwardRef(
212
216
  alt: alt || "",
213
217
  onError,
214
218
  onLoad,
219
+ "data-testid": dataTestId || testID,
215
220
  style: {
216
221
  display: "block",
217
222
  objectFit: "cover",