@kopexa/avatar 3.0.5 → 3.0.6

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.
@@ -2,10 +2,10 @@ import './avatar.mjs';
2
2
  import * as react_jsx_runtime from 'react/jsx-runtime';
3
3
  import { UseAvatarGroupProps } from './use-avatar-group.mjs';
4
4
  import './use-avatar.mjs';
5
+ import 'react';
5
6
  import 'tailwind-variants';
6
7
  import '@kopexa/react-utils';
7
8
  import '@kopexa/theme';
8
- import 'react';
9
9
 
10
10
  interface AvatarGroupProps extends UseAvatarGroupProps {
11
11
  }
@@ -2,10 +2,10 @@ import './avatar.js';
2
2
  import * as react_jsx_runtime from 'react/jsx-runtime';
3
3
  import { UseAvatarGroupProps } from './use-avatar-group.js';
4
4
  import './use-avatar.js';
5
+ import 'react';
5
6
  import 'tailwind-variants';
6
7
  import '@kopexa/react-utils';
7
8
  import '@kopexa/theme';
8
- import 'react';
9
9
 
10
10
  interface AvatarGroupProps extends UseAvatarGroupProps {
11
11
  }
@@ -68,6 +68,7 @@ function useAvatar(originalProps = {}) {
68
68
  size = (_c = groupContext == null ? void 0 : groupContext.size) != null ? _c : "md",
69
69
  isBordered = (_d = groupContext == null ? void 0 : groupContext.isBordered) != null ? _d : false,
70
70
  isDisabled = (_e = groupContext == null ? void 0 : groupContext.isDisabled) != null ? _e : false,
71
+ fallback,
71
72
  className,
72
73
  onError,
73
74
  onLoadingStatusChange,
@@ -147,6 +148,7 @@ function useAvatar(originalProps = {}) {
147
148
  slots,
148
149
  classNames,
149
150
  name,
151
+ fallback,
150
152
  getAvatarProps,
151
153
  getImageProps
152
154
  };
@@ -155,30 +157,45 @@ function useAvatar(originalProps = {}) {
155
157
  // src/avatar.tsx
156
158
  var import_jsx_runtime = require("react/jsx-runtime");
157
159
  var Avatar = (props) => {
158
- const { alt, getAvatarProps, getImageProps, slots, classNames, name } = useAvatar(props);
160
+ const {
161
+ alt,
162
+ getAvatarProps,
163
+ getImageProps,
164
+ slots,
165
+ classNames,
166
+ name,
167
+ fallback = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AvatarIcon, {})
168
+ } = useAvatar(props);
159
169
  return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(AvatarPrimitive.Root, { ...getAvatarProps(), children: [
160
170
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AvatarPrimitive.Image, { ...getImageProps() }),
161
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AvatarPrimitive.Fallback, { "data-slot": "avatar-fallback", children: name ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
162
- "span",
163
- {
164
- className: slots.name({
165
- className: classNames == null ? void 0 : classNames.name
166
- }),
167
- role: "img",
168
- "aria-label": alt,
169
- children: (0, import_shared_utils2.getInitials)(name)
170
- }
171
- ) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
172
- "span",
171
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
172
+ AvatarPrimitive.Fallback,
173
173
  {
174
- className: slots.icon({
175
- className: classNames == null ? void 0 : classNames.icon
176
- }),
177
- role: "img",
178
- "aria-label": alt,
179
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AvatarIcon, {})
174
+ "data-slot": "avatar-fallback",
175
+ className: slots.fallback({}),
176
+ children: name ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
177
+ "span",
178
+ {
179
+ className: slots.name({
180
+ className: classNames == null ? void 0 : classNames.name
181
+ }),
182
+ role: "img",
183
+ "aria-label": alt,
184
+ children: (0, import_shared_utils2.getInitials)(name)
185
+ }
186
+ ) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
187
+ "span",
188
+ {
189
+ className: slots.icon({
190
+ className: classNames == null ? void 0 : classNames.icon
191
+ }),
192
+ role: "img",
193
+ "aria-label": alt,
194
+ children: fallback
195
+ }
196
+ )
180
197
  }
181
- ) })
198
+ )
182
199
  ] });
183
200
  };
184
201
  var AvatarIcon = () => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
@@ -1,10 +1,10 @@
1
1
  "use client";
2
2
  import {
3
3
  AvatarGroup
4
- } from "./chunk-HBUPEI6X.mjs";
5
- import "./chunk-KPWT5YIU.mjs";
4
+ } from "./chunk-VSER7GDP.mjs";
5
+ import "./chunk-X3VHBQJQ.mjs";
6
6
  import "./chunk-J37VYVJO.mjs";
7
- import "./chunk-CI55TF4E.mjs";
7
+ import "./chunk-XO5OLLSH.mjs";
8
8
  import "./chunk-FBUAHX2S.mjs";
9
9
  export {
10
10
  AvatarGroup
package/dist/avatar.d.mts CHANGED
@@ -1,9 +1,9 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import { UseAvatarProps } from './use-avatar.mjs';
3
+ import 'react';
3
4
  import 'tailwind-variants';
4
5
  import '@kopexa/react-utils';
5
6
  import '@kopexa/theme';
6
- import 'react';
7
7
 
8
8
  interface AvatarProps extends UseAvatarProps {
9
9
  }
package/dist/avatar.d.ts CHANGED
@@ -1,9 +1,9 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import { UseAvatarProps } from './use-avatar.js';
3
+ import 'react';
3
4
  import 'tailwind-variants';
4
5
  import '@kopexa/react-utils';
5
6
  import '@kopexa/theme';
6
- import 'react';
7
7
 
8
8
  interface AvatarProps extends UseAvatarProps {
9
9
  }
package/dist/avatar.js CHANGED
@@ -66,6 +66,7 @@ function useAvatar(originalProps = {}) {
66
66
  size = (_c = groupContext == null ? void 0 : groupContext.size) != null ? _c : "md",
67
67
  isBordered = (_d = groupContext == null ? void 0 : groupContext.isBordered) != null ? _d : false,
68
68
  isDisabled = (_e = groupContext == null ? void 0 : groupContext.isDisabled) != null ? _e : false,
69
+ fallback,
69
70
  className,
70
71
  onError,
71
72
  onLoadingStatusChange,
@@ -145,6 +146,7 @@ function useAvatar(originalProps = {}) {
145
146
  slots,
146
147
  classNames,
147
148
  name,
149
+ fallback,
148
150
  getAvatarProps,
149
151
  getImageProps
150
152
  };
@@ -153,30 +155,45 @@ function useAvatar(originalProps = {}) {
153
155
  // src/avatar.tsx
154
156
  var import_jsx_runtime = require("react/jsx-runtime");
155
157
  var Avatar = (props) => {
156
- const { alt, getAvatarProps, getImageProps, slots, classNames, name } = useAvatar(props);
158
+ const {
159
+ alt,
160
+ getAvatarProps,
161
+ getImageProps,
162
+ slots,
163
+ classNames,
164
+ name,
165
+ fallback = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AvatarIcon, {})
166
+ } = useAvatar(props);
157
167
  return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(AvatarPrimitive.Root, { ...getAvatarProps(), children: [
158
168
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AvatarPrimitive.Image, { ...getImageProps() }),
159
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AvatarPrimitive.Fallback, { "data-slot": "avatar-fallback", children: name ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
160
- "span",
161
- {
162
- className: slots.name({
163
- className: classNames == null ? void 0 : classNames.name
164
- }),
165
- role: "img",
166
- "aria-label": alt,
167
- children: (0, import_shared_utils2.getInitials)(name)
168
- }
169
- ) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
170
- "span",
169
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
170
+ AvatarPrimitive.Fallback,
171
171
  {
172
- className: slots.icon({
173
- className: classNames == null ? void 0 : classNames.icon
174
- }),
175
- role: "img",
176
- "aria-label": alt,
177
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AvatarIcon, {})
172
+ "data-slot": "avatar-fallback",
173
+ className: slots.fallback({}),
174
+ children: name ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
175
+ "span",
176
+ {
177
+ className: slots.name({
178
+ className: classNames == null ? void 0 : classNames.name
179
+ }),
180
+ role: "img",
181
+ "aria-label": alt,
182
+ children: (0, import_shared_utils2.getInitials)(name)
183
+ }
184
+ ) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
185
+ "span",
186
+ {
187
+ className: slots.icon({
188
+ className: classNames == null ? void 0 : classNames.icon
189
+ }),
190
+ role: "img",
191
+ "aria-label": alt,
192
+ children: fallback
193
+ }
194
+ )
178
195
  }
179
- ) })
196
+ )
180
197
  ] });
181
198
  };
182
199
  var AvatarIcon = () => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
package/dist/avatar.mjs CHANGED
@@ -1,8 +1,8 @@
1
1
  "use client";
2
2
  import {
3
3
  Avatar
4
- } from "./chunk-KPWT5YIU.mjs";
5
- import "./chunk-CI55TF4E.mjs";
4
+ } from "./chunk-X3VHBQJQ.mjs";
5
+ import "./chunk-XO5OLLSH.mjs";
6
6
  import "./chunk-FBUAHX2S.mjs";
7
7
  export {
8
8
  Avatar
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  Avatar
4
- } from "./chunk-KPWT5YIU.mjs";
4
+ } from "./chunk-X3VHBQJQ.mjs";
5
5
  import {
6
6
  useAvatarGroup
7
7
  } from "./chunk-J37VYVJO.mjs";
@@ -1,37 +1,52 @@
1
1
  "use client";
2
2
  import {
3
3
  useAvatar
4
- } from "./chunk-CI55TF4E.mjs";
4
+ } from "./chunk-XO5OLLSH.mjs";
5
5
 
6
6
  // src/avatar.tsx
7
7
  import { getInitials } from "@kopexa/shared-utils";
8
8
  import * as AvatarPrimitive from "@radix-ui/react-avatar";
9
9
  import { jsx, jsxs } from "react/jsx-runtime";
10
10
  var Avatar = (props) => {
11
- const { alt, getAvatarProps, getImageProps, slots, classNames, name } = useAvatar(props);
11
+ const {
12
+ alt,
13
+ getAvatarProps,
14
+ getImageProps,
15
+ slots,
16
+ classNames,
17
+ name,
18
+ fallback = /* @__PURE__ */ jsx(AvatarIcon, {})
19
+ } = useAvatar(props);
12
20
  return /* @__PURE__ */ jsxs(AvatarPrimitive.Root, { ...getAvatarProps(), children: [
13
21
  /* @__PURE__ */ jsx(AvatarPrimitive.Image, { ...getImageProps() }),
14
- /* @__PURE__ */ jsx(AvatarPrimitive.Fallback, { "data-slot": "avatar-fallback", children: name ? /* @__PURE__ */ jsx(
15
- "span",
22
+ /* @__PURE__ */ jsx(
23
+ AvatarPrimitive.Fallback,
16
24
  {
17
- className: slots.name({
18
- className: classNames == null ? void 0 : classNames.name
19
- }),
20
- role: "img",
21
- "aria-label": alt,
22
- children: getInitials(name)
25
+ "data-slot": "avatar-fallback",
26
+ className: slots.fallback({}),
27
+ children: name ? /* @__PURE__ */ jsx(
28
+ "span",
29
+ {
30
+ className: slots.name({
31
+ className: classNames == null ? void 0 : classNames.name
32
+ }),
33
+ role: "img",
34
+ "aria-label": alt,
35
+ children: getInitials(name)
36
+ }
37
+ ) : /* @__PURE__ */ jsx(
38
+ "span",
39
+ {
40
+ className: slots.icon({
41
+ className: classNames == null ? void 0 : classNames.icon
42
+ }),
43
+ role: "img",
44
+ "aria-label": alt,
45
+ children: fallback
46
+ }
47
+ )
23
48
  }
24
- ) : /* @__PURE__ */ jsx(
25
- "span",
26
- {
27
- className: slots.icon({
28
- className: classNames == null ? void 0 : classNames.icon
29
- }),
30
- role: "img",
31
- "aria-label": alt,
32
- children: /* @__PURE__ */ jsx(AvatarIcon, {})
33
- }
34
- ) })
49
+ )
35
50
  ] });
36
51
  };
37
52
  var AvatarIcon = () => /* @__PURE__ */ jsxs(
@@ -29,6 +29,7 @@ function useAvatar(originalProps = {}) {
29
29
  size = (_c = groupContext == null ? void 0 : groupContext.size) != null ? _c : "md",
30
30
  isBordered = (_d = groupContext == null ? void 0 : groupContext.isBordered) != null ? _d : false,
31
31
  isDisabled = (_e = groupContext == null ? void 0 : groupContext.isDisabled) != null ? _e : false,
32
+ fallback,
32
33
  className,
33
34
  onError,
34
35
  onLoadingStatusChange,
@@ -108,6 +109,7 @@ function useAvatar(originalProps = {}) {
108
109
  slots,
109
110
  classNames,
110
111
  name,
112
+ fallback,
111
113
  getAvatarProps,
112
114
  getImageProps
113
115
  };
package/dist/index.d.mts CHANGED
@@ -2,8 +2,8 @@ export { Avatar, AvatarProps } from './avatar.mjs';
2
2
  export { AvatarGroup, AvatarGroupProps } from './avatar-group.mjs';
3
3
  import 'react/jsx-runtime';
4
4
  import './use-avatar.mjs';
5
+ import 'react';
5
6
  import 'tailwind-variants';
6
7
  import '@kopexa/react-utils';
7
8
  import '@kopexa/theme';
8
- import 'react';
9
9
  import './use-avatar-group.mjs';
package/dist/index.d.ts CHANGED
@@ -2,8 +2,8 @@ export { Avatar, AvatarProps } from './avatar.js';
2
2
  export { AvatarGroup, AvatarGroupProps } from './avatar-group.js';
3
3
  import 'react/jsx-runtime';
4
4
  import './use-avatar.js';
5
+ import 'react';
5
6
  import 'tailwind-variants';
6
7
  import '@kopexa/react-utils';
7
8
  import '@kopexa/theme';
8
- import 'react';
9
9
  import './use-avatar-group.js';
package/dist/index.js CHANGED
@@ -69,6 +69,7 @@ function useAvatar(originalProps = {}) {
69
69
  size = (_c = groupContext == null ? void 0 : groupContext.size) != null ? _c : "md",
70
70
  isBordered = (_d = groupContext == null ? void 0 : groupContext.isBordered) != null ? _d : false,
71
71
  isDisabled = (_e = groupContext == null ? void 0 : groupContext.isDisabled) != null ? _e : false,
72
+ fallback,
72
73
  className,
73
74
  onError,
74
75
  onLoadingStatusChange,
@@ -148,6 +149,7 @@ function useAvatar(originalProps = {}) {
148
149
  slots,
149
150
  classNames,
150
151
  name,
152
+ fallback,
151
153
  getAvatarProps,
152
154
  getImageProps
153
155
  };
@@ -156,30 +158,45 @@ function useAvatar(originalProps = {}) {
156
158
  // src/avatar.tsx
157
159
  var import_jsx_runtime = require("react/jsx-runtime");
158
160
  var Avatar = (props) => {
159
- const { alt, getAvatarProps, getImageProps, slots, classNames, name } = useAvatar(props);
161
+ const {
162
+ alt,
163
+ getAvatarProps,
164
+ getImageProps,
165
+ slots,
166
+ classNames,
167
+ name,
168
+ fallback = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AvatarIcon, {})
169
+ } = useAvatar(props);
160
170
  return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(AvatarPrimitive.Root, { ...getAvatarProps(), children: [
161
171
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AvatarPrimitive.Image, { ...getImageProps() }),
162
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AvatarPrimitive.Fallback, { "data-slot": "avatar-fallback", children: name ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
163
- "span",
164
- {
165
- className: slots.name({
166
- className: classNames == null ? void 0 : classNames.name
167
- }),
168
- role: "img",
169
- "aria-label": alt,
170
- children: (0, import_shared_utils2.getInitials)(name)
171
- }
172
- ) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
173
- "span",
172
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
173
+ AvatarPrimitive.Fallback,
174
174
  {
175
- className: slots.icon({
176
- className: classNames == null ? void 0 : classNames.icon
177
- }),
178
- role: "img",
179
- "aria-label": alt,
180
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AvatarIcon, {})
175
+ "data-slot": "avatar-fallback",
176
+ className: slots.fallback({}),
177
+ children: name ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
178
+ "span",
179
+ {
180
+ className: slots.name({
181
+ className: classNames == null ? void 0 : classNames.name
182
+ }),
183
+ role: "img",
184
+ "aria-label": alt,
185
+ children: (0, import_shared_utils2.getInitials)(name)
186
+ }
187
+ ) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
188
+ "span",
189
+ {
190
+ className: slots.icon({
191
+ className: classNames == null ? void 0 : classNames.icon
192
+ }),
193
+ role: "img",
194
+ "aria-label": alt,
195
+ children: fallback
196
+ }
197
+ )
181
198
  }
182
- ) })
199
+ )
183
200
  ] });
184
201
  };
185
202
  var AvatarIcon = () => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
package/dist/index.mjs CHANGED
@@ -1,12 +1,12 @@
1
1
  "use client";
2
2
  import {
3
3
  AvatarGroup
4
- } from "./chunk-HBUPEI6X.mjs";
4
+ } from "./chunk-VSER7GDP.mjs";
5
5
  import {
6
6
  Avatar
7
- } from "./chunk-KPWT5YIU.mjs";
7
+ } from "./chunk-X3VHBQJQ.mjs";
8
8
  import "./chunk-J37VYVJO.mjs";
9
- import "./chunk-CI55TF4E.mjs";
9
+ import "./chunk-XO5OLLSH.mjs";
10
10
  import "./chunk-FBUAHX2S.mjs";
11
11
  export {
12
12
  Avatar,
@@ -1,7 +1,8 @@
1
+ import * as react from 'react';
2
+ import { ComponentProps, RefObject } from 'react';
1
3
  import * as tailwind_variants from 'tailwind-variants';
2
4
  import { PropGetter } from '@kopexa/react-utils';
3
5
  import { SlotsToClasses, AvatarSlots, AvatarVariantProps } from '@kopexa/theme';
4
- import { ComponentProps, RefObject } from 'react';
5
6
 
6
7
  interface Props extends ComponentProps<"span"> {
7
8
  /**
@@ -17,11 +18,15 @@ interface Props extends ComponentProps<"span"> {
17
18
  /**
18
19
  * Image source.
19
20
  */
20
- src?: string;
21
+ src?: string | null;
21
22
  /**
22
23
  * Image alt text.
23
24
  */
24
25
  alt?: string;
26
+ /**
27
+ * Fallback content to render when the image fails to load.
28
+ */
29
+ fallback?: React.ReactNode;
25
30
  classNames?: SlotsToClasses<AvatarSlots>;
26
31
  onLoadingStatusChange?: (status: ImageStatus) => void;
27
32
  /**
@@ -32,7 +37,7 @@ interface Props extends ComponentProps<"span"> {
32
37
  type UseAvatarProps = Props & Omit<AvatarVariantProps, "children" | "isInGroup" | "isInGridGroup">;
33
38
  type ImageStatus = "idle" | "loading" | "loaded" | "error";
34
39
  declare function useAvatar(originalProps?: UseAvatarProps): {
35
- src: string | undefined;
40
+ src: string | null | undefined;
36
41
  alt: string;
37
42
  slots: {
38
43
  root: (slotProps?: ({
@@ -129,6 +134,7 @@ declare function useAvatar(originalProps?: UseAvatarProps): {
129
134
  } & {};
130
135
  classNames: SlotsToClasses<"name" | "img" | "root" | "fallback" | "icon"> | undefined;
131
136
  name: string | undefined;
137
+ fallback: react.ReactNode;
132
138
  getAvatarProps: PropGetter;
133
139
  getImageProps: PropGetter;
134
140
  };
@@ -1,7 +1,8 @@
1
+ import * as react from 'react';
2
+ import { ComponentProps, RefObject } from 'react';
1
3
  import * as tailwind_variants from 'tailwind-variants';
2
4
  import { PropGetter } from '@kopexa/react-utils';
3
5
  import { SlotsToClasses, AvatarSlots, AvatarVariantProps } from '@kopexa/theme';
4
- import { ComponentProps, RefObject } from 'react';
5
6
 
6
7
  interface Props extends ComponentProps<"span"> {
7
8
  /**
@@ -17,11 +18,15 @@ interface Props extends ComponentProps<"span"> {
17
18
  /**
18
19
  * Image source.
19
20
  */
20
- src?: string;
21
+ src?: string | null;
21
22
  /**
22
23
  * Image alt text.
23
24
  */
24
25
  alt?: string;
26
+ /**
27
+ * Fallback content to render when the image fails to load.
28
+ */
29
+ fallback?: React.ReactNode;
25
30
  classNames?: SlotsToClasses<AvatarSlots>;
26
31
  onLoadingStatusChange?: (status: ImageStatus) => void;
27
32
  /**
@@ -32,7 +37,7 @@ interface Props extends ComponentProps<"span"> {
32
37
  type UseAvatarProps = Props & Omit<AvatarVariantProps, "children" | "isInGroup" | "isInGridGroup">;
33
38
  type ImageStatus = "idle" | "loading" | "loaded" | "error";
34
39
  declare function useAvatar(originalProps?: UseAvatarProps): {
35
- src: string | undefined;
40
+ src: string | null | undefined;
36
41
  alt: string;
37
42
  slots: {
38
43
  root: (slotProps?: ({
@@ -129,6 +134,7 @@ declare function useAvatar(originalProps?: UseAvatarProps): {
129
134
  } & {};
130
135
  classNames: SlotsToClasses<"name" | "img" | "root" | "fallback" | "icon"> | undefined;
131
136
  name: string | undefined;
137
+ fallback: react.ReactNode;
132
138
  getAvatarProps: PropGetter;
133
139
  getImageProps: PropGetter;
134
140
  };
@@ -52,6 +52,7 @@ function useAvatar(originalProps = {}) {
52
52
  size = (_c = groupContext == null ? void 0 : groupContext.size) != null ? _c : "md",
53
53
  isBordered = (_d = groupContext == null ? void 0 : groupContext.isBordered) != null ? _d : false,
54
54
  isDisabled = (_e = groupContext == null ? void 0 : groupContext.isDisabled) != null ? _e : false,
55
+ fallback,
55
56
  className,
56
57
  onError,
57
58
  onLoadingStatusChange,
@@ -131,6 +132,7 @@ function useAvatar(originalProps = {}) {
131
132
  slots,
132
133
  classNames,
133
134
  name,
135
+ fallback,
134
136
  getAvatarProps,
135
137
  getImageProps
136
138
  };
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  useAvatar
4
- } from "./chunk-CI55TF4E.mjs";
4
+ } from "./chunk-XO5OLLSH.mjs";
5
5
  import "./chunk-FBUAHX2S.mjs";
6
6
  export {
7
7
  useAvatar
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kopexa/avatar",
3
- "version": "3.0.5",
3
+ "version": "3.0.6",
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": "1.7.5"
31
+ "@kopexa/theme": "1.7.6"
32
32
  },
33
33
  "dependencies": {
34
34
  "@radix-ui/react-avatar": "^1.1.10",
35
- "@kopexa/react-utils": "2.0.7",
36
- "@kopexa/shared-utils": "1.1.6"
35
+ "@kopexa/react-utils": "2.0.8",
36
+ "@kopexa/shared-utils": "1.1.7"
37
37
  },
38
38
  "clean-package": "../../../clean-package.config.json",
39
39
  "module": "dist/index.mjs",