@xsolla/xui-multi-select 0.78.0 → 0.79.0-pr119.1769781556

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.
@@ -1,4 +1,5 @@
1
- import React, { ReactNode } from 'react';
1
+ import * as react from 'react';
2
+ import { ReactNode } from 'react';
2
3
 
3
4
  type MultiSelectValue = (string | number)[];
4
5
  type MultiSelectVariant = "tag" | "text";
@@ -83,6 +84,6 @@ interface MultiSelectProps {
83
84
  maxHeight?: number;
84
85
  }
85
86
 
86
- declare const MultiSelect: React.ForwardRefExoticComponent<MultiSelectProps & React.RefAttributes<HTMLDivElement>>;
87
+ declare const MultiSelect: react.ForwardRefExoticComponent<MultiSelectProps & react.RefAttributes<HTMLDivElement>>;
87
88
 
88
89
  export { MultiSelect, type MultiSelectOption, type MultiSelectProps, type MultiSelectSize, type MultiSelectState, type MultiSelectValue, type MultiSelectVariant };
package/native/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
- import React, { ReactNode } from 'react';
1
+ import * as react from 'react';
2
+ import { ReactNode } from 'react';
2
3
 
3
4
  type MultiSelectValue = (string | number)[];
4
5
  type MultiSelectVariant = "tag" | "text";
@@ -83,6 +84,6 @@ interface MultiSelectProps {
83
84
  maxHeight?: number;
84
85
  }
85
86
 
86
- declare const MultiSelect: React.ForwardRefExoticComponent<MultiSelectProps & React.RefAttributes<HTMLDivElement>>;
87
+ declare const MultiSelect: react.ForwardRefExoticComponent<MultiSelectProps & react.RefAttributes<HTMLDivElement>>;
87
88
 
88
89
  export { MultiSelect, type MultiSelectOption, type MultiSelectProps, type MultiSelectSize, type MultiSelectState, type MultiSelectValue, type MultiSelectVariant };
package/native/index.js CHANGED
@@ -247,7 +247,6 @@ var Spinner = ({
247
247
  role,
248
248
  "aria-label": ariaLabel,
249
249
  "aria-live": ariaLive,
250
- "aria-describedby": ariaDescribedBy,
251
250
  testID
252
251
  }) => {
253
252
  return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
@@ -346,14 +345,11 @@ var InputPrimitive = (0, import_react2.forwardRef)(
346
345
  fontSize,
347
346
  placeholderTextColor,
348
347
  maxLength,
349
- name,
350
348
  type,
351
349
  inputMode,
352
350
  autoComplete,
353
351
  id,
354
- "aria-invalid": ariaInvalid,
355
352
  "aria-describedby": ariaDescribedBy,
356
- "aria-labelledby": ariaLabelledBy,
357
353
  "aria-label": ariaLabel,
358
354
  "aria-disabled": ariaDisabled,
359
355
  "data-testid": dataTestId
@@ -445,9 +441,7 @@ var TextAreaPrimitive = (0, import_react3.forwardRef)(
445
441
  maxLength,
446
442
  rows,
447
443
  id,
448
- "aria-invalid": ariaInvalid,
449
444
  "aria-describedby": ariaDescribedBy,
450
- "aria-labelledby": ariaLabelledBy,
451
445
  "aria-label": ariaLabel,
452
446
  "aria-disabled": ariaDisabled,
453
447
  "data-testid": dataTestId
@@ -910,8 +904,8 @@ var StyledIcon = import_styled_components.default.div`
910
904
  display: inline-flex;
911
905
  align-items: center;
912
906
  justify-content: center;
913
- width: ${(props) => props.$size}px;
914
- height: ${(props) => props.$size}px;
907
+ width: ${(props) => props.$size};
908
+ height: ${(props) => props.$size};
915
909
  color: ${(props) => props.$color};
916
910
 
917
911
  svg {
@@ -932,10 +926,11 @@ var BaseIcon = ({
932
926
  "aria-hidden": ariaHidden
933
927
  }) => {
934
928
  const svgContent = variant === "line" ? lineContent381 : solidContent381;
929
+ const sizeValue = typeof size === "number" ? `${size}px` : size;
935
930
  return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
936
931
  StyledIcon,
937
932
  {
938
- $size: size,
933
+ $size: sizeValue,
939
934
  $color: color,
940
935
  className,
941
936
  style,
@@ -1483,7 +1478,7 @@ var TextAreaPrimitive2 = (0, import_react8.forwardRef)(
1483
1478
  }
1484
1479
  );
1485
1480
  TextAreaPrimitive2.displayName = "TextAreaPrimitive";
1486
- var X2 = (props) => /* @__PURE__ */ (0, import_jsx_runtime396.jsx)(Icon3, { ...props, children: /* @__PURE__ */ (0, import_jsx_runtime396.jsx)(X, {}) });
1481
+ var X2 = (props) => /* @__PURE__ */ (0, import_jsx_runtime396.jsx)(Icon3, { ...props, children: /* @__PURE__ */ (0, import_jsx_runtime396.jsx)(X, { size: "100%" }) });
1487
1482
 
1488
1483
  // ../tag/dist/web/index.mjs
1489
1484
  var import_jsx_runtime404 = require("react/jsx-runtime");
@@ -2633,7 +2628,7 @@ var MultiSelect = (0, import_react15.forwardRef)(
2633
2628
  maxHeight,
2634
2629
  overflowY: "auto"
2635
2630
  },
2636
- children: menuItems.map((item, index) => {
2631
+ children: menuItems.map((item, _index) => {
2637
2632
  const brandColors = theme.colors.control.brand.primary;
2638
2633
  const contentColors = theme.colors.content;
2639
2634
  return /* @__PURE__ */ (0, import_jsx_runtime407.jsx)(
@@ -5,7 +5,8 @@
5
5
  * @flow
6
6
  */
7
7
 
8
- import React, { Node } from "react";
8
+ import * as react from "react";
9
+ import { Node } from "react";
9
10
  declare type MultiSelectValue = (string | number)[];
10
11
  declare type MultiSelectVariant = "tag" | "text";
11
12
  declare type MultiSelectSize = "xs" | "sm" | "md" | "lg" | "xl";
@@ -108,9 +109,9 @@ declare interface MultiSelectProps {
108
109
  */
109
110
  maxHeight?: number;
110
111
  }
111
- declare var MultiSelect: React.ForwardRefExoticComponent<{
112
+ declare var MultiSelect: react.ForwardRefExoticComponent<{
112
113
  ...MultiSelectProps,
113
- ...React.RefAttributes<HTMLDivElement>,
114
+ ...react.RefAttributes<HTMLDivElement>,
114
115
  }>;
115
116
  export type {
116
117
  MultiSelectOption,