beca-ui 0.0.0 → 0.0.1
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/assets/locales/en.json.d.ts +11 -0
- package/dist/assets/locales/vi.json.d.ts +11 -0
- package/dist/beca-ui.js +98392 -3
- package/dist/components/Anchor/Anchor.d.ts +4 -0
- package/dist/components/Anchor/Anchor.types.d.ts +3 -0
- package/dist/components/Anchor/index.d.ts +3 -0
- package/dist/components/ApplicationsCard/ApplicationsCard.d.ts +3 -0
- package/dist/components/ApplicationsCard/ApplicationsCard.types.d.ts +15 -0
- package/dist/components/ApplicationsCard/index.d.ts +3 -0
- package/dist/components/AudioPlayer/AudioPlayer.d.ts +4 -0
- package/dist/components/AudioPlayer/AudioPlayer.types.d.ts +10 -0
- package/dist/components/AudioPlayer/index.d.ts +3 -0
- package/dist/components/AutoComplete/AutoComplete.d.ts +2 -0
- package/dist/components/AutoComplete/AutoComplete.types.d.ts +3 -0
- package/dist/components/AutoComplete/index.d.ts +3 -0
- package/dist/components/Avatar/Avatar.d.ts +6 -0
- package/dist/components/Avatar/Avatar.types.d.ts +6 -0
- package/dist/components/Avatar/index.d.ts +4 -0
- package/dist/components/Badge/Badge.d.ts +4 -0
- package/dist/components/Badge/Badge.types.d.ts +3 -0
- package/dist/components/Badge/index.d.ts +3 -0
- package/dist/components/Breadcrumb/Breadcrumb.d.ts +6 -0
- package/dist/components/Breadcrumb/Breadcrumb.types.d.ts +5 -0
- package/dist/components/Breadcrumb/index.d.ts +3 -0
- package/dist/components/Button/Button.d.ts +2 -0
- package/dist/components/Button/Button.types.d.ts +14 -0
- package/dist/components/Button/index.d.ts +3 -0
- package/dist/components/Calendar/Calendar.d.ts +3 -0
- package/dist/components/Calendar/Calendar.types.d.ts +3 -0
- package/dist/components/Calendar/index.d.ts +3 -0
- package/dist/components/Card/Card.d.ts +3 -0
- package/dist/components/Card/Card.types.d.ts +15 -0
- package/dist/components/Card/index.d.ts +3 -0
- package/dist/components/Card2/Card2.d.ts +6 -0
- package/dist/components/Card2/Card2.types.d.ts +6 -0
- package/dist/components/Card2/index.d.ts +3 -0
- package/dist/components/Checkbox/Checkbox.d.ts +6 -0
- package/dist/components/Checkbox/Checkbox.types.d.ts +14 -0
- package/dist/components/Checkbox/index.d.ts +3 -0
- package/dist/components/Col/Col.d.ts +3 -0
- package/dist/components/Col/Col.types.d.ts +3 -0
- package/dist/components/Col/index.d.ts +3 -0
- package/dist/components/Collapse/Collapse.d.ts +6 -0
- package/dist/components/Collapse/Collapse.types.d.ts +5 -0
- package/dist/components/Collapse/index.d.ts +3 -0
- package/dist/components/ColorPicker/ColorPicker.d.ts +2 -0
- package/dist/components/ColorPicker/ColorPicker.types.d.ts +2 -0
- package/dist/components/ColorPicker/index.d.ts +3 -0
- package/dist/components/Comment/Comment.d.ts +4 -0
- package/dist/components/Comment/Comment.types.d.ts +3 -0
- package/dist/components/Comment/index.d.ts +3 -0
- package/dist/components/ConfigProvider/ConfigProvider.d.ts +4 -0
- package/dist/components/ConfigProvider/ConfigProvider.types.d.ts +5 -0
- package/dist/components/ConfigProvider/index.d.ts +3 -0
- package/dist/components/Content/Content.d.ts +3 -0
- package/dist/components/Content/Content.types.d.ts +4 -0
- package/dist/components/Content/index.d.ts +3 -0
- package/dist/components/DatePicker/DatePicker.d.ts +10 -0
- package/dist/components/DatePicker/DatePicker.types.d.ts +7 -0
- package/dist/components/DatePicker/index.d.ts +3 -0
- package/dist/components/Descriptions/Descriptions.d.ts +6 -0
- package/dist/components/Descriptions/Descriptions.types.d.ts +6 -0
- package/dist/components/Descriptions/index.d.ts +3 -0
- package/dist/components/Divider/Divider.d.ts +4 -0
- package/dist/components/Divider/Divider.types.d.ts +3 -0
- package/dist/components/Divider/index.d.ts +3 -0
- package/dist/components/Drawer/Drawer.d.ts +4 -0
- package/dist/components/Drawer/Drawer.types.d.ts +3 -0
- package/dist/components/Drawer/index.d.ts +3 -0
- package/dist/components/Dropdown/Dropdown.d.ts +3 -0
- package/dist/components/Dropdown/Dropdown.types.d.ts +5 -0
- package/dist/components/Dropdown/index.d.ts +3 -0
- package/dist/components/Empty/Empty.d.ts +4 -0
- package/dist/components/Empty/Empty.types.d.ts +3 -0
- package/dist/components/Empty/index.d.ts +3 -0
- package/dist/components/ErrorPage/ErrorPage.d.ts +3 -0
- package/dist/components/ErrorPage/ErrorPage.types.d.ts +14 -0
- package/dist/components/ErrorPage/index.d.ts +3 -0
- package/dist/components/Form/Form.d.ts +15 -0
- package/dist/components/Form/Form.types.d.ts +9 -0
- package/dist/components/Form/index.d.ts +3 -0
- package/dist/components/Icons/Icons.d.ts +15 -0
- package/dist/components/Icons/index.d.ts +1 -0
- package/dist/components/Image/Image.d.ts +6 -0
- package/dist/components/Image/Image.types.d.ts +6 -0
- package/dist/components/Image/index.d.ts +3 -0
- package/dist/components/ImgCrop/ImgCrop.d.ts +4 -0
- package/dist/components/ImgCrop/index.d.ts +1 -0
- package/dist/components/Input/Input.d.ts +9 -0
- package/dist/components/Input/Input.types.d.ts +17 -0
- package/dist/components/Input/index.d.ts +3 -0
- package/dist/components/InputNumber/InputNumber.d.ts +3 -0
- package/dist/components/InputNumber/InputNumber.types.d.ts +3 -0
- package/dist/components/InputNumber/index.d.ts +3 -0
- package/dist/components/Layout/Layout.d.ts +11 -0
- package/dist/components/Layout/Layout.types.d.ts +3 -0
- package/dist/components/Layout/index.d.ts +2 -0
- package/dist/components/List/List.d.ts +8 -0
- package/dist/components/List/List.types.d.ts +8 -0
- package/dist/components/List/index.d.ts +3 -0
- package/dist/components/MainLayout/Content/Content.d.ts +3 -0
- package/dist/components/MainLayout/Content/Content.types.d.ts +3 -0
- package/dist/components/MainLayout/Content/index.d.ts +2 -0
- package/dist/components/MainLayout/Header/Header.d.ts +4 -0
- package/dist/components/MainLayout/Header/Header.types.d.ts +48 -0
- package/dist/components/MainLayout/Header/Notification.d.ts +12 -0
- package/dist/components/MainLayout/Header/index.d.ts +2 -0
- package/dist/components/MainLayout/MainLayout.d.ts +8 -0
- package/dist/components/MainLayout/MainLayout.types.d.ts +12 -0
- package/dist/components/MainLayout/SideBarMenu/SideBarMenu.d.ts +10 -0
- package/dist/components/MainLayout/SideBarMenu/SideBarMenu.types.d.ts +21 -0
- package/dist/components/MainLayout/SideBarMenu/index.d.ts +2 -0
- package/dist/components/MainLayout/index.d.ts +4 -0
- package/dist/components/Menu/Menu.d.ts +8 -0
- package/dist/components/Menu/Menu.types.d.ts +9 -0
- package/dist/components/Menu/index.d.ts +3 -0
- package/dist/components/Message/Message.d.ts +2 -0
- package/dist/components/Message/Message.types.d.ts +3 -0
- package/dist/components/Message/index.d.ts +3 -0
- package/dist/components/Modal/Modal.d.ts +13 -0
- package/dist/components/Modal/Modal.types.d.ts +19 -0
- package/dist/components/Modal/index.d.ts +3 -0
- package/dist/components/Notification/Notification.d.ts +2 -0
- package/dist/components/Notification/Notification.types.d.ts +3 -0
- package/dist/components/Notification/index.d.ts +3 -0
- package/dist/components/PageHeader/PageHeader.d.ts +4 -0
- package/dist/components/PageHeader/PageHeader.types.d.ts +3 -0
- package/dist/components/PageHeader/index.d.ts +3 -0
- package/dist/components/Pagination/Pagination.d.ts +4 -0
- package/dist/components/Pagination/Pagination.types.d.ts +3 -0
- package/dist/components/Pagination/index.d.ts +3 -0
- package/dist/components/Popconfirm/Popconfirm.d.ts +4 -0
- package/dist/components/Popconfirm/Popconfirm.types.d.ts +8 -0
- package/dist/components/Popconfirm/index.d.ts +3 -0
- package/dist/components/Popover/Popover.d.ts +3 -0
- package/dist/components/Popover/Popover.types.d.ts +5 -0
- package/dist/components/Popover/index.d.ts +3 -0
- package/dist/components/Progress/Progress.d.ts +4 -0
- package/dist/components/Progress/Progress.types.d.ts +3 -0
- package/dist/components/Progress/index.d.ts +3 -0
- package/dist/components/Radio/Radio.d.ts +6 -0
- package/dist/components/Radio/Radio.types.d.ts +5 -0
- package/dist/components/Radio/index.d.ts +3 -0
- package/dist/components/Rate/Rate.d.ts +4 -0
- package/dist/components/Rate/Rate.types.d.ts +3 -0
- package/dist/components/Rate/index.d.ts +3 -0
- package/dist/components/Row/Row.d.ts +3 -0
- package/dist/components/Row/Row.types.d.ts +4 -0
- package/dist/components/Row/index.d.ts +3 -0
- package/dist/components/Segmented/Segmented.d.ts +4 -0
- package/dist/components/Segmented/Segmented.types.d.ts +3 -0
- package/dist/components/Segmented/index.d.ts +3 -0
- package/dist/components/Select/Select.d.ts +6 -0
- package/dist/components/Select/Select.types.d.ts +11 -0
- package/dist/components/Select/index.d.ts +3 -0
- package/dist/components/Skeleton/Skeleton.d.ts +2 -0
- package/dist/components/Skeleton/Skeleton.types.d.ts +3 -0
- package/dist/components/Skeleton/index.d.ts +3 -0
- package/dist/components/Slider/Slider.d.ts +4 -0
- package/dist/components/Slider/Slider.types.d.ts +5 -0
- package/dist/components/Slider/index.d.ts +3 -0
- package/dist/components/Space/Space.d.ts +3 -0
- package/dist/components/Space/Space.types.d.ts +3 -0
- package/dist/components/Space/index.d.ts +3 -0
- package/dist/components/Spin/Spin.d.ts +3 -0
- package/dist/components/Spin/Spin.types.d.ts +4 -0
- package/dist/components/Spin/index.d.ts +3 -0
- package/dist/components/Statistic/Statistic.d.ts +4 -0
- package/dist/components/Statistic/Statistic.types.d.ts +3 -0
- package/dist/components/Statistic/index.d.ts +3 -0
- package/dist/components/Steps/Steps.d.ts +6 -0
- package/dist/components/Steps/Steps.types.d.ts +5 -0
- package/dist/components/Steps/index.d.ts +3 -0
- package/dist/components/Switch/Switch.d.ts +4 -0
- package/dist/components/Switch/Switch.types.d.ts +3 -0
- package/dist/components/Switch/index.d.ts +3 -0
- package/dist/components/Table/Table.d.ts +5 -0
- package/dist/components/Table/Table.types.d.ts +17 -0
- package/dist/components/Table/index.d.ts +3 -0
- package/dist/components/Tabs/Tabs.d.ts +6 -0
- package/dist/components/Tabs/Tabs.types.d.ts +10 -0
- package/dist/components/Tabs/index.d.ts +3 -0
- package/dist/components/Tag/Tag.d.ts +4 -0
- package/dist/components/Tag/Tag.types.d.ts +3 -0
- package/dist/components/Tag/index.d.ts +3 -0
- package/dist/components/TextEditor/FontSize/index.d.ts +10 -0
- package/dist/components/TextEditor/Image/NodeView.d.ts +15 -0
- package/dist/components/TextEditor/Image/icons/index.d.ts +6 -0
- package/dist/components/TextEditor/Image/index.d.ts +24 -0
- package/dist/components/TextEditor/Image/resizableMediaMenuUtil.d.ts +9 -0
- package/dist/components/TextEditor/Image/upload_image.d.ts +7 -0
- package/dist/components/TextEditor/MentionList.d.ts +3 -0
- package/dist/components/TextEditor/TextEditor.d.ts +5 -0
- package/dist/components/TextEditor/TextEditor.types.d.ts +46 -0
- package/dist/components/TextEditor/index.d.ts +3 -0
- package/dist/components/TimePicker/TimePicker.d.ts +7 -0
- package/dist/components/TimePicker/TimePicker.types.d.ts +5 -0
- package/dist/components/TimePicker/index.d.ts +3 -0
- package/dist/components/Timeline/Timeline.d.ts +6 -0
- package/dist/components/Timeline/Timeline.types.d.ts +6 -0
- package/dist/components/Timeline/index.d.ts +3 -0
- package/dist/components/Tooltip/Tooltip.d.ts +4 -0
- package/dist/components/Tooltip/Tooltip.types.d.ts +2 -0
- package/dist/components/Tooltip/index.d.ts +3 -0
- package/dist/components/Tree/Tree.d.ts +4 -0
- package/dist/components/Tree/Tree.types.d.ts +3 -0
- package/dist/components/Tree/index.d.ts +3 -0
- package/dist/components/TreeSelect/TreeSelect.d.ts +7 -0
- package/dist/components/TreeSelect/TreeSelect.types.d.ts +9 -0
- package/dist/components/TreeSelect/index.d.ts +3 -0
- package/dist/components/Typography/Typography.d.ts +10 -0
- package/dist/components/Typography/Typography.types.d.ts +10 -0
- package/dist/components/Typography/index.d.ts +3 -0
- package/dist/components/Upload/Upload.d.ts +10 -0
- package/dist/components/Upload/Upload.types.d.ts +8 -0
- package/dist/components/Upload/index.d.ts +3 -0
- package/dist/components/VideoPlayer/VideoPlayer.d.ts +4 -0
- package/dist/components/VideoPlayer/VideoPlayer.types.d.ts +19 -0
- package/dist/components/VideoPlayer/index.d.ts +3 -0
- package/dist/components/VirtualList/VirtualList.d.ts +4 -0
- package/dist/components/VirtualList/VirtualList.types.d.ts +36 -0
- package/dist/components/VirtualList/index.d.ts +3 -0
- package/dist/components/index.d.ts +67 -0
- package/dist/data/LocalesTexts/EnglishTexts.d.ts +9 -0
- package/dist/data/LocalesTexts/VietnameseTexts.d.ts +9 -0
- package/dist/data/Permissions.d.ts +5 -0
- package/dist/data/SideBarMenu.d.ts +2 -0
- package/dist/hooks/LocaleHook.d.ts +11 -0
- package/dist/hooks/i18n.d.ts +7 -0
- package/dist/hooks/index.d.ts +1 -0
- package/dist/main.css +8 -1
- package/dist/main.d.ts +1 -1
- package/dist/models/Core/Result.d.ts +6 -0
- package/dist/models/Core/index.d.ts +2 -0
- package/dist/models/IPersonalProfileModel.d.ts +28 -0
- package/dist/models/ISupportContactModel.d.ts +8 -0
- package/dist/models/Layout/IMenuModel.d.ts +16 -0
- package/dist/models/Layout/ISideBarMenuModel.d.ts +5 -0
- package/dist/models/Layout/index.d.ts +2 -0
- package/dist/models/NotificationModel.d.ts +12 -0
- package/dist/models/Session/IServiceUser.d.ts +3 -0
- package/dist/models/Session/IWebSessionContext.d.ts +21 -0
- package/dist/models/Session/index.d.ts +3 -0
- package/dist/models/index.d.ts +6 -0
- package/dist/services/FormatDateTimeService.d.ts +13 -0
- package/dist/services/LayoutService.d.ts +11 -0
- package/dist/services/NotificationService.d.ts +25 -0
- package/dist/services/index.d.ts +2 -0
- package/dist/styles/components/light-theme/layout/test.d.ts +2 -0
- package/dist/styles/font.d.ts +0 -0
- package/dist/theme/index.d.ts +1 -0
- package/dist/theme/styles.d.ts +1 -0
- package/package.json +50 -3
- package/dist/components/Hau/index.d.ts +0 -1
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { InputProps as AntInputProps } from "antd";
|
|
2
|
+
import { TextAreaProps as AntTextAreaProps } from "antd/lib/input/TextArea";
|
|
3
|
+
import { SearchProps as AntSearchProps, GroupProps as AntGroupProps, PasswordProps as AntPasswordProps } from "antd/lib/input";
|
|
4
|
+
export interface InputProps extends AntInputProps {
|
|
5
|
+
isColorPicker?: boolean;
|
|
6
|
+
isFlat?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export interface TextAreaProps extends AntTextAreaProps {
|
|
9
|
+
isFlat?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export interface SearchProps extends AntSearchProps {
|
|
12
|
+
}
|
|
13
|
+
export interface PasswordProps extends AntPasswordProps {
|
|
14
|
+
isFlat?: boolean;
|
|
15
|
+
}
|
|
16
|
+
export interface GroupProps extends AntGroupProps {
|
|
17
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { SiderProps } from "antd";
|
|
3
|
+
import { BasicProps } from "antd/lib/layout/layout";
|
|
4
|
+
import { LayoutProps } from ".";
|
|
5
|
+
declare const Layout: React.FunctionComponent<LayoutProps> & {
|
|
6
|
+
Header: React.ForwardRefExoticComponent<BasicProps & React.RefAttributes<HTMLElement>>;
|
|
7
|
+
Footer: React.ForwardRefExoticComponent<BasicProps & React.RefAttributes<HTMLElement>>;
|
|
8
|
+
Sider: React.ForwardRefExoticComponent<SiderProps & React.RefAttributes<HTMLDivElement>>;
|
|
9
|
+
Content: React.ForwardRefExoticComponent<BasicProps & React.RefAttributes<HTMLElement>>;
|
|
10
|
+
};
|
|
11
|
+
export default Layout;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { ListItemMetaProps, ListItemProps, ListProps } from ".";
|
|
3
|
+
declare const List: React.FunctionComponent<ListProps<any>> & {
|
|
4
|
+
Item: React.FunctionComponent<ListItemProps> & {
|
|
5
|
+
Meta: React.FunctionComponent<ListItemMetaProps>;
|
|
6
|
+
};
|
|
7
|
+
};
|
|
8
|
+
export default List;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ListProps as AntListProps } from "antd";
|
|
2
|
+
import { ListItemProps as AntListItemProps, ListItemMetaProps as AntListItemMetaProps } from "antd/lib/list/Item";
|
|
3
|
+
export interface ListProps<T> extends AntListProps<T> {
|
|
4
|
+
}
|
|
5
|
+
export interface ListItemProps extends AntListItemProps {
|
|
6
|
+
}
|
|
7
|
+
export interface ListItemMetaProps extends AntListItemMetaProps {
|
|
8
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { IPersonalProfileModel, ISupportContactModel } from "../../../models";
|
|
3
|
+
import { ApplicationsCardProps } from "../../ApplicationsCard";
|
|
4
|
+
import { ItemType } from "../../Menu";
|
|
5
|
+
import { LANGUAGE } from "../../ConfigProvider";
|
|
6
|
+
export interface HeaderProps extends ApplicationsCardProps {
|
|
7
|
+
logoUrl: string;
|
|
8
|
+
collapsed: boolean;
|
|
9
|
+
personalProfile: IPersonalProfileModel;
|
|
10
|
+
toggleCollapse?: () => void;
|
|
11
|
+
helloText?: string;
|
|
12
|
+
avatarUrl?: string;
|
|
13
|
+
isMobile: boolean;
|
|
14
|
+
isShowCollapseButton?: boolean;
|
|
15
|
+
headerTitle?: string;
|
|
16
|
+
profileMenuItems?: ItemType[];
|
|
17
|
+
homePageUrl: string;
|
|
18
|
+
customHeader?: React.ReactNode;
|
|
19
|
+
supportContactData: ISupportContactModel[];
|
|
20
|
+
notification?: NotificationType;
|
|
21
|
+
LinkComponent: any;
|
|
22
|
+
isSwitchTheme?: boolean;
|
|
23
|
+
onSwitchedTheme?: (isDark?: boolean) => void;
|
|
24
|
+
theme?: {
|
|
25
|
+
getApi: string;
|
|
26
|
+
updateApi: string;
|
|
27
|
+
};
|
|
28
|
+
onChangeLocale?: (locale: LANGUAGE) => void;
|
|
29
|
+
lang: LANGUAGE;
|
|
30
|
+
}
|
|
31
|
+
export interface NotificationType {
|
|
32
|
+
title?: string;
|
|
33
|
+
visible?: boolean;
|
|
34
|
+
number?: number;
|
|
35
|
+
data: NotificationItemType[];
|
|
36
|
+
onClick?: () => void;
|
|
37
|
+
onClickNotificationItem?: (item: NotificationItemType) => void;
|
|
38
|
+
}
|
|
39
|
+
export interface NotificationItemType {
|
|
40
|
+
id: number;
|
|
41
|
+
type: string;
|
|
42
|
+
from: string;
|
|
43
|
+
content: string;
|
|
44
|
+
time: string;
|
|
45
|
+
isRead: boolean;
|
|
46
|
+
isSeen: boolean;
|
|
47
|
+
url: string;
|
|
48
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
import { NotificationItemType } from "./Header.types";
|
|
3
|
+
import { ApplicationsCardItem } from "../../ApplicationsCard/ApplicationsCard.types";
|
|
4
|
+
interface Props {
|
|
5
|
+
data: NotificationItemType[];
|
|
6
|
+
applicationsCardData: ApplicationsCardItem[];
|
|
7
|
+
title?: string;
|
|
8
|
+
LinkComponent: any;
|
|
9
|
+
onClickNotificationItem?: (item: NotificationItemType) => void;
|
|
10
|
+
}
|
|
11
|
+
export declare const Notification: FC<Props>;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { MainLayoutProps } from ".";
|
|
3
|
+
interface AppContextProps {
|
|
4
|
+
LinkComponent?: any;
|
|
5
|
+
}
|
|
6
|
+
export declare const AppContext: React.Context<AppContextProps>;
|
|
7
|
+
export declare const MainLayout: React.FunctionComponent<MainLayoutProps>;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { SideBarMenuProps } from "./SideBarMenu";
|
|
3
|
+
import { HeaderProps } from "./Header";
|
|
4
|
+
import { ISideBarMenuModel } from "../../models";
|
|
5
|
+
export interface MainLayoutProps extends Omit<SideBarMenuProps, "sideBarMenus">, HeaderProps {
|
|
6
|
+
children?: React.ReactNode;
|
|
7
|
+
customSideBar?: React.ReactNode;
|
|
8
|
+
onChangeCollapse?: (collapsed: boolean) => void;
|
|
9
|
+
sideBarMenus: ISideBarMenuModel[] | (() => ISideBarMenuModel[]);
|
|
10
|
+
LinkComponent: any;
|
|
11
|
+
isSwitchTheme?: boolean;
|
|
12
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { SideBarMenu2Props } from "./SideBarMenu.types";
|
|
3
|
+
interface LinkProps {
|
|
4
|
+
LinkComponent: any;
|
|
5
|
+
to: string;
|
|
6
|
+
children: React.ReactNode;
|
|
7
|
+
}
|
|
8
|
+
export declare const Link: (props: LinkProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export declare const SideBarMenu: React.FunctionComponent<SideBarMenu2Props>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { ISideBarMenuModel } from "../../../models";
|
|
3
|
+
export interface SideBarMenuProps {
|
|
4
|
+
sideBarMenus: ISideBarMenuModel[];
|
|
5
|
+
activeMenu?: string;
|
|
6
|
+
openMenu?: string;
|
|
7
|
+
pathname: string;
|
|
8
|
+
isMobile: boolean;
|
|
9
|
+
homePageUrl: string;
|
|
10
|
+
}
|
|
11
|
+
export interface SideBarMenu2Props extends SideBarMenuProps {
|
|
12
|
+
collapsed: boolean;
|
|
13
|
+
items?: SideBarMenuItemProps[];
|
|
14
|
+
isAdmin?: boolean;
|
|
15
|
+
LinkComponent?: any;
|
|
16
|
+
}
|
|
17
|
+
export interface SideBarMenuItemProps {
|
|
18
|
+
key: string;
|
|
19
|
+
icon: React.ReactNode;
|
|
20
|
+
label: string;
|
|
21
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { MenuItemProps, MenuProps } from ".";
|
|
3
|
+
import { SubMenuProps } from "antd";
|
|
4
|
+
declare const Menu: React.FunctionComponent<MenuProps> & {
|
|
5
|
+
Item: MenuItemProps;
|
|
6
|
+
SubMenu: (props: SubMenuProps) => JSX.Element;
|
|
7
|
+
};
|
|
8
|
+
export default Menu;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { MenuProps as AntMenuProps, Menu } from "antd";
|
|
2
|
+
import { ItemType as AntItemType } from "antd/lib/menu/hooks/useItems";
|
|
3
|
+
type AntMenuItemProps = typeof Menu.Item;
|
|
4
|
+
export interface MenuProps extends AntMenuProps {
|
|
5
|
+
}
|
|
6
|
+
export interface MenuItemProps extends AntMenuItemProps {
|
|
7
|
+
}
|
|
8
|
+
export type ItemType = AntItemType;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ModalFunc, modalGlobalConfig } from "antd/lib/modal/confirm";
|
|
2
|
+
import useModal from "antd/lib/modal/useModal";
|
|
3
|
+
import React from "react";
|
|
4
|
+
import { ModalProps } from ".";
|
|
5
|
+
declare const Modal: React.FunctionComponent<ModalProps> & {
|
|
6
|
+
useModal: typeof useModal;
|
|
7
|
+
destroyAll: () => void;
|
|
8
|
+
config: typeof modalGlobalConfig;
|
|
9
|
+
confirm: ModalFunc;
|
|
10
|
+
error: ModalFunc;
|
|
11
|
+
info: ModalFunc;
|
|
12
|
+
};
|
|
13
|
+
export default Modal;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ModalFuncProps as AntModalFuncProps, ModalProps as AntModalProps } from "antd";
|
|
2
|
+
import { ButtonProps } from "../Button";
|
|
3
|
+
import { ModalFunc as AntModalFunc } from "antd/lib/modal/confirm";
|
|
4
|
+
export interface ModalProps extends Omit<AntModalProps, "cancelButtonProps" | "okButtonProps"> {
|
|
5
|
+
cancelButtonProps?: CancelButtonProps;
|
|
6
|
+
okButtonProps?: OkButtonProps;
|
|
7
|
+
}
|
|
8
|
+
export interface CancelButtonProps extends ButtonProps {
|
|
9
|
+
loading?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export interface OkButtonProps extends ButtonProps {
|
|
12
|
+
loading?: boolean;
|
|
13
|
+
}
|
|
14
|
+
export interface ModalFuncProps extends Omit<AntModalFuncProps, "cancelButtonProps" | "okButtonProps"> {
|
|
15
|
+
cancelButtonProps?: CancelButtonProps;
|
|
16
|
+
okButtonProps?: OkButtonProps;
|
|
17
|
+
}
|
|
18
|
+
export interface ModalFunc extends AntModalFunc {
|
|
19
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { PaginationProps } from ".";
|
|
3
|
+
export declare const paginationItemRender: (page: number, type: "page" | "prev" | "next" | "jump-prev" | "jump-next", originalElement: React.ReactNode) => string | number | boolean | Iterable<React.ReactNode> | import("react/jsx-runtime").JSX.Element | null | undefined;
|
|
4
|
+
export declare const Pagination: React.FunctionComponent<PaginationProps>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { PopconfirmProps as AntPopconfirmProps } from "antd";
|
|
2
|
+
import { PopupPosition } from "..";
|
|
3
|
+
import { ButtonProps } from "../Button";
|
|
4
|
+
export interface PopconfirmProps extends Omit<AntPopconfirmProps, "okButtonProps" | "cancelButtonProps"> {
|
|
5
|
+
okButtonProps?: ButtonProps;
|
|
6
|
+
cancelButtonProps?: ButtonProps;
|
|
7
|
+
position?: PopupPosition;
|
|
8
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { SelectProps as AntSelectProps } from "antd";
|
|
2
|
+
import { OptionProps as AntOptionProps } from "rc-select/lib/Option";
|
|
3
|
+
export interface OptionProps extends AntOptionProps {
|
|
4
|
+
}
|
|
5
|
+
export type PopupPosition = "relative" | "fixed";
|
|
6
|
+
export interface SelectProps<T = any> extends Omit<AntSelectProps<T>, "children"> {
|
|
7
|
+
children?: any;
|
|
8
|
+
position?: PopupPosition;
|
|
9
|
+
searchByLabelAndValue?: boolean;
|
|
10
|
+
searchByChildrenAndValue?: boolean;
|
|
11
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { SliderSingleProps as AntSliderSingleProps } from "antd";
|
|
2
|
+
import { SliderRangeProps as AntSliderRangeProps } from "antd/lib/slider";
|
|
3
|
+
export type SliderSingleProps = AntSliderSingleProps;
|
|
4
|
+
export type SliderRangeProps = AntSliderRangeProps;
|
|
5
|
+
export type SliderProps = SliderSingleProps | SliderRangeProps;
|