first commit

This commit is contained in:
rayd1o
2026-03-05 11:46:58 +08:00
commit e7033775d8
20657 changed files with 1988940 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
import * as React from 'react';
import type { ReactElement } from 'react';
import type { CSSMotionProps } from 'rc-motion';
import type { OpenConfig, Placement, StackConfig } from './interface';
export interface NotificationsProps {
prefixCls?: string;
motion?: CSSMotionProps | ((placement: Placement) => CSSMotionProps);
container?: HTMLElement | ShadowRoot;
maxCount?: number;
className?: (placement: Placement) => string;
style?: (placement: Placement) => React.CSSProperties;
onAllRemoved?: VoidFunction;
stack?: StackConfig;
renderNotifications?: (node: ReactElement, info: {
prefixCls: string;
key: React.Key;
}) => ReactElement;
}
export interface NotificationsRef {
open: (config: OpenConfig) => void;
close: (key: React.Key) => void;
destroy: () => void;
}
declare const Notifications: React.ForwardRefExoticComponent<NotificationsProps & React.RefAttributes<NotificationsRef>>;
export default Notifications;