@xsolla/xui-multi-select 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/native/index.js +11 -3
- package/native/index.js.map +1 -1
- package/native/index.mjs +11 -3
- package/native/index.mjs.map +1 -1
- package/package.json +6 -6
- package/web/index.js +17 -6
- package/web/index.js.map +1 -1
- package/web/index.mjs +17 -6
- package/web/index.mjs.map +1 -1
package/native/index.mjs
CHANGED
|
@@ -95,6 +95,7 @@ var Box = ({
|
|
|
95
95
|
flexShrink,
|
|
96
96
|
gap,
|
|
97
97
|
overflow,
|
|
98
|
+
opacity,
|
|
98
99
|
zIndex,
|
|
99
100
|
hoverStyle,
|
|
100
101
|
pressStyle,
|
|
@@ -122,6 +123,7 @@ var Box = ({
|
|
|
122
123
|
borderRadius,
|
|
123
124
|
borderStyle,
|
|
124
125
|
overflow,
|
|
126
|
+
opacity: opacity ?? (disabled ? 0.5 : void 0),
|
|
125
127
|
zIndex,
|
|
126
128
|
height,
|
|
127
129
|
width,
|
|
@@ -498,6 +500,7 @@ var ADDITIONAL_BLOCKED_PROPS = /* @__PURE__ */ new Set([
|
|
|
498
500
|
"strokeWidth",
|
|
499
501
|
// CSS properties that pass isPropValid but are used as component props
|
|
500
502
|
"overflow",
|
|
503
|
+
"opacity",
|
|
501
504
|
"cursor",
|
|
502
505
|
"fontSize",
|
|
503
506
|
"fontWeight",
|
|
@@ -592,6 +595,7 @@ var ADDITIONAL_BLOCKED_PROPS2 = /* @__PURE__ */ new Set([
|
|
|
592
595
|
"strokeWidth",
|
|
593
596
|
// CSS properties that pass isPropValid but are used as component props
|
|
594
597
|
"overflow",
|
|
598
|
+
"opacity",
|
|
595
599
|
"cursor",
|
|
596
600
|
"fontSize",
|
|
597
601
|
"fontWeight",
|
|
@@ -698,11 +702,14 @@ var StyledBox = styled2(FilteredDiv2)`
|
|
|
698
702
|
flex-shrink: ${(props) => props.flexShrink ?? 1};
|
|
699
703
|
gap: ${(props) => typeof props.gap === "number" ? `${props.gap}px` : props.gap || 0};
|
|
700
704
|
align-self: ${(props) => props.alignSelf || "auto"};
|
|
705
|
+
/* Only emit overflow-x/y when explicitly set. Defaulting them to
|
|
706
|
+
visible after overflow would override the shorthand and break
|
|
707
|
+
clipping (e.g. OtherCard bottom-right promo image). */
|
|
701
708
|
overflow: ${(props) => props.overflow || "visible"};
|
|
702
|
-
|
|
703
|
-
|
|
709
|
+
${(props) => props.overflowX != null ? `overflow-x: ${props.overflowX};` : ""}
|
|
710
|
+
${(props) => props.overflowY != null ? `overflow-y: ${props.overflowY};` : ""}
|
|
704
711
|
z-index: ${(props) => props.zIndex};
|
|
705
|
-
opacity: ${(props) => props.disabled ? 0.5 : 1};
|
|
712
|
+
opacity: ${(props) => props.opacity != null ? props.opacity : props.disabled ? 0.5 : 1};
|
|
706
713
|
pointer-events: ${(props) => props.disabled ? "none" : "auto"};
|
|
707
714
|
|
|
708
715
|
&:hover {
|
|
@@ -753,6 +760,7 @@ var Box2 = React22.forwardRef(
|
|
|
753
760
|
alt: alt || "",
|
|
754
761
|
onError,
|
|
755
762
|
onLoad,
|
|
763
|
+
"data-testid": dataTestId || testID,
|
|
756
764
|
style: {
|
|
757
765
|
display: "block",
|
|
758
766
|
objectFit: "cover",
|