@xsolla/xui-multi-select 0.209.0 → 0.210.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.mjs CHANGED
@@ -712,12 +712,18 @@ var StyledBox = styled2(FilteredDiv2)`
712
712
  opacity: ${(props) => props.opacity != null ? props.opacity : props.disabled ? 0.5 : 1};
713
713
  pointer-events: ${(props) => props.disabled ? "none" : "auto"};
714
714
 
715
+ /* \`background\` is emitted before \`background-color\` so a caller passing
716
+ both still gets backgroundColor as the winner. Use the shorthand for a
717
+ layered fill (e.g. an overlay tint over a resting surface colour), which
718
+ a single background-color cannot express. */
715
719
  &:hover {
720
+ ${(props) => props.hoverStyle?.background && `background: ${props.hoverStyle.background};`}
716
721
  ${(props) => props.hoverStyle?.backgroundColor && `background-color: ${props.hoverStyle.backgroundColor};`}
717
722
  ${(props) => props.hoverStyle?.borderColor && `border-color: ${props.hoverStyle.borderColor};`}
718
723
  }
719
724
 
720
725
  &:active {
726
+ ${(props) => props.pressStyle?.background && `background: ${props.pressStyle.background};`}
721
727
  ${(props) => props.pressStyle?.backgroundColor && `background-color: ${props.pressStyle.backgroundColor};`}
722
728
  }
723
729
  `;