-
Notifications
You must be signed in to change notification settings - Fork 127
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4f0f842
commit 12295ae
Showing
35 changed files
with
596 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
module.exports = { | ||
env: { | ||
browser: true, | ||
commonjs: true, | ||
es6: true, | ||
node: true, | ||
}, | ||
plugins: ["react", "jsx-a11y", "@typescript-eslint"], | ||
extends: [ | ||
"eslint:recommended", | ||
"plugin:react/recommended", | ||
"plugin:react-hooks/recommended", | ||
"plugin:jsx-a11y/recommended", | ||
"plugin:@typescript-eslint/recommended", | ||
"plugin:@typescript-eslint/recommended-requiring-type-checking", | ||
], | ||
parser: "@typescript-eslint/parser", | ||
parserOptions: { | ||
tsconfigRootDir: __dirname, | ||
ecmaVersion: 6, | ||
sourceType: "module", | ||
ecmaFeatures: { | ||
jsx: true, | ||
}, | ||
project: ["./tsconfig.json"], | ||
}, | ||
ignorePatterns: [".eslintrc.js", "perfect-scrollbar.esm.js"], | ||
overrides: [ | ||
{ | ||
files: ["*.js", "*.jsx"], | ||
rules: { | ||
"@typescript-eslint/no-unsafe-assignment": 0, | ||
"@typescript-eslint/no-unsafe-member-access": 0, | ||
"@typescript-eslint/no-unsafe-argument": 0, | ||
"@typescript-eslint/no-unsafe-return": 0, | ||
"@typescript-eslint/restrict-template-expressions": 0, | ||
"@typescript-eslint/no-unsafe-call": 0, | ||
}, | ||
}, | ||
], | ||
rules: { | ||
"linebreak-style": ["error", "unix"], | ||
semi: ["error", "always"], | ||
"no-console": ["warn"], | ||
"prefer-template": ["error"], | ||
}, | ||
settings: { | ||
react: { | ||
version: "detect", | ||
}, | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import type {Size, UserStatus, ChatComponentPropsChildrenRef} from "../../types"; | ||
import type {ReactElement} from "react"; | ||
|
||
export interface AvatarProps { | ||
name?:string; | ||
src?:string; | ||
size?: Size; | ||
status?: UserStatus; | ||
active?: boolean; | ||
} | ||
|
||
export declare const Avatar: (props:ChatComponentPropsChildrenRef<AvatarProps,"div">) => ReactElement; | ||
|
||
export default Avatar; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import type {ReactElement} from "react"; | ||
import type {ChatComponentPropsChildren, Size} from "../../types"; | ||
|
||
export interface AvatarGroupProps { | ||
max?:number; | ||
size?:Size; | ||
activeIndex?:number; | ||
hoverToFront?:boolean; | ||
} | ||
|
||
export declare const AvatarGroup: (props:ChatComponentPropsChildren<AvatarGroupProps,"div">) => ReactElement; | ||
|
||
export default AvatarGroup; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
import type {ReactElement, ReactNode} from "react"; | ||
import type {ChatComponentPropsChildren} from "../../types"; | ||
|
||
export interface ButtonProps { | ||
icon?:ReactNode; | ||
labelPosition?: "left" | "right"; | ||
border?: boolean; | ||
} | ||
|
||
export declare const Button: (props:ChatComponentPropsChildren<ButtonProps, "button">) => ReactElement; | ||
|
||
export type AddUserButtonProps = Omit<ButtonProps,"icon">; | ||
|
||
export declare const AddUserButton: (props:ChatComponentPropsChildren<AddUserButtonProps, "button">) => ReactElement; | ||
|
||
export interface ArrowButtonProps extends Omit<ButtonProps,"icon"> { | ||
direction?: "up" | "right" | "down" | "left" | ||
} | ||
|
||
export declare const ArrowButton: (props:ChatComponentPropsChildren<ArrowButtonProps, "button">) => ReactElement; | ||
|
||
export type AttachmentButtonProps = Omit<ButtonProps,"icon">; | ||
|
||
export declare const AttachmentButton: (props:ChatComponentPropsChildren<AttachmentButtonProps, "button">) => ReactElement; | ||
|
||
export interface EllipsisButtonProps extends Omit<ButtonProps,"icon"> { | ||
orientation?: "horizontal" | "vertical" | ||
} | ||
|
||
export declare const EllipsisButton: (props:ChatComponentPropsChildren<EllipsisButtonProps, "button">) => ReactElement; | ||
|
||
export type InfoButtonProps = Omit<ButtonProps,"icon">; | ||
|
||
export declare const InfoButton: (props:ChatComponentPropsChildren<InfoButtonProps, "button">) => ReactElement; | ||
|
||
export type SendButtonProps = Omit<ButtonProps,"icon">; | ||
|
||
export declare const SendButton: (props:ChatComponentPropsChildren<SendButtonProps, "button">) => ReactElement; | ||
|
||
export type StarButtonProps = Omit<ButtonProps,"icon">; | ||
|
||
export declare const StarButton: (props:ChatComponentPropsChildren<StarButtonProps, "button">) => ReactElement; | ||
|
||
export type VideoCallButtonProps = Omit<ButtonProps,"icon">; | ||
|
||
export declare const VideoCallButton: (props:ChatComponentPropsChildren<VideoCallButtonProps, "button">) => ReactElement; | ||
|
||
export type VoiceCallButtonProps = Omit<ButtonProps,"icon">; | ||
|
||
export declare const VoiceCallButton: (props:ChatComponentPropsChildren<VoiceCallButtonProps, "button">) => ReactElement; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import type {ReactElement} from "react"; | ||
import type { | ||
ChatComponentPropsChildren, | ||
} from "../../types/index"; | ||
import {EmptyProps} from "../../types/index"; | ||
|
||
export type ChatContainerOwnProps = EmptyProps; | ||
export type ChatContainerProps = ChatComponentPropsChildren<ChatContainerOwnProps,"div">; | ||
|
||
export declare const ChatContainer: (props:ChatComponentPropsChildren<ChatContainerProps,"div">) => ReactElement; | ||
|
||
export default ChatContainer; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
import type {ReactElement, ReactNode} from "react"; | ||
import type {ChatComponentPropsChildren} from "../../types"; | ||
|
||
export interface ConversationOperationsProps { | ||
visible?:boolean; | ||
} | ||
|
||
declare const ConversationOperations: (props:ChatComponentPropsChildren<ConversationOperationsProps,"div">) => ReactElement; | ||
|
||
export interface ConversationContentProps { | ||
name?:ReactNode; | ||
lastSenderName?: ReactNode; | ||
info?:ReactNode; | ||
} | ||
|
||
declare const ConversationContent: (props:ChatComponentPropsChildren<ConversationContentProps,"div">) => ReactElement; | ||
|
||
export interface ConversationProps { | ||
name?:ReactNode; | ||
unreadCnt?:number; | ||
unreadDot?:boolean; | ||
lastSenderName?:ReactNode; | ||
info?:ReactNode; | ||
lastActivityTime?:ReactNode; | ||
active?:boolean; | ||
} | ||
|
||
export declare const Conversation: { | ||
(props:ChatComponentPropsChildren<ConversationProps,"div">):ReactElement, | ||
Operations: typeof ConversationOperations; | ||
Content: typeof ConversationContent; | ||
}; | ||
|
||
export default Conversation; | ||
|
||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import type {ReactElement, ReactNode} from "react"; | ||
import type {ChatComponentPropsChildren, EmptyProps} from "../../types"; | ||
|
||
export type ConversationHeaderActionsProps = EmptyProps; | ||
|
||
declare const ConversationHeaderActions: (props:ChatComponentPropsChildren<ConversationHeaderActionsProps,HTMLElement>) => ReactElement; | ||
|
||
export type ConversationHeaderBackProps = EmptyProps; | ||
|
||
declare const ConversationHeaderBack: (props:ChatComponentPropsChildren<ConversationHeaderBackProps,"div">) => ReactElement; | ||
|
||
export interface ConversationHeaderContentProps { | ||
userName?:ReactNode; | ||
info?:ReactNode; | ||
} | ||
|
||
declare const ConversationHeaderContent: (props:ChatComponentPropsChildren<ConversationHeaderContentProps,"div">) => ReactElement; | ||
|
||
export type ConversationHeaderOwnProps = EmptyProps; | ||
export type ConversationHeaderProps = ChatComponentPropsChildren<ConversationHeaderOwnProps,"div">; | ||
|
||
export declare const ConversationHeader: { | ||
(props:ConversationHeaderProps):ReactElement<ConversationHeaderProps,"ConversationHeader">; | ||
Back: typeof ConversationHeaderBack; | ||
Actions: typeof ConversationHeaderActions; | ||
Content: typeof ConversationHeaderContent; | ||
}; | ||
|
||
export default ConversationHeader; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import {ChatComponentPropsChildren} from "../../types"; | ||
import type {ReactElement} from "react"; | ||
|
||
export interface ConversationListOwnProps { | ||
scrollable?:boolean; | ||
loading?:boolean; | ||
loadingMore?:boolean; | ||
onYReachEnd?:(container:HTMLDivElement) => void; | ||
} | ||
|
||
export type ConversationListProps = ChatComponentPropsChildren<ConversationListOwnProps, "div">; | ||
|
||
export declare const ConversationList: (props:ConversationListProps) => ReactElement<ConversationListProps>; | ||
|
||
export default ConversationList; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import type {ReactElement} from "react"; | ||
import type {ChatComponentProps} from "../../types"; | ||
|
||
export interface ExpansionPanelProps { | ||
title?:string; | ||
open?:boolean; | ||
} | ||
|
||
export declare const ExpansionPanel: (props:ChatComponentProps<ExpansionPanelProps,"div">) => ReactElement; | ||
|
||
export default ExpansionPanel; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import type {ChatComponentPropsChildren, EmptyProps} from "../../types"; | ||
import {ReactElement} from "react"; | ||
|
||
export type InputToolboxOwnProps = EmptyProps; | ||
export type InputToolboxProps = ChatComponentPropsChildren<InputToolboxOwnProps, "div"> | ||
|
||
export declare const InputToolbox: (props:InputToolboxProps) => ReactElement; | ||
|
||
export default InputToolbox; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import type {ReactElement} from "react"; | ||
import type {ChatComponentPropsChildren} from "../../types"; | ||
import type {LoaderVariant} from "../../types/unions"; | ||
|
||
export interface LoaderProps { | ||
variant?:LoaderVariant; | ||
} | ||
|
||
export declare const Loader: (props:ChatComponentPropsChildren<LoaderProps,"div">) => ReactElement; | ||
|
||
export default Loader; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import type {ReactElement} from "react"; | ||
import type {ChatComponentPropsChildren} from "../../types"; | ||
|
||
export interface MainContainerProps { | ||
responsive?:boolean; | ||
} | ||
|
||
export declare const MainContainer: (props:ChatComponentPropsChildren<MainContainerProps, "div">) => ReactElement; | ||
|
||
export default MainContainer; |
Oops, something went wrong.