@sinco/react 1.0.2-rc.13 → 1.0.2-rc.14

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.13",
3
+ "version": "1.0.2-rc.14",
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
+ export { default as ToastNotification } from './lib/toastNotification/ToastNotification';
1
2
  export * from './lib/Theme';
3
+ export * from './lib/toastNotification/ToastNotification';
@@ -1,2 +1,2 @@
1
- import { Components } from '@mui/material';
1
+ import { Components } from "@mui/material";
2
2
  export declare const components: Components<unknown>;
@@ -1,15 +1 @@
1
- /// <reference types="react" />
2
- declare module '@mui/material/styles' {
3
- interface TypographyVariants {
4
- body3: React.CSSProperties;
5
- }
6
- interface TypographyVariantsOptions {
7
- body3?: React.CSSProperties;
8
- }
9
- }
10
- declare module '@mui/material/Typography' {
11
- interface TypographyPropsVariantOverrides {
12
- body3: true;
13
- }
14
- }
15
1
  export declare const SincoTheme: import("@mui/material/styles").Theme;
@@ -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;
@@ -0,0 +1,19 @@
1
+ import { ReactElement } from "react";
2
+ export interface Option {
3
+ option: string;
4
+ }
5
+ export interface Toast {
6
+ type?: string;
7
+ subtitle?: string;
8
+ time?: number | any;
9
+ title?: string;
10
+ dataOpt?: Option[];
11
+ actions?: React.ReactNode;
12
+ seeMore?: boolean;
13
+ }
14
+ export interface IconMap {
15
+ [key: string]: ReactElement;
16
+ }
17
+ export interface ColorMap {
18
+ [key: string]: "success" | "error" | "warning" | "secondary";
19
+ }