@sinco/react 1.0.4-rc.8 → 1.0.8-rc.8

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.4-rc.8",
3
+ "version": "1.0.8-rc.8",
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';
2
+ export { default as ToastNotification } from './lib/ToastNotification/ToastNofitication';
3
+ export * from './lib/ToastNotification/ToastNofitication';
4
+ export * from './lib/ToastNotification/interfaces';
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { Toast } from "./interfaces";
3
+ declare const ToastNotification: (toast: Toast) => JSX.Element;
4
+ export default ToastNotification;
@@ -0,0 +1,18 @@
1
+ import { ReactElement } from "react";
2
+ export interface Option {
3
+ }
4
+ export interface Toast {
5
+ type?: string;
6
+ subtitle?: string;
7
+ time?: number | any;
8
+ title?: string;
9
+ dataOpt?: Option[];
10
+ actions?: React.ReactNode;
11
+ seeMore?: boolean;
12
+ }
13
+ export interface IconMap {
14
+ [key: string]: ReactElement;
15
+ }
16
+ export interface ColorMap {
17
+ [key: string]: "success" | "error" | "warning" | "info";
18
+ }
@@ -1,15 +0,0 @@
1
- import { ReactNode } from 'react';
2
- export interface EmptyStateProperties {
3
- state?: States;
4
- title?: string;
5
- content?: string;
6
- actions?: ReactNode;
7
- }
8
- export type States = 'create' | 'error' | 'noresult' | 'search';
9
- export declare enum UrlImage {
10
- error = "src/assets/images/error.svg",
11
- search = "src/assets/images/search.svg",
12
- noresult = "src/assets/images/noresult.svg",
13
- create = "src/assets/images/create.svg"
14
- }
15
- export declare const EmptyState: ({ state, title, content, actions, }: EmptyStateProperties) => JSX.Element;
@@ -1 +0,0 @@
1
- export * from './EmptyState';