@kopexa/avatar 2.0.2 → 2.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/use-avatar.d.mts +10 -10
- package/dist/use-avatar.d.ts +10 -10
- package/package.json +2 -2
package/dist/use-avatar.d.mts
CHANGED
|
@@ -37,8 +37,8 @@ declare function useAvatar(originalProps?: UseAvatarProps): {
|
|
|
37
37
|
slots: {
|
|
38
38
|
root: (slotProps?: ({
|
|
39
39
|
color?: "default" | "primary" | "secondary" | "success" | "warning" | "destructive" | undefined;
|
|
40
|
+
radius?: "none" | "md" | "sm" | "full" | "lg" | undefined;
|
|
40
41
|
size?: "md" | "sm" | "lg" | undefined;
|
|
41
|
-
radius?: "none" | "md" | "full" | "sm" | "lg" | undefined;
|
|
42
42
|
isBordered?: boolean | undefined;
|
|
43
43
|
isDisabled?: boolean | undefined;
|
|
44
44
|
isInGroup?: boolean | undefined;
|
|
@@ -46,8 +46,8 @@ declare function useAvatar(originalProps?: UseAvatarProps): {
|
|
|
46
46
|
} & tailwind_variants.ClassProp<tailwind_variants.ClassValue>) | undefined) => string;
|
|
47
47
|
img: (slotProps?: ({
|
|
48
48
|
color?: "default" | "primary" | "secondary" | "success" | "warning" | "destructive" | undefined;
|
|
49
|
+
radius?: "none" | "md" | "sm" | "full" | "lg" | undefined;
|
|
49
50
|
size?: "md" | "sm" | "lg" | undefined;
|
|
50
|
-
radius?: "none" | "md" | "full" | "sm" | "lg" | undefined;
|
|
51
51
|
isBordered?: boolean | undefined;
|
|
52
52
|
isDisabled?: boolean | undefined;
|
|
53
53
|
isInGroup?: boolean | undefined;
|
|
@@ -55,8 +55,8 @@ declare function useAvatar(originalProps?: UseAvatarProps): {
|
|
|
55
55
|
} & tailwind_variants.ClassProp<tailwind_variants.ClassValue>) | undefined) => string;
|
|
56
56
|
fallback: (slotProps?: ({
|
|
57
57
|
color?: "default" | "primary" | "secondary" | "success" | "warning" | "destructive" | undefined;
|
|
58
|
+
radius?: "none" | "md" | "sm" | "full" | "lg" | undefined;
|
|
58
59
|
size?: "md" | "sm" | "lg" | undefined;
|
|
59
|
-
radius?: "none" | "md" | "full" | "sm" | "lg" | undefined;
|
|
60
60
|
isBordered?: boolean | undefined;
|
|
61
61
|
isDisabled?: boolean | undefined;
|
|
62
62
|
isInGroup?: boolean | undefined;
|
|
@@ -64,8 +64,8 @@ declare function useAvatar(originalProps?: UseAvatarProps): {
|
|
|
64
64
|
} & tailwind_variants.ClassProp<tailwind_variants.ClassValue>) | undefined) => string;
|
|
65
65
|
name: (slotProps?: ({
|
|
66
66
|
color?: "default" | "primary" | "secondary" | "success" | "warning" | "destructive" | undefined;
|
|
67
|
+
radius?: "none" | "md" | "sm" | "full" | "lg" | undefined;
|
|
67
68
|
size?: "md" | "sm" | "lg" | undefined;
|
|
68
|
-
radius?: "none" | "md" | "full" | "sm" | "lg" | undefined;
|
|
69
69
|
isBordered?: boolean | undefined;
|
|
70
70
|
isDisabled?: boolean | undefined;
|
|
71
71
|
isInGroup?: boolean | undefined;
|
|
@@ -73,8 +73,8 @@ declare function useAvatar(originalProps?: UseAvatarProps): {
|
|
|
73
73
|
} & tailwind_variants.ClassProp<tailwind_variants.ClassValue>) | undefined) => string;
|
|
74
74
|
icon: (slotProps?: ({
|
|
75
75
|
color?: "default" | "primary" | "secondary" | "success" | "warning" | "destructive" | undefined;
|
|
76
|
+
radius?: "none" | "md" | "sm" | "full" | "lg" | undefined;
|
|
76
77
|
size?: "md" | "sm" | "lg" | undefined;
|
|
77
|
-
radius?: "none" | "md" | "full" | "sm" | "lg" | undefined;
|
|
78
78
|
isBordered?: boolean | undefined;
|
|
79
79
|
isDisabled?: boolean | undefined;
|
|
80
80
|
isInGroup?: boolean | undefined;
|
|
@@ -83,8 +83,8 @@ declare function useAvatar(originalProps?: UseAvatarProps): {
|
|
|
83
83
|
} & {
|
|
84
84
|
root: (slotProps?: ({
|
|
85
85
|
color?: "default" | "primary" | "secondary" | "success" | "warning" | "destructive" | undefined;
|
|
86
|
+
radius?: "none" | "md" | "sm" | "full" | "lg" | undefined;
|
|
86
87
|
size?: "md" | "sm" | "lg" | undefined;
|
|
87
|
-
radius?: "none" | "md" | "full" | "sm" | "lg" | undefined;
|
|
88
88
|
isBordered?: boolean | undefined;
|
|
89
89
|
isDisabled?: boolean | undefined;
|
|
90
90
|
isInGroup?: boolean | undefined;
|
|
@@ -92,8 +92,8 @@ declare function useAvatar(originalProps?: UseAvatarProps): {
|
|
|
92
92
|
} & tailwind_variants.ClassProp<tailwind_variants.ClassValue>) | undefined) => string;
|
|
93
93
|
img: (slotProps?: ({
|
|
94
94
|
color?: "default" | "primary" | "secondary" | "success" | "warning" | "destructive" | undefined;
|
|
95
|
+
radius?: "none" | "md" | "sm" | "full" | "lg" | undefined;
|
|
95
96
|
size?: "md" | "sm" | "lg" | undefined;
|
|
96
|
-
radius?: "none" | "md" | "full" | "sm" | "lg" | undefined;
|
|
97
97
|
isBordered?: boolean | undefined;
|
|
98
98
|
isDisabled?: boolean | undefined;
|
|
99
99
|
isInGroup?: boolean | undefined;
|
|
@@ -101,8 +101,8 @@ declare function useAvatar(originalProps?: UseAvatarProps): {
|
|
|
101
101
|
} & tailwind_variants.ClassProp<tailwind_variants.ClassValue>) | undefined) => string;
|
|
102
102
|
fallback: (slotProps?: ({
|
|
103
103
|
color?: "default" | "primary" | "secondary" | "success" | "warning" | "destructive" | undefined;
|
|
104
|
+
radius?: "none" | "md" | "sm" | "full" | "lg" | undefined;
|
|
104
105
|
size?: "md" | "sm" | "lg" | undefined;
|
|
105
|
-
radius?: "none" | "md" | "full" | "sm" | "lg" | undefined;
|
|
106
106
|
isBordered?: boolean | undefined;
|
|
107
107
|
isDisabled?: boolean | undefined;
|
|
108
108
|
isInGroup?: boolean | undefined;
|
|
@@ -110,8 +110,8 @@ declare function useAvatar(originalProps?: UseAvatarProps): {
|
|
|
110
110
|
} & tailwind_variants.ClassProp<tailwind_variants.ClassValue>) | undefined) => string;
|
|
111
111
|
name: (slotProps?: ({
|
|
112
112
|
color?: "default" | "primary" | "secondary" | "success" | "warning" | "destructive" | undefined;
|
|
113
|
+
radius?: "none" | "md" | "sm" | "full" | "lg" | undefined;
|
|
113
114
|
size?: "md" | "sm" | "lg" | undefined;
|
|
114
|
-
radius?: "none" | "md" | "full" | "sm" | "lg" | undefined;
|
|
115
115
|
isBordered?: boolean | undefined;
|
|
116
116
|
isDisabled?: boolean | undefined;
|
|
117
117
|
isInGroup?: boolean | undefined;
|
|
@@ -119,8 +119,8 @@ declare function useAvatar(originalProps?: UseAvatarProps): {
|
|
|
119
119
|
} & tailwind_variants.ClassProp<tailwind_variants.ClassValue>) | undefined) => string;
|
|
120
120
|
icon: (slotProps?: ({
|
|
121
121
|
color?: "default" | "primary" | "secondary" | "success" | "warning" | "destructive" | undefined;
|
|
122
|
+
radius?: "none" | "md" | "sm" | "full" | "lg" | undefined;
|
|
122
123
|
size?: "md" | "sm" | "lg" | undefined;
|
|
123
|
-
radius?: "none" | "md" | "full" | "sm" | "lg" | undefined;
|
|
124
124
|
isBordered?: boolean | undefined;
|
|
125
125
|
isDisabled?: boolean | undefined;
|
|
126
126
|
isInGroup?: boolean | undefined;
|
package/dist/use-avatar.d.ts
CHANGED
|
@@ -37,8 +37,8 @@ declare function useAvatar(originalProps?: UseAvatarProps): {
|
|
|
37
37
|
slots: {
|
|
38
38
|
root: (slotProps?: ({
|
|
39
39
|
color?: "default" | "primary" | "secondary" | "success" | "warning" | "destructive" | undefined;
|
|
40
|
+
radius?: "none" | "md" | "sm" | "full" | "lg" | undefined;
|
|
40
41
|
size?: "md" | "sm" | "lg" | undefined;
|
|
41
|
-
radius?: "none" | "md" | "full" | "sm" | "lg" | undefined;
|
|
42
42
|
isBordered?: boolean | undefined;
|
|
43
43
|
isDisabled?: boolean | undefined;
|
|
44
44
|
isInGroup?: boolean | undefined;
|
|
@@ -46,8 +46,8 @@ declare function useAvatar(originalProps?: UseAvatarProps): {
|
|
|
46
46
|
} & tailwind_variants.ClassProp<tailwind_variants.ClassValue>) | undefined) => string;
|
|
47
47
|
img: (slotProps?: ({
|
|
48
48
|
color?: "default" | "primary" | "secondary" | "success" | "warning" | "destructive" | undefined;
|
|
49
|
+
radius?: "none" | "md" | "sm" | "full" | "lg" | undefined;
|
|
49
50
|
size?: "md" | "sm" | "lg" | undefined;
|
|
50
|
-
radius?: "none" | "md" | "full" | "sm" | "lg" | undefined;
|
|
51
51
|
isBordered?: boolean | undefined;
|
|
52
52
|
isDisabled?: boolean | undefined;
|
|
53
53
|
isInGroup?: boolean | undefined;
|
|
@@ -55,8 +55,8 @@ declare function useAvatar(originalProps?: UseAvatarProps): {
|
|
|
55
55
|
} & tailwind_variants.ClassProp<tailwind_variants.ClassValue>) | undefined) => string;
|
|
56
56
|
fallback: (slotProps?: ({
|
|
57
57
|
color?: "default" | "primary" | "secondary" | "success" | "warning" | "destructive" | undefined;
|
|
58
|
+
radius?: "none" | "md" | "sm" | "full" | "lg" | undefined;
|
|
58
59
|
size?: "md" | "sm" | "lg" | undefined;
|
|
59
|
-
radius?: "none" | "md" | "full" | "sm" | "lg" | undefined;
|
|
60
60
|
isBordered?: boolean | undefined;
|
|
61
61
|
isDisabled?: boolean | undefined;
|
|
62
62
|
isInGroup?: boolean | undefined;
|
|
@@ -64,8 +64,8 @@ declare function useAvatar(originalProps?: UseAvatarProps): {
|
|
|
64
64
|
} & tailwind_variants.ClassProp<tailwind_variants.ClassValue>) | undefined) => string;
|
|
65
65
|
name: (slotProps?: ({
|
|
66
66
|
color?: "default" | "primary" | "secondary" | "success" | "warning" | "destructive" | undefined;
|
|
67
|
+
radius?: "none" | "md" | "sm" | "full" | "lg" | undefined;
|
|
67
68
|
size?: "md" | "sm" | "lg" | undefined;
|
|
68
|
-
radius?: "none" | "md" | "full" | "sm" | "lg" | undefined;
|
|
69
69
|
isBordered?: boolean | undefined;
|
|
70
70
|
isDisabled?: boolean | undefined;
|
|
71
71
|
isInGroup?: boolean | undefined;
|
|
@@ -73,8 +73,8 @@ declare function useAvatar(originalProps?: UseAvatarProps): {
|
|
|
73
73
|
} & tailwind_variants.ClassProp<tailwind_variants.ClassValue>) | undefined) => string;
|
|
74
74
|
icon: (slotProps?: ({
|
|
75
75
|
color?: "default" | "primary" | "secondary" | "success" | "warning" | "destructive" | undefined;
|
|
76
|
+
radius?: "none" | "md" | "sm" | "full" | "lg" | undefined;
|
|
76
77
|
size?: "md" | "sm" | "lg" | undefined;
|
|
77
|
-
radius?: "none" | "md" | "full" | "sm" | "lg" | undefined;
|
|
78
78
|
isBordered?: boolean | undefined;
|
|
79
79
|
isDisabled?: boolean | undefined;
|
|
80
80
|
isInGroup?: boolean | undefined;
|
|
@@ -83,8 +83,8 @@ declare function useAvatar(originalProps?: UseAvatarProps): {
|
|
|
83
83
|
} & {
|
|
84
84
|
root: (slotProps?: ({
|
|
85
85
|
color?: "default" | "primary" | "secondary" | "success" | "warning" | "destructive" | undefined;
|
|
86
|
+
radius?: "none" | "md" | "sm" | "full" | "lg" | undefined;
|
|
86
87
|
size?: "md" | "sm" | "lg" | undefined;
|
|
87
|
-
radius?: "none" | "md" | "full" | "sm" | "lg" | undefined;
|
|
88
88
|
isBordered?: boolean | undefined;
|
|
89
89
|
isDisabled?: boolean | undefined;
|
|
90
90
|
isInGroup?: boolean | undefined;
|
|
@@ -92,8 +92,8 @@ declare function useAvatar(originalProps?: UseAvatarProps): {
|
|
|
92
92
|
} & tailwind_variants.ClassProp<tailwind_variants.ClassValue>) | undefined) => string;
|
|
93
93
|
img: (slotProps?: ({
|
|
94
94
|
color?: "default" | "primary" | "secondary" | "success" | "warning" | "destructive" | undefined;
|
|
95
|
+
radius?: "none" | "md" | "sm" | "full" | "lg" | undefined;
|
|
95
96
|
size?: "md" | "sm" | "lg" | undefined;
|
|
96
|
-
radius?: "none" | "md" | "full" | "sm" | "lg" | undefined;
|
|
97
97
|
isBordered?: boolean | undefined;
|
|
98
98
|
isDisabled?: boolean | undefined;
|
|
99
99
|
isInGroup?: boolean | undefined;
|
|
@@ -101,8 +101,8 @@ declare function useAvatar(originalProps?: UseAvatarProps): {
|
|
|
101
101
|
} & tailwind_variants.ClassProp<tailwind_variants.ClassValue>) | undefined) => string;
|
|
102
102
|
fallback: (slotProps?: ({
|
|
103
103
|
color?: "default" | "primary" | "secondary" | "success" | "warning" | "destructive" | undefined;
|
|
104
|
+
radius?: "none" | "md" | "sm" | "full" | "lg" | undefined;
|
|
104
105
|
size?: "md" | "sm" | "lg" | undefined;
|
|
105
|
-
radius?: "none" | "md" | "full" | "sm" | "lg" | undefined;
|
|
106
106
|
isBordered?: boolean | undefined;
|
|
107
107
|
isDisabled?: boolean | undefined;
|
|
108
108
|
isInGroup?: boolean | undefined;
|
|
@@ -110,8 +110,8 @@ declare function useAvatar(originalProps?: UseAvatarProps): {
|
|
|
110
110
|
} & tailwind_variants.ClassProp<tailwind_variants.ClassValue>) | undefined) => string;
|
|
111
111
|
name: (slotProps?: ({
|
|
112
112
|
color?: "default" | "primary" | "secondary" | "success" | "warning" | "destructive" | undefined;
|
|
113
|
+
radius?: "none" | "md" | "sm" | "full" | "lg" | undefined;
|
|
113
114
|
size?: "md" | "sm" | "lg" | undefined;
|
|
114
|
-
radius?: "none" | "md" | "full" | "sm" | "lg" | undefined;
|
|
115
115
|
isBordered?: boolean | undefined;
|
|
116
116
|
isDisabled?: boolean | undefined;
|
|
117
117
|
isInGroup?: boolean | undefined;
|
|
@@ -119,8 +119,8 @@ declare function useAvatar(originalProps?: UseAvatarProps): {
|
|
|
119
119
|
} & tailwind_variants.ClassProp<tailwind_variants.ClassValue>) | undefined) => string;
|
|
120
120
|
icon: (slotProps?: ({
|
|
121
121
|
color?: "default" | "primary" | "secondary" | "success" | "warning" | "destructive" | undefined;
|
|
122
|
+
radius?: "none" | "md" | "sm" | "full" | "lg" | undefined;
|
|
122
123
|
size?: "md" | "sm" | "lg" | undefined;
|
|
123
|
-
radius?: "none" | "md" | "full" | "sm" | "lg" | undefined;
|
|
124
124
|
isBordered?: boolean | undefined;
|
|
125
125
|
isDisabled?: boolean | undefined;
|
|
126
126
|
isInGroup?: boolean | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kopexa/avatar",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.4",
|
|
4
4
|
"description": "The Avatar component is used to represent a user, and displays the profile picture, initials or fallback icon.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"avatar"
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"motion": ">=12.23.6",
|
|
29
29
|
"react": ">=19.0.0-rc.0",
|
|
30
30
|
"react-dom": ">=19.0.0-rc.0",
|
|
31
|
-
"@kopexa/theme": "1.6.
|
|
31
|
+
"@kopexa/theme": "1.6.4"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@radix-ui/react-avatar": "^1.1.10",
|