@gravity-ui/navigation 0.18.0 → 0.18.1

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.
@@ -4800,8 +4800,9 @@ const b$i = block('drawer');
4800
4800
  const TIMEOUT = 300;
4801
4801
  const DrawerItem = ({ visible, content, direction, className }) => {
4802
4802
  const itemRef = React__default["default"].useRef(null);
4803
- return (React__default["default"].createElement(CSSTransition, { in: visible, timeout: TIMEOUT, unmountOnExit: true, classNames: b$i('item-transition', { direction }), nodeRef: itemRef },
4804
- React__default["default"].createElement("div", { ref: itemRef, className: b$i('item', { direction }, className) }, content)));
4803
+ const cssDirection = direction === 'left' ? undefined : direction;
4804
+ return (React__default["default"].createElement(CSSTransition, { in: visible, timeout: TIMEOUT, unmountOnExit: true, classNames: b$i('item-transition', { direction: cssDirection }), nodeRef: itemRef },
4805
+ React__default["default"].createElement("div", { ref: itemRef, className: b$i('item', { direction: cssDirection }, className) }, content)));
4805
4806
  };
4806
4807
  const Drawer = ({ className, children, style, onVeilClick, onEscape, preventScrollBody = true, }) => {
4807
4808
  let someItemVisible = false;