@aic-kits/react 0.18.1 → 0.20.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.
@@ -0,0 +1,3 @@
1
+ import { default as React } from 'react';
2
+ import { AvatarProps } from './types';
3
+ export declare const Avatar: React.FC<AvatarProps>;
@@ -0,0 +1,2 @@
1
+ export * from './Avatar';
2
+ export * from './types';
@@ -0,0 +1,18 @@
1
+ import { AvatarSize } from '../../theme';
2
+ import { BoxProps } from '../Box';
3
+ export interface AvatarProps extends Omit<BoxProps, 'size'> {
4
+ /**
5
+ * The source URL of the avatar image.
6
+ */
7
+ src?: string;
8
+ /**
9
+ * The name of the user, used for fallback if src is not provided.
10
+ * The first letter of the name will be displayed.
11
+ */
12
+ name?: string;
13
+ /**
14
+ * The size of the avatar.
15
+ * Can be a theme Size key or a specific pixel/string value.
16
+ */
17
+ size?: AvatarSize | string | number;
18
+ }
@@ -0,0 +1,3 @@
1
+ import { AvatarSize } from '../../theme';
2
+ import { AvatarProps } from './types';
3
+ export declare const isAvatarSize: (size: AvatarProps["size"]) => size is AvatarSize;
@@ -0,0 +1,15 @@
1
+ import { default as React } from 'react';
2
+ import { Color, BorderWidth } from '../../theme';
3
+ import { NavItemProps } from './types';
4
+ interface NavDropdownMenuProps {
5
+ items: NavItemProps[];
6
+ onClick?: (item: NavItemProps, index: number) => void;
7
+ }
8
+ export interface StyledDropdownMenuContainerProps {
9
+ $themeBackgroundColor: Color;
10
+ $themeRadius: number;
11
+ $themeBorderColor: Color;
12
+ $themeBorderWidth: BorderWidth;
13
+ }
14
+ export declare const NavDropdownMenu: React.FC<NavDropdownMenuProps>;
15
+ export {};
@@ -17,6 +17,10 @@ export interface NavItemProps {
17
17
  * Called when the navigation item is clicked
18
18
  */
19
19
  onClick?: () => void;
20
+ /**
21
+ * Dropdown items
22
+ */
23
+ dropdownItems?: NavItemProps[];
20
24
  }
21
25
  export interface HeaderProps extends BoxProps {
22
26
  /**
@@ -1,4 +1,5 @@
1
1
  export * from './Art';
2
+ export * from './Avatar';
2
3
  export * from './Base';
3
4
  export * from './Box';
4
5
  export * from './Button';