@aic-kits/react 0.33.2 → 0.34.6

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, 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';
@@ -1,10 +1,19 @@
1
+ import { Icon } from '@phosphor-icons/react';
1
2
  import { Color, Size, Space } from '../../theme';
2
3
  import { BoxProps } from '../Box';
3
4
  export interface NavItemProps {
4
5
  /**
5
6
  * Label for the navigation item
6
7
  */
7
- label: string;
8
+ label?: string;
9
+ /**
10
+ * Icon to display before the label
11
+ */
12
+ icon?: Icon;
13
+ /**
14
+ * Size of the icon in pixels. Overrides the default theme icon size.
15
+ */
16
+ iconSize?: Size | number;
8
17
  /**
9
18
  * Whether this navigation item is currently active
10
19
  */
@@ -37,6 +46,10 @@ export interface NavItemProps {
37
46
  * Size of the navigation item
38
47
  */
39
48
  size?: 'large' | 'medium';
49
+ /**
50
+ * Whether the navigation item should be round (circular)
51
+ */
52
+ isRound?: boolean;
40
53
  }
41
54
  export interface HeaderProps extends BoxProps {
42
55
  /**
@@ -91,6 +104,18 @@ export interface HeaderProps extends BoxProps {
91
104
  * Maximum height of the header
92
105
  */
93
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;
94
119
  }
95
120
  export interface HeaderHandle {
96
121
  /**