@xsolla/xui-multi-select 0.209.1 → 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.js +6 -0
- package/native/index.js.map +1 -1
- package/native/index.mjs +6 -0
- package/native/index.mjs.map +1 -1
- package/package.json +6 -6
- package/web/index.js +12 -0
- package/web/index.js.map +1 -1
- package/web/index.mjs +12 -0
- package/web/index.mjs.map +1 -1
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
|
`;
|
|
@@ -728,12 +734,18 @@ var StyledBox2 = styled5(FilteredDiv4)`
|
|
|
728
734
|
opacity: ${(props) => props.opacity != null ? props.opacity : props.disabled ? 0.5 : 1};
|
|
729
735
|
pointer-events: ${(props) => props.disabled ? "none" : "auto"};
|
|
730
736
|
|
|
737
|
+
/* \`background\` is emitted before \`background-color\` so a caller passing
|
|
738
|
+
both still gets backgroundColor as the winner. Use the shorthand for a
|
|
739
|
+
layered fill (e.g. an overlay tint over a resting surface colour), which
|
|
740
|
+
a single background-color cannot express. */
|
|
731
741
|
&:hover {
|
|
742
|
+
${(props) => props.hoverStyle?.background && `background: ${props.hoverStyle.background};`}
|
|
732
743
|
${(props) => props.hoverStyle?.backgroundColor && `background-color: ${props.hoverStyle.backgroundColor};`}
|
|
733
744
|
${(props) => props.hoverStyle?.borderColor && `border-color: ${props.hoverStyle.borderColor};`}
|
|
734
745
|
}
|
|
735
746
|
|
|
736
747
|
&:active {
|
|
748
|
+
${(props) => props.pressStyle?.background && `background: ${props.pressStyle.background};`}
|
|
737
749
|
${(props) => props.pressStyle?.backgroundColor && `background-color: ${props.pressStyle.backgroundColor};`}
|
|
738
750
|
}
|
|
739
751
|
`;
|