Releases: gravity-ui/navigation
v3.1.4
v3.1.3
v3.1.2
v3.1.1
v3.1.0
v3.0.0
⚠️ Breaking Changes
Require UIKit 7, Components 4.
"@gravity-ui/uikit": "^7.2.0"
"@gravity-ui/components": "^4.0.0"
AsideHeader, PageHeaderLayout
Change popupOffset
property type to number | {mainAxis?: number; crossAxis?: number}
.
Deprecate popupAnchor
property in SubheaderMenuItem
. Use popupAnchorElement
instead.
Deprecate onClosePopup
property in SubheaderMenuItem
. Use onOpenChangePopup
instead.
Remove popupContentClassName
property in SubheaderMenuItem
.
MenuItem, Logo
Change onItemClick
property type to
onItemClick?: (
item: MenuItem,
collapsed: boolean,
event: React.MouseEvent<HTMLElement, MouseEvent>,
) => void;
FooterItem
Deprecate popupAnchor
property. Use popupAnchorElement
instead.
Deprecate onClosePopup
property. Use onOpenChangePopup
instead.
Remove popupContentClassName
property.
TopAlert
Rename CSS var --gn-aside-top-panel-height
to --gn-top-alert-height
.
Rename classname .gn-pane-top
to .gn-top-alert
.
Drawer
Remove preventScrollBody
property. UIKit useBodyScrollLock
hook was removed.
Change default Drawer.Item
position to fixed
. You can manage via CSS API --gn-drawer-item-position
HotkeysPanel
Remove preventScrollBody
property. UIKit useBodyScrollLock
hook was removed.
Settings.Section
In case with only one Settings.Item
in Settings.Section
the title is not shown.
Remove showTitle
, onlyChild
properties.
🚀 Features
MobileHeader
Add TopAlert #303
MenuItem, Logo
Make actions accessible with keyboard #305
AsideHeader, PageHeaderLayout
Change default color theme #357