Skip to content

Commit

Permalink
Update 2024-11-25T18:36:34.073Z
Browse files Browse the repository at this point in the history
  • Loading branch information
negomi committed Nov 25, 2024
1 parent fa53214 commit 0cd3a3d
Showing 1 changed file with 32 additions and 30 deletions.
62 changes: 32 additions & 30 deletions bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -1932,6 +1932,35 @@ exports['default'] = function (styles) {
return ref.current;
}
var Menu = function Menu(props) {
var defaultProps = {
bodyClassName: '',
burgerBarClassName: '',
burgerButtonClassName: '',
className: '',
crossButtonClassName: '',
crossClassName: '',
disableAutoFocus: false,
disableCloseOnEsc: false,
htmlClassName: '',
id: '',
itemClassName: '',
itemListClassName: '',
menuClassName: '',
morphShapeClassName: '',
noOverlay: false,
noTransition: false,
onStateChange: function onStateChange() {
},
outerContainerId: '',
overlayClassName: '',
pageWrapId: '',
styles: {},
width: 300,
onIconHoverChange: function onIconHoverChange() {
},
itemListElement: 'nav'
};
props = _extends({}, defaultProps, props);
var _React$useState = _react2['default'].useState(false);
var _React$useState2 = _slicedToArray(_React$useState, 2);
var isOpen = _React$useState2[0];
Expand Down Expand Up @@ -2028,8 +2057,9 @@ exports['default'] = function (styles) {
}
}
function getStyle(style, index) {
var width = props.width;
var right = props.right;
var _props = props;
var width = _props.width;
var right = _props.right;
var formattedWidth = typeof width !== 'string' ? width + 'px' : width;
return style(isOpen, formattedWidth, right, index);
}
Expand Down Expand Up @@ -2252,34 +2282,6 @@ exports['default'] = function (styles) {
_propTypes2['default'].string
])
};
Menu.defaultProps = {
bodyClassName: '',
burgerBarClassName: '',
burgerButtonClassName: '',
className: '',
crossButtonClassName: '',
crossClassName: '',
disableAutoFocus: false,
disableCloseOnEsc: false,
htmlClassName: '',
id: '',
itemClassName: '',
itemListClassName: '',
menuClassName: '',
morphShapeClassName: '',
noOverlay: false,
noTransition: false,
onStateChange: function onStateChange() {
},
outerContainerId: '',
overlayClassName: '',
pageWrapId: '',
styles: {},
width: 300,
onIconHoverChange: function onIconHoverChange() {
},
itemListElement: 'nav'
};
return Menu;
};
module.exports = exports['default'];
Expand Down

0 comments on commit 0cd3a3d

Please sign in to comment.