@xsolla/xui-multi-select 0.87.0 → 0.89.0-pr137.1770210437

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.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  // src/MultiSelect.tsx
2
- import { forwardRef as forwardRef8, useRef as useRef4, useEffect as useEffect3 } from "react";
2
+ import { forwardRef as forwardRef4, useRef as useRef4, useEffect as useEffect3 } from "react";
3
3
 
4
4
  // ../primitives-native/src/Box.tsx
5
5
  import {
@@ -206,41 +206,10 @@ var Text = ({
206
206
  return /* @__PURE__ */ jsx2(RNText, { style, testID: id, accessibilityRole, children });
207
207
  };
208
208
 
209
- // ../primitives-native/src/Spinner.tsx
210
- import { ActivityIndicator, View as View2 } from "react-native";
211
- import { jsx as jsx3 } from "react/jsx-runtime";
212
- var Spinner = ({
213
- color,
214
- size,
215
- role,
216
- "aria-label": ariaLabel,
217
- "aria-live": ariaLive,
218
- testID
219
- }) => {
220
- return /* @__PURE__ */ jsx3(
221
- View2,
222
- {
223
- accessible: true,
224
- accessibilityRole: role === "status" ? "none" : void 0,
225
- accessibilityLabel: ariaLabel,
226
- accessibilityLiveRegion: ariaLive === "polite" ? "polite" : ariaLive === "assertive" ? "assertive" : "none",
227
- testID,
228
- children: /* @__PURE__ */ jsx3(
229
- ActivityIndicator,
230
- {
231
- color,
232
- size: typeof size === "number" ? size : "small"
233
- }
234
- )
235
- }
236
- );
237
- };
238
- Spinner.displayName = "Spinner";
239
-
240
209
  // ../primitives-native/src/Icon.tsx
241
210
  import React from "react";
242
- import { View as View3 } from "react-native";
243
- import { jsx as jsx4 } from "react/jsx-runtime";
211
+ import { View as View2 } from "react-native";
212
+ import { jsx as jsx3 } from "react/jsx-runtime";
244
213
  var Icon = ({ children, color, size }) => {
245
214
  const style = {
246
215
  width: typeof size === "number" ? size : void 0,
@@ -258,243 +227,26 @@ var Icon = ({ children, color, size }) => {
258
227
  }
259
228
  return child;
260
229
  });
261
- return /* @__PURE__ */ jsx4(View3, { style, children: childrenWithProps });
262
- };
263
-
264
- // ../primitives-native/src/Divider.tsx
265
- import { View as View4 } from "react-native";
266
- import { jsx as jsx5 } from "react/jsx-runtime";
267
-
268
- // ../primitives-native/src/Input.tsx
269
- import { forwardRef } from "react";
270
- import { TextInput as RNTextInput } from "react-native";
271
- import { jsx as jsx6 } from "react/jsx-runtime";
272
- var keyboardTypeMap = {
273
- text: "default",
274
- number: "numeric",
275
- email: "email-address",
276
- tel: "phone-pad",
277
- url: "url",
278
- decimal: "decimal-pad"
230
+ return /* @__PURE__ */ jsx3(View2, { style, children: childrenWithProps });
279
231
  };
280
- var inputModeToKeyboardType = {
281
- none: "default",
282
- text: "default",
283
- decimal: "decimal-pad",
284
- numeric: "number-pad",
285
- tel: "phone-pad",
286
- search: "default",
287
- email: "email-address",
288
- url: "url"
289
- };
290
- var autoCompleteToTextContentType = {
291
- "one-time-code": "oneTimeCode",
292
- email: "emailAddress",
293
- username: "username",
294
- password: "password",
295
- "new-password": "newPassword",
296
- tel: "telephoneNumber",
297
- "postal-code": "postalCode",
298
- name: "name"
299
- };
300
- var InputPrimitive = forwardRef(
301
- ({
302
- value,
303
- placeholder,
304
- onChange,
305
- onChangeText,
306
- onFocus,
307
- onBlur,
308
- onKeyDown,
309
- disabled,
310
- secureTextEntry,
311
- style,
312
- color,
313
- fontSize,
314
- placeholderTextColor,
315
- maxLength,
316
- type,
317
- inputMode,
318
- autoComplete,
319
- id,
320
- "aria-describedby": ariaDescribedBy,
321
- "aria-label": ariaLabel,
322
- "aria-disabled": ariaDisabled,
323
- "data-testid": dataTestId
324
- }, ref) => {
325
- const handleChangeText = (text) => {
326
- onChangeText?.(text);
327
- if (onChange) {
328
- const syntheticEvent = {
329
- target: { value: text },
330
- currentTarget: { value: text },
331
- type: "change",
332
- nativeEvent: { text },
333
- preventDefault: () => {
334
- },
335
- stopPropagation: () => {
336
- },
337
- isTrusted: false
338
- };
339
- onChange(syntheticEvent);
340
- }
341
- };
342
- const keyboardType = inputMode ? inputModeToKeyboardType[inputMode] || "default" : type ? keyboardTypeMap[type] || "default" : "default";
343
- const textContentType = autoComplete ? autoCompleteToTextContentType[autoComplete] : void 0;
344
- return /* @__PURE__ */ jsx6(
345
- RNTextInput,
346
- {
347
- ref,
348
- value,
349
- placeholder,
350
- onChangeText: handleChangeText,
351
- onFocus,
352
- onBlur,
353
- onKeyPress: (e) => {
354
- if (onKeyDown) {
355
- onKeyDown({
356
- key: e.nativeEvent.key,
357
- preventDefault: () => {
358
- }
359
- });
360
- }
361
- },
362
- editable: !disabled,
363
- secureTextEntry: secureTextEntry || type === "password",
364
- keyboardType,
365
- textContentType,
366
- style: [
367
- {
368
- color,
369
- fontSize: typeof fontSize === "number" ? fontSize : void 0,
370
- flex: 1,
371
- padding: 0,
372
- textAlign: style?.textAlign || "left"
373
- },
374
- style
375
- ],
376
- placeholderTextColor,
377
- maxLength,
378
- testID: dataTestId || id,
379
- accessibilityLabel: ariaLabel,
380
- accessibilityHint: ariaDescribedBy,
381
- accessibilityState: {
382
- disabled: disabled || ariaDisabled
383
- },
384
- accessible: true
385
- }
386
- );
387
- }
388
- );
389
- InputPrimitive.displayName = "InputPrimitive";
390
-
391
- // ../primitives-native/src/TextArea.tsx
392
- import { forwardRef as forwardRef2 } from "react";
393
- import { TextInput as RNTextInput2 } from "react-native";
394
- import { jsx as jsx7 } from "react/jsx-runtime";
395
- var TextAreaPrimitive = forwardRef2(
396
- ({
397
- value,
398
- placeholder,
399
- onChange,
400
- onChangeText,
401
- onFocus,
402
- onBlur,
403
- onKeyDown,
404
- disabled,
405
- style,
406
- color,
407
- fontSize,
408
- placeholderTextColor,
409
- maxLength,
410
- rows,
411
- id,
412
- "aria-describedby": ariaDescribedBy,
413
- "aria-label": ariaLabel,
414
- "aria-disabled": ariaDisabled,
415
- "data-testid": dataTestId
416
- }, ref) => {
417
- const handleChangeText = (text) => {
418
- onChangeText?.(text);
419
- if (onChange) {
420
- const syntheticEvent = {
421
- target: { value: text },
422
- currentTarget: { value: text },
423
- type: "change",
424
- nativeEvent: { text },
425
- preventDefault: () => {
426
- },
427
- stopPropagation: () => {
428
- },
429
- isTrusted: false
430
- };
431
- onChange(syntheticEvent);
432
- }
433
- };
434
- return /* @__PURE__ */ jsx7(
435
- RNTextInput2,
436
- {
437
- ref,
438
- value,
439
- placeholder,
440
- onChangeText: handleChangeText,
441
- onFocus,
442
- onBlur,
443
- onKeyPress: (e) => {
444
- if (onKeyDown) {
445
- onKeyDown({
446
- key: e.nativeEvent.key,
447
- preventDefault: () => {
448
- }
449
- });
450
- }
451
- },
452
- editable: !disabled,
453
- multiline: true,
454
- numberOfLines: rows || 4,
455
- style: [
456
- {
457
- color,
458
- fontSize: typeof fontSize === "number" ? fontSize : void 0,
459
- flex: 1,
460
- padding: 0,
461
- textAlignVertical: "top",
462
- textAlign: style?.textAlign || "left"
463
- },
464
- style
465
- ],
466
- placeholderTextColor,
467
- maxLength,
468
- testID: dataTestId || id,
469
- accessibilityLabel: ariaLabel,
470
- accessibilityHint: ariaDescribedBy,
471
- accessibilityState: {
472
- disabled: disabled || ariaDisabled
473
- },
474
- accessible: true
475
- }
476
- );
477
- }
478
- );
479
- TextAreaPrimitive.displayName = "TextAreaPrimitive";
480
232
 
481
233
  // src/MultiSelect.tsx
482
234
  import { useDesignSystem as useDesignSystem4 } from "@xsolla/xui-core";
483
235
 
484
236
  // src/MultiSelectControl.tsx
485
- import { forwardRef as forwardRef7, useRef as useRef2 } from "react";
237
+ import { forwardRef as forwardRef3, useRef as useRef2 } from "react";
486
238
  import { useDesignSystem as useDesignSystem3 } from "@xsolla/xui-core";
487
239
 
488
240
  // ../icons-base/dist/web/index.mjs
489
241
  import styled from "styled-components";
490
- import { jsx as jsx8 } from "react/jsx-runtime";
242
+ import { jsx as jsx4 } from "react/jsx-runtime";
491
243
  import { jsx as jsx22 } from "react/jsx-runtime";
492
244
  import { jsx as jsx32 } from "react/jsx-runtime";
493
245
  import { jsx as jsx42 } from "react/jsx-runtime";
494
- import { jsx as jsx52 } from "react/jsx-runtime";
495
- import { jsx as jsx62 } from "react/jsx-runtime";
496
- import { jsx as jsx72 } from "react/jsx-runtime";
497
- import { jsx as jsx82 } from "react/jsx-runtime";
246
+ import { jsx as jsx5 } from "react/jsx-runtime";
247
+ import { jsx as jsx6 } from "react/jsx-runtime";
248
+ import { jsx as jsx7 } from "react/jsx-runtime";
249
+ import { jsx as jsx8 } from "react/jsx-runtime";
498
250
  import { jsx as jsx9 } from "react/jsx-runtime";
499
251
  import { jsx as jsx10 } from "react/jsx-runtime";
500
252
  import { jsx as jsx11 } from "react/jsx-runtime";
@@ -538,7 +290,7 @@ import { jsx as jsx48 } from "react/jsx-runtime";
538
290
  import { jsx as jsx49 } from "react/jsx-runtime";
539
291
  import { jsx as jsx50 } from "react/jsx-runtime";
540
292
  import { jsx as jsx51 } from "react/jsx-runtime";
541
- import { jsx as jsx522 } from "react/jsx-runtime";
293
+ import { jsx as jsx52 } from "react/jsx-runtime";
542
294
  import { jsx as jsx53 } from "react/jsx-runtime";
543
295
  import { jsx as jsx54 } from "react/jsx-runtime";
544
296
  import { jsx as jsx55 } from "react/jsx-runtime";
@@ -548,7 +300,7 @@ import { jsx as jsx58 } from "react/jsx-runtime";
548
300
  import { jsx as jsx59 } from "react/jsx-runtime";
549
301
  import { jsx as jsx60 } from "react/jsx-runtime";
550
302
  import { jsx as jsx61 } from "react/jsx-runtime";
551
- import { jsx as jsx622 } from "react/jsx-runtime";
303
+ import { jsx as jsx62 } from "react/jsx-runtime";
552
304
  import { jsx as jsx63 } from "react/jsx-runtime";
553
305
  import { jsx as jsx64 } from "react/jsx-runtime";
554
306
  import { jsx as jsx65 } from "react/jsx-runtime";
@@ -558,7 +310,7 @@ import { jsx as jsx68 } from "react/jsx-runtime";
558
310
  import { jsx as jsx69 } from "react/jsx-runtime";
559
311
  import { jsx as jsx70 } from "react/jsx-runtime";
560
312
  import { jsx as jsx71 } from "react/jsx-runtime";
561
- import { jsx as jsx722 } from "react/jsx-runtime";
313
+ import { jsx as jsx72 } from "react/jsx-runtime";
562
314
  import { jsx as jsx73 } from "react/jsx-runtime";
563
315
  import { jsx as jsx74 } from "react/jsx-runtime";
564
316
  import { jsx as jsx75 } from "react/jsx-runtime";
@@ -568,7 +320,7 @@ import { jsx as jsx78 } from "react/jsx-runtime";
568
320
  import { jsx as jsx79 } from "react/jsx-runtime";
569
321
  import { jsx as jsx80 } from "react/jsx-runtime";
570
322
  import { jsx as jsx81 } from "react/jsx-runtime";
571
- import { jsx as jsx822 } from "react/jsx-runtime";
323
+ import { jsx as jsx82 } from "react/jsx-runtime";
572
324
  import { jsx as jsx83 } from "react/jsx-runtime";
573
325
  import { jsx as jsx84 } from "react/jsx-runtime";
574
326
  import { jsx as jsx85 } from "react/jsx-runtime";
@@ -895,7 +647,7 @@ var BaseIcon = ({
895
647
  }) => {
896
648
  const svgContent = variant === "line" ? lineContent381 : solidContent381;
897
649
  const sizeValue = typeof size === "number" ? `${size}px` : size;
898
- return /* @__PURE__ */ jsx8(
650
+ return /* @__PURE__ */ jsx4(
899
651
  StyledIcon,
900
652
  {
901
653
  $size: sizeValue,
@@ -932,46 +684,21 @@ import {
932
684
  } from "react";
933
685
 
934
686
  // ../tag/dist/web/index.mjs
935
- import React5 from "react";
936
- import styled8 from "styled-components";
937
- import { jsx as jsx384 } from "react/jsx-runtime";
938
- import styled23 from "styled-components";
687
+ import React2 from "react";
688
+ import styled3 from "styled-components";
689
+ import { jsx as jsx383 } from "react/jsx-runtime";
690
+ import styled22 from "styled-components";
939
691
  import { jsx as jsx2101 } from "react/jsx-runtime";
940
- import styled32, { keyframes as keyframes2 } from "styled-components";
941
- import { jsx as jsx385 } from "react/jsx-runtime";
942
- import styled42 from "styled-components";
943
- import { jsx as jsx411 } from "react/jsx-runtime";
944
- import styled52 from "styled-components";
945
- import { jsx as jsx511 } from "react/jsx-runtime";
946
- import { forwardRef as forwardRef6 } from "react";
947
- import styled62 from "styled-components";
948
- import { jsx as jsx611 } from "react/jsx-runtime";
949
- import { forwardRef as forwardRef23 } from "react";
950
- import styled72 from "styled-components";
951
- import { jsx as jsx711 } from "react/jsx-runtime";
692
+ import styled32 from "styled-components";
693
+ import { jsx as jsx384 } from "react/jsx-runtime";
952
694
  import { useDesignSystem } from "@xsolla/xui-core";
953
695
 
954
696
  // ../icons/dist/web/index.mjs
955
- import React4 from "react";
956
697
  import styled2 from "styled-components";
957
698
  import { jsx as jsx382 } from "react/jsx-runtime";
958
- import styled22 from "styled-components";
959
- import { jsx as jsx2100 } from "react/jsx-runtime";
960
- import styled3, { keyframes } from "styled-components";
961
- import { jsx as jsx383 } from "react/jsx-runtime";
962
- import styled4 from "styled-components";
963
- import { jsx as jsx410 } from "react/jsx-runtime";
964
- import styled5 from "styled-components";
965
- import { jsx as jsx510 } from "react/jsx-runtime";
966
- import { forwardRef as forwardRef5 } from "react";
967
- import styled6 from "styled-components";
968
- import { jsx as jsx610 } from "react/jsx-runtime";
969
- import { forwardRef as forwardRef22 } from "react";
970
- import styled7 from "styled-components";
971
- import { jsx as jsx710 } from "react/jsx-runtime";
972
699
 
973
700
  // ../../node_modules/lucide-react/dist/esm/createLucideIcon.js
974
- import { forwardRef as forwardRef4, createElement as createElement2 } from "react";
701
+ import { forwardRef as forwardRef2, createElement as createElement2 } from "react";
975
702
 
976
703
  // ../../node_modules/lucide-react/dist/esm/shared/src/utils.js
977
704
  var toKebabCase = (string) => string.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
@@ -980,7 +707,7 @@ var mergeClasses = (...classes) => classes.filter((className, index, array) => {
980
707
  }).join(" ").trim();
981
708
 
982
709
  // ../../node_modules/lucide-react/dist/esm/Icon.js
983
- import { forwardRef as forwardRef3, createElement } from "react";
710
+ import { forwardRef, createElement } from "react";
984
711
 
985
712
  // ../../node_modules/lucide-react/dist/esm/defaultAttributes.js
986
713
  var defaultAttributes = {
@@ -996,7 +723,7 @@ var defaultAttributes = {
996
723
  };
997
724
 
998
725
  // ../../node_modules/lucide-react/dist/esm/Icon.js
999
- var Icon2 = forwardRef3(
726
+ var Icon2 = forwardRef(
1000
727
  ({
1001
728
  color = "currentColor",
1002
729
  size = 24,
@@ -1029,7 +756,7 @@ var Icon2 = forwardRef3(
1029
756
 
1030
757
  // ../../node_modules/lucide-react/dist/esm/createLucideIcon.js
1031
758
  var createLucideIcon = (iconName, iconNode) => {
1032
- const Component = forwardRef4(
759
+ const Component = forwardRef2(
1033
760
  ({ className, ...props }, ref) => createElement2(Icon2, {
1034
761
  ref,
1035
762
  iconNode,
@@ -1048,222 +775,8 @@ var X = createLucideIcon("X", [
1048
775
  ]);
1049
776
 
1050
777
  // ../icons/dist/web/index.mjs
1051
- import { jsx as jsx810 } from "react/jsx-runtime";
1052
- var StyledBox = styled2.div`
1053
- display: flex;
1054
- box-sizing: border-box;
1055
- background-color: ${(props) => props.backgroundColor || "transparent"};
1056
- border-color: ${(props) => props.borderColor || "transparent"};
1057
- border-width: ${(props) => typeof props.borderWidth === "number" ? `${props.borderWidth}px` : props.borderWidth || 0};
1058
-
1059
- ${(props) => props.borderBottomWidth !== void 0 && `
1060
- border-bottom-width: ${typeof props.borderBottomWidth === "number" ? `${props.borderBottomWidth}px` : props.borderBottomWidth};
1061
- border-bottom-color: ${props.borderBottomColor || props.borderColor || "transparent"};
1062
- border-bottom-style: solid;
1063
- `}
1064
- ${(props) => props.borderTopWidth !== void 0 && `
1065
- border-top-width: ${typeof props.borderTopWidth === "number" ? `${props.borderTopWidth}px` : props.borderTopWidth};
1066
- border-top-color: ${props.borderTopColor || props.borderColor || "transparent"};
1067
- border-top-style: solid;
1068
- `}
1069
- ${(props) => props.borderLeftWidth !== void 0 && `
1070
- border-left-width: ${typeof props.borderLeftWidth === "number" ? `${props.borderLeftWidth}px` : props.borderLeftWidth};
1071
- border-left-color: ${props.borderLeftColor || props.borderColor || "transparent"};
1072
- border-left-style: solid;
1073
- `}
1074
- ${(props) => props.borderRightWidth !== void 0 && `
1075
- border-right-width: ${typeof props.borderRightWidth === "number" ? `${props.borderRightWidth}px` : props.borderRightWidth};
1076
- border-right-color: ${props.borderRightColor || props.borderColor || "transparent"};
1077
- border-right-style: solid;
1078
- `}
1079
-
1080
- border-style: ${(props) => props.borderStyle || (props.borderWidth || props.borderBottomWidth || props.borderTopWidth || props.borderLeftWidth || props.borderRightWidth ? "solid" : "none")};
1081
- border-radius: ${(props) => typeof props.borderRadius === "number" ? `${props.borderRadius}px` : props.borderRadius || 0};
1082
- height: ${(props) => typeof props.height === "number" ? `${props.height}px` : props.height || "auto"};
1083
- width: ${(props) => typeof props.width === "number" ? `${props.width}px` : props.width || "auto"};
1084
- min-width: ${(props) => typeof props.minWidth === "number" ? `${props.minWidth}px` : props.minWidth || "auto"};
1085
- min-height: ${(props) => typeof props.minHeight === "number" ? `${props.minHeight}px` : props.minHeight || "auto"};
1086
-
1087
- padding: ${(props) => typeof props.padding === "number" ? `${props.padding}px` : props.padding || 0};
1088
- ${(props) => props.paddingHorizontal && `
1089
- padding-left: ${typeof props.paddingHorizontal === "number" ? `${props.paddingHorizontal}px` : props.paddingHorizontal};
1090
- padding-right: ${typeof props.paddingHorizontal === "number" ? `${props.paddingHorizontal}px` : props.paddingHorizontal};
1091
- `}
1092
- ${(props) => props.paddingVertical && `
1093
- padding-top: ${typeof props.paddingVertical === "number" ? `${props.paddingVertical}px` : props.paddingVertical};
1094
- padding-bottom: ${typeof props.paddingVertical === "number" ? `${props.paddingVertical}px` : props.paddingVertical};
1095
- `}
1096
- ${(props) => props.paddingTop !== void 0 && `padding-top: ${typeof props.paddingTop === "number" ? `${props.paddingTop}px` : props.paddingTop};`}
1097
- ${(props) => props.paddingBottom !== void 0 && `padding-bottom: ${typeof props.paddingBottom === "number" ? `${props.paddingBottom}px` : props.paddingBottom};`}
1098
- ${(props) => props.paddingLeft !== void 0 && `padding-left: ${typeof props.paddingLeft === "number" ? `${props.paddingLeft}px` : props.paddingLeft};`}
1099
- ${(props) => props.paddingRight !== void 0 && `padding-right: ${typeof props.paddingRight === "number" ? `${props.paddingRight}px` : props.paddingRight};`}
1100
-
1101
- margin: ${(props) => typeof props.margin === "number" ? `${props.margin}px` : props.margin || 0};
1102
- ${(props) => props.marginTop !== void 0 && `margin-top: ${typeof props.marginTop === "number" ? `${props.marginTop}px` : props.marginTop};`}
1103
- ${(props) => props.marginBottom !== void 0 && `margin-bottom: ${typeof props.marginBottom === "number" ? `${props.marginBottom}px` : props.marginBottom};`}
1104
- ${(props) => props.marginLeft !== void 0 && `margin-left: ${typeof props.marginLeft === "number" ? `${props.marginLeft}px` : props.marginLeft};`}
1105
- ${(props) => props.marginRight !== void 0 && `margin-right: ${typeof props.marginRight === "number" ? `${props.marginRight}px` : props.marginRight};`}
1106
-
1107
- flex-direction: ${(props) => props.flexDirection || "column"};
1108
- flex-wrap: ${(props) => props.flexWrap || "nowrap"};
1109
- align-items: ${(props) => props.alignItems || "stretch"};
1110
- justify-content: ${(props) => props.justifyContent || "flex-start"};
1111
- cursor: ${(props) => props.cursor ? props.cursor : props.onClick || props.onPress ? "pointer" : "inherit"};
1112
- position: ${(props) => props.position || "static"};
1113
- top: ${(props) => typeof props.top === "number" ? `${props.top}px` : props.top};
1114
- bottom: ${(props) => typeof props.bottom === "number" ? `${props.bottom}px` : props.bottom};
1115
- left: ${(props) => typeof props.left === "number" ? `${props.left}px` : props.left};
1116
- right: ${(props) => typeof props.right === "number" ? `${props.right}px` : props.right};
1117
- flex: ${(props) => props.flex};
1118
- flex-shrink: ${(props) => props.flexShrink ?? 1};
1119
- gap: ${(props) => typeof props.gap === "number" ? `${props.gap}px` : props.gap || 0};
1120
- align-self: ${(props) => props.alignSelf || "auto"};
1121
- overflow: ${(props) => props.overflow || "visible"};
1122
- overflow-x: ${(props) => props.overflowX || "visible"};
1123
- overflow-y: ${(props) => props.overflowY || "visible"};
1124
- z-index: ${(props) => props.zIndex};
1125
- opacity: ${(props) => props.disabled ? 0.5 : 1};
1126
- pointer-events: ${(props) => props.disabled ? "none" : "auto"};
1127
-
1128
- &:hover {
1129
- ${(props) => props.hoverStyle?.backgroundColor && `background-color: ${props.hoverStyle.backgroundColor};`}
1130
- ${(props) => props.hoverStyle?.borderColor && `border-color: ${props.hoverStyle.borderColor};`}
1131
- }
1132
-
1133
- &:active {
1134
- ${(props) => props.pressStyle?.backgroundColor && `background-color: ${props.pressStyle.backgroundColor};`}
1135
- }
1136
- `;
1137
- var Box2 = React4.forwardRef(
1138
- ({
1139
- children,
1140
- onPress,
1141
- onKeyDown,
1142
- onKeyUp,
1143
- role,
1144
- "aria-label": ariaLabel,
1145
- "aria-labelledby": ariaLabelledBy,
1146
- "aria-current": ariaCurrent,
1147
- "aria-disabled": ariaDisabled,
1148
- "aria-live": ariaLive,
1149
- "aria-busy": ariaBusy,
1150
- "aria-describedby": ariaDescribedBy,
1151
- "aria-expanded": ariaExpanded,
1152
- "aria-haspopup": ariaHasPopup,
1153
- "aria-pressed": ariaPressed,
1154
- "aria-controls": ariaControls,
1155
- tabIndex,
1156
- as,
1157
- src,
1158
- alt,
1159
- type,
1160
- disabled,
1161
- id,
1162
- ...props
1163
- }, ref) => {
1164
- if (as === "img" && src) {
1165
- return /* @__PURE__ */ jsx382(
1166
- "img",
1167
- {
1168
- src,
1169
- alt: alt || "",
1170
- style: {
1171
- display: "block",
1172
- objectFit: "cover",
1173
- width: typeof props.width === "number" ? `${props.width}px` : props.width,
1174
- height: typeof props.height === "number" ? `${props.height}px` : props.height,
1175
- borderRadius: typeof props.borderRadius === "number" ? `${props.borderRadius}px` : props.borderRadius,
1176
- position: props.position,
1177
- top: typeof props.top === "number" ? `${props.top}px` : props.top,
1178
- left: typeof props.left === "number" ? `${props.left}px` : props.left,
1179
- right: typeof props.right === "number" ? `${props.right}px` : props.right,
1180
- bottom: typeof props.bottom === "number" ? `${props.bottom}px` : props.bottom
1181
- }
1182
- }
1183
- );
1184
- }
1185
- return /* @__PURE__ */ jsx382(
1186
- StyledBox,
1187
- {
1188
- ref,
1189
- as,
1190
- id,
1191
- type: as === "button" ? type || "button" : void 0,
1192
- disabled: as === "button" ? disabled : void 0,
1193
- onClick: onPress,
1194
- onKeyDown,
1195
- onKeyUp,
1196
- role,
1197
- "aria-label": ariaLabel,
1198
- "aria-labelledby": ariaLabelledBy,
1199
- "aria-current": ariaCurrent,
1200
- "aria-disabled": ariaDisabled,
1201
- "aria-busy": ariaBusy,
1202
- "aria-describedby": ariaDescribedBy,
1203
- "aria-expanded": ariaExpanded,
1204
- "aria-haspopup": ariaHasPopup,
1205
- "aria-pressed": ariaPressed,
1206
- "aria-controls": ariaControls,
1207
- "aria-live": ariaLive,
1208
- tabIndex: tabIndex !== void 0 ? tabIndex : void 0,
1209
- ...props,
1210
- children
1211
- }
1212
- );
1213
- }
1214
- );
1215
- Box2.displayName = "Box";
1216
- var StyledText = styled22.span`
1217
- color: ${(props) => props.color || "inherit"};
1218
- font-size: ${(props) => typeof props.fontSize === "number" ? `${props.fontSize}px` : props.fontSize || "inherit"};
1219
- font-weight: ${(props) => props.fontWeight || "normal"};
1220
- font-family: ${(props) => props.fontFamily || '"Pilat Wide Bold", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important'};
1221
- line-height: ${(props) => typeof props.lineHeight === "number" ? `${props.lineHeight}px` : props.lineHeight || "inherit"};
1222
- white-space: ${(props) => props.whiteSpace || "normal"};
1223
- text-align: ${(props) => props.textAlign || "inherit"};
1224
- text-decoration: ${(props) => props.textDecoration || "none"};
1225
- `;
1226
- var rotate = keyframes`
1227
- from {
1228
- transform: rotate(0deg);
1229
- }
1230
- to {
1231
- transform: rotate(360deg);
1232
- }
1233
- `;
1234
- var StyledSpinner = styled3.div`
1235
- width: ${(props) => typeof props.size === "number" ? `${props.size}px` : props.size || "24px"};
1236
- height: ${(props) => typeof props.size === "number" ? `${props.size}px` : props.size || "24px"};
1237
- border: ${(props) => props.strokeWidth || 2}px solid
1238
- ${(props) => props.color || "currentColor"};
1239
- border-bottom-color: transparent;
1240
- border-radius: 50%;
1241
- display: inline-block;
1242
- box-sizing: border-box;
1243
- animation: ${rotate} 1s linear infinite;
1244
- `;
1245
- var Spinner2 = ({
1246
- role = "status",
1247
- "aria-label": ariaLabel,
1248
- "aria-live": ariaLive = "polite",
1249
- "aria-describedby": ariaDescribedBy,
1250
- testID,
1251
- ...props
1252
- }) => {
1253
- return /* @__PURE__ */ jsx383(
1254
- StyledSpinner,
1255
- {
1256
- role,
1257
- "aria-label": ariaLabel,
1258
- "aria-live": ariaLive,
1259
- "aria-describedby": ariaDescribedBy,
1260
- "data-testid": testID,
1261
- ...props
1262
- }
1263
- );
1264
- };
1265
- Spinner2.displayName = "Spinner";
1266
- var StyledIcon2 = styled4.div`
778
+ import { jsx as jsx2100 } from "react/jsx-runtime";
779
+ var StyledIcon2 = styled2.div`
1267
780
  display: flex;
1268
781
  align-items: center;
1269
782
  justify-content: center;
@@ -1279,183 +792,13 @@ var StyledIcon2 = styled4.div`
1279
792
  }
1280
793
  `;
1281
794
  var Icon3 = ({ children, ...props }) => {
1282
- return /* @__PURE__ */ jsx410(StyledIcon2, { ...props, children });
795
+ return /* @__PURE__ */ jsx382(StyledIcon2, { ...props, children });
1283
796
  };
1284
- var StyledDivider = styled5.div`
1285
- background-color: ${(props) => props.dashStroke ? "transparent" : props.color || "rgba(255, 255, 255, 0.15)"};
1286
- width: ${(props) => props.vertical ? typeof props.width === "number" ? `${props.width}px` : props.width || "1px" : "100%"};
1287
- height: ${(props) => props.vertical ? "100%" : typeof props.height === "number" ? `${props.height}px` : props.height || "1px"};
1288
-
1289
- ${(props) => props.dashStroke && `
1290
- border-style: dashed;
1291
- border-color: ${props.color || "rgba(255, 255, 255, 0.15)"};
1292
- border-width: 0;
1293
- ${props.vertical ? `
1294
- border-left-width: ${typeof props.width === "number" ? `${props.width}px` : props.width || "1px"};
1295
- height: 100%;
1296
- ` : `
1297
- border-top-width: ${typeof props.height === "number" ? `${props.height}px` : props.height || "1px"};
1298
- width: 100%;
1299
- `}
1300
- `}
1301
- `;
1302
- var StyledInput = styled6.input`
1303
- background: transparent;
1304
- border: none;
1305
- outline: none;
1306
- width: 100%;
1307
- height: 100%;
1308
- padding: 0;
1309
- margin: 0;
1310
- color: ${(props) => props.color || "inherit"};
1311
- font-size: ${(props) => typeof props.fontSize === "number" ? `${props.fontSize}px` : props.fontSize || "inherit"};
1312
- font-family: inherit;
1313
- text-align: inherit;
1314
-
1315
- &::placeholder {
1316
- color: ${(props) => props.placeholderTextColor || "rgba(255, 255, 255, 0.5)"};
1317
- }
1318
-
1319
- &:disabled {
1320
- cursor: not-allowed;
1321
- }
1322
- `;
1323
- var InputPrimitive2 = forwardRef5(
1324
- ({
1325
- value,
1326
- placeholder,
1327
- onChange,
1328
- onChangeText,
1329
- onFocus,
1330
- onBlur,
1331
- onKeyDown,
1332
- disabled,
1333
- secureTextEntry,
1334
- style,
1335
- color,
1336
- fontSize,
1337
- placeholderTextColor,
1338
- maxLength,
1339
- name,
1340
- type,
1341
- inputMode,
1342
- autoComplete,
1343
- id,
1344
- "aria-invalid": ariaInvalid,
1345
- "aria-describedby": ariaDescribedBy,
1346
- "aria-labelledby": ariaLabelledBy,
1347
- "aria-label": ariaLabel,
1348
- "aria-disabled": ariaDisabled,
1349
- "data-testid": dataTestId,
1350
- ...rest
1351
- }, ref) => {
1352
- const handleChange = (e) => {
1353
- if (onChange) {
1354
- onChange(e);
1355
- }
1356
- if (onChangeText) {
1357
- onChangeText(e.target.value);
1358
- }
1359
- };
1360
- const inputValue = value !== void 0 ? value : "";
1361
- return /* @__PURE__ */ jsx610(
1362
- StyledInput,
1363
- {
1364
- ref,
1365
- id,
1366
- value: inputValue,
1367
- name,
1368
- placeholder,
1369
- onChange: handleChange,
1370
- onFocus,
1371
- onBlur,
1372
- onKeyDown,
1373
- disabled,
1374
- type: secureTextEntry ? "password" : type || "text",
1375
- inputMode,
1376
- autoComplete,
1377
- style,
1378
- color,
1379
- fontSize,
1380
- placeholderTextColor,
1381
- maxLength,
1382
- "aria-invalid": ariaInvalid,
1383
- "aria-describedby": ariaDescribedBy,
1384
- "aria-labelledby": ariaLabelledBy,
1385
- "aria-label": ariaLabel,
1386
- "aria-disabled": ariaDisabled,
1387
- "data-testid": dataTestId,
1388
- ...rest
1389
- }
1390
- );
1391
- }
1392
- );
1393
- InputPrimitive2.displayName = "InputPrimitive";
1394
- var StyledTextArea = styled7.textarea`
1395
- background: transparent;
1396
- border: none;
1397
- outline: none;
1398
- width: 100%;
1399
- height: 100%;
1400
- padding: 0;
1401
- margin: 0;
1402
- color: ${(props) => props.color || "inherit"};
1403
- font-size: ${(props) => typeof props.fontSize === "number" ? `${props.fontSize}px` : props.fontSize || "inherit"};
1404
- font-family: inherit;
1405
- text-align: inherit;
1406
- resize: none;
1407
-
1408
- &::placeholder {
1409
- color: ${(props) => props.placeholderTextColor || "rgba(255, 255, 255, 0.5)"};
1410
- }
1411
-
1412
- &:disabled {
1413
- cursor: not-allowed;
1414
- }
1415
- `;
1416
- var TextAreaPrimitive2 = forwardRef22(
1417
- ({
1418
- value,
1419
- placeholder,
1420
- onChangeText,
1421
- onFocus,
1422
- onBlur,
1423
- onKeyDown,
1424
- disabled,
1425
- style,
1426
- color,
1427
- fontSize,
1428
- placeholderTextColor,
1429
- maxLength,
1430
- rows
1431
- }, ref) => {
1432
- return /* @__PURE__ */ jsx710(
1433
- StyledTextArea,
1434
- {
1435
- ref,
1436
- value,
1437
- placeholder,
1438
- onChange: (e) => onChangeText?.(e.target.value),
1439
- onFocus,
1440
- onBlur,
1441
- onKeyDown,
1442
- disabled,
1443
- style,
1444
- color,
1445
- fontSize,
1446
- placeholderTextColor,
1447
- maxLength,
1448
- rows
1449
- }
1450
- );
1451
- }
1452
- );
1453
- TextAreaPrimitive2.displayName = "TextAreaPrimitive";
1454
- var X2 = (props) => /* @__PURE__ */ jsx810(Icon3, { ...props, children: /* @__PURE__ */ jsx810(X, { size: "100%" }) });
797
+ var X2 = (props) => /* @__PURE__ */ jsx2100(Icon3, { ...props, children: /* @__PURE__ */ jsx2100(X, { size: "100%" }) });
1455
798
 
1456
799
  // ../tag/dist/web/index.mjs
1457
- import { jsx as jsx811, jsxs } from "react/jsx-runtime";
1458
- var StyledBox2 = styled8.div`
800
+ import { jsx as jsx410, jsxs } from "react/jsx-runtime";
801
+ var StyledBox = styled3.div`
1459
802
  display: flex;
1460
803
  box-sizing: border-box;
1461
804
  background-color: ${(props) => props.backgroundColor || "transparent"};
@@ -1540,7 +883,7 @@ var StyledBox2 = styled8.div`
1540
883
  ${(props) => props.pressStyle?.backgroundColor && `background-color: ${props.pressStyle.backgroundColor};`}
1541
884
  }
1542
885
  `;
1543
- var Box3 = React5.forwardRef(
886
+ var Box2 = React2.forwardRef(
1544
887
  ({
1545
888
  children,
1546
889
  onPress,
@@ -1568,7 +911,7 @@ var Box3 = React5.forwardRef(
1568
911
  ...props
1569
912
  }, ref) => {
1570
913
  if (as === "img" && src) {
1571
- return /* @__PURE__ */ jsx384(
914
+ return /* @__PURE__ */ jsx383(
1572
915
  "img",
1573
916
  {
1574
917
  src,
@@ -1588,8 +931,8 @@ var Box3 = React5.forwardRef(
1588
931
  }
1589
932
  );
1590
933
  }
1591
- return /* @__PURE__ */ jsx384(
1592
- StyledBox2,
934
+ return /* @__PURE__ */ jsx383(
935
+ StyledBox,
1593
936
  {
1594
937
  ref,
1595
938
  as,
@@ -1618,8 +961,8 @@ var Box3 = React5.forwardRef(
1618
961
  );
1619
962
  }
1620
963
  );
1621
- Box3.displayName = "Box";
1622
- var StyledText2 = styled23.span`
964
+ Box2.displayName = "Box";
965
+ var StyledText = styled22.span`
1623
966
  color: ${(props) => props.color || "inherit"};
1624
967
  font-size: ${(props) => typeof props.fontSize === "number" ? `${props.fontSize}px` : props.fontSize || "inherit"};
1625
968
  font-weight: ${(props) => props.fontWeight || "normal"};
@@ -1637,7 +980,7 @@ var Text2 = ({
1637
980
  ...props
1638
981
  }) => {
1639
982
  return /* @__PURE__ */ jsx2101(
1640
- StyledText2,
983
+ StyledText,
1641
984
  {
1642
985
  ...props,
1643
986
  style,
@@ -1647,47 +990,7 @@ var Text2 = ({
1647
990
  }
1648
991
  );
1649
992
  };
1650
- var rotate2 = keyframes2`
1651
- from {
1652
- transform: rotate(0deg);
1653
- }
1654
- to {
1655
- transform: rotate(360deg);
1656
- }
1657
- `;
1658
- var StyledSpinner2 = styled32.div`
1659
- width: ${(props) => typeof props.size === "number" ? `${props.size}px` : props.size || "24px"};
1660
- height: ${(props) => typeof props.size === "number" ? `${props.size}px` : props.size || "24px"};
1661
- border: ${(props) => props.strokeWidth || 2}px solid
1662
- ${(props) => props.color || "currentColor"};
1663
- border-bottom-color: transparent;
1664
- border-radius: 50%;
1665
- display: inline-block;
1666
- box-sizing: border-box;
1667
- animation: ${rotate2} 1s linear infinite;
1668
- `;
1669
- var Spinner3 = ({
1670
- role = "status",
1671
- "aria-label": ariaLabel,
1672
- "aria-live": ariaLive = "polite",
1673
- "aria-describedby": ariaDescribedBy,
1674
- testID,
1675
- ...props
1676
- }) => {
1677
- return /* @__PURE__ */ jsx385(
1678
- StyledSpinner2,
1679
- {
1680
- role,
1681
- "aria-label": ariaLabel,
1682
- "aria-live": ariaLive,
1683
- "aria-describedby": ariaDescribedBy,
1684
- "data-testid": testID,
1685
- ...props
1686
- }
1687
- );
1688
- };
1689
- Spinner3.displayName = "Spinner";
1690
- var StyledIcon3 = styled42.div`
993
+ var StyledIcon3 = styled32.div`
1691
994
  display: flex;
1692
995
  align-items: center;
1693
996
  justify-content: center;
@@ -1703,178 +1006,8 @@ var StyledIcon3 = styled42.div`
1703
1006
  }
1704
1007
  `;
1705
1008
  var Icon4 = ({ children, ...props }) => {
1706
- return /* @__PURE__ */ jsx411(StyledIcon3, { ...props, children });
1009
+ return /* @__PURE__ */ jsx384(StyledIcon3, { ...props, children });
1707
1010
  };
1708
- var StyledDivider2 = styled52.div`
1709
- background-color: ${(props) => props.dashStroke ? "transparent" : props.color || "rgba(255, 255, 255, 0.15)"};
1710
- width: ${(props) => props.vertical ? typeof props.width === "number" ? `${props.width}px` : props.width || "1px" : "100%"};
1711
- height: ${(props) => props.vertical ? "100%" : typeof props.height === "number" ? `${props.height}px` : props.height || "1px"};
1712
-
1713
- ${(props) => props.dashStroke && `
1714
- border-style: dashed;
1715
- border-color: ${props.color || "rgba(255, 255, 255, 0.15)"};
1716
- border-width: 0;
1717
- ${props.vertical ? `
1718
- border-left-width: ${typeof props.width === "number" ? `${props.width}px` : props.width || "1px"};
1719
- height: 100%;
1720
- ` : `
1721
- border-top-width: ${typeof props.height === "number" ? `${props.height}px` : props.height || "1px"};
1722
- width: 100%;
1723
- `}
1724
- `}
1725
- `;
1726
- var StyledInput2 = styled62.input`
1727
- background: transparent;
1728
- border: none;
1729
- outline: none;
1730
- width: 100%;
1731
- height: 100%;
1732
- padding: 0;
1733
- margin: 0;
1734
- color: ${(props) => props.color || "inherit"};
1735
- font-size: ${(props) => typeof props.fontSize === "number" ? `${props.fontSize}px` : props.fontSize || "inherit"};
1736
- font-family: inherit;
1737
- text-align: inherit;
1738
-
1739
- &::placeholder {
1740
- color: ${(props) => props.placeholderTextColor || "rgba(255, 255, 255, 0.5)"};
1741
- }
1742
-
1743
- &:disabled {
1744
- cursor: not-allowed;
1745
- }
1746
- `;
1747
- var InputPrimitive3 = forwardRef6(
1748
- ({
1749
- value,
1750
- placeholder,
1751
- onChange,
1752
- onChangeText,
1753
- onFocus,
1754
- onBlur,
1755
- onKeyDown,
1756
- disabled,
1757
- secureTextEntry,
1758
- style,
1759
- color,
1760
- fontSize,
1761
- placeholderTextColor,
1762
- maxLength,
1763
- name,
1764
- type,
1765
- inputMode,
1766
- autoComplete,
1767
- id,
1768
- "aria-invalid": ariaInvalid,
1769
- "aria-describedby": ariaDescribedBy,
1770
- "aria-labelledby": ariaLabelledBy,
1771
- "aria-label": ariaLabel,
1772
- "aria-disabled": ariaDisabled,
1773
- "data-testid": dataTestId,
1774
- ...rest
1775
- }, ref) => {
1776
- const handleChange = (e) => {
1777
- if (onChange) {
1778
- onChange(e);
1779
- }
1780
- if (onChangeText) {
1781
- onChangeText(e.target.value);
1782
- }
1783
- };
1784
- const inputValue = value !== void 0 ? value : "";
1785
- return /* @__PURE__ */ jsx611(
1786
- StyledInput2,
1787
- {
1788
- ref,
1789
- id,
1790
- value: inputValue,
1791
- name,
1792
- placeholder,
1793
- onChange: handleChange,
1794
- onFocus,
1795
- onBlur,
1796
- onKeyDown,
1797
- disabled,
1798
- type: secureTextEntry ? "password" : type || "text",
1799
- inputMode,
1800
- autoComplete,
1801
- style,
1802
- color,
1803
- fontSize,
1804
- placeholderTextColor,
1805
- maxLength,
1806
- "aria-invalid": ariaInvalid,
1807
- "aria-describedby": ariaDescribedBy,
1808
- "aria-labelledby": ariaLabelledBy,
1809
- "aria-label": ariaLabel,
1810
- "aria-disabled": ariaDisabled,
1811
- "data-testid": dataTestId,
1812
- ...rest
1813
- }
1814
- );
1815
- }
1816
- );
1817
- InputPrimitive3.displayName = "InputPrimitive";
1818
- var StyledTextArea2 = styled72.textarea`
1819
- background: transparent;
1820
- border: none;
1821
- outline: none;
1822
- width: 100%;
1823
- height: 100%;
1824
- padding: 0;
1825
- margin: 0;
1826
- color: ${(props) => props.color || "inherit"};
1827
- font-size: ${(props) => typeof props.fontSize === "number" ? `${props.fontSize}px` : props.fontSize || "inherit"};
1828
- font-family: inherit;
1829
- text-align: inherit;
1830
- resize: none;
1831
-
1832
- &::placeholder {
1833
- color: ${(props) => props.placeholderTextColor || "rgba(255, 255, 255, 0.5)"};
1834
- }
1835
-
1836
- &:disabled {
1837
- cursor: not-allowed;
1838
- }
1839
- `;
1840
- var TextAreaPrimitive3 = forwardRef23(
1841
- ({
1842
- value,
1843
- placeholder,
1844
- onChangeText,
1845
- onFocus,
1846
- onBlur,
1847
- onKeyDown,
1848
- disabled,
1849
- style,
1850
- color,
1851
- fontSize,
1852
- placeholderTextColor,
1853
- maxLength,
1854
- rows
1855
- }, ref) => {
1856
- return /* @__PURE__ */ jsx711(
1857
- StyledTextArea2,
1858
- {
1859
- ref,
1860
- value,
1861
- placeholder,
1862
- onChange: (e) => onChangeText?.(e.target.value),
1863
- onFocus,
1864
- onBlur,
1865
- onKeyDown,
1866
- disabled,
1867
- style,
1868
- color,
1869
- fontSize,
1870
- placeholderTextColor,
1871
- maxLength,
1872
- rows
1873
- }
1874
- );
1875
- }
1876
- );
1877
- TextAreaPrimitive3.displayName = "TextAreaPrimitive";
1878
1011
  var Tag = ({
1879
1012
  size = "md",
1880
1013
  tone = "primary",
@@ -1935,7 +1068,7 @@ var Tag = ({
1935
1068
  };
1936
1069
  const { bg, text } = resolveColors();
1937
1070
  return /* @__PURE__ */ jsxs(
1938
- Box3,
1071
+ Box2,
1939
1072
  {
1940
1073
  backgroundColor: bg,
1941
1074
  borderRadius: sizeStyles.radius,
@@ -1951,8 +1084,8 @@ var Tag = ({
1951
1084
  whiteSpace: "nowrap"
1952
1085
  },
1953
1086
  children: [
1954
- icon && /* @__PURE__ */ jsx811(Icon4, { size: sizeStyles.iconSize, color: text, children: icon }),
1955
- /* @__PURE__ */ jsx811(
1087
+ icon && /* @__PURE__ */ jsx410(Icon4, { size: sizeStyles.iconSize, color: text, children: icon }),
1088
+ /* @__PURE__ */ jsx410(
1956
1089
  Text2,
1957
1090
  {
1958
1091
  color: text,
@@ -1966,7 +1099,7 @@ var Tag = ({
1966
1099
  children
1967
1100
  }
1968
1101
  ),
1969
- onRemove && /* @__PURE__ */ jsx811(Box3, { onPress: onRemove, children: /* @__PURE__ */ jsx811(X2, { size: sizeStyles.iconSize, color: text }) })
1102
+ onRemove && /* @__PURE__ */ jsx410(Box2, { onPress: onRemove, children: /* @__PURE__ */ jsx410(X2, { size: sizeStyles.iconSize, color: text }) })
1970
1103
  ]
1971
1104
  }
1972
1105
  );
@@ -1974,7 +1107,7 @@ var Tag = ({
1974
1107
 
1975
1108
  // src/useMultiSelectControl.tsx
1976
1109
  import { useDesignSystem as useDesignSystem2 } from "@xsolla/xui-core";
1977
- import { jsx as jsx386, jsxs as jsxs2 } from "react/jsx-runtime";
1110
+ import { jsx as jsx385, jsxs as jsxs2 } from "react/jsx-runtime";
1978
1111
  var COUNT_ITEM_VALUE = "count-item";
1979
1112
  var useMultiSelectControl = ({
1980
1113
  variant,
@@ -2034,7 +1167,7 @@ var useMultiSelectControl = ({
2034
1167
  };
2035
1168
  const setPlaceholder = () => {
2036
1169
  setSelectedContent(
2037
- /* @__PURE__ */ jsx386(
1170
+ /* @__PURE__ */ jsx385(
2038
1171
  Text,
2039
1172
  {
2040
1173
  color: theme.colors.control.input.placeholder,
@@ -2085,7 +1218,7 @@ var useMultiSelectControl = ({
2085
1218
  const isCount = item.value === COUNT_ITEM_VALUE;
2086
1219
  const isReducable = index === 0 && displayStateRef.current === 3 /* Render */ && displayedItemsCount === 0 || flexible;
2087
1220
  if (variant === "tag") {
2088
- return /* @__PURE__ */ jsx386(
1221
+ return /* @__PURE__ */ jsx385(
2089
1222
  Box,
2090
1223
  {
2091
1224
  onPress: !isCount ? (e) => {
@@ -2097,7 +1230,7 @@ var useMultiSelectControl = ({
2097
1230
  opacity: disabled ? 0.5 : 1,
2098
1231
  cursor: disabled || isCount ? "not-allowed" : "pointer"
2099
1232
  },
2100
- children: /* @__PURE__ */ jsx386(
1233
+ children: /* @__PURE__ */ jsx385(
2101
1234
  Tag,
2102
1235
  {
2103
1236
  size,
@@ -2217,8 +1350,8 @@ var useMultiSelectControl = ({
2217
1350
  };
2218
1351
 
2219
1352
  // src/MultiSelectControl.tsx
2220
- import { jsx as jsx387, jsxs as jsxs3 } from "react/jsx-runtime";
2221
- var MultiSelectControl = forwardRef7(
1353
+ import { jsx as jsx386, jsxs as jsxs3 } from "react/jsx-runtime";
1354
+ var MultiSelectControl = forwardRef3(
2222
1355
  ({
2223
1356
  variant = "tag",
2224
1357
  flexible = true,
@@ -2318,8 +1451,8 @@ var MultiSelectControl = forwardRef7(
2318
1451
  gap: 8,
2319
1452
  style: { minWidth: 0 },
2320
1453
  children: [
2321
- iconLeft && /* @__PURE__ */ jsx387(Icon, { size: sizeStyles.iconSize, color: iconColor, variant: "line", children: iconLeft }),
2322
- /* @__PURE__ */ jsx387(
1454
+ iconLeft && /* @__PURE__ */ jsx386(Icon, { size: sizeStyles.iconSize, color: iconColor, variant: "line", children: iconLeft }),
1455
+ /* @__PURE__ */ jsx386(
2323
1456
  Box,
2324
1457
  {
2325
1458
  ref: itemsRef,
@@ -2339,7 +1472,7 @@ var MultiSelectControl = forwardRef7(
2339
1472
  }
2340
1473
  ),
2341
1474
  /* @__PURE__ */ jsxs3(Box, { flexDirection: "row", alignItems: "center", gap: 4, children: [
2342
- extraClear && selectedItems.length > 0 && !isDisable && /* @__PURE__ */ jsx387(
1475
+ extraClear && selectedItems.length > 0 && !isDisable && /* @__PURE__ */ jsx386(
2343
1476
  Box,
2344
1477
  {
2345
1478
  onPress: (e) => {
@@ -2347,17 +1480,17 @@ var MultiSelectControl = forwardRef7(
2347
1480
  removeAllValues();
2348
1481
  },
2349
1482
  style: { cursor: "pointer" },
2350
- children: /* @__PURE__ */ jsx387(Remove, { size: 18, color: iconColor, variant: "line" })
1483
+ children: /* @__PURE__ */ jsx386(Remove, { size: 18, color: iconColor, variant: "line" })
2351
1484
  }
2352
1485
  ),
2353
- isError && /* @__PURE__ */ jsx387(
1486
+ isError && /* @__PURE__ */ jsx386(
2354
1487
  ExclamationMarkCr,
2355
1488
  {
2356
1489
  size: 18,
2357
1490
  color: theme.colors.content.alert.primary
2358
1491
  }
2359
1492
  ),
2360
- iconRight ? iconRight : isOpen ? /* @__PURE__ */ jsx387(ChevronUp, { size: 18, color: iconColor, variant: "line" }) : /* @__PURE__ */ jsx387(ChevronDown, { size: 18, color: iconColor })
1493
+ iconRight ? iconRight : isOpen ? /* @__PURE__ */ jsx386(ChevronUp, { size: 18, color: iconColor, variant: "line" }) : /* @__PURE__ */ jsx386(ChevronDown, { size: 18, color: iconColor })
2361
1494
  ] })
2362
1495
  ]
2363
1496
  }
@@ -2458,8 +1591,8 @@ var useMultiSelect = ({
2458
1591
  };
2459
1592
 
2460
1593
  // src/MultiSelect.tsx
2461
- import { Fragment, jsx as jsx388, jsxs as jsxs4 } from "react/jsx-runtime";
2462
- var MultiSelect = forwardRef8(
1594
+ import { Fragment, jsx as jsx387, jsxs as jsxs4 } from "react/jsx-runtime";
1595
+ var MultiSelect = forwardRef4(
2463
1596
  ({
2464
1597
  options,
2465
1598
  errorMessage,
@@ -2523,7 +1656,7 @@ var MultiSelect = forwardRef8(
2523
1656
  onChoose(newValues.map(String));
2524
1657
  };
2525
1658
  return /* @__PURE__ */ jsxs4(Box, { flexDirection: "column", gap: sizeStyles.fieldGap, children: [
2526
- label && /* @__PURE__ */ jsx388(
1659
+ label && /* @__PURE__ */ jsx387(
2527
1660
  Text,
2528
1661
  {
2529
1662
  color: theme.colors.content.secondary,
@@ -2540,7 +1673,7 @@ var MultiSelect = forwardRef8(
2540
1673
  position: "relative"
2541
1674
  },
2542
1675
  children: [
2543
- /* @__PURE__ */ jsx388(
1676
+ /* @__PURE__ */ jsx387(
2544
1677
  MultiSelectControl,
2545
1678
  {
2546
1679
  ref: controlRef,
@@ -2565,7 +1698,7 @@ var MultiSelect = forwardRef8(
2565
1698
  }
2566
1699
  ),
2567
1700
  isOpen && !isDisable && /* @__PURE__ */ jsxs4(Fragment, { children: [
2568
- /* @__PURE__ */ jsx388(
1701
+ /* @__PURE__ */ jsx387(
2569
1702
  Box,
2570
1703
  {
2571
1704
  style: {
@@ -2580,7 +1713,7 @@ var MultiSelect = forwardRef8(
2580
1713
  onPress: onClose
2581
1714
  }
2582
1715
  ),
2583
- /* @__PURE__ */ jsx388(
1716
+ /* @__PURE__ */ jsx387(
2584
1717
  Box,
2585
1718
  {
2586
1719
  ref: menuRef,
@@ -2604,7 +1737,7 @@ var MultiSelect = forwardRef8(
2604
1737
  children: menuItems.map((item, _index) => {
2605
1738
  const brandColors = theme.colors.control.brand.primary;
2606
1739
  const contentColors = theme.colors.content;
2607
- return /* @__PURE__ */ jsx388(
1740
+ return /* @__PURE__ */ jsx387(
2608
1741
  Box,
2609
1742
  {
2610
1743
  paddingHorizontal: sizeStyles.paddingHorizontal,
@@ -2625,7 +1758,7 @@ var MultiSelect = forwardRef8(
2625
1758
  cursor: item.disabled ? "not-allowed" : "pointer",
2626
1759
  opacity: item.disabled ? 0.5 : 1
2627
1760
  },
2628
- children: /* @__PURE__ */ jsx388(
1761
+ children: /* @__PURE__ */ jsx387(
2629
1762
  Text,
2630
1763
  {
2631
1764
  color: item.checked ? contentColors.on.brand : theme.colors.content.secondary,
@@ -2644,7 +1777,7 @@ var MultiSelect = forwardRef8(
2644
1777
  ]
2645
1778
  }
2646
1779
  ),
2647
- errorMessage && /* @__PURE__ */ jsx388(
1780
+ errorMessage && /* @__PURE__ */ jsx387(
2648
1781
  Text,
2649
1782
  {
2650
1783
  color: theme.colors.content.alert.primary,