Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "fix: use global focusgroup typing for MenuListState instead of a local intersection",
"packageName": "@fluentui/react-headless-components-preview",
"email": "dmytrokirpa@microsoft.com",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ import { MenuItemSwitchState } from '@fluentui/react-menu';
import type { MenuListContextValues } from '@fluentui/react-menu';
import { MenuListProps } from '@fluentui/react-menu';
import { MenuListSlots } from '@fluentui/react-menu';
import type { MenuListState as MenuListState_2 } from '@fluentui/react-menu';
import { MenuListState } from '@fluentui/react-menu';
import { MenuOpenChangeData } from '@fluentui/react-menu';
import { MenuOpenEvent } from '@fluentui/react-menu';
import { MenuPopoverProps } from '@fluentui/react-menu';
Expand Down Expand Up @@ -166,12 +166,7 @@ export { MenuListProps }

export { MenuListSlots }

// @public (undocumented)
export type MenuListState = MenuListState_2 & {
root: {
focusgroup?: string;
};
};
export { MenuListState }

export { MenuOpenChangeData }

Expand Down Expand Up @@ -228,7 +223,7 @@ export { renderMenuItemRadio }
export { renderMenuItemSwitch }

// @public (undocumented)
export const renderMenuList: (state: MenuListState_2, contextValues: MenuListContextValues) => JSXElement;
export const renderMenuList: (state: MenuListState, contextValues: MenuListContextValues) => JSXElement;

// @public (undocumented)
export const renderMenuPopover: (state: MenuPopoverState) => JSXElement;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,7 @@
import type { MenuListState as MenuListBaseState } from '@fluentui/react-menu';

export type {
MenuListState,
MenuListProps,
MenuListSlots,
MenuCheckedValueChangeData,
MenuCheckedValueChangeEvent,
} from '@fluentui/react-menu';

export type MenuListState = MenuListBaseState & {
root: {
focusgroup?: string;
};
};
Loading