beca-ui 2.1.0-beta.1 → 2.1.0-beta.100

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.
Files changed (47) hide show
  1. package/dist/DynamicWorkflowScript.js +0 -1
  2. package/dist/assets/locales/en.json.d.ts +8 -1
  3. package/dist/assets/locales/vi.json.d.ts +8 -1
  4. package/dist/beca-ui.js +99745 -83771
  5. package/dist/components/AIChat/AIChat.d.ts +11 -0
  6. package/dist/components/AIChat/AIChat.types.d.ts +21 -0
  7. package/dist/components/AIChat/index.d.ts +2 -0
  8. package/dist/components/Anchor/Anchor.types.d.ts +2 -3
  9. package/dist/components/Anchor/index.d.ts +1 -2
  10. package/dist/components/ApplicationsCard/ApplicationsCard.types.d.ts +16 -7
  11. package/dist/components/BecaChatBox/BecaChatBox.d.ts +24 -0
  12. package/dist/components/BecaChatBox/Composer.d.ts +20 -0
  13. package/dist/components/BecaChatBox/MainChat.d.ts +36 -0
  14. package/dist/components/BecaChatBox/MessageBubble.d.ts +27 -0
  15. package/dist/components/BecaChatBox/Sidebar.d.ts +11 -0
  16. package/dist/components/BecaChatBox/index.d.ts +1 -0
  17. package/dist/components/BecaChatBox/types.d.ts +26 -0
  18. package/dist/components/BecaChatBox/utils.d.ts +3 -0
  19. package/dist/components/BodyCard/BodyCard.types.d.ts +5 -0
  20. package/dist/components/Carousel/Carousel.d.ts +2 -0
  21. package/dist/components/Carousel/Carousel.types.d.ts +3 -0
  22. package/dist/components/Carousel/index.d.ts +3 -0
  23. package/dist/components/Checkbox/index.d.ts +1 -2
  24. package/dist/components/Form/Form.types.d.ts +2 -2
  25. package/dist/components/List/List.d.ts +3 -1
  26. package/dist/components/MainLayout/AppMenu/AppMenu.d.ts +5 -0
  27. package/dist/components/MainLayout/Header/Header.types.d.ts +20 -4
  28. package/dist/components/MainLayout/MainLayout.d.ts +3 -1
  29. package/dist/components/MainLayout/MainLayout.types.d.ts +66 -21
  30. package/dist/components/MainLayout/SideBarMenu/SideBarMenu.types.d.ts +2 -0
  31. package/dist/components/Pagination/Pagination.d.ts +1 -1
  32. package/dist/components/Space/Space.d.ts +2 -3
  33. package/dist/components/Space/Space.types.d.ts +3 -3
  34. package/dist/components/Space/index.d.ts +2 -3
  35. package/dist/components/Table/Table.d.ts +3 -2
  36. package/dist/components/Table/Table.types.d.ts +4 -3
  37. package/dist/components/Table/index.d.ts +1 -1
  38. package/dist/components/TextEditor/BubbleMenu/TextEditorBubbleMenu.d.ts +3 -1
  39. package/dist/components/TextEditor/Image/index.d.ts +3 -0
  40. package/dist/components/VirtualList/VirtualList.types.d.ts +1 -0
  41. package/dist/components/index.d.ts +3 -0
  42. package/dist/data/LocalesTexts/EnglishTexts.d.ts +22 -0
  43. package/dist/data/LocalesTexts/VietnameseTexts.d.ts +22 -0
  44. package/dist/hooks/LocaleHook.d.ts +22 -0
  45. package/dist/main.css +1 -1
  46. package/dist/theme/styles.d.ts +55 -0
  47. package/package.json +53 -51
@@ -0,0 +1,11 @@
1
+ import React from "react";
2
+ import { AIChatStreamChunk, AISessionModel } from "./AIChat.types";
3
+ export interface AIChatProps {
4
+ userWorkflowId: number;
5
+ onGetSession: () => Promise<AISessionModel>;
6
+ onChat: (threadId: React.Key, message: string) => AsyncGenerator<AIChatStreamChunk, void, unknown>;
7
+ }
8
+ export interface AIChatRef {
9
+ fetchSession: () => void | Promise<void>;
10
+ }
11
+ export declare const AIChat: React.ForwardRefExoticComponent<AIChatProps & React.RefAttributes<AIChatRef>>;
@@ -0,0 +1,21 @@
1
+ interface AISessionMessageModel {
2
+ query: string;
3
+ answer: string;
4
+ created_at: string;
5
+ }
6
+ export interface AISessionModel {
7
+ user_id: number;
8
+ session_id: string;
9
+ userworkflow_id: number;
10
+ workflow_status: string;
11
+ messages: AISessionMessageModel[];
12
+ user_summary: string;
13
+ is_not_found: boolean;
14
+ detail: null;
15
+ }
16
+ export interface AIChatStreamChunk {
17
+ type: string;
18
+ token?: string;
19
+ status?: string;
20
+ }
21
+ export {};
@@ -0,0 +1,2 @@
1
+ export * from './AIChat';
2
+ export * from './AIChat.types';
@@ -1,3 +1,2 @@
1
- import { AnchorProps as AntAnchorProps } from "antd";
2
- export interface AnchorProps extends AntAnchorProps {
3
- }
1
+ import { AnchorProps } from "antd";
2
+ export type { AnchorProps };
@@ -1,3 +1,2 @@
1
- import { AnchorProps } from "./Anchor.types";
2
1
  export { default as Anchor } from "./Anchor";
3
- export type { AnchorProps };
2
+ export * from "./Anchor.types";
@@ -1,4 +1,3 @@
1
- import React from "react";
2
1
  import { LANGUAGE } from "..";
3
2
  export interface ApplicationsCardProps {
4
3
  applicationsCardData: ApplicationsCardItem[];
@@ -7,12 +6,22 @@ export interface ApplicationsCardProps {
7
6
  lang: LANGUAGE;
8
7
  }
9
8
  export interface ApplicationsCardItem {
10
- appId?: string;
11
- id: string;
9
+ href: string;
10
+ appId?: string | null;
11
+ image: string;
12
12
  name: string;
13
- image: string | React.ReactNode;
14
- href?: string;
15
- iconBackgroundColor?: string;
13
+ workflowCode: string;
14
+ createdTime: string;
15
+ nameEng?: string | null;
16
16
  order?: number;
17
- nameEng?: string;
17
+ iconBackgroundColor?: string;
18
+ image2: string;
19
+ Status: string;
20
+ WorkflowCode: string;
21
+ WorkflowTitle: string;
22
+ Approver: string;
23
+ UserStatus: number;
24
+ ApprovedTime: string;
25
+ id: number;
26
+ Id?: number;
18
27
  }
@@ -0,0 +1,24 @@
1
+ import React from "react";
2
+ import { BecaChatBoxStyles, BecaChatMessageModel, BecaChatThreadModel, HeaderCustom, NewChatMessageModel } from "./types";
3
+ import { MainChatBoxProps } from "./MainChat";
4
+ import { MessageBubbleProps } from "./MessageBubble";
5
+ interface SideBarCustom {
6
+ visible?: boolean;
7
+ showSearch?: boolean;
8
+ }
9
+ export interface BecaChatBoxProps extends MainChatBoxProps, MessageBubbleProps {
10
+ className?: string;
11
+ threads?: BecaChatThreadModel[];
12
+ initialThreadId?: string;
13
+ onSend?: (threadId: React.Key, message: NewChatMessageModel) => Promise<void>;
14
+ styles?: BecaChatBoxStyles;
15
+ sidebar?: SideBarCustom;
16
+ header?: HeaderCustom;
17
+ }
18
+ export interface BecaChatBoxRef {
19
+ focusInput: () => void;
20
+ receiveMessage: (threadId: React.Key, message: BecaChatMessageModel) => void;
21
+ updateMessage: (threadId: React.Key, messageId: React.Key, newText: string) => void;
22
+ }
23
+ export declare const BecaChatBox: React.ForwardRefExoticComponent<BecaChatBoxProps & React.RefAttributes<BecaChatBoxRef>>;
24
+ export {};
@@ -0,0 +1,20 @@
1
+ import React from "react";
2
+ import { BecaChatBoxStyles } from "./types";
3
+ export interface ComposerProps {
4
+ placeHolder?: string;
5
+ attachment?: {
6
+ showIcon?: boolean;
7
+ onUpload?: (files: File[]) => void | Promise<void>;
8
+ };
9
+ }
10
+ interface Props extends ComposerProps {
11
+ draft: string;
12
+ hasDraft: boolean;
13
+ autoResize: (e: React.ChangeEvent<HTMLTextAreaElement>) => void;
14
+ onKeyDown: (e: React.KeyboardEvent) => void;
15
+ send: () => void;
16
+ textareaRef: React.RefObject<HTMLTextAreaElement>;
17
+ styles: BecaChatBoxStyles;
18
+ }
19
+ export declare const Composer: React.FC<Props>;
20
+ export {};
@@ -0,0 +1,36 @@
1
+ import React from "react";
2
+ import { BecaChatBoxStyles, BecaChatThreadModel, HeaderCustom } from "./types";
3
+ import { MessageBubbleProps } from "./MessageBubble";
4
+ import { ComposerProps } from "./Composer";
5
+ export interface MainChatBoxProps {
6
+ onRemoveThread?: (threadId: React.Key) => void | Promise<void>;
7
+ /**
8
+ * @default true
9
+ * show date divider between messages
10
+ */
11
+ showDateDivider?: boolean;
12
+ otherStatus?: ChatStatusProps;
13
+ ownStatus?: ChatStatusProps;
14
+ hasMore?: boolean;
15
+ onLoadMore?: () => void | Promise<void>;
16
+ }
17
+ interface MainChatProps extends MainChatBoxProps, ComposerProps, MessageBubbleProps {
18
+ header: HeaderCustom;
19
+ activeThread: BecaChatThreadModel | undefined;
20
+ draft: string;
21
+ hasDraft: boolean;
22
+ autoResize: (e: React.ChangeEvent<HTMLTextAreaElement>) => void;
23
+ onKeyDown: (e: React.KeyboardEvent) => void;
24
+ send: () => void;
25
+ textareaRef: React.RefObject<HTMLTextAreaElement>;
26
+ bottomRef: React.RefObject<HTMLDivElement>;
27
+ styles: BecaChatBoxStyles;
28
+ }
29
+ export declare const MainChat: React.FC<MainChatProps>;
30
+ export interface ChatStatusProps {
31
+ loading: boolean;
32
+ content: string;
33
+ isOwn: boolean;
34
+ icon?: React.JSX.Element;
35
+ }
36
+ export {};
@@ -0,0 +1,27 @@
1
+ import React from "react";
2
+ import { BecaChatMessageModel } from "./types";
3
+ type MessageBubbleMode = "card" | "text";
4
+ interface MessageBubbleStyle {
5
+ mode: MessageBubbleMode;
6
+ }
7
+ export interface MessageBubbleProps {
8
+ /**
9
+ * Message bubble style of other users
10
+ */
11
+ otherMessageBubble?: MessageBubbleStyle;
12
+ /**
13
+ * Message bubble style of own user
14
+ */
15
+ ownMessageBubble?: MessageBubbleStyle;
16
+ /**
17
+ * Show time of message
18
+ * @default true
19
+ */
20
+ showTime?: boolean;
21
+ onClick?: (id: React.Key, item?: BecaChatMessageModel) => void;
22
+ }
23
+ interface Props extends MessageBubbleProps {
24
+ message: BecaChatMessageModel;
25
+ }
26
+ export declare const MessageBubble: React.FC<Props>;
27
+ export {};
@@ -0,0 +1,11 @@
1
+ import React from "react";
2
+ import { BecaChatThreadModel } from "./types";
3
+ interface SidebarProps {
4
+ threads: BecaChatThreadModel[];
5
+ activeId: React.Key;
6
+ setActiveId: (id: React.Key) => void;
7
+ query: string;
8
+ setQuery: (q: string) => void;
9
+ }
10
+ export declare const Sidebar: React.FC<SidebarProps>;
11
+ export {};
@@ -0,0 +1 @@
1
+ export * from './BecaChatBox';
@@ -0,0 +1,26 @@
1
+ import React from 'react';
2
+ export interface BecaChatMessageModel {
3
+ id: string;
4
+ text: string;
5
+ sentAt: string;
6
+ isOwn: boolean;
7
+ type?: string;
8
+ }
9
+ export type NewChatMessageModel = Partial<BecaChatMessageModel> & Pick<BecaChatMessageModel, 'text' | 'sentAt' | 'isOwn'>;
10
+ export interface BecaChatThreadModel {
11
+ id: React.Key;
12
+ title: string;
13
+ subtitle?: string;
14
+ lastMessageAt: string;
15
+ unread?: number;
16
+ messages: BecaChatMessageModel[];
17
+ avatarColor?: string;
18
+ }
19
+ export type BecaChatMode = 'chat' | 'ai';
20
+ export interface BecaChatBoxStyles {
21
+ messages?: React.CSSProperties;
22
+ composer?: React.CSSProperties;
23
+ }
24
+ export interface HeaderCustom {
25
+ visible?: boolean;
26
+ }
@@ -0,0 +1,3 @@
1
+ export declare function initials(name: string): string;
2
+ export declare function formatListTime(iso: string): string;
3
+ export declare function formatMessageTime(iso: string): string;
@@ -12,4 +12,9 @@ export interface BodyCardProps extends React.HTMLAttributes<HTMLDivElement> {
12
12
  cardBodyDependencies?: any[];
13
13
  backUrl?: string;
14
14
  LinkComponent?: any;
15
+ styles?: {
16
+ header?: React.CSSProperties;
17
+ body?: React.CSSProperties;
18
+ content?: React.CSSProperties;
19
+ };
15
20
  }
@@ -0,0 +1,2 @@
1
+ import { Carousel } from "antd";
2
+ export default Carousel;
@@ -0,0 +1,3 @@
1
+ import { CarouselProps as AntCarouselProps } from "antd";
2
+ export interface CarouselProps extends AntCarouselProps {
3
+ }
@@ -0,0 +1,3 @@
1
+ import { CarouselProps } from "./Carousel.types";
2
+ export { default as Carousel } from "./Carousel";
3
+ export type { CarouselProps };
@@ -1,3 +1,2 @@
1
- import { CheckboxChangeEvent, CheckboxProps, CheckboxGroupProps } from "./Checkbox.types";
2
1
  export { default as Checkbox } from "./Checkbox";
3
- export type { CheckboxChangeEvent, CheckboxProps, CheckboxGroupProps };
2
+ export * from "./Checkbox.types";
@@ -1,5 +1,5 @@
1
- import { FormProps as AntFormProps, FormItemProps, FormInstance, FormListFieldData } from "antd";
1
+ import { FormProps as AntFormProps, FormItemProps, FormInstance, FormListFieldData, FormRule } from "antd";
2
2
  export interface FormProps extends AntFormProps {
3
3
  children?: React.ReactNode;
4
4
  }
5
- export type { FormInstance, FormListFieldData, FormItemProps };
5
+ export type { FormInstance, FormListFieldData, FormItemProps, FormRule };
@@ -1,8 +1,10 @@
1
1
  import React from "react";
2
2
  import { ListItemMetaProps, ListItemProps, ListProps } from ".";
3
- declare const List: React.FunctionComponent<ListProps<any>> & {
3
+ type ListComponent = {
4
+ <T = any>(props: ListProps<T>): React.ReactElement;
4
5
  Item: React.FunctionComponent<ListItemProps> & {
5
6
  Meta: React.FunctionComponent<ListItemMetaProps>;
6
7
  };
7
8
  };
9
+ declare const List: ListComponent;
8
10
  export default List;
@@ -1,8 +1,13 @@
1
1
  import { ApplicationsCardItem } from "../../ApplicationsCard";
2
+ import { LANGUAGE } from "../../../components";
2
3
  interface AppMenuProps {
3
4
  logoUrl: string;
4
5
  applicationsCardData: ApplicationsCardItem[];
5
6
  currentApp: string;
7
+ totalDisplay?: number;
8
+ userTheme?: string;
9
+ onChangeTheme?: (theme: string) => Promise<void>;
10
+ lang: LANGUAGE;
6
11
  }
7
12
  export declare const AppMenu: (props: AppMenuProps) => import("react/jsx-runtime").JSX.Element;
8
13
  export {};
@@ -1,14 +1,29 @@
1
1
  import React from "react";
2
2
  import { PersonalProfileModel, SupportContactModel } from "../../../models";
3
- import { ApplicationsCardProps } from "../../ApplicationsCard";
3
+ import { ApplicationsCardItem, ApplicationsCardProps } from "../../ApplicationsCard";
4
4
  import { MenuItemType } from "../../Menu";
5
5
  import { LANGUAGE } from "../../ConfigProvider";
6
6
  import { MainLayoutConfig } from "../MainLayout.types";
7
7
  export type NotiType = "All" | "Unseen";
8
8
  export type NotiStatus = "Read" | "Unread";
9
9
  export type Theme = "Light" | "Dark";
10
+ export interface AppTheme {
11
+ fontFamily?: string;
12
+ primaryColor1?: string;
13
+ primaryColor2?: string;
14
+ primaryColor3?: string;
15
+ primaryColor4?: string;
16
+ primaryColor5?: string;
17
+ primaryColor6?: string;
18
+ theme?: "default" | "new";
19
+ appMenu?: {
20
+ items: ApplicationsCardItem[];
21
+ totalDisplay?: number;
22
+ };
23
+ }
10
24
  export interface ExtraHeaderProps {
11
- onChangeTheme: (theme: any) => void;
25
+ appTheme?: string;
26
+ onChangeTheme?: (theme: AppTheme) => Promise<void>;
12
27
  }
13
28
  export interface HeaderProps extends ApplicationsCardProps {
14
29
  logoUrl: string;
@@ -17,8 +32,6 @@ export interface HeaderProps extends ApplicationsCardProps {
17
32
  avatarUrl?: string;
18
33
  avatarThumbnailUrl?: string;
19
34
  isMobile: boolean;
20
- isShowCollapseButton?: boolean;
21
- headerTitle?: string;
22
35
  profileMenuItems?: MenuItemType[];
23
36
  homePageUrl: string;
24
37
  customHeader?: React.ReactNode;
@@ -33,6 +46,8 @@ export interface HeaderProps extends ApplicationsCardProps {
33
46
  scrolled?: boolean;
34
47
  personalProfile: PersonalProfileModel;
35
48
  config?: MainLayoutConfig;
49
+ isShowCollapseButton?: boolean;
50
+ headerTitle?: string;
36
51
  }
37
52
  export type ThemeModel = {
38
53
  getApi?: string;
@@ -50,6 +65,7 @@ export interface NotificationType {
50
65
  onLoadData: (type: NotiType, page: number, pageSize: number) => Promise<void>;
51
66
  totalNumber: number;
52
67
  unseenTotal: number;
68
+ defaultIconUrl?: string;
53
69
  }
54
70
  export interface NotificationProps extends NotificationType {
55
71
  visible?: boolean;
@@ -1,12 +1,14 @@
1
1
  import { MainLayoutConfig, MainLayoutProps } from ".";
2
- import { MainTheme, UserConfig } from "../../main";
2
+ import { AppTheme, MainTheme, UserConfig } from "../../main";
3
3
  interface AppContextProps {
4
4
  LinkComponent?: any;
5
5
  mainLayoutConfig: MainLayoutConfig;
6
6
  userConfig: UserConfig;
7
7
  mainTheme?: MainTheme;
8
8
  isHomeApp?: boolean;
9
+ appTheme?: AppTheme;
9
10
  }
10
11
  export declare const AppContext: import("react").Context<AppContextProps>;
12
+ export declare const DefaultAppTheme: AppTheme;
11
13
  export declare const MainLayout: import("react").ForwardRefExoticComponent<MainLayoutProps & import("react").RefAttributes<import("./MainLayout.types").NotificationRef>>;
12
14
  export {};
@@ -14,39 +14,84 @@ export interface MainLayoutProps extends Omit<SideBarMenuProps, "sideBarMenus">,
14
14
  userConfig: UserConfig;
15
15
  mainTheme?: MainTheme;
16
16
  isHomeApp?: boolean;
17
+ appMenuTotalDisplay?: number;
18
+ appTheme?: {
19
+ userTheme?: string | undefined;
20
+ adminTheme?: string | undefined;
21
+ onChangeTheme?: (theme: string) => Promise<void>;
22
+ };
17
23
  }
18
24
  export interface UserConfig {
19
25
  showEventTheme?: boolean;
20
26
  }
21
27
  export * from "./Header/Header.types";
22
28
  export type MainLayoutRef = NotificationRef;
23
- export interface MainLayoutConfig {
24
- header?: {
25
- theme?: {
26
- visible?: boolean;
27
- };
28
- notification?: {
29
- visible: boolean;
30
- };
31
- language?: {
32
- visible?: boolean;
33
- };
34
- app?: {
35
- visible?: boolean;
36
- };
37
- support?: {
38
- visible: boolean;
39
- };
40
- profile?: {
29
+ interface MainLayoutHeaderConfig {
30
+ chat?: {
31
+ visible?: boolean;
32
+ };
33
+ theme?: {
34
+ visible?: boolean;
35
+ };
36
+ notification?: {
37
+ visible: boolean;
38
+ };
39
+ language?: {
40
+ visible?: boolean;
41
+ };
42
+ app?: {
43
+ visible?: boolean;
44
+ };
45
+ support?: {
46
+ visible: boolean;
47
+ };
48
+ profile?: {
49
+ visible?: boolean;
50
+ customizeTheme?: {
41
51
  visible?: boolean;
42
- customizeTheme?: {
43
- visible?: boolean;
44
- };
45
52
  };
46
53
  };
54
+ }
55
+ export interface MainLayoutConfig {
56
+ header?: MainLayoutHeaderConfig;
47
57
  layout?: {
48
58
  showEventTheme?: boolean;
49
59
  };
50
60
  }
51
61
  export declare const DEFAULT_MAIN_LAYOUT_CONFIG: MainLayoutConfig;
52
62
  export declare const DEFAULT_USER_CONFIG: UserConfig;
63
+ interface HiddenMenu {
64
+ path: string;
65
+ }
66
+ interface CustomMenu {
67
+ path: string;
68
+ replaceUrl?: string;
69
+ label?: string;
70
+ labelEN?: string;
71
+ }
72
+ export declare const BECA_MODULES: string[];
73
+ interface SettingLayoutConfigFunction {
74
+ workflow: any;
75
+ homePage: any;
76
+ mail: any;
77
+ calendar: any;
78
+ work: any;
79
+ library: any;
80
+ documentary: any;
81
+ contact: any;
82
+ social: any;
83
+ chat: any;
84
+ crm: any;
85
+ eam: any;
86
+ fsm: any;
87
+ }
88
+ export interface SettingLayoutConfigType {
89
+ layout: string;
90
+ css?: string;
91
+ hiddenMenu: HiddenMenu[];
92
+ customMenu: CustomMenu[];
93
+ defaultWorkflowPriority: string;
94
+ mainTheme: MainTheme;
95
+ functions: Partial<SettingLayoutConfigFunction>;
96
+ }
97
+ export declare const DEFAULT_SETTING_LAYOUT_CONFIG: SettingLayoutConfigType;
@@ -8,6 +8,8 @@ export interface SideBarMenuProps {
8
8
  isMobile: boolean;
9
9
  homePageUrl: string;
10
10
  showLargeMenu?: boolean;
11
+ isShowCollapseButton?: boolean;
12
+ headerTitle?: string;
11
13
  }
12
14
  export interface SideBarMenu2Props extends SideBarMenuProps {
13
15
  collapsed: boolean;
@@ -1,4 +1,4 @@
1
1
  import React from "react";
2
2
  import { PaginationProps } from ".";
3
- export declare const paginationItemRender: (page: number, type: "page" | "prev" | "next" | "jump-prev" | "jump-next", originalElement: React.ReactNode, size?: "default" | "small" | undefined) => string | number | boolean | Iterable<React.ReactNode> | import("react/jsx-runtime").JSX.Element | null | undefined;
3
+ export declare const paginationItemRender: (page: number, type: "page" | "prev" | "next" | "jump-prev" | "jump-next", originalElement: React.ReactNode, size?: "default" | "small" | undefined) => string | number | boolean | import("react/jsx-runtime").JSX.Element | Iterable<React.ReactNode> | null | undefined;
4
4
  export declare const Pagination: React.FunctionComponent<PaginationProps>;
@@ -1,3 +1,2 @@
1
- import React from "react";
2
- import { SpaceProps } from ".";
3
- export declare const Space: React.FunctionComponent<SpaceProps>;
1
+ import { Space } from "antd";
2
+ export default Space;
@@ -1,3 +1,3 @@
1
- import { SpaceProps as AntSpaceProps } from "antd";
2
- export interface SpaceProps extends AntSpaceProps {
3
- }
1
+ import { SpaceProps } from "antd";
2
+ import { SpaceSize } from "antd/es/space";
3
+ export type { SpaceProps, SpaceSize };
@@ -1,3 +1,2 @@
1
- import { SpaceProps } from "./Space.types";
2
- export * from "./Space";
3
- export type { SpaceProps };
1
+ export { default as Space } from "./Space";
2
+ export * from "./Space.types";
@@ -1,3 +1,4 @@
1
- import { Table as AntTable } from "antd";
1
+ import React from "react";
2
+ import { TableProps, TableRef } from ".";
3
+ export declare const Table: React.ForwardRefExoticComponent<TableProps<unknown> & React.RefAttributes<TableRef>>;
2
4
  export declare const TableSummary: typeof import("rc-table/lib/Footer/Summary").default;
3
- export default AntTable;
@@ -1,6 +1,6 @@
1
1
  import { TableProps as AntTableProps } from "antd";
2
- import { ColumnGroupType, ColumnType as AntColumnType, TableRowSelection as AntTableRowSelection, ColumnTitle as AntColumnTitle, FilterDropdownProps } from "antd/lib/table/interface";
3
- export interface TableProps<T = any> extends Omit<AntTableProps<T>, "rowSelection"> {
2
+ import { ColumnType as AntColumnType, TableRowSelection as AntTableRowSelection, ColumnTitle as AntColumnTitle, FilterDropdownProps, ColumnsType as AntColumnsType } from "antd/lib/table/interface";
3
+ export interface TableProps<T = any> extends Omit<AntTableProps<T>, "rowSelection" | "columns"> {
4
4
  transparent?: boolean;
5
5
  rowSelection?: TableRowSelection<any>;
6
6
  onRowSelect?: (record: any) => void;
@@ -9,6 +9,7 @@ export interface TableProps<T = any> extends Omit<AntTableProps<T>, "rowSelectio
9
9
  isResizable?: boolean;
10
10
  isBodyCard?: boolean;
11
11
  onResizeColumns?: (columns: ColumnsType) => void;
12
+ columns?: ColumnsType;
12
13
  responsive?: {
13
14
  breakpoint?: number;
14
15
  dataLabel?: (column: any, record: any, rowIndex: number) => React.ReactNode | string;
@@ -24,7 +25,7 @@ export interface TableRef {
24
25
  export interface TableRowSelection<T> extends Omit<AntTableRowSelection<T>, "onSelectAll"> {
25
26
  onSelectAll?: (isSelectedAll: boolean, selectedRowKeys: any[], selectedRows?: any[]) => void;
26
27
  }
27
- export type ColumnsType<RecordType = any> = (ColumnGroupType<RecordType> | AntColumnType<RecordType>)[];
28
+ export type ColumnsType<T = any> = AntColumnsType<T>;
28
29
  export type ColumnType<RecordType = any> = AntColumnType<RecordType> & {
29
30
  editable?: boolean;
30
31
  };
@@ -1,3 +1,3 @@
1
1
  import { TableProps, ColumnsType, TableRef, TableRowSelection, ColumnType, ColumnTitle } from "./Table.types";
2
- export { default as Table, TableSummary } from "./Table";
2
+ export { Table, TableSummary } from "./Table";
3
3
  export type { TableProps, ColumnsType, TableRef, TableRowSelection, ColumnType, ColumnTitle, };
@@ -1,9 +1,11 @@
1
1
  import React from "react";
2
2
  export interface TextEditorMenuItem {
3
3
  icon: React.ReactNode;
4
- onClick: () => void;
4
+ onClick?: () => void;
5
5
  disabled?: boolean;
6
6
  title?: string;
7
+ actived?: boolean;
8
+ subItems?: TextEditorMenuItem[];
7
9
  }
8
10
  interface BubbleMenuItemType {
9
11
  subItems: TextEditorMenuItem[];
@@ -15,6 +15,9 @@ declare module "@tiptap/core" {
15
15
  }) => ReturnType;
16
16
  setMediaAlign: (align: "left" | "center" | "right") => ReturnType;
17
17
  };
18
+ tableCell: {
19
+ setCellVerticalAlign: (value: "top" | "middle" | "bottom") => ReturnType;
20
+ };
18
21
  }
19
22
  }
20
23
  export interface MediaOptions {
@@ -29,6 +29,7 @@ export interface VirtualListProps<T = any> extends React.DetailedHTMLProps<React
29
29
  bottom: number;
30
30
  } | undefined;
31
31
  totalListHeightChanged?: ((height: number) => void) | undefined;
32
+ reversed?: boolean;
32
33
  }
33
34
  export interface VirtualListRef {
34
35
  scrollToIndex: (index: number) => void;
@@ -33,6 +33,7 @@ export * from "./Tooltip";
33
33
  export * from "./Content";
34
34
  export * from "./DatePicker";
35
35
  export * from "./TimePicker";
36
+ export * from "./Carousel";
36
37
  export * from "./Upload";
37
38
  export * from "./Space";
38
39
  export * from "./Skeleton";
@@ -76,3 +77,5 @@ export * from "./Mentions";
76
77
  export * from "./Tree";
77
78
  export * from "./TreeSelect";
78
79
  export * from "./TreeSelectField";
80
+ export * from "./BecaChatBox";
81
+ export * from "./AIChat";