beca-ui 2.0.19-beta.85 → 2.0.19-beta.86
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 +1435 -1419
- 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,8 +1,8 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
export interface
|
|
3
|
-
children?:
|
|
2
|
+
export interface MenuModel extends MenuChildModel {
|
|
3
|
+
children?: MenuChildModel[];
|
|
4
4
|
}
|
|
5
|
-
export interface
|
|
5
|
+
export interface MenuChildModel {
|
|
6
6
|
id?: string;
|
|
7
7
|
title: string | React.ReactNode;
|
|
8
8
|
label?: React.ReactNode;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from "./
|
|
2
|
-
export * from "./
|
|
1
|
+
export * from "./SideBarMenuModel";
|
|
2
|
+
export * from "./MenuModel";
|
package/dist/models/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export * from "./Session";
|
|
2
2
|
export * from "./Layout";
|
|
3
3
|
export * from "./Core";
|
|
4
|
-
export * from "./
|
|
5
|
-
export * from "./
|
|
4
|
+
export * from "./PersonalProfileModel";
|
|
5
|
+
export * from "./SupportContactModel";
|
|
6
6
|
export * from "./NotificationModel";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { MenuModel, SideBarMenuModel } from "../models";
|
|
2
2
|
interface GetMenusProps {
|
|
3
3
|
name: string;
|
|
4
|
-
menus:
|
|
4
|
+
menus: SideBarMenuModel[];
|
|
5
5
|
defaultMenu: string;
|
|
6
6
|
}
|
|
7
7
|
export declare class LayoutService {
|
|
8
|
-
static getMenus: (data: GetMenusProps) =>
|
|
8
|
+
static getMenus: (data: GetMenusProps) => MenuModel[];
|
|
9
9
|
static getPlatform: (customNavigator?: Navigator) => "Chrome" | "Firefox" | "Safari" | "" | "iOS";
|
|
10
10
|
}
|
|
11
11
|
export {};
|
package/package.json
CHANGED