@stokelp/ui 2.74.0 → 2.76.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,8 +1,8 @@
1
- import { ComponentProps, FC } from 'react';
1
+ import { ComponentProps, FC, ForwardRefExoticComponent, RefAttributes } from 'react';
2
2
  import { ComponentVariants } from '../../../utils/slots';
3
3
  import { StyledComponent } from '@stokelp/styled-system/types';
4
4
  import { AppNavigationRecipe } from '@stokelp/styled-system/recipes';
5
- import { IconProps } from '../../icon/Icon';
5
+ import { IconProps, TagProps } from '../..';
6
6
 
7
7
  export declare const Root: ComponentVariants<StyledComponent<"nav", {}>, AppNavigationRecipe>;
8
8
  export declare const Header: StyledComponent<"header", {}>;
@@ -12,6 +12,7 @@ export declare const ItemSubItems: StyledComponent<"div", {}>;
12
12
  export declare const ItemContent: StyledComponent<"div", {}>;
13
13
  export declare const ItemLabel: StyledComponent<"p", {}>;
14
14
  export declare const ItemIcon: FC<IconProps>;
15
+ export declare const ItemAlpha: ForwardRefExoticComponent< TagProps & RefAttributes<HTMLDivElement>>;
15
16
  export declare const Footer: StyledComponent<"footer", {}>;
16
17
  export declare const MiniaturizeTrigger: StyledComponent<"div", {}>;
17
18
  export interface AppNavigationProps extends ComponentProps<typeof Root> {
@@ -1,12 +1,14 @@
1
1
  import { FC, ReactElement, ForwardRefExoticComponent, ClassAttributes, HTMLAttributes } from 'react';
2
2
  import { chat, ChatRecipe, ChatMessageVariantProps } from '@stokelp/styled-system/recipes';
3
3
  import { ChatMessageProps } from './ChatMessage.tsx';
4
+ import { ChatDocumentMessageProps } from './ChatDocumentMessage.tsx';
4
5
  import { HTMLStyledProps, RecipeVariantProps, StyledComponent } from '@stokelp/styled-system/types';
5
6
  import { ComponentVariants } from '../../utils/slots.tsx';
6
7
  import { PolymorphicProps } from '@ark-ui/react';
7
8
 
8
9
  export declare const MessageContainer: ComponentVariants<ForwardRefExoticComponent< ClassAttributes<HTMLDivElement> & HTMLAttributes<HTMLDivElement> & PolymorphicProps>, ChatRecipe>;
9
10
  export declare const Message: ComponentVariants<StyledComponent<ForwardRefExoticComponent< ClassAttributes<HTMLDivElement> & HTMLAttributes<HTMLDivElement> & PolymorphicProps>, ChatMessageVariantProps>, ChatRecipe>;
11
+ export declare const DocumentMessage: ComponentVariants<FC<ChatDocumentMessageProps>, ChatRecipe>;
10
12
  export type RootProps = {
11
13
  messages?: {
12
14
  side?: 'left' | 'right' | 'center';
@@ -15,4 +17,6 @@ export type RootProps = {
15
17
  } & HTMLStyledProps<'div'> & RecipeVariantProps<typeof chat>;
16
18
  export interface MessageProps extends ChatMessageProps {
17
19
  }
20
+ export interface DocumentMessageProps extends ChatDocumentMessageProps {
21
+ }
18
22
  export declare const Root: FC<RootProps>;
@@ -0,0 +1,11 @@
1
+ import { FC } from 'react';
2
+ import { HTMLStyledProps, RecipeVariantProps } from '@stokelp/styled-system/types';
3
+ import { chatDocumentMessage } from '@stokelp/styled-system/recipes';
4
+
5
+ export type ChatDocumentMessageProps = {
6
+ documentID: number | string;
7
+ documentName: string;
8
+ documentUrl?: string;
9
+ onCardClick?: (event: React.MouseEvent<HTMLDivElement>, documentID: number | string) => void;
10
+ } & HTMLStyledProps<'div'> & RecipeVariantProps<typeof chatDocumentMessage>;
11
+ export declare const ChatDocumentMessage: FC<ChatDocumentMessageProps>;
@@ -1,2 +1,3 @@
1
1
  export * as Chat from './Chat';
2
2
  export * from './ChatMessage';
3
+ export * from './ChatDocumentMessage';