@sinco/react 1.0.4-rc.4 → 1.0.4-rc.6
Sign up to get free protection for your applications and to get access to all the features.
- package/index.js +898 -5317
- package/package.json +1 -1
- package/src/index.d.ts +1 -3
- package/src/lib/Components/EmptyState.d.ts +16 -0
- package/src/lib/Components/index.d.ts +1 -0
- package/src/lib/Theme/index.d.ts +14 -0
- package/src/lib/Theme/typography.d.ts +0 -14
- package/src/lib/toastNotification/ToastNofitication.d.ts +0 -4
- package/src/lib/toastNotification/interfaces.d.ts +0 -22
package/package.json
CHANGED
package/src/index.d.ts
CHANGED
@@ -0,0 +1,16 @@
|
|
1
|
+
import { ReactNode } from 'react';
|
2
|
+
export interface EmptyStateProperties {
|
3
|
+
state?: States;
|
4
|
+
title?: string;
|
5
|
+
content?: string;
|
6
|
+
actions?: ReactNode;
|
7
|
+
}
|
8
|
+
export type States = 'create' | 'error' | 'noresult' | 'search';
|
9
|
+
export declare enum UrlImage {
|
10
|
+
error = "src/assets/images/error.svg",
|
11
|
+
search = "src/assets/images/search.svg",
|
12
|
+
noresult = "src/assets/images/noresult.svg",
|
13
|
+
create = "src/assets/images/create.svg"
|
14
|
+
}
|
15
|
+
declare const EmptyState: ({ state, title, content, actions, }: EmptyStateProperties) => JSX.Element;
|
16
|
+
export default EmptyState;
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './EmptyState';
|
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;
|
@@ -1,17 +1,3 @@
|
|
1
|
-
/// <reference types="react" />
|
2
1
|
import { TypographyOptions } from '@mui/material/styles/createTypography';
|
3
|
-
declare module '@mui/material/styles' {
|
4
|
-
interface TypographyVariants {
|
5
|
-
body3: React.CSSProperties;
|
6
|
-
}
|
7
|
-
interface TypographyVariantsOptions {
|
8
|
-
body3?: React.CSSProperties;
|
9
|
-
}
|
10
|
-
}
|
11
|
-
declare module '@mui/material/Typography' {
|
12
|
-
interface TypographyPropsVariantOverrides {
|
13
|
-
body3: true;
|
14
|
-
}
|
15
|
-
}
|
16
2
|
declare const typography: TypographyOptions;
|
17
3
|
export default typography;
|
@@ -1,22 +0,0 @@
|
|
1
|
-
import { ReactElement } from "react";
|
2
|
-
export interface Option {
|
3
|
-
}
|
4
|
-
export interface Toast {
|
5
|
-
type?: string;
|
6
|
-
description?: 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 ColorMap {
|
18
|
-
[key: string]: "success" | "error" | "warning" | "info";
|
19
|
-
}
|
20
|
-
export interface position {
|
21
|
-
[key: string]: "center" | "flex-end" | "flex-start";
|
22
|
-
}
|