@@ -2,9 +2,8 @@ import type { InterfaceBoxProps } from '../../primitives/Box';
2
2
import type { IImageProps } from '../../primitives/Image' ;
3
3
import type { ImageSourcePropType } from 'react-native' ;
4
4
import type { MutableRefObject } from 'react' ;
5
- import type { CustomProps , ResponsiveValue } from '../../../components/types' ;
6
- import type { ISizes } from '../../../theme/base/sizes' ;
7
-
5
+ import type { CustomProps } from '../../../components/types' ;
6
+ import type { ThemeComponentSizeType } from '../../../components/types/utils' ;
8
7
export interface InterfaceAvatarProps extends InterfaceBoxProps < IAvatarProps > {
9
8
/**
10
9
* The image source of the avatar.
@@ -14,11 +13,11 @@ export interface InterfaceAvatarProps extends InterfaceBoxProps<IAvatarProps> {
14
13
* The size of the avatar
15
14
* @default md
16
15
*/
17
- size ?: ResponsiveValue < ISizes | ( string & { } ) | number > ;
16
+ size ?: ThemeComponentSizeType < 'Avatar' > ;
18
17
/**
19
18
* For providing props to Image component inside Avatar
20
19
*/
21
- _image ?: IImageProps ;
20
+ _image ?: Partial < IImageProps > ;
22
21
/**
23
22
* ref to be attached to Avatar wrapper
24
23
*/
@@ -50,11 +49,11 @@ export interface IAvatarGroupProps extends IAvatarProps {
50
49
/**
51
50
* For providing props to all Avatar in that Avatar.Group
52
51
*/
53
- _avatar ?: IAvatarProps ;
52
+ _avatar ?: Partial < IAvatarProps > ;
54
53
/**
55
54
* For providing props to the Avatar that shows the count of remaining Avatars that are not visible when max is applied.
56
55
*/
57
- _hiddenAvatarPlaceholder ?: IAvatarProps ;
56
+ _hiddenAvatarPlaceholder ?: Partial < IAvatarProps > ;
58
57
}
59
58
60
59
export type IAvatarComponentType = ( (
0 commit comments