1
1
import type { InterfaceBoxProps } from '../../primitives/Box' ;
2
2
import type { IIconButtonProps } from '../../composites/IconButton' ;
3
3
import type { MutableRefObject } from 'react' ;
4
-
5
- import type { CustomProps , ResponsiveValue } from '../../../components/types' ;
6
- import type { ISizes } from '../../../theme/base/sizes' ;
4
+ import type { CustomProps } from '../../../components/types' ;
7
5
import type { IScrollViewProps } from '../../basic/ScrollView' ;
8
6
import type { IFadeProps , ISlideProps } from '../Transitions' ;
9
-
7
+ import type { ThemeComponentSizeType } from '../../../components/types/utils' ;
10
8
export interface InterfaceModalProps extends InterfaceBoxProps < IModalProps > {
11
9
/**
12
10
* If true, the modal will open. Useful for controllable state behaviour
@@ -23,7 +21,7 @@ export interface InterfaceModalProps extends InterfaceBoxProps<IModalProps> {
23
21
/**
24
22
* The size of the modal
25
23
*/
26
- size ?: ResponsiveValue < ISizes | ( string & { } ) | number > ;
24
+ size ?: ThemeComponentSizeType < 'Modal' > ;
27
25
/**
28
26
* The ref of element to receive focus when the modal opens.
29
27
*/
@@ -69,15 +67,15 @@ export interface InterfaceModalProps extends InterfaceBoxProps<IModalProps> {
69
67
/**
70
68
* Props applied on Overlay Animation.
71
69
*/
72
- _backdropFade ?: IFadeProps ;
70
+ _backdropFade ?: Partial < IFadeProps > ;
73
71
/**
74
72
* Props applied on Child Fade Animation.
75
73
*/
76
- _fade ?: IFadeProps ;
74
+ _fade ?: Partial < IFadeProps > ;
77
75
/**
78
76
* Props applied on Child Slide Animation.
79
77
*/
80
- _slide ?: ISlideProps ;
78
+ _slide ?: Partial < ISlideProps > ;
81
79
}
82
80
83
81
export type IModalComponentType = ( (
0 commit comments