import React, { MouseEventHandler } from "react"; import { type VariantProps } from "tailwind-variants"; import { AvatarElement, AvatarProps } from "../Avatar"; import { FlexProps } from "../Flex"; import { FlexColumnProps } from "../FlexColumn"; import { LinkProps, Url } from "../Link"; import { VerticalAlignedProps } from "../VerticalAligned"; export type ItemRenderLinkComponent = React.ComponentType>; export type ItemPropsBase = FlexProps & VariantProps & { disabled?: boolean; onClick?: MouseEventHandler; renderLink?: ItemRenderLinkComponent; }; declare const itemVariants: import("tailwind-variants").TVReturnType<{ active: { true: string; }; interactive: { true: string; }; disabled: { true: string; }; variant: { unstyled: string; vertical: string; }; }, undefined, "flex w-full items-center gap-3 border border-border-2 p-4", { active: { true: string; }; interactive: { true: string; }; disabled: { true: string; }; variant: { unstyled: string; vertical: string; }; }, undefined, import("tailwind-variants").TVReturnType<{ active: { true: string; }; interactive: { true: string; }; disabled: { true: string; }; variant: { unstyled: string; vertical: string; }; }, undefined, "flex w-full items-center gap-3 border border-border-2 p-4", unknown, unknown, undefined>>; type LinkItemProps = ItemPropsBase & { href: Url; } & LinkProps; export type DefaultItemProps = ItemPropsBase & { href?: undefined; target?: string; }; export type ItemProps = DefaultItemProps | LinkItemProps; export declare const ItemAvatar: React.ForwardRefExoticComponent>; export declare const ItemContent: ({ className, ...rest }: VerticalAlignedProps) => React.JSX.Element; export declare const ItemTitle: React.ForwardRefExoticComponent, HTMLSpanElement>, "ref"> & { asChild?: boolean; } & VariantProps>> & import("../..").TextColorVariantProps & React.RefAttributes, "ref"> & React.RefAttributes>; export declare const ItemDescription: React.ForwardRefExoticComponent, HTMLSpanElement>, "ref"> & { asChild?: boolean; } & VariantProps>> & import("../..").TextColorVariantProps & React.RefAttributes, "ref"> & React.RefAttributes>; export declare const ItemSide: ({ className, ...rest }: FlexColumnProps) => React.JSX.Element; export declare const ItemAction: ({ className, ...rest }: FlexColumnProps) => React.JSX.Element; /** * A common component for rendering a grouping of an Avatar with content such as Title and Description. * Can be used in a variety of places such as a list of users, activity rows, etc. */ export declare const Item: React.ForwardRefExoticComponent> & { Avatar: React.ForwardRefExoticComponent> & { Badge: React.ForwardRefExoticComponent, "height" | "width"> & import("../..").TextColorVariantProps & Omit>>, "tint"> & { tintSrc?: string; } & React.RefAttributes>; }; Content: ({ className, ...rest }: VerticalAlignedProps) => React.JSX.Element; Title: React.ForwardRefExoticComponent, HTMLSpanElement>, "ref"> & { asChild?: boolean; } & VariantProps>> & import("../..").TextColorVariantProps & React.RefAttributes, "ref"> & React.RefAttributes>; Description: React.ForwardRefExoticComponent, HTMLSpanElement>, "ref"> & { asChild?: boolean; } & VariantProps>> & import("../..").TextColorVariantProps & React.RefAttributes, "ref"> & React.RefAttributes>; Side: ({ className, ...rest }: FlexColumnProps) => React.JSX.Element; Action: ({ className, ...rest }: FlexColumnProps) => React.JSX.Element; }; export {}; //# sourceMappingURL=Item.d.ts.map