@abyss-project/commons-front-core 1.0.5 → 1.0.6

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.
@@ -0,0 +1,14 @@
1
+ import { default as React } from 'react';
2
+ export declare const drawerWidth = 275;
3
+ export declare const DOCUMENTATION_URL = "https://abyss-project.gitbook.io/abyss/";
4
+ type Props = {
5
+ isMobileOpen?: boolean;
6
+ handleDrawerToggle?: () => void;
7
+ header?: React.ReactNode;
8
+ drawer?: React.ReactNode;
9
+ classes: Record<string, string>;
10
+ };
11
+ declare const _default: React.JSXElementConstructor<Omit<Props & {
12
+ children?: React.ReactNode;
13
+ }, "classes"> & import('@mui/styles/withStyles').StyledComponentProps<string> & object>;
14
+ export default _default;
@@ -0,0 +1,11 @@
1
+ /// <reference types="react" />
2
+ type Props = {
3
+ hasDrawer?: boolean;
4
+ content?: React.ReactNode;
5
+ handleDrawerToggle: () => void;
6
+ classes: Record<string, string>;
7
+ };
8
+ declare const _default: import('react').JSXElementConstructor<Omit<Props & {
9
+ children?: import('react').ReactNode;
10
+ }, "classes"> & import('@mui/styles/withStyles').StyledComponentProps<string> & object>;
11
+ export default _default;
@@ -0,0 +1,2 @@
1
+ export { default as DashboardLayout } from './DashboardLayout.layout';
2
+ export { default as DashboardLayoutHeader } from './DashboardLayoutHeader.layout';
@@ -1,2 +1,3 @@
1
1
  export * from './MainLayout';
2
2
  export * from './LoadingLayout';
3
+ export * from './DashboardLayout';
@@ -0,0 +1,28 @@
1
+ import { AbyssService } from '@abyss-project/main';
2
+ export type DrawerElements = {
3
+ title?: string;
4
+ elements: ({
5
+ isExternal?: boolean;
6
+ service: AbyssService;
7
+ Logo: string;
8
+ link: string;
9
+ helper: string;
10
+ } | {
11
+ isExternal?: boolean;
12
+ Logo: any;
13
+ link: string;
14
+ helper: string;
15
+ })[];
16
+ }[];
17
+ type Props = {
18
+ mainPath: string;
19
+ title: string;
20
+ subtitle?: string;
21
+ handleDrawerToggle: () => void;
22
+ elements: DrawerElements;
23
+ classes: Record<string, string>;
24
+ };
25
+ declare const _default: import('react').JSXElementConstructor<Omit<Props & {
26
+ children?: import('react').ReactNode;
27
+ }, "classes"> & import('@mui/styles/withStyles').StyledComponentProps<string> & object>;
28
+ export default _default;
@@ -0,0 +1 @@
1
+ export { default as AbyssDrawer } from './AbyssDrawer.component';
@@ -0,0 +1,11 @@
1
+ /// <reference types="react" />
2
+ type Props = {
3
+ mainPath: string;
4
+ subtitle?: string;
5
+ title: string;
6
+ classes: Record<string, string>;
7
+ };
8
+ declare const _default: import('react').JSXElementConstructor<Omit<Props & {
9
+ children?: import('react').ReactNode;
10
+ }, "classes"> & import('@mui/styles/withStyles').StyledComponentProps<string> & object>;
11
+ export default _default;
@@ -0,0 +1 @@
1
+ export { default as AbyssHeaderTitle } from './AbyssHeaderTitle.component';
@@ -0,0 +1,29 @@
1
+ import { IUser } from '@abyss-project/main';
2
+ import { SxProps } from '@mui/material';
3
+ import { default as React } from 'react';
4
+ export type AbyssLayoutMenuContent = {
5
+ title?: string;
6
+ elements: {
7
+ link?: string;
8
+ onClick?: () => void;
9
+ text: string;
10
+ subTitle?: string;
11
+ icon?: React.ReactNode;
12
+ img?: string;
13
+ target?: string;
14
+ backgroundColor?: string;
15
+ color?: string;
16
+ border?: string;
17
+ menuItemSxProps?: SxProps;
18
+ }[];
19
+ }[];
20
+ type Props = {
21
+ content: AbyssLayoutMenuContent;
22
+ user: IUser | null;
23
+ getProfilePictureUrl: (id: string) => string;
24
+ classes: Record<string, string>;
25
+ };
26
+ declare const _default: React.JSXElementConstructor<Omit<Props & {
27
+ children?: React.ReactNode;
28
+ }, "classes"> & import('@mui/styles/withStyles').StyledComponentProps<string> & object>;
29
+ export default _default;
@@ -0,0 +1 @@
1
+ export { default as AbyssLayoutMenu } from './AbyssLayoutMenu.component';
@@ -0,0 +1,12 @@
1
+ import { IGetPublicUserData, IUserNotification, NotificationDTO } from '@abyss-project/main';
2
+ import { default as React } from 'react';
3
+ type Props = {
4
+ allNotificationPath?: string;
5
+ getProfilePictureUrl: (id: string) => string;
6
+ handleNotificationActionButton?: (notification: IUserNotification & NotificationDTO, user?: IGetPublicUserData['user'][0] | null) => void;
7
+ classes: Record<string, string>;
8
+ };
9
+ declare const _default: React.JSXElementConstructor<Omit<Props & {
10
+ children?: React.ReactNode;
11
+ }, "classes"> & import('@mui/styles/withStyles').StyledComponentProps<string> & object>;
12
+ export default _default;
@@ -0,0 +1 @@
1
+ export { default as AbyssLayoutNotifications } from './AbyssLayoutNotifications.component';
@@ -2,3 +2,7 @@ export * from './CustomDivider';
2
2
  export * from './FloatingNavigation';
3
3
  export * from './WaterParticles';
4
4
  export * from './LoadingBox';
5
+ export * from './AbyssDrawer';
6
+ export * from './AbyssHeaderTitle';
7
+ export * from './AbyssLayoutNotifications';
8
+ export * from './AbyssLayoutMenu';
@@ -120,6 +120,18 @@ export declare const translations: {
120
120
  cancel: string;
121
121
  };
122
122
  };
123
+ notifications: {
124
+ title: string;
125
+ 'new-notifications': string;
126
+ 'notifications-card-list': {
127
+ 'no-element': string;
128
+ };
129
+ 'no-notification': string;
130
+ 'see-all-button': string;
131
+ };
132
+ subscription: {
133
+ 'no-subscription': string;
134
+ };
123
135
  };
124
136
  en: {
125
137
  general: {