@heroui/avatar 2.2.20 → 2.2.22
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.js +1 -1
- package/dist/avatar-group.mjs +3 -3
- package/dist/avatar.js +1 -1
- package/dist/avatar.mjs +2 -2
- package/dist/{chunk-WNF7UL5S.mjs → chunk-5OQ5EBOM.mjs} +1 -1
- package/dist/{chunk-U3J33PF6.mjs → chunk-DPUNBZPN.mjs} +1 -1
- package/dist/{chunk-S5XC7GTZ.mjs → chunk-VWM2HFFA.mjs} +2 -2
- package/dist/index.js +1 -1
- package/dist/index.mjs +3 -3
- package/dist/use-avatar.js +1 -1
- package/dist/use-avatar.mjs +1 -1
- package/package.json +6 -6
package/dist/avatar-group.js
CHANGED
|
@@ -177,7 +177,7 @@ function useAvatar(originalProps = {}) {
|
|
|
177
177
|
isBordered = (_d = groupContext == null ? void 0 : groupContext.isBordered) != null ? _d : false,
|
|
178
178
|
isDisabled = (_e = groupContext == null ? void 0 : groupContext.isDisabled) != null ? _e : false,
|
|
179
179
|
isFocusable = false,
|
|
180
|
-
getInitials = import_shared_utils2.
|
|
180
|
+
getInitials = import_shared_utils2.safeInitials,
|
|
181
181
|
ignoreFallback = false,
|
|
182
182
|
showFallback: showFallbackProp = false,
|
|
183
183
|
ImgComponent = "img",
|
package/dist/avatar-group.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
avatar_group_default
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-5OQ5EBOM.mjs";
|
|
5
|
+
import "./chunk-DPUNBZPN.mjs";
|
|
6
6
|
import "./chunk-25E6VDTZ.mjs";
|
|
7
7
|
import "./chunk-QH65JCLF.mjs";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-VWM2HFFA.mjs";
|
|
9
9
|
import "./chunk-JUJ53SJZ.mjs";
|
|
10
10
|
export {
|
|
11
11
|
avatar_group_default as default
|
package/dist/avatar.js
CHANGED
|
@@ -96,7 +96,7 @@ function useAvatar(originalProps = {}) {
|
|
|
96
96
|
isBordered = (_d = groupContext == null ? void 0 : groupContext.isBordered) != null ? _d : false,
|
|
97
97
|
isDisabled = (_e = groupContext == null ? void 0 : groupContext.isDisabled) != null ? _e : false,
|
|
98
98
|
isFocusable = false,
|
|
99
|
-
getInitials = import_shared_utils.
|
|
99
|
+
getInitials = import_shared_utils.safeInitials,
|
|
100
100
|
ignoreFallback = false,
|
|
101
101
|
showFallback: showFallbackProp = false,
|
|
102
102
|
ImgComponent = "img",
|
package/dist/avatar.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
avatar_default
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-DPUNBZPN.mjs";
|
|
5
5
|
import "./chunk-25E6VDTZ.mjs";
|
|
6
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-VWM2HFFA.mjs";
|
|
7
7
|
import "./chunk-JUJ53SJZ.mjs";
|
|
8
8
|
export {
|
|
9
9
|
avatar_default as default
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
import { avatar } from "@heroui/theme";
|
|
8
8
|
import { useProviderContext } from "@heroui/system";
|
|
9
9
|
import { useDOMRef, filterDOMProps } from "@heroui/react-utils";
|
|
10
|
-
import { clsx,
|
|
10
|
+
import { clsx, dataAttr, mergeProps, safeInitials } from "@heroui/shared-utils";
|
|
11
11
|
import { useFocusRing } from "@react-aria/focus";
|
|
12
12
|
import { useMemo, useCallback } from "react";
|
|
13
13
|
import { useImage } from "@heroui/use-image";
|
|
@@ -33,7 +33,7 @@ function useAvatar(originalProps = {}) {
|
|
|
33
33
|
isBordered = (_d = groupContext == null ? void 0 : groupContext.isBordered) != null ? _d : false,
|
|
34
34
|
isDisabled = (_e = groupContext == null ? void 0 : groupContext.isDisabled) != null ? _e : false,
|
|
35
35
|
isFocusable = false,
|
|
36
|
-
getInitials =
|
|
36
|
+
getInitials = safeInitials,
|
|
37
37
|
ignoreFallback = false,
|
|
38
38
|
showFallback: showFallbackProp = false,
|
|
39
39
|
ImgComponent = "img",
|
package/dist/index.js
CHANGED
|
@@ -104,7 +104,7 @@ function useAvatar(originalProps = {}) {
|
|
|
104
104
|
isBordered = (_d = groupContext == null ? void 0 : groupContext.isBordered) != null ? _d : false,
|
|
105
105
|
isDisabled = (_e = groupContext == null ? void 0 : groupContext.isDisabled) != null ? _e : false,
|
|
106
106
|
isFocusable = false,
|
|
107
|
-
getInitials = import_shared_utils.
|
|
107
|
+
getInitials = import_shared_utils.safeInitials,
|
|
108
108
|
ignoreFallback = false,
|
|
109
109
|
showFallback: showFallbackProp = false,
|
|
110
110
|
ImgComponent = "img",
|
package/dist/index.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
avatar_group_default
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-5OQ5EBOM.mjs";
|
|
5
5
|
import {
|
|
6
6
|
avatar_default
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-DPUNBZPN.mjs";
|
|
8
8
|
import {
|
|
9
9
|
AvatarIcon
|
|
10
10
|
} from "./chunk-25E6VDTZ.mjs";
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
} from "./chunk-QH65JCLF.mjs";
|
|
14
14
|
import {
|
|
15
15
|
useAvatar
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-VWM2HFFA.mjs";
|
|
17
17
|
import {
|
|
18
18
|
AvatarGroupProvider,
|
|
19
19
|
useAvatarGroupContext
|
package/dist/use-avatar.js
CHANGED
|
@@ -62,7 +62,7 @@ function useAvatar(originalProps = {}) {
|
|
|
62
62
|
isBordered = (_d = groupContext == null ? void 0 : groupContext.isBordered) != null ? _d : false,
|
|
63
63
|
isDisabled = (_e = groupContext == null ? void 0 : groupContext.isDisabled) != null ? _e : false,
|
|
64
64
|
isFocusable = false,
|
|
65
|
-
getInitials = import_shared_utils.
|
|
65
|
+
getInitials = import_shared_utils.safeInitials,
|
|
66
66
|
ignoreFallback = false,
|
|
67
67
|
showFallback: showFallbackProp = false,
|
|
68
68
|
ImgComponent = "img",
|
package/dist/use-avatar.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@heroui/avatar",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.22",
|
|
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"
|
|
@@ -31,11 +31,11 @@
|
|
|
31
31
|
"@heroui/system": ">=2.4.18"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@react-aria/interactions": "3.25.
|
|
35
|
-
"@react-aria/focus": "3.21.
|
|
36
|
-
"@heroui/shared-utils": "2.1.
|
|
37
|
-
"@heroui/react-utils": "2.1.
|
|
38
|
-
"@heroui/use-image": "2.1.
|
|
34
|
+
"@react-aria/interactions": "3.25.6",
|
|
35
|
+
"@react-aria/focus": "3.21.2",
|
|
36
|
+
"@heroui/shared-utils": "2.1.12",
|
|
37
|
+
"@heroui/react-utils": "2.1.14",
|
|
38
|
+
"@heroui/use-image": "2.1.13"
|
|
39
39
|
},
|
|
40
40
|
"clean-package": "../../../clean-package.config.json",
|
|
41
41
|
"module": "dist/index.mjs",
|