@kystverket/styrbord 2.5.0 → 2.6.0

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.
@@ -41,6 +41,10 @@ export interface HeaderProps {
41
41
  type HeaderProfile = {
42
42
  name: string;
43
43
  department?: string;
44
+ /**
45
+ * URL of a profile picture. Falls back to initials when unset or when the image fails to load.
46
+ */
47
+ image?: string;
44
48
  avatarStyle?: Pick<AvatarProps, 'data-color' | 'data-color-variant' | 'border-style'>;
45
49
  };
46
50
  export declare const nameToInitials: (name?: string) => string;
@@ -27,4 +27,5 @@ export declare const Selvbetjening: Story;
27
27
  export declare const medProfilOgMenyItems: Story;
28
28
  export declare const medMenyItems: Story;
29
29
  export declare const medProfil: Story;
30
+ export declare const medProfilbilde: Story;
30
31
  export declare const medProfilLenker: Story;
@@ -0,0 +1,6 @@
1
+ import { HeaderProps } from './Header';
2
+ type HeaderAvatarProps = {
3
+ profile: NonNullable<HeaderProps['profile']>;
4
+ };
5
+ export declare function HeaderAvatar({ profile }: HeaderAvatarProps): React.JSX.Element;
6
+ export {};