beca-ui 2.0.19-beta.85 → 2.0.19-beta.87
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/beca-ui.js +1426 -1409
- package/dist/components/MainLayout/Header/Header.d.ts +2 -2
- package/dist/components/MainLayout/Header/Header.types.d.ts +3 -3
- package/dist/components/MainLayout/MainLayout.types.d.ts +2 -2
- package/dist/components/MainLayout/SideBarMenu/SideBarMenu.types.d.ts +2 -2
- package/dist/data/LocalesTexts/EnglishTexts.d.ts +4 -0
- package/dist/data/LocalesTexts/VietnameseTexts.d.ts +4 -0
- package/dist/data/SideBarMenu.d.ts +2 -2
- package/dist/hooks/LocaleHook.d.ts +4 -0
- package/dist/main.css +1 -1
- package/dist/models/Layout/{IMenuModel.d.ts → MenuModel.d.ts} +3 -3
- package/dist/models/Layout/SideBarMenuModel.d.ts +5 -0
- package/dist/models/Layout/index.d.ts +2 -2
- package/dist/models/{IPersonalProfileModel.d.ts → PersonalProfileModel.d.ts} +1 -1
- package/dist/models/SupportContactModel.d.ts +8 -0
- package/dist/models/index.d.ts +2 -2
- package/dist/services/LayoutService.d.ts +3 -3
- package/package.json +1 -1
- package/dist/models/ISupportContactModel.d.ts +0 -8
- package/dist/models/Layout/ISideBarMenuModel.d.ts +0 -5
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { ExtraHeaderProps, HeaderProps
|
|
2
|
-
declare const _default: import("react").ForwardRefExoticComponent<HeaderProps & ExtraHeaderProps & import("react").RefAttributes<NotificationRef>>;
|
|
1
|
+
import { ExtraHeaderProps, HeaderProps } from "./Header.types";
|
|
2
|
+
declare const _default: import("react").ForwardRefExoticComponent<HeaderProps & ExtraHeaderProps & import("react").RefAttributes<import("./Header.types").NotificationRef>>;
|
|
3
3
|
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { PersonalProfileModel, SupportContactModel } from "../../../models";
|
|
3
3
|
import { ApplicationsCardProps } from "../../ApplicationsCard";
|
|
4
4
|
import { MenuItemType } from "../../Menu";
|
|
5
5
|
import { LANGUAGE } from "../../ConfigProvider";
|
|
@@ -22,7 +22,7 @@ export interface HeaderProps extends ApplicationsCardProps {
|
|
|
22
22
|
profileMenuItems?: MenuItemType[];
|
|
23
23
|
homePageUrl: string;
|
|
24
24
|
customHeader?: React.ReactNode;
|
|
25
|
-
supportContactData:
|
|
25
|
+
supportContactData: SupportContactModel[];
|
|
26
26
|
notification?: NotificationProps;
|
|
27
27
|
LinkComponent: any;
|
|
28
28
|
isSwitchTheme?: boolean;
|
|
@@ -31,7 +31,7 @@ export interface HeaderProps extends ApplicationsCardProps {
|
|
|
31
31
|
onChangeLocale?: (locale: LANGUAGE) => void;
|
|
32
32
|
lang: LANGUAGE;
|
|
33
33
|
scrolled?: boolean;
|
|
34
|
-
personalProfile:
|
|
34
|
+
personalProfile: PersonalProfileModel;
|
|
35
35
|
config?: MainLayoutConfig;
|
|
36
36
|
}
|
|
37
37
|
export type ThemeType = {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { SideBarMenuProps } from "./SideBarMenu";
|
|
3
3
|
import { HeaderProps, NotificationRef } from "./Header";
|
|
4
|
-
import {
|
|
4
|
+
import { SideBarMenuModel } from "../../models";
|
|
5
5
|
export type MainTheme = "Beca" | "Office";
|
|
6
6
|
export interface MainLayoutProps extends Omit<SideBarMenuProps, "sideBarMenus">, HeaderProps {
|
|
7
7
|
children?: React.ReactNode;
|
|
8
8
|
onChangeCollapse?: (collapsed: boolean) => void;
|
|
9
|
-
sideBarMenus:
|
|
9
|
+
sideBarMenus: SideBarMenuModel[] | (() => SideBarMenuModel[]);
|
|
10
10
|
LinkComponent: any;
|
|
11
11
|
isSwitchTheme?: boolean;
|
|
12
12
|
className?: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { SideBarMenuModel } from "../../../models";
|
|
3
3
|
export interface SideBarMenuProps {
|
|
4
|
-
sideBarMenus:
|
|
4
|
+
sideBarMenus: SideBarMenuModel[];
|
|
5
5
|
activeMenu?: string;
|
|
6
6
|
openMenuKeys?: string[];
|
|
7
7
|
pathname: string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const SIDEBAR_MENUS:
|
|
1
|
+
import { SideBarMenuModel } from "../models";
|
|
2
|
+
export declare const SIDEBAR_MENUS: SideBarMenuModel[];
|