@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/web/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// src/ContextMenu.tsx
|
|
2
|
-
import
|
|
2
|
+
import React7, {
|
|
3
3
|
forwardRef as forwardRef9,
|
|
4
4
|
useState,
|
|
5
5
|
useRef as useRef5,
|
|
@@ -737,7 +737,6 @@ var ContextMenuCheckboxItem = forwardRef4(
|
|
|
737
737
|
const size = propSize || context?.size || "md";
|
|
738
738
|
const sizeStyles = theme.sizing.contextMenu(size);
|
|
739
739
|
const itemRef = useRef2(null);
|
|
740
|
-
const contentColors = theme.colors.content;
|
|
741
740
|
useEffect2(() => {
|
|
742
741
|
if (context && !disabled) {
|
|
743
742
|
const id = typeof children === "string" ? children : String(Math.random());
|
|
@@ -1123,7 +1122,7 @@ var ContextMenuSeparator = ({
|
|
|
1123
1122
|
ContextMenuSeparator.displayName = "ContextMenuSeparator";
|
|
1124
1123
|
|
|
1125
1124
|
// src/ContextMenuSearch.tsx
|
|
1126
|
-
import
|
|
1125
|
+
import React6, { forwardRef as forwardRef8, useRef as useRef4, useEffect as useEffect4 } from "react";
|
|
1127
1126
|
import { useDesignSystem as useDesignSystem6 } from "@xsolla/xui-core";
|
|
1128
1127
|
|
|
1129
1128
|
// ../icons-base/dist/web/index.mjs
|
|
@@ -1573,7 +1572,7 @@ var ContextMenuSearch = forwardRef8(
|
|
|
1573
1572
|
const sizeStyles = theme.sizing.contextMenu(size);
|
|
1574
1573
|
const inputRef = useRef4(null);
|
|
1575
1574
|
const inputColors = theme.colors.control.input;
|
|
1576
|
-
|
|
1575
|
+
React6.useImperativeHandle(
|
|
1577
1576
|
ref,
|
|
1578
1577
|
() => inputRef.current,
|
|
1579
1578
|
[]
|
|
@@ -1862,7 +1861,7 @@ var ContextMenuRoot = forwardRef9(
|
|
|
1862
1861
|
});
|
|
1863
1862
|
};
|
|
1864
1863
|
const renderGroups = (groupsData) => {
|
|
1865
|
-
return groupsData.map((group, groupIndex) => /* @__PURE__ */ jsxs6(
|
|
1864
|
+
return groupsData.map((group, groupIndex) => /* @__PURE__ */ jsxs6(React7.Fragment, { children: [
|
|
1866
1865
|
groupIndex > 0 && /* @__PURE__ */ jsx383(ContextMenuSeparator, {}),
|
|
1867
1866
|
/* @__PURE__ */ jsx383(
|
|
1868
1867
|
ContextMenuGroup,
|