@muraldevkit/ui-toolkit 4.52.4-dev-e85K.1 → 4.52.4
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,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { DSIconType } from '../../../';
|
|
3
|
-
import { AriaHasPopup } from '../constants';
|
|
3
|
+
import { AriaHasPopup, MenuItemRole } from '../constants';
|
|
4
4
|
export interface MrlMenuItemProps {
|
|
5
5
|
/** ID for associated description */
|
|
6
6
|
ariaDescribedBy?: string;
|
|
@@ -36,7 +36,7 @@ export interface MrlMenuItemProps {
|
|
|
36
36
|
* @example 'menuitemcheckbox' - for checkbox menu items
|
|
37
37
|
* @example 'menuitemradio' - for radio menu items
|
|
38
38
|
*/
|
|
39
|
-
role?:
|
|
39
|
+
role?: MenuItemRole;
|
|
40
40
|
/** If the menu item is selected */
|
|
41
41
|
selected?: boolean;
|
|
42
42
|
}
|
|
@@ -31,7 +31,11 @@ export type SubMenuTypes = 'Menu' | 'Popover';
|
|
|
31
31
|
/**
|
|
32
32
|
* Accepted values for aria-haspopup attribute
|
|
33
33
|
*/
|
|
34
|
-
export type AriaHasPopup =
|
|
34
|
+
export type AriaHasPopup = React.AriaAttributes['aria-haspopup'];
|
|
35
|
+
/**
|
|
36
|
+
* Accepted values for menu item role attribute
|
|
37
|
+
*/
|
|
38
|
+
export type MenuItemRole = 'menuitem' | 'menuitemcheckbox' | 'menuitemradio';
|
|
35
39
|
/**
|
|
36
40
|
* Extension of the React.FunctionComponent type to include a componentType property.
|
|
37
41
|
*
|