techsbcn-storybook 2.0.7 → 2.2.0

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.
@@ -1,4 +1,5 @@
1
1
  import React from 'react';
2
+ import { ButtonProps } from '@mui/material';
2
3
 
3
4
  export interface ButtonComponentProps {
4
5
  className?: string;
@@ -12,5 +13,6 @@ export interface ButtonComponentProps {
12
13
  disabled?: boolean;
13
14
  component?: any;
14
15
  reverseColors?: boolean;
16
+ variant?: ButtonProps['variant'];
15
17
  }
16
18
  export declare const ButtonComponent: React.FC<ButtonComponentProps>;
@@ -0,0 +1,15 @@
1
+ import React from 'react';
2
+
3
+ interface DetailPanelComponentProps {
4
+ open: boolean;
5
+ onClose: () => void;
6
+ title?: string;
7
+ anchor?: 'left' | 'right';
8
+ width?: number | string;
9
+ actions?: React.ReactNode;
10
+ children?: React.ReactNode;
11
+ doublePanel?: boolean;
12
+ disableBackdropClose?: boolean;
13
+ }
14
+ export declare const DetailPanelComponent: React.FC<DetailPanelComponentProps>;
15
+ export {};
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ interface AppBreadcrumbsProps {
3
+ separator?: React.ReactNode;
4
+ maxItems?: number;
5
+ }
6
+ export declare const AppBreadcrumbs: React.FC<AppBreadcrumbsProps>;
7
+ export {};
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ import { AlertColor, SnackbarOrigin } from '@mui/material';
3
+ export interface SnackbarComponentProps {
4
+ open: boolean;
5
+ message: React.ReactNode;
6
+ onClose: () => void;
7
+ severity?: AlertColor;
8
+ autoHideDuration?: number | null;
9
+ anchorOrigin?: SnackbarOrigin;
10
+ action?: React.ReactNode;
11
+ }
12
+ export declare const SnackbarComponent: React.FC<SnackbarComponentProps>;
@@ -0,0 +1,4 @@
1
+ import { TFunction } from 'i18next';
2
+ import { ApiError } from '../interfaces/api/ApiError';
3
+ export declare const isApiError: (e: unknown) => e is ApiError;
4
+ export declare const errorMessage: (e: unknown, t: TFunction) => string;
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import { SnackbarKey, SnackbarProviderProps, VariantType } from 'notistack';
3
+ export declare const NotificationContainer: React.FC<SnackbarProviderProps>;
4
+ export declare const addNotification: ({ message, type, id, duration, }: {
5
+ message: React.ReactNode;
6
+ type?: VariantType;
7
+ id?: SnackbarKey;
8
+ duration?: number | null;
9
+ }) => SnackbarKey;
10
+ export declare const removeNotification: (id?: SnackbarKey) => void;
@@ -3,3 +3,4 @@ export * from './CheckPermission';
3
3
  export * from './GroupBy';
4
4
  export * from './FileDownloader';
5
5
  export * from './hooks';
6
+ export * from './NotificationHelper';
package/dist/index.d.ts CHANGED
@@ -7,6 +7,7 @@ export * from './components/layouts/MainLayoutSimple/MainLayoutSimple';
7
7
  export * from './components/layouts/SplitLayout/SplitLayout';
8
8
  export * from './components/navigation/VerticalNav/VerticalNav';
9
9
  export * from './components/navigation/components/UserInfo';
10
+ export * from './components/navigation/AppBreadcrumbs/AppBreadcrumbs';
10
11
  export * from './components/layouts/Standard/AppSidebar/AppSidebar';
11
12
  export * from './components/layouts/DrawerLayout/DrawerSidebar/DrawerSidebar';
12
13
  export * from './components/layouts/Standard/AppHeader/AppHeader';
@@ -19,9 +20,11 @@ export * from './components/forms/LoginForm';
19
20
  export * from './components/forms/ChangePasswordForm';
20
21
  export * from './components/forms/ResetPasswordForm';
21
22
  export * from './components/modals/ModalComponent';
23
+ export * from './components/modals/Drawers/DetailPanelComponent';
22
24
  export * from './components/wrappers/TabsComponent/TabsComponent';
23
25
  export * from './components/wrappers/LinearProgressComponent/LinearProgressComponent';
24
26
  export * from './components/fields/DatePickerComponent/DatePickerComponent';
25
27
  export * from './components/wrappers/CardComponent/CardComponent';
28
+ export * from './components/notifications/SnackbarComponent';
26
29
  export * from './helpers/index';
27
30
  export * from './interfaces/index';