@sinco/react 1.0.3 → 1.0.4-rc.0

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.3",
3
+ "version": "1.0.4-rc.0",
4
4
  "description": "package for the configuration of mui react sinco",
5
5
  "private": false,
6
6
  "license": "MIT",
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
- import { Toast } from "./interfaces";
2
+ import { Toast } from './interfaces';
3
3
  declare const ToastNotification: (toast: Toast) => JSX.Element;
4
4
  export default ToastNotification;
@@ -1,4 +1,4 @@
1
- import { ReactElement } from 'react';
1
+ import { ReactElement } from "react";
2
2
  export interface Option {
3
3
  }
4
4
  export interface Toast {
@@ -9,10 +9,14 @@ export interface Toast {
9
9
  dataOpt?: Option[];
10
10
  actions?: React.ReactNode;
11
11
  seeMore?: boolean;
12
+ position?: string;
12
13
  }
13
14
  export interface IconMap {
14
15
  [key: string]: ReactElement;
15
16
  }
16
17
  export interface ColorMap {
17
- [key: string]: 'success' | 'error' | 'warning' | 'info';
18
+ [key: string]: "success" | "error" | "warning" | "info";
19
+ }
20
+ export interface position {
21
+ [key: string]: "center" | "flex-end" | "flex-start";
18
22
  }