@pingux/astro 2.84.0-alpha.0 → 2.84.0-alpha.1
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/lib/cjs/types/menu.d.ts
CHANGED
@@ -6,7 +6,7 @@ export interface MenuProps extends BoxProps, HoverProps {
|
|
6
6
|
title?: string | undefined;
|
7
7
|
'aria-label'?: string | undefined;
|
8
8
|
isNotFocusedOnHover?: boolean;
|
9
|
-
onAction?: () => void;
|
9
|
+
onAction?: (key?: unknown) => void;
|
10
10
|
onSelectionChange?: () => void;
|
11
11
|
isSelected?: boolean;
|
12
12
|
selectionMode?: 'none' | 'single' | 'multiple';
|
@@ -21,7 +21,7 @@ export interface MenuItemProps extends BoxProps, TestingAttributes {
|
|
21
21
|
/** Handler that is called when the menu should close after selecting an item. */
|
22
22
|
onClose?: () => void;
|
23
23
|
/** Handler that is called when the user activates the item. */
|
24
|
-
onAction?: () => void;
|
24
|
+
onAction?: (key?: unknown) => void;
|
25
25
|
item?: Node<object>;
|
26
26
|
state: TreeState<object>;
|
27
27
|
defaultSelectedKey?: string | number;
|