@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.
@@ -1,4 +1,5 @@
1
- import React$1, { ReactNode, RefObject } from 'react';
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: React$1.ForwardRefExoticComponent<ContextMenuProps & React$1.RefAttributes<any>> & {
215
- Item: React$1.ForwardRefExoticComponent<ContextMenuItemProps & React$1.RefAttributes<any>>;
216
- CheckboxItem: React$1.ForwardRefExoticComponent<ContextMenuCheckboxItemProps & React$1.RefAttributes<any>>;
217
- RadioGroup: React$1.ForwardRefExoticComponent<ContextMenuRadioGroupProps & React$1.RefAttributes<any>>;
218
- RadioItem: React$1.ForwardRefExoticComponent<ContextMenuRadioItemProps & React$1.RefAttributes<any>>;
219
- Group: React$1.ForwardRefExoticComponent<ContextMenuGroupProps & React$1.RefAttributes<any>>;
220
- Separator: React$1.FC<ContextMenuSeparatorProps>;
221
- Search: React$1.ForwardRefExoticComponent<ContextMenuSearchProps & React$1.RefAttributes<HTMLInputElement>>;
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: React$1.ForwardRefExoticComponent<ContextMenuItemProps & React$1.RefAttributes<any>>;
225
+ declare const ContextMenuItem: React__default.ForwardRefExoticComponent<ContextMenuItemProps & React__default.RefAttributes<any>>;
225
226
 
226
- declare const ContextMenuCheckboxItem: React$1.ForwardRefExoticComponent<ContextMenuCheckboxItemProps & React$1.RefAttributes<any>>;
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: React$1.ForwardRefExoticComponent<ContextMenuRadioGroupProps & React$1.RefAttributes<any>>;
234
+ declare const ContextMenuRadioGroup: React__default.ForwardRefExoticComponent<ContextMenuRadioGroupProps & React__default.RefAttributes<any>>;
234
235
 
235
- declare const ContextMenuRadioItem: React$1.ForwardRefExoticComponent<ContextMenuRadioItemProps & React$1.RefAttributes<any>>;
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: React$1.FC<ContextMenuSeparatorProps>;
240
+ declare const ContextMenuSeparator: React__default.FC<ContextMenuSeparatorProps>;
240
241
 
241
- declare const ContextMenuSearch: React$1.ForwardRefExoticComponent<ContextMenuSearchProps & React$1.RefAttributes<HTMLInputElement>>;
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, { ReactNode, RefObject } from 'react';
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: React$1.ForwardRefExoticComponent<ContextMenuProps & React$1.RefAttributes<any>> & {
215
- Item: React$1.ForwardRefExoticComponent<ContextMenuItemProps & React$1.RefAttributes<any>>;
216
- CheckboxItem: React$1.ForwardRefExoticComponent<ContextMenuCheckboxItemProps & React$1.RefAttributes<any>>;
217
- RadioGroup: React$1.ForwardRefExoticComponent<ContextMenuRadioGroupProps & React$1.RefAttributes<any>>;
218
- RadioItem: React$1.ForwardRefExoticComponent<ContextMenuRadioItemProps & React$1.RefAttributes<any>>;
219
- Group: React$1.ForwardRefExoticComponent<ContextMenuGroupProps & React$1.RefAttributes<any>>;
220
- Separator: React$1.FC<ContextMenuSeparatorProps>;
221
- Search: React$1.ForwardRefExoticComponent<ContextMenuSearchProps & React$1.RefAttributes<HTMLInputElement>>;
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: React$1.ForwardRefExoticComponent<ContextMenuItemProps & React$1.RefAttributes<any>>;
225
+ declare const ContextMenuItem: React__default.ForwardRefExoticComponent<ContextMenuItemProps & React__default.RefAttributes<any>>;
225
226
 
226
- declare const ContextMenuCheckboxItem: React$1.ForwardRefExoticComponent<ContextMenuCheckboxItemProps & React$1.RefAttributes<any>>;
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: React$1.ForwardRefExoticComponent<ContextMenuRadioGroupProps & React$1.RefAttributes<any>>;
234
+ declare const ContextMenuRadioGroup: React__default.ForwardRefExoticComponent<ContextMenuRadioGroupProps & React__default.RefAttributes<any>>;
234
235
 
235
- declare const ContextMenuRadioItem: React$1.ForwardRefExoticComponent<ContextMenuRadioItemProps & React$1.RefAttributes<any>>;
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: React$1.FC<ContextMenuSeparatorProps>;
240
+ declare const ContextMenuSeparator: React__default.FC<ContextMenuSeparatorProps>;
240
241
 
241
- declare const ContextMenuSearch: React$1.ForwardRefExoticComponent<ContextMenuSearchProps & React$1.RefAttributes<HTMLInputElement>>;
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());