@xsolla/xui-multi-select 0.141.0 → 0.141.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 +13 -13
- package/native/index.js.map +1 -1
- package/native/index.mjs +13 -13
- package/native/index.mjs.map +1 -1
- package/package.json +5 -5
- package/web/index.js +18 -18
- package/web/index.js.map +1 -1
- package/web/index.mjs +18 -18
- package/web/index.mjs.map +1 -1
- package/README.md +0 -169
package/web/index.mjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
// src/MultiSelect.tsx
|
|
2
2
|
import { forwardRef as forwardRef4, useRef as useRef4, useEffect as useEffect3 } from "react";
|
|
3
3
|
|
|
4
|
-
//
|
|
4
|
+
// ../../foundation/primitives-web/src/Box.tsx
|
|
5
5
|
import React2 from "react";
|
|
6
6
|
import styled from "styled-components";
|
|
7
7
|
|
|
8
|
-
//
|
|
8
|
+
// ../../foundation/primitives-web/src/filterDOMProps.ts
|
|
9
9
|
import React from "react";
|
|
10
10
|
|
|
11
|
-
//
|
|
11
|
+
// ../../../node_modules/@emotion/memoize/dist/memoize.esm.js
|
|
12
12
|
function memoize(fn) {
|
|
13
13
|
var cache = {};
|
|
14
14
|
return function(arg) {
|
|
@@ -18,7 +18,7 @@ function memoize(fn) {
|
|
|
18
18
|
}
|
|
19
19
|
var memoize_esm_default = memoize;
|
|
20
20
|
|
|
21
|
-
//
|
|
21
|
+
// ../../../node_modules/@emotion/is-prop-valid/dist/is-prop-valid.esm.js
|
|
22
22
|
var reactPropsRegex = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/;
|
|
23
23
|
var index = memoize_esm_default(
|
|
24
24
|
function(prop) {
|
|
@@ -28,7 +28,7 @@ var index = memoize_esm_default(
|
|
|
28
28
|
);
|
|
29
29
|
var is_prop_valid_esm_default = index;
|
|
30
30
|
|
|
31
|
-
//
|
|
31
|
+
// ../../foundation/primitives-web/src/filterDOMProps.ts
|
|
32
32
|
var ADDITIONAL_BLOCKED_PROPS = /* @__PURE__ */ new Set([
|
|
33
33
|
// RN-only event handlers (pass isPropValid's on* pattern)
|
|
34
34
|
"onPress",
|
|
@@ -74,7 +74,7 @@ function createFilteredElement(defaultTag) {
|
|
|
74
74
|
return Component;
|
|
75
75
|
}
|
|
76
76
|
|
|
77
|
-
//
|
|
77
|
+
// ../../foundation/primitives-web/src/Box.tsx
|
|
78
78
|
import { jsx } from "react/jsx-runtime";
|
|
79
79
|
var FilteredDiv = createFilteredElement("div");
|
|
80
80
|
var StyledBox = styled(FilteredDiv)`
|
|
@@ -247,7 +247,7 @@ var Box = React2.forwardRef(
|
|
|
247
247
|
);
|
|
248
248
|
Box.displayName = "Box";
|
|
249
249
|
|
|
250
|
-
//
|
|
250
|
+
// ../../foundation/primitives-web/src/Text.tsx
|
|
251
251
|
import styled2 from "styled-components";
|
|
252
252
|
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
253
253
|
var FilteredSpan = createFilteredElement("span");
|
|
@@ -281,7 +281,7 @@ var Text = ({
|
|
|
281
281
|
);
|
|
282
282
|
};
|
|
283
283
|
|
|
284
|
-
//
|
|
284
|
+
// ../../foundation/primitives-web/src/Icon.tsx
|
|
285
285
|
import styled3 from "styled-components";
|
|
286
286
|
import { jsx as jsx3 } from "react/jsx-runtime";
|
|
287
287
|
var FilteredDiv2 = createFilteredElement("div");
|
|
@@ -311,7 +311,7 @@ import { useResolvedTheme as useResolvedTheme4 } from "@xsolla/xui-core";
|
|
|
311
311
|
import { forwardRef as forwardRef3, useRef as useRef2 } from "react";
|
|
312
312
|
import { useResolvedTheme as useResolvedTheme3 } from "@xsolla/xui-core";
|
|
313
313
|
|
|
314
|
-
//
|
|
314
|
+
// ../../foundation/icons-base/dist/web/index.mjs
|
|
315
315
|
import styled4 from "styled-components";
|
|
316
316
|
import { jsx as jsx4 } from "react/jsx-runtime";
|
|
317
317
|
import { jsx as jsx22 } from "react/jsx-runtime";
|
|
@@ -1108,24 +1108,24 @@ import styled32 from "styled-components";
|
|
|
1108
1108
|
import { jsx as jsx3100 } from "react/jsx-runtime";
|
|
1109
1109
|
import { useResolvedTheme } from "@xsolla/xui-core";
|
|
1110
1110
|
|
|
1111
|
-
//
|
|
1111
|
+
// ../../foundation/icons/dist/web/index.mjs
|
|
1112
1112
|
import React3 from "react";
|
|
1113
1113
|
import styled5 from "styled-components";
|
|
1114
1114
|
import { jsx as jsx722 } from "react/jsx-runtime";
|
|
1115
1115
|
|
|
1116
|
-
//
|
|
1116
|
+
// ../../../node_modules/lucide-react/dist/esm/createLucideIcon.js
|
|
1117
1117
|
import { forwardRef as forwardRef2, createElement as createElement2 } from "react";
|
|
1118
1118
|
|
|
1119
|
-
//
|
|
1119
|
+
// ../../../node_modules/lucide-react/dist/esm/shared/src/utils.js
|
|
1120
1120
|
var toKebabCase = (string) => string.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
|
1121
1121
|
var mergeClasses = (...classes) => classes.filter((className, index4, array) => {
|
|
1122
1122
|
return Boolean(className) && className.trim() !== "" && array.indexOf(className) === index4;
|
|
1123
1123
|
}).join(" ").trim();
|
|
1124
1124
|
|
|
1125
|
-
//
|
|
1125
|
+
// ../../../node_modules/lucide-react/dist/esm/Icon.js
|
|
1126
1126
|
import { forwardRef, createElement } from "react";
|
|
1127
1127
|
|
|
1128
|
-
//
|
|
1128
|
+
// ../../../node_modules/lucide-react/dist/esm/defaultAttributes.js
|
|
1129
1129
|
var defaultAttributes = {
|
|
1130
1130
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1131
1131
|
width: 24,
|
|
@@ -1138,7 +1138,7 @@ var defaultAttributes = {
|
|
|
1138
1138
|
strokeLinejoin: "round"
|
|
1139
1139
|
};
|
|
1140
1140
|
|
|
1141
|
-
//
|
|
1141
|
+
// ../../../node_modules/lucide-react/dist/esm/Icon.js
|
|
1142
1142
|
var Icon2 = forwardRef(
|
|
1143
1143
|
({
|
|
1144
1144
|
color = "currentColor",
|
|
@@ -1170,7 +1170,7 @@ var Icon2 = forwardRef(
|
|
|
1170
1170
|
}
|
|
1171
1171
|
);
|
|
1172
1172
|
|
|
1173
|
-
//
|
|
1173
|
+
// ../../../node_modules/lucide-react/dist/esm/createLucideIcon.js
|
|
1174
1174
|
var createLucideIcon = (iconName, iconNode) => {
|
|
1175
1175
|
const Component = forwardRef2(
|
|
1176
1176
|
({ className, ...props }, ref) => createElement2(Icon2, {
|
|
@@ -1184,13 +1184,13 @@ var createLucideIcon = (iconName, iconNode) => {
|
|
|
1184
1184
|
return Component;
|
|
1185
1185
|
};
|
|
1186
1186
|
|
|
1187
|
-
//
|
|
1187
|
+
// ../../../node_modules/lucide-react/dist/esm/icons/x.js
|
|
1188
1188
|
var X = createLucideIcon("X", [
|
|
1189
1189
|
["path", { d: "M18 6 6 18", key: "1bl5f8" }],
|
|
1190
1190
|
["path", { d: "m6 6 12 12", key: "d8bk6v" }]
|
|
1191
1191
|
]);
|
|
1192
1192
|
|
|
1193
|
-
//
|
|
1193
|
+
// ../../foundation/icons/dist/web/index.mjs
|
|
1194
1194
|
import { jsx as jsx2100 } from "react/jsx-runtime";
|
|
1195
1195
|
function memoize2(fn) {
|
|
1196
1196
|
var cache = {};
|