@aic-kits/react 0.33.2 → 0.34.5

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.
@@ -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: IconComponent, iconSize, isActive, isLoading, dropdownItems, onClick, size, isDropdownOpen, isDropdownItem, onMouseEnter, onToggleDropdown, paddingX, paddingY, }: NavItemContainerProps) => import("react/jsx-runtime").JSX.Element;
@@ -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?: number;
8
17
  /**
9
18
  * Whether this navigation item is currently active
10
19
  */