@@ -2,7 +2,10 @@ import type { IBoxProps } from '../../primitives/Box';
2
2
import type { IIconButtonProps } from '../IconButton' ;
3
3
import type { MutableRefObject } from 'react' ;
4
4
import type { IFadeProps , ISlideProps } from '../Transitions' ;
5
- import type { CustomProps } from '../../../components/types/utils' ;
5
+ import type {
6
+ CustomProps ,
7
+ ThemeComponentSizeType ,
8
+ } from '../../../components/types/utils' ;
6
9
7
10
export interface InterfaceAlertDialogProps extends IBoxProps {
8
11
/**
@@ -20,7 +23,7 @@ export interface InterfaceAlertDialogProps extends IBoxProps {
20
23
/**
21
24
* The size of the AlertDialog
22
25
*/
23
- size ?: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'full' | number | string ;
26
+ size ?: ThemeComponentSizeType < 'AlertDialog' > ; // 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'full' | number | string;
24
27
/**
25
28
* The ref of element that is least destructive child of the AlertDialog.
26
29
*/
@@ -65,15 +68,15 @@ export interface InterfaceAlertDialogProps extends IBoxProps {
65
68
/**
66
69
* Props applied on Overlay Animation.
67
70
*/
68
- _backdropFade ?: IFadeProps ;
71
+ _backdropFade ?: Partial < IFadeProps > ;
69
72
/**
70
73
* Props applied on Child Fade Animation.
71
74
*/
72
- _fade ?: IFadeProps ;
75
+ _fade ?: Partial < IFadeProps > ;
73
76
/**
74
77
* Props applied on Child Slide Animation.
75
78
*/
76
- _slide ?: ISlideProps ;
79
+ _slide ?: Partial < ISlideProps > ;
77
80
/**
78
81
* Sets the animation type
79
82
* @default "fade"
0 commit comments