@aic-kits/react 0.34.5 → 0.34.7

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.
@@ -0,0 +1,16 @@
1
+ import { default as React } from 'react';
2
+ export interface HeaderSearchProps {
3
+ /**
4
+ * Called when the search icon is clicked
5
+ */
6
+ onSearchClick?: () => void;
7
+ /**
8
+ * Whether the search is currently active
9
+ */
10
+ isSearchActive?: boolean;
11
+ /**
12
+ * Whether the search is loading
13
+ */
14
+ isSearchLoading?: boolean;
15
+ }
16
+ export declare const HeaderSearch: React.FC<HeaderSearchProps>;
@@ -5,4 +5,4 @@ export interface NavItemContainerProps extends NavItemProps {
5
5
  onMouseEnter?: () => void;
6
6
  onToggleDropdown?: () => void;
7
7
  }
8
- export declare const NavItem: ({ label, icon: IconComponent, iconSize, isActive, isLoading, dropdownItems, onClick, size, isDropdownOpen, isDropdownItem, onMouseEnter, onToggleDropdown, paddingX, paddingY, }: NavItemContainerProps) => import("react/jsx-runtime").JSX.Element;
8
+ export declare const NavItem: ({ label, icon, iconSize, isActive, isLoading, dropdownItems, onClick, size, isDropdownOpen, isDropdownItem, onMouseEnter, onToggleDropdown, paddingX, paddingY, isRound, }: NavItemContainerProps) => import("react/jsx-runtime").JSX.Element;
@@ -6,4 +6,5 @@ export declare const Header: ForwardRefExoticComponent<HeaderProps & {
6
6
  export * from './types';
7
7
  export * from './HeaderLogo';
8
8
  export * from './HeaderNav';
9
+ export * from './HeaderSearch';
9
10
  export * from './HeaderAuth';
@@ -13,7 +13,7 @@ export interface NavItemProps {
13
13
  /**
14
14
  * Size of the icon in pixels. Overrides the default theme icon size.
15
15
  */
16
- iconSize?: number;
16
+ iconSize?: Size | number;
17
17
  /**
18
18
  * Whether this navigation item is currently active
19
19
  */
@@ -46,6 +46,10 @@ export interface NavItemProps {
46
46
  * Size of the navigation item
47
47
  */
48
48
  size?: 'large' | 'medium';
49
+ /**
50
+ * Whether the navigation item should be round (circular)
51
+ */
52
+ isRound?: boolean;
49
53
  }
50
54
  export interface HeaderProps extends BoxProps {
51
55
  /**
@@ -100,6 +104,18 @@ export interface HeaderProps extends BoxProps {
100
104
  * Maximum height of the header
101
105
  */
102
106
  profileDropdownMaxHeight?: number | Size;
107
+ /**
108
+ * Called when the search icon is clicked
109
+ */
110
+ onSearchClick?: () => void;
111
+ /**
112
+ * Whether the search is currently active
113
+ */
114
+ isSearchActive?: boolean;
115
+ /**
116
+ * Whether the search is loading
117
+ */
118
+ isSearchLoading?: boolean;
103
119
  }
104
120
  export interface HeaderHandle {
105
121
  /**