@xsolla/xui-context-menu 0.78.0 → 0.79.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.d.mts +15 -14
- package/native/index.d.ts +15 -14
- package/native/index.js +0 -7
- package/native/index.js.flow +26 -25
- package/native/index.js.map +1 -1
- package/native/index.mjs +4 -11
- package/native/index.mjs.map +1 -1
- package/package.json +8 -8
- package/web/index.d.mts +15 -14
- package/web/index.d.ts +15 -14
- package/web/index.js +0 -1
- package/web/index.js.flow +26 -25
- package/web/index.js.map +1 -1
- package/web/index.mjs +4 -5
- package/web/index.mjs.map +1 -1
package/native/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// src/ContextMenu.tsx
|
|
2
|
-
import
|
|
2
|
+
import React8, {
|
|
3
3
|
forwardRef as forwardRef9,
|
|
4
4
|
useState,
|
|
5
5
|
useRef as useRef5,
|
|
@@ -222,7 +222,6 @@ var Spinner = ({
|
|
|
222
222
|
role,
|
|
223
223
|
"aria-label": ariaLabel,
|
|
224
224
|
"aria-live": ariaLive,
|
|
225
|
-
"aria-describedby": ariaDescribedBy,
|
|
226
225
|
testID
|
|
227
226
|
}) => {
|
|
228
227
|
return /* @__PURE__ */ jsx3(
|
|
@@ -321,14 +320,11 @@ var InputPrimitive = forwardRef(
|
|
|
321
320
|
fontSize,
|
|
322
321
|
placeholderTextColor,
|
|
323
322
|
maxLength,
|
|
324
|
-
name,
|
|
325
323
|
type,
|
|
326
324
|
inputMode,
|
|
327
325
|
autoComplete,
|
|
328
326
|
id,
|
|
329
|
-
"aria-invalid": ariaInvalid,
|
|
330
327
|
"aria-describedby": ariaDescribedBy,
|
|
331
|
-
"aria-labelledby": ariaLabelledBy,
|
|
332
328
|
"aria-label": ariaLabel,
|
|
333
329
|
"aria-disabled": ariaDisabled,
|
|
334
330
|
"data-testid": dataTestId
|
|
@@ -420,9 +416,7 @@ var TextAreaPrimitive = forwardRef2(
|
|
|
420
416
|
maxLength,
|
|
421
417
|
rows,
|
|
422
418
|
id,
|
|
423
|
-
"aria-invalid": ariaInvalid,
|
|
424
419
|
"aria-describedby": ariaDescribedBy,
|
|
425
|
-
"aria-labelledby": ariaLabelledBy,
|
|
426
420
|
"aria-label": ariaLabel,
|
|
427
421
|
"aria-disabled": ariaDisabled,
|
|
428
422
|
"data-testid": dataTestId
|
|
@@ -769,7 +763,6 @@ var ContextMenuCheckboxItem = forwardRef4(
|
|
|
769
763
|
const size = propSize || context?.size || "md";
|
|
770
764
|
const sizeStyles = theme.sizing.contextMenu(size);
|
|
771
765
|
const itemRef = useRef2(null);
|
|
772
|
-
const contentColors = theme.colors.content;
|
|
773
766
|
useEffect2(() => {
|
|
774
767
|
if (context && !disabled) {
|
|
775
768
|
const id = typeof children === "string" ? children : String(Math.random());
|
|
@@ -1155,7 +1148,7 @@ var ContextMenuSeparator = ({
|
|
|
1155
1148
|
ContextMenuSeparator.displayName = "ContextMenuSeparator";
|
|
1156
1149
|
|
|
1157
1150
|
// src/ContextMenuSearch.tsx
|
|
1158
|
-
import
|
|
1151
|
+
import React7, { forwardRef as forwardRef8, useRef as useRef4, useEffect as useEffect4 } from "react";
|
|
1159
1152
|
import { useDesignSystem as useDesignSystem6 } from "@xsolla/xui-core";
|
|
1160
1153
|
|
|
1161
1154
|
// ../icons-base/dist/web/index.mjs
|
|
@@ -1605,7 +1598,7 @@ var ContextMenuSearch = forwardRef8(
|
|
|
1605
1598
|
const sizeStyles = theme.sizing.contextMenu(size);
|
|
1606
1599
|
const inputRef = useRef4(null);
|
|
1607
1600
|
const inputColors = theme.colors.control.input;
|
|
1608
|
-
|
|
1601
|
+
React7.useImperativeHandle(
|
|
1609
1602
|
ref,
|
|
1610
1603
|
() => inputRef.current,
|
|
1611
1604
|
[]
|
|
@@ -1894,7 +1887,7 @@ var ContextMenuRoot = forwardRef9(
|
|
|
1894
1887
|
});
|
|
1895
1888
|
};
|
|
1896
1889
|
const renderGroups = (groupsData) => {
|
|
1897
|
-
return groupsData.map((group, groupIndex) => /* @__PURE__ */ jsxs6(
|
|
1890
|
+
return groupsData.map((group, groupIndex) => /* @__PURE__ */ jsxs6(React8.Fragment, { children: [
|
|
1898
1891
|
groupIndex > 0 && /* @__PURE__ */ jsx383(ContextMenuSeparator, {}),
|
|
1899
1892
|
/* @__PURE__ */ jsx383(
|
|
1900
1893
|
ContextMenuGroup,
|