@stokelp/ui 2.32.2 → 2.34.0

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,2 +1,2 @@
1
1
  export * as Avatar from './styled';
2
- export type { AvatarProps, AvatarContextProps, AvatarImageProps, AvatarFallbackProps } from './styled';
2
+ export type { AvatarProps, AvatarGroupProps, AvatarContextProps, AvatarImageProps, AvatarFallbackProps } from './styled';
@@ -1,18 +1,27 @@
1
- import { Avatar } from '@ark-ui/react';
2
- import { ComponentProps, ForwardRefExoticComponent, RefAttributes, ReactNode } from 'react';
3
- import { ComponentVariants } from '../../utils/slots';
1
+ import { Avatar, PolymorphicProps } from '@ark-ui/react';
2
+ import { ComponentProps, ReactNode, ForwardRefExoticComponent, DetailedHTMLProps, HTMLAttributes, DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES, RefObject, RefAttributes } from 'react';
4
3
  import { StyledComponent } from '@stokelp/styled-system/types';
5
- import { AvatarRecipe } from '@stokelp/styled-system/recipes';
4
+ import { AvatarGroupVariantProps, AvatarRecipe } from '@stokelp/styled-system/recipes';
5
+ import { ComponentVariants } from '../../utils/slots';
6
6
 
7
+ declare const InnerGroup: StyledComponent<ForwardRefExoticComponent<Omit< DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
8
+ ref?: ((instance: HTMLDivElement | null) => void | DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | RefObject<HTMLDivElement> | null | undefined;
9
+ } & PolymorphicProps>, AvatarGroupVariantProps>;
10
+ export declare const Group: ForwardRefExoticComponent<Omit<AvatarGroupProps, "ref"> & RefAttributes<HTMLDivElement>>;
7
11
  export declare const Root: ComponentVariants<StyledComponent<ForwardRefExoticComponent<Avatar.RootProps & RefAttributes<HTMLDivElement>>, {}>, AvatarRecipe>;
8
12
  export declare const Image: StyledComponent<ForwardRefExoticComponent<Avatar.ImageProps & RefAttributes<HTMLImageElement>>, {}>;
9
13
  export declare const Fallback: StyledComponent<ForwardRefExoticComponent<Avatar.FallbackProps & RefAttributes<HTMLSpanElement>>, {}>;
10
14
  export declare const Context: (props: Avatar.ContextProps) => ReactNode;
11
15
  export interface AvatarProps extends ComponentProps<typeof Root> {
12
16
  }
17
+ export interface AvatarGroupProps extends ComponentProps<typeof InnerGroup> {
18
+ overflowContent?: ((count: number) => ReactNode) | ReactNode;
19
+ max?: number;
20
+ }
13
21
  export interface AvatarImageProps extends ComponentProps<typeof Image> {
14
22
  }
15
23
  export interface AvatarFallbackProps extends ComponentProps<typeof Fallback> {
16
24
  }
17
25
  export interface AvatarContextProps extends ComponentProps<typeof Context> {
18
26
  }
27
+ export {};