@aic-kits/react 0.12.0 → 0.12.2

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.
@@ -2,8 +2,8 @@ import { default as React, Dispatch, SetStateAction } from 'react';
2
2
  import { HeaderProps } from './types';
3
3
  interface HeaderAuthProps {
4
4
  isSignedIn?: boolean;
5
- isDropdownVisible?: boolean;
6
- setIsDropdownVisible?: Dispatch<SetStateAction<boolean>>;
5
+ isDropdownVisible: boolean;
6
+ setIsDropdownVisible: Dispatch<SetStateAction<boolean>>;
7
7
  userProfile?: HeaderProps['userProfile'];
8
8
  dropdownItems?: HeaderProps['profileDropdownItems'];
9
9
  onProfileClick?: () => void;
@@ -0,0 +1,15 @@
1
+ import { ForwardedRef, ForwardRefExoticComponent } from 'react';
2
+ import { HeaderProps } from './types';
3
+ interface ProfileDropdownProps {
4
+ userProfile: HeaderProps['userProfile'];
5
+ dropdownItems: HeaderProps['profileDropdownItems'];
6
+ maxHeight?: HeaderProps['maxHeight'];
7
+ }
8
+ export interface ProfileDropdownHandle {
9
+ showDropdown: (callback?: () => void) => void;
10
+ hideDropdown: (callback?: () => void) => void;
11
+ }
12
+ export declare const ProfileDropdown: ForwardRefExoticComponent<ProfileDropdownProps & {
13
+ ref?: ForwardedRef<ProfileDropdownHandle>;
14
+ }>;
15
+ export {};
@@ -1,4 +1,4 @@
1
- import { Color } from '../../theme';
1
+ import { Color, Size } from '../../theme';
2
2
  import { BoxProps } from '../Box';
3
3
  export interface NavItemProps {
4
4
  /**
@@ -59,6 +59,10 @@ export interface HeaderProps extends BoxProps {
59
59
  * Profile dropdown items
60
60
  */
61
61
  profileDropdownItems?: NavItemProps[];
62
+ /**
63
+ * Maximum height of the header
64
+ */
65
+ maxHeight?: number | Size;
62
66
  }
63
67
  export interface HeaderHandle {
64
68
  /**