@hexure/ui 1.8.4 → 1.8.5

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/cjs/index.js CHANGED
@@ -2446,13 +2446,14 @@ const StyledMoreMenu = styled(MoreMenu) `
2446
2446
  right: ${props => (props.$position === 'right' ? '0px' : 'auto')};
2447
2447
  left: ${props => (props.$position === 'left' ? '0px' : 'auto')};
2448
2448
  top: ${props => (props.$small ? '30px' : '40px')};
2449
+ width: ${props => props.$menuWidth};
2449
2450
  z-index: 10;
2450
2451
  `;
2451
- const ButtonMenu = ({ disabled, label, maxHeight, menuItems, small, position = 'right', format = 'primary', }) => {
2452
+ const ButtonMenu = ({ disabled, label, maxHeight, menuItems, small, position = 'right', format = 'primary', menuWidth = '200px', }) => {
2452
2453
  const [show_menu, toggleMenu] = React.useState(false);
2453
2454
  return (React.createElement(Wrapper$d, { onMouseEnter: disabled ? undefined : toggleMenu.bind(null, true), onMouseLeave: disabled ? undefined : toggleMenu.bind(null, false) },
2454
2455
  React.createElement(Button, { disabled: disabled, format: format, icon: js.mdiDotsHorizontal, small: small }, label),
2455
- show_menu ? (React.createElement(StyledMoreMenu, { "$position": position, "$small": small, maxHeight: maxHeight, menuItems: menuItems })) : null));
2456
+ show_menu ? (React.createElement(StyledMoreMenu, { "$menuWidth": menuWidth, "$position": position, "$small": small, maxHeight: maxHeight, menuItems: menuItems })) : null));
2456
2457
  };
2457
2458
 
2458
2459
  const Wrapper$c = styled.label `