@kystverket/styrbord 2.5.0 → 2.7.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.
@@ -25,3 +25,9 @@ export declare const WithError: Story;
25
25
  export declare const Disabled: Story;
26
26
  export declare const ReadOnly: Story;
27
27
  export declare const Loading: Story;
28
+ /**
29
+ * Optional, required and plain side by side, top-aligned, so any height difference in the label row shows.
30
+ *
31
+ * For obligatoriske felter som ønskes markert med tag, bruker man “warning”-variant.
32
+ */
33
+ export declare const LabelSizes: Story;
@@ -2,6 +2,7 @@ import { InputSize } from '~/main';
2
2
  export interface DatepickerProps {
3
3
  className?: string;
4
4
  loading?: boolean;
5
+ /** Defaults to a fixed width that fits a date. */
5
6
  width?: InputSize;
6
7
  optional?: boolean | string;
7
8
  required?: boolean | string;
@@ -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 {};