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.
- package/dist/components/fields/ButtonComponent/ButtonComponent.d.ts +2 -0
- package/dist/components/modals/Drawers/DetailPanelComponent.d.ts +15 -0
- package/dist/components/navigation/AppBreadcrumbs/AppBreadcrumbs.d.ts +7 -0
- package/dist/components/notifications/SnackbarComponent.d.ts +12 -0
- package/dist/helpers/ErrorsHelper.d.ts +4 -0
- package/dist/helpers/NotificationHelper.d.ts +10 -0
- package/dist/helpers/index.d.ts +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +333 -175
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +309 -158
- package/dist/index.mjs.map +1 -1
- package/dist/interfaces/index.d.ts +1 -0
- package/dist/interfaces/navigation/Breadcrumb.d.ts +8 -0
- package/package.json +2 -1
|
@@ -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,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,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;
|
package/dist/helpers/index.d.ts
CHANGED
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';
|