@@ -4,26 +4,33 @@ import { useComposeRef } from '@rc-component/util/lib/ref';
44import { clsx } from 'clsx' ;
55import * as React from 'react' ;
66import useListPosition from '../hooks/useListPosition' ;
7- import useStack from '../hooks/useStack' ;
8- import type { StackConfig } from '../interface' ;
7+ import useStack , { type StackConfig } from '../hooks/useStack' ;
98import Notification , {
109 type ComponentsType ,
11- type NotificationClassNames ,
10+ type NotificationClassNames as NoticeClassNames ,
1211 type NotificationProps ,
13- type NotificationStyles ,
12+ type NotificationStyles as NoticeStyles ,
1413} from '../Notification' ;
1514import { NotificationContext , type NotificationContextProps } from '../NotificationProvider' ;
1615import Content from './Content' ;
1716
1817export type Placement = 'top' | 'topLeft' | 'topRight' | 'bottom' | 'bottomLeft' | 'bottomRight' ;
19- export type { StackConfig } from '../interface ' ;
18+ export type { StackConfig } from '../hooks/useStack ' ;
2019
2120export interface NotificationListConfig extends Omit < NotificationProps , 'prefixCls' > {
2221 key : React . Key ;
2322 placement ?: Placement ;
2423 times ?: number ;
2524}
2625
26+ export interface NotificationClassNames extends NoticeClassNames {
27+ listContent ?: string ;
28+ }
29+
30+ export interface NotificationStyles extends NoticeStyles {
31+ listContent ?: React . CSSProperties ;
32+ }
33+
2734export interface NotificationListProps {
2835 configList ?: NotificationListConfig [ ] ;
2936 prefixCls ?: string ;
@@ -244,7 +251,13 @@ const NotificationList: React.FC<NotificationListProps> = (props) => {
244251 } }
245252 style = { style }
246253 >
247- < Content listPrefixCls = { listPrefixCls } height = { totalHeight } ref = { contentRef } >
254+ < Content
255+ listPrefixCls = { listPrefixCls }
256+ height = { totalHeight }
257+ className = { classNames ?. listContent }
258+ style = { styles ?. listContent }
259+ ref = { contentRef }
260+ >
248261 < CSSMotionList
249262 component = { false }
250263 keys = { keys }
@@ -292,4 +305,3 @@ const NotificationList: React.FC<NotificationListProps> = (props) => {
292305} ;
293306
294307export default NotificationList ;
295- export type { NotificationClassNames , NotificationStyles } from '../Notification' ;
0 commit comments