@panneau/element-menu 4.0.37 → 4.0.39
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/index.js +11 -9
- package/package.json +7 -7
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import _objectSpread from '@babel/runtime/helpers/objectSpread2';
|
|
2
1
|
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
2
|
+
import _objectSpread from '@babel/runtime/helpers/objectSpread2';
|
|
3
3
|
import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
|
|
4
4
|
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
5
5
|
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
@@ -93,34 +93,36 @@ function Menu(_ref) {
|
|
|
93
93
|
onClick: onClickItem,
|
|
94
94
|
href: href,
|
|
95
95
|
external: external,
|
|
96
|
-
className: classNames(
|
|
96
|
+
className: classNames(itemClassName, customClassName, linkClassName, customLinkClassName, [{
|
|
97
97
|
active: active
|
|
98
|
-
}
|
|
98
|
+
}])
|
|
99
99
|
}), /*#__PURE__*/jsx(Label, _objectSpread(_objectSpread({}, itemProps), {}, {
|
|
100
100
|
children: label
|
|
101
101
|
}))) : /*#__PURE__*/jsxs(ItemComponent, {
|
|
102
|
-
className: classNames(_defineProperty(_defineProperty(
|
|
102
|
+
className: classNames([_defineProperty(_defineProperty({
|
|
103
103
|
dropdown: dropdown !== null,
|
|
104
104
|
active: active
|
|
105
|
-
},
|
|
105
|
+
}, hasSubMenuClassName, subItems !== null && hasSubMenuClassName !== null), hasDropdownClassName, subItems !== null && hasDropdownClassName !== null), itemClassName, customClassName]),
|
|
106
106
|
children: [href !== null || dropdown !== null ? /*#__PURE__*/jsx(Link, _objectSpread(_objectSpread({}, itemProps), {}, {
|
|
107
107
|
onClick: onClickItem,
|
|
108
108
|
href: href || '#',
|
|
109
109
|
external: external,
|
|
110
|
-
className: classNames(
|
|
110
|
+
className: classNames([{
|
|
111
|
+
'dropdown-toggle': dropdown !== null
|
|
112
|
+
}, linkClassName, customLinkClassName]),
|
|
111
113
|
children: label
|
|
112
114
|
})) : /*#__PURE__*/jsx(Label, _objectSpread(_objectSpread({}, itemProps), {}, {
|
|
113
115
|
children: label
|
|
114
116
|
})), subItems !== null ? /*#__PURE__*/jsx(Menu, {
|
|
115
117
|
items: subItems,
|
|
116
118
|
className: subMenuClassName,
|
|
117
|
-
itemClassName: classNames(_defineProperty(
|
|
118
|
-
linkClassName: classNames(_defineProperty(
|
|
119
|
+
itemClassName: classNames([subMenuItemClassName, _defineProperty({}, itemClassName, subMenuItemClassName === null && itemClassName !== null)]),
|
|
120
|
+
linkClassName: classNames([subMenuLinkClassName, _defineProperty({}, linkClassName, subMenuLinkClassName === null && linkClassName !== null)])
|
|
119
121
|
}) : null, dropdown !== null ? /*#__PURE__*/jsx(Dropdown, {
|
|
120
122
|
items: dropdown,
|
|
121
123
|
visible: dropdownVisible,
|
|
122
124
|
className: dropdownClassName,
|
|
123
|
-
itemClassName: classNames(_defineProperty(
|
|
125
|
+
itemClassName: classNames([dropdownItemClassName, _defineProperty({}, itemClassName, dropdownItemClassName === null && itemClassName !== null)]),
|
|
124
126
|
align: dropdownAlign,
|
|
125
127
|
onClickItem: closeDropdown,
|
|
126
128
|
onClickOutside: closeDropdown
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@panneau/element-menu",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.39",
|
|
4
4
|
"description": "Menu element",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"javascript"
|
|
@@ -60,15 +60,15 @@
|
|
|
60
60
|
},
|
|
61
61
|
"dependencies": {
|
|
62
62
|
"@babel/runtime": "^7.28.6",
|
|
63
|
-
"@panneau/core": "^4.0.
|
|
64
|
-
"@panneau/element-dropdown": "^4.0.
|
|
65
|
-
"@panneau/element-label": "^4.0.
|
|
66
|
-
"@panneau/element-link": "^4.0.
|
|
63
|
+
"@panneau/core": "^4.0.38",
|
|
64
|
+
"@panneau/element-dropdown": "^4.0.39",
|
|
65
|
+
"@panneau/element-label": "^4.0.38",
|
|
66
|
+
"@panneau/element-link": "^4.0.39",
|
|
67
67
|
"classnames": "^2.5.1",
|
|
68
|
-
"react-intl": "^6.0.0 || ^7.0.0 || ^8.0.0"
|
|
68
|
+
"react-intl": "^6.0.0 || ^7.0.0 || ^8.0.0 || ^10.0.0"
|
|
69
69
|
},
|
|
70
70
|
"publishConfig": {
|
|
71
71
|
"access": "public"
|
|
72
72
|
},
|
|
73
|
-
"gitHead": "
|
|
73
|
+
"gitHead": "621c5233f083c1ba95cd46cd427c38361723d5d6"
|
|
74
74
|
}
|