@momentum-design/components 0.92.0 → 0.92.2

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.
@@ -56,8 +56,8 @@ export { default as Skeleton } from './skeleton';
56
56
  export { default as Spinner } from './spinner';
57
57
  export { default as StaticCheckbox } from './staticcheckbox';
58
58
  export { default as StaticRadio } from './staticradio';
59
- export { default as StaticToggle } from './statictoggle';
60
59
  export { default as Tab } from './tab';
60
+ export { default as StaticToggle } from './statictoggle';
61
61
  export { default as TabList } from './tablist';
62
62
  export { default as Text } from './text';
63
63
  export { default as Textarea } from './textarea';
@@ -56,8 +56,8 @@ export { default as Skeleton } from './skeleton';
56
56
  export { default as Spinner } from './spinner';
57
57
  export { default as StaticCheckbox } from './staticcheckbox';
58
58
  export { default as StaticRadio } from './staticradio';
59
- export { default as StaticToggle } from './statictoggle';
60
59
  export { default as Tab } from './tab';
60
+ export { default as StaticToggle } from './statictoggle';
61
61
  export { default as TabList } from './tablist';
62
62
  export { default as Text } from './text';
63
63
  export { default as Textarea } from './textarea';
@@ -17,6 +17,24 @@ import Component from '../../components/menupopover';
17
17
  *
18
18
  * The orientation of the menu popover is always set to `vertical`.
19
19
  *
20
+ * Submenu opens when:
21
+ * - Clicked on a menu item with a submenu
22
+ * - Enter or Space key pressed on a menu item with a submenu
23
+ *
24
+ * Menu closes completely (with all sub menus) when:
25
+ * - A menu item is clicked that does not have a submenu
26
+ * - Enter key pressed on a menu item (not a submenu trigger), menu item radio or menu item checkbox
27
+ * - Click outside the menu popover (on the backdrop)
28
+ *
29
+ * Close submenus when:
30
+ * - Esc key pressed, only the current submenu closed
31
+ * - Arrow Left key pressed, only the current submenu closed
32
+ * - Open another submenu with Click, Enter or Space key,
33
+ * closes recursively all submenus until the selected item's submenu
34
+ *
35
+ * Menu does not close when:
36
+ * - Space key pressed on a menu item radio or menu item checkbox
37
+ *
20
38
  * @tagname mdc-menupopover
21
39
  *
22
40
  * @slot - Default slot for the menu popover content
@@ -19,6 +19,24 @@ import { TAG_NAME } from '../../components/menupopover/menupopover.constants';
19
19
  *
20
20
  * The orientation of the menu popover is always set to `vertical`.
21
21
  *
22
+ * Submenu opens when:
23
+ * - Clicked on a menu item with a submenu
24
+ * - Enter or Space key pressed on a menu item with a submenu
25
+ *
26
+ * Menu closes completely (with all sub menus) when:
27
+ * - A menu item is clicked that does not have a submenu
28
+ * - Enter key pressed on a menu item (not a submenu trigger), menu item radio or menu item checkbox
29
+ * - Click outside the menu popover (on the backdrop)
30
+ *
31
+ * Close submenus when:
32
+ * - Esc key pressed, only the current submenu closed
33
+ * - Arrow Left key pressed, only the current submenu closed
34
+ * - Open another submenu with Click, Enter or Space key,
35
+ * closes recursively all submenus until the selected item's submenu
36
+ *
37
+ * Menu does not close when:
38
+ * - Space key pressed on a menu item radio or menu item checkbox
39
+ *
22
40
  * @tagname mdc-menupopover
23
41
  *
24
42
  * @slot - Default slot for the menu popover content
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@momentum-design/components",
3
3
  "packageManager": "yarn@3.2.4",
4
- "version": "0.92.0",
4
+ "version": "0.92.2",
5
5
  "engines": {
6
6
  "node": ">=20.0.0",
7
7
  "npm": ">=8.0.0"