@nextelco/common-ui 2.1.3 → 2.1.4

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.
@@ -4,6 +4,8 @@ interface Props {
4
4
  name?: string | null;
5
5
  email?: string | null;
6
6
  className?: string;
7
+ /** Passa para UserAvatar: cartão de detalhes em hover. Default: off. */
8
+ showCard?: boolean;
7
9
  }
8
10
  /**
9
11
  * Avatar com a foto real do MS Graph (por oid). Fallback: iniciais (UserAvatar).
@@ -11,5 +13,5 @@ interface Props {
11
13
  *
12
14
  * Peers necessários: @azure/msal-react, @azure/msal-browser.
13
15
  */
14
- export default function PhotoAvatar({ oid, name, email, className }: Props): React.JSX.Element;
16
+ export default function PhotoAvatar({ oid, name, email, className, showCard }: Props): React.JSX.Element;
15
17
  export {};
@@ -7,11 +7,13 @@ interface UserAvatarProps {
7
7
  jobTitle?: string | null;
8
8
  department?: string | null;
9
9
  className?: string;
10
+ /** Mostra o cartão de detalhes em hover (foto ampliada + nome/email). Default: off. */
11
+ showCard?: boolean;
10
12
  }
11
13
  /**
12
14
  * Avatar de utilizador: mostra a foto (se disponível) ou as iniciais, com um
13
15
  * cartão de detalhes em hover (via portal). Usa classes Tailwind — a app
14
16
  * consumidora é responsável por gerar o CSS Tailwind.
15
17
  */
16
- export default function UserAvatar({ name, photo, email, company, jobTitle, department, className, }: UserAvatarProps): React.JSX.Element;
18
+ export default function UserAvatar({ name, photo, email, company, jobTitle, department, className, showCard, }: UserAvatarProps): React.JSX.Element;
17
19
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nextelco/common-ui",
3
- "version": "2.1.3",
3
+ "version": "2.1.4",
4
4
  "description": "",
5
5
  "main": "dist/bundle.js",
6
6
  "types": "dist/types/index.d.ts",