@aic-kits/react 0.9.0 → 0.10.1
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.
|
@@ -3,9 +3,10 @@ import { HeaderProps } from './types';
|
|
|
3
3
|
interface HeaderAuthProps {
|
|
4
4
|
isSignedIn?: boolean;
|
|
5
5
|
userProfile?: HeaderProps['userProfile'];
|
|
6
|
+
dropdownItems?: HeaderProps['profileDropdownItems'];
|
|
7
|
+
onProfileClick?: () => void;
|
|
6
8
|
onSignInClick?: () => void;
|
|
7
9
|
onRegisterClick?: () => void;
|
|
8
|
-
onProfileClick?: () => void;
|
|
9
10
|
}
|
|
10
11
|
export declare const HeaderAuth: React.FC<HeaderAuthProps>;
|
|
11
12
|
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
1
|
import { NavItemProps } from './types';
|
|
3
|
-
export declare const NavItem:
|
|
2
|
+
export declare const NavItem: ({ label, isActive, onClick, size, }: NavItemProps & {
|
|
3
|
+
size?: "large" | "medium";
|
|
4
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -33,6 +33,7 @@ export interface HeaderProps extends BoxProps {
|
|
|
33
33
|
userProfile?: {
|
|
34
34
|
name?: string;
|
|
35
35
|
avatar?: string;
|
|
36
|
+
email?: string;
|
|
36
37
|
};
|
|
37
38
|
/**
|
|
38
39
|
* Called when the logo is clicked
|
|
@@ -54,4 +55,8 @@ export interface HeaderProps extends BoxProps {
|
|
|
54
55
|
* Called when the profile button is clicked
|
|
55
56
|
*/
|
|
56
57
|
onProfileClick?: () => void;
|
|
58
|
+
/**
|
|
59
|
+
* Profile dropdown items
|
|
60
|
+
*/
|
|
61
|
+
profileDropdownItems?: NavItemProps[];
|
|
57
62
|
}
|