@xsolla/xui-context-menu 0.73.0 → 0.74.0-pr118.1769741504
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 +16 -15
- package/native/index.d.ts +16 -15
- package/native/index.js +0 -1
- package/native/index.js.map +1 -1
- package/native/index.mjs +4 -5
- package/native/index.mjs.map +1 -1
- package/package.json +11 -10
- package/web/index.d.mts +16 -15
- package/web/index.d.ts +16 -15
- package/web/index.js +0 -1
- package/web/index.js.map +1 -1
- package/web/index.mjs +4 -5
- package/web/index.mjs.map +1 -1
package/native/index.d.mts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import React$1
|
|
1
|
+
import * as React$1 from 'react';
|
|
2
|
+
import React__default, { ReactNode, RefObject } from 'react';
|
|
2
3
|
|
|
3
4
|
/** Size variants for the context menu */
|
|
4
5
|
type ContextMenuSize = "sm" | "md" | "lg" | "xl";
|
|
@@ -211,34 +212,34 @@ interface ContextMenuSizing {
|
|
|
211
212
|
minWidth: number;
|
|
212
213
|
}
|
|
213
214
|
|
|
214
|
-
declare const ContextMenu:
|
|
215
|
-
Item:
|
|
216
|
-
CheckboxItem:
|
|
217
|
-
RadioGroup:
|
|
218
|
-
RadioItem:
|
|
219
|
-
Group:
|
|
220
|
-
Separator:
|
|
221
|
-
Search:
|
|
215
|
+
declare const ContextMenu: React__default.ForwardRefExoticComponent<ContextMenuProps & React__default.RefAttributes<any>> & {
|
|
216
|
+
Item: React__default.ForwardRefExoticComponent<ContextMenuItemProps & React__default.RefAttributes<any>>;
|
|
217
|
+
CheckboxItem: React__default.ForwardRefExoticComponent<ContextMenuCheckboxItemProps & React__default.RefAttributes<any>>;
|
|
218
|
+
RadioGroup: React__default.ForwardRefExoticComponent<ContextMenuRadioGroupProps & React__default.RefAttributes<any>>;
|
|
219
|
+
RadioItem: React__default.ForwardRefExoticComponent<ContextMenuRadioItemProps & React__default.RefAttributes<any>>;
|
|
220
|
+
Group: React__default.ForwardRefExoticComponent<ContextMenuGroupProps & React__default.RefAttributes<any>>;
|
|
221
|
+
Separator: React__default.FC<ContextMenuSeparatorProps>;
|
|
222
|
+
Search: React__default.ForwardRefExoticComponent<ContextMenuSearchProps & React__default.RefAttributes<HTMLInputElement>>;
|
|
222
223
|
};
|
|
223
224
|
|
|
224
|
-
declare const ContextMenuItem:
|
|
225
|
+
declare const ContextMenuItem: React__default.ForwardRefExoticComponent<ContextMenuItemProps & React__default.RefAttributes<any>>;
|
|
225
226
|
|
|
226
|
-
declare const ContextMenuCheckboxItem:
|
|
227
|
+
declare const ContextMenuCheckboxItem: React__default.ForwardRefExoticComponent<ContextMenuCheckboxItemProps & React__default.RefAttributes<any>>;
|
|
227
228
|
|
|
228
229
|
interface RadioGroupContextValue {
|
|
229
230
|
value: string;
|
|
230
231
|
onValueChange: (value: string) => void;
|
|
231
232
|
}
|
|
232
233
|
declare const useRadioGroup: () => RadioGroupContextValue | null;
|
|
233
|
-
declare const ContextMenuRadioGroup:
|
|
234
|
+
declare const ContextMenuRadioGroup: React__default.ForwardRefExoticComponent<ContextMenuRadioGroupProps & React__default.RefAttributes<any>>;
|
|
234
235
|
|
|
235
|
-
declare const ContextMenuRadioItem:
|
|
236
|
+
declare const ContextMenuRadioItem: React__default.ForwardRefExoticComponent<ContextMenuRadioItemProps & React__default.RefAttributes<any>>;
|
|
236
237
|
|
|
237
238
|
declare const ContextMenuGroup: React$1.ForwardRefExoticComponent<ContextMenuGroupProps & React$1.RefAttributes<any>>;
|
|
238
239
|
|
|
239
|
-
declare const ContextMenuSeparator:
|
|
240
|
+
declare const ContextMenuSeparator: React__default.FC<ContextMenuSeparatorProps>;
|
|
240
241
|
|
|
241
|
-
declare const ContextMenuSearch:
|
|
242
|
+
declare const ContextMenuSearch: React__default.ForwardRefExoticComponent<ContextMenuSearchProps & React__default.RefAttributes<HTMLInputElement>>;
|
|
242
243
|
|
|
243
244
|
declare const useContextMenu: () => ContextMenuContextValue | undefined;
|
|
244
245
|
declare const useContextMenuRequired: () => ContextMenuContextValue;
|
package/native/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import React$1
|
|
1
|
+
import * as React$1 from 'react';
|
|
2
|
+
import React__default, { ReactNode, RefObject } from 'react';
|
|
2
3
|
|
|
3
4
|
/** Size variants for the context menu */
|
|
4
5
|
type ContextMenuSize = "sm" | "md" | "lg" | "xl";
|
|
@@ -211,34 +212,34 @@ interface ContextMenuSizing {
|
|
|
211
212
|
minWidth: number;
|
|
212
213
|
}
|
|
213
214
|
|
|
214
|
-
declare const ContextMenu:
|
|
215
|
-
Item:
|
|
216
|
-
CheckboxItem:
|
|
217
|
-
RadioGroup:
|
|
218
|
-
RadioItem:
|
|
219
|
-
Group:
|
|
220
|
-
Separator:
|
|
221
|
-
Search:
|
|
215
|
+
declare const ContextMenu: React__default.ForwardRefExoticComponent<ContextMenuProps & React__default.RefAttributes<any>> & {
|
|
216
|
+
Item: React__default.ForwardRefExoticComponent<ContextMenuItemProps & React__default.RefAttributes<any>>;
|
|
217
|
+
CheckboxItem: React__default.ForwardRefExoticComponent<ContextMenuCheckboxItemProps & React__default.RefAttributes<any>>;
|
|
218
|
+
RadioGroup: React__default.ForwardRefExoticComponent<ContextMenuRadioGroupProps & React__default.RefAttributes<any>>;
|
|
219
|
+
RadioItem: React__default.ForwardRefExoticComponent<ContextMenuRadioItemProps & React__default.RefAttributes<any>>;
|
|
220
|
+
Group: React__default.ForwardRefExoticComponent<ContextMenuGroupProps & React__default.RefAttributes<any>>;
|
|
221
|
+
Separator: React__default.FC<ContextMenuSeparatorProps>;
|
|
222
|
+
Search: React__default.ForwardRefExoticComponent<ContextMenuSearchProps & React__default.RefAttributes<HTMLInputElement>>;
|
|
222
223
|
};
|
|
223
224
|
|
|
224
|
-
declare const ContextMenuItem:
|
|
225
|
+
declare const ContextMenuItem: React__default.ForwardRefExoticComponent<ContextMenuItemProps & React__default.RefAttributes<any>>;
|
|
225
226
|
|
|
226
|
-
declare const ContextMenuCheckboxItem:
|
|
227
|
+
declare const ContextMenuCheckboxItem: React__default.ForwardRefExoticComponent<ContextMenuCheckboxItemProps & React__default.RefAttributes<any>>;
|
|
227
228
|
|
|
228
229
|
interface RadioGroupContextValue {
|
|
229
230
|
value: string;
|
|
230
231
|
onValueChange: (value: string) => void;
|
|
231
232
|
}
|
|
232
233
|
declare const useRadioGroup: () => RadioGroupContextValue | null;
|
|
233
|
-
declare const ContextMenuRadioGroup:
|
|
234
|
+
declare const ContextMenuRadioGroup: React__default.ForwardRefExoticComponent<ContextMenuRadioGroupProps & React__default.RefAttributes<any>>;
|
|
234
235
|
|
|
235
|
-
declare const ContextMenuRadioItem:
|
|
236
|
+
declare const ContextMenuRadioItem: React__default.ForwardRefExoticComponent<ContextMenuRadioItemProps & React__default.RefAttributes<any>>;
|
|
236
237
|
|
|
237
238
|
declare const ContextMenuGroup: React$1.ForwardRefExoticComponent<ContextMenuGroupProps & React$1.RefAttributes<any>>;
|
|
238
239
|
|
|
239
|
-
declare const ContextMenuSeparator:
|
|
240
|
+
declare const ContextMenuSeparator: React__default.FC<ContextMenuSeparatorProps>;
|
|
240
241
|
|
|
241
|
-
declare const ContextMenuSearch:
|
|
242
|
+
declare const ContextMenuSearch: React__default.ForwardRefExoticComponent<ContextMenuSearchProps & React__default.RefAttributes<HTMLInputElement>>;
|
|
242
243
|
|
|
243
244
|
declare const useContextMenu: () => ContextMenuContextValue | undefined;
|
|
244
245
|
declare const useContextMenuRequired: () => ContextMenuContextValue;
|
package/native/index.js
CHANGED
|
@@ -806,7 +806,6 @@ var ContextMenuCheckboxItem = (0, import_react6.forwardRef)(
|
|
|
806
806
|
const size = propSize || context?.size || "md";
|
|
807
807
|
const sizeStyles = theme.sizing.contextMenu(size);
|
|
808
808
|
const itemRef = (0, import_react6.useRef)(null);
|
|
809
|
-
const contentColors = theme.colors.content;
|
|
810
809
|
(0, import_react6.useEffect)(() => {
|
|
811
810
|
if (context && !disabled) {
|
|
812
811
|
const id = typeof children === "string" ? children : String(Math.random());
|