@jetbrains/kotlin-web-site-ui 4.4.0-alpha.6 → 4.4.0

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.
@@ -6,8 +6,8 @@ import SvgArrowDropdownIcon from './arrow-dropdown-icon.svg.js';
6
6
  import { useTheme } from '@rescui/ui-contexts';
7
7
  import Button from '@rescui/button';
8
8
  import { CloseIcon } from '@rescui/icons';
9
- import { disableBodyScroll, clearAllBodyScrollLocks } from 'body-scroll-lock';
10
9
  import { createPortal } from 'react-dom';
10
+ import { RemoveScrollBar } from 'react-remove-scroll-bar';
11
11
 
12
12
  const VerticalMenu = ({
13
13
  homeUrl,
@@ -85,12 +85,6 @@ const VerticalMenuDropDown = ({
85
85
  if (topMenuTopOffset !== undefined) {
86
86
  setTopMenuSticky(topMenuTopOffset === 0);
87
87
  }
88
-
89
- if (navRef.current) {
90
- disableBodyScroll(navRef.current);
91
- }
92
-
93
- return clearAllBodyScrollLocks;
94
88
  }, []);
95
89
  useLayoutEffect(() => {
96
90
  if (topMenuRef.current) {
@@ -99,7 +93,9 @@ const VerticalMenuDropDown = ({
99
93
  });
100
94
  }
101
95
  }, [topMenuRef]);
102
- return React__default.createElement("nav", {
96
+ return React__default.createElement(React__default.Fragment, null, React__default.createElement(RemoveScrollBar, {
97
+ gapMode: "margin"
98
+ }), React__default.createElement("nav", {
103
99
  ref: navRef,
104
100
  style: navStyle,
105
101
  className: classNames(styles.dropdownList, {
@@ -127,7 +123,7 @@ const VerticalMenuDropDown = ({
127
123
  onClick: event => linkHandler?.(event, item.url),
128
124
  target: item.isExternal ? '_blank' : undefined,
129
125
  rel: "noreferrer"
130
- }, item.title)));
126
+ }, item.title))));
131
127
  };
132
128
 
133
129
  export { VerticalMenu };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@jetbrains/kotlin-web-site-ui",
3
3
  "description": "UI components for Kotlin web sites development",
4
- "version": "4.4.0-alpha.6",
4
+ "version": "4.4.0",
5
5
  "license": "Apache-2.0",
6
6
  "author": "JetBrains",
7
7
  "files": [