asma-core-ui 4.0.0-1 → 4.0.0-2

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.
@@ -6,7 +6,6 @@ export * from './components/icons';
6
6
  export * from './components/data-display/typography';
7
7
  export * from './components/feedback/dialog';
8
8
  export * from './components/feedback/alert';
9
- export * from './components/feedback/snack-bar';
10
9
  export * from './components/inputs/button';
11
10
  export * from './components/inputs/checkbox';
12
11
  export * from './components/inputs/input-field';
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "4.0.0-1",
6
+ "version": "4.0.0-2",
7
7
  "type": "module",
8
8
  "files": [
9
9
  "dist/**/*",
@@ -50,7 +50,6 @@
50
50
  "lodash-es": "^4.17.21",
51
51
  "material-ui-popup-state": "^5.0.10",
52
52
  "node": "18.17.0",
53
- "notistack": "^3.0.1",
54
53
  "react": "^18.2.0",
55
54
  "react-day-picker": "^8.8.2",
56
55
  "react-dom": "^18.2.0",
@@ -1,32 +0,0 @@
1
- import type { AlertColor } from '@mui/material';
2
- import { type SnackbarProviderProps } from 'notistack';
3
- /**
4
- * @ignore
5
- * @internal
6
- */
7
- export declare const SnackbarProvider: (props: SnackbarProviderProps) => JSX.Element;
8
- declare module 'notistack' {
9
- interface VariantOverrides {
10
- alert: {
11
- /**
12
- * The className to apply to the alert.
13
- */
14
- alertClassName?: string;
15
- /**
16
- * The variant to use.
17
- * @default 'standard'
18
- */
19
- alertVariant?: 'standard' | 'filled' | 'outlined';
20
- /**
21
- * The severity of the alert. This defines the color and icon used.
22
- * @default 'success'
23
- */
24
- severity?: AlertColor;
25
- /**
26
- * If true, the alert is closable.
27
- * @default false
28
- */
29
- closeButton?: boolean;
30
- };
31
- }
32
- }
@@ -1,11 +0,0 @@
1
- /// <reference types="react" />
2
- import type { AlertColor } from '@mui/material';
3
- import { type CustomContentProps } from 'notistack';
4
- interface StyledAlertSnackbarProps extends CustomContentProps {
5
- severity?: AlertColor;
6
- alertClassName?: string;
7
- alertVariant?: 'standard' | 'filled' | 'outlined';
8
- closeButton?: boolean;
9
- }
10
- export declare const StyledAlertSnackbar: import("react").ForwardRefExoticComponent<StyledAlertSnackbarProps & import("react").RefAttributes<HTMLDivElement>>;
11
- export {};
@@ -1,2 +0,0 @@
1
- import { type SnackbarProps } from '@mui/material';
2
- export declare const StyledSnackbar: ({ children, ...props }: SnackbarProps) => JSX.Element;
@@ -1,12 +0,0 @@
1
- /// <reference types="react" />
2
- import type { AlertColor } from '@mui/material';
3
- import { type CustomContentProps } from 'notistack';
4
- interface StyledInfoSnackbarProps extends CustomContentProps {
5
- severity?: AlertColor;
6
- alertClassName?: string;
7
- alertVariant?: 'standard' | 'filled' | 'outlined';
8
- closeButton?: boolean;
9
- type?: 'loading';
10
- }
11
- export declare const StyledInfoSnackbar: import("react").ForwardRefExoticComponent<StyledInfoSnackbarProps & import("react").RefAttributes<HTMLDivElement>>;
12
- export {};
@@ -1,3 +0,0 @@
1
- import type { ReactNode } from 'react';
2
- import type { MessageProps } from './types';
3
- export declare function processMessageError(messageInfo: string | ReactNode, options?: MessageProps): () => void;
@@ -1,3 +0,0 @@
1
- import type { ReactNode } from 'react';
2
- import type { MessageProps } from './types';
3
- export declare function processMessageInfo(messageInfo: string | ReactNode, options?: MessageProps): () => void;
@@ -1,10 +0,0 @@
1
- import type { AlertColor } from '@mui/material';
2
- import type { SnackbarProviderProps } from 'notistack';
3
- export type MessageProps = SnackbarProviderProps & {
4
- severity?: AlertColor;
5
- persist?: boolean;
6
- closeButton?: boolean;
7
- className?: string;
8
- id?: string;
9
- type?: 'loading';
10
- };
@@ -1,2 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const InfoMessages: React.FC;
@@ -1,6 +0,0 @@
1
- export * from './SnackbarProvider';
2
- export { enqueueSnackbar, closeSnackbar, useSnackbar } from 'notistack';
3
- export * from './StyledSnackbar';
4
- export * from './processAlertSnackBar';
5
- export * from './processInfoSnackbar';
6
- export * from './message';
@@ -1,17 +0,0 @@
1
- import type { ReactNode } from 'react';
2
- import type { MessageProps } from './components/types';
3
- /**
4
- * Important props:
5
- * @param id - string. To control the message
6
- * @remarks use callBack function to close the message manually. Providing ID as a param is important in this case.
7
- * Without ID, callback fil force close all active notifications
8
- * @param closeButton - true | false
9
- * @param persist - true | false
10
- * @param autoHideDuration - number
11
- * @moreProps https://notistack.com/api-reference#mutual-props
12
- */
13
- export declare const message: {
14
- info: (messageInfo: string | ReactNode, options?: MessageProps) => (() => void);
15
- error: (messageInfo: string | ReactNode, options?: MessageProps) => (() => void);
16
- loading: (messageInfo: string | ReactNode, options?: MessageProps) => (() => void);
17
- };
@@ -1 +0,0 @@
1
- export declare function processAlertSnackBar(message: string): void;
@@ -1 +0,0 @@
1
- export declare function processInfoSnackbar(message: string): void;