@epam/ai-dial-chat-shared 1.3.0-dev.214 → 1.3.0-dev.223
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.
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { AvatarColorClasses } from '@epam/ai-dial-ui-kit';
|
|
1
2
|
import { FC } from 'react';
|
|
2
3
|
/** Props for `InitialsAvatar`. */
|
|
3
4
|
export interface InitialsAvatarProps {
|
|
@@ -5,6 +6,8 @@ export interface InitialsAvatarProps {
|
|
|
5
6
|
name: string;
|
|
6
7
|
/** Badge width and height in pixels. */
|
|
7
8
|
size: number;
|
|
9
|
+
/** Explicit colour pair overriding the deterministic pick from `name` (an `AVATAR_PALETTE` entry); omit to keep the name-derived colour. */
|
|
10
|
+
color?: AvatarColorClasses;
|
|
8
11
|
/** Extra classes applied to the root element (e.g. `'shrink-0'`). */
|
|
9
12
|
className?: string;
|
|
10
13
|
/** Type-scale class for the initials. Defaults to none: the initials are semibold at 40% of `size`. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InitialsAvatar.d.ts","sourceRoot":"","sources":["../../../src/components/InitialsAvatar/InitialsAvatar.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"InitialsAvatar.d.ts","sourceRoot":"","sources":["../../../src/components/InitialsAvatar/InitialsAvatar.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,kBAAkB,EACxB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AAEhC,kCAAkC;AAClC,MAAM,WAAW,mBAAmB;IAClC,gFAAgF;IAChF,IAAI,EAAE,MAAM,CAAC;IACb,wCAAwC;IACxC,IAAI,EAAE,MAAM,CAAC;IACb,4IAA4I;IAC5I,KAAK,CAAC,EAAE,kBAAkB,CAAC;IAC3B,qEAAqE;IACrE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,uGAAuG;IACvG,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,oGAAoG;AACpG,eAAO,MAAM,cAAc,EAAE,EAAE,CAAC,mBAAmB,CAgBlD,CAAC"}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { Avatar as e, AvatarShape as t } from "@epam/ai-dial-ui-kit";
|
|
2
2
|
import { jsx as n } from "react/jsx-runtime";
|
|
3
3
|
//#region src/components/InitialsAvatar/InitialsAvatar.tsx
|
|
4
|
-
var r = ({ name: r, size: i,
|
|
4
|
+
var r = ({ name: r, size: i, color: a, className: o, textClassName: s }) => /* @__PURE__ */ n(e, {
|
|
5
5
|
name: r,
|
|
6
6
|
size: i,
|
|
7
7
|
shape: t.Square,
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
color: a,
|
|
9
|
+
className: o,
|
|
10
|
+
textClassName: s
|
|
10
11
|
});
|
|
11
12
|
//#endregion
|
|
12
13
|
export { r as InitialsAvatar };
|
package/package.json
CHANGED