@stokelp/ui 2.82.4 → 2.83.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.
- package/dist/components/chat/Chat.d.ts +4 -0
- package/dist/components/chat/ChatProfileAvatar.d.ts +10 -0
- package/dist/components/chat/index.d.ts +1 -0
- package/dist/style.css +1 -1
- package/dist/theme/recipes/chat/chat-profile-avatar.d.ts +2 -0
- package/dist/theme/recipes/index.d.ts +1 -0
- package/dist/ui.cjs +8 -8
- package/dist/ui.cjs.map +1 -1
- package/dist/ui.js +1371 -1332
- package/dist/ui.js.map +1 -1
- package/package.json +1 -1
|
@@ -3,12 +3,14 @@ import { chat, ChatRecipe, ChatMessageVariantProps } from '@stokelp/styled-syste
|
|
|
3
3
|
import { ChatMessageProps } from './ChatMessage.tsx';
|
|
4
4
|
import { ChatDocumentMessageProps } from './ChatDocumentMessage.tsx';
|
|
5
5
|
import { HTMLStyledProps, RecipeVariantProps, StyledComponent } from '@stokelp/styled-system/types';
|
|
6
|
+
import { ChatProfileAvatarProps } from './ChatProfileAvatar.tsx';
|
|
6
7
|
import { ComponentVariants } from '../../utils/slots.tsx';
|
|
7
8
|
import { PolymorphicProps } from '@ark-ui/react';
|
|
8
9
|
|
|
9
10
|
export declare const MessageContainer: ComponentVariants<ForwardRefExoticComponent< ClassAttributes<HTMLDivElement> & HTMLAttributes<HTMLDivElement> & PolymorphicProps>, ChatRecipe>;
|
|
10
11
|
export declare const Message: ComponentVariants<StyledComponent<ForwardRefExoticComponent< ClassAttributes<HTMLDivElement> & HTMLAttributes<HTMLDivElement> & PolymorphicProps>, ChatMessageVariantProps>, ChatRecipe>;
|
|
11
12
|
export declare const DocumentMessage: ComponentVariants<FC<ChatDocumentMessageProps>, ChatRecipe>;
|
|
13
|
+
export declare const ProfileAvatar: ComponentVariants<FC<ChatProfileAvatarProps>, ChatRecipe>;
|
|
12
14
|
export type RootProps = {
|
|
13
15
|
messages?: {
|
|
14
16
|
side?: 'left' | 'right' | 'center';
|
|
@@ -19,4 +21,6 @@ export interface MessageProps extends ChatMessageProps {
|
|
|
19
21
|
}
|
|
20
22
|
export interface DocumentMessageProps extends ChatDocumentMessageProps {
|
|
21
23
|
}
|
|
24
|
+
export interface ProfileAvatarProps extends ChatProfileAvatarProps {
|
|
25
|
+
}
|
|
22
26
|
export declare const Root: FC<RootProps>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { HTMLStyledProps, RecipeVariantProps } from '@stokelp/styled-system/types';
|
|
3
|
+
import { chatProfileAvatar } from '@stokelp/styled-system/recipes';
|
|
4
|
+
|
|
5
|
+
export type ChatProfileAvatarProps = {
|
|
6
|
+
name: string;
|
|
7
|
+
fallbackText: string;
|
|
8
|
+
imageUrl?: string;
|
|
9
|
+
} & HTMLStyledProps<'div'> & RecipeVariantProps<typeof chatProfileAvatar>;
|
|
10
|
+
export declare const ChatProfileAvatar: FC<ChatProfileAvatarProps>;
|