import * as React from 'react'; import { IComponent } from '@uifabric/foundation/lib/next/IComponent'; import { IRawFontStyle, IRawStyleBase } from '@uifabric/merge-styles/lib/IRawStyleBase'; import { ITextSlot } from 'office-ui-fabric-react'; import { IComponentStyles, ISlottableProps, ISlotProp, IStyleableComponentProps } from '../../Foundation'; import { IFontIconSlot } from '../../utilities/factoryComponents.types'; import { IBaseProps } from '../../Utilities'; import { IActionable, IActionableProps, IActionableSlots, IActionableTokens, IActionableViewProps } from './Actionable/Actionable.types'; /** * @deprecated * {@docCategory Button} */ export declare type IButtonComponent = IComponent; /** * @deprecated * {@docCategory Button} */ export declare type IButtonTokenReturnType = ReturnType>; /** * @deprecated * {@docCategory Button} */ export declare type IButtonStylesReturnType = ReturnType>; /** * @deprecated * {@docCategory Button} */ export declare type IButtonSlot = ISlotProp; /** * @deprecated * {@docCategory Button} */ export interface IButtonSlots extends IActionableSlots { /** * Defines the text that is displayed inside the Button. * @deprecated */ content?: ITextSlot; /** * Defines the icon that is displayed next to the text inside the Button. * @deprecated */ icon?: IFontIconSlot; } /** * @deprecated * {@docCategory Button} */ export interface IButton extends IActionable { } export declare type INativeButtonProps = Omit, 'content'>; /** * @deprecated This component was experimental and is not longer being developed on, nor will it be supported in the * future. * {@docCategory Button} */ export interface IButtonProps extends ISlottableProps, Pick, IStyleableComponentProps, IBaseProps, INativeButtonProps { /** * Defines whether the Button should be circular. * In general, circular Buttons should not specify the menu and container slots. * @defaultvalue false * @deprecated */ circular?: boolean; /** * Defines whether the visual representation of the Button should be emphasized. * @defaultvalue false * @deprecated */ primary?: boolean; } /** * @deprecated * {@docCategory Button} */ export interface IButtonViewProps extends Pick, IButtonProps { } /** * @deprecated * {@docCategory Button} */ export interface IButtonTokens extends IActionableTokens { /** * Defines how far should the background extend within the Button when the focus is on it. * @deprecated */ backgroundClipFocused?: IRawStyleBase['backgroundClip']; /** * Defines the border color of the Button when the focus is on it. * @deprecated */ borderColorFocused?: string; /** * Defines the border style of the Button when the focus is on it. * @deprecated */ borderStyleFocused?: string; /** * Defines the border width of the Button when the focus is on it. * @deprecated */ borderWidthFocused?: number | string; /** * Defines the padding of the Button, between the Button border and contents, when the focus is on the Button. * @deprecated */ contentPaddingFocused?: number | string; /** * Defines the icon color of the Button when in high contrast mode. * @deprecated */ highContrastIconColor?: string; /** * Defines the icon color of the Button when it is in a hovered state and in high contrast mode. * @deprecated */ highContrastIconColorHovered?: string; /** * Defines the icon color of the Button when it is in an active state and in high contrast mode. * @deprecated */ highContrastIconColorPressed?: string; /** * Defines the icon color of the Button. * @deprecated */ iconColor?: string; /** * Defines the icon color of the Button when it is in a hovered state. * @deprecated */ iconColorHovered?: string; /** * Defines the icon color of the Button when it is in an active state. * @deprecated */ iconColorPressed?: string; /** * Defines the size of the icon inside the Button. * @deprecated */ iconSize?: number | string; /** * Defines the font weight of the icon inside the Button. * @deprecated */ iconWeight?: IRawFontStyle['fontWeight']; } /** * @deprecated * {@docCategory Button} */ export declare type IButtonStyles = IComponentStyles;