@sinco/react 1.0.3-rc.1 → 1.0.3-rc.2

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.3-rc.1",
3
+ "version": "1.0.3-rc.2",
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/ToastNofitication';
3
- export * from './lib/toastNotification/ToastNofitication';
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;
@@ -1,2 +0,0 @@
1
- declare const breakpoints: import("@mui/system").Breakpoints;
2
- export default breakpoints;
@@ -1,4 +0,0 @@
1
- /// <reference types="react" />
2
- import { Toast } from "./interfaces";
3
- declare const ToastNotification: (toast: Toast) => JSX.Element;
4
- export default ToastNotification;
@@ -1,22 +0,0 @@
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
- }