Skip to content
Draft
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 @@
{
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🕵🏾‍♀️ visual changes to review in the Visual Change Report

vr-tests-react-components/Charts-DonutChart 2 screenshots
Image Name Diff(in Pixels) Image Type
vr-tests-react-components/Charts-DonutChart.Dynamic - Dark Mode.default.chromium.png 7530 Changed
vr-tests-react-components/Charts-DonutChart.Dynamic - RTL.default.chromium.png 5570 Changed
vr-tests-react-components/Menu Converged - submenuIndicator slotted content 2 screenshots
Image Name Diff(in Pixels) Image Type
vr-tests-react-components/Menu Converged - submenuIndicator slotted content.default.submenus open.chromium.png 413 Changed
vr-tests-react-components/Menu Converged - submenuIndicator slotted content.default - RTL.submenus open.chromium.png 404 Changed
vr-tests-react-components/Positioning 2 screenshots
Image Name Diff(in Pixels) Image Type
vr-tests-react-components/Positioning.Positioning end.updated 2 times.chromium.png 615 Changed
vr-tests-react-components/Positioning.Positioning end.chromium.png 621 Changed
vr-tests-react-components/TagPicker 1 screenshots
Image Name Diff(in Pixels) Image Type
vr-tests-react-components/TagPicker.disabled - Dark Mode.chromium.png 658 Changed

There were 1 duplicate changes discarded. Check the build logs for more information.

"type": "minor",
"comment": "feat: expose base hooks for Menu item components",
"packageName": "@fluentui/react-menu",
"email": "dmytrokirpa@microsoft.com",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,12 @@ export type MenuItemProps = Omit<ComponentProps<Partial<MenuItemSlots>>, 'conten
// @public
export const MenuItemRadio: ForwardRefComponent<MenuItemRadioProps>;

// @public
export type MenuItemRadioBaseProps = MenuItemRadioProps;

// @public
export type MenuItemRadioBaseState = MenuItemRadioState;

// @public (undocumented)
export const menuItemRadioClassNames: SlotClassNames<Omit<MenuItemSlots, 'submenuIndicator'>>;

Expand Down Expand Up @@ -514,9 +520,15 @@ export const useMenuGroupStyles_unstable: (state: MenuGroupState) => MenuGroupSt
// @public
export const useMenuItem_unstable: (props: MenuItemProps, ref: React_2.Ref<ARIAButtonElement<"div">>) => MenuItemState;

// @internal
export const useMenuItemBase_unstable: (props: MenuItemProps, ref: React_2.Ref<ARIAButtonElement<"div">>) => MenuItemState;

// @public
export const useMenuItemCheckbox_unstable: (props: MenuItemCheckboxProps, ref: React_2.Ref<ARIAButtonElement<"div">>) => MenuItemCheckboxState;

// @internal
export const useMenuItemCheckboxBase_unstable: (props: MenuItemCheckboxProps, ref: React_2.Ref<ARIAButtonElement<"div">>) => MenuItemCheckboxState;

// @public (undocumented)
export const useMenuItemCheckboxStyles_unstable: (state: MenuItemCheckboxState) => MenuItemCheckboxState;

Expand All @@ -529,6 +541,9 @@ export const useMenuItemLinkStyles_unstable: (state: MenuItemLinkState) => MenuI
// @public
export const useMenuItemRadio_unstable: (props: MenuItemRadioProps, ref: React_2.Ref<ARIAButtonElement<"div">>) => MenuItemRadioState;

// @internal
export const useMenuItemRadioBase_unstable: (props: MenuItemRadioBaseProps, ref: React_2.Ref<ARIAButtonElement<"div">>) => MenuItemRadioBaseState;

// @public (undocumented)
export const useMenuItemRadioStyles_unstable: (state: MenuItemRadioState) => void;

Expand All @@ -538,6 +553,9 @@ export const useMenuItemStyles_unstable: (state: MenuItemState) => MenuItemState
// @public
export const useMenuItemSwitch_unstable: (props: MenuItemSwitchProps, ref: React_2.Ref<HTMLDivElement>) => MenuItemSwitchState;

// @internal
export const useMenuItemSwitchBase_unstable: (props: MenuItemSwitchProps, ref: React_2.Ref<HTMLDivElement>) => MenuItemSwitchState;

// @public
export const useMenuItemSwitchStyles_unstable: (state: MenuItemSwitchState) => MenuItemSwitchState;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
export type { MenuItemRadioProps, MenuItemRadioState } from './components/MenuItemRadio/index';
export type {
MenuItemRadioProps,
MenuItemRadioState,
MenuItemRadioBaseProps,
MenuItemRadioBaseState,
} from './components/MenuItemRadio/index';
export {
MenuItemRadio,
menuItemRadioClassNames,
Expand Down
10 changes: 5 additions & 5 deletions packages/react-components/react-menu/library/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,8 @@ export {

export type { MenuItemSwitchProps, MenuItemSwitchState, MenuItemSwitchSlots } from './MenuItemSwitch';

// Experimental: Base hooks - will be enabled in the experimental release branch
// export { useMenuItemBase_unstable } from './MenuItem';
// export { useMenuItemCheckboxBase_unstable } from './MenuItemCheckbox';
// export { useMenuItemRadioBase_unstable } from './MenuItemRadio';
// export { useMenuItemSwitchBase_unstable } from './MenuItemSwitch';
export { useMenuItemBase_unstable } from './MenuItem';
export { useMenuItemCheckboxBase_unstable } from './MenuItemCheckbox';
export { useMenuItemRadioBase_unstable } from './MenuItemRadio';
export type { MenuItemRadioBaseProps, MenuItemRadioBaseState } from './MenuItemRadio';
export { useMenuItemSwitchBase_unstable } from './MenuItemSwitch';
Loading