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