@xsolla/xui-multi-select 0.201.5 → 0.202.1
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.js
CHANGED
|
@@ -122,6 +122,7 @@ var Box = ({
|
|
|
122
122
|
flexShrink,
|
|
123
123
|
gap,
|
|
124
124
|
overflow,
|
|
125
|
+
opacity,
|
|
125
126
|
zIndex,
|
|
126
127
|
hoverStyle,
|
|
127
128
|
pressStyle,
|
|
@@ -149,6 +150,7 @@ var Box = ({
|
|
|
149
150
|
borderRadius,
|
|
150
151
|
borderStyle,
|
|
151
152
|
overflow,
|
|
153
|
+
opacity: opacity ?? (disabled ? 0.5 : void 0),
|
|
152
154
|
zIndex,
|
|
153
155
|
height,
|
|
154
156
|
width,
|
|
@@ -507,6 +509,7 @@ var ADDITIONAL_BLOCKED_PROPS = /* @__PURE__ */ new Set([
|
|
|
507
509
|
"strokeWidth",
|
|
508
510
|
// CSS properties that pass isPropValid but are used as component props
|
|
509
511
|
"overflow",
|
|
512
|
+
"opacity",
|
|
510
513
|
"cursor",
|
|
511
514
|
"fontSize",
|
|
512
515
|
"fontWeight",
|
|
@@ -601,6 +604,7 @@ var ADDITIONAL_BLOCKED_PROPS2 = /* @__PURE__ */ new Set([
|
|
|
601
604
|
"strokeWidth",
|
|
602
605
|
// CSS properties that pass isPropValid but are used as component props
|
|
603
606
|
"overflow",
|
|
607
|
+
"opacity",
|
|
604
608
|
"cursor",
|
|
605
609
|
"fontSize",
|
|
606
610
|
"fontWeight",
|
|
@@ -707,11 +711,14 @@ var StyledBox = (0, import_styled_components2.default)(FilteredDiv2)`
|
|
|
707
711
|
flex-shrink: ${(props) => props.flexShrink ?? 1};
|
|
708
712
|
gap: ${(props) => typeof props.gap === "number" ? `${props.gap}px` : props.gap || 0};
|
|
709
713
|
align-self: ${(props) => props.alignSelf || "auto"};
|
|
714
|
+
/* Only emit overflow-x/y when explicitly set. Defaulting them to
|
|
715
|
+
visible after overflow would override the shorthand and break
|
|
716
|
+
clipping (e.g. OtherCard bottom-right promo image). */
|
|
710
717
|
overflow: ${(props) => props.overflow || "visible"};
|
|
711
|
-
|
|
712
|
-
|
|
718
|
+
${(props) => props.overflowX != null ? `overflow-x: ${props.overflowX};` : ""}
|
|
719
|
+
${(props) => props.overflowY != null ? `overflow-y: ${props.overflowY};` : ""}
|
|
713
720
|
z-index: ${(props) => props.zIndex};
|
|
714
|
-
opacity: ${(props) => props.disabled ? 0.5 : 1};
|
|
721
|
+
opacity: ${(props) => props.opacity != null ? props.opacity : props.disabled ? 0.5 : 1};
|
|
715
722
|
pointer-events: ${(props) => props.disabled ? "none" : "auto"};
|
|
716
723
|
|
|
717
724
|
&:hover {
|
|
@@ -762,6 +769,7 @@ var Box2 = import_react5.default.forwardRef(
|
|
|
762
769
|
alt: alt || "",
|
|
763
770
|
onError,
|
|
764
771
|
onLoad,
|
|
772
|
+
"data-testid": dataTestId || testID,
|
|
765
773
|
style: {
|
|
766
774
|
display: "block",
|
|
767
775
|
objectFit: "cover",
|