@xsolla/xui-multi-select 0.131.0 → 0.133.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 +243 -35
- package/native/index.js.map +1 -1
- package/native/index.mjs +215 -7
- package/native/index.mjs.map +1 -1
- package/package.json +5 -5
- package/web/index.js +243 -35
- package/web/index.js.map +1 -1
- package/web/index.mjs +215 -7
- package/web/index.mjs.map +1 -1
package/web/index.mjs
CHANGED
|
@@ -687,8 +687,9 @@ import {
|
|
|
687
687
|
} from "react";
|
|
688
688
|
|
|
689
689
|
// ../tag/dist/web/index.mjs
|
|
690
|
-
import
|
|
690
|
+
import React22 from "react";
|
|
691
691
|
import styled6 from "styled-components";
|
|
692
|
+
import React3 from "react";
|
|
692
693
|
import { jsx as jsx389 } from "react/jsx-runtime";
|
|
693
694
|
import styled22 from "styled-components";
|
|
694
695
|
import { jsx as jsx2101 } from "react/jsx-runtime";
|
|
@@ -697,6 +698,7 @@ import { jsx as jsx390 } from "react/jsx-runtime";
|
|
|
697
698
|
import { useResolvedTheme } from "@xsolla/xui-core";
|
|
698
699
|
|
|
699
700
|
// ../icons/dist/web/index.mjs
|
|
701
|
+
import React2 from "react";
|
|
700
702
|
import styled5 from "styled-components";
|
|
701
703
|
import { jsx as jsx388 } from "react/jsx-runtime";
|
|
702
704
|
|
|
@@ -779,7 +781,109 @@ var X = createLucideIcon("X", [
|
|
|
779
781
|
|
|
780
782
|
// ../icons/dist/web/index.mjs
|
|
781
783
|
import { jsx as jsx2100 } from "react/jsx-runtime";
|
|
782
|
-
var
|
|
784
|
+
var NON_HTML_PROPS = /* @__PURE__ */ new Set([
|
|
785
|
+
// BoxProps — layout & styling
|
|
786
|
+
"backgroundColor",
|
|
787
|
+
"borderColor",
|
|
788
|
+
"borderWidth",
|
|
789
|
+
"borderBottomWidth",
|
|
790
|
+
"borderBottomColor",
|
|
791
|
+
"borderTopWidth",
|
|
792
|
+
"borderTopColor",
|
|
793
|
+
"borderLeftWidth",
|
|
794
|
+
"borderLeftColor",
|
|
795
|
+
"borderRightWidth",
|
|
796
|
+
"borderRightColor",
|
|
797
|
+
"borderRadius",
|
|
798
|
+
"borderStyle",
|
|
799
|
+
"flexDirection",
|
|
800
|
+
"flexWrap",
|
|
801
|
+
"alignItems",
|
|
802
|
+
"justifyContent",
|
|
803
|
+
"alignSelf",
|
|
804
|
+
"flex",
|
|
805
|
+
"flexShrink",
|
|
806
|
+
"gap",
|
|
807
|
+
"position",
|
|
808
|
+
"top",
|
|
809
|
+
"bottom",
|
|
810
|
+
"left",
|
|
811
|
+
"right",
|
|
812
|
+
"outline",
|
|
813
|
+
"overflow",
|
|
814
|
+
"overflowX",
|
|
815
|
+
"overflowY",
|
|
816
|
+
"zIndex",
|
|
817
|
+
"cursor",
|
|
818
|
+
"padding",
|
|
819
|
+
"paddingHorizontal",
|
|
820
|
+
"paddingVertical",
|
|
821
|
+
"paddingTop",
|
|
822
|
+
"paddingBottom",
|
|
823
|
+
"paddingLeft",
|
|
824
|
+
"paddingRight",
|
|
825
|
+
"margin",
|
|
826
|
+
"marginTop",
|
|
827
|
+
"marginBottom",
|
|
828
|
+
"marginLeft",
|
|
829
|
+
"marginRight",
|
|
830
|
+
"minWidth",
|
|
831
|
+
"minHeight",
|
|
832
|
+
"maxWidth",
|
|
833
|
+
"maxHeight",
|
|
834
|
+
"hoverStyle",
|
|
835
|
+
"pressStyle",
|
|
836
|
+
"focusStyle",
|
|
837
|
+
"outlineColor",
|
|
838
|
+
"outlineWidth",
|
|
839
|
+
"outlineOffset",
|
|
840
|
+
"outlineStyle",
|
|
841
|
+
// BoxProps — RN-only
|
|
842
|
+
"onPress",
|
|
843
|
+
"onLayout",
|
|
844
|
+
"onMoveShouldSetResponder",
|
|
845
|
+
"onResponderGrant",
|
|
846
|
+
"onResponderMove",
|
|
847
|
+
"onResponderRelease",
|
|
848
|
+
"onResponderTerminate",
|
|
849
|
+
"testID",
|
|
850
|
+
// Box — custom element type
|
|
851
|
+
"elementType",
|
|
852
|
+
// TextProps
|
|
853
|
+
"fontSize",
|
|
854
|
+
"fontWeight",
|
|
855
|
+
"fontFamily",
|
|
856
|
+
"lineHeight",
|
|
857
|
+
"whiteSpace",
|
|
858
|
+
"textAlign",
|
|
859
|
+
"textDecoration",
|
|
860
|
+
"numberOfLines",
|
|
861
|
+
"letterSpacing",
|
|
862
|
+
"textTransform",
|
|
863
|
+
// SpinnerProps
|
|
864
|
+
"strokeWidth",
|
|
865
|
+
// DividerProps
|
|
866
|
+
"vertical",
|
|
867
|
+
"dashStroke"
|
|
868
|
+
]);
|
|
869
|
+
function createFilteredElement(defaultTag) {
|
|
870
|
+
const Component = React2.forwardRef(
|
|
871
|
+
({ children, elementType, ...props }, ref) => {
|
|
872
|
+
const Tag2 = elementType || defaultTag;
|
|
873
|
+
const htmlProps = {};
|
|
874
|
+
for (const key of Object.keys(props)) {
|
|
875
|
+
if (!NON_HTML_PROPS.has(key)) {
|
|
876
|
+
htmlProps[key] = props[key];
|
|
877
|
+
}
|
|
878
|
+
}
|
|
879
|
+
return React2.createElement(Tag2, { ref, ...htmlProps }, children);
|
|
880
|
+
}
|
|
881
|
+
);
|
|
882
|
+
Component.displayName = `Filtered(${defaultTag})`;
|
|
883
|
+
return Component;
|
|
884
|
+
}
|
|
885
|
+
var FilteredDiv = createFilteredElement("div");
|
|
886
|
+
var StyledIcon3 = styled5(FilteredDiv)`
|
|
783
887
|
display: flex;
|
|
784
888
|
align-items: center;
|
|
785
889
|
justify-content: center;
|
|
@@ -801,7 +905,109 @@ var X2 = (props) => /* @__PURE__ */ jsx2100(Icon3, { ...props, children: /* @__P
|
|
|
801
905
|
|
|
802
906
|
// ../tag/dist/web/index.mjs
|
|
803
907
|
import { jsx as jsx410, jsxs } from "react/jsx-runtime";
|
|
804
|
-
var
|
|
908
|
+
var NON_HTML_PROPS2 = /* @__PURE__ */ new Set([
|
|
909
|
+
// BoxProps — layout & styling
|
|
910
|
+
"backgroundColor",
|
|
911
|
+
"borderColor",
|
|
912
|
+
"borderWidth",
|
|
913
|
+
"borderBottomWidth",
|
|
914
|
+
"borderBottomColor",
|
|
915
|
+
"borderTopWidth",
|
|
916
|
+
"borderTopColor",
|
|
917
|
+
"borderLeftWidth",
|
|
918
|
+
"borderLeftColor",
|
|
919
|
+
"borderRightWidth",
|
|
920
|
+
"borderRightColor",
|
|
921
|
+
"borderRadius",
|
|
922
|
+
"borderStyle",
|
|
923
|
+
"flexDirection",
|
|
924
|
+
"flexWrap",
|
|
925
|
+
"alignItems",
|
|
926
|
+
"justifyContent",
|
|
927
|
+
"alignSelf",
|
|
928
|
+
"flex",
|
|
929
|
+
"flexShrink",
|
|
930
|
+
"gap",
|
|
931
|
+
"position",
|
|
932
|
+
"top",
|
|
933
|
+
"bottom",
|
|
934
|
+
"left",
|
|
935
|
+
"right",
|
|
936
|
+
"outline",
|
|
937
|
+
"overflow",
|
|
938
|
+
"overflowX",
|
|
939
|
+
"overflowY",
|
|
940
|
+
"zIndex",
|
|
941
|
+
"cursor",
|
|
942
|
+
"padding",
|
|
943
|
+
"paddingHorizontal",
|
|
944
|
+
"paddingVertical",
|
|
945
|
+
"paddingTop",
|
|
946
|
+
"paddingBottom",
|
|
947
|
+
"paddingLeft",
|
|
948
|
+
"paddingRight",
|
|
949
|
+
"margin",
|
|
950
|
+
"marginTop",
|
|
951
|
+
"marginBottom",
|
|
952
|
+
"marginLeft",
|
|
953
|
+
"marginRight",
|
|
954
|
+
"minWidth",
|
|
955
|
+
"minHeight",
|
|
956
|
+
"maxWidth",
|
|
957
|
+
"maxHeight",
|
|
958
|
+
"hoverStyle",
|
|
959
|
+
"pressStyle",
|
|
960
|
+
"focusStyle",
|
|
961
|
+
"outlineColor",
|
|
962
|
+
"outlineWidth",
|
|
963
|
+
"outlineOffset",
|
|
964
|
+
"outlineStyle",
|
|
965
|
+
// BoxProps — RN-only
|
|
966
|
+
"onPress",
|
|
967
|
+
"onLayout",
|
|
968
|
+
"onMoveShouldSetResponder",
|
|
969
|
+
"onResponderGrant",
|
|
970
|
+
"onResponderMove",
|
|
971
|
+
"onResponderRelease",
|
|
972
|
+
"onResponderTerminate",
|
|
973
|
+
"testID",
|
|
974
|
+
// Box — custom element type
|
|
975
|
+
"elementType",
|
|
976
|
+
// TextProps
|
|
977
|
+
"fontSize",
|
|
978
|
+
"fontWeight",
|
|
979
|
+
"fontFamily",
|
|
980
|
+
"lineHeight",
|
|
981
|
+
"whiteSpace",
|
|
982
|
+
"textAlign",
|
|
983
|
+
"textDecoration",
|
|
984
|
+
"numberOfLines",
|
|
985
|
+
"letterSpacing",
|
|
986
|
+
"textTransform",
|
|
987
|
+
// SpinnerProps
|
|
988
|
+
"strokeWidth",
|
|
989
|
+
// DividerProps
|
|
990
|
+
"vertical",
|
|
991
|
+
"dashStroke"
|
|
992
|
+
]);
|
|
993
|
+
function createFilteredElement2(defaultTag) {
|
|
994
|
+
const Component = React3.forwardRef(
|
|
995
|
+
({ children, elementType, ...props }, ref) => {
|
|
996
|
+
const Tag2 = elementType || defaultTag;
|
|
997
|
+
const htmlProps = {};
|
|
998
|
+
for (const key of Object.keys(props)) {
|
|
999
|
+
if (!NON_HTML_PROPS2.has(key)) {
|
|
1000
|
+
htmlProps[key] = props[key];
|
|
1001
|
+
}
|
|
1002
|
+
}
|
|
1003
|
+
return React3.createElement(Tag2, { ref, ...htmlProps }, children);
|
|
1004
|
+
}
|
|
1005
|
+
);
|
|
1006
|
+
Component.displayName = `Filtered(${defaultTag})`;
|
|
1007
|
+
return Component;
|
|
1008
|
+
}
|
|
1009
|
+
var FilteredDiv2 = createFilteredElement2("div");
|
|
1010
|
+
var StyledBox2 = styled6(FilteredDiv2)`
|
|
805
1011
|
display: flex;
|
|
806
1012
|
box-sizing: border-box;
|
|
807
1013
|
background-color: ${(props) => props.backgroundColor || "transparent"};
|
|
@@ -888,7 +1094,7 @@ var StyledBox2 = styled6.div`
|
|
|
888
1094
|
${(props) => props.pressStyle?.backgroundColor && `background-color: ${props.pressStyle.backgroundColor};`}
|
|
889
1095
|
}
|
|
890
1096
|
`;
|
|
891
|
-
var Box2 =
|
|
1097
|
+
var Box2 = React22.forwardRef(
|
|
892
1098
|
({
|
|
893
1099
|
children,
|
|
894
1100
|
onPress,
|
|
@@ -940,7 +1146,7 @@ var Box2 = React2.forwardRef(
|
|
|
940
1146
|
StyledBox2,
|
|
941
1147
|
{
|
|
942
1148
|
ref,
|
|
943
|
-
as,
|
|
1149
|
+
elementType: as,
|
|
944
1150
|
id,
|
|
945
1151
|
type: as === "button" ? type || "button" : void 0,
|
|
946
1152
|
disabled: as === "button" ? disabled : void 0,
|
|
@@ -967,7 +1173,8 @@ var Box2 = React2.forwardRef(
|
|
|
967
1173
|
}
|
|
968
1174
|
);
|
|
969
1175
|
Box2.displayName = "Box";
|
|
970
|
-
var
|
|
1176
|
+
var FilteredSpan = createFilteredElement2("span");
|
|
1177
|
+
var StyledText2 = styled22(FilteredSpan)`
|
|
971
1178
|
color: ${(props) => props.color || "inherit"};
|
|
972
1179
|
font-size: ${(props) => typeof props.fontSize === "number" ? `${props.fontSize}px` : props.fontSize || "inherit"};
|
|
973
1180
|
font-weight: ${(props) => props.fontWeight || "normal"};
|
|
@@ -996,7 +1203,8 @@ var Text2 = ({
|
|
|
996
1203
|
}
|
|
997
1204
|
);
|
|
998
1205
|
};
|
|
999
|
-
var
|
|
1206
|
+
var FilteredDiv22 = createFilteredElement2("div");
|
|
1207
|
+
var StyledIcon4 = styled32(FilteredDiv22)`
|
|
1000
1208
|
display: flex;
|
|
1001
1209
|
align-items: center;
|
|
1002
1210
|
justify-content: center;
|