@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.
- package/dist/browser/index.js +261 -241
- package/dist/browser/index.js.map +3 -3
- package/dist/components/menuitem/menuitem.component.d.ts +11 -0
- package/dist/components/menuitem/menuitem.component.js +11 -0
- package/dist/components/menuitemcheckbox/menuitemcheckbox.component.js +11 -4
- package/dist/components/menuitemcheckbox/menuitemcheckbox.styles.js +3 -0
- package/dist/components/menuitemradio/menuitemradio.component.js +11 -4
- package/dist/components/menuitemradio/menuitemradio.styles.js +3 -0
- package/dist/components/menupopover/menupopover.component.d.ts +49 -1
- package/dist/components/menupopover/menupopover.component.js +125 -17
- package/dist/components/menupopover/menupopover.utils.d.ts +1 -2
- package/dist/components/menupopover/menupopover.utils.js +1 -6
- package/dist/components/popover/popover.component.d.ts +36 -0
- package/dist/components/popover/popover.component.js +46 -1
- package/dist/components/popover/popover.constants.d.ts +3 -0
- package/dist/components/popover/popover.constants.js +3 -0
- package/dist/custom-elements.json +669 -214
- package/dist/react/index.d.ts +1 -1
- package/dist/react/index.js +1 -1
- package/dist/react/menupopover/index.d.ts +18 -0
- package/dist/react/menupopover/index.js +18 -0
- package/package.json +1 -1
package/dist/react/index.d.ts
CHANGED
@@ -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';
|
package/dist/react/index.js
CHANGED
@@ -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
|