@sinco/react 1.0.2 → 1.0.3-rc.0
Sign up to get free protection for your applications and to get access to all the features.
- package/index.js +5307 -734
- package/package.json +1 -1
- package/src/component/toastNotification/ToastNofitication.d.ts +4 -0
- package/src/component/toastNotification/interfaces.d.ts +22 -0
- package/src/index.d.ts +3 -0
- package/src/lib/Theme/breackpoints.d.ts +2 -0
- package/src/lib/Theme/index.d.ts +0 -14
- package/src/lib/Theme/breakpoints.d.ts +0 -3
package/package.json
CHANGED
@@ -0,0 +1,22 @@
|
|
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
|
+
position?: string;
|
13
|
+
}
|
14
|
+
export interface IconMap {
|
15
|
+
[key: string]: ReactElement;
|
16
|
+
}
|
17
|
+
export interface Position {
|
18
|
+
[key: string]: "center" | "left" | 'right';
|
19
|
+
}
|
20
|
+
export interface ColorMap {
|
21
|
+
[key: string]: "success" | "error" | "warning" | "info";
|
22
|
+
}
|
package/src/index.d.ts
CHANGED
package/src/lib/Theme/index.d.ts
CHANGED
@@ -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;
|