-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(release): set
package.json
to 1.12.0 [skip ci]
# [1.12.0](v1.11.6...v1.12.0) (2024-01-01) ### Features * added typescript, rollup ([42482b7](42482b7))
- Loading branch information
1 parent
42482b7
commit 1003b9b
Showing
91 changed files
with
712 additions
and
1 deletion.
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
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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,24 @@ | ||
import { FC, CSSProperties, ReactNode, MouseEventHandler, Component } from 'react'; | ||
export interface AvatarProps { | ||
component?: Component | ReactNode; | ||
fullname?: string; | ||
avatar?: string; | ||
size: 'small' | 'medium' | 'large'; | ||
className?: string; | ||
style?: CSSProperties; | ||
imageClassName?: string; | ||
imageStyle?: CSSProperties; | ||
isOnline?: boolean; | ||
} | ||
export interface AvatarComposition { | ||
Group: FC<GroupProps>; | ||
} | ||
export interface GroupProps { | ||
users: AvatarProps[]; | ||
add: boolean; | ||
onAdd: MouseEventHandler<HTMLDivElement>; | ||
} | ||
export interface AddButtonProps { | ||
users: AvatarProps[]; | ||
onAdd: MouseEventHandler<HTMLDivElement>; | ||
} |
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,4 @@ | ||
import { FC } from 'react'; | ||
import { AvatarProps } from './Avatar.types'; | ||
declare const AvatarComponent: FC<AvatarProps>; | ||
export default AvatarComponent; |
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,4 @@ | ||
import { FC } from 'react'; | ||
import { GroupProps } from './Avatar.types'; | ||
declare const Group: FC<GroupProps>; | ||
export default Group; |
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,4 @@ | ||
import { FC } from 'react'; | ||
import { AvatarProps, AvatarComposition } from './Avatar.types'; | ||
declare const Avatar: FC<AvatarProps> & AvatarComposition; | ||
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,4 @@ | ||
export declare const changeSizeContainer: (size: any) => any; | ||
export declare const changeSize: (size: any) => any; | ||
export declare const changeSizeSymbol: (size: any) => any; | ||
export declare const changeSizeOnline: (size: any) => any; |
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 { ReactNode, CSSProperties } from "react"; | ||
export interface ButtonProps { | ||
as?: string; | ||
children?: ReactNode; | ||
className?: string; | ||
danger?: boolean; | ||
disabled?: boolean; | ||
href?: string; | ||
loading?: boolean; | ||
size: 'small' | 'medium' | 'large'; | ||
styles?: CSSProperties; | ||
type: 'button' | 'reset' | 'submit'; | ||
variant: 'primary' | 'secondary' | 'text'; | ||
} |
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,4 @@ | ||
import { FC } from 'react'; | ||
import { ButtonProps } from './Button.types'; | ||
declare const Button: FC<ButtonProps>; | ||
export default Button; |
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,7 @@ | ||
import { ReactNode, CSSProperties, FormEvent } from "react"; | ||
export interface FormProps { | ||
children: ReactNode; | ||
onSubmit: (event: FormEvent<HTMLFormElement>) => void; | ||
className?: string; | ||
style?: CSSProperties; | ||
} |
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,4 @@ | ||
import { FC } from 'react'; | ||
import { FormProps } from './Form.types'; | ||
export declare const Form: FC<FormProps>; | ||
export default Form; |
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,7 @@ | ||
declare const useForm: (state: any, validate: any, callback: any) => { | ||
handleChange: (e: any) => void; | ||
handleSubmit: (e: any) => void; | ||
values: any; | ||
errors: {}; | ||
}; | ||
export default useForm; |
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,25 @@ | ||
import { ReactNode, FC } from 'react'; | ||
export interface GridProps { | ||
children?: ReactNode; | ||
} | ||
export interface GridComposition { | ||
Container: FC<ContainerProps>; | ||
Column: FC<ColumnProps>; | ||
Row: FC<RowProps>; | ||
} | ||
export interface ContainerProps { | ||
children?: ReactNode; | ||
} | ||
export interface RowProps { | ||
children?: ReactNode; | ||
} | ||
export interface ColumnProps { | ||
children?: ReactNode; | ||
className?: string; | ||
col?: number; | ||
sm?: number; | ||
md?: number; | ||
lg?: number; | ||
xl?: number; | ||
xxl?: number; | ||
} |
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,4 @@ | ||
import { FC } from 'react'; | ||
import { ColumnProps } from './Grid.types'; | ||
declare const Column: FC<ColumnProps>; | ||
export default Column; |
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,4 @@ | ||
import { FC } from 'react'; | ||
import { ContainerProps } from './Grid.types'; | ||
declare const Container: FC<ContainerProps>; | ||
export default Container; |
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,4 @@ | ||
import { FC } from 'react'; | ||
import { GridProps, GridComposition } from './Grid.types'; | ||
declare const Grid: FC<GridProps> & GridComposition; | ||
export default Grid; |
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,4 @@ | ||
import { FC } from 'react'; | ||
import { RowProps } from './Grid.types'; | ||
declare const Row: FC<RowProps>; | ||
export default Row; |
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,5 @@ | ||
export interface ImageProps { | ||
width: number; | ||
height: number; | ||
image: string; | ||
} |
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,4 @@ | ||
import { FC } from 'react'; | ||
import { ImageProps } from './Image.types'; | ||
declare const Image: FC<ImageProps>; | ||
export default Image; |
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,21 @@ | ||
import { FC, CSSProperties, ChangeEventHandler, KeyboardEvent } from 'react'; | ||
export interface InputProps { | ||
id?: string; | ||
value: any; | ||
placeholder?: string; | ||
type: 'email' | 'password' | 'tel' | 'text' | 'url'; | ||
name?: string; | ||
help?: string; | ||
className?: string; | ||
size: 'small' | 'medium' | 'large'; | ||
status: 'error' | 'success' | 'default'; | ||
style?: CSSProperties; | ||
onChange?: ChangeEventHandler; | ||
visibleTitle?: boolean; | ||
disabled?: boolean; | ||
onPressEnter?: KeyboardEvent; | ||
} | ||
export interface InputComposition { | ||
Textarea: FC<InputProps>; | ||
Password: FC<InputProps>; | ||
} |
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,3 @@ | ||
import { FC } from 'react'; | ||
declare const InputContainer: FC; | ||
export default InputContainer; |
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,4 @@ | ||
import { FC } from 'react'; | ||
import { InputComposition, InputProps } from './Input.types'; | ||
declare const Input: FC<InputProps> & InputComposition; | ||
export default Input; |
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,4 @@ | ||
import { FC } from 'react'; | ||
import { InputProps } from './Input.types'; | ||
declare const Password: FC<InputProps>; | ||
export default Password; |
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,4 @@ | ||
import { FC } from 'react'; | ||
import { InputProps } from './Input.types'; | ||
declare const Textarea: FC<InputProps>; | ||
export default Textarea; |
9 changes: 9 additions & 0 deletions
9
dist/cjs/types/components/Notification/Notification.types.d.ts
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 { CSSProperties, ReactNode } from 'react'; | ||
export interface NotificationProps { | ||
className?: string; | ||
style?: CSSProperties; | ||
type: 'SUCCESS' | 'ERROR' | 'WARNING' | 'INFO'; | ||
} | ||
export interface NotificationProviderProps { | ||
children?: ReactNode; | ||
} |
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,3 @@ | ||
/// <reference types="react" /> | ||
declare const NotificationContext: import("react").Context<any>; | ||
export default NotificationContext; |
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,4 @@ | ||
import { FC } from 'react'; | ||
import { NotificationProviderProps } from './Notification.types'; | ||
declare const NotificationProvider: FC<NotificationProviderProps>; | ||
export default NotificationProvider; |
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,4 @@ | ||
import { FC } from 'react'; | ||
import { NotificationProps } from './Notification.types'; | ||
declare const Notification: FC<NotificationProps>; | ||
export default Notification; |
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,2 @@ | ||
declare const useNotification: () => (props: any) => void; | ||
export default useNotification; |
11 changes: 11 additions & 0 deletions
11
dist/cjs/types/components/Pagination/Pagination.types.d.ts
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 { CSSProperties } from "react"; | ||
export interface PaginationProps { | ||
className?: string; | ||
style?: CSSProperties; | ||
arrowShow?: boolean; | ||
onPageChange: Function; | ||
totalCount: number; | ||
siblingCount: number; | ||
currentPage: number; | ||
pageSize: number; | ||
} |
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,4 @@ | ||
import { FC } from "react"; | ||
import { PaginationProps } from "./Pagination.types"; | ||
declare const Pagination: FC<PaginationProps>; | ||
export default Pagination; |
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 @@ | ||
export declare const DOTS = "..."; | ||
interface usePaginationProps { | ||
totalCount: number; | ||
pageSize: number; | ||
siblingCount: number; | ||
currentPage: number; | ||
} | ||
export declare const usePagination: (props: usePaginationProps) => any[] | undefined; | ||
export {}; |
10 changes: 10 additions & 0 deletions
10
dist/cjs/types/components/SliderBeforeAfter/SliderBeforeAfter.types.d.ts
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 { ReactNode } from "react"; | ||
export interface SliderBeforeAfterProps { | ||
size: number; | ||
aspectRatio: string; | ||
urlFirstImage?: string; | ||
urlSecondImage?: string; | ||
alt?: string; | ||
componentAfter?: ReactNode; | ||
componentBefore?: ReactNode; | ||
} |
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,4 @@ | ||
import { FC } from 'react'; | ||
import { SliderBeforeAfterProps } from './SliderBeforeAfter.types'; | ||
declare const SliderBeforeAfter: FC<SliderBeforeAfterProps>; | ||
export default SliderBeforeAfter; |
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 { ReactNode } from "react"; | ||
export interface TagsProps { | ||
children?: ReactNode; | ||
} | ||
export interface TagProps { | ||
className?: string; | ||
children?: ReactNode; | ||
activ?: boolean; | ||
onClick?: Function; | ||
} |
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,4 @@ | ||
import { FC } from 'react'; | ||
import { TagsProps } from './Tags.types'; | ||
declare const Tags: FC<TagsProps>; | ||
export default Tags; |
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,4 @@ | ||
import { FC } from 'react'; | ||
import { TagProps } from './Tags.types'; | ||
declare const Tag: FC<TagProps>; | ||
export default Tag; |
11 changes: 11 additions & 0 deletions
11
dist/cjs/types/components/Typography/Typography.types.d.ts
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 { ReactNode, CSSProperties } from 'react'; | ||
export interface TypographyProps { | ||
type: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'caption' | 'text'; | ||
color: 'accent' | 'text' | 'secondary'; | ||
children?: ReactNode; | ||
fontStyle?: 'normal' | 'italic' | 'oblique'; | ||
transform?: 'capitalize' | 'lowercase' | 'uppercase'; | ||
decoration?: 'underline' | 'overline' | 'line-through'; | ||
className?: string; | ||
style?: CSSProperties; | ||
} |
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,4 @@ | ||
import { FC } from 'react'; | ||
import { TypographyProps } from './Typography.types'; | ||
declare const Typography: FC<TypographyProps>; | ||
export default Typography; |
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,7 @@ | ||
import { CSSProperties } from "react"; | ||
export interface ZoomImageProps { | ||
className?: string; | ||
style?: CSSProperties; | ||
src: string; | ||
alt: string; | ||
} |
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,4 @@ | ||
import { FC } from 'react'; | ||
import { ZoomImageProps } from './ZoomImage.types'; | ||
declare const ZoomImage: FC<ZoomImageProps>; | ||
export default ZoomImage; |
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,2 @@ | ||
declare const useEventListener: (eventName: any, handler: any, element?: any) => void; | ||
export default useEventListener; |
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 @@ | ||
export { default as Button } from './Button'; | ||
export { default as Pagination } from './Pagination'; | ||
export { default as Form } from './Form'; | ||
export { default as ZoomImage } from './ZoomImage'; | ||
export { default as SliderBeforeAfter } from './SliderBeforeAfter'; | ||
export { default as Typography } from './Typography'; | ||
export { default as Notification } from './Notification/notification'; | ||
export { default as NotificationProvider } from './Notification'; | ||
export { default as Grid } from './Grid'; | ||
export { default as Image } from './Image'; | ||
export { default as useEventListener } from './ZoomImage/useEventListener'; | ||
export { default as useForm } from './Form/useForm'; | ||
export { default as useNotification } from './Notification/useNotification'; |
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 @@ | ||
export * from "./components"; |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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,24 @@ | ||
import { FC, CSSProperties, ReactNode, MouseEventHandler, Component } from 'react'; | ||
export interface AvatarProps { | ||
component?: Component | ReactNode; | ||
fullname?: string; | ||
avatar?: string; | ||
size: 'small' | 'medium' | 'large'; | ||
className?: string; | ||
style?: CSSProperties; | ||
imageClassName?: string; | ||
imageStyle?: CSSProperties; | ||
isOnline?: boolean; | ||
} | ||
export interface AvatarComposition { | ||
Group: FC<GroupProps>; | ||
} | ||
export interface GroupProps { | ||
users: AvatarProps[]; | ||
add: boolean; | ||
onAdd: MouseEventHandler<HTMLDivElement>; | ||
} | ||
export interface AddButtonProps { | ||
users: AvatarProps[]; | ||
onAdd: MouseEventHandler<HTMLDivElement>; | ||
} |
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,4 @@ | ||
import { FC } from 'react'; | ||
import { AvatarProps } from './Avatar.types'; | ||
declare const AvatarComponent: FC<AvatarProps>; | ||
export default AvatarComponent; |
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,4 @@ | ||
import { FC } from 'react'; | ||
import { GroupProps } from './Avatar.types'; | ||
declare const Group: FC<GroupProps>; | ||
export default Group; |
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,4 @@ | ||
import { FC } from 'react'; | ||
import { AvatarProps, AvatarComposition } from './Avatar.types'; | ||
declare const Avatar: FC<AvatarProps> & AvatarComposition; | ||
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,4 @@ | ||
export declare const changeSizeContainer: (size: any) => any; | ||
export declare const changeSize: (size: any) => any; | ||
export declare const changeSizeSymbol: (size: any) => any; | ||
export declare const changeSizeOnline: (size: any) => any; |
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 { ReactNode, CSSProperties } from "react"; | ||
export interface ButtonProps { | ||
as?: string; | ||
children?: ReactNode; | ||
className?: string; | ||
danger?: boolean; | ||
disabled?: boolean; | ||
href?: string; | ||
loading?: boolean; | ||
size: 'small' | 'medium' | 'large'; | ||
styles?: CSSProperties; | ||
type: 'button' | 'reset' | 'submit'; | ||
variant: 'primary' | 'secondary' | 'text'; | ||
} |
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,4 @@ | ||
import { FC } from 'react'; | ||
import { ButtonProps } from './Button.types'; | ||
declare const Button: FC<ButtonProps>; | ||
export default Button; |
Oops, something went wrong.