@sinco/react 1.0.2-rc.2 → 1.0.2-rc.20

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sinco/react",
3
- "version": "1.0.2-rc.2",
3
+ "version": "1.0.2-rc.20",
4
4
  "description": "package for the configuration of mui react sinco",
5
5
  "private": false,
6
6
  "license": "MIT",
package/src/index.d.ts CHANGED
@@ -1,2 +1,4 @@
1
1
  export * from './lib/Theme';
2
- export * from './lib/Components/ToastNotification/interfaces';
2
+ export { default as ToastNotification } from './lib/toastNotification/ToastNotification';
3
+ export * from './lib/toastNotification/ToastNotification';
4
+ export * from './lib/toastNotification/interfaces';
@@ -0,0 +1,2 @@
1
+ declare const breakpoints: import("@mui/system").Breakpoints;
2
+ export default breakpoints;
@@ -1,2 +1,3 @@
1
- import { Components } from "@mui/material";
2
- export declare const components: Components<unknown>;
1
+ import { Components } from '@mui/material';
2
+ declare const components: Components;
3
+ export default components;
@@ -0,0 +1,3 @@
1
+ import { Mixins } from '@mui/material';
2
+ declare const mixins: Mixins;
3
+ export default mixins;
@@ -1,2 +1,3 @@
1
1
  import { PaletteOptions } from '@mui/material';
2
- export declare const palette: PaletteOptions;
2
+ declare const palette: PaletteOptions;
3
+ export default palette;
@@ -1,2 +1,3 @@
1
1
  import { Shadows } from '@mui/material/styles/shadows';
2
- export declare const shadows: Shadows;
2
+ declare const shadows: Shadows;
3
+ export default shadows;
@@ -1,2 +1,3 @@
1
1
  import { TypographyOptions } from '@mui/material/styles/createTypography';
2
- export declare const typography: TypographyOptions;
2
+ declare const typography: TypographyOptions;
3
+ export default typography;
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ import './toastNotification.css';
3
+ import { Toast } from './interfaces';
4
+ declare const ToastNotification: (toast: Toast) => JSX.Element;
5
+ export default ToastNotification;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import { ReactElement } from "react";
2
2
  export interface Option {
3
3
  option: string;
4
4
  }
@@ -11,3 +11,9 @@ export interface Toast {
11
11
  actions?: React.ReactNode;
12
12
  seeMore?: boolean;
13
13
  }
14
+ export interface IconMap {
15
+ [key: string]: ReactElement;
16
+ }
17
+ export interface ColorMap {
18
+ [key: string]: "success" | "error" | "warning" | "secondary";
19
+ }