@sinco/react 1.0.2-rc.26 → 1.0.2-rc.27
Sign up to get free protection for your applications and to get access to all the features.
- package/index.js +741 -5656
- package/package.json +1 -1
- package/src/index.d.ts +0 -3
- package/src/lib/Theme/breakpoints.d.ts +3 -0
- package/src/lib/Theme/index.d.ts +14 -0
- package/index.css +0 -83
- package/src/lib/Theme/breackpoints.d.ts +0 -2
- package/src/lib/toastNotification/ToastNotification.d.ts +0 -5
- package/src/lib/toastNotification/interfaces.d.ts +0 -19
package/package.json
CHANGED
package/src/index.d.ts
CHANGED
package/src/lib/Theme/index.d.ts
CHANGED
@@ -1 +1,15 @@
|
|
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
|
+
}
|
1
15
|
export declare const SincoTheme: import("@mui/material/styles").Theme;
|
package/index.css
DELETED
@@ -1,83 +0,0 @@
|
|
1
|
-
:root {
|
2
|
-
--color-info: #e1f5fe;
|
3
|
-
--color-info-icon: #0097b9;
|
4
|
-
--color-success: rgba(232, 245, 233, 1);
|
5
|
-
--color-success-icon: #8fc93a;
|
6
|
-
--color-warning: #fff3e0;
|
7
|
-
--color-warning-icon: #fb8500;
|
8
|
-
--color-error: #feebee;
|
9
|
-
--color-error-icon: #d14343;
|
10
|
-
--color-ripple-info: #2d9fc51f;
|
11
|
-
--color-ripple-success: #8fc93a1f;
|
12
|
-
--color-ripple-warning: #fb85001f;
|
13
|
-
--color-ripple-error: #d143431f;
|
14
|
-
}
|
15
|
-
|
16
|
-
.icon-color {
|
17
|
-
display: inline-block;
|
18
|
-
font-size: 16px;
|
19
|
-
}
|
20
|
-
|
21
|
-
.ripple-info,
|
22
|
-
.ripple-success,
|
23
|
-
.ripple-warning,
|
24
|
-
.ripple-error {
|
25
|
-
background: var(--color-ripple-info);
|
26
|
-
border-radius: 50%;
|
27
|
-
}
|
28
|
-
|
29
|
-
.list-option {
|
30
|
-
padding-left: 15px;
|
31
|
-
margin-block: 0;
|
32
|
-
font-size: 11px;
|
33
|
-
color: #101840de;
|
34
|
-
}
|
35
|
-
|
36
|
-
.option {
|
37
|
-
width: -moz-fit-content;
|
38
|
-
width: fit-content;
|
39
|
-
}
|
40
|
-
|
41
|
-
.color-info {
|
42
|
-
background: var(--color-info);
|
43
|
-
}
|
44
|
-
.color-info .icon-color {
|
45
|
-
color: var(--color-info-icon);
|
46
|
-
}
|
47
|
-
|
48
|
-
.color-success {
|
49
|
-
background: var(--color-success);
|
50
|
-
}
|
51
|
-
.color-success .icon-color {
|
52
|
-
color: var(--color-success-icon);
|
53
|
-
}
|
54
|
-
|
55
|
-
.color-warning {
|
56
|
-
background: var(--color-warning);
|
57
|
-
}
|
58
|
-
.color-warning .icon-color {
|
59
|
-
color: var(--color-warning-icon);
|
60
|
-
}
|
61
|
-
|
62
|
-
.color-error {
|
63
|
-
background: var(--color-error);
|
64
|
-
}
|
65
|
-
.color-error .icon-color {
|
66
|
-
color: var(--color-error-icon);
|
67
|
-
}
|
68
|
-
|
69
|
-
.ripple-info {
|
70
|
-
background: var(--color-ripple-info);
|
71
|
-
}
|
72
|
-
|
73
|
-
.ripple-success {
|
74
|
-
background: var(--color-ripple-success);
|
75
|
-
}
|
76
|
-
|
77
|
-
.ripple-warning {
|
78
|
-
background: var(--color-ripple-warning);
|
79
|
-
}
|
80
|
-
|
81
|
-
.ripple-error {
|
82
|
-
background: var(--color-ripple-error);
|
83
|
-
}
|
@@ -1,19 +0,0 @@
|
|
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" | "info";
|
19
|
-
}
|