@kopexa/avatar 14.0.4 → 15.0.0
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 +21 -21
- package/dist/use-avatar.d.ts +21 -21
- package/package.json +4 -4
package/dist/use-avatar.d.mts
CHANGED
|
@@ -41,45 +41,45 @@ declare function useAvatar(originalProps?: UseAvatarProps): {
|
|
|
41
41
|
alt: string;
|
|
42
42
|
slots: {
|
|
43
43
|
root: (slotProps?: ({
|
|
44
|
+
size?: "md" | "2xs" | "xs" | "sm" | "lg" | undefined;
|
|
45
|
+
radius?: "md" | "full" | "sm" | "lg" | "none" | undefined;
|
|
44
46
|
color?: "default" | "primary" | "secondary" | "success" | "warning" | "destructive" | undefined;
|
|
45
|
-
radius?: "none" | "md" | "sm" | "lg" | "full" | undefined;
|
|
46
|
-
size?: "md" | "sm" | "lg" | "2xs" | "xs" | undefined;
|
|
47
47
|
isBordered?: boolean | undefined;
|
|
48
48
|
isDisabled?: boolean | undefined;
|
|
49
49
|
isInGroup?: boolean | undefined;
|
|
50
50
|
isInGridGroup?: boolean | undefined;
|
|
51
51
|
} & tailwind_variants.ClassProp<tailwind_variants.ClassValue>) | undefined) => string;
|
|
52
52
|
img: (slotProps?: ({
|
|
53
|
+
size?: "md" | "2xs" | "xs" | "sm" | "lg" | undefined;
|
|
54
|
+
radius?: "md" | "full" | "sm" | "lg" | "none" | undefined;
|
|
53
55
|
color?: "default" | "primary" | "secondary" | "success" | "warning" | "destructive" | undefined;
|
|
54
|
-
radius?: "none" | "md" | "sm" | "lg" | "full" | undefined;
|
|
55
|
-
size?: "md" | "sm" | "lg" | "2xs" | "xs" | undefined;
|
|
56
56
|
isBordered?: boolean | undefined;
|
|
57
57
|
isDisabled?: boolean | undefined;
|
|
58
58
|
isInGroup?: boolean | undefined;
|
|
59
59
|
isInGridGroup?: boolean | undefined;
|
|
60
60
|
} & tailwind_variants.ClassProp<tailwind_variants.ClassValue>) | undefined) => string;
|
|
61
61
|
fallback: (slotProps?: ({
|
|
62
|
+
size?: "md" | "2xs" | "xs" | "sm" | "lg" | undefined;
|
|
63
|
+
radius?: "md" | "full" | "sm" | "lg" | "none" | undefined;
|
|
62
64
|
color?: "default" | "primary" | "secondary" | "success" | "warning" | "destructive" | undefined;
|
|
63
|
-
radius?: "none" | "md" | "sm" | "lg" | "full" | undefined;
|
|
64
|
-
size?: "md" | "sm" | "lg" | "2xs" | "xs" | undefined;
|
|
65
65
|
isBordered?: boolean | undefined;
|
|
66
66
|
isDisabled?: boolean | undefined;
|
|
67
67
|
isInGroup?: boolean | undefined;
|
|
68
68
|
isInGridGroup?: boolean | undefined;
|
|
69
69
|
} & tailwind_variants.ClassProp<tailwind_variants.ClassValue>) | undefined) => string;
|
|
70
70
|
name: (slotProps?: ({
|
|
71
|
+
size?: "md" | "2xs" | "xs" | "sm" | "lg" | undefined;
|
|
72
|
+
radius?: "md" | "full" | "sm" | "lg" | "none" | undefined;
|
|
71
73
|
color?: "default" | "primary" | "secondary" | "success" | "warning" | "destructive" | undefined;
|
|
72
|
-
radius?: "none" | "md" | "sm" | "lg" | "full" | undefined;
|
|
73
|
-
size?: "md" | "sm" | "lg" | "2xs" | "xs" | undefined;
|
|
74
74
|
isBordered?: boolean | undefined;
|
|
75
75
|
isDisabled?: boolean | undefined;
|
|
76
76
|
isInGroup?: boolean | undefined;
|
|
77
77
|
isInGridGroup?: boolean | undefined;
|
|
78
78
|
} & tailwind_variants.ClassProp<tailwind_variants.ClassValue>) | undefined) => string;
|
|
79
79
|
icon: (slotProps?: ({
|
|
80
|
+
size?: "md" | "2xs" | "xs" | "sm" | "lg" | undefined;
|
|
81
|
+
radius?: "md" | "full" | "sm" | "lg" | "none" | undefined;
|
|
80
82
|
color?: "default" | "primary" | "secondary" | "success" | "warning" | "destructive" | undefined;
|
|
81
|
-
radius?: "none" | "md" | "sm" | "lg" | "full" | undefined;
|
|
82
|
-
size?: "md" | "sm" | "lg" | "2xs" | "xs" | undefined;
|
|
83
83
|
isBordered?: boolean | undefined;
|
|
84
84
|
isDisabled?: boolean | undefined;
|
|
85
85
|
isInGroup?: boolean | undefined;
|
|
@@ -87,52 +87,52 @@ declare function useAvatar(originalProps?: UseAvatarProps): {
|
|
|
87
87
|
} & tailwind_variants.ClassProp<tailwind_variants.ClassValue>) | undefined) => string;
|
|
88
88
|
} & {
|
|
89
89
|
root: (slotProps?: ({
|
|
90
|
+
size?: "md" | "2xs" | "xs" | "sm" | "lg" | undefined;
|
|
91
|
+
radius?: "md" | "full" | "sm" | "lg" | "none" | undefined;
|
|
90
92
|
color?: "default" | "primary" | "secondary" | "success" | "warning" | "destructive" | undefined;
|
|
91
|
-
radius?: "none" | "md" | "sm" | "lg" | "full" | undefined;
|
|
92
|
-
size?: "md" | "sm" | "lg" | "2xs" | "xs" | undefined;
|
|
93
93
|
isBordered?: boolean | undefined;
|
|
94
94
|
isDisabled?: boolean | undefined;
|
|
95
95
|
isInGroup?: boolean | undefined;
|
|
96
96
|
isInGridGroup?: boolean | undefined;
|
|
97
97
|
} & tailwind_variants.ClassProp<tailwind_variants.ClassValue>) | undefined) => string;
|
|
98
98
|
img: (slotProps?: ({
|
|
99
|
+
size?: "md" | "2xs" | "xs" | "sm" | "lg" | undefined;
|
|
100
|
+
radius?: "md" | "full" | "sm" | "lg" | "none" | undefined;
|
|
99
101
|
color?: "default" | "primary" | "secondary" | "success" | "warning" | "destructive" | undefined;
|
|
100
|
-
radius?: "none" | "md" | "sm" | "lg" | "full" | undefined;
|
|
101
|
-
size?: "md" | "sm" | "lg" | "2xs" | "xs" | undefined;
|
|
102
102
|
isBordered?: boolean | undefined;
|
|
103
103
|
isDisabled?: boolean | undefined;
|
|
104
104
|
isInGroup?: boolean | undefined;
|
|
105
105
|
isInGridGroup?: boolean | undefined;
|
|
106
106
|
} & tailwind_variants.ClassProp<tailwind_variants.ClassValue>) | undefined) => string;
|
|
107
107
|
fallback: (slotProps?: ({
|
|
108
|
+
size?: "md" | "2xs" | "xs" | "sm" | "lg" | undefined;
|
|
109
|
+
radius?: "md" | "full" | "sm" | "lg" | "none" | undefined;
|
|
108
110
|
color?: "default" | "primary" | "secondary" | "success" | "warning" | "destructive" | undefined;
|
|
109
|
-
radius?: "none" | "md" | "sm" | "lg" | "full" | undefined;
|
|
110
|
-
size?: "md" | "sm" | "lg" | "2xs" | "xs" | undefined;
|
|
111
111
|
isBordered?: boolean | undefined;
|
|
112
112
|
isDisabled?: boolean | undefined;
|
|
113
113
|
isInGroup?: boolean | undefined;
|
|
114
114
|
isInGridGroup?: boolean | undefined;
|
|
115
115
|
} & tailwind_variants.ClassProp<tailwind_variants.ClassValue>) | undefined) => string;
|
|
116
116
|
name: (slotProps?: ({
|
|
117
|
+
size?: "md" | "2xs" | "xs" | "sm" | "lg" | undefined;
|
|
118
|
+
radius?: "md" | "full" | "sm" | "lg" | "none" | undefined;
|
|
117
119
|
color?: "default" | "primary" | "secondary" | "success" | "warning" | "destructive" | undefined;
|
|
118
|
-
radius?: "none" | "md" | "sm" | "lg" | "full" | undefined;
|
|
119
|
-
size?: "md" | "sm" | "lg" | "2xs" | "xs" | undefined;
|
|
120
120
|
isBordered?: boolean | undefined;
|
|
121
121
|
isDisabled?: boolean | undefined;
|
|
122
122
|
isInGroup?: boolean | undefined;
|
|
123
123
|
isInGridGroup?: boolean | undefined;
|
|
124
124
|
} & tailwind_variants.ClassProp<tailwind_variants.ClassValue>) | undefined) => string;
|
|
125
125
|
icon: (slotProps?: ({
|
|
126
|
+
size?: "md" | "2xs" | "xs" | "sm" | "lg" | undefined;
|
|
127
|
+
radius?: "md" | "full" | "sm" | "lg" | "none" | undefined;
|
|
126
128
|
color?: "default" | "primary" | "secondary" | "success" | "warning" | "destructive" | undefined;
|
|
127
|
-
radius?: "none" | "md" | "sm" | "lg" | "full" | undefined;
|
|
128
|
-
size?: "md" | "sm" | "lg" | "2xs" | "xs" | undefined;
|
|
129
129
|
isBordered?: boolean | undefined;
|
|
130
130
|
isDisabled?: boolean | undefined;
|
|
131
131
|
isInGroup?: boolean | undefined;
|
|
132
132
|
isInGridGroup?: boolean | undefined;
|
|
133
133
|
} & tailwind_variants.ClassProp<tailwind_variants.ClassValue>) | undefined) => string;
|
|
134
134
|
} & {};
|
|
135
|
-
classNames: SlotsToClasses<"
|
|
135
|
+
classNames: SlotsToClasses<"root" | "img" | "fallback" | "name" | "icon"> | undefined;
|
|
136
136
|
name: string | undefined;
|
|
137
137
|
fallback: react.ReactNode;
|
|
138
138
|
getAvatarProps: PropGetter;
|
package/dist/use-avatar.d.ts
CHANGED
|
@@ -41,45 +41,45 @@ declare function useAvatar(originalProps?: UseAvatarProps): {
|
|
|
41
41
|
alt: string;
|
|
42
42
|
slots: {
|
|
43
43
|
root: (slotProps?: ({
|
|
44
|
+
size?: "md" | "2xs" | "xs" | "sm" | "lg" | undefined;
|
|
45
|
+
radius?: "md" | "full" | "sm" | "lg" | "none" | undefined;
|
|
44
46
|
color?: "default" | "primary" | "secondary" | "success" | "warning" | "destructive" | undefined;
|
|
45
|
-
radius?: "none" | "md" | "sm" | "lg" | "full" | undefined;
|
|
46
|
-
size?: "md" | "sm" | "lg" | "2xs" | "xs" | undefined;
|
|
47
47
|
isBordered?: boolean | undefined;
|
|
48
48
|
isDisabled?: boolean | undefined;
|
|
49
49
|
isInGroup?: boolean | undefined;
|
|
50
50
|
isInGridGroup?: boolean | undefined;
|
|
51
51
|
} & tailwind_variants.ClassProp<tailwind_variants.ClassValue>) | undefined) => string;
|
|
52
52
|
img: (slotProps?: ({
|
|
53
|
+
size?: "md" | "2xs" | "xs" | "sm" | "lg" | undefined;
|
|
54
|
+
radius?: "md" | "full" | "sm" | "lg" | "none" | undefined;
|
|
53
55
|
color?: "default" | "primary" | "secondary" | "success" | "warning" | "destructive" | undefined;
|
|
54
|
-
radius?: "none" | "md" | "sm" | "lg" | "full" | undefined;
|
|
55
|
-
size?: "md" | "sm" | "lg" | "2xs" | "xs" | undefined;
|
|
56
56
|
isBordered?: boolean | undefined;
|
|
57
57
|
isDisabled?: boolean | undefined;
|
|
58
58
|
isInGroup?: boolean | undefined;
|
|
59
59
|
isInGridGroup?: boolean | undefined;
|
|
60
60
|
} & tailwind_variants.ClassProp<tailwind_variants.ClassValue>) | undefined) => string;
|
|
61
61
|
fallback: (slotProps?: ({
|
|
62
|
+
size?: "md" | "2xs" | "xs" | "sm" | "lg" | undefined;
|
|
63
|
+
radius?: "md" | "full" | "sm" | "lg" | "none" | undefined;
|
|
62
64
|
color?: "default" | "primary" | "secondary" | "success" | "warning" | "destructive" | undefined;
|
|
63
|
-
radius?: "none" | "md" | "sm" | "lg" | "full" | undefined;
|
|
64
|
-
size?: "md" | "sm" | "lg" | "2xs" | "xs" | undefined;
|
|
65
65
|
isBordered?: boolean | undefined;
|
|
66
66
|
isDisabled?: boolean | undefined;
|
|
67
67
|
isInGroup?: boolean | undefined;
|
|
68
68
|
isInGridGroup?: boolean | undefined;
|
|
69
69
|
} & tailwind_variants.ClassProp<tailwind_variants.ClassValue>) | undefined) => string;
|
|
70
70
|
name: (slotProps?: ({
|
|
71
|
+
size?: "md" | "2xs" | "xs" | "sm" | "lg" | undefined;
|
|
72
|
+
radius?: "md" | "full" | "sm" | "lg" | "none" | undefined;
|
|
71
73
|
color?: "default" | "primary" | "secondary" | "success" | "warning" | "destructive" | undefined;
|
|
72
|
-
radius?: "none" | "md" | "sm" | "lg" | "full" | undefined;
|
|
73
|
-
size?: "md" | "sm" | "lg" | "2xs" | "xs" | undefined;
|
|
74
74
|
isBordered?: boolean | undefined;
|
|
75
75
|
isDisabled?: boolean | undefined;
|
|
76
76
|
isInGroup?: boolean | undefined;
|
|
77
77
|
isInGridGroup?: boolean | undefined;
|
|
78
78
|
} & tailwind_variants.ClassProp<tailwind_variants.ClassValue>) | undefined) => string;
|
|
79
79
|
icon: (slotProps?: ({
|
|
80
|
+
size?: "md" | "2xs" | "xs" | "sm" | "lg" | undefined;
|
|
81
|
+
radius?: "md" | "full" | "sm" | "lg" | "none" | undefined;
|
|
80
82
|
color?: "default" | "primary" | "secondary" | "success" | "warning" | "destructive" | undefined;
|
|
81
|
-
radius?: "none" | "md" | "sm" | "lg" | "full" | undefined;
|
|
82
|
-
size?: "md" | "sm" | "lg" | "2xs" | "xs" | undefined;
|
|
83
83
|
isBordered?: boolean | undefined;
|
|
84
84
|
isDisabled?: boolean | undefined;
|
|
85
85
|
isInGroup?: boolean | undefined;
|
|
@@ -87,52 +87,52 @@ declare function useAvatar(originalProps?: UseAvatarProps): {
|
|
|
87
87
|
} & tailwind_variants.ClassProp<tailwind_variants.ClassValue>) | undefined) => string;
|
|
88
88
|
} & {
|
|
89
89
|
root: (slotProps?: ({
|
|
90
|
+
size?: "md" | "2xs" | "xs" | "sm" | "lg" | undefined;
|
|
91
|
+
radius?: "md" | "full" | "sm" | "lg" | "none" | undefined;
|
|
90
92
|
color?: "default" | "primary" | "secondary" | "success" | "warning" | "destructive" | undefined;
|
|
91
|
-
radius?: "none" | "md" | "sm" | "lg" | "full" | undefined;
|
|
92
|
-
size?: "md" | "sm" | "lg" | "2xs" | "xs" | undefined;
|
|
93
93
|
isBordered?: boolean | undefined;
|
|
94
94
|
isDisabled?: boolean | undefined;
|
|
95
95
|
isInGroup?: boolean | undefined;
|
|
96
96
|
isInGridGroup?: boolean | undefined;
|
|
97
97
|
} & tailwind_variants.ClassProp<tailwind_variants.ClassValue>) | undefined) => string;
|
|
98
98
|
img: (slotProps?: ({
|
|
99
|
+
size?: "md" | "2xs" | "xs" | "sm" | "lg" | undefined;
|
|
100
|
+
radius?: "md" | "full" | "sm" | "lg" | "none" | undefined;
|
|
99
101
|
color?: "default" | "primary" | "secondary" | "success" | "warning" | "destructive" | undefined;
|
|
100
|
-
radius?: "none" | "md" | "sm" | "lg" | "full" | undefined;
|
|
101
|
-
size?: "md" | "sm" | "lg" | "2xs" | "xs" | undefined;
|
|
102
102
|
isBordered?: boolean | undefined;
|
|
103
103
|
isDisabled?: boolean | undefined;
|
|
104
104
|
isInGroup?: boolean | undefined;
|
|
105
105
|
isInGridGroup?: boolean | undefined;
|
|
106
106
|
} & tailwind_variants.ClassProp<tailwind_variants.ClassValue>) | undefined) => string;
|
|
107
107
|
fallback: (slotProps?: ({
|
|
108
|
+
size?: "md" | "2xs" | "xs" | "sm" | "lg" | undefined;
|
|
109
|
+
radius?: "md" | "full" | "sm" | "lg" | "none" | undefined;
|
|
108
110
|
color?: "default" | "primary" | "secondary" | "success" | "warning" | "destructive" | undefined;
|
|
109
|
-
radius?: "none" | "md" | "sm" | "lg" | "full" | undefined;
|
|
110
|
-
size?: "md" | "sm" | "lg" | "2xs" | "xs" | undefined;
|
|
111
111
|
isBordered?: boolean | undefined;
|
|
112
112
|
isDisabled?: boolean | undefined;
|
|
113
113
|
isInGroup?: boolean | undefined;
|
|
114
114
|
isInGridGroup?: boolean | undefined;
|
|
115
115
|
} & tailwind_variants.ClassProp<tailwind_variants.ClassValue>) | undefined) => string;
|
|
116
116
|
name: (slotProps?: ({
|
|
117
|
+
size?: "md" | "2xs" | "xs" | "sm" | "lg" | undefined;
|
|
118
|
+
radius?: "md" | "full" | "sm" | "lg" | "none" | undefined;
|
|
117
119
|
color?: "default" | "primary" | "secondary" | "success" | "warning" | "destructive" | undefined;
|
|
118
|
-
radius?: "none" | "md" | "sm" | "lg" | "full" | undefined;
|
|
119
|
-
size?: "md" | "sm" | "lg" | "2xs" | "xs" | undefined;
|
|
120
120
|
isBordered?: boolean | undefined;
|
|
121
121
|
isDisabled?: boolean | undefined;
|
|
122
122
|
isInGroup?: boolean | undefined;
|
|
123
123
|
isInGridGroup?: boolean | undefined;
|
|
124
124
|
} & tailwind_variants.ClassProp<tailwind_variants.ClassValue>) | undefined) => string;
|
|
125
125
|
icon: (slotProps?: ({
|
|
126
|
+
size?: "md" | "2xs" | "xs" | "sm" | "lg" | undefined;
|
|
127
|
+
radius?: "md" | "full" | "sm" | "lg" | "none" | undefined;
|
|
126
128
|
color?: "default" | "primary" | "secondary" | "success" | "warning" | "destructive" | undefined;
|
|
127
|
-
radius?: "none" | "md" | "sm" | "lg" | "full" | undefined;
|
|
128
|
-
size?: "md" | "sm" | "lg" | "2xs" | "xs" | undefined;
|
|
129
129
|
isBordered?: boolean | undefined;
|
|
130
130
|
isDisabled?: boolean | undefined;
|
|
131
131
|
isInGroup?: boolean | undefined;
|
|
132
132
|
isInGridGroup?: boolean | undefined;
|
|
133
133
|
} & tailwind_variants.ClassProp<tailwind_variants.ClassValue>) | undefined) => string;
|
|
134
134
|
} & {};
|
|
135
|
-
classNames: SlotsToClasses<"
|
|
135
|
+
classNames: SlotsToClasses<"root" | "img" | "fallback" | "name" | "icon"> | undefined;
|
|
136
136
|
name: string | undefined;
|
|
137
137
|
fallback: react.ReactNode;
|
|
138
138
|
getAvatarProps: PropGetter;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kopexa/avatar",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "15.0.0",
|
|
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,12 +28,12 @@
|
|
|
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": "
|
|
31
|
+
"@kopexa/theme": "15.0.0"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@radix-ui/react-avatar": "^1.1.10",
|
|
35
|
-
"@kopexa/react-utils": "
|
|
36
|
-
"@kopexa/shared-utils": "
|
|
35
|
+
"@kopexa/react-utils": "15.0.0",
|
|
36
|
+
"@kopexa/shared-utils": "15.0.0"
|
|
37
37
|
},
|
|
38
38
|
"clean-package": "../../../clean-package.config.json",
|
|
39
39
|
"module": "dist/index.mjs",
|