aleman 1.4.7 → 1.4.8
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/ChangeLog +5 -0
- package/menu/rules/build-menu/index.js +3 -4
- package/package.json +1 -1
package/ChangeLog
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import {template, operator} from 'putout';
|
|
2
2
|
import {
|
|
3
|
+
addClassName,
|
|
3
4
|
hasDataName,
|
|
4
5
|
setAttributeValue,
|
|
5
6
|
} from '../jsx-operator.js';
|
|
6
7
|
|
|
7
|
-
const {addAttributeValue} = operator;
|
|
8
|
-
|
|
9
8
|
const {entries} = Object;
|
|
10
9
|
|
|
11
10
|
const noop = () => {};
|
|
@@ -82,7 +81,7 @@ export const traverse = ({options, push}) => ({
|
|
|
82
81
|
});
|
|
83
82
|
|
|
84
83
|
function setSubmenu(menuItem) {
|
|
85
|
-
|
|
84
|
+
addClassName(menuItem, 'menu-submenu');
|
|
86
85
|
}
|
|
87
86
|
|
|
88
87
|
function setDataMenuPath(key, name, menuItem) {
|
|
@@ -91,7 +90,7 @@ function setDataMenuPath(key, name, menuItem) {
|
|
|
91
90
|
}
|
|
92
91
|
|
|
93
92
|
function setIcon(name, menuItem) {
|
|
94
|
-
|
|
93
|
+
addClassName(menuItem, `icon ${getIconName(name)}`);
|
|
95
94
|
}
|
|
96
95
|
|
|
97
96
|
function getIconName(name) {
|