@sinco/react 1.0.2-rc.12 → 1.0.2-rc.14
Sign up to get free protection for your applications and to get access to all the features.
- package/index.css +83 -0
- package/index.js +11603 -3737
- package/package.json +1 -1
- package/src/index.d.ts +2 -0
- package/src/lib/Theme/components.d.ts +1 -1
- package/src/lib/Theme/index.d.ts +0 -14
- package/src/lib/toastNotification/ToastNotification.d.ts +5 -0
- package/src/lib/toastNotification/interfaces.d.ts +19 -0
package/package.json
CHANGED
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>;
|
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;
|
@@ -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
|
+
}
|