@xsolla/xui-input-phone 0.209.1 → 0.211.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
@@ -168,12 +168,18 @@ var StyledBox = styled(FilteredDiv)`
168
168
  opacity: ${(props) => props.opacity != null ? props.opacity : props.disabled ? 0.5 : 1};
169
169
  pointer-events: ${(props) => props.disabled ? "none" : "auto"};
170
170
 
171
+ /* \`background\` is emitted before \`background-color\` so a caller passing
172
+ both still gets backgroundColor as the winner. Use the shorthand for a
173
+ layered fill (e.g. an overlay tint over a resting surface colour), which
174
+ a single background-color cannot express. */
171
175
  &:hover {
176
+ ${(props) => props.hoverStyle?.background && `background: ${props.hoverStyle.background};`}
172
177
  ${(props) => props.hoverStyle?.backgroundColor && `background-color: ${props.hoverStyle.backgroundColor};`}
173
178
  ${(props) => props.hoverStyle?.borderColor && `border-color: ${props.hoverStyle.borderColor};`}
174
179
  }
175
180
 
176
181
  &:active {
182
+ ${(props) => props.pressStyle?.background && `background: ${props.pressStyle.background};`}
177
183
  ${(props) => props.pressStyle?.backgroundColor && `background-color: ${props.pressStyle.backgroundColor};`}
178
184
  }
179
185
  `;