V2.0.0-alpha.0
Pre-release
Pre-release
·
10 commits
to master
since this release
Removed
- [Sidebar] Removed the
ProSidebarProvidercomponent (deprecated since 1.1) - Removed the
useProSidebarhook (deprecated since 1.1) — useSidebarprops instead - [Sidebar] Removed the
defaultCollapsedprop — use the controlledcollapsedprop - [Sidebar] Removed the
breakPoint="always"value — usebreakPoint="all" - [Sidebar] Removed the
customBreakPointprop — pass a custom value tobreakPointinstead (e.g.breakPoint="450px")
Changed
- Breaking: React peer dependency is now
>=18(dropped React 16 / 17 support); React 19 is supported - Runtime dependencies (
@emotion,@popperjs,classnames) are now externalized instead of bundled, reducing install size and avoiding duplicate copies - The package now ships a proper
exportsmap with ESM (dist/index.mjs), CJS (dist/index.js) and atypesentry
Added
- [Menu] New
popoverprop — top-levelSubMenus open as floating poppers even when the sidebar is expanded (instead of sliding open inline) - [Menu] New
accordionprop — when set, only one top-levelSubMenucan be open at a time. Opening another closes the previously open one - [SubMenu] New
accordionprop — coordinates only the submenu's direct children (per-level scope, independent of any ancestor accordion) - [SubMenu] Active state now cascades automatically — a
SubMenuis marked active whenever any of its descendants is active - [Sidebar] Pressing
Escapenow closes the sidebar when open as an overlay (broken + toggled) - [Sidebar] Focus moves into the sidebar when it opens as an overlay
- [MenuItem]
aria-current="page"on active items andaria-disabledon disabled items - [SubMenu]
aria-expandedon the trigger,aria-haspopup="menu"when a collapsed top-level submenu opens as a popup, andaria-disabledon disabled triggers
Fixed
- [Sidebar] Backdrop now uses
onKeyDownand activates only onEnter/Space(replacing the deprecatedonKeyPress, which fired on any key) - [SubMenu] Items in a closed submenu are no longer reachable via Tab or exposed to screen readers — the closed submenu content is now marked
inert - [SubMenu] Trigger now has
role="button", so itsaria-expanded/aria-haspopupstate is valid (it previously sat on a roleless<a>)