@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sinco/react",
3
- "version": "1.0.2-rc.26",
3
+ "version": "1.0.2-rc.27",
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,4 +1 @@
1
1
  export * from './lib/Theme';
2
- export { default as ToastNotification } from './lib/toastNotification/ToastNotification';
3
- export * from './lib/toastNotification/ToastNotification';
4
- export * from './lib/toastNotification/interfaces';
@@ -0,0 +1,3 @@
1
+ import { Breakpoints } from '@mui/material';
2
+ declare const breakpoints: Breakpoints;
3
+ export default breakpoints;
@@ -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,2 +0,0 @@
1
- declare const breakpoints: import("@mui/system").Breakpoints;
2
- export default breakpoints;
@@ -1,5 +0,0 @@
1
- /// <reference types="react" />
2
- import '../styles/toastNotification.css';
3
- import { Toast } from './interfaces';
4
- declare const ToastNotification: (toast: Toast) => JSX.Element;
5
- export default ToastNotification;
@@ -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
- }