@kystverket/styrbord 2.0.4 → 2.1.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.
- package/dist/src/components/kystverket/Header/Header.d.ts +2 -1
- package/dist/src/components/kystverket/Logo/Logo.d.ts +5 -2
- package/dist/src/components/kystverket/Logo/Logo.stories.d.ts +4 -0
- package/dist/style.css +1 -1
- package/dist/style.js +2787 -2748
- package/dist/style.umd.cjs +7 -7
- package/package.json +1 -1
|
@@ -24,6 +24,7 @@ export interface HeaderProps {
|
|
|
24
24
|
title?: string;
|
|
25
25
|
url: string;
|
|
26
26
|
variant?: LogoVariant;
|
|
27
|
+
product?: string;
|
|
27
28
|
};
|
|
28
29
|
applications?: HeaderApplication[];
|
|
29
30
|
links?: HeaderLinkItem[];
|
|
@@ -44,5 +45,5 @@ type HeaderProfile = {
|
|
|
44
45
|
};
|
|
45
46
|
export declare const nameToInitials: (name?: string) => string;
|
|
46
47
|
export declare function MainLinkItem(props: HeaderLinkItemWithOnClick): React.JSX.Element;
|
|
47
|
-
export declare function Header({ logo: { title, variant, url }, links, slots, width, profile, applications, loginHandler, logoutHandler, }: HeaderProps): React.JSX.Element;
|
|
48
|
+
export declare function Header({ logo: { title, variant, product, url }, links, slots, width, profile, applications, loginHandler, logoutHandler, }: Readonly<HeaderProps>): React.JSX.Element;
|
|
48
49
|
export {};
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
export type LogoVariant = '
|
|
1
|
+
export type LogoVariant = 'horizontal' | 'vertical' | 'symbol' | 'horizontal-en' | 'vertical-en';
|
|
2
|
+
export type LogoColor = 'blue' | 'white' | 'black';
|
|
2
3
|
export interface LogoProps {
|
|
3
4
|
className?: string;
|
|
5
|
+
color?: LogoColor;
|
|
4
6
|
variant?: LogoVariant;
|
|
7
|
+
product?: string;
|
|
5
8
|
alt?: string;
|
|
6
9
|
height?: number;
|
|
7
10
|
width?: number;
|
|
8
11
|
}
|
|
9
|
-
export declare function Logo({ className, variant, alt, height, width }: LogoProps): React.JSX.Element;
|
|
12
|
+
export declare function Logo({ product, className, color, variant, alt, height, width, }: Readonly<LogoProps>): React.JSX.Element;
|
|
@@ -12,10 +12,14 @@ type Story = StoryObj<typeof meta>;
|
|
|
12
12
|
export declare const Default: Story;
|
|
13
13
|
export declare const OnlyWidth: Story;
|
|
14
14
|
export declare const OnlyHeight: Story;
|
|
15
|
+
export declare const EnglishVertical: Story;
|
|
16
|
+
export declare const EnglishHorizontal: Story;
|
|
15
17
|
export declare const White: Story;
|
|
18
|
+
export declare const Black: Story;
|
|
16
19
|
export declare const Datakatalog: Story;
|
|
17
20
|
export declare const Fyr: Story;
|
|
18
21
|
export declare const Hais: Story;
|
|
19
22
|
export declare const Pfsa: Story;
|
|
20
23
|
export declare const Saksbehandling: Story;
|
|
21
24
|
export declare const Selvbetjening: Story;
|
|
25
|
+
export declare const SelvbetjeningEnglish: Story;
|