@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.
- package/dist/components/Header/HeaderSearch.d.ts +16 -0
- package/dist/components/Header/NavItem.d.ts +1 -1
- package/dist/components/Header/index.d.ts +1 -0
- package/dist/components/Header/types.d.ts +17 -1
- package/dist/index.cjs +303 -299
- package/dist/index.js +4609 -4496
- package/dist/theme/components/header.d.ts +4 -0
- package/package.json +2 -2
|
@@ -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
|
|
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;
|
|
@@ -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
|
/**
|