@@ -12,39 +12,39 @@ import type { FlowbiteAvatarGroupCounterTheme } from "./AvatarGroupCounter";
12
12
import { AvatarGroupCounter } from "./AvatarGroupCounter" ;
13
13
import { avatarTheme } from "./theme" ;
14
14
15
- export interface FlowbiteAvatarTheme {
16
- root : FlowbiteAvatarRootTheme ;
15
+ export interface AvatarTheme {
16
+ root : AvatarRootTheme ;
17
17
group : FlowbiteAvatarGroupTheme ;
18
18
groupCounter : FlowbiteAvatarGroupCounterTheme ;
19
19
}
20
20
21
- export interface FlowbiteAvatarRootTheme {
21
+ export interface AvatarRootTheme {
22
22
base : string ;
23
23
bordered : string ;
24
24
color : AvatarColors ;
25
- img : FlowbiteAvatarImageTheme ;
26
- initials : FlowbiteAvatarInitialsTheme ;
25
+ img : AvatarImageTheme ;
26
+ initials : AvatarInitialsTheme ;
27
27
rounded : string ;
28
28
size : AvatarSizes ;
29
29
stacked : string ;
30
- status : FlowbiteAvatarStatusTheme ;
30
+ status : AvatarStatusTheme ;
31
31
statusPosition : FlowbitePositions ;
32
32
}
33
33
34
- export interface FlowbiteAvatarImageTheme extends FlowbiteBoolean {
34
+ export interface AvatarImageTheme extends FlowbiteBoolean {
35
35
base : string ;
36
36
placeholder : string ;
37
37
}
38
38
39
- export interface FlowbiteAvatarStatusTheme {
39
+ export interface AvatarStatusTheme {
40
40
away : string ;
41
41
base : string ;
42
42
busy : string ;
43
43
offline : string ;
44
44
online : string ;
45
45
}
46
46
47
- export interface FlowbiteAvatarInitialsTheme {
47
+ export interface AvatarInitialsTheme {
48
48
base : string ;
49
49
text : string ;
50
50
}
@@ -75,8 +75,8 @@ export interface AvatarProps extends Omit<ComponentProps<"div">, "color"> {
75
75
status ?: "away" | "busy" | "offline" | "online" ;
76
76
statusPosition ?: keyof FlowbitePositions ;
77
77
placeholderInitials ?: string ;
78
- theme ?: DeepPartial < FlowbiteAvatarTheme > ;
79
- resetTheme ?: ResetTheme < FlowbiteAvatarTheme > ;
78
+ theme ?: DeepPartial < AvatarTheme > ;
79
+ resetTheme ?: ResetTheme < AvatarTheme > ;
80
80
}
81
81
82
82
const AvatarComponent : FC < AvatarProps > = ( {
0 commit comments