@sinco/react 1.0.2-rc.0 → 1.0.2-rc.10

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.0",
3
+ "version": "1.0.2-rc.10",
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 +1,3 @@
1
1
  export * from './lib/Theme';
2
+ export { default as ToastNotification } from './lib/components/toastNotification/ToastNotification';
3
+ export * from './lib/components/toastNotification/interfaces';
@@ -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
+ }