@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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xsolla/xui-context-menu",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.79.0",
|
|
4
4
|
"main": "./web/index.js",
|
|
5
5
|
"module": "./web/index.mjs",
|
|
6
6
|
"types": "./web/index.d.ts",
|
|
@@ -13,13 +13,13 @@
|
|
|
13
13
|
"test:coverage": "vitest run --coverage"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@xsolla/xui-checkbox": "0.
|
|
17
|
-
"@xsolla/xui-core": "0.
|
|
18
|
-
"@xsolla/xui-divider": "0.
|
|
19
|
-
"@xsolla/xui-icons": "0.
|
|
20
|
-
"@xsolla/xui-primitives-core": "0.
|
|
21
|
-
"@xsolla/xui-radio": "0.
|
|
22
|
-
"@xsolla/xui-spinner": "0.
|
|
16
|
+
"@xsolla/xui-checkbox": "0.79.0",
|
|
17
|
+
"@xsolla/xui-core": "0.79.0",
|
|
18
|
+
"@xsolla/xui-divider": "0.79.0",
|
|
19
|
+
"@xsolla/xui-icons": "0.79.0",
|
|
20
|
+
"@xsolla/xui-primitives-core": "0.79.0",
|
|
21
|
+
"@xsolla/xui-radio": "0.79.0",
|
|
22
|
+
"@xsolla/xui-spinner": "0.79.0"
|
|
23
23
|
},
|
|
24
24
|
"peerDependencies": {
|
|
25
25
|
"react": ">=16.8.0",
|
package/web/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,19 +212,19 @@ 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;
|
|
@@ -232,13 +233,13 @@ interface RadioGroupContextValue {
|
|
|
232
233
|
declare const useRadioGroup: () => RadioGroupContextValue | null;
|
|
233
234
|
declare const ContextMenuRadioGroup: React$1.ForwardRefExoticComponent<ContextMenuRadioGroupProps & React$1.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/web/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,19 +212,19 @@ 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;
|
|
@@ -232,13 +233,13 @@ interface RadioGroupContextValue {
|
|
|
232
233
|
declare const useRadioGroup: () => RadioGroupContextValue | null;
|
|
233
234
|
declare const ContextMenuRadioGroup: React$1.ForwardRefExoticComponent<ContextMenuRadioGroupProps & React$1.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/web/index.js
CHANGED
|
@@ -778,7 +778,6 @@ var ContextMenuCheckboxItem = (0, import_react6.forwardRef)(
|
|
|
778
778
|
const size = propSize || context?.size || "md";
|
|
779
779
|
const sizeStyles = theme.sizing.contextMenu(size);
|
|
780
780
|
const itemRef = (0, import_react6.useRef)(null);
|
|
781
|
-
const contentColors = theme.colors.content;
|
|
782
781
|
(0, import_react6.useEffect)(() => {
|
|
783
782
|
if (context && !disabled) {
|
|
784
783
|
const id = typeof children === "string" ? children : String(Math.random());
|
package/web/index.js.flow
CHANGED
|
@@ -5,7 +5,8 @@
|
|
|
5
5
|
* @flow
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import React$1
|
|
8
|
+
import * as React$1 from "react";
|
|
9
|
+
import React__default, { Node, RefObject } from "react";
|
|
9
10
|
|
|
10
11
|
/**
|
|
11
12
|
* Size variants for the context menu
|
|
@@ -443,46 +444,46 @@ declare interface ContextMenuSizing {
|
|
|
443
444
|
minWidth: number;
|
|
444
445
|
}
|
|
445
446
|
declare var ContextMenu: {
|
|
446
|
-
...
|
|
447
|
+
...React__default.ForwardRefExoticComponent<{
|
|
447
448
|
...ContextMenuProps,
|
|
448
|
-
...
|
|
449
|
+
...React__default.RefAttributes<any>,
|
|
449
450
|
}>,
|
|
450
451
|
...{
|
|
451
|
-
Item:
|
|
452
|
+
Item: React__default.ForwardRefExoticComponent<{
|
|
452
453
|
...ContextMenuItemProps,
|
|
453
|
-
...
|
|
454
|
+
...React__default.RefAttributes<any>,
|
|
454
455
|
}>,
|
|
455
|
-
CheckboxItem:
|
|
456
|
+
CheckboxItem: React__default.ForwardRefExoticComponent<{
|
|
456
457
|
...ContextMenuCheckboxItemProps,
|
|
457
|
-
...
|
|
458
|
+
...React__default.RefAttributes<any>,
|
|
458
459
|
}>,
|
|
459
|
-
RadioGroup:
|
|
460
|
+
RadioGroup: React__default.ForwardRefExoticComponent<{
|
|
460
461
|
...ContextMenuRadioGroupProps,
|
|
461
|
-
...
|
|
462
|
+
...React__default.RefAttributes<any>,
|
|
462
463
|
}>,
|
|
463
|
-
RadioItem:
|
|
464
|
+
RadioItem: React__default.ForwardRefExoticComponent<{
|
|
464
465
|
...ContextMenuRadioItemProps,
|
|
465
|
-
...
|
|
466
|
+
...React__default.RefAttributes<any>,
|
|
466
467
|
}>,
|
|
467
|
-
Group:
|
|
468
|
+
Group: React__default.ForwardRefExoticComponent<{
|
|
468
469
|
...ContextMenuGroupProps,
|
|
469
|
-
...
|
|
470
|
+
...React__default.RefAttributes<any>,
|
|
470
471
|
}>,
|
|
471
|
-
Separator:
|
|
472
|
-
Search:
|
|
472
|
+
Separator: React__default.FC<ContextMenuSeparatorProps>,
|
|
473
|
+
Search: React__default.ForwardRefExoticComponent<{
|
|
473
474
|
...ContextMenuSearchProps,
|
|
474
|
-
...
|
|
475
|
+
...React__default.RefAttributes<HTMLInputElement>,
|
|
475
476
|
}>,
|
|
476
477
|
...
|
|
477
478
|
},
|
|
478
479
|
};
|
|
479
|
-
declare var ContextMenuItem:
|
|
480
|
+
declare var ContextMenuItem: React__default.ForwardRefExoticComponent<{
|
|
480
481
|
...ContextMenuItemProps,
|
|
481
|
-
...
|
|
482
|
+
...React__default.RefAttributes<any>,
|
|
482
483
|
}>;
|
|
483
|
-
declare var ContextMenuCheckboxItem:
|
|
484
|
+
declare var ContextMenuCheckboxItem: React__default.ForwardRefExoticComponent<{
|
|
484
485
|
...ContextMenuCheckboxItemProps,
|
|
485
|
-
...
|
|
486
|
+
...React__default.RefAttributes<any>,
|
|
486
487
|
}>;
|
|
487
488
|
declare interface RadioGroupContextValue {
|
|
488
489
|
value: string;
|
|
@@ -493,18 +494,18 @@ declare var ContextMenuRadioGroup: React$1.ForwardRefExoticComponent<{
|
|
|
493
494
|
...ContextMenuRadioGroupProps,
|
|
494
495
|
...React$1.RefAttributes<any>,
|
|
495
496
|
}>;
|
|
496
|
-
declare var ContextMenuRadioItem:
|
|
497
|
+
declare var ContextMenuRadioItem: React__default.ForwardRefExoticComponent<{
|
|
497
498
|
...ContextMenuRadioItemProps,
|
|
498
|
-
...
|
|
499
|
+
...React__default.RefAttributes<any>,
|
|
499
500
|
}>;
|
|
500
501
|
declare var ContextMenuGroup: React$1.ForwardRefExoticComponent<{
|
|
501
502
|
...ContextMenuGroupProps,
|
|
502
503
|
...React$1.RefAttributes<any>,
|
|
503
504
|
}>;
|
|
504
|
-
declare var ContextMenuSeparator:
|
|
505
|
-
declare var ContextMenuSearch:
|
|
505
|
+
declare var ContextMenuSeparator: React__default.FC<ContextMenuSeparatorProps>;
|
|
506
|
+
declare var ContextMenuSearch: React__default.ForwardRefExoticComponent<{
|
|
506
507
|
...ContextMenuSearchProps,
|
|
507
|
-
...
|
|
508
|
+
...React__default.RefAttributes<HTMLInputElement>,
|
|
508
509
|
}>;
|
|
509
510
|
declare var useContextMenu: () => ContextMenuContextValue | void;
|
|
510
511
|
declare var useContextMenuRequired: () => ContextMenuContextValue;
|