@aic-kits/react 0.27.1 → 0.28.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.
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import { Color } from '../../theme';
|
|
3
2
|
import { NavItemContainerProps } from './NavItem';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
$isOpen: boolean;
|
|
3
|
+
interface NavDropdownMenuProps {
|
|
4
|
+
dropdownMaxHeight?: number;
|
|
5
|
+
dropdownMinWidth?: number;
|
|
6
|
+
isDropdownOpen: boolean;
|
|
7
|
+
dropdownItems: NavItemContainerProps[];
|
|
10
8
|
}
|
|
11
|
-
export declare const NavDropdownMenu: React.FC<
|
|
9
|
+
export declare const NavDropdownMenu: React.FC<NavDropdownMenuProps>;
|
|
10
|
+
export {};
|
|
@@ -4,6 +4,4 @@ export interface NavItemContainerProps extends NavItemProps {
|
|
|
4
4
|
isDropdownOpen?: boolean;
|
|
5
5
|
onMouseEnter?: () => void;
|
|
6
6
|
}
|
|
7
|
-
export declare const NavItem: ({ label, isActive, isLoading, dropdownItems, onClick, size, isDropdownOpen, isDropdownItem, onMouseEnter, }: NavItemContainerProps
|
|
8
|
-
size?: "large" | "medium";
|
|
9
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export declare const NavItem: ({ label, isActive, isLoading, dropdownItems, onClick, size, isDropdownOpen, isDropdownItem, onMouseEnter, paddingX, paddingY, }: NavItemContainerProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Color, Size } from '../../theme';
|
|
1
|
+
import { Color, Size, Space } from '../../theme';
|
|
2
2
|
import { BoxProps } from '../Box';
|
|
3
3
|
export interface NavItemProps {
|
|
4
4
|
/**
|
|
@@ -25,6 +25,18 @@ export interface NavItemProps {
|
|
|
25
25
|
* Maximum height of the dropdown
|
|
26
26
|
*/
|
|
27
27
|
dropdownMaxHeight?: number | Size;
|
|
28
|
+
/**
|
|
29
|
+
* Padding x of the navigation item
|
|
30
|
+
*/
|
|
31
|
+
paddingX?: Space;
|
|
32
|
+
/**
|
|
33
|
+
* Padding y of the navigation item
|
|
34
|
+
*/
|
|
35
|
+
paddingY?: Space;
|
|
36
|
+
/**
|
|
37
|
+
* Size of the navigation item
|
|
38
|
+
*/
|
|
39
|
+
size?: 'large' | 'medium';
|
|
28
40
|
}
|
|
29
41
|
export interface HeaderProps extends BoxProps {
|
|
30
42
|
/**
|