@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.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/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,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/native/index.js
CHANGED
|
@@ -259,7 +259,6 @@ var Spinner = ({
|
|
|
259
259
|
role,
|
|
260
260
|
"aria-label": ariaLabel,
|
|
261
261
|
"aria-live": ariaLive,
|
|
262
|
-
"aria-describedby": ariaDescribedBy,
|
|
263
262
|
testID
|
|
264
263
|
}) => {
|
|
265
264
|
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
@@ -358,14 +357,11 @@ var InputPrimitive = (0, import_react2.forwardRef)(
|
|
|
358
357
|
fontSize,
|
|
359
358
|
placeholderTextColor,
|
|
360
359
|
maxLength,
|
|
361
|
-
name,
|
|
362
360
|
type,
|
|
363
361
|
inputMode,
|
|
364
362
|
autoComplete,
|
|
365
363
|
id,
|
|
366
|
-
"aria-invalid": ariaInvalid,
|
|
367
364
|
"aria-describedby": ariaDescribedBy,
|
|
368
|
-
"aria-labelledby": ariaLabelledBy,
|
|
369
365
|
"aria-label": ariaLabel,
|
|
370
366
|
"aria-disabled": ariaDisabled,
|
|
371
367
|
"data-testid": dataTestId
|
|
@@ -457,9 +453,7 @@ var TextAreaPrimitive = (0, import_react3.forwardRef)(
|
|
|
457
453
|
maxLength,
|
|
458
454
|
rows,
|
|
459
455
|
id,
|
|
460
|
-
"aria-invalid": ariaInvalid,
|
|
461
456
|
"aria-describedby": ariaDescribedBy,
|
|
462
|
-
"aria-labelledby": ariaLabelledBy,
|
|
463
457
|
"aria-label": ariaLabel,
|
|
464
458
|
"aria-disabled": ariaDisabled,
|
|
465
459
|
"data-testid": dataTestId
|
|
@@ -806,7 +800,6 @@ var ContextMenuCheckboxItem = (0, import_react6.forwardRef)(
|
|
|
806
800
|
const size = propSize || context?.size || "md";
|
|
807
801
|
const sizeStyles = theme.sizing.contextMenu(size);
|
|
808
802
|
const itemRef = (0, import_react6.useRef)(null);
|
|
809
|
-
const contentColors = theme.colors.content;
|
|
810
803
|
(0, import_react6.useEffect)(() => {
|
|
811
804
|
if (context && !disabled) {
|
|
812
805
|
const id = typeof children === "string" ? children : String(Math.random());
|
package/native/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;
|