antd
Version:
An enterprise-class UI design language and React components implementation
40 lines (39 loc) • 1.81 kB
TypeScript
import * as React from 'react';
import type { NoticeProps } from '@rc-component/notification/lib/Notice';
import type { SemanticClassNames, SemanticClassNamesType, SemanticStyles, SemanticStylesType } from '../_util/hooks';
import type { IconType, NotificationSemantic } from './interface';
export type PurePanelClassNamesType = SemanticClassNamesType<PurePanelProps, NotificationSemantic>;
export type PurePanelStylesType = SemanticStylesType<PurePanelProps, NotificationSemantic>;
export declare const TypeIcon: {
info: React.JSX.Element;
success: React.JSX.Element;
error: React.JSX.Element;
warning: React.JSX.Element;
loading: React.JSX.Element;
};
export declare function getCloseIcon(prefixCls: string, closeIcon?: React.ReactNode): React.ReactNode;
export interface PureContentProps {
prefixCls: string;
icon?: React.ReactNode;
/** @deprecated Please use `title` instead */
message?: React.ReactNode;
title?: React.ReactNode;
description?: React.ReactNode;
/** @deprecated Please use `actions` instead */
btn?: React.ReactNode;
actions?: React.ReactNode;
type?: IconType;
role?: 'alert' | 'status';
classNames: SemanticClassNames<NotificationSemantic>;
styles: SemanticStyles<NotificationSemantic>;
}
export declare const PureContent: React.FC<PureContentProps>;
export interface PurePanelProps extends Omit<NoticeProps, 'prefixCls' | 'eventKey' | 'classNames' | 'styles'>, Omit<PureContentProps, 'prefixCls' | 'children' | 'classNames' | 'styles'> {
prefixCls?: string;
classNames?: PurePanelClassNamesType;
styles?: PurePanelStylesType;
closeIcon?: React.ReactNode;
}
/** @private Internal Component. Do not use in your production. */
declare const PurePanel: React.FC<PurePanelProps>;
export default PurePanel;