techsbcn-storybook 2.0.6 → 2.1.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/{types/components → components}/fields/ButtonComponent/ButtonComponent.d.ts +2 -0
- package/dist/components/modals/Drawers/DetailPanelComponent.d.ts +15 -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/{types/helpers → helpers}/index.d.ts +1 -0
- package/dist/{types/index.d.ts → index.d.ts} +3 -0
- package/dist/index.js +326 -175
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +301 -157
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -1
- /package/dist/{types/components → components}/fields/DatePickerComponent/DatePickerComponent.d.ts +0 -0
- /package/dist/{types/components → components}/fields/SelectFieldComponent/SelectAsyncField.d.ts +0 -0
- /package/dist/{types/components → components}/fields/SelectFieldComponent/SelectField.d.ts +0 -0
- /package/dist/{types/components → components}/fields/SelectFieldComponent/reactSelectTheme.d.ts +0 -0
- /package/dist/{types/components → components}/fields/TextFieldComponent/TextFieldComponent.d.ts +0 -0
- /package/dist/{types/components → components}/fields/TextSimpleComponent/TextSimpleComponent.d.ts +0 -0
- /package/dist/{types/components → components}/forms/ChangePasswordForm.d.ts +0 -0
- /package/dist/{types/components → components}/forms/LoginForm.d.ts +0 -0
- /package/dist/{types/components → components}/forms/ResetPasswordForm.d.ts +0 -0
- /package/dist/{types/components → components}/layouts/DrawerLayout/DrawerSidebar/DrawerSidebar.d.ts +0 -0
- /package/dist/{types/components → components}/layouts/MainLayoutSimple/MainLayoutSimple.d.ts +0 -0
- /package/dist/{types/components → components}/layouts/SplitLayout/SplitLayout.d.ts +0 -0
- /package/dist/{types/components → components}/layouts/Standard/AppHeader/AppHeader.d.ts +0 -0
- /package/dist/{types/components → components}/layouts/Standard/AppSidebar/AppSidebar.d.ts +0 -0
- /package/dist/{types/components → components}/modals/ModalComponent.d.ts +0 -0
- /package/dist/{types/components → components}/navigation/VerticalNav/NavIcon.d.ts +0 -0
- /package/dist/{types/components → components}/navigation/VerticalNav/VerticalNav.d.ts +0 -0
- /package/dist/{types/components → components}/navigation/VerticalNav/VerticalNavItem.d.ts +0 -0
- /package/dist/{types/components → components}/navigation/VerticalNav/VerticalNavItemCollapse.d.ts +0 -0
- /package/dist/{types/components → components}/navigation/components/UserInfo.d.ts +0 -0
- /package/dist/{types/components → components}/tables/ImageTableComponent/ImageTableComponent.d.ts +0 -0
- /package/dist/{types/components → components}/tables/SearchComponent/SearchComponent.d.ts +0 -0
- /package/dist/{types/components → components}/tables/SimpleTableComponent/SimpleTableComponent.d.ts +0 -0
- /package/dist/{types/components → components}/tables/TableComponent/TableComponent.d.ts +0 -0
- /package/dist/{types/components → components}/wrappers/CardComponent/CardComponent.d.ts +0 -0
- /package/dist/{types/components → components}/wrappers/LinearProgressComponent/LinearProgressComponent.d.ts +0 -0
- /package/dist/{types/components → components}/wrappers/MainWrapperComponent/MainWrapperComponent.d.ts +0 -0
- /package/dist/{types/components → components}/wrappers/PublicFormWrapper/PublicFormWrapper.d.ts +0 -0
- /package/dist/{types/components → components}/wrappers/TabsComponent/TabsComponent.d.ts +0 -0
- /package/dist/{types/helpers → helpers}/AuthHelper.d.ts +0 -0
- /package/dist/{types/helpers → helpers}/CheckPermission.d.ts +0 -0
- /package/dist/{types/helpers → helpers}/FileDownloader.d.ts +0 -0
- /package/dist/{types/helpers → helpers}/GroupBy.d.ts +0 -0
- /package/dist/{types/helpers → helpers}/hooks.d.ts +0 -0
- /package/dist/{types/interfaces → interfaces}/api/ApiError.d.ts +0 -0
- /package/dist/{types/interfaces → interfaces}/api/AuthRequest.d.ts +0 -0
- /package/dist/{types/interfaces → interfaces}/api/AuthResponse.d.ts +0 -0
- /package/dist/{types/interfaces → interfaces}/index.d.ts +0 -0
- /package/dist/{types/interfaces → interfaces}/search/BasicEntity.d.ts +0 -0
- /package/dist/{types/interfaces → interfaces}/search/SearchFilters.d.ts +0 -0
- /package/dist/{types/interfaces → interfaces}/search/SearchResult.d.ts +0 -0
- /package/dist/{types/interfaces → interfaces}/search/SearchSimpleResult.d.ts +0 -0
- /package/dist/{types/interfaces → interfaces}/shared/ObjectKey.d.ts +0 -0
- /package/dist/{types/theme → theme}/defaultTheme.d.ts +0 -0
- /package/dist/{types/theme → theme}/themeContract.d.ts +0 -0
|
@@ -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;
|
|
@@ -19,8 +19,11 @@ export * from './components/forms/LoginForm';
|
|
|
19
19
|
export * from './components/forms/ChangePasswordForm';
|
|
20
20
|
export * from './components/forms/ResetPasswordForm';
|
|
21
21
|
export * from './components/modals/ModalComponent';
|
|
22
|
+
export * from './components/modals/Drawers/DetailPanelComponent';
|
|
22
23
|
export * from './components/wrappers/TabsComponent/TabsComponent';
|
|
23
24
|
export * from './components/wrappers/LinearProgressComponent/LinearProgressComponent';
|
|
24
25
|
export * from './components/fields/DatePickerComponent/DatePickerComponent';
|
|
25
26
|
export * from './components/wrappers/CardComponent/CardComponent';
|
|
27
|
+
export * from './components/notifications/SnackbarComponent';
|
|
26
28
|
export * from './helpers/index';
|
|
29
|
+
export * from './interfaces/index';
|