@sinco/react 1.0.2-rc.5 → 1.0.2-rc.7
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.
|
3
|
+
"version": "1.0.2-rc.7",
|
4
4
|
"description": "package for the configuration of mui react sinco",
|
5
5
|
"private": false,
|
6
6
|
"license": "MIT",
|
@@ -12,5 +12,5 @@
|
|
12
12
|
"module": "./index.js",
|
13
13
|
"main": "./index.js",
|
14
14
|
"type": "module",
|
15
|
-
"types": "./src\\index
|
15
|
+
"types": "./src\\index"
|
16
16
|
}
|
package/src/index.d.ts
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
import { Components } from
|
1
|
+
import { Components } from "@mui/material";
|
2
2
|
export declare const components: Components<unknown>;
|
@@ -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
|
+
}
|