/** @module @airtable/blocks/ui: Dialog */ /** */ import * as PropTypes from 'prop-types'; import * as React from 'react'; import { BorderRadiusProps, DimensionsSetProps, DisplayProps, FlexContainerSetProps, FlexItemSetProps, PositionSetProps, SpacingSetProps } from './system'; import { TooltipAnchorProps } from './types/tooltip_anchor_props'; /** * Props for the {@link DialogCloseButton} component. Also accepts: * * {@link DialogCloseButtonStyleProps} * * @noInheritDoc */ export interface DialogCloseButtonProps extends TooltipAnchorProps { /** `className`s to apply to the close button, separated by spaces. */ className?: string; /** Styles to apply to the close button. */ style?: React.CSSProperties; /** Indicates if the button can be focused and if/where it participates in sequential keyboard navigation. */ tabIndex?: number; /** The contents of the close button. */ children?: React.ReactNode | string; } /** * Style props for the {@link DialogCloseButton} component. Accepts: * * {@link BorderRadiusProps} * * {@link DimensionsSetProps} * * {@link DisplayProps} * * {@link FlexContainerSetProps} * * {@link FlexItemSetProps} * * {@link PositionSetProps} * * {@link SpacingSetProps} * * @noInheritDoc */ export interface DialogCloseButtonStyleProps extends BorderRadiusProps, DimensionsSetProps, DisplayProps, FlexContainerSetProps, FlexItemSetProps, PositionSetProps, SpacingSetProps { } /** * A button that closes {@link Dialog}. Accessed via `Dialog.CloseButton`. */ export declare class DialogCloseButton extends React.Component { /** @hidden */ static propTypes: { onMouseEnter: PropTypes.Requireable<(...args: any[]) => any>; onMouseLeave: PropTypes.Requireable<(...args: any[]) => any>; onClick: PropTypes.Requireable<(...args: any[]) => any>; hasOnClick: PropTypes.Requireable; className: PropTypes.Requireable; style: PropTypes.Requireable; tabIndex: PropTypes.Requireable; children: PropTypes.Requireable; }; /** @hidden */ static contextTypes: { onDialogClose: PropTypes.Requireable<(...args: any[]) => any>; }; /** @hidden */ constructor(props: DialogCloseButtonProps); /** @internal */ _onClick(e: React.MouseEvent): void; /** @internal */ _onKeyDown(e: React.KeyboardEvent): void; /** @hidden */ render(): JSX.Element; } declare const _default: React.RefForwardingComponent>; export default _default;