@xsolla/xui-multi-select 0.132.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/native/index.mjs
CHANGED
|
@@ -729,8 +729,9 @@ import {
|
|
|
729
729
|
} from "react";
|
|
730
730
|
|
|
731
731
|
// ../tag/dist/web/index.mjs
|
|
732
|
-
import
|
|
732
|
+
import React22 from "react";
|
|
733
733
|
import styled3 from "styled-components";
|
|
734
|
+
import React3 from "react";
|
|
734
735
|
import { jsx as jsx389 } from "react/jsx-runtime";
|
|
735
736
|
import styled22 from "styled-components";
|
|
736
737
|
import { jsx as jsx2101 } from "react/jsx-runtime";
|
|
@@ -739,6 +740,7 @@ import { jsx as jsx390 } from "react/jsx-runtime";
|
|
|
739
740
|
import { useResolvedTheme } from "@xsolla/xui-core";
|
|
740
741
|
|
|
741
742
|
// ../icons/dist/web/index.mjs
|
|
743
|
+
import React2 from "react";
|
|
742
744
|
import styled2 from "styled-components";
|
|
743
745
|
import { jsx as jsx388 } from "react/jsx-runtime";
|
|
744
746
|
|
|
@@ -821,7 +823,109 @@ var X = createLucideIcon("X", [
|
|
|
821
823
|
|
|
822
824
|
// ../icons/dist/web/index.mjs
|
|
823
825
|
import { jsx as jsx2100 } from "react/jsx-runtime";
|
|
824
|
-
var
|
|
826
|
+
var NON_HTML_PROPS = /* @__PURE__ */ new Set([
|
|
827
|
+
// BoxProps — layout & styling
|
|
828
|
+
"backgroundColor",
|
|
829
|
+
"borderColor",
|
|
830
|
+
"borderWidth",
|
|
831
|
+
"borderBottomWidth",
|
|
832
|
+
"borderBottomColor",
|
|
833
|
+
"borderTopWidth",
|
|
834
|
+
"borderTopColor",
|
|
835
|
+
"borderLeftWidth",
|
|
836
|
+
"borderLeftColor",
|
|
837
|
+
"borderRightWidth",
|
|
838
|
+
"borderRightColor",
|
|
839
|
+
"borderRadius",
|
|
840
|
+
"borderStyle",
|
|
841
|
+
"flexDirection",
|
|
842
|
+
"flexWrap",
|
|
843
|
+
"alignItems",
|
|
844
|
+
"justifyContent",
|
|
845
|
+
"alignSelf",
|
|
846
|
+
"flex",
|
|
847
|
+
"flexShrink",
|
|
848
|
+
"gap",
|
|
849
|
+
"position",
|
|
850
|
+
"top",
|
|
851
|
+
"bottom",
|
|
852
|
+
"left",
|
|
853
|
+
"right",
|
|
854
|
+
"outline",
|
|
855
|
+
"overflow",
|
|
856
|
+
"overflowX",
|
|
857
|
+
"overflowY",
|
|
858
|
+
"zIndex",
|
|
859
|
+
"cursor",
|
|
860
|
+
"padding",
|
|
861
|
+
"paddingHorizontal",
|
|
862
|
+
"paddingVertical",
|
|
863
|
+
"paddingTop",
|
|
864
|
+
"paddingBottom",
|
|
865
|
+
"paddingLeft",
|
|
866
|
+
"paddingRight",
|
|
867
|
+
"margin",
|
|
868
|
+
"marginTop",
|
|
869
|
+
"marginBottom",
|
|
870
|
+
"marginLeft",
|
|
871
|
+
"marginRight",
|
|
872
|
+
"minWidth",
|
|
873
|
+
"minHeight",
|
|
874
|
+
"maxWidth",
|
|
875
|
+
"maxHeight",
|
|
876
|
+
"hoverStyle",
|
|
877
|
+
"pressStyle",
|
|
878
|
+
"focusStyle",
|
|
879
|
+
"outlineColor",
|
|
880
|
+
"outlineWidth",
|
|
881
|
+
"outlineOffset",
|
|
882
|
+
"outlineStyle",
|
|
883
|
+
// BoxProps — RN-only
|
|
884
|
+
"onPress",
|
|
885
|
+
"onLayout",
|
|
886
|
+
"onMoveShouldSetResponder",
|
|
887
|
+
"onResponderGrant",
|
|
888
|
+
"onResponderMove",
|
|
889
|
+
"onResponderRelease",
|
|
890
|
+
"onResponderTerminate",
|
|
891
|
+
"testID",
|
|
892
|
+
// Box — custom element type
|
|
893
|
+
"elementType",
|
|
894
|
+
// TextProps
|
|
895
|
+
"fontSize",
|
|
896
|
+
"fontWeight",
|
|
897
|
+
"fontFamily",
|
|
898
|
+
"lineHeight",
|
|
899
|
+
"whiteSpace",
|
|
900
|
+
"textAlign",
|
|
901
|
+
"textDecoration",
|
|
902
|
+
"numberOfLines",
|
|
903
|
+
"letterSpacing",
|
|
904
|
+
"textTransform",
|
|
905
|
+
// SpinnerProps
|
|
906
|
+
"strokeWidth",
|
|
907
|
+
// DividerProps
|
|
908
|
+
"vertical",
|
|
909
|
+
"dashStroke"
|
|
910
|
+
]);
|
|
911
|
+
function createFilteredElement(defaultTag) {
|
|
912
|
+
const Component = React2.forwardRef(
|
|
913
|
+
({ children, elementType, ...props }, ref) => {
|
|
914
|
+
const Tag2 = elementType || defaultTag;
|
|
915
|
+
const htmlProps = {};
|
|
916
|
+
for (const key of Object.keys(props)) {
|
|
917
|
+
if (!NON_HTML_PROPS.has(key)) {
|
|
918
|
+
htmlProps[key] = props[key];
|
|
919
|
+
}
|
|
920
|
+
}
|
|
921
|
+
return React2.createElement(Tag2, { ref, ...htmlProps }, children);
|
|
922
|
+
}
|
|
923
|
+
);
|
|
924
|
+
Component.displayName = `Filtered(${defaultTag})`;
|
|
925
|
+
return Component;
|
|
926
|
+
}
|
|
927
|
+
var FilteredDiv = createFilteredElement("div");
|
|
928
|
+
var StyledIcon2 = styled2(FilteredDiv)`
|
|
825
929
|
display: flex;
|
|
826
930
|
align-items: center;
|
|
827
931
|
justify-content: center;
|
|
@@ -843,7 +947,109 @@ var X2 = (props) => /* @__PURE__ */ jsx2100(Icon3, { ...props, children: /* @__P
|
|
|
843
947
|
|
|
844
948
|
// ../tag/dist/web/index.mjs
|
|
845
949
|
import { jsx as jsx410, jsxs } from "react/jsx-runtime";
|
|
846
|
-
var
|
|
950
|
+
var NON_HTML_PROPS2 = /* @__PURE__ */ new Set([
|
|
951
|
+
// BoxProps — layout & styling
|
|
952
|
+
"backgroundColor",
|
|
953
|
+
"borderColor",
|
|
954
|
+
"borderWidth",
|
|
955
|
+
"borderBottomWidth",
|
|
956
|
+
"borderBottomColor",
|
|
957
|
+
"borderTopWidth",
|
|
958
|
+
"borderTopColor",
|
|
959
|
+
"borderLeftWidth",
|
|
960
|
+
"borderLeftColor",
|
|
961
|
+
"borderRightWidth",
|
|
962
|
+
"borderRightColor",
|
|
963
|
+
"borderRadius",
|
|
964
|
+
"borderStyle",
|
|
965
|
+
"flexDirection",
|
|
966
|
+
"flexWrap",
|
|
967
|
+
"alignItems",
|
|
968
|
+
"justifyContent",
|
|
969
|
+
"alignSelf",
|
|
970
|
+
"flex",
|
|
971
|
+
"flexShrink",
|
|
972
|
+
"gap",
|
|
973
|
+
"position",
|
|
974
|
+
"top",
|
|
975
|
+
"bottom",
|
|
976
|
+
"left",
|
|
977
|
+
"right",
|
|
978
|
+
"outline",
|
|
979
|
+
"overflow",
|
|
980
|
+
"overflowX",
|
|
981
|
+
"overflowY",
|
|
982
|
+
"zIndex",
|
|
983
|
+
"cursor",
|
|
984
|
+
"padding",
|
|
985
|
+
"paddingHorizontal",
|
|
986
|
+
"paddingVertical",
|
|
987
|
+
"paddingTop",
|
|
988
|
+
"paddingBottom",
|
|
989
|
+
"paddingLeft",
|
|
990
|
+
"paddingRight",
|
|
991
|
+
"margin",
|
|
992
|
+
"marginTop",
|
|
993
|
+
"marginBottom",
|
|
994
|
+
"marginLeft",
|
|
995
|
+
"marginRight",
|
|
996
|
+
"minWidth",
|
|
997
|
+
"minHeight",
|
|
998
|
+
"maxWidth",
|
|
999
|
+
"maxHeight",
|
|
1000
|
+
"hoverStyle",
|
|
1001
|
+
"pressStyle",
|
|
1002
|
+
"focusStyle",
|
|
1003
|
+
"outlineColor",
|
|
1004
|
+
"outlineWidth",
|
|
1005
|
+
"outlineOffset",
|
|
1006
|
+
"outlineStyle",
|
|
1007
|
+
// BoxProps — RN-only
|
|
1008
|
+
"onPress",
|
|
1009
|
+
"onLayout",
|
|
1010
|
+
"onMoveShouldSetResponder",
|
|
1011
|
+
"onResponderGrant",
|
|
1012
|
+
"onResponderMove",
|
|
1013
|
+
"onResponderRelease",
|
|
1014
|
+
"onResponderTerminate",
|
|
1015
|
+
"testID",
|
|
1016
|
+
// Box — custom element type
|
|
1017
|
+
"elementType",
|
|
1018
|
+
// TextProps
|
|
1019
|
+
"fontSize",
|
|
1020
|
+
"fontWeight",
|
|
1021
|
+
"fontFamily",
|
|
1022
|
+
"lineHeight",
|
|
1023
|
+
"whiteSpace",
|
|
1024
|
+
"textAlign",
|
|
1025
|
+
"textDecoration",
|
|
1026
|
+
"numberOfLines",
|
|
1027
|
+
"letterSpacing",
|
|
1028
|
+
"textTransform",
|
|
1029
|
+
// SpinnerProps
|
|
1030
|
+
"strokeWidth",
|
|
1031
|
+
// DividerProps
|
|
1032
|
+
"vertical",
|
|
1033
|
+
"dashStroke"
|
|
1034
|
+
]);
|
|
1035
|
+
function createFilteredElement2(defaultTag) {
|
|
1036
|
+
const Component = React3.forwardRef(
|
|
1037
|
+
({ children, elementType, ...props }, ref) => {
|
|
1038
|
+
const Tag2 = elementType || defaultTag;
|
|
1039
|
+
const htmlProps = {};
|
|
1040
|
+
for (const key of Object.keys(props)) {
|
|
1041
|
+
if (!NON_HTML_PROPS2.has(key)) {
|
|
1042
|
+
htmlProps[key] = props[key];
|
|
1043
|
+
}
|
|
1044
|
+
}
|
|
1045
|
+
return React3.createElement(Tag2, { ref, ...htmlProps }, children);
|
|
1046
|
+
}
|
|
1047
|
+
);
|
|
1048
|
+
Component.displayName = `Filtered(${defaultTag})`;
|
|
1049
|
+
return Component;
|
|
1050
|
+
}
|
|
1051
|
+
var FilteredDiv2 = createFilteredElement2("div");
|
|
1052
|
+
var StyledBox = styled3(FilteredDiv2)`
|
|
847
1053
|
display: flex;
|
|
848
1054
|
box-sizing: border-box;
|
|
849
1055
|
background-color: ${(props) => props.backgroundColor || "transparent"};
|
|
@@ -930,7 +1136,7 @@ var StyledBox = styled3.div`
|
|
|
930
1136
|
${(props) => props.pressStyle?.backgroundColor && `background-color: ${props.pressStyle.backgroundColor};`}
|
|
931
1137
|
}
|
|
932
1138
|
`;
|
|
933
|
-
var Box2 =
|
|
1139
|
+
var Box2 = React22.forwardRef(
|
|
934
1140
|
({
|
|
935
1141
|
children,
|
|
936
1142
|
onPress,
|
|
@@ -982,7 +1188,7 @@ var Box2 = React2.forwardRef(
|
|
|
982
1188
|
StyledBox,
|
|
983
1189
|
{
|
|
984
1190
|
ref,
|
|
985
|
-
as,
|
|
1191
|
+
elementType: as,
|
|
986
1192
|
id,
|
|
987
1193
|
type: as === "button" ? type || "button" : void 0,
|
|
988
1194
|
disabled: as === "button" ? disabled : void 0,
|
|
@@ -1009,7 +1215,8 @@ var Box2 = React2.forwardRef(
|
|
|
1009
1215
|
}
|
|
1010
1216
|
);
|
|
1011
1217
|
Box2.displayName = "Box";
|
|
1012
|
-
var
|
|
1218
|
+
var FilteredSpan = createFilteredElement2("span");
|
|
1219
|
+
var StyledText = styled22(FilteredSpan)`
|
|
1013
1220
|
color: ${(props) => props.color || "inherit"};
|
|
1014
1221
|
font-size: ${(props) => typeof props.fontSize === "number" ? `${props.fontSize}px` : props.fontSize || "inherit"};
|
|
1015
1222
|
font-weight: ${(props) => props.fontWeight || "normal"};
|
|
@@ -1038,7 +1245,8 @@ var Text2 = ({
|
|
|
1038
1245
|
}
|
|
1039
1246
|
);
|
|
1040
1247
|
};
|
|
1041
|
-
var
|
|
1248
|
+
var FilteredDiv22 = createFilteredElement2("div");
|
|
1249
|
+
var StyledIcon3 = styled32(FilteredDiv22)`
|
|
1042
1250
|
display: flex;
|
|
1043
1251
|
align-items: center;
|
|
1044
1252
|
justify-content: center;
|