Avoid breaking api changes
Signed-off-by: Philipp Hugenroth <philipph@spotify.com>
This commit is contained in:
@@ -703,15 +703,6 @@ export type MissingAnnotationEmptyStateClassKey = 'code';
|
||||
// @public
|
||||
export const MobileSidebar: (props: MobileSidebarProps) => JSX.Element | null;
|
||||
|
||||
// @public
|
||||
export const MobileSidebarContext: React_2.Context<MobileSidebarContextType>;
|
||||
|
||||
// @public
|
||||
export type MobileSidebarContextType = {
|
||||
selectedMenuItemIndex: number;
|
||||
setSelectedMenuItemIndex: React_2.Dispatch<React_2.SetStateAction<number>>;
|
||||
};
|
||||
|
||||
// @public
|
||||
export type MobileSidebarProps = {
|
||||
children?: React_2.ReactNode;
|
||||
|
||||
@@ -34,7 +34,7 @@ import { SidebarGroup } from './SidebarGroup';
|
||||
/**
|
||||
* Type of `MobileSidebarContext`
|
||||
*
|
||||
* @public
|
||||
* @internal
|
||||
*/
|
||||
export type MobileSidebarContextType = {
|
||||
selectedMenuItemIndex: number;
|
||||
@@ -134,7 +134,7 @@ const OverlayMenu = ({
|
||||
/**
|
||||
* Context on which `SidebarGroup` is currently selected
|
||||
*
|
||||
* @public
|
||||
* @internal
|
||||
*/
|
||||
export const MobileSidebarContext = createContext<MobileSidebarContextType>({
|
||||
selectedMenuItemIndex: -1,
|
||||
|
||||
@@ -15,11 +15,8 @@
|
||||
*/
|
||||
|
||||
export { Sidebar } from './Bar';
|
||||
export { MobileSidebar, MobileSidebarContext } from './MobileSidebar';
|
||||
export type {
|
||||
MobileSidebarContextType,
|
||||
MobileSidebarProps,
|
||||
} from './MobileSidebar';
|
||||
export { MobileSidebar } from './MobileSidebar';
|
||||
export type { MobileSidebarProps } from './MobileSidebar';
|
||||
export { SidebarGroup } from './SidebarGroup';
|
||||
export type { SidebarGroupProps } from './SidebarGroup';
|
||||
export { SidebarSubmenuItem } from './SidebarSubmenuItem';
|
||||
|
||||
Reference in New Issue
Block a user