UNPKG

office-ui-fabric-react

Version:

Reusable React components for building experiences for Microsoft 365.

55 lines (54 loc) 2.24 kB
import { ITheme } from '../../Styling'; import { IVerticalDividerClassNames } from '../Divider/VerticalDivider.types'; import { IContextualMenuItemStyles, IContextualMenuItemStyleProps } from './ContextualMenuItem.types'; import { IContextualMenuSubComponentStyles } from './ContextualMenu.types'; /** * @deprecated in favor of mergeStyles API. */ export interface IContextualMenuClassNames { container?: string; root?: string; list?: string; header?: string; title?: string; subComponentStyles?: IContextualMenuSubComponentStyles; } /** * @deprecated in favor of mergeStyles API. */ export interface IMenuItemClassNames { item?: string; divider?: string; root?: string; linkContent?: string; icon?: string; checkmarkIcon?: string; subMenuIcon?: string; label?: string; secondaryText?: string; splitContainer?: string; splitPrimary?: string; splitMenu?: string; linkContentMenu?: string; screenReaderText?: string; } export declare const getSplitButtonVerticalDividerClassNames: (theme: ITheme) => IVerticalDividerClassNames; /** * @deprecated To be removed in 7.0. * @internal * This is a package-internal method that has been depended on. * It is being kept in this form for backwards compatibility. * It should be cleaned up in 7.0. * * TODO: Audit perf. impact of and potentially remove memoizeFunction. * https://github.com/microsoft/fluentui/issues/5534 */ export declare const getItemClassNames: (theme: ITheme, disabled: boolean, expanded: boolean, checked: boolean, isAnchorLink: boolean, knownIcon: boolean, itemClassName?: string | undefined, dividerClassName?: string | undefined, iconClassName?: string | undefined, subMenuClassName?: string | undefined, primaryDisabled?: boolean | undefined, className?: string | undefined) => IContextualMenuItemStyles; /** * Wrapper function for generating ContextualMenuItem classNames which adheres to * the getStyles API, but invokes memoized className generator function with * primitive values. * * @param props - the ContextualMenuItem style props used to generate its styles. */ export declare const getItemStyles: (props: IContextualMenuItemStyleProps) => IContextualMenuItemStyles;