@momentum-design/components 0.83.4 → 0.83.6
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/dist/browser/index.js +207 -207
- package/dist/browser/index.js.map +4 -4
- package/dist/components/listitem/listitem.component.d.ts +4 -3
- package/dist/components/listitem/listitem.component.js +2 -1
- package/dist/components/menuitem/menuitem.component.d.ts +16 -0
- package/dist/components/menuitem/menuitem.component.js +30 -0
- package/dist/components/menuitemcheckbox/menuitemcheckbox.component.d.ts +26 -0
- package/dist/components/menuitemcheckbox/menuitemcheckbox.component.js +32 -1
- package/dist/components/menuitemradio/menuitemradio.component.d.ts +11 -0
- package/dist/components/menuitemradio/menuitemradio.component.js +33 -2
- package/dist/components/menupopover/menupopover.component.d.ts +66 -2
- package/dist/components/menupopover/menupopover.component.js +202 -10
- package/dist/components/menupopover/menupopover.utils.d.ts +9 -0
- package/dist/components/menupopover/menupopover.utils.js +21 -0
- package/dist/components/menusection/menusection.component.d.ts +0 -27
- package/dist/components/menusection/menusection.component.js +0 -66
- package/dist/components/popover/popover.component.d.ts +3 -3
- package/dist/custom-elements.json +647 -1016
- package/dist/react/index.d.ts +1 -1
- package/dist/react/index.js +1 -1
- package/dist/utils/mixins/MenuMixin.js +4 -1
- package/package.json +1 -1
package/dist/react/index.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
+
export { default as AlertChip } from './alertchip';
|
1
2
|
export { default as Animation } from './animation';
|
2
3
|
export { default as Appheader } from './appheader';
|
3
|
-
export { default as AlertChip } from './alertchip';
|
4
4
|
export { default as Avatar } from './avatar';
|
5
5
|
export { default as AvatarButton } from './avatarbutton';
|
6
6
|
export { default as Badge } from './badge';
|
package/dist/react/index.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
+
export { default as AlertChip } from './alertchip';
|
1
2
|
export { default as Animation } from './animation';
|
2
3
|
export { default as Appheader } from './appheader';
|
3
|
-
export { default as AlertChip } from './alertchip';
|
4
4
|
export { default as Avatar } from './avatar';
|
5
5
|
export { default as AvatarButton } from './avatarbutton';
|
6
6
|
export { default as Badge } from './badge';
|
@@ -294,7 +294,10 @@ export const MenuMixin = (superClass) => {
|
|
294
294
|
* @returns True if the menu item is a valid menu item, false otherwise.
|
295
295
|
*/
|
296
296
|
isValidMenuItem(menuItem) {
|
297
|
-
|
297
|
+
const validRoles = [ROLE.MENUITEM, ROLE.MENUITEMCHECKBOX, ROLE.MENUITEMRADIO];
|
298
|
+
const role = menuItem.getAttribute('role');
|
299
|
+
return role !== null
|
300
|
+
&& validRoles.includes(role);
|
298
301
|
}
|
299
302
|
/**
|
300
303
|
* Resets all list items tabindex to -1 and sets the tabindex of the
|
package/package.json
CHANGED